JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
Initial commit
ray_lec08e67e0c1dc
diff --git a/.env.template b/.env.templatenew file mode 100644index 0000000000..1eaf8fa630--- /dev/null+++ b/.env.template@@ -0,0 +1,52 @@+API_BASE="https://example.com/compatible-mode/v1"+API_KEY="sk-xxxxxxxxx"+MODEL_NAME="your-model-name"+MODEL_PROVIDER=OpenAI # or other provider like SiliconFlow, etc.++EMBED_API_BASE=+EMBED_API_KEY=+EMBED_MODEL=++JINA_API_KEY=+SERPER_API_KEY=+PERPLEXITY_API_KEY=++# Browser MCP runtime (optional)+# 0: disabled, 1: enabled+BROWSER_RUNTIME_MCP_ENABLED=1+# supported here: stdio|sse|streamable-http+# recommended: streamable-http+BROWSER_RUNTIME_MCP_CLIENT_TYPE=streamable-http+BROWSER_RUNTIME_MCP_SERVER_ID=playwright_runtime_wrapper+BROWSER_RUNTIME_MCP_SERVER_NAME=playwright-runtime-wrapper+# when client_type=streamable-http, default endpoint is http://127.0.0.1:8940/mcp+# when client_type=sse, default endpoint is http://127.0.0.1:8940/sse+# when client_type=stdio, this path can keep stdio://... as metadata only+BROWSER_RUNTIME_MCP_SERVER_PATH=http://127.0.0.1:8940/mcp+BROWSER_RUNTIME_MCP_TIMEOUT_S=300+# optional local wrapper host/port/path for auto-start+BROWSER_RUNTIME_MCP_HOST=127.0.0.1+BROWSER_RUNTIME_MCP_PORT=8940+BROWSER_RUNTIME_MCP_PATH=/mcp+# stdio mode command override (empty means use current python executable)+BROWSER_RUNTIME_MCP_COMMAND=+# optional args override; leave empty to use built-in default:+# <repo>/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime_mcp_server.py --transport stdio --no-banner+BROWSER_RUNTIME_MCP_ARGS=+# stdio mode will prefer sse fallback first when enabled (recommended 1)+BROWSER_RUNTIME_MCP_AUTO_SSE_FALLBACK=1++# runtime wrapper internals+PLAYWRIGHT_MCP_COMMAND=npx+PLAYWRIGHT_MCP_ARGS=-y @playwright/mcp@latest+PLAYWRIGHT_CDP_URL=http://127.0.0.1:9222+PLAYWRIGHT_TOOL_TIMEOUT_S=300+BROWSER_TIMEOUT_S=300+# default behavior: browser_run_task will not honor model-provided timeout_s values below+# BROWSER_TIMEOUT_S. Set this only if you explicitly want short per-call overrides.+BROWSER_ALLOW_SHORT_TIMEOUT_OVERRIDE=0++EMAIL_ADDRESS=""+EMAIL_TOKEN=""++EVOLUTION_AUTO_SCAN="false"diff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000000..6519905d4d--- /dev/null+++ b/.gitignore@@ -0,0 +1,62 @@+# Python+__pycache__/+*.py[cod]+*.pyo+*.pyd+*.so+.Python+.venv/+venv/+env/+ENV/+.pytest_cache/+.mypy_cache/+.ruff_cache/+.coverage+.coverage.*+htmlcov/++# Node.js / Frontend+node_modules/+**/node_modules/+dist/+build/+coverage/+jiuwenclaw/web/logs/+jiuwenclaw/web/cd+jiuwenclaw/web/tsc+jiuwenclaw/web/[email protected]+*.tsbuildinfo+npm-debug.log*+yarn-debug.log*+yarn-error.log*+pnpm-debug.log*++# Environment files+.env+.env_personal+!.env.example++# IDE / Editor+.vscode/+.idea/+*.swp+*.swo+.DS_Store++# reference+reference/++# environment+venv/+*.egg-info/+++# logs+logs/++# workspace+workspace/session+workspace/agent/memory/*.db+workspace/agent/memory/*.db-shm+workspace/agent/memory/*.db-waldiff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000000..7a4a3ea242--- /dev/null+++ b/LICENSE@@ -0,0 +1,202 @@++ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding those notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONS++ APPENDIX: How to apply the Apache License to your work.++ To apply the Apache License to your work, attach the following+ boilerplate notice, with the fields enclosed by brackets "[]"+ replaced with your own identifying information. (Don't include+ the brackets!) The text should be enclosed in the appropriate+ comment syntax for the file format. We also recommend that a+ file or class name and description of purpose be included on the+ same "printed page" as the copyright notice for easier+ identification within third-party archives.++ Copyright [yyyy] [name of copyright owner]++ Licensed under the Apache License, Version 2.0 (the "License");+ you may not use this file except in compliance with the License.+ You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.\ No newline at end of filediff --git a/MANIFEST.in b/MANIFEST.innew file mode 100644index 0000000000..cf6c5dbea3--- /dev/null+++ b/MANIFEST.in@@ -0,0 +1,9 @@+# 包含 config 目录+recursive-include config *++# 包含 workspace 目录+recursive-include workspace *++# 排除 node_modules,避免打包进 wheel+prune jiuwenclaw/web/node_modules+global-exclude node_modulesdiff --git a/OPEN_SOURCE_SOFTWARE_NOTICE.md b/OPEN_SOURCE_SOFTWARE_NOTICE.mdnew file mode 100644index 0000000000..ad3df99e0c--- /dev/null+++ b/OPEN_SOURCE_SOFTWARE_NOTICE.md@@ -0,0 +1,129 @@+# OPEN SOURCE SOFTWARE NOTICE++Please note we provide an open source software notice along with this product and/or this product firmware (in the following just "this product"). The open source software licenses are granted by the respective right holders. And the open source licenses prevail all other license information with regard to the respective open source software contained in the product, including but not limited to End User Software Licensing Agreement. This notice is provided on behalf of Huawei Technologies Co. Ltd. and any of its local subsidiaries which may have provided this product to you in your local country.++## Warranty Disclaimer++THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.++## Copyright Notice and License Texts++### Software: Python 3.11.x++**License:** Python Software Foundation License V2++**PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2**++1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation.+2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee.+3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python.+4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.+6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.+7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.+8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement.++---++### License: BSD 3-Clause License++**Software:** jinja2, MarkupSafe, Pygments, Werkzeug, uvicorn, python-dotenv, pandas, click, cloudpickle, colorama, httpx, idna, pyperclip, pyreadline3, python-json-logger, sse-starlette, starlette, websockets, xxhash, zstandard++Copyright (c) 2007 Pallets+All rights reserved.++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.+3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++---++### License: Apache License V2.0++**Software:** tenacity, pypdfium2, requests, pytest-asyncio, coverage, aiofiles, aiohttp, aiosignal, chromadb, fastmcp, frozenlist, grpcio, huggingface-hub, openai, opentelemetry-api, opentelemetry-sdk, pymilvus, py-key-value-aio, py-key-value-shared, python-multipart, tzdata, websocket-client, yarl, cryptography (Apache-2.0 OR BSD-3-Clause), cyclopts, dashscope, diskcache, distro, elasticsearch, elastic-transport, flatbuffers, googleapis-common-protos, hf-xet, importlib-metadata, importlib-resources, jsonschema-path, kubernetes, openapi-spec-validator, opentelemetry-proto, pathable, prometheus-client, propcache, safetensors, sortedcontainers, tokenizers, transformers++**Apache License**+**Version 2.0, January 2004**+**http://www.apache.org/licenses/**++**TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION**++**1. Definitions.**++"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.++**2. Grant of Copyright License.** Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.++**3. Grant of Patent License.** Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.++**4. Redistribution.** You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:+You must give any other recipients of the Work or Derivative Works a copy of this License; and+You must cause any modified files to carry prominent notices stating that You changed the files; and+You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and+If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.+You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.++**5. Submission of Contributions.** Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.++**6. Trademarks.** This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.++**7. Disclaimer of Warranty.** Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.++**8. Limitation of Liability.** In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.++**9. Accepting Warranty or Additional Liability.** While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.++---++### License: MIT License++**Software:** json_repair, rapidfuzz, markdown-it-py, beautifulsoup4, python-docx, fastapi, pydantic, pydantic-settings, sqlalchemy, pytest, pytest-cov, pytest-mock, PyYAML, charset-normalizer, exceptiongroup, h11, httpx-sse, iniconfig, jsonschema, mdurl, more-itertools, platformdirs, pluggy, pydantic-core, redis, referencing, rich, typing-inspection, urllib3, zipp, aioitertools, attrs, beartype, cacheout, cachetools, cffi, docstring-parser, filelock, greenlet, humanfriendly, jaraco.classes, jaraco.context, jaraco.functools, jiter, keyring, langchain-core, langgraph, langsmith, pysbd, pytz, rpds-py, shellingham, six, tomli, typer, typer-slim, watchfiles, wsproto++**The MIT License**++Copyright (c) <year> <copyright holders>++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:+The above copyright notice and this permission notice shall be included in+all copies or substantial portions of the Software.+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+THE SOFTWARE.++---++### License: BSD 2-Clause License++**Software:** pycryptodome, xlsxwriter, lazy-object-proxy++All direct contributions to PyCryptodome are released under the following license. The copyright of each piece belongs to the respective author.++Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:++Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++---++*This notice is generated for the JiuwenBot project. The list of software and versions may vary with the actual installation. You may regenerate the dependency list using `pip install pip-licenses; pip-licenses` from the project environment.*\ No newline at end of filediff --git a/README.md b/README.mdnew file mode 100644index 0000000000..6c015da63c--- /dev/null+++ b/README.md@@ -0,0 +1,96 @@+<div align="center">++# JiuwenClaw 🦞++> 随叫随到的智能管家,让AI触手可及++[](https://www.python.org/)+[](LICENSE)+[](https://www.huaweicloud.com/)++</div>++## 🌟 项目简介++**JiuwenClaw** 是一款基于Python开发的智能AI Agent,正如其名——"Claw"象征着精准的抓取与连接。它能够将大语言模型的强大能力,通过你日常使用的各类通讯应用,直接延伸至你的指尖。++### ✨ 核心特色++- **生态兼容**:完美支持**华为云MaaS**等主流模型平台+- **无缝对接**:与**小艺开放平台**无缝接入,华为手机用户可通过小艺直接唤醒+- **灵活部署**:支持自托管部署,数据完全自主可控+- **多端接入**:支持Web端、聊天软件等多种交互方式++## 🎯 核心理念++> **懂你所想,自主演进**++### 🤝 贴身任务管家+面对复杂的输入场景——任务追加、指令打断、需求修改,JiuwenClaw都能精准理解,为你智能排期,有条不紊地完成任务。++### 🔄 自主演进+当你表达不满或运行出错时,它会根据你的反馈自动调整相应技能,持续演进,全心全意为你服务。++<p align="center">+ <strong>⚡ 一个始终在线、数据自主的专属AI助理 ⚡</strong>+</p>++## 🚀 快速上手++### 📦 安装++```bash+# 安装JiuwenClaw+pip install jiuwenclaw++# 启动服务+jiuwenclaw-start+```++### 💬 使用方式++#### 1️⃣ 对话模式++| 方式 | 说明 |+|------|-------------------------------------------|+| **Web前端** | 启动服务后访问 `http://localhost:5173`,通过浏览器直接对话 |+| **小艺频道** | 华为手机用户可直接唤醒小艺,与JiuwenClaw对话 |+| **飞书频道** | 完成渠道配置后,在飞书中与JiuwenClaw畅聊 |++#### 2️⃣ 定时任务++设置心跳任务,填写待办事项,JiuwenClaw即可定时被唤醒,自动执行预设任务。让你的日程管理更加智能高效!++## 📚 文档导航++| 文档 | 核心内容 |+|:------------------------------------|:-------------------------|+| [📖 快速开始](docs/快速开始.md) | 5分钟上手JiuwenClaw |+| [⚙️ 配置与工作空间](docs/配置信息.md) | 环境配置与工作区管理 |+| [📁 工作区结构](docs/智能体.md) | workspace 目录说明,预置与动态生成内容 |+| [🛠️ 技能系统](docs/技能.md) | 自定义技能开发指南 |+| [📱 频道配置](docs/频道.md) | 飞书、小艺等频道接入 |+| [📋 任务规划](docs/聊天.md) | 聊天特性 |+| [🧠 记忆功能](docs/记忆.md) | 智能记忆与学习 |+| [🌐 浏览器相关](docs/浏览器.md) | 自动化浏览功能 |++## 🤝 参与贡献++我们热烈欢迎社区贡献!无论是提交Bug、提出新功能建议,还是完善文档,都是对项目的宝贵支持。++1. Fork 本仓库+2. 创建您的特性分支 (`git checkout -b feature/AmazingFeature`)+3. 提交您的改动 (`git commit -m 'Add some AmazingFeature'`)+4. 推送到分支 (`git push origin feature/AmazingFeature`)+5. 打开一个 Pull Request++## 📄 开源协议++本项目采用 **Apache License 2.0** 开源协议,详情请参阅 [LICENSE](LICENSE) 文件。++---++<p align="center">+ <strong>让智能触手可及,让生活更加简单</strong><br>+ <sub>✨ JiuwenClaw —— 您的专属AI助理 ✨</sub>+</p>\ No newline at end of filediff --git a/assets/images/agent.png b/assets/images/agent.pngnew file mode 100644index 0000000000..39a6d57ceeBinary files /dev/null and b/assets/images/agent.png differdiff --git a/assets/images/browser1.png b/assets/images/browser1.pngnew file mode 100644index 0000000000..35e97653f0Binary files /dev/null and b/assets/images/browser1.png differdiff --git a/assets/images/browser2.png b/assets/images/browser2.pngnew file mode 100644index 0000000000..4be7241609Binary files /dev/null and b/assets/images/browser2.png differdiff --git a/assets/images/browser3.png b/assets/images/browser3.pngnew file mode 100644index 0000000000..87a0fae0f8Binary files /dev/null and b/assets/images/browser3.png differdiff --git a/assets/images/config.png b/assets/images/config.pngnew file mode 100644index 0000000000..5c96b6f68aBinary files /dev/null and b/assets/images/config.png differdiff --git a/assets/images/heartbeat1.png b/assets/images/heartbeat1.pngnew file mode 100644index 0000000000..c8e23f08deBinary files /dev/null and b/assets/images/heartbeat1.png differdiff --git a/assets/images/heartbeat2.png b/assets/images/heartbeat2.pngnew file mode 100644index 0000000000..c93c8daadaBinary files /dev/null and b/assets/images/heartbeat2.png differdiff --git a/assets/images/heartbeat3.png b/assets/images/heartbeat3.pngnew file mode 100644index 0000000000..59bda41514Binary files /dev/null and b/assets/images/heartbeat3.png differdiff --git a/assets/images/heartbeat4.png b/assets/images/heartbeat4.pngnew file mode 100644index 0000000000..56a5a5605fBinary files /dev/null and b/assets/images/heartbeat4.png differdiff --git a/assets/images/heartbeat5.png b/assets/images/heartbeat5.pngnew file mode 100644index 0000000000..adc8aee1d3Binary files /dev/null and b/assets/images/heartbeat5.png differdiff --git a/assets/images/memory_config.png b/assets/images/memory_config.pngnew file mode 100644index 0000000000..fa70cf1d91Binary files /dev/null and b/assets/images/memory_config.png differdiff --git a/assets/images/memory_files.png b/assets/images/memory_files.pngnew file mode 100644index 0000000000..2ef39b4b01Binary files /dev/null and b/assets/images/memory_files.png differdiff --git a/assets/images/todo.png b/assets/images/todo.pngnew file mode 100644index 0000000000..132eb8f1bcBinary files /dev/null and b/assets/images/todo.png differdiff --git "a/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\345\207\255\350\257\201_1.png" "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\345\207\255\350\257\201_1.png"new file mode 100644index 0000000000..19bba7b542Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\345\207\255\350\257\201_1.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\345\207\255\350\257\201_2.png" "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\345\207\255\350\257\201_2.png"new file mode 100644index 0000000000..ab88243fbdBinary files /dev/null and "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\345\207\255\350\257\201_2.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\345\207\255\350\257\201_3.png" "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\345\207\255\350\257\201_3.png"new file mode 100644index 0000000000..a8cd4b2cf7Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\345\207\255\350\257\201_3.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\346\231\272\350\203\275\344\275\223.png" "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\346\231\272\350\203\275\344\275\223.png"new file mode 100644index 0000000000..ef72f61871Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\346\231\272\350\203\275\344\275\223.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_1.png" "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_1.png"new file mode 100644index 0000000000..df0b108b56Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_1.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_2.png" "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_2.png"new file mode 100644index 0000000000..ed65d4de0cBinary files /dev/null and "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_2.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_3.png" "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_3.png"new file mode 100644index 0000000000..c73fcf3c81Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_3.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_4.png" "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_4.png"new file mode 100644index 0000000000..b6a723a359Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\345\210\233\345\273\272\347\231\275\345\220\215\345\215\225_4.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\345\274\200\346\224\276\345\271\263\345\217\260.png" "b/assets/images/\345\260\217\350\211\272\345\274\200\346\224\276\345\271\263\345\217\260.png"new file mode 100644index 0000000000..99caac3b34Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\345\274\200\346\224\276\345\271\263\345\217\260.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\346\231\272\350\203\275\344\275\223\344\270\212\346\236\266.png" "b/assets/images/\345\260\217\350\211\272\346\231\272\350\203\275\344\275\223\344\270\212\346\236\266.png"new file mode 100644index 0000000000..d4c49df5fdBinary files /dev/null and "b/assets/images/\345\260\217\350\211\272\346\231\272\350\203\275\344\275\223\344\270\212\346\236\266.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\347\273\210\347\253\257\345\257\271\350\257\235.png" "b/assets/images/\345\260\217\350\211\272\347\273\210\347\253\257\345\257\271\350\257\235.png"new file mode 100644index 0000000000..e3790876b2Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\347\273\210\347\253\257\345\257\271\350\257\235.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\347\275\221\351\241\265\345\257\271\350\257\235.png" "b/assets/images/\345\260\217\350\211\272\347\275\221\351\241\265\345\257\271\350\257\235.png"new file mode 100644index 0000000000..1cca56dca4Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\347\275\221\351\241\265\345\257\271\350\257\235.png" differdiff --git "a/assets/images/\345\260\217\350\211\272\351\242\221\351\201\223\345\274\200\345\220\257.png" "b/assets/images/\345\260\217\350\211\272\351\242\221\351\201\223\345\274\200\345\220\257.png"new file mode 100644index 0000000000..7f55761984Binary files /dev/null and "b/assets/images/\345\260\217\350\211\272\351\242\221\351\201\223\345\274\200\345\220\257.png" differdiff --git "a/assets/images/\346\212\200\350\203\275\345\210\227\350\241\250\344\270\216\346\243\200\347\264\242.png" "b/assets/images/\346\212\200\350\203\275\345\210\227\350\241\250\344\270\216\346\243\200\347\264\242.png"new file mode 100644index 0000000000..f1a8fe4a5cBinary files /dev/null and "b/assets/images/\346\212\200\350\203\275\345\210\227\350\241\250\344\270\216\346\243\200\347\264\242.png" differdiff --git "a/assets/images/\346\212\200\350\203\275\346\272\220\347\256\241\347\220\206.png" "b/assets/images/\346\212\200\350\203\275\346\272\220\347\256\241\347\220\206.png"new file mode 100644index 0000000000..1679a6929aBinary files /dev/null and "b/assets/images/\346\212\200\350\203\275\346\272\220\347\256\241\347\220\206.png" differdiff --git "a/assets/images/\346\212\200\350\203\275\347\224\237\345\221\275\345\221\250\346\234\237\347\256\241\347\220\206.png" "b/assets/images/\346\212\200\350\203\275\347\224\237\345\221\275\345\221\250\346\234\237\347\256\241\347\220\206.png"new file mode 100644index 0000000000..d182e20e6cBinary files /dev/null and "b/assets/images/\346\212\200\350\203\275\347\224\237\345\221\275\345\221\250\346\234\237\347\256\241\347\220\206.png" differdiff --git "a/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205.png" "b/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205.png"new file mode 100644index 0000000000..dde9c5e593Binary files /dev/null and "b/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205.png" differdiff --git a/assets/videos/compression.mp4 b/assets/videos/compression.mp4new file mode 100644index 0000000000..1a082ab29cBinary files /dev/null and b/assets/videos/compression.mp4 differdiff --git a/assets/videos/evolve.mp4 b/assets/videos/evolve.mp4new file mode 100644index 0000000000..1af18d1ce2Binary files /dev/null and b/assets/videos/evolve.mp4 differdiff --git a/assets/videos/memory.mp4 b/assets/videos/memory.mp4new file mode 100644index 0000000000..a737b91d59Binary files /dev/null and b/assets/videos/memory.mp4 differdiff --git a/assets/videos/todo.mp4 b/assets/videos/todo.mp4new file mode 100644index 0000000000..a74e4dad40Binary files /dev/null and b/assets/videos/todo.mp4 differdiff --git a/assets/videos/xiaoyi_channel.mp4 b/assets/videos/xiaoyi_channel.mp4new file mode 100644index 0000000000..a3654787dcBinary files /dev/null and b/assets/videos/xiaoyi_channel.mp4 differdiff --git a/build.ps1 b/build.ps1new file mode 100644index 0000000000..8f102f742c--- /dev/null+++ b/build.ps1@@ -0,0 +1,128 @@+# JiuwenClaw 打包脚本+# 1. 编译前端 (jiuwenclaw/web)+# 2. 构建 wheel 包(包含前端 dist)++$ErrorActionPreference = "Stop"+$ProjectRoot = $PSScriptRoot++Write-Host "[build] 项目根目录: $ProjectRoot" -ForegroundColor Cyan++# 1. 编译前端+$WebDir = Join-Path (Join-Path $ProjectRoot "jiuwenclaw") "web"+if (-not (Test-Path $WebDir)) {+ Write-Error "前端目录不存在: $WebDir"+}++Write-Host "[build] 正在编译前端..." -ForegroundColor Yellow+Push-Location $WebDir+try {+ if (-not (Test-Path "node_modules")) {+ Write-Host "[build] 安装 npm 依赖..." -ForegroundColor Gray+ npm install+ }+ npm run build+ if ($LASTEXITCODE -ne 0) {+ throw "前端编译失败"+ }+} finally {+ Pop-Location+}++$DistDir = Join-Path $WebDir "dist"+if (-not (Test-Path $DistDir)) {+ Write-Error "前端编译输出不存在: $DistDir"+}+Write-Host "[build] 前端编译完成: $DistDir" -ForegroundColor Green++# 临时移走 node_modules,避免被打包进 wheel+$NodeModules = Join-Path $WebDir "node_modules"+$NodeModulesBak = Join-Path $WebDir "node_modules.bak"+$NodeModulesMoved = $false+if (Test-Path $NodeModules) {+ Write-Host "[build] 临时移走 node_modules 以减小 wheel 体积..." -ForegroundColor Gray+ Move-Item $NodeModules $NodeModulesBak -Force+ $NodeModulesMoved = $true+}++# 创建符号链接,让 config 和 workspace 在 jiuwenclaw 包内+$SymlinksRemoved = @()+$JiuwenclawDir = Join-Path $ProjectRoot "jiuwenclaw"++$ConfigLink = Join-Path $JiuwenclawDir "config"+if (-not (Test-Path $ConfigLink)) {+ Write-Host "[build] 创建 config 符号链接..." -ForegroundColor Gray+ $ConfigSource = Join-Path $ProjectRoot "config"+ New-Item -ItemType SymbolicLink -Path $ConfigLink -Target $ConfigSource | Out-Null+ $SymlinksRemoved += $ConfigLink+}++$WorkspaceLink = Join-Path $JiuwenclawDir "workspace"+if (-not (Test-Path $WorkspaceLink)) {+ Write-Host "[build] 创建 workspace 符号链接..." -ForegroundColor Gray+ $WorkspaceSource = Join-Path $ProjectRoot "workspace"+ New-Item -ItemType SymbolicLink -Path $WorkspaceLink -Target $WorkspaceSource | Out-Null+ $SymlinksRemoved += $WorkspaceLink+}++# 创建入口脚本的符号链接+$AppLink = Join-Path $JiuwenclawDir "app.py"+if (-not (Test-Path $AppLink)) {+ Write-Host "[build] 创建 app.py 符号链接..." -ForegroundColor Gray+ $AppSource = Join-Path $ProjectRoot "app.py"+ New-Item -ItemType SymbolicLink -Path $AppLink -Target $AppSource | Out-Null+ $SymlinksRemoved += $AppLink+}++$AppWebLink = Join-Path $JiuwenclawDir "app_web.py"+if (-not (Test-Path $AppWebLink)) {+ Write-Host "[build] 创建 app_web.py 符号链接..." -ForegroundColor Gray+ $AppWebSource = Join-Path $ProjectRoot "app_web.py"+ New-Item -ItemType SymbolicLink -Path $AppWebLink -Target $AppWebSource | Out-Null+ $SymlinksRemoved += $AppWebLink+}++$StartServicesLink = Join-Path $JiuwenclawDir "start_services.py"+if (-not (Test-Path $StartServicesLink)) {+ Write-Host "[build] 创建 start_services.py 符号链接..." -ForegroundColor Gray+ $StartServicesSource = Join-Path $ProjectRoot "start_services.py"+ New-Item -ItemType SymbolicLink -Path $StartServicesLink -Target $StartServicesSource | Out-Null+ $SymlinksRemoved += $StartServicesLink+}++try {+# 2. 构建 wheel+Write-Host "[build] 正在构建 wheel 包..." -ForegroundColor Yellow+Push-Location $ProjectRoot+try {+ python -m pip install --upgrade build wheel 2>$null+ python -m build --wheel+ if ($LASTEXITCODE -ne 0) {+ throw "wheel 构建失败"+ }+} finally {+ Pop-Location+}++# 确保 dist 目录存在+$DistOutput = Join-Path $ProjectRoot "dist"+if (-not (Test-Path $DistOutput)) {+ New-Item -ItemType Directory -Path $DistOutput -Force | Out-Null+ Write-Host "[build] 创建 dist 目录: $DistOutput" -ForegroundColor Gray+}+Write-Host "[build] 完成! wheel 包位于: $DistOutput" -ForegroundColor Green+Get-ChildItem $DistOutput -Filter "*.whl" | ForEach-Object { Write-Host " - $($_.Name)" }+} finally {+ # 清理符号链接+ foreach ($link in $SymlinksRemoved) {+ if (Test-Path $link -PathType Any) {+ Remove-Item $link -Force -Recurse+ Write-Host "[build] 已删除符号链接: $link" -ForegroundColor Gray+ }+ }++ # 恢复 node_modules+ if ($NodeModulesMoved -and (Test-Path $NodeModulesBak)) {+ Move-Item $NodeModulesBak $NodeModules -Force+ Write-Host "[build] 已恢复 node_modules" -ForegroundColor Gray+ }+}diff --git a/build.sh b/build.shnew file mode 100644index 0000000000..a7a36790b1--- /dev/null+++ b/build.sh@@ -0,0 +1,113 @@+#!/usr/bin/env bash+# JiuwenClaw 打包脚本+# 1. 编译前端 (jiuwenclaw/web)+# 2. 构建 wheel 包(包含前端 dist)++set -e+PROJECT_ROOT="$(cd "$(dirname "$0")" && pwd)"++echo "[build] 项目根目录: $PROJECT_ROOT"++# 1. 编译前端+WEB_DIR="$PROJECT_ROOT/jiuwenclaw/web"+if [[ ! -d "$WEB_DIR" ]]; then+ echo "[build] 错误: 前端目录不存在: $WEB_DIR" >&2+ exit 1+fi++echo "[build] 正在编译前端..."+cd "$WEB_DIR"+if [[ ! -d node_modules ]]; then+ echo "[build] 安装 npm 依赖..."+ npm install+fi+npm run build+cd "$PROJECT_ROOT"++DIST_DIR="$WEB_DIR/dist"+if [[ ! -d "$DIST_DIR" ]]; then+ echo "[build] 错误: 前端编译输出不存在: $DIST_DIR" >&2+ exit 1+fi+echo "[build] 前端编译完成: $DIST_DIR"++# 临时移走 node_modules,避免被打包进 wheel+NODE_MODULES="$WEB_DIR/node_modules"+NODE_MODULES_BAK="$WEB_DIR/node_modules.bak"+NODE_MODULES_MOVED=false+if [[ -d "$NODE_MODULES" ]]; then+ echo "[build] 临时移走 node_modules 以减小 wheel 体积..."+ mv "$NODE_MODULES" "$NODE_MODULES_BAK"+ NODE_MODULES_MOVED=true+fi++# 创建符号链接,让 config 和 workspace 在 jiuwenclaw 包内+SYMLINKS_REMOVED=()+JIUWENCLAW_DIR="$PROJECT_ROOT/jiuwenclaw"++CONFIG_LINK="$JIUWENCLAW_DIR/config"+if [[ ! -e "$CONFIG_LINK" ]]; then+ echo "[build] 创建 config 符号链接..."+ ln -s "$PROJECT_ROOT/config" "$CONFIG_LINK"+ SYMLINKS_REMOVED+=("$CONFIG_LINK")+fi++WORKSPACE_LINK="$JIUWENCLAW_DIR/workspace"+if [[ ! -e "$WORKSPACE_LINK" ]]; then+ echo "[build] 创建 workspace 符号链接..."+ ln -s "$PROJECT_ROOT/workspace" "$WORKSPACE_LINK"+ SYMLINKS_REMOVED+=("$WORKSPACE_LINK")+fi++# 创建入口脚本的符号链接+APP_LINK="$JIUWENCLAW_DIR/app.py"+if [[ ! -e "$APP_LINK" ]]; then+ echo "[build] 创建 app.py 符号链接..."+ ln -s "$PROJECT_ROOT/app.py" "$APP_LINK"+ SYMLINKS_REMOVED+=("$APP_LINK")+fi++APP_WEB_LINK="$JIUWENCLAW_DIR/app_web.py"+if [[ ! -e "$APP_WEB_LINK" ]]; then+ echo "[build] 创建 app_web.py 符号链接..."+ ln -s "$PROJECT_ROOT/app_web.py" "$APP_WEB_LINK"+ SYMLINKS_REMOVED+=("$APP_WEB_LINK")+fi++START_SERVICES_LINK="$JIUWENCLAW_DIR/start_services.py"+if [[ ! -e "$START_SERVICES_LINK" ]]; then+ echo "[build] 创建 start_services.py 符号链接..."+ ln -s "$PROJECT_ROOT/start_services.py" "$START_SERVICES_LINK"+ SYMLINKS_REMOVED+=("$START_SERVICES_LINK")+fi++cleanup() {+ # 清理符号链接+ for link in "${SYMLINKS_REMOVED[@]}"; do+ if [[ -e "$link" ]]; then+ rm -rf "$link"+ echo "[build] 已删除符号链接: $link"+ fi+ done++ # 恢复 node_modules+ if [[ "$NODE_MODULES_MOVED" == "true" && -d "$NODE_MODULES_BAK" ]]; then+ mv "$NODE_MODULES_BAK" "$NODE_MODULES"+ echo "[build] 已恢复 node_modules"+ fi+}+trap cleanup EXIT++# 2. 构建 wheel+echo "[build] 正在构建 wheel 包..."+pip install -q --upgrade build wheel+python -m build --wheel++# 确保 dist 目录存在+DIST_OUTPUT="$PROJECT_ROOT/dist"+if [[ ! -d "$DIST_OUTPUT" ]]; then+ mkdir -p "$DIST_OUTPUT"+ echo "[build] 创建 dist 目录: $DIST_OUTPUT"+fi+echo "[build] 完成! wheel 包位于: $DIST_OUTPUT"+ls -la dist/*.whl 2>/dev/null || truediff --git a/config/config.py b/config/config.pynew file mode 100644index 0000000000..ab4e418d36--- /dev/null+++ b/config/config.py@@ -0,0 +1,133 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import os+import re+import sys+from pathlib import Path+from typing import Any++import yaml+from ruamel.yaml import YAML++# Get config directory - check for user workspace or use default+_CONFIG_MODULE_DIR = Path(__file__).parent++# Check if user workspace exists and use it if configured via env+_user_config = os.getenv("JIUWENCLAW_CONFIG_DIR")+if _user_config:+ _CONFIG_MODULE_DIR = Path(_user_config)+elif (Path.home() / ".jiuwenclaw" / "config").exists():+ _CONFIG_MODULE_DIR = Path.home() / ".jiuwenclaw" / "config"++# Ensure config directory is in sys.path+if str(_CONFIG_MODULE_DIR) not in sys.path:+ sys.path.insert(0, str(_CONFIG_MODULE_DIR))+++def resolve_env_vars(value: Any) -> Any:+ """递归解析配置中的环境变量替换语法 ${VAR:-default}.++ Args:+ value: 配置值,可能是字符串、字典或列表++ Returns:+ 解析后的值+ """+ if isinstance(value, str):+ # 匹配 ${VAR:-default} 格式+ pattern = r'\$\{([^:}]+)(?::-([^}]*))?\}'++ def replace_env(match):+ var_name = match.group(1)+ default = match.group(2) if match.group(2) is not None else ""+ return os.getenv(var_name, default)++ return re.sub(pattern, replace_env, value)+ elif isinstance(value, dict):+ return {k: resolve_env_vars(v) for k, v in value.items()}+ elif isinstance(value, list):+ return [resolve_env_vars(item) for item in value]+ else:+ return value+++def get_config():+ with open(_CONFIG_MODULE_DIR / "config.yaml", "r", encoding="utf-8") as f:+ config_base = yaml.safe_load(f)+ config_base = resolve_env_vars(config_base)++ return config_base+++def get_config_raw():+ """读 config.yaml 原始内容(不解析环境变量),供局部更新后写回。"""+ with open(_CONFIG_MODULE_DIR / "config.yaml", "r", encoding="utf-8") as f:+ return yaml.safe_load(f) or {}+++def set_config(config):+ with open(_CONFIG_MODULE_DIR / "config.yaml", "w", encoding="utf-8") as f:+ yaml.safe_dump(config, f, allow_unicode=True, sort_keys=False)+++def _load_yaml_round_trip(config_path: Path):+ """ruamel 加载 config,保留注释与格式。"""+ rt = YAML()+ rt.preserve_quotes = True+ with open(config_path, "r", encoding="utf-8") as f:+ return rt.load(f)+++def _dump_yaml_round_trip(config_path: Path, data: Any) -> None:+ """ruamel 写回 config,保留注释与格式。"""+ rt = YAML()+ rt.preserve_quotes = True+ rt.default_flow_style = False+ # mapping 2 空格;list 用 sequence=4 + offset=2 保证 dash 前有 2 空格(tools: 下 - todo),否则 list 会变成无缩进+ rt.indent(mapping=2, sequence=4, offset=2)+ rt.width = 4096+ with open(config_path, "w", encoding="utf-8") as f:+ rt.dump(data, f)+++def update_heartbeat_in_config(payload: dict[str, Any]) -> None:+ """只更新 heartbeat 段并写回。"""+ config_path = _CONFIG_MODULE_DIR / "config.yaml"+ data = _load_yaml_round_trip(config_path)+ if "heartbeat" not in data:+ data["heartbeat"] = {}+ hb = data["heartbeat"]+ if "every" in payload:+ hb["every"] = payload["every"]+ if "target" in payload:+ hb["target"] = payload["target"]+ if "active_hours" in payload:+ hb["active_hours"] = payload["active_hours"]+ _dump_yaml_round_trip(config_path, data)+++def update_channel_in_config(channel_id: str, conf: dict[str, Any]) -> None:+ """只更新 channels[channel_id] 并写回。"""+ config_path = _CONFIG_MODULE_DIR / "config.yaml"+ data = _load_yaml_round_trip(config_path)+ if "channels" not in data:+ data["channels"] = {}+ channels = data["channels"]+ if channel_id not in channels:+ channels[channel_id] = {}+ section = channels[channel_id]+ for k, v in conf.items():+ section[k] = v+ _dump_yaml_round_trip(config_path, data)+++def update_browser_in_config(updates: dict[str, Any]) -> None:+ """只更新 browser 段(如 chrome_path)并写回。"""+ config_path = _CONFIG_MODULE_DIR / "config.yaml"+ data = _load_yaml_round_trip(config_path)+ if "browser" not in data:+ data["browser"] = {}+ section = data["browser"]+ for k, v in updates.items():+ section[k] = v+ _dump_yaml_round_trip(config_path, data)\ No newline at end of filediff --git a/config/config.yaml b/config/config.yamlnew file mode 100644index 0000000000..8017ceca1b--- /dev/null+++ b/config/config.yaml@@ -0,0 +1,77 @@+react:+ agent_name: main_agent+ max_iterations: 50+ model_name: ${MODEL_NAME:-deepseek-chat}+ answer_chunk_size: 500+ stream_chunk_threshold: 50+ stream_character_threshold: 2000+ model_client_config:+ client_provider: ${MODEL_PROVIDER:-OpenAI}+ api_base: ${API_BASE:-https://api.modelarts-maas.com/openai/v1}+ api_key: ${API_KEY}+ verify_ssl: false+ model_config_obj:+ context_engine_config:+ enable_reload: true+ # Skills 在线自演进配置+ evolution:+ enabled: true # true = 启用在线 Skills 自演进+ auto_scan: false # true = 每轮对话后自动扫描(建议先用手动 /evolve)+ skill_base_dir: "workspace/agent/skills" # Skill 根目录++tools:+ - todo+ - skill++email_settings:+ email_address: ${EMAIL_ADDRESS}+ token: ${EMAIL_TOKEN}+ smtp_server: ${SMTP_SERVER:-smtp.gmail.com}+ port: ${EMAIL_PORT:-587}++embed:+ embed_api_key: ${EMBED_API_KEY}+ embed_base_url: ${EMBED_API_BASE}+ embed_model: ${EMBED_MODEL}++heartbeat:+ # 心跳间隔(秒),默认 60+ every: 3600+ # 心跳结果回传的 channel(如 "web"),+ target: web+ # 心跳生效时间段(本地时间),start <= now < end 时心跳生效+ active_hours:+ start: 08:00+ end: 22:00++channels:+ feishu:+ # 飞书应用配置+ app_id:+ app_secret:+ encrypt_key:+ verification_token:+ allow_from:+ enabled: false+ xiaoyi:+ # 华为小艺 A2A 配置+ ak:+ sk:+ agent_id:+ ws_url1: wss://hag.cloud.huawei.com/openclaw/v1/ws/link+ ws_url2: wss://116.63.174.231/openclaw/v1/ws/link+ enable_streaming: true+ enabled: false++browser:+ # chrome_path can be a string or per-OS map.+ # Example:+ # chrome_path:+ # windows: "C:\\Users\\YOUR_USER\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe"+ # macos: "/Applications/Google Chrome.app"+ # linux: "/usr/bin/google-chrome"+ remote_debugging_address: "127.0.0.1"+ remote_debugging_port: 9222+ # empty means use launcher default profile path by OS+ user_data_dir: ""+ profile_directory: "Default"diff --git "a/docs/\345\277\203\350\267\263.md" "b/docs/\345\277\203\350\267\263.md"new file mode 100644index 0000000000..bb37b2f39e--- /dev/null+++ "b/docs/\345\277\203\350\267\263.md"@@ -0,0 +1,138 @@+# Heartbeat 心跳功能使用说明++Heartbeat(心跳)是 网关按固定间隔向 AgentServer 发送的探活请求,用于检测连接与 Agent 是否可用;若配置了 `workspace/HEARTBEAT.md`,还可驱动 Agent 周期性执行其中列出的任务。并且支持用户选择频道返回 Agent 执行的结果(默认web)。++---++## 1. 功能概述++- **探活**:每隔一定时间向 AgentServer 发一次请求,确认服务正常。+- **可选任务**:若项目根下存在 `workspace/HEARTBEAT.md`,Agent 会读取其中的「活跃的任务项」,按顺序执行并将结果写回工作目录;若无该文件或无任务,则仅返回 `HEARTBEAT_OK`。+- **结果回传**:心跳响应可通过配置回传到指定 Channel(如 Web 前端),便于在界面上查看最近一次心跳状态与内容。++---++## 2. 配置方式++配置方式共有三种,修改配置文件,修改环境变量,在web前端设置。++### 2.1 配置文件 `config/config.yaml`++在 `config/config.yaml` 中配置 `heartbeat` 段:++```yaml+heartbeat:+ # 心跳间隔(秒),默认 3600+ every: 3600+ # 心跳结果回传的 channel(如 "web" 表示 Web 前端)+ target: web+ # 心跳生效时间段(本地时间),仅在此区间内发送心跳;不配置则始终生效+ active_hours:+ start: 08:00+ end: 22:00+```+++| 字段 | 含义 | 说明 |+| -------------- | ------------ | --------------------------------------------------------------------------------------------- |+| `every` | 心跳间隔(秒) | 必须 > 0,例如 60 表示每分钟一次,3600 表示每小时一次。 |+| `target` | 回传目标 channel | 一般为 `web`,表示把心跳响应通过 WebChannel 推到前端;留空或不存在则不回传。 |+| `active_hours` | 生效时间段 | `start` / `end` 格式为 `HH:MM`(24 小时制)。仅当当前时间在 [start, end] 内才发心跳;不配置则全天生效。支持跨午夜(如 22:00–06:00)。 |+++### 2.2 环境变量(覆盖 YAML)+++| 变量名 | 含义 | 示例 |+| ---------------------------- | ------------ | ------ |+| `HEARTBEAT_INTERVAL` | 心跳间隔(秒) | `3600` |+| `HEARTBEAT_RELAY_CHANNEL_ID` | 回传目标 channel | `web` |+| `HEARTBEAT_TIMEOUT` | 单次心跳请求超时(秒) | `30` |+++环境变量优先级高于 `config/config.yaml` 中的 `heartbeat` 段。++### 2.3 前端「心跳」面板++Web 端左侧导航进入 **心跳** 面板,可:++- 查看当前心跳配置(间隔、回传目标、生效时间段)++- 修改上述配置并保存(会写回 `config/config.yaml` 的 `heartbeat` 段,并重启心跳服务)。++- 在 `最近 20 条心跳消息` 显示框里可以查看心跳历史记录,包括每次心跳的状态(正常 / 告警)、内容与时间。++---++## 3. HEARTBEAT.md 与周期性任务++### 3.1 文件位置与作用++- **路径**:项目根下的 `workspace/HEARTBEAT.md`(与 web端 文件一致)。在web端,该文件在面板右侧,可以点击 `编辑` 进行修改。++- **作用**:若该文件存在且「活跃的任务项」不为空,每次心跳时 Agent 会读取该段内容,按顺序执行任务,并把结果以 Markdown 等形式保存在工作目录;若文件不存在或无任务,则仅返回 `HEARTBEAT_OK`。++### 3.2 文件格式++`workspace/HEARTBEAT.md` 建议结构如下(与仓库内模板一致即可):++```markdown+# 心跳任务++在下面添加你希望 Agent 周期性执行的任务。+若没有任何活跃任务,Agent 会仅回复 HEARTBEAT_OK。++## 活跃的任务项++<!-- 在此行之后添加待执行任务,每行一条,以 "- " 开头 -->++例如:+- 检查邮件并汇总未读标题+- 生成今日工作摘要到 workspace/daily-summary.md++## 已完成的任务项++<!-- 将已完成的任务移动到此段或删除 -->+```++- **活跃的任务项**:`## 活跃的任务项` 与 `## 已完成的任务项` 之间的、以 `-` 开头的行会被解析为待办,由 Agent 按顺序执行。+- 以 `<!--` 开头的注释行会被忽略。+- 任务执行完成后,可将对应项移动到「已完成的任务项」或删除,避免重复执行。++### 3.3 Agent 行为简述++- 每次心跳请求会带上固定提示词,要求 Agent:若存在 `HEARTBEAT.md` 则读取「活跃的任务项」并依次完成,结果保存到工作目录;否则仅回复 `HEARTBEAT_OK`。+- 服务端实现会读取 `workspace/HEARTBEAT.md`,解析出任务列表,拼成一条 chat 请求发给 Agent,走正常对话流程;解析失败或任务列表为空时,直接返回 `HEARTBEAT_OK`。++---++## 4. 前端展示与事件++- **状态**:心跳面板和工具栏会显示最近心跳状态(如「最近心跳正常」/ 告警)、最近一次心跳内容与时间。+- **事件**:当 `target` 为 `web` 时,每次心跳响应会通过 `heartbeat.relay` 事件推到前端,用于更新状态与历史记录;若内容非 `HEARTBEAT_OK`,可能以弹窗形式提示,便于查看任务执行结果或异常信息。++---++## 5. 常见问题++**Q:修改了 `config/config.yaml` 的 heartbeat 段,为何没生效?**+A:应用启动时读取配置;若通过前端「心跳」面板修改,会写回 YAML 并自动重启心跳服务。若直接改 YAML,需重启整个应用(如重启 jiuwenclaw-web)后新配置才会生效。++**Q:如何只在工作时间发心跳?**+A:在 `heartbeat.active_hours` 中设置 `start` / `end`,例如 `start: 09:00`、`end: 18:00`,则仅在 09:00–18:00 之间发送心跳。++**Q:心跳请求超时怎么办?**+A:可设置环境变量 `HEARTBEAT_TIMEOUT`(秒)。超时后本次心跳记为失败,会在日志中打 WARNING++**Q:HEARTBEAT.md 放在哪里?**+A:必须放在项目根下的 `workspace/HEARTBEAT.md`,即与 Agent 使用的 workspace 目录一致;否则会被视为「无自定义任务」,仅返回 `HEARTBEAT_OK`。++---++## 6. 相关代码与配置索引++- 心跳服务实现:`jiuwenclaw/gateway/heartbeat.py`(`GatewayHeartbeatService`、`HeartbeatConfig`)。+- 配置读取与写回:`config/config.py` 的 `update_heartbeat_in_config`;应用启动时在 `app.py` 中从 `config/config.yaml` 的 `heartbeat` 段及环境变量构建 `HeartbeatConfig`。+- Agent 侧 HEARTBEAT.md 处理:`jiuwenclaw/agentserver/interface.py` 中根据 `request.params` 的 `heartbeat` 键读取 `workspace/HEARTBEAT.md` 并触发任务。+- 前端:`jiuwenclaw/web/src/components/HeartbeatPanel/`、`heartbeat.get_conf` / `heartbeat.set_conf`、`heartbeat.relay` 事件。+diff --git "a/docs/\345\277\253\351\200\237\345\274\200\345\247\213.md" "b/docs/\345\277\253\351\200\237\345\274\200\345\247\213.md"new file mode 100644index 0000000000..b6c80d4ae2--- /dev/null+++ "b/docs/\345\277\253\351\200\237\345\274\200\345\247\213.md"@@ -0,0 +1,81 @@+# 快速开始++JiuwenClaw提供两种安装方式:++**方式一:pip安装**++ 适合自行管理Python环境的用户++**方式二:源码运行**++ 适合基于JiuwenClaw进行二次开发适配的用户++环境依赖:++- python:>=3.13,<3.14+- nodejs:>=18.0.0(仅源码前端构建或 browser-use 功能需要,推荐 20 LTS)++++**方式一:pip安装(推荐)**++命令行执行++```bash+# 创建名为 Jiuwenclaw 的虚拟环境+python -m venv jiuwenclaw++# 激活 Jiuwenclaw 虚拟环境+jiuwenclaw\Scripts\activate++# 安装 Jiuwenclaw+pip install jiuwenclaw+```++安装完成后执行命令行运行++```bash+ jiuwenclaw-start+```++运行完成后即可在网页前端访问JiuwenClaw服务++++**方式二:源码运行**++下载JiuwenClaw代码++```bash+ git clone https://gitcode.com/openjiuwen/jiuwenclaw.git+```++进入源码目录执行uv同步操作++```bash+ uv sync+```++进入前端目录 jiuwenclaw/web 安装依赖++```bash+ cd jiuwenclaw/web+ npm install+```++静态运行前端服务++```bash+ npm run build+ cd ../../+ uv run jiuwenclaw-start+```++动态运行前端服务++```bash+ cd ../../+ uv run jiuwenclaw-start dev+```++运行完成后即可在网页前端访问JiuwenClaw服务\ No newline at end of filediff --git "a/docs/\346\212\200\350\203\275.md" "b/docs/\346\212\200\350\203\275.md"new file mode 100644index 0000000000..06f0337998--- /dev/null+++ "b/docs/\346\212\200\350\203\275.md"@@ -0,0 +1,89 @@+# Skills 技能系统说明++JiuwenClaw 的 **Skills (技能)** 系统允许为 Agent 动态地扩展能力、提供工具权限控制、以及补充系统提示词等功能。通过直观的前端「技能」面板和完善的后端机制,用户可以轻松地安装、卸载、导入和管理来自不同源的技能。++## 1. 技能来源++JiuwenClaw 支持安装多种来源的技能:++- **项目/内置 (Project/Built-in)**:随代码库或项目自带默认存在的技能。+- **本地 (Local)**:用户从本地文件系统(通过绝对路径或相对路径)导入的自定义技能。+- **市场 (Marketplace)**:从配置的第三方 Git 仓库(例如远程的技能合集仓库)下载和安装的外部插件与技能。++## 2. 前端「技能」面板++JiuwenClaw 提供了直观的「技能」面板,涵盖了技能的完整生命周期管理:++- **技能列表与检索**:+ - 展示所有可用技能,涵盖本地已安装和 Marketplace 中未安装的技能。+ - 支持通过关键词快速过滤(匹配名称、描述、作者或标签)。++++- **技能详情预览**:+ - 单击技能可查看其详细元数据,如:来源、状态(已安装/未安装/内置)、版本、作者等。+ - 显示该技能指定的 **允许工具 (Allowed Tools)**,直观了解其具备的扩展能力。+ - 支持直接在界面上预览技能文件 (`SKILL.md`) 的正文内容。++++- **操作与生命周期管理**:+ - **安装**:对来自 Marketplace 但尚未安装的技能,可以一键安装。支持手动指定 `plugin@marketplace` 的规格格式进行精确安装。+ - **卸载**:将不再需要的 Marketplace 技能移除,释放空间并保持环境整洁。+ - **导入本地技能**:通过输入服务器上的本地 `SKILL.md` 路径或文件夹目录,将其拷贝进入系统工作区并激活。++++- **源管理**:+ - **添加源**:添加一个第三方的 Marketplace 市场源 (Git 仓库地址),添加后默认禁用。+ - **启用源**:启用一个第三方的 Marketplace 市场源,启用后会自动拉取该市场的最新技能列表。+ - **禁用源**:禁用一个第三方的 Marketplace 市场源,禁用后不再显示该市场的技能列表,但不会删除该市场的本地缓存。+ - **删除源**:删除一个第三方的 Marketplace 市场源,删除后会删除该市场的本地缓存,并从系统中移除该市场。++++## 3. 后端「技能」管理机制++后端的底层管理由 `jiuwenclaw/agentserver/skill_manager.py` 驱动。++### 3.1 目录与文件存储+系统内所有的技能数据默认独立存放于 Workspace 目录下:+- **`workspace/agent/skills/`**:存放当前已被系统识别、安装或导入的可执行技能。每个技能以独立文件夹存在。+- **`workspace/agent/skills/_marketplace/`**:作为缓存目录,存放通过 Git 克隆下来的各个 Marketplace 仓库,内部包含了供用户安装的众多未激活插件。++### 3.2 状态持久化+整个技能生态的状态信息被持久化保存在 **`workspace/skills_state.json`** 中。该文件记录了:+- 用户配置的所有 Marketplace 列表及其启用/禁用状态。+- 当前已安装插件的详细记录(包含插件名、所属市场、版本、Git Commit Hash 及安装时间戳)。+- 手动导入的本地技能记录。++### 3.3 核心处理逻辑+- **远端同步 (Git 协作)**:系统在后台使用 `git clone` 和 `git pull` 等命令与 Marketplace 仓库交互,确保市场列表缓存随时保持更新。+- **元数据解析**:智能解析 `SKILL.md`。系统能够读取并解析文件开头的 `YAML frontmatter` (由 `---` 包裹的内容),抽取出如 `name`、`description`、`allowed_tools` 等关键元数据。若没有配置元数据,则智能回退以文件夹/文件名称作为技能名。+- **冲突处理机制**:在安装市场技能或导入本地技能发生同名冲突时,后端具备安全拦截机制,同时开放 `force` 强制覆盖参数处理更新逻辑。++## 4. 「技能」开发指南++如果你想自己编写一个技能,其核心就是一个命名为 `SKILL.md` 的文件。+你可以通过 JiuwenClaw 帮助你生成,推荐使用 `YAML frontmatter` 来声明其属性,标准结构如下:++```markdown+---+name: my-custom-skill+version: 1.0.0+author: your-name+description: 这个技能用于演示如何编写自定义 Agent 技能+tags: [demo, tools]+allowed_tools: [webSearch, readFile]+---++# 技能正文 / Agent 提示词++在此处编写希望赋予 Agent 的能力描述、系统背景设定或工作流指导。+当你将 allowed_tools 包含进来时,系统会在加载此技能时,动态给 Agent 赋予相应工具的执行权限。+```++**关键字段说明**:+- **`name`**:技能的唯一标识符(必需,若缺省会以文件名兜底)。+- **`allowed_tools`**:一个字符串数组。声明该技能需要请求哪些系统工具(如网络搜索、文件读取等)。+- **正文**:这部分内容在实际运行时,会被编织到大模型 Agent 的提示词上下文中,从而影响 Agent 的行为和心智。\ No newline at end of filediff --git "a/docs/\346\231\272\350\203\275\344\275\223.md" "b/docs/\346\231\272\350\203\275\344\275\223.md"new file mode 100644index 0000000000..4904e47b9d--- /dev/null+++ "b/docs/\346\231\272\350\203\275\344\275\223.md"@@ -0,0 +1,70 @@+# 智能体++`workspace` 是 JiuwenClaw 的运行时工作目录,存放 Agent 的记忆、技能、会话数据及用户可配置的心跳任务。在**源码模式**下使用项目根目录的 `workspace`;在**包安装模式**(whl)下,首次运行会将包内预置的 `workspace` 复制到 `~/.jiuwenclaw/workspace`。++++## 目录结构总览++```+workspace/+├── HEARTBEAT.md # 心跳任务配置(预置模板,用户可编辑)+├── agent-data.json # Agent 列表元数据(动态生成)+├── skills_state.json # Skill 安装/市场状态(动态生成)+├── agent/ # Agent 工作区+│ ├── memory/ # 记忆系统+│ │ ├── USER.md # 用户身份信息(用户/Agent 创建)+│ │ ├── MEMORY.md # 长期记忆(用户/Agent 创建)+│ │ ├── YYYY-MM-DD.md # 按日期的当日记忆(动态生成)+│ │ ├── messages.json # 消息压缩存储(动态生成)+│ │ └── memory.db # 向量检索数据库(动态生成)+│ ├── skills/ # 技能目录+│ │ ├── _marketplace/ # 市场仓库克隆目录(预置空目录)+│ │ └── <skill-name>/ # 各技能(预置 + 市场安装)+│ └── SOUL.md # Agent 灵魂/人格描述(预置)+└── session/ # 会话工作目录(动态生成)+ ├── sess_<id>/ # 普通会话+ │ ├── todo.md # 待办列表(TodoToolkit 创建)+ │ └── *.md, *.json # 会话中生成的文件+ └── heartbeat_<id>/ # 心跳任务会话+```++---++## 预置内容(Pre-configured)++随包或源码自带的、用户可直接使用或修改的内容:++| 路径 | 说明 |+|------|------|+| `HEARTBEAT.md` | 心跳任务模板。若存在且「活跃的任务项」不为空,Agent 会按心跳间隔读取并执行;否则仅返回 `HEARTBEAT_OK`。用户可在 Web 端编辑。 |+| `agent/SOUL.md` | Agent 灵魂/人格描述,用于系统提示词。 |+| `agent/skills/` | 内置技能目录。每个技能包含 `SKILL.md`、`prompts/`、`references/` 等。 |+| `agent/skills/_marketplace/` | 技能市场仓库克隆目录,预置为空,用于存放从市场安装的插件。 |+| `agent/memory/` | 记忆目录结构。`USER.md`、`MEMORY.md` 可由用户或 Agent 首次创建。 |++---++## 动态生成内容(Dynamically Generated)++由系统或 Agent 在运行过程中创建和更新的内容:++| 路径 | 说明 |+|------|------|+| `agent-data.json` | 由 `scripts/generate-agent-folders.js` 生成,供 Web 端展示 Agent 列表。 |+| `skills_state.json` | 由 `SkillManager` 维护,记录已安装的市场插件及状态。 |+| `agent/memory/YYYY-MM-DD.md` | 按日期生成的当日记忆文件,Agent 通过 `write_memory` 等工具写入。 |+| `agent/memory/messages.json` | 消息压缩存储,用于记忆系统。 |+| `agent/memory/memory.db` | 向量检索数据库(ChromaDB),用于 `memory_search`。 |+| `agent/skills/<skill>/evolutions.json` | 技能演化记录,由技能优化流程生成。 |+| `session/<session_id>/` | 每个会话对应一个子目录,由 `app.py` 创建。 |+| `session/<session_id>/todo.md` | 由 `TodoToolkit` 创建,存储该会话的待办列表。 |+| `session/<session_id>/*` | 会话中 Agent 生成的其他文件(如查询结果、解析数据等)。 |++---++## 相关配置++- **Skill 根目录**:`config/config.yaml` 中 `skill_base_dir` 默认为 `workspace/agent/skills`。+- **记忆工作目录**:`workspace/agent`(即 `get_agent_workspace_dir()`)。+- **会话目录**:`workspace/session`,每个 `session_id` 对应一个子目录。diff --git "a/docs/\346\265\217\350\247\210\345\231\250.md" "b/docs/\346\265\217\350\247\210\345\231\250.md"new file mode 100644index 0000000000..a9e90f137c--- /dev/null+++ "b/docs/\346\265\217\350\247\210\345\231\250.md"@@ -0,0 +1,303 @@+# 浏览器工具说明++## 1. 简介+浏览器工具是 JiuwenBot 中用于驱动真实浏览器完成网页任务的一套能力。它适合处理需要表单填写、页面点击、文件上传、网页检索等场景。++从使用方式上看,用户先在前端页面中配置本机 Chrome 路径并启动浏览器服务。系统会拉起一个可被授权的 Chrome 浏览器实例;后续在任务需要时,Agent 会连接并操控这个浏览器完成操作。++## 2. 技术简介+当前浏览器工具的核心链路如下:++- 前端页面提供“浏览器服务”面板,用于配置 Chrome 可执行文件路径并启动浏览器服务。+- 后端通过 `browser_start_client.py` 启动本机 Chrome,并开启远程调试能力。+- 浏览器自动化运行时基于 Playwright MCP 封装,浏览器工具通过 MCP client 与运行时通信。+- Agent 调用 `browser_run_task` 等工具时,运行时会把自然语言任务转换为浏览器操作步骤。+- 浏览器会按 `session_id` 复用,同一会话下可以保持登录态、页面上下文和授权状态。++可以简单理解为:++`前端配置 -> 启动 Chrome -> 运行时接管 Chrome -> Agent 在需要时操控浏览器执行任务`++## 3. 主要功能+浏览器工具目前主要支持以下能力:++- 打开网页并等待页面加载+- 在已登录网站中继续操作+- 点击按钮、输入文本、选择页面元素+- 执行多步网页任务+- 复用同一浏览器会话,减少重复登录+- 在需要时读取页面标题、URL、页面结果+- 配合附件上传、邮件填写、网页表单提交等复杂任务++## 4. 前端使用步骤+如果要在前端使用浏览器工具,请先确保本机已经安装 Chrome 浏览器。++### 步骤 1:确认 Chrome 安装路径和 Profile 目录+1. 打开 Chrome 浏览器。+2. 在地址栏输入 `chrome://version` 并回车。+3. 记录以下两个信息:+ - **可执行文件路径**:用于填写 `CHROME_PATH`+ - **个人资料路径 / Profile 路径**:用于确认当前浏览器使用的用户目录和配置目录++其中:+- 可执行文件路径一般是 `chrome.exe` 的完整路径。+- Profile 目录用于帮助确认当前浏览器账户和资料目录,方便排查登录态或授权问题。++### 步骤 2:打开前端的“浏览器服务”面板++1. 打开 JiuwenBot 前端页面。++++2. 进入“设置”中的“浏览器服务”区域。+3. 找到 Chrome 路径输入框。+++++### 步骤 3:填写 CHROME_PATH+1. 将在 `chrome://version` 中看到的 Chrome 可执行文件完整路径复制出来。++++2. 粘贴到前端页面的 `CHROME_PATH` 输入框中。+3. 点击“保存路径”。++### 步骤 4:启动浏览器服务+1. 在浏览器服务面板中点击“启动浏览器服务”。+2. 系统会调用后端启动脚本,拉起一个 Chrome 浏览器。+3. 如果启动成功,通常会弹出一个新的 Chrome 窗口。++这个弹出的 Chrome 就是后续可被 Agent 操控的浏览器实例。++### 步骤 5:在弹出的浏览器中完成必要授权+如果你的任务需要登录网站、授权邮箱、访问企业系统或使用已有账号状态,请在这个 Chrome 中完成必要的人工操作,例如:++- 登录 Gmail / Outlook / 企业邮箱+- 通过短信、验证码、扫码等人工认证+- 允许站点访问权限+- 打开需要操作的目标页面++### 步骤 6:交给 Agent 使用浏览器工具+完成授权后,用户就可以在对话里提出需要浏览器执行的任务,例如:++- 打开某个网页并读取信息+- 登录后继续点击和填写表单+- 在邮箱中写邮件、上传附件、等待确认++当任务需要浏览器时,Agent 会操控这个已经获得授权的 Chrome,而不是重新新建一个完全无状态的浏览器。++## 5. 后端配置方式+后端配置主要分为两部分:++- `config/config.yaml`:负责本机 Chrome 启动参数+- `.env`:负责浏览器运行时、MCP 通信、Playwright 和超时参数++### 5.1 config/config.yaml+`config/config.yaml` 中的 `browser` 配置块用于启动本机 Chrome。当前支持的字段如下:++```yaml+browser:+ chrome_path: "C:\\Users\\YOUR_USER\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe"+ remote_debugging_address: "127.0.0.1"+ remote_debugging_port: 9222+ user_data_dir: ""+ profile_directory: "Default"+```++字段说明:++- `browser.chrome_path`+ - Chrome 可执行文件路径+ - 可以是单个字符串,也可以按 OS 写成 map+ - 前端“保存路径”本质上就是把这个字段写回 `config/config.yaml`+- `browser.remote_debugging_address`+ - Chrome 远程调试监听地址+ - 一般保持 `127.0.0.1`+- `browser.remote_debugging_port`+ - Chrome 远程调试端口+ - 默认通常为 `9222`+- `browser.user_data_dir`+ - Chrome 用户数据目录+ - 留空时,启动脚本会按系统使用默认目录+- `browser.profile_directory`+ - 要使用的 Chrome Profile 名称+ - 常见值是 `Default`++如果你希望按操作系统分别配置 `chrome_path`,可以这样写:++```yaml+browser:+ chrome_path:+ windows: "C:\\Users\\YOUR_USER\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe"+ macos: "/Applications/Google Chrome.app"+ linux: "/usr/bin/google-chrome"+ remote_debugging_address: "127.0.0.1"+ remote_debugging_port: 9222+ user_data_dir: ""+ profile_directory: "Default"+```++### 5.2 .env 中的浏览器运行时配置+`.env` 中和浏览器工具直接相关的字段主要有以下几组。++#### A. 浏览器 MCP wrapper 配置++```dotenv+BROWSER_RUNTIME_MCP_ENABLED=1+BROWSER_RUNTIME_MCP_CLIENT_TYPE=streamable-http+BROWSER_RUNTIME_MCP_SERVER_ID=playwright_runtime_wrapper+BROWSER_RUNTIME_MCP_SERVER_NAME=playwright-runtime-wrapper+BROWSER_RUNTIME_MCP_SERVER_PATH=http://127.0.0.1:8940/mcp+BROWSER_RUNTIME_MCP_TIMEOUT_S=300+BROWSER_RUNTIME_MCP_HOST=127.0.0.1+BROWSER_RUNTIME_MCP_PORT=8940+BROWSER_RUNTIME_MCP_PATH=/mcp+BROWSER_RUNTIME_MCP_COMMAND=+BROWSER_RUNTIME_MCP_ARGS=+BROWSER_RUNTIME_MCP_AUTO_SSE_FALLBACK=1+```++字段说明:++- `BROWSER_RUNTIME_MCP_ENABLED`+ - 是否启用浏览器 MCP wrapper+ - `1` 表示启用+- `BROWSER_RUNTIME_MCP_CLIENT_TYPE`+ - MCP client 类型+ - 当前推荐 `streamable-http`+- `BROWSER_RUNTIME_MCP_SERVER_ID` / `BROWSER_RUNTIME_MCP_SERVER_NAME`+ - wrapper 的标识信息+- `BROWSER_RUNTIME_MCP_SERVER_PATH`+ - wrapper 访问地址+ - `streamable-http` 模式通常为 `http://127.0.0.1:8940/mcp`+- `BROWSER_RUNTIME_MCP_TIMEOUT_S`+ - MCP 连接或调用层的超时控制+- `BROWSER_RUNTIME_MCP_HOST` / `BROWSER_RUNTIME_MCP_PORT` / `BROWSER_RUNTIME_MCP_PATH`+ - 本地自动拉起 wrapper 时使用的 host、port、path+- `BROWSER_RUNTIME_MCP_COMMAND` / `BROWSER_RUNTIME_MCP_ARGS`+ - wrapper 启动命令覆盖项+ - 通常留空,使用系统默认行为即可+- `BROWSER_RUNTIME_MCP_AUTO_SSE_FALLBACK`+ - 某些模式下是否允许 SSE fallback++#### B. Playwright 官方 MCP 配置++```dotenv+PLAYWRIGHT_MCP_COMMAND=npx+PLAYWRIGHT_MCP_ARGS=-y @playwright/mcp@latest+PLAYWRIGHT_CDP_URL=http://127.0.0.1:9222+```++字段说明:++- `PLAYWRIGHT_MCP_COMMAND`+ - 启动官方 Playwright MCP 的命令+ - 当前默认是 `npx`+- `PLAYWRIGHT_MCP_ARGS`+ - 启动官方 Playwright MCP 的参数+- `PLAYWRIGHT_CDP_URL`+ - 连接到已启动 Chrome 的 CDP 地址+ - 这里应与 `config.yaml` 中的调试地址和端口保持一致++#### C. 超时与执行策略配置++```dotenv+PLAYWRIGHT_TOOL_TIMEOUT_S=300+BROWSER_TIMEOUT_S=300+BROWSER_ALLOW_SHORT_TIMEOUT_OVERRIDE=0+```++字段说明:++- `PLAYWRIGHT_TOOL_TIMEOUT_S`+ - 浏览器工具执行的总 watchdog 超时+- `BROWSER_TIMEOUT_S`+ - 浏览器任务默认长超时+ - 如果模型传入的 `timeout_s` 更小,默认会被钳回至少这个值+- `BROWSER_ALLOW_SHORT_TIMEOUT_OVERRIDE`+ - 是否允许模型把任务超时改得更短+ - `0` 表示不允许,推荐保持为 `0`++### 5.3 推荐的最小后端配置+如果你要跑当前推荐链路,至少保证下面这些字段正确:++`config/config.yaml`++```yaml+browser:+ chrome_path: "C:\\Users\\YOUR_USER\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe"+ remote_debugging_address: "127.0.0.1"+ remote_debugging_port: 9222+ user_data_dir: ""+ profile_directory: "Default"+```++`.env`++```dotenv+BROWSER_RUNTIME_MCP_ENABLED=1+BROWSER_RUNTIME_MCP_CLIENT_TYPE=streamable-http+BROWSER_RUNTIME_MCP_SERVER_PATH=http://127.0.0.1:8940/mcp+PLAYWRIGHT_MCP_COMMAND=npx+PLAYWRIGHT_MCP_ARGS=-y @playwright/mcp@latest+PLAYWRIGHT_CDP_URL=http://127.0.0.1:9222+PLAYWRIGHT_TOOL_TIMEOUT_S=300+BROWSER_TIMEOUT_S=300+BROWSER_ALLOW_SHORT_TIMEOUT_OVERRIDE=0+```++## 6. 使用建议+为了让浏览器工具更稳定,建议遵循以下做法:++- 尽量使用本机真实安装的 Chrome,而不是临时浏览器。+- 启动浏览器服务后,优先在弹出的 Chrome 中完成登录和授权。+- 对于长流程任务,尽量保持同一个会话,避免频繁更换浏览器状态。+- 如果任务涉及邮箱、企业系统、网银等场景,建议先人工完成一次登录,再交给 Agent 继续操作。+- 如果浏览器状态异常,可以重新启动浏览器服务后再测试。+- 建议让 `PLAYWRIGHT_CDP_URL` 与 `config.yaml` 中的远程调试地址、端口保持一致。+- 建议保持 `BROWSER_ALLOW_SHORT_TIMEOUT_OVERRIDE=0`,避免模型把浏览器任务拆成过多短调用。++## 7. 相关代码与配置索引+下面这些文件是浏览器工具链路中最重要的入口。++### 前端+- `jiuwenbot/web/src/components/BrowserPanel/index.tsx`+ - 前端浏览器服务面板+ - 负责读取路径、保存路径、触发“启动浏览器服务”++### 后端应用入口+- `app.py`+ - 提供 `path.get`、`path.set`、`browser.start` 等前端调用入口++### Chrome 启动脚本+- `jiuwenbot/agentserver/tools/browser_start_client.py`+ - 读取 `config/config.yaml` 中的 `browser.*` 配置+ - 启动带远程调试能力的 Chrome++### 浏览器 MCP 接入+- `jiuwenbot/agentserver/tools/browser_tools.py`+ - 浏览器 MCP wrapper 的接入、自动拉起、client patch、配置构建++### 浏览器运行时+- `jiuwenbot/agentserver/tools/browser-move/src/playwright_runtime_mcp_server.py`+ - 浏览器 runtime 的 MCP server 入口+- `jiuwenbot/agentserver/tools/browser-move/src/playwright_runtime/runtime.py`+ - 浏览器 runtime 编排层+- `jiuwenbot/agentserver/tools/browser-move/src/playwright_runtime/service.py`+ - 浏览器任务执行、session 复用、timeout guardrails+- `jiuwenbot/agentserver/tools/browser-move/src/playwright_runtime/agents.py`+ - 主编排 agent 与浏览器 worker agent 的提示词和构造逻辑+- `jiuwenbot/agentserver/tools/browser-move/src/playwright_runtime/config.py`+ - Playwright MCP 与浏览器运行时配置解析++### 配置文件+- `config/config.yaml`+ - Chrome 启动参数+- `.env`+ - 浏览器 runtime、MCP、Playwright、超时等环境变量+- `.env.template`+ - 环境变量模板++## 8. 一句话总结+浏览器工具的本质,是让 Agent 在用户已经授权过的真实 Chrome 上执行网页操作;前端负责配置和启动,后端负责接管和自动化执行。diff --git "a/docs/\350\201\212\345\244\251.md" "b/docs/\350\201\212\345\244\251.md"new file mode 100644index 0000000000..42f4b831d1--- /dev/null+++ "b/docs/\350\201\212\345\244\251.md"@@ -0,0 +1,316 @@+# 聊天++## 一、任务规划:让智能体从容应对复杂变局++在人工智能应用日益复杂的今天,如何让智能体在处理长序列任务时保持目标清晰、执行有序,已成为提升人机协作效率的核心命题。试想这样一个典型场景:**智能体正在协助用户处理12月的发票,此时用户突然想起1月的发票也需要处理,并希望将两份合并后统一发送一封通知邮件。用户期望的是能够动态打断当前流程,基于新需求插入1月发票任务,而不是让新任务在队列中排队等待重复执行。**++为应对这类瞬息万变的动态需求,JiuwenClaw 引入了**任务规划模式**。它通过一套体系化的待办事项工具,赋予智能体结构化的任务拆解与动态管理能力,使其从“单线执行者”蜕变为“灵活的协作者”。++[演示视频](../assets/videos/todo.mp4)++### 核心机制:动态任务拆解与实时响应++该模式的核心逻辑在于:当用户提出模糊或复杂的请求时,智能体会自动将其解析为一系列可执行的子任务,并通过内置的待办工具进行系统性记录。在执行过程中,每完成一个子任务,智能体都会实时更新其状态,确保任务进度始终清晰可控。++更为关键的是,JiuwenClaw 支持**用户的动态干预**——无论是追加新需求,还是在现有任务序列中插入紧急事项,系统均可借助 **openJiuwen 的智能体中断恢复与任务调度能力**进行灵活响应,确保整体任务流的连贯性与可控性,让用户始终掌握主导权。++### 工具赋能:一套完整的待办事项工具包++JiuwenClaw 提供了一套覆盖任务管理全流程的工具包(`TodoToolkit`),任务以 Markdown 形式持久化至 `workspace/session/{session_id}/todo.md`,按会话隔离,支持并发安全读写。++#### 工具一览++| 工具 | 说明 |+| :--- | :--- |+| `todo_create` | 创建初始待办清单。**注意**:若该会话已有 todo 列表则调用失败,需改用 `todo_insert` 追加任务 |+| `todo_insert` | 在指定索引位置插入新任务,已有任务自动后移。若 todo 列表不存在,则自动创建 |+| `todo_complete` | 标记任务为已完成,可附带简要结果(`result`) |+| `todo_remove` | 删除指定任务,剩余任务自动重新编号 |+| `todo_list` | 列出当前所有待办事项及状态 |++#### 任务状态++| 状态 | 说明 |+| :--- | :--- |+| `waiting` | 待执行 |+| `running` | 执行中 |+| `completed` | 已完成 |+| `cancelled` | 已取消 |++#### 典型流程++1. 用户提出复杂需求 → 智能体调用 `todo_create` 拆解为子任务+2. 用户中途插入新需求 → 智能体调用 `todo_insert` 在合适位置插入+3. 完成某子任务 → 调用 `todo_complete` 并填写结果+4. 取消或作废某任务 → 调用 `todo_remove`+5. 随时调用 `todo_list` 掌握全局进度++借助这套工具,JiuwenClaw 有效解决了智能体在处理长周期、多步骤任务时常见的**目标丢失与执行断层问题**,让人机协作更加顺畅、高效。无论是日常事务管理,还是复杂业务流程的自动化推进,JiuwenClaw 的任务规划模式都将成为您不可或缺的智能助手。++用户可以在对话页面自行选择是否开启任务规划能力,当前聊天会默认开启任务规划,若关闭,则变更为经典的ReAct执行模式。+++---++## 二、上下文压缩卸载:为 AI“瘦身”,让长对话更流畅++在日常使用智能体的过程中,随着对话轮次的增加,用户往往会遇到一个典型问题:AI的“记忆力”似乎逐渐下降——响应变慢、忽略早期信息,甚至在处理财务账单等关键内容时出现错误。其根本原因在于技术层面的一个核心瓶颈:**上下文窗口的容量限制**。如同人类短期记忆的局限性,AI在单轮对话中可承载的信息量也是有限的。++为此,JiuwenClaw 引入了基于 openJiuwen 的 **上下文卸载(Context Offload)机制**。其设计理念可以类比为“办公桌整理”:当桌面文件(消息数量)或纸张厚度(Token数量)超出预设阈值时,系统将自动识别并归档那些“大而次要”的内容,仅保留一份简要索引,从而为当前任务腾出更多“注意力”。这使得即便面对长时间的财务对账或数据分析任务,AI也能保持高度专注与连贯性。++### 如何配置上下文卸载机制?++为使系统能够灵活应对多样化的对话场景,JiuwenClaw 提供了一套可动态调整的“上下文管理策略”,核心配置参数包括:++| 参数 | 说明 |+| :--- | :--- |+| **触发条件** | 当消息数量超过 `messages_threshold`(例如 3 条),或累计 Token 数超出 `tokens_threshold`(默认 20000)时,系统将自动启动上下文瘦身流程 |+| **识别超长消息** | 通过 `large_message_threshold`(例如 1000 Token)界定何为“大消息”,系统将优先对这些占用大量资源的消息进行处理 |+| **选择性归档** | 利用 `offload_message_type` 参数,可指定对某一角色消息进行压缩(例如仅压缩工具返回的冗长数据,保留用户与助手的核心对话) |+| **压缩方式** | 系统将通过采样或摘要的方式提取关键信息,并插入索引标记 `[[OFFLOAD:...]]`,在压缩内容的同时保留上下文检索能力 |+| **保护近期重要对话** | 可设置 `messages_to_keep` 强制保留最近若干条消息,或启用 `keep_last_round` 确保最新一轮的用户-助手对话完整保留 |++[演示视频](../assets/videos/compression.mp4)++通过这一动态上下文管理机制,JiuwenClaw 实现了对 AI 上下文的智能调控——既保障关键信息(如财务账单、合同条款)不丢失,也有效排除冗余数据的干扰,确保长对话始终保持高效与连贯。无论是跨多日的项目跟进,还是反复核对的数据分析任务,JiuwenClaw 的上下文瘦身机制都将为每一次交互提供稳定、流畅的体验。++---++## 三、Skill 自演进++Agent 系统普遍存在一个问题:能力定义一旦写好,就基本不会再变了。工具调用出错,记录一条日志;用户反馈说理解有误,下次还是同样的逻辑。能力的上限,从部署那天就已经固定了。++JiuwenClaw 基于 **openJiuwen 自演进框架**,以 `SkillCallOperator` 算子统一管理所有 Skills 的读写与演进分发。在此基础上,系统内置了一套演进信号检测机制,持续监听执行过程和对话内容,将真实使用中遇到的问题转化为 Skills 的改进输入。++### 核心组件++#### SkillCallOperator++SkillCallOperator 是 JiuwenClaw 基于 openJiuwen 框架实现的 Operator 算子,负责 Skills 的统一管理。++作为 JiuwenClaw 与 Skills 交互的核心入口,它承担以下职责:+- 读取 Skill 定义(SKILL.md)+- 执行 Skill 指令+- 自动加载 Skill 积累的演进经验++当系统检测到需要改进的地方,这些改进会先存入 `evolutions.json`,SkillCallOperator 会把它们合并后一起返回给 Agent。这意味着每次调用 Skill 时,都能获取到最新的演进经验。++#### SkillOptimizer++SkillOptimizer 是 JiuwenClaw 基于 openJiuwen 框架实现的 Optimizer 优化器,负责驱动整个 Skill 演进流程。++它的核心工作包括:+1. **接收信号**:从 SignalDetector 接收异常信号,理解当前 Skill 遇到了什么问题+2. **分析判断**:结合对话上下文,判断这个问题是否值得记录+3. **生成改进**:调用 LLM 生成具体的改进建议+4. **执行记录**:将生成的改进方案写入演进记录++当你使用 `/evolve` 命令时,背后就是 SkillOptimizer 在工作。++#### SkillEvolutionManager++SkillEvolutionManager 是演进生命周期的核心管理者,负责协调各个阶段的演进工作:++- **信号扫描**:调用 SignalDetector 提取需要演进的事件+- **记录生成**:调用 LLM 将信号转化为可执行的改进方案+- **存储管理**:维护 `evolutions.json` 文件的读写+- **内容固化**:将待定演进记录合并到原始 SKILL.md++它衔接了 SignalDetector、SkillOptimizer 和 SkillCallOperator,形成完整的演进闭环。++#### SignalDetector++SignalDetector 是演进信号的检测器,持续监听对话和执行结果中的异常。++它基于规则工作,不需要调用 LLM,因此响应速度快:+- 监听每一次工具执行的结果,捕捉错误关键词+- 捕捉用户的纠正反馈(如"不对"、"应该"等)+- 判断信号应该归到哪个 Skill 并关联上下文++---++### 识别哪些信号?++信号来源主要分两类:++#### 执行异常++包括工具调用超时、接口返回报错、代码执行中的异常中断等。只要任务执行中出现明确的失败字样,系统会自动识别并将其归因到当前正在执行的 Skill 上。++检测关键词包括但不限于:+- 通用错误:`error`、`exception`、`failed`、`failure`、`timeout`+- 网络相关:`connection error`、`econnrefused`、`enoent`+- 其他:`permission denied`、`command not found`++#### 用户纠错++当你说“不对”、“应该换个方式”、“你理解错了”这类话语时,系统不会将其当作普通对话略过,而是会识别为一次有效的负反馈。这类信号往往比报错日志更有价值——它直接点出了 Skill 在理解或处理逻辑上的偏差。++检测模式包括:+- 中文:`不对`、`不是这`、`错 了`、`应该 是`、`你搞错了`、`纠正一下`+- 英文:`that's wrong`、`you're wrong`、`should be`、`actually`++---++### 信号捕获之后做什么?++系统会全程追踪当前活跃的 Skill 模块,确保每个信号都能准确对应到具体的 Skill 文档。具体的改写逻辑如下:++#### 异常案例 → 排障建议++执行失败的现场记录会被整理成具体的操作建议,补充进 Skills 的 `Troubleshooting`(已知问题与处理方式)部分。下次遇到相同场景,Skill 可以主动提示已知的风险点和应对方式。++```text+原始信号:+Tool 'weather-check' returned: Error: API timeout after 30s++演进为:+## Troubleshooting+- 遇到天气 API 超时错误时,优先检查网络连接,可考虑添加重试机制或降级策略。+```++#### 纠错交互 → 示例补充++用户纠错的对话片段会作为新的 `Example`(正确用法示例)写入 Skills 文档,让后续的调用更容易理解用户的真实意图。++```text+原始信号:+User: 不对,我说的是查询上海不是北京++演进为:+## Examples+- 用户说"查询上海天气"时应调用上海的经纬度参数,而非默认北京+```++---++### 如何使用++使用 JiuwenClaw 时,你可以通过以下方式与 Skill 演进功能交互:++#### 自动演进(无需干预)++系统会在每次工具执行和对话结束后自动检测演进信号。当检测到执行异常或用户纠错时,会自动生成演进记录并存入 `evolutions.json`。++你无需做任何操作,演进在后台静默进行。下次调用该 Skill 时,会自动加载包含演进经验的内容。++#### 手动触发演进++如果希望立即为某个 Skill 触发演进,可以输入:++```bash+/evolve <skill_name>+```++例如:++```bash+/evolve weather-check+```++系统会扫描最近的对话和执行记录,为该 Skill 生成演进经验,并显示生成结果。++#### 查看演进状态++想知道哪些 Skill 有待固化的演进经验,可以输入:++```bash+/evolve list+```++系统会列出所有包含待演进记录的 Skill 及具体内容摘要。++#### 固化演进经验++当确认演进记录有效后,可以将其永久写入 Skill 源文档:++```bash+/solidify <skill_name>+```++例如:++```bash+/solidify weather-check+```++固化后的内容会成为 Skill 的永久组成部分,下次加载时自动生效。++---++### 演进流程++```text+用户对话 / 工具执行+ │+ ▼+┌───────────────────┐+│ SignalDetector │ 监听并识别信号+│ 检测执行异常 │+│ 检测用户纠错 │+└────────┬──────────┘+ │+ ▼+┌─────────────────────────────┐+│ SkillEvolutionManager │+│ .scan() │ 提取演进信号+└────────────┬───────────────┘+ │+ ▼+┌─────────────────────────────┐+│ SkillEvolutionManager │+│ .generate() │ LLM 生成演进记录+└────────────┬───────────────┘+ │+ ▼+┌─────────────────────────────┐+│ evolutions.json │ 写入待固化记录+│ (Skill 目录下) │+└────────────┬───────────────┘+ │+ ▼ (可选)+┌─────────────────────────────┐+│ .solidify() │ 合并到 SKILL.md+└─────────────────────────────┘+```++---++### 演进效果++这套机制让 Skills 不再是一次性的静态文档,而是随着真实使用持续迭代的活文档。不需要任何人工干预,智能体在日常运转过程中就完成了对自身的改进。++演进后的 Skill 在下次被调用时,会自动加载包含演进经验的内容,从而:+- 主动提示已知的风险点和应对方式+- 更准确地理解用户的真实意图+- 持续优化自身的表现++---++### 演进文件++演进记录存储在每个 Skill 目录下的 `evolutions.json` 文件中:++```json+{+ "skill_id": "<skill_name>",+ "version": "1.0.0",+ "updated_at": "2024-01-15T10:30:00Z",+ "entries": [+ {+ "id": "ev_1234abcd",+ "source": "execution_failure",+ "timestamp": "2024-01-15T10:30:00Z",+ "context": "API timeout after 30s",+ "change": {+ "section": "Troubleshooting",+ "action": "append",+ "content": "## 常见问题\n- 遇到 API 超时错误时..."+ },+ "applied": false+ }+ ]+}+```++其中 `applied: false` 表示待固化状态,`applied: true` 表示已固化到 SKILL.md。diff --git "a/docs/\350\256\260\345\277\206.md" "b/docs/\350\256\260\345\277\206.md"new file mode 100644index 0000000000..e4f9d02f01--- /dev/null+++ "b/docs/\350\256\260\345\277\206.md"@@ -0,0 +1,128 @@+# 记忆系统++记忆系统让 JiuwenClaw 拥有跨对话的持久记忆能力,自动将关键信息写入文件长期保存,配合语义检索随时召回。++## 配置说明++记忆检索默认进行 BM25 全文检索,用户可选择配置 `EMBED_API_KEY`,使用向量 + BM25 混合检索以获得最佳召回效果。通过以下环境变量配置 Embedding 服务,用于语义向量搜索:++| 环境变量 | 说明 |+|----------|------|+| EMBED_API_KEY | Embedding 服务的 API Key(不配置则使用 mock provider) |+| EMBED_API_BASE | Embedding 服务的 URL |+| EMBED_MODEL | Embedding 模型名称 |+++++## 记忆文件结构++记忆采用纯 Markdown 文件存储,Agent 通过文件工具直接操作:++```+{workspace_dir}/memory+├── MEMORY.md # 长期记忆+├── USER.md # 用户档案+└── YYYY-MM-DD.md # 每日会话记录+```++### memory/MEMORY.md(长期记忆)++存放长期有效、极少变动的关键信息。+- **用途**:存储决策、偏好、持久性事实+- **更新**:Agent 通过 write / edit 文件工具写入++### USER.md(用户档案)++存储当前用户的基本信息,帮助 Agent 更好地个性化服务。+- **用途**:存储用户姓名、职业、爱好、位置等个人信息+- **更新**:Agent 通过 write / edit 文件工具更新用户信息++### YYYY-MM-DD.md(每日日志)++每天一页,追加写入,记录当天的工作与交互。+- **用途**:记录日常笔记和运行上下文+- **更新**:Agent 通过 write / edit 文件工具追加写入,对话过长需要进行总结时自动触发++## 记忆写入触发++在与用户交互过程中,JiuwenClaw 会根据需要自动触发记忆写入,将关键信息写入记忆文件长期保存。++| 信息类型 | 写入目标 | 操作方式 | 示例 |+|----------|----------|----------|------|+| 决策、偏好、持久事实 | memory/MEMORY.md | write / edit 工具 | "项目使用 Python 3.12"、"偏好 pytest 框架" |+| 用户个人信息 | memory/USER.md | write / edit 工具 | 用户姓名、职业、爱好等 |+| 日常笔记、运行上下文 | memory/YYYY-MM-DD.md | write / edit 工具 | "今天修复了登录 Bug"、"部署了 v2.1" |+| 用户说"记住这个" | memory/YYYY-MM-DD.md | write 工具 | "记住我把项目文件存在了D盘" |+++## 架构概览++```+用户 / Agent+ │+ ▼+MemoryIndexManager 长期记忆管理+ ├── 记忆持久化(文件工具)+ ├── 文件监控(watchdog)+ ├── 语义搜索(向量 + BM25)+ └── 文件读取(按需加载)+```++### 长期记忆管理能力++| 能力 | 说明 |+|------|------|+| 记忆持久化 | 通过文件工具(read / write / edit)将关键信息写入 Markdown 文件,文件即真实数据源 |+| 文件监控 | 通过 watchdog 监控文件改动,异步更新本地数据库(语义索引 & 向量索引) |+| 语义搜索 | 通过向量嵌入 + BM25 混合检索,按语义召回相关记忆 |+| 文件读取 | 直接通过文件工具读取对应的 Memory Markdown 文件,按需加载保持上下文精简 |+++### 技术架构++```+┌─────────────────────────────────────────────────────────────────┐+│ MemoryIndexManager │+├─────────────────────────────────────────────────────────────────┤+│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────┐ │+│ │ Config │ │ Embedding │ │ SQLite Database │ │+│ │ (config.py) │ │ Provider │ │ - chunks │ │+│ └─────────────┘ └─────────────┘ │ - files │ │+│ │ │ │ - embedding_cache │ │+│ │ │ │ - chunks_fts (FTS5) │ │+│ │ │ │ - chunks_vec (vec0) │ │+│ │ │ └─────────────────────┘ │+│ │ │ │ │+│ ▼ ▼ ▼ │+│ ┌───────────────────────────────────────────────────────────┐ │+│ │ Search Pipeline │ │+│ │ Query ──► Embed ──► Vector Search ──┐ │ │+│ │ ├─► Merge ──► Results| |+│ │ Query ──► FTS5 Search ──────────────┘ │ │+│ └───────────────────────────────────────────────────────────┘ │+└─────────────────────────────────────────────────────────────────┘+```+++## 记忆检索++### 记忆检索方式++Agent 有两种方式获取记忆:++| 方式 | 适用场景 | 示例 |+|------|----------|------|+| 语义搜索 | 不确定记在哪个文件,按意图模糊召回 | "之前关于部署流程的讨论" |+| 直接读取 | 已知具体日期或文件路径,精确查阅 | 读取 `memory/2026-02-28.md` |++### 混合搜索流程++```+Query ──► Embed ──► Vector Search ──┐+ ├─► Merge ──► Results+Query ──► FTS5 Search ──────────────┘+```++搜索结果按混合分数排序:`score = vectorWeight * vectorScore + textWeight * textScore`。默认向量检索权重 0.7,全文检索权重 0.3。+diff --git "a/docs/\351\205\215\347\275\256\344\277\241\346\201\257.md" "b/docs/\351\205\215\347\275\256\344\277\241\346\201\257.md"new file mode 100644index 0000000000..f41d4a2a7e--- /dev/null+++ "b/docs/\351\205\215\347\275\256\344\277\241\346\201\257.md"@@ -0,0 +1,77 @@+# 配置说明++JiuwenClaw 的配置来源包括:`config/config.yaml`、`.env` 环境变量、以及 Web 前端各面板。本文档说明**哪些可在前端配置**、**哪些需手动修改文件**,以及各配置项的作用。++---++## 一、前端配置面板可配置++以下配置可通过 Web 端对应面板修改并保存,系统会自动写回配置文件或 `.env`。++**入口**:左侧导航 → **配置**++++**保存目标**:`.env`(环境变量)++| 配置项 | 环境变量 | 说明 |+|--------|----------|------|+| `api_base` | `API_BASE` | 模型 API 基础地址(如 `https://api.deepseek.com`) |+| `api_key` | `API_KEY` | 模型 API 密钥 |+| `model` | `MODEL_NAME` | 模型名称(如 `deepseek-chat`) |+| `model_provider` | `MODEL_PROVIDER` | 模型提供商(如 `OpenAI`) |+| `embed_api_base` | `EMBED_API_BASE` | Embed 服务 API 地址 |+| `embed_api_key` | `EMBED_API_KEY` | Embed 服务 API 密钥 |+| `embed_model` | `EMBED_MODEL` | Embed 模型名称 |+| `jina_api_key` | `JINA_API_KEY` | Jina 搜索 API 密钥 |+| `serper_api_key` | `SERPER_API_KEY` | Serper 搜索 API 密钥 |+| `perplexity_api_key` | `PERPLEXITY_API_KEY` | Perplexity API 密钥 |+| `evolution_auto_scan` | `EVOLUTION_AUTO_SCAN` | 是否每轮对话后自动扫描可演进技能(`true`/`false`) |++**说明**:保存后后端会重启以加载新配置。模型配置(`api_base`、`api_key`、`model`、`model_provider`)为必填项。++## 二、前端不可配置++以下配置需通过**直接编辑 `config/config.yaml`** 或 **`.env`** 修改,无 Web 界面。++### 1. config.yaml 中仅文件可改的项++| 路径 | 说明 |+|------|------|+| `react.agent_name` | Agent 名称,默认 `main_agent` |+| `react.max_iterations` | 最大迭代轮数,默认 50 |+| `react.context_engine_config.enable_reload` | 是否启用上下文重载 |+| `react.evolution.enabled` | 是否启用 Skills 在线自演进 |+| `react.evolution.skill_base_dir` | Skill 根目录,默认 `workspace/agent/skills` |+| `tools` | 启用的工具列表(如 `todo`、`skill`) |+| `browser.remote_debugging_address` | 远程调试地址 |+| `browser.remote_debugging_port` | 远程调试端口 |+| `browser.user_data_dir` | Chrome 用户数据目录 |+| `browser.profile_directory` | Chrome 配置文件目录 |++---++### 2. 仅环境变量可配置的项++| 环境变量 | 说明 |+|----------|------|+| `HEARTBEAT_TIMEOUT` | 单次心跳请求超时(秒) |+| `HEARTBEAT_RELAY_CHANNEL_ID` | 心跳回传 channel(覆盖 config.yaml 的 `target`) |+| `HEARTBEAT_INTERVAL` | 心跳间隔(秒),覆盖 config.yaml 的 `every` |+| `BROWSER_RUNTIME_MCP_ENABLED` | 是否启用浏览器 MCP 运行时 |+| `BROWSER_RUNTIME_MCP_CLIENT_TYPE` | MCP 客户端类型(`stdio` / `sse` / `streamable-http`) |+| `BROWSER_RUNTIME_MCP_SERVER_PATH` | MCP 服务地址 |+| `PLAYWRIGHT_CDP_URL` | Playwright 连接 Chrome 的 CDP 地址 |+| `PLAYWRIGHT_TOOL_TIMEOUT_S` | Playwright 工具超时(秒) |+| `BROWSER_TIMEOUT_S` | 浏览器任务超时(秒) |+| `JIUWENCLAW_CONFIG_DIR` | 自定义 config 目录路径 |++更多环境变量见 `.env.template`。++---++### 3. 配置优先级++- **环境变量** > **config.yaml**+- 例如:`config.yaml` 中 `react.model_name: ${MODEL_NAME:-deepseek-chat}` 会先读 `MODEL_NAME` 环境变量,无则用默认值 `deepseek-chat`。+- 前端 ConfigPanel 保存的项会写入 `.env`,下次启动时优先加载。diff --git "a/docs/\351\242\221\351\201\223.md" "b/docs/\351\242\221\351\201\223.md"new file mode 100644index 0000000000..bbabf91587--- /dev/null+++ "b/docs/\351\242\221\351\201\223.md"@@ -0,0 +1,131 @@+# 简介: **通用聊天界面,统一消息中枢**++JiuwenClaw 的**频道**,是您与不同聊天平台对话的**渠道**。JiuwenClaw 已经实现了**鸿蒙小艺、飞书**等channel的无缝接入,并持续拓展至更多元渠道。可以直接在通过 **飞书**、**鸿蒙生态终端的小艺app** 应用直接与JiuweClaw对话。++配置频道有两种方式:++* **网页配置**(推荐)— 在 JiuwenClaw前端页面,点击 **`智能体` **/ **`频道`**卡片,在频道管理模块,填写相关配置。++* **手动编辑 `config.yaml`** — 默认在 `~/.jiuwenclaw/config.yaml` (由首次 `jiuwenclaw-start` 启动时自动生成),将需要的频道设 `enabled: true` 并填好鉴权信息;保存后自动重载,无需重启。++++# 小艺++[演示视频](../assets/xiaoyi_channel.mp4)++## 1. 创建小艺智能体++通过在 [小艺开放平台 ](https://developer.huawei.com/consumer/cn/hag/abilityportal/#/)创建JiuwenClaw模式的智能体,即可与JiuwenClaw服务无缝接入。++++第一步: 创建JiuwenClaw模式的智能体++++第二步:创建凭证及添加白名单++点击新建凭证,并**保存ak与sk信息**。++++++++小艺开放平台为开发者提供真机调试能力,通过配置白名单分组,添加用户账号,可以在鸿蒙终端与小艺智能体对话。添加成功并上架成功后,可在终端小艺应用中使用该智能体。++++++++勾选新建的用户组++++第三步:上架智能体++填写开场白对话,点击上架按钮++++## 2. 绑定频道++方式一: 将小艺开放平台获取到的**ak、sk、agentId**信息,填写至JiuwenClaw的小艺频道,开启使用,点击保存即可开启对话了。++++方式二: 修改 `~/.jiuwenclaw/config/config.yaml`++``````+channels:+ xiaoyi:+ # 华为小艺 A2A 配置+ ak: "小艺平台凭证 ak"+ sk: "小艺平台凭证 sk"+ agent_id: "创建的agent ID"+ enable_streaming: true+ enabled: true+``````++保存后若服务已运行会自动重载,未运行可以执行 `jiuwenclaw-start` 启动服务。++++## 3. 智能体对话++方式1: 直接在网页与智能体应用对话++++方式2:在鸿蒙终端小艺应用,找到已上架的应用,直接对话++++++# 飞书+++## 1. 创建飞书自建应用+1. 访问 [飞书开放平台](https://open.feishu.cn/) 并登录。+2. 进入**开发者后台**,点击**创建企业自建应用**。+3. 填写应用名称、描述,并上传图标,点击**创建**。++## 2. 添加机器人能力+1. 在应用配置页面,左侧选择**添加应用能力**。+2. 点击**机器人**下的**添加**按钮。++## 3. 记录机器人应用凭证+1. 进入飞书机器人管理后台+2. 记录 App ID 与 App Secret供后续配置使用++## 4. 配置权限+1. 左侧选择**权限管理** -> **API权限**。+2. 搜索并开通以下关键权限(用于收发消息):+ - `im:message` 相关:以应用的身份发消息、获取用户发给机器人的单聊消息、接收群聊中@机器人消息事件。+ - `contact:user.employee_id:readonly`:获取用户ID信息。+ - 也可以批量导入权限,参考火山引擎文档中的权限列表。++## 5. 配置事件订阅(接收消息)+1. 左侧选择**事件与回调**。+2. **添加事件**:+ - 点击**添加事件**,搜索并添加 `im.message.receive_v1`(接收消息事件) 。+ - 如果希望收到消息后能被动回复,此事件必须添加。+3. (可选)**配置加密策略**:如果启用了加密,需要保存 `Encrypt Key`。++## 6. 发布应用+1. 左侧选择**版本管理与发布**,点击**创建版本** 。+2. 填写版本号、更新说明,选择可用范围(通常选择**全体成员**或部分成员)。+3. 提交审核。如果企业开启了免审,版本会立即生效 。+4. 飞书APP中登陆提交应用的账号即可看到发布的聊天机器人++## 7. 在群聊中添加机器人(可选)+1. 打开飞书客户端,进入需要添加机器人的群组。+2. 点击群设置 -> **群机器人** -> **添加机器人**,搜索你创建的应用名称并添加 。++## 8. 配置飞书Channel+1. 启动前端服务后,在“频道-飞书”自己中打开Enable开关并配置第三步记录的 App ID 与 App Secret\ No newline at end of filediff --git a/jiuwenclaw/__init__.py b/jiuwenclaw/__init__.pynew file mode 100644index 0000000000..bac3a02771--- /dev/null+++ b/jiuwenclaw/__init__.py@@ -0,0 +1,2 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+"""JiuwenClaw - Web 前端与 Agent 服务的消息桥接系统."""diff --git a/jiuwenclaw/agentserver/__init__.py b/jiuwenclaw/agentserver/__init__.pynew file mode 100644index 0000000000..bb171239a3--- /dev/null+++ b/jiuwenclaw/agentserver/__init__.py@@ -0,0 +1,8 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""AgentServer 模块."""++from jiuwenclaw.agentserver.interface import JiuWenClaw+from jiuwenclaw.agentserver.skill_manager import SkillManager++__all__ = ["JiuWenClaw", "SkillManager"]diff --git a/jiuwenclaw/agentserver/interface.py b/jiuwenclaw/agentserver/interface.pynew file mode 100644index 0000000000..4cca1f1669--- /dev/null+++ b/jiuwenclaw/agentserver/interface.py@@ -0,0 +1,1063 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""JiuWenClaw - 基于 openjiuwen ReActAgent 的 IAgentServer 实现."""++from __future__ import annotations++import asyncio+import logging+import os+import re+import sys+from pathlib import Path+from typing import Any, AsyncIterator++from openjiuwen.core.context_engine import MessageOffloaderConfig, DialogueCompressorConfig+from openjiuwen.core.foundation.llm import ModelRequestConfig, ModelClientConfig+from dotenv import load_dotenv+from openjiuwen.core.runner import Runner+from openjiuwen.core.single_agent import AgentCard, ReActAgentConfig, create_agent_session+from openjiuwen.core.sys_operation import SysOperationCard, OperationMode, LocalWorkConfig+from jiuwenclaw.paths import _get_config_module, get_root_dir++_config_module = _get_config_module()+get_config = _config_module.get_config+set_config = _config_module.set_config+update_heartbeat_in_config = _config_module.update_heartbeat_in_config+update_channel_in_config = _config_module.update_channel_in_config+update_browser_in_config = _config_module.update_browser_in_config+from jiuwenclaw.agentserver.react_agent import JiuClawReActAgent+from jiuwenclaw.agentserver.tools.browser_tools import register_browser_runtime_mcp_server+from jiuwenclaw.agentserver.tools.mcp_toolkits import get_mcp_tools+from jiuwenclaw.agentserver.tools.todo_toolkits import TaskStatus, TodoToolkit+from jiuwenclaw.agentserver.tools.memory_tools import (+ init_memory_manager_async,+ memory_search,+ memory_get,+ write_memory,+ edit_memory,+ read_memory,+)+from jiuwenclaw.agentserver.memory.compaction import CompactionManager+from jiuwenclaw.agentserver.memory.config import clear_config_cache+from jiuwenclaw.agentserver.memory import clear_memory_manager_cache+from jiuwenclaw.agentserver.skill_manager import SkillManager, _SKILLS_DIR+from jiuwenclaw.agentserver.prompt_builder import build_system_prompt, DEFAULT_WORKSPACE_DIR+from jiuwenclaw.evolution.skill_optimizer import SkillOptimizer+from jiuwenclaw.schema.agent import AgentRequest, AgentResponse, AgentResponseChunk+from jiuwenclaw.schema.message import ReqMethod++logger = logging.getLogger(__name__)+load_dotenv(dotenv_path=get_root_dir() / ".env")++SYSTEM_PROMPT = """# 角色+你是一个能够帮助用户执行任务的小助手。+"""++TODO_PROMPT = """+# 任务执行规则+1. 在进行任何操作前,将用户的操作使用`write_memory`记录到`memory/YYYY-MM-DD.md`中。+2. 所有任务必须通过 todo 工具进行记录和追踪。+3. 首先,你应该尝试使用 todo_create 创建新任务。+4. 但如果遇到"错误:待办列表已存在"的提示,则必须使用 todo_insert 函数添加任务。+5. 如果用户有新的需求,请分析当前已有任务,并结合当前执行情况,对当前的 todo 任务实现最小改动,以满足用户的需求。+6. **完成任务强制规则**:+ - 任务的每个子项执行完毕后,**必须调用 todo_complete 工具**将其标记为已完成+ - todo_complete 工具需要传入对应的任务ID(从当前待办列表中获取)+ - 只有成功调用 todo_complete 工具后,才能向用户报告任务已完成+7. 严禁仅用语言表示任务完成,必须实际调用工具。++处理用户请求时,请检查你的技能是否适用,阅读对应的技能描述,使用合理的技能。+"""++# Skills 请求路由表+_SKILL_ROUTES: dict[ReqMethod, str] = {+ ReqMethod.SKILLS_LIST: "handle_skills_list",+ ReqMethod.SKILLS_INSTALLED: "handle_skills_installed",+ ReqMethod.SKILLS_GET: "handle_skills_get",+ ReqMethod.SKILLS_MARKETPLACE_LIST: "handle_skills_marketplace_list",+ ReqMethod.SKILLS_INSTALL: "handle_skills_install",+ ReqMethod.SKILLS_UNINSTALL: "handle_skills_uninstall",+ ReqMethod.SKILLS_IMPORT_LOCAL: "handle_skills_import_local",+ ReqMethod.SKILLS_MARKETPLACE_ADD: "handle_skills_marketplace_add",+ ReqMethod.SKILLS_MARKETPLACE_REMOVE: "handle_skills_marketplace_remove",+ ReqMethod.SKILLS_MARKETPLACE_TOGGLE: "handle_skills_marketplace_toggle",+}+++def _bootstrap_env_aliases() -> None:+ """Normalize legacy env names for compatibility."""+ if not os.getenv("API_BASE") and os.getenv("BASE_URL"):+ os.environ["API_BASE"] = os.getenv("BASE_URL", "")+++class JiuWenClaw:+ """基于 openJiuwen ReActAgent 的 AgentServer 实现."""++ def __init__(self) -> None:+ self._instance: JiuClawReActAgent | None = None+ self._skill_manager = SkillManager()+ self._running_task: asyncio.Task | None = None+ self._workspace_dir: str = DEFAULT_WORKSPACE_DIR+ self._agent_name: str = "main_agent"+ self._compaction_manager: CompactionManager | None = None+ self._browser_mcp_registered: bool = False+ self._memory_tools_registered: bool = False+ self._mcp_tools_registered: bool = False+ self._todo_tool_sessions_registered: set[str] = set()+ self._sysop_card_id: str | None = None++ async def create_instance(self, config: dict[str, Any] | None = None) -> None:+ """初始化 ReActAgent 实例.++ Args:+ config: 可选配置,支持以下字段:+ - agent_name: Agent 名称,默认 "main_agent"。+ - workspace_dir: 工作区目录,默认 "workspace/agent"。+ - 其余字段透传给 ReActAgentConfig。+ """+ _bootstrap_env_aliases()+ config_base = get_config()++ # 使用传入的 config 或从文件加载的配置+ if config is None:+ config = config_base.get('react', {}).copy()++ # 提取 agent_name,如果不存在则使用默认值+ agent_name = config.pop("agent_name", "main_agent")+ self._agent_name = agent_name++ if "workspace_dir" in config:+ self._workspace_dir = config.pop("workspace_dir")++ # 处理 model_client_config:确保包含必需字段+ if "model_client_config" in config:+ model_client_config = config["model_client_config"]+ # 如果 model_client_config 缺少必需字段,尝试从顶层配置补充+ if not isinstance(model_client_config, dict):+ model_client_config = {}+ # 确保必需字段存在(即使为空,也会在运行时通过环境变量填充)+ if "client_provider" not in model_client_config:+ model_client_config["client_provider"] = config.pop("model_provider", "OpenAI")+ # 库要求首字母大写的 OpenAI / SiliconFlow,小写 openai 会报 Unsupported client_type+ p = model_client_config.get("client_provider", "")+ if isinstance(p, str) and p.strip().lower() == "openai":+ model_client_config["client_provider"] = "OpenAI"+ if "api_base" not in model_client_config:+ model_client_config["api_base"] = config.pop("api_base", "")+ if "api_key" not in model_client_config:+ model_client_config["api_key"] = config.pop("api_key", "")+ config["model_client_config"] = model_client_config++ config["model_config_obj"] = {+ "temperature": 0.95+ }++ config["prompt_template"] = [+ {"role": "system", "content": SYSTEM_PROMPT}+ ]++ sysop_card_id: str | None = None+ try:+ sysop_card = SysOperationCard(+ mode=OperationMode.LOCAL,+ work_config=LocalWorkConfig(work_dir=None),+ )+ Runner.resource_mgr.add_sys_operation(sysop_card)+ sysop_card_id = sysop_card.id+ except Exception as exc:+ logger.warning("[JiuWenClaw] add sys_operation failed, fallback without it: %s", exc)+ self._sysop_card_id = sysop_card_id++ # 创建 ReActAgentConfig+ agent_config = ReActAgentConfig(**config) if config else ReActAgentConfig()++ # 上下文压缩卸载+ processors = [+ (+ "MessageOffloader",+ MessageOffloaderConfig(+ messages_threshold=40,+ tokens_threshold=20000,+ large_message_threshold=1000,+ trim_size=500,+ offload_message_type=["tool"],+ keep_last_round=False,+ )+ ),+ (+ "DialogueCompressor",+ DialogueCompressorConfig(+ messages_threshold=40,+ tokens_threshold=50000,+ model=ModelRequestConfig(+ model=config["model_name"]+ ),+ model_client=config["model_client_config"],+ keep_last_round=False,+ )+ )+ ]+ agent_config.configure_context_processors(processors)++ agent_card = AgentCard(name=agent_name)+ self._instance = JiuClawReActAgent(card=agent_card)+ # self._instance.set_workspace(self._workspace_dir, self._agent_name)++ if sysop_card_id and hasattr(self._instance, "_skill_util"):+ agent_config.sys_operation_id = sysop_card_id+ elif sysop_card_id:+ logger.warning("[JiuWenClaw] ReActAgent has no _skill_util; skip sys_operation_id binding.")++ self._instance.configure(agent_config)++ # register installed skills (compatible with openjiuwen variants).+ if hasattr(self._instance, "_skill_util"):+ try:+ await self._instance.register_skill(str(_SKILLS_DIR))+ except Exception as exc:+ logger.warning("[JiuWenClaw] register_skill failed, continue without skills: %s", exc)++ # Register SkillOptimizer (enable evolution feature)+ evolution_cfg: dict = config.pop("evolution", {})+ evolution_enabled: bool = evolution_cfg.get("enabled", False)++ # 检查是否有有效的模型配置(api_key 或 client_provider)+ has_valid_model_config = False+ if isinstance(config.get("model_client_config"), dict):+ mcc = config["model_client_config"]+ # 检查是否有 api_key(非空)或通过环境变量配置+ api_key = mcc.get("api_key", "")+ if api_key or os.getenv("API_KEY"):+ has_valid_model_config = True+ # 如果没有 api_key,检查是否通过其他方式配置(如从环境变量获取)+ if not has_valid_model_config:+ if os.getenv("API_KEY"):+ has_valid_model_config = True++ if evolution_enabled and has_valid_model_config:+ # 优先从环境变量读取(前端配置)回退到 config.yaml+ _env_auto_scan = os.getenv("EVOLUTION_AUTO_SCAN")+ if _env_auto_scan is not None:+ evolution_auto_scan: bool = _env_auto_scan.lower() in ("true", "1", "yes")+ else:+ evolution_auto_scan = evolution_cfg.get("auto_scan", False)+ optimizer = SkillOptimizer(+ llm=self._instance._get_llm(),+ model=agent_config.model_name,+ skills_base_dir=str(_SKILLS_DIR),+ auto_scan=evolution_auto_scan,+ )+ self._instance.register_online_optimizer(optimizer)+ logger.info("[JiuWenClaw] Evolution has been enabled: auto_scan=%s", evolution_auto_scan)+ elif evolution_enabled and not has_valid_model_config:+ logger.warning("[JiuWenClaw] Evolution is enabled but skipped: no valid model API key configured")+ else:+ logger.warning("[JiuWenClaw] ReActAgent has no _skill_util; skip skill registration.")++ # add memory tools+ await init_memory_manager_async(+ workspace_dir=self._workspace_dir,+ agent_id=self._agent_name,+ )+ for tool in [memory_search, memory_get, write_memory, edit_memory, read_memory]:+ Runner.resource_mgr.add_tool(tool)+ self._instance.ability_manager.add(tool.card)+ self._memory_tools_registered = True++ for mcp_tool in get_mcp_tools():+ Runner.resource_mgr.add_tool(mcp_tool)+ self._instance.ability_manager.add(mcp_tool.card)+ self._mcp_tools_registered = True++ if self._compaction_manager is None:+ from jiuwenclaw.agentserver.memory import get_memory_manager+ memory_mgr = await get_memory_manager(+ agent_id=self._agent_name,+ workspace_dir=self._workspace_dir+ )+ if memory_mgr:+ self._compaction_manager = CompactionManager(+ workspace_dir=self._workspace_dir,+ threshold=8000,+ keep_recent=10+ )++ if not self._browser_mcp_registered:+ try:+ self._browser_mcp_registered = await register_browser_runtime_mcp_server(+ self._instance,+ tag=f"agent.{self._agent_name}",+ )+ except Exception as exc:+ logger.warning("[JiuWenClaw] browser MCP registration skipped: %s", exc)++ logger.info("[JiuWenClaw] 初始化完成: agent_name=%s", agent_name)++ def reload_agent_config(self) -> None:+ """从 config.yaml 重新加载配置并 reconfigure 当前实例,使模型/API 等配置生效且不重启进程。"""+ if self._instance is None:+ raise RuntimeError("JiuWenClaw 未初始化,请先调用 create_instance()")+ clear_config_cache()+ clear_memory_manager_cache()+ config_base = get_config()+ config = config_base.get("react", {}).copy()+ config.pop("agent_name", None)+ config.pop("workspace_dir", None)+ if "model_client_config" in config:+ mcc = config["model_client_config"]+ if not isinstance(mcc, dict):+ mcc = {}+ else:+ mcc = mcc.copy()+ if "client_provider" not in mcc:+ mcc["client_provider"] = config.get("model_provider", os.getenv("MODEL_PROVIDER", "OpenAI"))+ p = mcc.get("client_provider", "")+ if isinstance(p, str) and p.strip().lower() == "openai":+ mcc["client_provider"] = "OpenAI"+ if "api_base" not in mcc:+ mcc["api_base"] = config.get("api_base", os.getenv("API_BASE", ""))+ if "api_key" not in mcc:+ mcc["api_key"] = config.get("api_key", os.getenv("API_KEY", ""))+ config["model_client_config"] = mcc+ config["model_config_obj"] = {"temperature": 0.95}+ config["prompt_template"] = [{"role": "system", "content": SYSTEM_PROMPT}]+ config.pop("evolution", None)+ agent_config = ReActAgentConfig(**config)+ if self._sysop_card_id:+ agent_config.sys_operation_id = self._sysop_card_id+ processors = [+ (+ "MessageOffloader",+ MessageOffloaderConfig(+ messages_threshold=40,+ tokens_threshold=20000,+ large_message_threshold=1000,+ trim_size=500,+ offload_message_type=["tool"],+ keep_last_round=False,+ ),+ ),+ (+ "DialogueCompressor",+ DialogueCompressorConfig(+ messages_threshold=40,+ tokens_threshold=50000,+ model=ModelRequestConfig(model=config["model_name"]),+ model_client=config["model_client_config"],+ keep_last_round=False,+ ),+ ),+ ]+ agent_config.configure_context_processors(processors)+ if hasattr(self._instance, "_llm"):+ self._instance._llm = None+ self._instance.configure(agent_config)+ # 使 evolution 热更新生效:刷新 SkillOptimizer 的 LLM / model / auto_scan+ _env_auto_scan = os.getenv("EVOLUTION_AUTO_SCAN")+ if _env_auto_scan is not None:+ auto_scan_val = _env_auto_scan.lower() in ("true", "1", "yes")+ else:+ auto_scan_val = None+ new_llm = self._instance._get_llm()+ new_model = agent_config.model_name+ for opt in getattr(self._instance, "_online_optimizers", []):+ if auto_scan_val is not None and hasattr(opt, "auto_scan"):+ opt.auto_scan = auto_scan_val+ if isinstance(opt, SkillOptimizer):+ opt._llm = new_llm+ opt._model = new_model+ if hasattr(opt, "_manager"):+ opt._manager._llm = new_llm+ opt._manager._model = new_model+ # 使 evolution 热更新生效:刷新 SkillOptimizer 的 LLM / model / auto_scan+ # 检查是否有有效的模型配置+ has_valid_model_config = False+ if isinstance(config.get("model_client_config"), dict):+ mcc = config["model_client_config"]+ api_key = mcc.get("api_key", "")+ if api_key or os.getenv("API_KEY"):+ has_valid_model_config = True+ if not has_valid_model_config:+ if os.getenv("API_KEY"):+ has_valid_model_config = True++ if has_valid_model_config:+ _env_auto_scan = os.getenv("EVOLUTION_AUTO_SCAN")+ if _env_auto_scan is not None:+ auto_scan_val = _env_auto_scan.lower() in ("true", "1", "yes")+ else:+ auto_scan_val = None+ new_llm = self._instance._get_llm()+ new_model = agent_config.model_name+ for opt in getattr(self._instance, "_online_optimizers", []):+ if auto_scan_val is not None and hasattr(opt, "auto_scan"):+ opt.auto_scan = auto_scan_val+ if isinstance(opt, SkillOptimizer):+ opt._llm = new_llm+ opt._model = new_model+ if hasattr(opt, "_manager"):+ opt._manager._llm = new_llm+ opt._manager._model = new_model+ logger.info("[JiuWenClaw] 配置已热更新,未重启进程")++ async def _register_runtime_tools(self, session_id: str | None, mode = "plan") -> None:+ """Register per-request tools for current agent execution."""+ if self._instance is None:+ raise RuntimeError("JiuWenClaw 未初始化,请先调用 create_instance()")++ effective_session_id = session_id or "default"+ if mode == "plan":+ self._instance._config.prompt_template = [{+ "role": "system",+ "content": SYSTEM_PROMPT + TODO_PROMPT,+ }]+ if effective_session_id not in self._todo_tool_sessions_registered:+ todo_toolkit = TodoToolkit(session_id=effective_session_id)+ for tool in todo_toolkit.get_tools():+ Runner.resource_mgr.add_tool(tool)+ self._instance.ability_manager.add(tool.card)+ self._todo_tool_sessions_registered.add(effective_session_id)+ else:+ self._instance._config.prompt_template = [{+ "role": "system",+ "content": SYSTEM_PROMPT,+ }]++ if not self._memory_tools_registered:+ await init_memory_manager_async(+ workspace_dir=self._workspace_dir,+ agent_id=self._agent_name,+ )+ for tool in [memory_search, memory_get, write_memory, edit_memory, read_memory]:+ Runner.resource_mgr.add_tool(tool)+ self._instance.ability_manager.add(tool.card)+ self._memory_tools_registered = True++ if not self._mcp_tools_registered:+ for mcp_tool in get_mcp_tools():+ Runner.resource_mgr.add_tool(mcp_tool)+ self._instance.ability_manager.add(mcp_tool.card)+ self._mcp_tools_registered = True++ # Retry browser MCP registration on each request until success.+ if not self._browser_mcp_registered:+ try:+ self._browser_mcp_registered = await register_browser_runtime_mcp_server(+ self._instance,+ tag=f"agent.{self._agent_name}",+ )+ except Exception as exc:+ logger.warning("[JiuWenClaw] browser MCP registration retry skipped: %s", exc)++ async def process_interrupt(self, request: AgentRequest) -> AgentResponse:+ """处理 interrupt 请求.++ 根据 intent 分流:+ - pause: 暂停 ReAct 循环(不取消任务)+ - resume: 恢复已暂停的 ReAct 循环+ - cancel: 取消所有运行中的任务++ Args:+ request: AgentRequest,params 中可包含:+ - intent: 中断意图 ('pause' | 'cancel' | 'resume')+ - new_input: 新的用户输入(用于切换任务)++ Returns:+ AgentResponse 包含 interrupt_result 事件数据+ """+ intent = request.params.get("intent", "cancel")+ new_input = request.params.get("new_input")++ success = True+ error_detail = None++ if intent == "pause":+ # 暂停:不取消任务,只暂停 ReAct 循环+ if self._instance is not None and hasattr(self._instance, 'pause'):+ self._instance.pause()+ logger.info(+ "[JiuWenClaw] interrupt: 已暂停 ReAct 循环 request_id=%s",+ request.request_id,+ )+ message = "任务已暂停"++ elif intent == "resume":+ # 恢复:恢复 ReAct 循环+ if self._instance is not None and hasattr(self._instance, 'resume'):+ self._instance.resume()+ logger.info(+ "[JiuWenClaw] interrupt: 已恢复 ReAct 循环 request_id=%s",+ request.request_id,+ )+ message = "任务已恢复"++ elif intent == "supplement":+ # supplement: 取消当前任务,但保留 todo(新任务会根据 todo 待办继续执行)+ # 先解除暂停,防止 task 阻塞在 pause_event.wait 上+ if self._instance is not None and hasattr(self._instance, 'resume'):+ self._instance.resume()++ # 取消非流式任务+ if self._running_task is not None and not self._running_task.done():+ logger.info(+ "[JiuWenClaw] interrupt(supplement): 取消非流式任务 request_id=%s",+ request.request_id,+ )+ self._running_task.cancel()+ try:+ await self._running_task+ except (asyncio.CancelledError, Exception):+ pass++ # 取消流式任务+ if self._instance is not None:+ stream_tasks = getattr(self._instance, '_stream_tasks', set())+ active = [t for t in stream_tasks if not t.done()]+ if active:+ logger.info(+ "[JiuWenClaw] interrupt(supplement): 取消 %d 个流式任务 request_id=%s",+ len(active), request.request_id,+ )+ for t in active:+ t.cancel()++ # 不清理 todo!保留所有待办项,新任务会根据 todo 中的待办继续执行+ message = "任务已切换"++ else:+ # cancel / 其他:取消所有运行中的任务+ # 先恢复暂停(防止 cancel 时 task 阻塞在 pause_event.wait 上)+ if self._instance is not None and hasattr(self._instance, 'resume'):+ self._instance.resume()++ # 取消非流式任务+ if self._running_task is not None and not self._running_task.done():+ logger.info(+ "[JiuWenClaw] interrupt: 取消正在运行的非流式任务 (intent=%s) request_id=%s",+ intent, request.request_id,+ )+ self._running_task.cancel()+ try:+ await self._running_task+ except asyncio.CancelledError:+ logger.info("[JiuWenClaw] 非流式任务已取消")+ except Exception as e:+ error_detail = str(e)+ logger.warning("[JiuWenClaw] 取消非流式任务时发生异常: %s", e)++ # 取消流式任务+ if self._instance is not None:+ stream_tasks = getattr(self._instance, '_stream_tasks', set())+ active = [t for t in stream_tasks if not t.done()]+ if active:+ logger.info(+ "[JiuWenClaw] interrupt: 取消 %d 个流式任务 request_id=%s",+ len(active), request.request_id,+ )+ for t in active:+ t.cancel()++ # 将未完成的 todo 项标记为 cancelled(保留在列表中,agent 不会执行)+ if request.session_id:+ try:+ todo_toolkit = TodoToolkit(session_id=request.session_id)+ tasks = todo_toolkit._load_tasks()+ cancel_count = 0+ for t in tasks:+ if t.status.value in ("waiting", "running"):+ t.status = TaskStatus.CANCELLED+ cancel_count += 1+ if cancel_count:+ todo_toolkit._save_tasks(tasks)+ logger.info(+ "[JiuWenClaw] interrupt: 已将 %d 个未完成 todo 项标记为 cancelled session_id=%s",+ cancel_count, request.session_id,+ )+ except Exception as exc:+ logger.warning("[JiuWenClaw] 标记 todo cancelled 失败: %s", exc)++ if error_detail:+ success = False+ message = f"取消任务失败: {error_detail}"+ elif new_input:+ message = "已切换到新任务"+ else:+ message = "任务已取消"++ # 返回 interrupt_result 事件+ payload = {+ "event_type": "chat.interrupt_result",+ "intent": intent,+ "success": success,+ "message": message,+ }++ if new_input:+ payload["new_input"] = new_input++ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=True,+ payload=payload,+ metadata=request.metadata,+ )++ def _has_valid_model_config(self) -> bool:+ """检查是否有有效的模型配置."""+ # 检查环境变量中是否有 API_KEY+ if os.getenv("API_KEY"):+ return True++ # 检查实例的配置+ if self._instance is not None and hasattr(self._instance, "_config"):+ config = self._instance._config+ if hasattr(config, "model_client_config") and isinstance(config.model_client_config, dict):+ mcc = config.model_client_config+ api_key = mcc.get("api_key", "")+ if api_key:+ return True++ return False++ async def _handle_user_answer(self, request: AgentRequest) -> AgentResponse:+ """Handle chat.user_answer request, route user answer to evolution approval Future."""+ request_id = request.params.get("request_id", "") if isinstance(request.params, dict) else ""+ answers = request.params.get("answers", []) if isinstance(request.params, dict) else []+ resolved = False+ if self._instance is not None:+ resolved = self._instance.resolve_evolution_approval(request_id, answers)+ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=True,+ payload={"accepted": True, "resolved": resolved},+ metadata=request.metadata,+ )++ async def process_message(self, request: AgentRequest) -> AgentResponse:+ """调用 Runner.run_agent 处理请求,返回完整响应.++ 如果已有任务正在运行,会先取消该任务,然后启动新的任务.+ """+ # Interrupt 请求路由+ if request.req_method == ReqMethod.CHAT_CANCEL:+ return await self.process_interrupt(request)++ # User answer routing (evolution approval keep/undo)+ if request.req_method == ReqMethod.CHAT_ANSWER:+ return await self._handle_user_answer(request)++ # Heartbeat 处理+ if "heartbeat" in request.params:+ # todo 修复目录+ heartbeat_md = os.path.join("workspace", "HEARTBEAT.md")+ if not os.path.isfile(heartbeat_md):+ # 无自定义任务,短路返回+ logger.debug("[JiuWenClaw] heartbeat OK (no HEARTBEAT.md): request_id=%s", request.request_id)+ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=True,+ payload={"heartbeat": "HEARTBEAT_OK"},+ metadata=request.metadata,+ )+ # 读取 HEARTBEAT.md,拼接为任务提示词,走正常 chat 流程+ task_list = []+ try:+ with open(heartbeat_md, "r", encoding="utf-8") as f:+ md_content = f.read().strip()+ tasks = md_content.split("\n## 活跃的任务项\n")[-1].split("\n## 已完成的任务项\n")[0].strip().split("\n")+ for task in tasks:+ if not task.startswith("<!--"):+ task_list.append("-" + task)++ except Exception as exc:+ logger.warning("[JiuWenClaw] 读取 HEARTBEAT.md 失败: %s", exc)+ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=True,+ payload={"heartbeat": "HEARTBEAT_OK"},+ metadata=request.metadata,+ )+ if not task_list:+ logger.debug("[JiuWenClaw] HEARTBEAT.md 为空,短路返回")+ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=True,+ payload={"heartbeat": "HEARTBEAT_OK"},+ metadata=request.metadata,+ )+ task_list = "\n".join(task_list)+ query = f"请检查下面用户遗留给你的任务项,并按照顺序完成所有待办事项,并将结果以markdown文件保存在你的工作目录下:\n{task_list}"+ request.params["query"] = query+ logger.info(+ "[JiuWenClaw] heartbeat 触发 HEARTBEAT.md 任务: request_id=%s session_id=%s",+ request.request_id, request.session_id,+ )++ # Skills 请求委托给 SkillManager+ if request.req_method in _SKILL_ROUTES:+ handler_name = _SKILL_ROUTES[request.req_method]+ handler = getattr(self._skill_manager, handler_name)+ try:+ payload = await handler(request.params)+ except Exception as exc:+ logger.error("[JiuWenClaw] skills 请求处理失败: %s", exc)+ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=False,+ payload={"error": str(exc)},+ metadata=request.metadata,+ )+ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=True,+ payload=payload,+ metadata=request.metadata,+ )++ # 原有 chat 逻辑+ if self._instance is None:+ raise RuntimeError("JiuWenClaw 未初始化,请先调用 create_instance()")++ # 检查模型配置+ if not self._has_valid_model_config():+ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=False,+ payload={"error": "模型未正确配置,请先配置模型信息"},+ metadata=request.metadata,+ )++ # 如果已有任务正在运行,取消它+ if self._running_task is not None and not self._running_task.done():+ logger.info(+ "[JiuWenClaw] 取消正在运行的任务: request_id=%s",+ request.request_id,+ )+ self._running_task.cancel()+ try:+ await self._running_task+ except asyncio.CancelledError:+ logger.info("[JiuWenClaw] 任务已取消")+ except Exception as e:+ logger.warning("[JiuWenClaw] 取消任务时发生异常: %s", e)++ logger.info(+ "[JiuWenClaw] 处理请求: request_id=%s channel_id=%s",+ request.request_id, request.channel_id,+ )+ inputs = {+ "conversation_id": request.session_id,+ "query": request.params.get("query", ""),+ }+ await self._register_runtime_tools(request.session_id)++ query = request.params.get("query", "")+ if self._compaction_manager:+ self._compaction_manager.add_message("user", query)++ from jiuwenclaw.agentserver.memory import get_memory_manager+ memory_mgr = await get_memory_manager(+ agent_id=self._agent_name,+ workspace_dir=self._workspace_dir+ )+ if memory_mgr:+ await self._compaction_manager.check_and_compact(memory_mgr)++ # 创建新的任务并运行+ async def run_agent_task():+ try:+ return await Runner.run_agent(agent=self._instance, inputs=inputs)+ except asyncio.CancelledError:+ logger.info("[JiuWenClaw] Agent 任务被取消: request_id=%s", request.request_id)+ raise+ except Exception as e:+ logger.error("[JiuWenClaw] Agent 任务执行异常: %s", e)+ raise++ self._running_task = asyncio.create_task(run_agent_task())++ try:+ result = await self._running_task+ finally:+ # 任务完成后清理+ self._running_task = None++ content = result if isinstance(result, (str, dict)) else str(result)++ if self._compaction_manager and content:+ if isinstance(content, dict):+ content_str = content.get("output", str(content))+ else:+ content_str = str(content)+ self._compaction_manager.add_message("assistant", content_str)++ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=True,+ payload={"content": content},+ metadata=request.metadata,+ )++ async def process_message_stream(+ self, request: AgentRequest+ ) -> AsyncIterator[AgentResponseChunk]:+ """流式处理:通过 JiuClawReActAgent.stream() 逐条返回 chunk.++ OutputSchema 事件类型映射:+ content_chunk → chat.delta (逐字流式文本)+ answer → chat.final (最终完整回答)+ tool_call → chat.tool_call+ tool_result → chat.tool_result+ error → chat.error+ thinking → chat.processing_status+ todo.updated → todo.updated (todo 列表变更通知)+ """+ if self._instance is None:+ raise RuntimeError("JiuWenClaw 未初始化,请先调用 create_instance()")++ # 检查模型配置+ if not self._has_valid_model_config():+ yield AgentResponseChunk(+ request_id=request.request_id,+ channel_id=request.channel_id,+ payload={"event_type": "chat.error", "error": "模型未正确配置,请先配置模型信息"},+ is_complete=True,+ )+ return++ inputs = {+ "conversation_id": request.session_id,+ "query": request.params.get("query", ""),+ }++ # supplement 任务:读取现有 todo 待办,拼入 query 让 agent 知道有未完成的任务+ if request.params.get("is_supplement"):+ try:+ todo_toolkit = TodoToolkit(session_id=request.session_id)+ tasks = todo_toolkit._load_tasks()+ pending = [t for t in tasks if t.status.value != "completed"]+ if pending:+ todo_summary = "\n".join(+ f" - [{t.idx}] {t.tasks}" for t in pending+ )+ original_query = inputs["query"]+ inputs["query"] = (+ f"当前待办列表中有以下未完成的任务:\n{todo_summary}\n\n"+ f"用户追加了新需求:{original_query}\n\n"+ f"请先使用 todo_insert 将新需求添加到待办列表,"+ f"然后按顺序执行所有未完成的待办任务。"+ )+ logger.info(+ "[JiuWenClaw] supplement: 已将 %d 个待办项拼入 query, session_id=%s",+ len(pending), request.session_id,+ )+ except Exception as exc:+ logger.warning("[JiuWenClaw] supplement: 读取 todo 列表失败: %s", exc)++ await self._register_runtime_tools(request.session_id, request.params.get("mode", "plan"))++ rid = request.request_id+ cid = request.channel_id++ try:+ async for chunk in Runner.run_agent_streaming(self._instance, inputs):+ parsed = self._parse_stream_chunk(chunk)+ if parsed is None:+ continue+ yield AgentResponseChunk(+ request_id=rid,+ channel_id=cid,+ payload=parsed,+ is_complete=False,+ )++ except asyncio.CancelledError:+ logger.info("[JiuWenClaw] 流式处理被中断: request_id=%s", rid)++ except Exception as exc:+ logger.exception("[JiuWenClaw] 流式处理异常: %s", exc)+ yield AgentResponseChunk(+ request_id=rid,+ channel_id=cid,+ payload={"event_type": "chat.error", "error": str(exc)},+ is_complete=False,+ )++ # 终止 chunk+ yield AgentResponseChunk(+ request_id=rid,+ channel_id=cid,+ payload=None,+ is_complete=True,+ )++ # ------------------------------------------------------------------+ # OutputSchema 解析+ # ------------------------------------------------------------------++ @staticmethod+ def _parse_stream_chunk(chunk) -> dict | None:+ """将 SDK OutputSchema 转为前端可消费的 payload dict.++ 参考 openjiuwen_agent._parse_stream_chunk 的处理逻辑,+ 过滤掉 traceId / invokeId 等调试帧,按 type 分类提取数据。++ Returns:+ dict – 含 event_type 的 payload,或 None(需跳过的帧)。+ """+ try:+ # OutputSchema 对象:有 type + payload+ if hasattr(chunk, "type") and hasattr(chunk, "payload"):+ chunk_type = chunk.type+ payload = chunk.payload++ if chunk_type == "content_chunk":+ content = (+ payload.get("content", "")+ if isinstance(payload, dict)+ else str(payload)+ )+ if not content:+ return None+ return {"event_type": "chat.delta", "content": content}++ if chunk_type == "answer":+ if isinstance(payload, dict):+ if payload.get("result_type") == "error":+ return {+ "event_type": "chat.error",+ "error": payload.get("output", "未知错误"),+ }+ output = payload.get("output", {})+ content = (+ output.get("output", "")+ if isinstance(output, dict)+ else str(output)+ )+ # Check if this is a chunked answer (first chunk)+ is_chunked = (+ output.get("chunked", False)+ if isinstance(output, dict)+ else False+ )+ else:+ content = str(payload)+ is_chunked = False+ if not content:+ return None+ # For chunked answers, return as delta (will be accumulated)+ # For non-chunked, return as final+ if is_chunked:+ return {"event_type": "chat.delta", "content": content}+ return {"event_type": "chat.final", "content": content}++ if chunk_type == "tool_call":+ tool_info = (+ payload.get("tool_call", payload)+ if isinstance(payload, dict)+ else payload+ )+ return {"event_type": "chat.tool_call", "tool_call": tool_info}++ if chunk_type == "tool_result":+ if isinstance(payload, dict):+ result_info = payload.get("tool_result", payload)+ result_payload = {+ "result": result_info.get("result", str(result_info))+ if isinstance(result_info, dict)+ else str(result_info),+ }+ if isinstance(result_info, dict):+ result_payload["tool_name"] = (+ result_info.get("tool_name")+ or result_info.get("name")+ )+ result_payload["tool_call_id"] = (+ result_info.get("tool_call_id")+ or result_info.get("toolCallId")+ )+ else:+ result_payload = {"result": str(payload)}+ return {+ "event_type": "chat.tool_result",+ **result_payload,+ }++ if chunk_type == "error":+ error_msg = (+ payload.get("error", str(payload))+ if isinstance(payload, dict)+ else str(payload)+ )+ return {"event_type": "chat.error", "error": error_msg}++ if chunk_type == "thinking":+ return {+ "event_type": "chat.processing_status",+ "is_processing": True,+ "current_task": "thinking",+ }++ if chunk_type == "todo.updated":+ todos = (+ payload.get("todos", [])+ if isinstance(payload, dict)+ else []+ )+ return {"event_type": "todo.updated", "todos": todos}++ if chunk_type == "context.compressed":+ if isinstance(payload, dict):+ return {+ "event_type": "context.compressed",+ "rate": payload.get("rate", 0),+ "before_compressed": payload.get("before_compressed"),+ "after_compressed": payload.get("after_compressed"),+ }+ return {"event_type": "context.compressed", "rate": 0}++ if chunk_type == "chat.ask_user_question":+ return {+ "event_type": "chat.ask_user_question",+ **(payload if isinstance(payload, dict) else {}),+ }++ # 未知 type:过滤调试帧,保留有内容的+ if isinstance(payload, dict):+ if "traceId" in payload or "invokeId" in payload:+ return None+ content = payload.get("content") or payload.get("output")+ if not content:+ return None+ else:+ content = str(payload)+ return {"event_type": "chat.delta", "content": content}++ # 普通 dict+ if isinstance(chunk, dict):+ if "traceId" in chunk or "invokeId" in chunk:+ return None+ if chunk.get("result_type") == "error":+ return {+ "event_type": "chat.error",+ "error": chunk.get("output", "未知错误"),+ }+ output = chunk.get("output", "")+ if output:+ return {"event_type": "chat.delta", "content": str(output)}+ return None++ except Exception:+ logger.debug("[_parse_stream_chunk] 解析异常", exc_info=True)++ return Nonediff --git a/jiuwenclaw/agentserver/memory/__init__.py b/jiuwenclaw/agentserver/memory/__init__.pynew file mode 100644index 0000000000..9f3e4bbeab--- /dev/null+++ b/jiuwenclaw/agentserver/memory/__init__.py@@ -0,0 +1,105 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Memory system for JiuWenClaw."""++from .types import (+ MemorySearchResult,+ MemoryProviderStatus,+ MemorySyncProgressUpdate,+ MemoryFileEntry,+ MemoryChunk,+ SessionFileEntry,+ MemorySource,+ FileEntry,+ FtsStatus,+ VectorStatus,+)+from .manager import MemoryIndexManager, get_memory_manager, clear_memory_manager_cache+from .config import (+ MemorySettings,+ create_memory_settings,+ is_memory_enabled,+ get_embed_config,+ DEFAULT_WORKSPACE_DIR,+)+from .embeddings import EmbeddingProvider, create_embedding_provider+from .summarizer import (+ LLMClient,+ MemoryCompactor,+ MemorySummarizer,+ compact_memory,+ summarize_session,+ format_messages_for_summary,+)+from .compaction import (+ MessageMark,+ Message,+ TokenCounter,+ MessageStore,+ CompactionManager,+ MEMORY_COMPACT_THRESHOLD,+ MEMORY_COMPACT_KEEP_RECENT,+)+from .internal import estimate_tokens+from .internal import (+ ensure_dir,+ list_memory_files,+ build_file_entry,+ chunk_markdown,+ hash_text,+ parse_embedding,+ build_fts_query,+ bm25_rank_to_score,+ is_memory_path,+ normalize_extra_memory_paths,+)++__all__ = [+ "MemoryIndexManager",+ "MemorySettings",+ "get_memory_manager",+ "clear_memory_manager_cache",+ "EmbeddingProvider",+ "create_embedding_provider",+ "MemorySearchResult",+ "MemoryProviderStatus",+ "MemorySyncProgressUpdate",+ "MemoryFileEntry",+ "MemoryChunk",+ "SessionFileEntry",+ "MemorySource",+ "MemoryEmbeddingProbeResult",+ "SourceCount",+ "CacheStatus",+ "FtsStatus",+ "VectorStatus",+ "BatchStatus",+ "ensure_dir",+ "list_memory_files",+ "build_file_entry",+ "chunk_markdown",+ "hash_text",+ "parse_embedding",+ "build_fts_query",+ "bm25_rank_to_score",+ "is_memory_path",+ "normalize_extra_memory_paths",+ "create_memory_settings",+ "is_memory_enabled",+ "get_embed_config",+ "DEFAULT_WORKSPACE_DIR",+ "LLMClient",+ "MemoryCompactor",+ "MemorySummarizer",+ "compact_memory",+ "summarize_session",+ "format_messages_for_summary",+ "MessageMark",+ "Message",+ "TokenCounter",+ "MessageStore",+ "CompactionManager",+ "MEMORY_COMPACT_THRESHOLD",+ "MEMORY_COMPACT_KEEP_RECENT",+ "estimate_tokens",+]diff --git a/jiuwenclaw/agentserver/memory/compaction.py b/jiuwenclaw/agentserver/memory/compaction.pynew file mode 100644index 0000000000..b8d33353d9--- /dev/null+++ b/jiuwenclaw/agentserver/memory/compaction.py@@ -0,0 +1,333 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Memory Compaction Manager - Automatic message compression and summarization.++Provides automatic triggering of message compression when token threshold is exceeded.+"""++import asyncio+import json+import logging+import os+from enum import Enum+from typing import List, Dict, Any, Optional+from dataclasses import dataclass, field+from datetime import datetime++from .internal import estimate_tokens++logger = logging.getLogger(__name__)++MEMORY_COMPACT_THRESHOLD = 8000+MEMORY_COMPACT_KEEP_RECENT = 10+COMPACTED_SUMMARY_FILE = "compacted_summary.json"+++class MessageMark(Enum):+ """Message compression status marks."""+ NONE = "none"+ COMPRESSED = "compressed"+++@dataclass+class Message:+ """Message with compression tracking."""+ id: str+ role: str+ content: str+ timestamp: str = ""+ mark: MessageMark = MessageMark.NONE++ def to_dict(self) -> Dict[str, Any]:+ return {+ "id": self.id,+ "role": self.role,+ "content": self.content,+ "timestamp": self.timestamp,+ "mark": self.mark.value+ }++ @classmethod+ def from_dict(cls, data: Dict[str, Any]) -> "Message":+ return cls(+ id=data["id"],+ role=data["role"],+ content=data["content"],+ timestamp=data.get("timestamp", ""),+ mark=MessageMark(data.get("mark", "none"))+ )+++class TokenCounter:+ """Token counter for messages using unified estimate_tokens."""++ @classmethod+ def count_text(cls, text: str) -> int:+ return estimate_tokens(text)++ @classmethod+ def count_message(cls, message: Dict[str, Any]) -> int:+ content = message.get("content", "")+ if isinstance(content, str):+ return cls.count_text(content)+ elif isinstance(content, list):+ total = 0+ for block in content:+ if isinstance(block, dict):+ if block.get("type") == "text":+ total += cls.count_text(block.get("text", ""))+ elif block.get("type") == "tool_use":+ total += cls.count_text(json.dumps(block.get("input", {})))+ elif block.get("type") == "tool_result":+ total += cls.count_text(str(block.get("output", "")))+ return total+ return 0++ @classmethod+ def count_messages(cls, messages: List[Dict[str, Any]]) -> int:+ return sum(cls.count_message(msg) for msg in messages)+++class MessageStore:+ """Manages message storage with compression tracking."""++ def __init__(self, workspace_dir: str):+ self.workspace_dir = workspace_dir+ self.store_path = os.path.join(workspace_dir, "memory", "messages.json")+ self.summary_path = os.path.join(workspace_dir, "memory", COMPACTED_SUMMARY_FILE)+ self._messages: List[Message] = []+ self._compressed_summary: str = ""+ self._load()++ def _load(self) -> None:+ if os.path.exists(self.store_path):+ try:+ with open(self.store_path, "r", encoding="utf-8") as f:+ data = json.load(f)+ self._messages = [Message.from_dict(m) for m in data.get("messages", [])]+ except Exception as e:+ logger.warning(f"Failed to load messages: {e}")++ if os.path.exists(self.summary_path):+ try:+ with open(self.summary_path, "r", encoding="utf-8") as f:+ data = json.load(f)+ self._compressed_summary = data.get("summary", "")+ except Exception as e:+ logger.warning(f"Failed to load compressed summary: {e}")++ def _save(self) -> None:+ os.makedirs(os.path.dirname(self.store_path), exist_ok=True)++ with open(self.store_path, "w", encoding="utf-8") as f:+ json.dump({+ "messages": [m.to_dict() for m in self._messages]+ }, f, ensure_ascii=False, indent=2)++ def _save_summary(self) -> None:+ os.makedirs(os.path.dirname(self.summary_path), exist_ok=True)++ with open(self.summary_path, "w", encoding="utf-8") as f:+ json.dump({+ "summary": self._compressed_summary,+ "updated_at": datetime.now().isoformat()+ }, f, ensure_ascii=False, indent=2)++ def add_message(self, role: str, content: str, msg_id: Optional[str] = None) -> Message:+ import uuid++ message = Message(+ id=msg_id or str(uuid.uuid4()),+ role=role,+ content=content,+ timestamp=datetime.now().isoformat(),+ mark=MessageMark.NONE+ )+ self._messages.append(message)+ self._save()+ return message++ def get_messages(+ self,+ exclude_mark: Optional[MessageMark] = None,+ include_mark: Optional[MessageMark] = None,+ prepend_summary: bool = True+ ) -> List[Dict[str, Any]]:+ result = []++ if prepend_summary and self._compressed_summary:+ result.append({+ "role": "system",+ "content": self._compressed_summary+ })++ for msg in self._messages:+ if exclude_mark and msg.mark == exclude_mark:+ continue+ if include_mark and msg.mark != include_mark:+ continue++ result.append({+ "id": msg.id,+ "role": msg.role,+ "content": msg.content,+ "timestamp": msg.timestamp+ })++ return result++ def get_uncompressed_messages(self) -> List[Message]:+ return [m for m in self._messages if m.mark == MessageMark.NONE]++ def update_compressed_summary(self, summary: str) -> None:+ self._compressed_summary = summary+ self._save_summary()+ logger.info("Updated compressed summary")++ def get_compressed_summary(self) -> str:+ return self._compressed_summary++ def mark_messages(self, msg_ids: List[str], mark: MessageMark) -> int:+ count = 0+ for msg in self._messages:+ if msg.id in msg_ids:+ msg.mark = mark+ count += 1+ self._save()+ return count++ def clear(self) -> None:+ self._messages = []+ self._compressed_summary = ""+ self._save()+ self._save_summary()++ @property+ def message_count(self) -> int:+ return len(self._messages)++ @property+ def uncompressed_count(self) -> int:+ return len(self.get_uncompressed_messages())+++class CompactionManager:+ """Manages automatic message compression."""++ def __init__(+ self,+ workspace_dir: str,+ threshold: int = MEMORY_COMPACT_THRESHOLD,+ keep_recent: int = MEMORY_COMPACT_KEEP_RECENT+ ):+ self.workspace_dir = workspace_dir+ self.threshold = threshold+ self.keep_recent = keep_recent+ self.message_store = MessageStore(workspace_dir)+ self._compaction_callbacks: List = []++ def add_compaction_callback(self, callback) -> None:+ self._compaction_callbacks.append(callback)++ async def _notify_compaction(self, summary: str, compacted_count: int) -> None:+ for callback in self._compaction_callbacks:+ try:+ if asyncio.iscoroutinefunction(callback):+ await callback(summary, compacted_count)+ else:+ callback(summary, compacted_count)+ except Exception as e:+ logger.error(f"Compaction callback failed: {e}")++ def should_compact(self, messages: List[Dict[str, Any]]) -> bool:+ if len(messages) <= self.keep_recent:+ return False++ messages_to_compact = messages[:-self.keep_recent] if self.keep_recent > 0 else messages+ estimated_tokens = TokenCounter.count_messages(messages_to_compact)++ return estimated_tokens > self.threshold++ async def check_and_compact(self, memory_manager) -> Optional[str]:+ messages = self.message_store.get_messages(+ exclude_mark=MessageMark.COMPRESSED,+ prepend_summary=False+ )++ if not self.should_compact(messages):+ return None++ return await self.do_compact(memory_manager)++ async def do_compact(self, memory_manager) -> str:+ messages = self.message_store.get_uncompressed_messages()++ if len(messages) <= self.keep_recent:+ logger.debug("Not enough messages to compact")+ return ""++ messages_to_compact = messages[:-self.keep_recent] if self.keep_recent > 0 else messages+ messages_to_keep = messages[-self.keep_recent:] if self.keep_recent > 0 else []++ compact_dicts = [{+ "role": m.role,+ "content": m.content,+ "timestamp": m.timestamp+ } for m in messages_to_compact]++ estimated_tokens = TokenCounter.count_messages(compact_dicts)++ logger.info(+ "Memory compaction triggered: estimated %d tokens "+ "(threshold: %d), compactable_msgs: %d, keep_recent_msgs: %d",+ estimated_tokens,+ self.threshold,+ len(messages_to_compact),+ len(messages_to_keep)+ )++ previous_summary = self.message_store.get_compressed_summary()++ from .summarizer import compact_memory+ compacted = await compact_memory(+ messages=compact_dicts,+ previous_summary=previous_summary+ )++ self.message_store.update_compressed_summary(compacted)++ compacted_ids = [m.id for m in messages_to_compact]+ marked_count = self.message_store.mark_messages(compacted_ids, MessageMark.COMPRESSED)++ logger.info(f"Marked {marked_count} messages as compacted")++ memory_manager.add_async_summary_task(+ messages=compact_dicts,+ date=datetime.now().strftime("%Y-%m-%d")+ )++ await self._notify_compaction(compacted, len(messages_to_compact))++ return compacted++ def add_message(self, role: str, content: str) -> Message:+ return self.message_store.add_message(role, content)++ def get_messages_for_context(self) -> List[Dict[str, Any]]:+ return self.message_store.get_messages(+ exclude_mark=MessageMark.COMPRESSED,+ prepend_summary=True+ )++ def get_compressed_summary(self) -> str:+ return self.message_store.get_compressed_summary()++ @property+ def stats(self) -> Dict[str, Any]:+ return {+ "total_messages": self.message_store.message_count,+ "uncompressed_messages": self.message_store.uncompressed_count,+ "threshold": self.threshold,+ "keep_recent": self.keep_recent,+ "has_compressed_summary": bool(self.message_store.get_compressed_summary())+ }diff --git a/jiuwenclaw/agentserver/memory/config.py b/jiuwenclaw/agentserver/memory/config.pynew file mode 100644index 0000000000..4d3b819f21--- /dev/null+++ b/jiuwenclaw/agentserver/memory/config.py@@ -0,0 +1,198 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Memory configuration for JiuWenClaw.++Configuration is loaded from config/config.yaml.+Embedding API settings are in the 'embed' section.+"""++import os+import re+import logging+from typing import Any, Optional, Dict, List+from dataclasses import dataclass, field+from pathlib import Path++import yaml++from jiuwenclaw.paths import get_config_file, get_agent_workspace_dir++logger = logging.getLogger(__name__)++DEFAULT_CONFIG_PATH = str(get_config_file())+DEFAULT_WORKSPACE_DIR = str(get_agent_workspace_dir())++_config_cache: Optional[Dict[str, Any]] = None+++def _resolve_env_vars(value: Any) -> Any:+ """Recursively resolve environment variables in config values."""+ if isinstance(value, str):+ pattern = r'\$\{([^:}]+)(?::-([^}]*))?\}'+ def replace_env(match):+ var_name = match.group(1)+ default = match.group(2) if match.group(2) is not None else ""+ return os.getenv(var_name, default)+ return re.sub(pattern, replace_env, value)+ elif isinstance(value, dict):+ return {k: _resolve_env_vars(v) for k, v in value.items()}+ elif isinstance(value, list):+ return [_resolve_env_vars(item) for item in value]+ else:+ return value+++def clear_config_cache() -> None:+ """清除配置缓存,使下次 _load_config() 重新从 config.yaml 读取并解析环境变量."""+ global _config_cache+ _config_cache = None+++def _load_config() -> Dict[str, Any]:+ """Load configuration from YAML file."""+ global _config_cache++ if _config_cache is not None:+ return _config_cache++ config_path = Path(DEFAULT_CONFIG_PATH)++ if not config_path.exists():+ logger.warning(f"Config file not found: {config_path}")+ _config_cache = {}+ return _config_cache++ with open(config_path, "r", encoding="utf-8") as f:+ config = yaml.safe_load(f) or {}++ config = _resolve_env_vars(config)+ _config_cache = config+ return config+++def get_embed_config() -> Dict[str, str]:+ """Get embedding configuration from config file.++ Returns embedding API configuration from config.yaml embed section.+ """+ config = _load_config()+ embed_config = config.get("embed", {})++ return {+ "api_key": embed_config.get("embed_api_key"),+ "base_url": embed_config.get("embed_base_url"),+ "model": embed_config.get("embed_model"),+ }+++EMBED_API_KEY = property(lambda self: get_embed_config()["api_key"])+EMBED_BASE_URL = property(lambda self: get_embed_config()["base_url"])+EMBED_MODEL = property(lambda self: get_embed_config()["model"])+++@dataclass+class MemorySettings:+ """Memory configuration settings."""+ provider: str = "openai_compatible"+ model: str = "text-embedding-v3"+ fallback: str = "mock"+ sources: List[str] = field(default_factory=lambda: ["memory", "sessions"])+ extraPaths: List[str] = field(default_factory=list)++ chunking: Dict[str, int] = field(default_factory=lambda: {"tokens": 256, "overlap": 32})++ query: Dict[str, Any] = field(default_factory=lambda: {+ "maxResults": 10,+ "minScore": 0.3,+ "hybrid": {+ "enabled": True,+ "vectorWeight": 0.7,+ "textWeight": 0.3,+ "candidateMultiplier": 2.0+ }+ })++ store: Dict[str, Any] = field(default_factory=lambda: {+ "path": "memory.db", # 相对于 workspace/agent/memory/ 目录+ "vector": {"enabled": True},+ "fts": {"enabled": True}+ })++ sync: Dict[str, Any] = field(default_factory=lambda: {+ "watch": True,+ "watchDebounceMs": 2000,+ "onSearch": True,+ "onSessionStart": True,+ "intervalMinutes": 0+ })++ cache: Dict[str, Any] = field(default_factory=lambda: {+ "enabled": True,+ "maxEntries": 10000+ })+++def create_memory_settings(+ workspace_dir: str = DEFAULT_WORKSPACE_DIR,+ **overrides+) -> MemorySettings:+ """Create MemorySettings instance.++ Args:+ workspace_dir: Workspace directory+ **overrides: Override default settings++ Returns:+ MemorySettings instance+ """+ config = _load_config()+ embed_config = get_embed_config()+ memory_config = config.get("memory", {})++ settings = MemorySettings()++ settings.model = embed_config.get("model", settings.model)++ if memory_config:+ if "provider" in memory_config:+ settings.provider = memory_config["provider"]+ if "fallback" in memory_config:+ settings.fallback = memory_config["fallback"]+ if "sources" in memory_config:+ settings.sources = memory_config["sources"]+ if "extraPaths" in memory_config:+ settings.extraPaths = memory_config["extraPaths"]+ if "chunking" in memory_config:+ settings.chunking = memory_config["chunking"]+ if "query" in memory_config:+ settings.query = memory_config["query"]+ if "sync" in memory_config:+ settings.sync = memory_config["sync"]+ if "cache" in memory_config:+ settings.cache = memory_config["cache"]++ if "store" not in overrides:+ store_config = memory_config.get("store", {})+ # 向量数据库索引文件存放在与 MEMORY.md 同目录 (workspace/agent/memory/memory.db)+ # 只使用文件名,让 manager.py 的 _resolve_db_path 处理完整路径+ overrides["store"] = {+ "path": store_config.get("path", "memory.db"),+ "vector": store_config.get("vector", {"enabled": True}),+ "fts": store_config.get("fts", {"enabled": True}),+ }++ for key, value in overrides.items():+ if hasattr(settings, key):+ setattr(settings, key, value)++ return settings+++def is_memory_enabled() -> bool:+ """Check if memory is enabled.++ Reads from config.yaml memory.enabled setting.+ """+ config = _load_config()+ memory_config = config.get("memory", {})+ return memory_config.get("enabled", True)diff --git a/jiuwenclaw/agentserver/memory/embeddings.py b/jiuwenclaw/agentserver/memory/embeddings.pynew file mode 100644index 0000000000..cea8dff482--- /dev/null+++ b/jiuwenclaw/agentserver/memory/embeddings.py@@ -0,0 +1,161 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Embedding providers for memory system."""++import os+import logging+from abc import ABC, abstractmethod+from typing import List, Optional++logger = logging.getLogger(__name__)+++class EmbeddingProvider(ABC):+ """Base class for embedding providers."""++ id: str = "base"+ model: str = "base"+ dims: int = 0++ @abstractmethod+ async def embed_query(self, text: str) -> List[float]:+ """Generate embedding for a query."""+ pass++ @abstractmethod+ async def embed_documents(self, texts: List[str]) -> List[List[float]]:+ """Generate embeddings for multiple documents."""+ pass+++class OpenAICompatibleEmbeddingProvider(EmbeddingProvider):+ """OpenAI-compatible embedding provider (supports DashScope, OpenAI, etc.)."""++ id: str = "openai_compatible"++ def __init__(+ self,+ api_key: Optional[str] = None,+ model: Optional[str] = None,+ base_url: Optional[str] = None+ ):+ from .config import get_embed_config++ embed_config = get_embed_config()++ self.api_key = api_key or os.getenv("EMBED_KEY") or os.getenv("EMBED_API_KEY") or embed_config.get("api_key", "")+ self.model = model or os.getenv("EMBED_MODEL") or os.getenv("EMBEDDING_MODEL") or embed_config.get("model", "")+ self.base_url = base_url or os.getenv("EMBED_BASE") or os.getenv("EMBED_BASE_URL") or embed_config.get("base_url", "")++ if self.base_url and self.base_url.endswith("/embeddings"):+ self.base_url = self.base_url.rsplit("/embeddings", 1)[0]++ self.dims = 1024+ self._client = None++ def _get_client(self):+ """Get or create HTTP client."""+ if self._client is None:+ import httpx+ self._client = httpx.AsyncClient(timeout=60.0)+ return self._client++ async def embed_query(self, text: str) -> List[float]:+ """Generate embedding for a query."""+ embeddings = await self.embed_documents([text])+ return embeddings[0] if embeddings else []++ async def embed_documents(self, texts: List[str]) -> List[List[float]]:+ """Generate embeddings for multiple documents."""+ if not self.api_key:+ raise ValueError("Embedding API key not configured. Set embed.api_key in config.yaml or EMBED_API_KEY environment variable.")++ client = self._get_client()++ response = await client.post(+ f"{self.base_url}/embeddings",+ headers={+ "Authorization": f"Bearer {self.api_key}",+ "Content-Type": "application/json"+ },+ json={+ "model": self.model,+ "input": texts,+ "encoding_format": "float"+ }+ )++ if response.status_code != 200:+ raise RuntimeError(f"Embedding API failed: {response.text}")++ data = response.json()+ embeddings = []+ for item in sorted(data.get("data", []), key=lambda x: x.get("index", 0)):+ embedding = item.get("embedding", [])+ embeddings.append(embedding)++ if embeddings:+ self.dims = len(embeddings[0])++ return embeddings+++class MockEmbeddingProvider(EmbeddingProvider):+ """Mock embedding provider for testing."""++ id: str = "mock"+ model: str = "mock"+ dims: int = 128++ async def embed_query(self, text: str) -> List[float]:+ """Generate mock embedding."""+ import hashlib+ import random+ h = hashlib.md5(text.encode()).hexdigest()+ random.seed(h)+ return [random.uniform(-1, 1) for _ in range(128)]++ async def embed_documents(self, texts: List[str]) -> List[List[float]]:+ """Generate mock embeddings."""+ return [await self.embed_query(t) for t in texts]+++async def create_embedding_provider(+ provider: str = "auto",+ model: Optional[str] = None,+ fallback: str = "mock"+) -> EmbeddingProvider:+ """Create embedding provider based on configuration.++ Uses config from config.yaml embed section if environment variables not set.++ Args:+ provider: Provider name (openai_compatible, auto, mock)+ model: Model name+ fallback: Fallback provider if auto-detection fails++ Returns:+ Embedding provider instance+ """+ from .config import get_embed_config++ if provider == "mock":+ return MockEmbeddingProvider()++ embed_config = get_embed_config()+ embed_key = os.getenv("EMBED_KEY") or os.getenv("EMBED_API_KEY") or embed_config.get("api_key", "")++ if embed_key:+ return OpenAICompatibleEmbeddingProvider(+ api_key=embed_key,+ model=model or os.getenv("EMBED_MODEL") or os.getenv("EMBEDDING_MODEL") or embed_config.get("model"),+ base_url=os.getenv("EMBED_BASE") or os.getenv("EMBED_BASE_URL") or embed_config.get("base_url")+ )++ if fallback == "mock":+ logger.warning("Embedding API key not found, using mock provider")+ return MockEmbeddingProvider()++ raise ValueError(+ "Embedding API key not configured. Set embed.api_key in config.yaml or EMBED_API_KEY environment variable."+ )diff --git a/jiuwenclaw/agentserver/memory/internal.py b/jiuwenclaw/agentserver/memory/internal.pynew file mode 100644index 0000000000..80b564fedb--- /dev/null+++ b/jiuwenclaw/agentserver/memory/internal.py@@ -0,0 +1,216 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Internal utilities for memory system."""++import os+import re+import hashlib+import math+from typing import List, Dict, Any, Optional, Tuple+from pathlib import Path++from .types import MemoryFileEntry, MemoryChunk, MemorySource+++def estimate_tokens(text: str) -> int:+ """Estimate token count for text.++ Uses simple character-based estimation: ~4 characters per token.+ """+ if not text:+ return 0+ return len(text) // 4+++def ensure_dir(path: str) -> None:+ """Ensure directory exists."""+ if path:+ os.makedirs(path, exist_ok=True)+++def list_memory_files(+ workspace_dir: str,+ extra_paths: Optional[List[str]] = None+) -> List[str]:+ """List all memory files in workspace."""+ files = []+ extra_paths = extra_paths or []++ for filename in ["MEMORY.md", "memory.md"]:+ filepath = os.path.join(workspace_dir, filename)+ if os.path.isfile(filepath):+ files.append(filepath)++ memory_dir = os.path.join(workspace_dir, "memory")+ if os.path.isdir(memory_dir):+ for root, _, filenames in os.walk(memory_dir):+ for f in filenames:+ if f.endswith(".md"):+ files.append(os.path.join(root, f))++ for extra in extra_paths:+ full_path = os.path.join(workspace_dir, extra)+ if os.path.isfile(full_path):+ files.append(full_path)+ elif os.path.isdir(full_path):+ for root, _, filenames in os.walk(full_path):+ for f in filenames:+ if f.endswith(".md"):+ files.append(os.path.join(root, f))++ return sorted(set(files))+++async def build_file_entry(abs_path: str, workspace_dir: str) -> Dict[str, Any]:+ """Build file entry for indexing."""+ stat = os.stat(abs_path)++ with open(abs_path, "r", encoding="utf-8", errors="replace") as f:+ content = f.read()++ content_hash = hash_text(content)++ return {+ "path": os.path.relpath(abs_path, workspace_dir),+ "absPath": abs_path,+ "hash": content_hash,+ "mtimeMs": int(stat.st_mtime * 1000),+ "size": stat.st_size+ }+++def chunk_markdown(+ content: str,+ settings: Optional[Dict[str, Any]] = None+) -> List[MemoryChunk]:+ """Chunk markdown content by tokens."""+ settings = settings or {}+ target_tokens = settings.get("tokens", 256)+ overlap = settings.get("overlap", 32)++ lines = content.split("\n")+ chunks = []+ current_chunk = []+ current_tokens = 0+ start_line = 1++ for i, line in enumerate(lines, 1):+ line_tokens = estimate_tokens(line)++ if current_tokens + line_tokens > target_tokens and current_chunk:+ chunk_text = "\n".join(current_chunk)+ chunks.append(MemoryChunk(+ text=chunk_text,+ startLine=start_line,+ endLine=i - 1+ ))++ overlap_lines = []+ overlap_tokens = 0+ for j in range(len(current_chunk) - 1, -1, -1):+ lt = estimate_tokens(current_chunk[j])+ if overlap_tokens + lt > overlap:+ break+ overlap_lines.insert(0, current_chunk[j])+ overlap_tokens += lt++ current_chunk = overlap_lines+ current_tokens = overlap_tokens+ start_line = i - len(overlap_lines)++ current_chunk.append(line)+ current_tokens += line_tokens++ if current_chunk:+ chunk_text = "\n".join(current_chunk)+ chunks.append(MemoryChunk(+ text=chunk_text,+ startLine=start_line,+ endLine=len(lines)+ ))++ return chunks+++def hash_text(text: str) -> str:+ """Generate hash for text content."""+ return hashlib.sha256(text.encode("utf-8")).hexdigest()[:16]+++def parse_embedding(data: Any) -> Optional[List[float]]:+ """Parse embedding from API response."""+ if isinstance(data, list):+ return data+ if isinstance(data, dict):+ if "embedding" in data:+ return parse_embedding(data["embedding"])+ if "data" in data and isinstance(data["data"], list):+ if data["data"] and "embedding" in data["data"][0]:+ return data["data"][0]["embedding"]+ return None+++def build_fts_query(query: str) -> str:+ """Build FTS5 query from user input."""+ cleaned = query.strip()+ if not cleaned:+ return ""++ tokens = re.findall(r'\w+', cleaned)+ if not tokens:+ return ""++ return " OR ".join(f'"{t}"' for t in tokens[:10])+++def bm25_rank_to_score(rank: float) -> float:+ """Convert BM25 rank to similarity score (0-1)."""+ if rank >= 0:+ return 1.0 / (1.0 + rank)+ return 1.0 / (1.0 - rank)+++def is_memory_path(rel_path: str) -> bool:+ """Check if path is a memory file."""+ basename = os.path.basename(rel_path).lower()+ if basename in ("memory.md", "memory"):+ return True++ parts = rel_path.replace("\\", "/").split("/")+ if "memory" in [p.lower() for p in parts]:+ return True++ return False+++def normalize_extra_memory_paths(+ paths: Optional[List[str]],+ workspace_dir: str+) -> List[str]:+ """Normalize extra memory paths."""+ if not paths:+ return []++ normalized = []+ for p in paths:+ if os.path.isabs(p):+ normalized.append(p)+ else:+ normalized.append(os.path.join(workspace_dir, p))++ return normalized+++def cosine_similarity(vec1: List[float], vec2: List[float]) -> float:+ """Calculate cosine similarity between two vectors."""+ if len(vec1) != len(vec2):+ return 0.0++ dot = sum(a * b for a, b in zip(vec1, vec2))+ norm1 = math.sqrt(sum(a * a for a in vec1))+ norm2 = math.sqrt(sum(b * b for b in vec2))++ if norm1 < 1e-10 or norm2 < 1e-10:+ return 0.0++ return dot / (norm1 * norm2)diff --git a/jiuwenclaw/agentserver/memory/manager.py b/jiuwenclaw/agentserver/memory/manager.pynew file mode 100644index 0000000000..8bbd459764--- /dev/null+++ b/jiuwenclaw/agentserver/memory/manager.py@@ -0,0 +1,1328 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Memory Index Manager - Core memory management for JiuWenClaw."""++import os+import json+import sqlite3+import struct+import asyncio+import logging+import datetime+from typing import List, Optional, Dict, Any, Set+from dataclasses import dataclass+from pathlib import Path++from .types import (+ MemorySearchResult, MemoryFileEntry, MemoryChunk, MemorySource+)+from .internal import (+ ensure_dir, list_memory_files, build_file_entry, chunk_markdown,+ hash_text, build_fts_query, bm25_rank_to_score, is_memory_path+)+from .embeddings import EmbeddingProvider, create_embedding_provider+from .config import MemorySettings++logger = logging.getLogger(__name__)++META_KEY = "memory_index_meta_v1"+SNIPPET_MAX_CHARS = 700+VECTOR_TABLE = "chunks_vec"+FTS_TABLE = "chunks_fts"+EMBEDDING_CACHE_TABLE = "embedding_cache"+SESSION_DIRTY_DEBOUNCE_MS = 5000++INDEX_CACHE: Dict[str, 'MemoryIndexManager'] = {}+++@dataclass+class SessionDeltaState:+ """Tracks incremental changes to a session file."""+ last_size: int = 0+ pending_bytes: int = 0+ pending_messages: int = 0+++def vector_to_blob(embedding: List[float]) -> bytes:+ """Convert vector to binary blob."""+ return struct.pack(f'{len(embedding)}f', *embedding)+++def blob_to_vector(blob: bytes) -> List[float]:+ """Convert binary blob to vector."""+ count = len(blob) // 4+ return list(struct.unpack(f'{count}f', blob))+++class MemoryIndexManager:+ """Manages memory indexing and search."""++ def __init__(+ self,+ agent_id: str,+ workspace_dir: str,+ settings: MemorySettings+ ):+ self.agent_id = agent_id+ self.workspace_dir = workspace_dir+ self.settings = settings++ self.db: Optional[sqlite3.Connection] = None+ self.db_path: str = ""++ self.provider: Optional[EmbeddingProvider] = None+ self.provider_key: str = ""++ self.dirty = True+ self.sessions_dirty = False+ self.sessions_dirty_files: Set[str] = set()+ self.session_warm: Set[str] = set()+ self.closed = False++ self.fts_enabled = settings.store.get("fts", {}).get("enabled", True)+ self.vector_enabled = settings.store.get("vector", {}).get("enabled", True)+ self.cache_enabled = settings.cache.get("enabled", True)++ self.fts_available = False+ self.fts_error: Optional[str] = None+ self.vector_available = False+ self.vector_error: Optional[str] = None+ self.vector_dims: Optional[int] = None++ self._interval_timer: Optional[asyncio.Task] = None+ self._watch_timer: Optional[asyncio.Task] = None+ self._session_timer: Optional[asyncio.Task] = None+ self._session_pending_files: Set[str] = set()+ self._session_deltas: Dict[str, SessionDeltaState] = {}++ self._file_observer: Optional[Any] = None+ self._watcher_paths: Set[str] = set()+ self._event_loop: Optional[asyncio.AbstractEventLoop] = None+ self._watcher_initialized: bool = False+ self._file_stability_tracker: Dict[str, float] = {}+ self._summary_tasks: List[asyncio.Task] = []++ @classmethod+ async def get(+ cls,+ agent_id: str,+ workspace_dir: str,+ settings: Optional[MemorySettings] = None+ ) -> Optional['MemoryIndexManager']:+ """Get or create memory index manager."""+ cache_key = f"{agent_id}:{workspace_dir}"++ if cache_key in INDEX_CACHE:+ manager = INDEX_CACHE[cache_key]+ if not manager.closed:+ return manager++ settings = settings or MemorySettings()+ manager = cls(agent_id, workspace_dir, settings)++ try:+ await manager._initialize()+ INDEX_CACHE[cache_key] = manager+ return manager+ except Exception as e:+ logger.error(f"Failed to initialize memory manager: {e}")+ return None++ async def _initialize(self) -> None:+ """Initialize the memory manager."""+ try:+ self._event_loop = asyncio.get_running_loop()+ except RuntimeError:+ self._event_loop = None++ self.db_path = self._resolve_db_path()+ self.db = self._open_database(self.db_path)+ self._ensure_schema()+ await self._initialize_provider()+ await self._load_vector_extension()++ await self.sync(reason="initial")++ if self.settings.sync.get("watch", True):+ self._setup_file_watcher()++ self._ensure_interval_sync()++ logger.info(f"Memory manager initialized for agent: {self.agent_id}")++ def _resolve_db_path(self) -> str:+ """Resolve database path.++ 确保向量数据库索引文件存放在与 MEMORY.md 同目录 (workspace/agent/memory/)+ """+ store_path = self.settings.store.get("path", "memory.db")+ if os.path.isabs(store_path):+ return store_path++ # 如果 store_path 已经包含 workspace_dir 的部分路径,避免重复拼接+ workspace_name = os.path.basename(self.workspace_dir)+ if store_path.startswith(f"{workspace_name}/") or store_path.startswith(f"{workspace_name}\\"):+ # 去除重复的 workspace 目录前缀+ store_path = store_path[len(workspace_name)+1:]++ # 确保使用 memory 子目录,与 MEMORY.md 同目录+ if not store_path.startswith("memory/") and not store_path.startswith("memory\\"):+ store_path = os.path.join("memory", store_path)++ return os.path.join(self.workspace_dir, store_path)++ def _open_database(self, db_path: str) -> sqlite3.Connection:+ """Open SQLite database."""+ ensure_dir(os.path.dirname(db_path) or ".")++ conn = sqlite3.connect(db_path, check_same_thread=False)+ conn.row_factory = sqlite3.Row+ conn.execute("PRAGMA journal_mode=WAL")+ conn.execute("PRAGMA foreign_keys=ON")++ return conn++ def _ensure_schema(self) -> None:+ """Ensure database schema exists."""+ if not self.db:+ raise RuntimeError("Database not initialized")++ self.db.execute("""+ CREATE TABLE IF NOT EXISTS meta (+ key TEXT PRIMARY KEY,+ value TEXT+ )+ """)++ self.db.execute("""+ CREATE TABLE IF NOT EXISTS files (+ path TEXT PRIMARY KEY,+ source TEXT,+ hash TEXT,+ mtime INTEGER,+ size INTEGER+ )+ """)++ self.db.execute("""+ CREATE TABLE IF NOT EXISTS chunks (+ id TEXT PRIMARY KEY,+ path TEXT,+ source TEXT,+ start_line INTEGER,+ end_line INTEGER,+ hash TEXT,+ model TEXT,+ text TEXT,+ embedding BLOB,+ updated_at INTEGER+ )+ """)++ self.db.execute(f"""+ CREATE TABLE IF NOT EXISTS {EMBEDDING_CACHE_TABLE} (+ provider TEXT,+ model TEXT,+ provider_key TEXT,+ hash TEXT PRIMARY KEY,+ embedding BLOB,+ dims INTEGER,+ updated_at INTEGER+ )+ """)++ if self.fts_enabled:+ try:+ self.db.execute(f"""+ CREATE VIRTUAL TABLE IF NOT EXISTS {FTS_TABLE} USING fts5(+ id UNINDEXED,+ path UNINDEXED,+ source UNINDEXED,+ text,+ content='',+ contentless_delete=1+ )+ """)+ self.fts_available = True+ except Exception as e:+ self.fts_available = False+ self.fts_error = str(e)+ logger.warning(f"Failed to create FTS5 table: {e}")++ self.db.commit()++ async def _initialize_provider(self) -> None:+ """Initialize embedding provider."""+ try:+ self.provider = await create_embedding_provider(+ provider=self.settings.provider,+ model=self.settings.model,+ fallback=self.settings.fallback+ )+ self.provider_key = f"{self.provider.id}:{self.provider.model}"+ logger.info(f"Embedding provider: {self.provider.id} / {self.provider.model}")+ except Exception as e:+ logger.error(f"Failed to initialize embedding provider: {e}")+ raise++ async def _load_vector_extension(self) -> None:+ """Load sqlite-vec extension."""+ if not self.vector_enabled or not self.db:+ return++ try:+ import sqlite_vec+ self.db.enable_load_extension(True)+ sqlite_vec.load(self.db)+ self.db.enable_load_extension(False)+ self.vector_available = True+ logger.info("sqlite-vec extension loaded successfully")+ except Exception as e:+ self.vector_available = False+ self.vector_error = str(e)+ logger.warning(f"Failed to load sqlite-vec extension: {e}")++ def _ensure_vector_table(self, dims: int) -> bool:+ """Ensure vector virtual table exists with correct dimensions."""+ if not self.db or not self.vector_available:+ return False++ try:+ if self.vector_dims == dims:+ return True++ if self.vector_dims is not None and self.vector_dims != dims:+ try:+ self.db.execute(f"DROP TABLE IF EXISTS {VECTOR_TABLE}")+ except:+ pass++ self.db.execute(f"""+ CREATE VIRTUAL TABLE IF NOT EXISTS {VECTOR_TABLE} USING vec0(+ embedding float[{dims}]+ )+ """)+ self.vector_dims = dims+ logger.info(f"Vector table created with dims={dims}")+ return True++ except Exception as e:+ logger.warning(f"Failed to create vector table: {e}")+ self.vector_available = False+ self.vector_error = str(e)+ return False++ def _setup_file_watcher(self) -> None:+ """Setup file system watcher for memory files."""+ try:+ from watchdog.observers import Observer+ from watchdog.events import FileSystemEventHandler++ class MemoryFileHandler(FileSystemEventHandler):+ def __init__(self, manager: 'MemoryIndexManager'):+ self.manager = manager++ def on_modified(self, event):+ if not event.is_directory and self.manager._watcher_initialized:+ self._handle_change(event.src_path, "modified")++ def on_created(self, event):+ if not event.is_directory and self.manager._watcher_initialized:+ self._handle_change(event.src_path, "created")++ def on_deleted(self, event):+ if not event.is_directory and self.manager._watcher_initialized:+ self._handle_change(event.src_path, "deleted")++ def _handle_change(self, path: str, event_type: str):+ rel_path = os.path.relpath(path, self.manager.workspace_dir)+ if is_memory_path(rel_path):+ self.manager._schedule_watch_sync(path, event_type)++ watch_paths = set()++ for filename in ["MEMORY.md", "memory.md"]:+ filepath = os.path.join(self.workspace_dir, filename)+ if os.path.exists(filepath) and not os.path.islink(filepath):+ watch_paths.add(filepath)++ memory_dir = os.path.join(self.workspace_dir, "memory")+ if os.path.exists(memory_dir) and not os.path.islink(memory_dir):+ watch_paths.add(memory_dir)++ for extra_path in self.settings.extraPaths:+ full_path = os.path.join(self.workspace_dir, extra_path)+ if os.path.exists(full_path) and not os.path.islink(full_path):+ watch_paths.add(full_path)++ if not watch_paths:+ logger.debug("No memory paths to watch")+ return++ self._file_observer = Observer()+ handler = MemoryFileHandler(self)++ for watch_path in watch_paths:+ if os.path.isdir(watch_path):+ self._file_observer.schedule(handler, watch_path, recursive=True)+ else:+ parent_dir = os.path.dirname(watch_path)+ if parent_dir:+ self._file_observer.schedule(handler, parent_dir, recursive=False)+ self._watcher_paths.add(watch_path)++ self._file_observer.start()++ self._watcher_initialized = False+ if self._event_loop:+ self._event_loop.call_later(1.0, self._set_watcher_initialized)++ logger.info(f"File watcher started for {len(watch_paths)} path(s)")++ except ImportError:+ logger.warning("watchdog not installed, file watching disabled")+ except Exception as e:+ logger.error(f"Failed to setup file watcher: {e}")++ def _set_watcher_initialized(self) -> None:+ """Mark watcher as initialized after initial scan period."""+ self._watcher_initialized = True+ logger.debug("File watcher initialized")++ def _schedule_watch_sync(self, path: Optional[str] = None, event_type: Optional[str] = None) -> None:+ """Schedule a sync after file change (debounced)."""+ self.dirty = True++ if not self._event_loop:+ return++ debounce_ms = self.settings.sync.get("watchDebounceMs", 2000)++ def schedule_sync():+ if self.closed:+ return++ if self._watch_timer:+ self._watch_timer.cancel()++ async def do_watch_sync():+ await asyncio.sleep(debounce_ms / 1000)+ self._watch_timer = None++ if not self.closed:+ try:+ await self.sync(reason="watch")+ except Exception as e:+ logger.warning(f"Memory sync failed (watch): {e}")++ self._watch_timer = asyncio.create_task(do_watch_sync())++ try:+ self._event_loop.call_soon_threadsafe(schedule_sync)+ except Exception as e:+ logger.debug(f"Failed to schedule sync: {e}")++ def _ensure_interval_sync(self) -> None:+ """Setup interval-based sync if configured."""+ minutes = self.settings.sync.get("intervalMinutes", 0)+ if not minutes or minutes <= 0:+ return++ if self._interval_timer:+ return++ async def interval_sync():+ while not self.closed:+ await asyncio.sleep(minutes * 60)+ if not self.closed:+ try:+ await self.sync(reason="interval")+ except Exception as e:+ logger.warning(f"Memory sync failed (interval): {e}")++ self._interval_timer = asyncio.create_task(interval_sync())+ logger.info(f"Interval sync enabled: every {minutes} minutes")++ async def sync(+ self,+ reason: Optional[str] = None,+ force: bool = False+ ) -> None:+ """Synchronize memory index."""+ if self.closed:+ return++ needs_full_reindex = force or await self._should_full_reindex()++ if needs_full_reindex:+ logger.info(f"Running full reindex (reason: {reason or 'unknown'})...")+ await self._run_reindex()+ return++ logger.debug(f"Memory sync (reason: {reason or 'unknown'})...")++ if "memory" in self.settings.sources and self.dirty:+ await self._sync_memory_files()+ self.dirty = False++ if "sessions" in self.settings.sources:+ await self._sync_session_files()++ async def _should_full_reindex(self) -> bool:+ """Check if full reindex is needed."""+ try:+ cursor = self.db.execute(+ "SELECT value FROM meta WHERE key = ?",+ (META_KEY,)+ )+ row = cursor.fetchone()++ if not row:+ return True++ meta = json.loads(row["value"])++ if meta.get("provider") != self.provider.id:+ return True++ if meta.get("model") != self.provider.model:+ return True++ if meta.get("chunkTokens") != self.settings.chunking.get("tokens"):+ return True++ return False++ except Exception as e:+ logger.warning(f"Failed to check meta: {e}")+ return True++ async def _run_reindex(self) -> None:+ """Run full reindex."""+ if "memory" in self.settings.sources:+ await self._sync_memory_files()+ self.dirty = False++ if "sessions" in self.settings.sources:+ await self._sync_session_files()++ meta = {+ "provider": self.provider.id,+ "model": self.provider.model,+ "providerKey": self.provider_key,+ "chunkTokens": self.settings.chunking.get("tokens"),+ "chunkOverlap": self.settings.chunking.get("overlap"),+ }+ if self.vector_available and self.vector_dims:+ meta["vectorDims"] = self.vector_dims++ self._write_meta(meta)++ def _is_recent_session_file(self, filename: str) -> bool:+ """Check if the file is today's or yesterday's session record.++ Session files are named as YYYY-MM-DD.md in the memory/ directory.++ Args:+ filename: The filename to check++ Returns:+ True if the file is from today or yesterday+ """+ import re++ match = re.match(r'^(\d{4}-\d{2}-\d{2})\.md$', filename)+ if not match:+ return False++ date_str = match.group(1)++ try:+ file_date = datetime.datetime.strptime(date_str, "%Y-%m-%d").date()+ except ValueError:+ return False++ today = datetime.datetime.now().date()+ yesterday = today - datetime.timedelta(days=1)++ return file_date in (today, yesterday)++ async def _sync_memory_files(self) -> None:+ """Sync memory files.++ All session files (YYYY-MM-DD.md) are indexed for search.+ Recent session files (today + yesterday) are also loaded for context.+ """+ files = list_memory_files(self.workspace_dir, self.settings.extraPaths)++ logger.debug(f"Syncing {len(files)} memory files")++ active_paths = set()++ for filepath in files:+ entry = await build_file_entry(filepath, self.workspace_dir)+ active_paths.add(entry["path"])++ cursor = self.db.execute(+ "SELECT hash FROM files WHERE path = ? AND source = ?",+ (entry["path"], "memory")+ )+ row = cursor.fetchone()++ if row and row["hash"] == entry["hash"]:+ continue++ await self._index_file(entry, "memory")++ cursor = self.db.execute("SELECT path FROM files WHERE source = ?", ("memory",))+ for row in cursor.fetchall():+ if row["path"] not in active_paths:+ self._remove_file_from_index(row["path"])++ async def _sync_session_files(self) -> None:+ """Sync session transcript files."""+ sessions_dir = os.path.join(self.workspace_dir, "sessions")+ if not os.path.exists(sessions_dir):+ return++ session_files = []+ for root, _, files in os.walk(sessions_dir):+ for f in files:+ if f.endswith(".jsonl"):+ session_files.append(os.path.join(root, f))++ logger.debug(f"Syncing {len(session_files)} session files")++ active_paths = set()+ for session_file in session_files:+ entry = await build_file_entry(session_file, self.workspace_dir)+ active_paths.add(entry["path"])++ cursor = self.db.execute(+ "SELECT hash FROM files WHERE path = ? AND source = ?",+ (entry["path"], "sessions")+ )+ row = cursor.fetchone()++ if row and row["hash"] == entry["hash"]:+ continue++ await self._index_file(entry, "sessions")++ cursor = self.db.execute("SELECT path FROM files WHERE source = ?", ("sessions",))+ for row in cursor.fetchall():+ if row["path"] not in active_paths:+ self._remove_file_from_index(row["path"])++ async def _index_file(self, entry: Dict[str, Any], source: str) -> None:+ """Index a single file."""+ try:+ with open(entry["absPath"], "r", encoding="utf-8", errors="replace") as f:+ content = f.read()++ chunks = chunk_markdown(content, self.settings.chunking)++ self.db.execute("DELETE FROM chunks WHERE path = ?", (entry["path"],))+ if self.fts_available:+ try:+ self.db.execute(f"DELETE FROM {FTS_TABLE} WHERE path = ?", (entry["path"],))+ except:+ pass++ for chunk in chunks:+ await self._index_chunk(entry["path"], source, chunk)++ self.db.execute("""+ INSERT OR REPLACE INTO files (path, source, hash, mtime, size)+ VALUES (?, ?, ?, ?, ?)+ """, (entry["path"], source, entry["hash"], entry["mtimeMs"], entry["size"]))++ self.db.commit()++ except Exception as e:+ logger.error(f"Failed to index file {entry['path']}: {e}")+ self.db.rollback()++ async def _index_chunk(+ self,+ file_path: str,+ source: str,+ chunk: MemoryChunk+ ) -> None:+ """Index a single chunk."""+ chunk_id = f"{file_path}:{chunk.startLine}:{chunk.endLine}"+ chunk_hash = hash_text(chunk.text)++ embedding = await self._get_embedding(chunk.text)++ cursor = self.db.execute("""+ INSERT OR REPLACE INTO chunks+ (id, path, source, start_line, end_line, hash, model, text, embedding, updated_at)+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)+ RETURNING rowid+ """, (+ chunk_id, file_path, source, chunk.startLine, chunk.endLine,+ chunk_hash, self.provider.model, chunk.text,+ vector_to_blob(embedding) if embedding else None,+ int(asyncio.get_event_loop().time()) if self._event_loop else 0+ ))+ row = cursor.fetchone()+ chunk_rowid = row["rowid"] if row else None++ if self.fts_available and chunk_rowid:+ try:+ self.db.execute(f"""+ INSERT OR REPLACE INTO {FTS_TABLE} (rowid, id, path, source, text)+ VALUES (?, ?, ?, ?, ?)+ """, (chunk_rowid, chunk_id, file_path, source, chunk.text))+ except Exception as e:+ logger.debug(f"Failed to insert into FTS: {e}")++ if self.vector_available and embedding and chunk_rowid:+ try:+ if self._ensure_vector_table(len(embedding)):+ self.db.execute(f"""+ INSERT OR REPLACE INTO {VECTOR_TABLE} (rowid, embedding)+ VALUES (?, vec_f32(?))+ """, (chunk_rowid, vector_to_blob(embedding)))+ except Exception as e:+ logger.debug(f"Failed to insert into vector table: {e}")++ def _remove_file_from_index(self, file_path: str) -> None:+ """Remove file from index."""+ try:+ if self.vector_available:+ cursor = self.db.execute(+ "SELECT rowid FROM chunks WHERE path = ?", (file_path,)+ )+ for row in cursor.fetchall():+ try:+ self.db.execute(f"DELETE FROM {VECTOR_TABLE} WHERE rowid = ?", (row["rowid"],))+ except:+ pass++ if self.fts_available:+ cursor = self.db.execute("SELECT rowid FROM chunks WHERE path = ?", (file_path,))+ for row in cursor.fetchall():+ try:+ self.db.execute(f"DELETE FROM {FTS_TABLE} WHERE rowid = ?", (row["rowid"],))+ except:+ pass++ self.db.execute("DELETE FROM chunks WHERE path = ?", (file_path,))+ self.db.execute("DELETE FROM files WHERE path = ?", (file_path,))+ self.db.commit()++ except Exception as e:+ logger.error(f"Failed to remove file from index: {e}")+ self.db.rollback()++ async def _get_embedding(self, text: str) -> Optional[List[float]]:+ """Get embedding for text (with caching)."""+ if not self.provider:+ return None++ text_hash = hash_text(text)++ if self.cache_enabled:+ cursor = self.db.execute(f"""+ SELECT embedding FROM {EMBEDDING_CACHE_TABLE}+ WHERE provider = ? AND model = ? AND provider_key = ? AND hash = ?+ """, (self.provider.id, self.provider.model, self.provider_key, text_hash))+ row = cursor.fetchone()+ if row:+ return blob_to_vector(row["embedding"])++ try:+ embedding = await self.provider.embed_query(text)++ if self.cache_enabled:+ self.db.execute(f"""+ INSERT OR REPLACE INTO {EMBEDDING_CACHE_TABLE}+ (provider, model, provider_key, hash, embedding, dims, updated_at)+ VALUES (?, ?, ?, ?, ?, ?, ?)+ """, (+ self.provider.id, self.provider.model, self.provider_key,+ text_hash, vector_to_blob(embedding), len(embedding),+ int(asyncio.get_event_loop().time()) if self._event_loop else 0+ ))+ self.db.commit()++ return embedding++ except Exception as e:+ logger.error(f"Failed to get embedding: {e}")+ return None++ async def search(+ self,+ query: str,+ opts: Optional[Dict[str, Any]] = None+ ) -> List[Dict[str, Any]]:+ """Search memory for relevant content.++ Note: Excludes MEMORY.md and recent (today/yesterday) memory files+ as they are already loaded in the system prompt.+ """+ opts = opts or {}++ if self.settings.sync.get("onSearch", True) and self.dirty:+ try:+ await self.sync(reason="search")+ except Exception as e:+ logger.warning(f"Memory sync failed (search): {e}")++ cleaned = query.strip()+ if not cleaned:+ return []++ min_score = opts.get("minScore") if opts and "minScore" in opts else self.settings.query.get("minScore", 0.7)+ max_results = opts.get("maxResults") if opts and "maxResults" in opts else self.settings.query.get("maxResults", 10)+ hybrid = self.settings.query.get("hybrid") or {}++ candidates = min(200, max(1, int(max_results * (hybrid.get("candidateMultiplier") or 2.0))))++ keyword_results = []+ if hybrid.get("enabled", True) and self.fts_available:+ try:+ keyword_results = await self._search_keyword(cleaned, candidates)+ except Exception as e:+ logger.debug(f"Keyword search failed: {e}")++ query_vec = await self._embed_query_with_timeout(cleaned)+ has_vector = any(v != 0 for v in query_vec)++ vector_results = []+ if has_vector:+ try:+ vector_results = await self._search_vector(query_vec, candidates)+ except Exception as e:+ logger.debug(f"Vector search failed: {e}")++ if not hybrid.get("enabled", True):+ return [+ r for r in vector_results+ if r["score"] >= min_score+ ][:max_results]++ merged = self._merge_hybrid_results(+ vector_results,+ keyword_results,+ hybrid.get("vectorWeight", 0.7),+ hybrid.get("textWeight", 0.3)+ )++ return [r for r in merged if r["score"] >= min_score][:max_results]++ async def _search_vector(+ self,+ query_vec: List[float],+ limit: int+ ) -> List[Dict[str, Any]]:+ """Search using vector similarity."""+ if not self.vector_enabled:+ return await self._search_vector_fallback(query_vec, limit)++ if not self.vector_dims:+ sample = await self.provider.embed_query("sample")+ self._ensure_vector_table(len(sample))+ else:+ self._ensure_vector_table(self.vector_dims)++ if not self.vector_available:+ return await self._search_vector_fallback(query_vec, limit)++ try:+ import math++ query_blob = vector_to_blob(query_vec)++ source_filter = self._build_source_filter()++ cursor = self.db.execute(f"""+ SELECT rowid, id, path, source, start_line, end_line, text+ FROM chunks+ WHERE {source_filter}+ """)++ chunk_map = {}+ for row in cursor.fetchall():+ chunk_map[row["rowid"]] = {+ "id": str(row["id"]),+ "path": str(row["path"]),+ "source": str(row["source"]),+ "startLine": int(row["start_line"]),+ "endLine": int(row["end_line"]),+ "snippet": str(row["text"][:SNIPPET_MAX_CHARS])+ }++ if not chunk_map:+ return []++ rows = self.db.execute(f"""+ SELECT+ rowid,+ vec_distance_cosine(embedding, vec_f32(?)) as distance+ FROM {VECTOR_TABLE}+ WHERE rowid IN ({','.join('?' * len(chunk_map))})+ ORDER BY distance+ LIMIT ?+ """, (query_blob, *chunk_map.keys(), limit))++ results = []+ for row in rows:+ rowid = row["rowid"]+ if rowid in chunk_map:+ distance = row["distance"]+ score = max(0, 1 - distance / 2)++ result = chunk_map[rowid].copy()+ result["score"] = score+ results.append(result)++ return results++ except Exception as e:+ logger.debug(f"Vector search with sqlite-vec failed: {e}")+ return await self._search_vector_fallback(query_vec, limit)++ async def _search_vector_fallback(+ self,+ query_vec: List[float],+ limit: int+ ) -> List[Dict[str, Any]]:+ """Fallback vector search using in-memory cosine similarity."""+ import math++ query_norm = math.sqrt(sum(x * x for x in query_vec))+ if query_norm < 1e-10:+ return []+ query_vec = [x / query_norm for x in query_vec]++ source_filter = self._build_source_filter()++ cursor = self.db.execute(f"""+ SELECT id, path, source, start_line, end_line, text, embedding+ FROM chunks+ WHERE {source_filter} AND embedding IS NOT NULL+ """)++ results = []+ for row in cursor.fetchall():+ if not row["embedding"]:+ continue++ vec = blob_to_vector(row["embedding"])+ if len(vec) != len(query_vec):+ continue++ dot = sum(a * b for a, b in zip(vec, query_vec))+ vec_norm = math.sqrt(sum(x * x for x in vec))+ if vec_norm < 1e-10:+ continue++ similarity = dot / vec_norm++ results.append({+ "id": str(row["id"]),+ "path": str(row["path"]),+ "source": str(row["source"]),+ "startLine": int(row["start_line"]),+ "endLine": int(row["end_line"]),+ "snippet": str(row["text"][:SNIPPET_MAX_CHARS]),+ "score": float(max(0, similarity))+ })++ results.sort(key=lambda x: x["score"], reverse=True)+ return results[:limit]++ async def _search_keyword(+ self,+ query: str,+ limit: int+ ) -> List[Dict[str, Any]]:+ """Search using keyword matching (FTS5)."""+ if not self.fts_available:+ return []++ try:+ fts_query = build_fts_query(query)+ if not fts_query:+ return []++ source_filter = self._build_source_filter()++ cursor = self.db.execute(f"""+ SELECT rowid, id, path, source, start_line, end_line, text+ FROM chunks+ WHERE {source_filter}+ """)++ chunk_map = {}+ for row in cursor.fetchall():+ chunk_map[row["rowid"]] = {+ "id": str(row["id"]),+ "path": str(row["path"]),+ "source": str(row["source"]),+ "startLine": int(row["start_line"]),+ "endLine": int(row["end_line"]),+ "snippet": str(row["text"][:SNIPPET_MAX_CHARS])+ }++ if not chunk_map:+ return []++ rows = self.db.execute(f"""+ SELECT+ rowid,+ rank+ FROM {FTS_TABLE}+ WHERE {FTS_TABLE} MATCH ?+ ORDER BY rank+ LIMIT ?+ """, (fts_query, limit))++ results = []+ for row in rows:+ rowid = row["rowid"]+ if rowid in chunk_map:+ score = bm25_rank_to_score(float(row["rank"]))++ result = chunk_map[rowid].copy()+ result["score"] = float(score)+ results.append(result)++ return results++ except Exception as e:+ logger.debug(f"Keyword search failed: {e}")+ return []++ def _build_source_filter(self) -> str:+ """Build SQL filter for enabled sources."""+ sources = self.settings.sources+ if not sources:+ return "1=0"++ if len(sources) == 1:+ return f"source = '{sources[0]}'"++ return f"source IN ({', '.join(repr(s) for s in sources)})"++ def _merge_hybrid_results(+ self,+ vector_results: List[Dict[str, Any]],+ keyword_results: List[Dict[str, Any]],+ vector_weight: float,+ text_weight: float+ ) -> List[Dict[str, Any]]:+ """Merge and rerank hybrid search results."""+ by_id: Dict[str, Dict[str, Any]] = {}++ for r in vector_results:+ r["_vector_score"] = r["score"]+ r["_text_score"] = 0.0+ by_id[r["id"]] = r++ for r in keyword_results:+ if r["id"] in by_id:+ by_id[r["id"]]["_text_score"] = r["score"]+ else:+ r["_vector_score"] = 0.0+ r["_text_score"] = r["score"]+ by_id[r["id"]] = r++ for r in by_id.values():+ r["score"] = vector_weight * r["_vector_score"] + text_weight * r["_text_score"]+ del r["_vector_score"]+ del r["_text_score"]++ results = list(by_id.values())+ results.sort(key=lambda x: x["score"], reverse=True)++ return results++ async def _embed_query_with_timeout(self, query: str) -> List[float]:+ """Embed query with timeout."""+ try:+ timeout = 60.0+ return await asyncio.wait_for(+ self.provider.embed_query(query),+ timeout=timeout+ )+ except asyncio.TimeoutError:+ logger.warning("Embedding query timed out")+ return []+ except Exception as e:+ logger.error(f"Embedding query failed: {e}")+ return []++ async def read_file(+ self,+ rel_path: str,+ from_line: Optional[int] = None,+ lines: Optional[int] = None+ ) -> Dict[str, Any]:+ """Read file content."""+ full_path = os.path.join(self.workspace_dir, rel_path)++ if not os.path.exists(full_path):+ raise FileNotFoundError(f"File not found: {rel_path}")++ with open(full_path, "r", encoding="utf-8", errors="replace") as f:+ all_lines = f.readlines()++ total_lines = len(all_lines)++ if from_line is not None:+ start = max(0, from_line - 1)+ end = total_lines+ if lines is not None:+ end = min(total_lines, start + lines)+ content_lines = all_lines[start:end]+ else:+ content_lines = all_lines++ return {+ "path": rel_path,+ "text": "".join(content_lines),+ "totalLines": total_lines,+ "fromLine": from_line or 1,+ "toLine": (from_line or 1) + len(content_lines) - 1+ }++ def _write_meta(self, meta: Dict[str, Any]) -> None:+ """Write metadata to database."""+ self.db.execute(+ "INSERT OR REPLACE INTO meta (key, value) VALUES (?, ?)",+ (META_KEY, json.dumps(meta))+ )+ self.db.commit()++ def status(self) -> Dict[str, Any]:+ """Get memory system status."""+ if not self.db:+ return {"available": False}++ cursor = self.db.execute("SELECT COUNT(*) as count FROM files")+ file_count = cursor.fetchone()["count"]++ cursor = self.db.execute("SELECT COUNT(*) as count FROM chunks")+ chunk_count = cursor.fetchone()["count"]++ cursor = self.db.execute("""+ SELECT source, COUNT(*) as files+ FROM files+ GROUP BY source+ """)+ source_counts = [+ {"source": str(row["source"]), "files": int(row["files"])}+ for row in cursor.fetchall()+ ]++ return {+ "available": True,+ "provider": self.provider.id if self.provider else None,+ "model": self.provider.model if self.provider else None,+ "files": int(file_count),+ "chunks": int(chunk_count),+ "sourceCounts": source_counts,+ "dirty": self.dirty,+ "fts": {+ "enabled": self.fts_enabled,+ "available": self.fts_available,+ "error": self.fts_error+ },+ "vector": {+ "enabled": self.vector_enabled,+ "available": self.vector_available,+ "error": self.vector_error,+ "dims": self.vector_dims+ },+ "cache": {+ "enabled": self.cache_enabled,+ "entries": int(self._get_cache_entry_count())+ }+ }++ def _get_cache_entry_count(self) -> int:+ """Get number of cache entries."""+ try:+ cursor = self.db.execute(f"SELECT COUNT(*) as count FROM {EMBEDDING_CACHE_TABLE}")+ return cursor.fetchone()["count"]+ except:+ return 0++ async def compact_memory(+ self,+ messages: List[Dict[str, Any]],+ previous_summary: str = ""+ ) -> str:+ """Compact messages into a summary.++ Args:+ messages: List of messages to compact+ previous_summary: Previous summary to build upon++ Returns:+ Compacted summary+ """+ from .summarizer import MemoryCompactor++ compactor = MemoryCompactor()+ return await compactor.compact(messages, previous_summary)++ async def summary_memory(+ self,+ messages: List[Dict[str, Any]],+ date: Optional[str] = None+ ) -> str:+ """Generate a session summary.++ Args:+ messages: List of messages to summarize+ date: Date string (YYYY-MM-DD)++ Returns:+ Session summary+ """+ from .summarizer import MemorySummarizer++ summarizer = MemorySummarizer()+ summary = await summarizer.summarize(messages, date)++ if summary:+ today = date or datetime.datetime.now().strftime("%Y-%m-%d")+ summary_file = os.path.join(self.workspace_dir, "memory", f"{today}-summary.md")++ os.makedirs(os.path.dirname(summary_file), exist_ok=True)+ with open(summary_file, "w", encoding="utf-8") as f:+ f.write(f"# Session Summary - {today}\n\n{summary}")++ logger.info(f"Session summary saved to: {summary_file}")++ return summary++ def add_async_summary_task(+ self,+ messages: List[Dict[str, Any]],+ date: Optional[str] = None+ ):+ """Add an async task to generate session summary.++ Cleans up completed tasks before adding new one.+ Tracks all tasks for proper lifecycle management.++ Args:+ messages: List of messages to summarize+ date: Date string (YYYY-MM-DD)+ """+ self._cleanup_summary_tasks()++ async def _run_summary():+ try:+ result = await self.summary_memory(messages, date)+ logger.info(f"Summary task completed: {date or 'today'}")+ return result+ except Exception as e:+ logger.error(f"Async summary task failed: {e}")+ raise++ task = asyncio.create_task(_run_summary())+ self._summary_tasks.append(task)+ logger.debug(f"Added summary task for {date or 'today'}, total tasks: {len(self._summary_tasks)}")++ def _cleanup_summary_tasks(self) -> None:+ """Clean up completed summary tasks.++ Removes completed tasks from the list and logs any exceptions.+ """+ remaining_tasks = []+ for task in self._summary_tasks:+ if task.done():+ exc = task.exception()+ if exc is not None:+ logger.error(f"Summary task failed with exception: {exc}")+ else:+ try:+ result = task.result()+ logger.debug(f"Summary task completed successfully")+ except Exception as e:+ logger.error(f"Summary task result retrieval failed: {e}")+ else:+ remaining_tasks.append(task)++ if len(remaining_tasks) != len(self._summary_tasks):+ cleaned = len(self._summary_tasks) - len(remaining_tasks)+ logger.debug(f"Cleaned up {cleaned} completed summary tasks")++ self._summary_tasks = remaining_tasks++ def get_pending_summary_tasks(self) -> int:+ """Get count of pending summary tasks.++ Returns:+ Number of pending (not completed) summary tasks+ """+ self._cleanup_summary_tasks()+ return len(self._summary_tasks)++ async def close(self) -> None:+ """Close the memory manager."""+ if self.closed:+ return++ self.closed = True++ if self._interval_timer:+ self._interval_timer.cancel()+ if self._watch_timer:+ self._watch_timer.cancel()+ if self._session_timer:+ self._session_timer.cancel()++ self._cleanup_summary_tasks()+ if self._summary_tasks:+ logger.info(f"Waiting for {len(self._summary_tasks)} pending summary tasks...")+ try:+ done, pending = await asyncio.wait(+ self._summary_tasks,+ timeout=30.0+ )+ if pending:+ logger.warning(f"Cancelling {len(pending)} pending summary tasks")+ for task in pending:+ task.cancel()+ except Exception as e:+ logger.warning(f"Error waiting for summary tasks: {e}")++ if self._file_observer:+ try:+ self._file_observer.stop()+ self._file_observer.join()+ except:+ pass++ if self.db:+ self.db.close()++ cache_key = f"{self.agent_id}:{self.workspace_dir}"+ if cache_key in INDEX_CACHE:+ del INDEX_CACHE[cache_key]++ logger.info("Memory manager closed")+++def clear_memory_manager_cache() -> None:+ """清除 memory manager 缓存,使下次 get_memory_manager 使用最新配置(如 embed_api_base 等)创建新实例。"""+ INDEX_CACHE.clear()+++async def get_memory_manager(+ agent_id: str = "default",+ workspace_dir: str = ".",+ settings: Optional[MemorySettings] = None+) -> Optional[MemoryIndexManager]:+ """Get or create memory manager."""+ settings = settings or MemorySettings()+ return await MemoryIndexManager.get(agent_id, workspace_dir, settings)diff --git a/jiuwenclaw/agentserver/memory/summarizer.py b/jiuwenclaw/agentserver/memory/summarizer.pynew file mode 100644index 0000000000..019eac5842--- /dev/null+++ b/jiuwenclaw/agentserver/memory/summarizer.py@@ -0,0 +1,299 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""LLM-based memory compression and summarization for JiuWenClaw.++"""++import os+import logging+import datetime+from typing import List, Dict, Any, Optional+from pathlib import Path++from openjiuwen.core.foundation.llm import Model+from openjiuwen.core.foundation.llm.schema.config import ModelRequestConfig, ModelClientConfig++from jiuwenclaw.paths import _get_config_module++# Import config functions dynamically to avoid path issues+_config_module = _get_config_module()+get_config = _config_module.get_config++logger = logging.getLogger(__name__)+++def format_messages_for_summary(+ messages: List[Dict[str, Any]],+ include_timestamp: bool = False,+ max_content_length: int = 1000+) -> str:+ """Format messages into conversation string for summarization.++ Args:+ messages: List of message dicts+ include_timestamp: Whether to include timestamps+ max_content_length: Max length for content truncation++ Returns:+ Formatted conversation string+ """+ lines = []+ for msg in messages:+ role = msg.get("role", "unknown")+ content = msg.get("content", "")++ if isinstance(content, list):+ text_parts = []+ for block in content:+ if isinstance(block, dict):+ if block.get("type") == "text":+ text_parts.append(block.get("text", ""))+ elif block.get("type") == "tool_use":+ text_parts.append(f"[Tool: {block.get('name', 'unknown')}]")+ elif block.get("type") == "tool_result":+ text_parts.append(f"[Tool Result: {str(block.get('output', ''))[:200]}]")+ else:+ text_parts.append(str(block))+ content = " ".join(text_parts)++ if include_timestamp:+ timestamp = msg.get("time_created", "") or msg.get("timestamp", "")+ time_prefix = f"[{timestamp}] " if timestamp else ""+ else:+ time_prefix = ""++ if len(content) > max_content_length:+ content = content[:max_content_length] + "..."++ if role == "user":+ lines.append(f"{time_prefix}User: {content}")+ elif role == "assistant":+ lines.append(f"{time_prefix}Assistant: {content}")+ elif role == "system":+ lines.append(f"{time_prefix}System: {content}")+ elif role == "tool":+ lines.append(f"{time_prefix}Tool Result: {content[:500]}")++ return "\n".join(lines)+++class LLMClient:+ """LLM client using openjiuwen framework."""++ def __init__(self):+ self._load_config()++ def _load_config(self):+ """Load LLM configuration from config.yaml."""+ config = get_config()++ react_config = config.get("react", {})+ model_client_config = react_config.get("model_client_config", {})++ self.api_key = model_client_config.get("api_key", "")+ self.base_url = model_client_config.get("api_base", "")+ self.model_name = react_config.get("model_name", "")+ self.model_provider = model_client_config.get("client_provider", "OpenAI")+ self.verify_ssl = model_client_config.get("verify_ssl", False)++ if self.base_url.endswith("/chat/completions"):+ self.base_url = self.base_url.rsplit("/chat/completions", 1)[0]++ async def chat(self, messages: List[Dict[str, str]], temperature: float = 0.3) -> str:+ """Call LLM with messages using openJiuwen's Model.++ Args:+ messages: List of message dicts with role and content+ temperature: Temperature for generation++ Returns:+ Generated text+ """++ if not self.api_key:+ raise ValueError("LLM API key not configured")++ model_config = ModelRequestConfig(+ model=self.model_name,+ temperature=temperature+ )++ model_client_config = ModelClientConfig(+ client_id="1",+ client_provider=self.model_provider,+ api_key=self.api_key,+ api_base=self.base_url,+ verify_ssl=self.verify_ssl+ )++ llm = Model(model_config=model_config, model_client_config=model_client_config)++ formatted_messages = []+ for msg in messages:+ formatted_messages.append({+ "role": msg["role"],+ "content": msg["content"]+ })++ response = await llm.invoke(formatted_messages)++ if hasattr(response, 'content'):+ return response.content+ elif isinstance(response, dict):+ return response.get('content', str(response))+ else:+ return str(response)+++class MemoryCompactor:+ """Compacts conversation messages into summaries."""++ COMPACT_PROMPT = """你是一个对话压缩助手。请将以下对话历史压缩为简洁的摘要。++要求:+1. 保留关键信息和决策+2. 保留用户的重要偏好和习惯+3. 保留待办事项和提醒+4. 省略不必要的闲聊和重复内容+5. 使用简洁的语言++对话历史:+{conversation}++请输出压缩后的摘要(不要输出其他内容):"""++ def __init__(self, llm_client: Optional[LLMClient] = None):+ self.llm = llm_client or LLMClient()++ async def compact(+ self,+ messages: List[Dict[str, Any]],+ previous_summary: str = ""+ ) -> str:+ """Compact messages into a summary.++ Args:+ messages: List of messages to compact+ previous_summary: Previous summary to build upon++ Returns:+ Compacted summary+ """+ if not messages:+ return previous_summary++ conversation = format_messages_for_summary(messages, include_timestamp=False)++ if previous_summary:+ conversation = f"[Previous Summary]\n{previous_summary}\n\n[New Conversation]\n{conversation}"++ full_prompt = self.COMPACT_PROMPT.format(conversation=conversation)++ try:+ summary = await self.llm.chat([+ {"role": "user", "content": full_prompt}+ ])++ return f"""<previous-summary>+{summary.strip()}+</previous-summary>+这是之前对话的摘要,请将其作为上下文以保持对话的连续性。"""++ except Exception as e:+ logger.error(f"Compaction failed: {e}")+ return previous_summary+++class MemorySummarizer:+ """Generates daily session summaries."""++ SUMMARY_PROMPT = """你是一个会话摘要助手。请为以下日期生成结构化的摘要。++日期:{date}++对话内容:+{conversation}++请按以下格式输出摘要:++## 今日重要事项+- [列出重要事件、决策、约定等]++## 用户偏好更新+- [列出新增表达的偏好或习惯]++## 待办事项+- [列出需要跟进的事项]++## 其他备注+- [其他值得记录的信息]++请输出摘要(不要输出其他内容):"""++ def __init__(self, llm_client: Optional[LLMClient] = None):+ self.llm = llm_client or LLMClient()++ async def summarize(+ self,+ messages: List[Dict[str, Any]],+ date: Optional[str] = None+ ) -> str:+ """Generate a summary of messages for a specific date.++ Args:+ messages: List of messages to summarize+ date: Date string (YYYY-MM-DD), defaults to today++ Returns:+ Generated summary+ """+ if not messages:+ return ""++ date = date or datetime.datetime.now().strftime("%Y-%m-%d")+ conversation = format_messages_for_summary(messages, include_timestamp=True)++ full_prompt = self.SUMMARY_PROMPT.format(date=date, conversation=conversation)++ try:+ summary = await self.llm.chat([+ {"role": "user", "content": full_prompt}+ ])+ return summary.strip()+ except Exception as e:+ logger.error(f"Summarization failed: {e}")+ return f"# Session Summary - {date}\n\nSummary generation failed, please check the conversation log manually."+++async def compact_memory(+ messages: List[Dict[str, Any]],+ previous_summary: str = ""+) -> str:+ """Compact messages into a summary.++ Args:+ messages: List of messages to compact+ previous_summary: Previous summary to build upon++ Returns:+ Compacted summary+ """+ compactor = MemoryCompactor()+ return await compactor.compact(messages, previous_summary)+++async def summarize_session(+ messages: List[Dict[str, Any]],+ date: Optional[str] = None+) -> str:+ """Generate a session summary.++ Args:+ messages: List of messages to summarize+ date: Date string (YYYY-MM-DD)++ Returns:+ Session summary+ """+ summarizer = MemorySummarizer()+ return await summarizer.summarize(messages, date)diff --git a/jiuwenclaw/agentserver/memory/types.py b/jiuwenclaw/agentserver/memory/types.pynew file mode 100644index 0000000000..a30905ae00--- /dev/null+++ b/jiuwenclaw/agentserver/memory/types.py@@ -0,0 +1,79 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Memory system type definitions."""++from typing import List, Dict, Any, Optional, Literal, TypedDict+from dataclasses import dataclass, field+++MemorySource = Literal["memory", "sessions"]+++@dataclass+class MemorySearchResult:+ """Result from memory search."""+ id: str+ path: str+ source: str+ startLine: int+ endLine: int+ snippet: str+ score: float+ citation: Optional[str] = None+++@dataclass+class MemoryProviderStatus:+ """Status of embedding provider."""+ available: bool+ provider: Optional[str] = None+ model: Optional[str] = None+ error: Optional[str] = None+++@dataclass+class MemorySyncProgressUpdate:+ """Progress update during memory sync."""+ phase: str+ current: int+ total: int+ message: Optional[str] = None+++@dataclass+class FileEntry:+ """Entry representing a file (memory or session)."""+ path: str+ absPath: str+ hash: str+ mtimeMs: int+ size: int+++MemoryFileEntry = FileEntry+SessionFileEntry = FileEntry+++@dataclass+class MemoryChunk:+ """A chunk of memory content."""+ text: str+ startLine: int+ endLine: int+++@dataclass+class FtsStatus:+ """Status of FTS5 full-text search."""+ enabled: bool+ available: bool = False+ error: Optional[str] = None+++@dataclass+class VectorStatus:+ """Status of vector search."""+ enabled: bool+ available: bool = False+ error: Optional[str] = None+ dims: Optional[int] = Nonediff --git a/jiuwenclaw/agentserver/prompt_builder.py b/jiuwenclaw/agentserver/prompt_builder.pynew file mode 100644index 0000000000..5f8233b7c0--- /dev/null+++ b/jiuwenclaw/agentserver/prompt_builder.py@@ -0,0 +1,180 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import os+import logging+from datetime import datetime+from typing import Optional++from jiuwenclaw.paths import get_agent_workspace_dir++logger = logging.getLogger(__name__)++SILENT_REPLY_TOKEN = "[[SILENT]]"++DEFAULT_WORKSPACE_DIR = str(get_agent_workspace_dir())+++def build_system_prompt(+ workspace_dir: str = DEFAULT_WORKSPACE_DIR,+ agent_id: str = "main_agent",+ user_timezone: Optional[str] = None,+) -> str:+ """Build system prompt for the agent.++ Args:+ workspace_dir: Workspace directory (default: workspace/agent)+ agent_id: Agent identifier+ base_prompt: Base prompt to append at the beginning (e.g., SYSTEM_PROMPT from interface.py)+ user_timezone: User's timezone++ Returns:+ System prompt string+ """+ sections = []++ today = datetime.now().strftime("%Y-%m-%d")+ now_str = datetime.now().strftime('%H:%M:%S')+ abs_path = os.path.abspath(workspace_dir)++ memory_prompt = """# 记忆系统++每次会话都是全新的。唯一可以跨会话保留的信息来自工作目录中的文件。++## 记忆结构++- daily: `memory/YYYY-MM-DD.md`(当天原始事件与操作轨迹,允许追加)+- user: `USER.md`(稳定身份信息)+- long-term: `MEMORY.md`(长期稳定背景,精选的记忆 — 提炼的精华,不是原始日志)++## 核心原则++- 会话不会保留记忆,文件才是唯一记忆载体。想记住什么,必须写入文件+- 更新 USER.md 或 MEMORY.md 前必须先读取现有内容+- **每个字段只能出现一次**,已存在用 `edit_memory` 替换,不存在用 `write_memory` append++### 身份记录机制(高优先级)++#### 明确声明(强制写入)++触发词:+"我是… / 我叫… / 这是我的… / 请注意我是…"++流程:+- 立即暂停任务+- read USER.md+- 判断字段 → edit 或 write+- 写入成功后再继续任务++#### 用户要求记录(双重写入)++触发词:+"帮我记一下 / 记住这个 / 记一下 / 别忘了"++**强制规则:同时完成两件事!**+1. 如果涉及时间/任务 → 调用 `todo_create` 创建待办+2. 调用 `write_memory` 写入 `memory/YYYY-MM-DD.md`+++### 操作轨迹自动落盘(写入 daily)++**每次文件操作后,必须调用 `write_memory` 记录到 `memory/YYYY-MM-DD.md`**++记录内容:+- 文件路径+- 操作类型(读取/写入/编辑/删除)+- 操作目的或上下文+- 涉及的邮箱、账号、项目名称等关键信息++### 主动记录++对话中发现有价值的信息时,**先记下来,再回答问题**:++- 用户提到的个人信息(名字、偏好、习惯、工作方式)→ 更新 `USER.md`+- 对话中做出的重要决策或结论 → 记录到 `memory/YYYY-MM-DD.md`+- 发现的项目上下文、技术细节、工作流程 → 写入相关文件+- 用户表达的喜好或不满 → 更新 `USER.md`+- 工具相关的本地配置(SSH、摄像头等)→ 更新 `MEMORY.md`+- 任何你觉得未来会话可能用到的信息 → 立刻记下来++**关键原则:** 不要总是等用户说"记住这个"。如果信息对未来有价值,主动记录。先记录,再回答 — 这样即使会话中断,信息也不会丢失。++### 检索工具++**响应任何消息前,必须:**+1. 读 `USER.md` — 你在帮谁+2. 读 `memory/YYYY-MM-DD.md`(今天 + 昨天)了解上下文+3. **仅主会话:** 读 `MEMORY.md`+4. **回答过往事件前:** 必须先用 `memory_search` 工具搜索历史记忆+"""+ sections.append(memory_prompt)+ sections.append("")++ profile_content = _read_file(workspace_dir, "USER.md")+ if profile_content:+ sections.append("# 当前身份与用户资料")+ sections.append("这是你对自己和用户的了解:")+ sections.append(profile_content)+ sections.append("")++ memory_content = _read_file(workspace_dir, "MEMORY.md")+ if memory_content:+ sections.append("# 长期记忆")+ sections.append("之前会话的重要信息:")+ sections.append(memory_content)+ sections.append("")++ today_content = _read_file(workspace_dir, f"memory/{today}.md")+ if today_content:+ sections.append("# 今日会话记录")+ sections.append(today_content)+ sections.append("")++ memory_mgmt_prompt = f"""## 记忆管理++### 更新规则+1. 更新前必须先读取现有内容+2. 合并新信息,不要全部覆盖+3. MEMORY.md 条目只写精炼的事实,不含日期/时间戳+4. **USER.md 字段去重:** 已存在用 `edit_memory` 替换,不存在用 `write_memory` append++### 记忆维护(Heartbeat 期间)++定期浏览最近的 `memory/YYYY-MM-DD.md`,识别值得长期保留的内容,更新到 `MEMORY.md`,删除过时信息。+""".format(today=today)+ sections.append(memory_mgmt_prompt)++ time_prompt = f"""# 当前日期与时间+当前日期:{today}+当前时间:{now_str}+"""+ if user_timezone:+ time_prompt += f"时区:{user_timezone}\n"+ sections.append(time_prompt)+ return "\n".join(sections)+++def _resolve_memory_path(path: str) -> str:+ """Resolve memory file path. Maps USER.md and MEMORY.md to memory/ subdirectory."""+ if path.startswith("memory/"):+ return path+ if path in ("USER.md", "MEMORY.md"):+ return f"memory/{path}"+ return path+++def _read_file(workspace_dir: str, relative_path: str) -> Optional[str]:+ """Read file content from workspace."""+ resolved_path = _resolve_memory_path(relative_path)+ file_path = os.path.join(workspace_dir, resolved_path)+ try:+ with open(file_path, "r", encoding="utf-8") as f:+ content = f.read().strip()+ if content:+ return content+ return None+ except FileNotFoundError:+ logger.debug(f"File not found: {file_path}")+ return None+ except Exception as e:+ logger.error(f"Error reading {file_path}: {e}")+ return Nonediff --git a/jiuwenclaw/agentserver/react_agent.py b/jiuwenclaw/agentserver/react_agent.pynew file mode 100644index 0000000000..cae3d3c687--- /dev/null+++ b/jiuwenclaw/agentserver/react_agent.py@@ -0,0 +1,1178 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""JiuClawReActAgent - Inherits openjiuwen ReActAgent, overrides invoke/stream.++Emits todo.updated events after todo tool calls for frontend real-time sync.+Sends evolution approval requests to user via chat.ask_user_question (keep/undo).+"""+from __future__ import annotations++import asyncio+import importlib.util+import logging+import sys+import uuid+from dataclasses import dataclass, field+from pathlib import Path+from typing import Any, AsyncIterator, Dict, List, Optional++import tiktoken+from openjiuwen.core.context_engine.schema.messages import OffloadMixin+from openjiuwen.core.foundation.llm import (+ AssistantMessage,+ SystemMessage,+ UserMessage,+ BaseMessage,+ Model+)+from openjiuwen.core.foundation.tool import ToolInfo+from openjiuwen.core.session.agent import Session+from openjiuwen.core.session.stream import OutputSchema+from openjiuwen.core.session.stream.base import StreamMode+from openjiuwen.core.single_agent import AgentCard, ReActAgent++from jiuwenclaw.agentserver.tools.todo_toolkits import TodoToolkit+from jiuwenclaw.agentserver.prompt_builder import build_system_prompt+from jiuwenclaw.evolution.skill_call_operator import SkillCallOperator+from jiuwenclaw.evolution.skill_optimizer import SkillOptimizer+from jiuwenclaw.paths import _get_config_module++_config_module = _get_config_module()+get_config = _config_module.get_config++# 加载流式输出配置+_react_config = get_config().get("react", {})+ANSWER_CHUNK_SIZE = _react_config.get("answer_chunk_size", 500)+STREAM_CHUNK_THRESHOLD = _react_config.get("stream_chunk_threshold", 50)+STREAM_CHARACTER_THRESHOLD = _react_config.get("stream_character_threshold", 2000)++logger = logging.getLogger(__name__)++_TODO_TOOL_NAMES = frozenset(+ ["todo_create", "todo_complete", "todo_insert", "todo_remove", "todo_list"]+)+_CMD_EVOLVE = "/evolve"+_CMD_SOLIDIFY = "/solidify"++_EVOLUTION_APPROVAL_TIMEOUT = 300 # Auto-keep after 5 minute timeout+++@dataclass+class _InvokeEvolutionContext:+ """Context passed from invoke() to stream() for auto-scan."""+ history_snapshot: List[Any] = field(default_factory=list)+ should_auto_scan: bool = False+++def _deduplicate_tools_by_name(tools: List[Any]) -> List[Any]:+ """Deduplicate tool infos by tool name while preserving order."""+ seen: set[str] = set()+ unique: List[Any] = []+ for tool in tools:+ name = getattr(tool, "name", None)+ if not name:+ unique.append(tool)+ continue+ if name in seen:+ continue+ seen.add(name)+ unique.append(tool)+ return unique+++def _chunk_text(text: str, chunk_size: int) -> List[str]:+ """Split text into chunks of specified size at word/char boundaries.++ Args:+ text: Input text to chunk.+ chunk_size: Maximum characters per chunk.++ Returns:+ List of text chunks.+ """+ if not text or len(text) <= chunk_size:+ return [text] if text else []++ chunks: List[str] = []+ start = 0+ text_len = len(text)++ while start < text_len:+ end = start + chunk_size+ if end >= text_len:+ chunks.append(text[start:])+ break++ # Try to break at whitespace for cleaner chunks+ chunk = text[start:end]+ last_space = chunk.rfind(" ")+ last_newline = chunk.rfind("\n")+ break_point = max(last_space, last_newline)++ if break_point > chunk_size // 2:+ chunks.append(chunk[:break_point])+ start += break_point + 1+ else:+ chunks.append(chunk)+ start += chunk_size++ return chunks+++class JiuClawReActAgent(ReActAgent):+ """Inherits ReActAgent, overrides invoke/stream to support todo.updated events."""++ def __init__(self, card: AgentCard) -> None:+ self._online_optimizers: List[Any] = []+ self._pending_approvals: Dict[str, asyncio.Future] = {} # request_id -> Future[bool]+ self._pending_evolution_context: Optional[_InvokeEvolutionContext] = None+ super().__init__(card)+ self._stream_tasks: set[asyncio.Task] = set()+ self._pause_events: dict[str, asyncio.Event] = {} # task_key -> event+ self._workspace_dir = Path(__file__).parent.parent.parent / "workspace"+ self._memory_dir = self._workspace_dir / "agent"+ self._agent_id: str = "main_agent"++ def set_workspace(self, workspace_dir: str, agent_id: str) -> None:+ """Set workspace directory and Agent ID."""+ self._workspace_dir = workspace_dir+ self._agent_id = agent_id++ async def _call_llm(+ self,+ messages: List,+ tools: Optional[List[ToolInfo]] = None,+ session: Optional[Session] = None,+ chunk_threshold: int = 10+ ) -> AssistantMessage:+ """Call LLM with messages and optional tools (streaming if session provided)++ Args:+ messages: Message list (BaseMessage or dict)+ tools: Optional tool definitions (List[ToolInfo])+ session: Optional Session for streaming output+ chunk_threshold: Number of chunks to accumulate before sending (default: 10)++ Returns:+ AssistantMessage from LLM+ """+ llm = self._get_llm()++ # If session provided, use streaming mode for real-time output+ if session is not None:+ return await self._call_llm_stream(+ llm, messages, tools, session, chunk_threshold+ )+ else:+ # Non-streaming mode for backward compatibility+ return await llm.invoke(+ model=self._config.model_name,+ messages=messages,+ tools=tools+ )++ async def _call_llm_stream(+ self,+ llm: Model,+ messages: List,+ tools: Optional[List[ToolInfo]],+ session: Session,+ chunk_threshold: int+ ) -> AssistantMessage:+ """Stream LLM invocation and send partial answers when content exceeds threshold++ Args:+ llm: Model instance+ messages: LLM input messages+ tools: Available tools+ session: Session context for streaming output+ chunk_threshold: Number of chunks to accumulate before sending++ Returns:+ AssistantMessage: Accumulated complete message from all chunks+ """+ accumulated_chunk = None+ chunk_count = 0+ last_sent_length = 0 # Track last sent content length++ try:+ async for chunk in llm.stream(messages, tools=tools, model=self._config.model_name):+ # Accumulate chunks using AssistantMessageChunk's __add__ method+ if accumulated_chunk is None:+ accumulated_chunk = chunk+ else:+ accumulated_chunk = accumulated_chunk + chunk++ # Stream output for reasoning content (always send)+ if chunk.reasoning_content:+ stream_output = OutputSchema(+ type="llm_reasoning",+ index=chunk_count,+ payload={+ "output": chunk.reasoning_content,+ "result_type": "answer"+ }+ )+ await session.write_stream(stream_output)+ chunk_count += 1++ # Check if accumulated content exceeds threshold+ if accumulated_chunk is not None and accumulated_chunk.content:+ current_length = len(accumulated_chunk.content)+ # Send partial answer only when threshold exceeded+ if current_length - last_sent_length >= STREAM_CHARACTER_THRESHOLD:+ # Send new content since last send+ new_content = accumulated_chunk.content[last_sent_length:]+ if new_content:+ await session.write_stream(+ OutputSchema(+ type="answer",+ index=chunk_count,+ payload={+ "output": {+ "output": new_content,+ "result_type": "answer",+ "partial": True, # Mark as partial response+ },+ "result_type": "answer",+ },+ )+ )+ chunk_count += 1+ last_sent_length = current_length++ # Send any remaining content that didn't reach threshold+ if accumulated_chunk is not None and accumulated_chunk.content:+ current_length = len(accumulated_chunk.content)+ if current_length > last_sent_length:+ remaining_content = accumulated_chunk.content[last_sent_length:]+ if remaining_content:+ await session.write_stream(+ OutputSchema(+ type="answer",+ index=chunk_count,+ payload={+ "output": {+ "output": remaining_content,+ "result_type": "answer",+ "partial": True, # Mark as partial response+ },+ "result_type": "answer",+ },+ )+ )+ chunk_count += 1++ # Check for empty response+ if accumulated_chunk is None:+ raise ValueError("LLM returned empty response")++ # Convert accumulated chunk to AssistantMessage+ return AssistantMessage(+ role=accumulated_chunk.role or "assistant",+ content=accumulated_chunk.content or "",+ tool_calls=accumulated_chunk.tool_calls or [],+ usage_metadata=getattr(accumulated_chunk, 'usage_metadata', None),+ finish_reason=getattr(accumulated_chunk, 'finish_reason', None) or "stop",+ parser_content=getattr(accumulated_chunk, 'parser_content', None),+ reasoning_content=getattr(accumulated_chunk, 'reasoning_content', None),+ )++ except Exception as e:+ logger.error(f"Failed to stream LLM output: {e}")+ raise++ def pause(self) -> None:+ """Pause all running tasks (blocks at next checkpoint)."""+ for event in self._pause_events.values():+ event.clear()++ def resume(self) -> None:+ """Resume all paused tasks."""+ for event in self._pause_events.values():+ event.set()++ def register_online_optimizer(self, optimizer: Any) -> "JiuClawReActAgent":+ """Register online evolution Optimizer (chainable).++ Args:+ optimizer: SkillOptimizer instance.+ """+ self._online_optimizers.append(optimizer)+ logger.info("register optimizer: %s", type(optimizer).__name__)+ return self++ async def invoke(+ self,+ inputs: Any,+ session: Optional[Session] = None,+ *,+ _pause_event: Optional[asyncio.Event] = None,+ ) -> Dict[str, Any]:+ """Custom ReAct loop implementation, replacing parent invoke().++ Same logic as openjiuwen ReActAgent.invoke(), additionally writes+ todo.updated OutputSchema after todo tool calls.+ """+ # Parse inputs+ if isinstance(inputs, dict):+ user_input = inputs.get("query")+ session_id = inputs.get("conversation_id", "")+ if user_input is None:+ raise ValueError("Input dict must contain 'query'")+ elif isinstance(inputs, str):+ user_input = inputs+ session_id = ""+ else:+ raise ValueError("Input must be dict with 'query' or str")++ stripped = user_input.strip()+ # Intercept slash commands (skip ReAct reasoning loop to save tokens)+ if stripped.startswith(_CMD_EVOLVE):+ return await self._handle_evolve_command(stripped, session)+ if stripped.startswith(_CMD_SOLIDIFY):+ return await self._handle_solidify_command(stripped)++ # Initialize context+ context = await self._init_context(session)+ await context.add_messages(UserMessage(content=user_input))++ # Build system messages once before loop+ system_messages = self._build_system_messages(session_id)++ tools = _deduplicate_tools_by_name(+ await self.ability_manager.list_tool_info()+ )++ # Validate and fix incomplete context before entering ReAct loop+ await self._fix_incomplete_tool_context(context)++ # ReAct loop+ for iteration in range(self._config.max_iterations):+ # Pause checkpoint: block here if paused until resume+ if _pause_event is not None:+ await _pause_event.wait()++ logger.info(+ "ReAct iteration %d/%d",+ iteration + 1,+ self._config.max_iterations,+ )++ context_window = await context.get_context_window(+ system_messages=[],+ tools=tools if tools else None,+ )++ history_messages = context_window.get_messages()+ history_snapshot = list(history_messages)+ messages = [*system_messages, *history_messages]++ compression_to_show = []+ uncompressed = []+ for message in messages:+ if isinstance(message, OffloadMixin):+ original_message = await context.reloader_tool().invoke(+ inputs={+ "offload_handle": message.offload_handle,+ "offload_type": message.offload_type+ }+ )+ compression_to_show.append((message, original_message))+ else:+ uncompressed.append(message)+ await self._emit_context_compression(session, compression_to_show, uncompressed)++ ai_message = await self._call_llm(+ messages,+ context_window.get_tools() or None,+ session, # Pass session for streaming+ )++ # Pause checkpoint: after LLM returns, before tool execution+ if _pause_event is not None:+ await _pause_event.wait()++ if ai_message.tool_calls:+ # Emit tool_call event+ if session is not None:+ for tc in ai_message.tool_calls:+ await self._emit_tool_call(session, tc)++ # Add assistant message to context before tool execution+ ai_msg_for_context = AssistantMessage(+ content=ai_message.content,+ tool_calls=ai_message.tool_calls,+ )+ await context.add_messages(ai_msg_for_context)++ tool_messages_added = False+ try:+ results = await self.ability_manager.execute(+ ai_message.tool_calls, session+ )++ for i, (_result, tool_msg) in enumerate(results):+ await context.add_messages(tool_msg)+ # Emit tool_result event+ if session is not None:+ tc = ai_message.tool_calls[i] if i < len(ai_message.tool_calls) else None+ await self._emit_tool_result(session, tc, _result)+ tool_messages_added = True++ # Detect if todo tool was called, emit todo.updated if so+ todo_called = any(+ tc.name in _TODO_TOOL_NAMES for tc in ai_message.tool_calls+ )+ if todo_called and session is not None and session_id:+ await self._emit_todo_updated(session, session_id)+ except (Exception, asyncio.CancelledError):+ # On exception or cancellation, add placeholder tool messages to keep context valid+ if not tool_messages_added:+ from openjiuwen.core.foundation.llm import ToolMessage+ for tc in ai_message.tool_calls:+ tool_call_id = getattr(tc, "id", "")+ error_msg = f"Tool execution interrupted or failed: {tc.name}"+ await context.add_messages(ToolMessage(+ content=error_msg,+ tool_call_id=tool_call_id+ ))+ raise+ else:+ # No tool calls: add assistant message directly to context+ ai_msg_for_context = AssistantMessage(+ content=ai_message.content,+ tool_calls=ai_message.tool_calls,+ )+ await context.add_messages(ai_msg_for_context)++ # Store auto-scan context for stream() to handle+ has_auto_scan = any(+ getattr(opt, "auto_scan", False) for opt in self._online_optimizers+ )+ if has_auto_scan and history_snapshot:+ self._pending_evolution_context = _InvokeEvolutionContext(+ history_snapshot=list(history_snapshot),+ should_auto_scan=True,+ )++ return {+ "output": ai_message.content,+ "result_type": "answer",+ "_streamed": session is not None, # Mark if content was streamed+ }++ return {+ "output": "Max iterations reached without completion",+ "result_type": "error",+ }++ async def stream(+ self,+ inputs: Any,+ session: Optional[Session] = None,+ stream_modes: Optional[List[StreamMode]] = None,+ ) -> AsyncIterator[Any]:+ """Override stream to support todo.updated events in ReAct loop.++ Args:+ inputs: {"query": "...", "conversation_id": "..."} or str.+ session: Session object for streaming pipeline.+ stream_modes: Stream output modes (optional).++ Yields:+ OutputSchema objects.+ """+ if session is not None:+ await session.pre_run()++ # Create independent pause event for this stream call (new tasks unaffected by previous pauses)+ task_key = f"stream_{id(asyncio.current_task())}"+ pause_event = asyncio.Event()+ pause_event.set() # Initially set to running state+ self._pause_events[task_key] = pause_event++ async def stream_process() -> None:+ try:+ self._pending_evolution_context = None+ final_result = await self.invoke(inputs, session, _pause_event=pause_event)++ if session is not None:+ # Extract content and check if it was already streamed+ output_content = ""+ was_streamed = False++ if isinstance(final_result, dict):+ output_content = final_result.get("output", "")+ if isinstance(output_content, dict):+ output_content = output_content.get("output", "")+ was_streamed = final_result.get("_streamed", False)++ if was_streamed:+ # Content was already streamed via _call_llm_stream+ # Send final answer marker only+ await session.write_stream(+ OutputSchema(+ type="answer",+ index=0,+ payload={+ "output": {+ "output": "",+ "result_type": "answer",+ "streamed": True, # Mark that content was already streamed+ },+ "result_type": "answer",+ },+ )+ )+ elif output_content and len(output_content) > ANSWER_CHUNK_SIZE:+ # Short content that wasn't streamed: split into chunks and send+ chunks = _chunk_text(output_content, ANSWER_CHUNK_SIZE)+ for i, chunk in enumerate(chunks):+ if i == 0:+ # First chunk: send as answer type+ await session.write_stream(+ OutputSchema(+ type="answer",+ index=0,+ payload={+ "output": {+ "output": chunk,+ "result_type": "answer",+ "chunked": True,+ "chunk_index": i,+ "total_chunks": len(chunks),+ },+ "result_type": "answer",+ },+ )+ )+ else:+ # Subsequent chunks: send as content_chunk+ await session.write_stream(+ OutputSchema(+ type="content_chunk",+ index=0,+ payload={"content": chunk},+ )+ )+ else:+ # Short content: send as single answer+ await session.write_stream(+ OutputSchema(+ type="answer",+ index=0,+ payload={+ "output": final_result,+ "result_type": "answer",+ },+ )+ )++ # Handle auto-scan approval after answer+ ctx = self._pending_evolution_context+ if ctx is not None and ctx.should_auto_scan and session is not None:+ try:+ await self._run_auto_evolution_with_approval(session, ctx)+ except Exception as e:+ logger.warning("[ReActAgent] auto_scan approval error: %s", e)+ self._pending_evolution_context = None+ except asyncio.CancelledError:+ logger.info("stream_process cancelled")+ except Exception as e:+ logger.exception("stream error: %s", e)+ finally:+ if session is not None:+ await self.context_engine.save_contexts(session)+ await session.post_run()++ task = asyncio.create_task(stream_process())+ self._stream_tasks.add(task)++ try:+ if session is not None:+ async for result in session.stream_iterator():+ yield result++ await task+ finally:+ self._stream_tasks.discard(task)+ self._pause_events.pop(task_key, None)++ def get_operators(self) -> Dict[str, SkillCallOperator]:+ """Returns single SkillCallOperator (aligned with ToolCallOperator pattern: one manages all Skills).++ Returns:+ { "skill_call": SkillCallOperator } or {} (when no optimizer registered).+ """+ opt = self._get_skill_optimizer()+ if opt is None or not opt.skills_base_dir:+ return {}+ op = SkillCallOperator(+ skills_base_dir=opt.skills_base_dir,+ evolution_manager=opt.evolution_manager,+ )+ return {op.operator_id: op}++ async def _emit_tool_call(self, session: Session, tool_call: Any) -> None:+ """Emit tool_call OutputSchema, notify frontend of tool call start."""+ try:+ await session.write_stream(+ OutputSchema(+ type="tool_call",+ index=0,+ payload={+ "tool_call": {+ "name": getattr(tool_call, "name", ""),+ "arguments": getattr(tool_call, "arguments", {}),+ "tool_call_id": getattr(tool_call, "id", ""),+ }+ },+ )+ )+ except Exception:+ logger.debug("tool_call emit failed", exc_info=True)++ async def _emit_tool_result(self, session: Session, tool_call: Any, result: Any) -> None:+ """Emit tool_result OutputSchema, notify frontend of tool execution result."""+ try:+ await session.write_stream(+ OutputSchema(+ type="tool_result",+ index=0,+ payload={+ "tool_result": {+ "tool_name": getattr(tool_call, "name", "") if tool_call else "",+ "tool_call_id": getattr(tool_call, "id", "") if tool_call else "",+ "result": str(result) if result is not None else "",+ }+ },+ )+ )+ except Exception:+ logger.debug("tool_result emit failed", exc_info=True)++ async def _emit_todo_updated(self, session: Session, session_id: str) -> None:+ """Read current todo list and emit todo.updated OutputSchema."""+ try:+ from datetime import datetime, timezone++ todo_toolkit = TodoToolkit(session_id=session_id)+ tasks = todo_toolkit._load_tasks()++ # Map backend TodoTask fields to frontend TodoItem format+ status_mapping = {+ "waiting": "pending",+ "running": "in_progress",+ "completed": "completed",+ "cancelled": "pending",+ }++ now = datetime.now(timezone.utc).isoformat()++ todos = []+ for t in tasks:+ todos.append({+ "id": str(t.idx),+ "content": t.tasks,+ "activeForm": t.tasks,+ "status": status_mapping.get(t.status.value, "pending"),+ "createdAt": now,+ "updatedAt": now,+ })++ await session.write_stream(+ OutputSchema(+ type="todo.updated",+ index=0,+ payload={"todos": todos},+ )+ )+ except Exception:+ logger.debug("todo.updated emit failed", exc_info=True)++ async def _emit_context_compression(self, session: Session, compression_to_show, uncompressed) -> None:+ """Emit current context compression content."""+ try:+ try:+ encoding = tiktoken.get_encoding("cl100k_base")+ tokens_compressed = 0+ tokens_full = 0+ token_uncompressed = 0+ for message in uncompressed:+ token_uncompressed += len(encoding.encode(message.content))++ for c, o in compression_to_show:+ tokens_compressed += len(encoding.encode(c.content))+ tokens_full += len(encoding.encode(o))+ pre_compression = tokens_full + token_uncompressed+ post_compression = tokens_compressed + token_uncompressed+ rate = (1 - post_compression / pre_compression) * 100+ except Exception:+ tokens_compressed = 0+ tokens_full = 0+ token_uncompressed = 0+ for message in uncompressed:+ token_uncompressed += len(message.content)++ for c, o in compression_to_show:+ tokens_compressed += len(c.content)+ tokens_full += len(o)++ pre_compression = tokens_full + token_uncompressed+ post_compression = tokens_compressed + token_uncompressed+ rate = (1 - post_compression / pre_compression) * 100++ await session.write_stream(+ OutputSchema(+ type="context.compressed",+ index=0,+ payload={+ "rate": rate,+ "before_compressed": pre_compression,+ "after_compressed": post_compression,+ },+ )+ )+ except Exception:+ logger.debug("context_compression emit failed", exc_info=True)++ async def _fix_incomplete_tool_context(self, context: Any) -> None:+ """Validate and fix incomplete context messages before entering ReAct loop.++ If an assistant message with tool_calls exists without corresponding tool messages,+ add placeholder tool messages to keep context valid for OpenAI API.+ """+ from openjiuwen.core.foundation.llm import ToolMessage, AssistantMessage++ try:+ messages = context.get_messages()+ needs_fix = False+ tool_calls_needing_response: List[Dict[str, Any]] = []++ # Scan for incomplete tool_calls+ for msg in messages:+ if isinstance(msg, AssistantMessage):+ tool_calls = getattr(msg, "tool_calls", None)+ if tool_calls:+ for tc in tool_calls:+ tool_calls_needing_response.append({+ "tool_call_id": getattr(tc, "id", ""),+ "tool_name": getattr(tc, "name", ""),+ })+ elif isinstance(msg, ToolMessage):+ # This tool message responds to a previous tool_call+ tool_call_id = getattr(msg, "tool_call_id", "")+ # Remove matching tool_call from pending list+ tool_calls_needing_response = [+ tc for tc in tool_calls_needing_response+ if tc["tool_call_id"] != tool_call_id+ ]++ # If there are pending tool_calls without responses, add placeholder messages+ if tool_calls_needing_response:+ needs_fix = True+ logger.warning(+ "Found incomplete tool context: %d tool_calls missing tool messages",+ len(tool_calls_needing_response)+ )+ for tc in tool_calls_needing_response:+ tool_call_id = tc["tool_call_id"]+ tool_name = tc["tool_name"]+ await context.add_messages(ToolMessage(+ content=f"[工具执行被中断] 工具 {tool_name} 执行过程中被用户打断,没有执行结果。",+ tool_call_id=tool_call_id+ ))++ if needs_fix:+ logger.info("Fixed incomplete tool context with placeholder messages")+ except Exception as e:+ logger.warning("Failed to fix incomplete tool context: %s", e)++ async def _request_evolution_approval(+ self,+ session: Session,+ skill_name: str,+ entry: Any,+ ) -> bool:+ """Request user approval via chat.ask_user_question.++ Returns:+ True = keep, False = discard.+ Timeout (5 min) auto-returns True.+ """+ request_id = f"evolve_approve_{uuid.uuid4().hex[:8]}"+ loop = asyncio.get_event_loop()+ future: asyncio.Future = loop.create_future()+ self._pending_approvals[request_id] = future++ content_preview = getattr(getattr(entry, "change", None), "content", "")[:1000]+ section = getattr(getattr(entry, "change", None), "section", "")++ try:+ await session.write_stream(+ OutputSchema(+ type="chat.ask_user_question",+ index=0,+ payload={+ "request_id": request_id,+ "questions": [+ {+ "question": (+ f"**Skill '{skill_name}' 演进生成了新内容:**\n\n"+ f"{content_preview}"+ ),+ "header": "演进审批",+ "options": [+ {"label": "接收", "description": "保留此演进经验"},+ {"label": "拒绝", "description": "丢弃此演进经验"},+ ],+ "multi_select": False,+ }+ ],+ },+ )+ )+ except Exception:+ logger.debug("_request_evolution_approval: popup send failed", exc_info=True)+ self._pending_approvals.pop(request_id, None)+ return True # Default keep on send failure++ try:+ return await asyncio.wait_for(future, timeout=_EVOLUTION_APPROVAL_TIMEOUT)+ except asyncio.TimeoutError:+ logger.info(+ "[ReActAgent] Evolution approval timeout (skill=%s, id=%s), auto-keeping",+ skill_name,+ request_id,+ )+ return True # Auto-keep on timeout+ finally:+ self._pending_approvals.pop(request_id, None)++ def resolve_evolution_approval(self, request_id: str, answers: list) -> bool:+ """Parse user answer and resolve corresponding Future.++ Called by interface.py when receiving chat.user_answer.++ Returns:+ True = successfully resolved, False = request not found or already completed.+ """+ future = self._pending_approvals.get(request_id)+ if future is None or future.done():+ return False++ keep = (+ "接收" in answers[0].get("selected_options", [])+ if answers and isinstance(answers[0], dict)+ else False+ )+ future.set_result(keep)+ logger.info(+ "[ReActAgent] Evolution approval resolved: request_id=%s 接收=%s",+ request_id,+ keep,+ )+ return True++ async def _run_auto_evolution_with_approval(+ self,+ session: Session,+ ctx: _InvokeEvolutionContext,+ ) -> None:+ """Execute auto-scan + generate + approval flow in stream()."""+ skill_ops = self.get_operators()+ if not skill_ops:+ logger.info("[ReActAgent] _run_auto_evolution_with_approval: no skill_ops, skip")+ return++ messages = self._parse_messages(ctx.history_snapshot)+ skill_names = self._get_skill_names()++ for opt in self._online_optimizers:+ auto_scan = getattr(opt, "auto_scan", False)+ if not auto_scan or not callable(getattr(opt, "auto_scan_generate", None)):+ continue++ try:+ entries = await opt.auto_scan_generate(messages, skill_ops, skill_names)+ except Exception as exc:+ logger.warning("[ReActAgent] auto_scan_generate error: %s", exc)+ continue++ for skill_name, entry in entries.items():+ try:+ keep = await self._request_evolution_approval(session, skill_name, entry)+ if keep:+ opt.evolution_manager.append_entry(skill_name, entry)+ logger.info(+ "[ReActAgent] Evolution kept: skill=%s id=%s",+ skill_name,+ entry.id,+ )+ else:+ logger.info(+ "[ReActAgent] Evolution discarded: skill=%s id=%s",+ skill_name,+ entry.id,+ )+ except Exception as exc:+ logger.warning(+ "[ReActAgent] Approval flow error (skill=%s): %s", skill_name, exc+ )++ def _get_skill_optimizer(self) -> Optional[SkillOptimizer]:+ """Returns first registered SkillOptimizer (with signal_backward method)."""+ for opt in self._online_optimizers:+ if callable(getattr(opt, "signal_backward", None)):+ return opt+ return None++ def _get_skill_names(self) -> List[str]:+ """Dynamically scan existing Skill names from optimizer.skills_base_dir.++ No manual registration needed - optimizer automatically senses all subdirs under skills_base_dir.+ Skills created at runtime via new_skill are also automatically included.+ """+ opt = self._get_skill_optimizer()+ if opt is None:+ return []+ base = Path(opt.skills_base_dir)+ if not base.exists():+ return []+ return [d.name for d in base.iterdir() if d.is_dir() and not d.name.startswith("_")]++ def _get_skill_messages(self) -> List[SystemMessage]:+ """Build Skill summary SystemMessage list.++ Includes:+ 1. skill_prompt+ 2. evolution summaries+ """+ prompt_parts: List[str] = []++ # 1. skill_prompt (skill list description)+ if self._skill_util is not None and self._skill_util.has_skill():+ skill_info = self._skill_util.get_skill_prompt()+ # skill 列表在 prompt 最后一段(双换行后)+ lines = skill_info.split("\n\n")[-1].strip().split("\n")+ skill_lines = [line for line in lines[1:-1] if line.strip()]++ if skill_lines:+ header = (+ "# Skills\n"+ "You are equipped with a set of skills that include instructions may help you "+ "with current task. Before attempting any task, read the relevant skill document "+ "(SKILL.MD) using view_file and follow its workflow.\n\n"+ "Here are the skills available:\n"+ )+ prompt_parts.append(header + "\n".join(f"- {line}" for line in skill_lines))++ # 2. Skill evolution summary+ skill_ops = self.get_operators()+ op = skill_ops.get(SkillCallOperator.OPERATOR_ID)+ if op is not None:+ summaries = op.get_all_evolution_summaries(self._get_skill_names())+ if summaries:+ prompt_parts.append(summaries)++ if not prompt_parts:+ return []++ return [SystemMessage(content="\n\n".join(prompt_parts))]++ async def _get_session_messages(self, session: Optional[Any]) -> List[dict]:+ """Get historical message list from session (safely compatible with different Session implementations).++ Retrieves via context_window with fallback.+ """+ if session is None:+ return []+ try:+ # Prefer: get context window via context_engine+ context = await self._init_context(session)+ cw = await context.get_context_window(system_messages=[], tools=None)+ msgs = cw.get_messages() if hasattr(cw, "get_messages") else []+ return self._parse_messages(msgs)+ except Exception as exc:+ logger.warning(" Failed to get session messages: %s", exc)+ return []++ @staticmethod+ def _parse_messages(messages: List[BaseMessage]) -> List[dict]:+ result = []+ for msg in messages:+ if isinstance(msg, dict):+ result.append(msg)+ elif hasattr(msg, "role"):+ d: dict = {+ "role": getattr(msg, "role", ""),+ "content": str(getattr(msg, "content", "") or ""),+ }+ if tool_calls := getattr(msg, "tool_calls", None):+ d["tool_calls"] = [+ {+ "id": getattr(tc, "id", ""),+ "name": getattr(tc, "name", ""),+ "arguments": getattr(tc, "arguments", ""),+ }+ for tc in tool_calls+ ]+ if name := getattr(msg, "name", None):+ d["name"] = name+ result.append(d)+ return result++ async def _handle_evolve_command(+ self,+ query: str,+ session: Optional[Any],+ ) -> Dict[str, Any]:+ """/evolve [list | <skill_name>] command handler."""+ skill_opt = self._get_skill_optimizer()+ if skill_opt is None:+ return {+ "output": (+ "SkillOptimizer not registered, cannot execute online evolution.\n"+ "Please set `evolution.enabled: true` in config.yaml and restart service,\n"+ "or call agent.register_online_optimizer(SkillOptimizer(...))."+ ),+ "result_type": "error",+ }++ skill_names = self._get_skill_names()++ # Parse arguments+ parts = query.split(maxsplit=1)+ skill_arg = parts[1].strip() if len(parts) > 1 else ""++ # /evolve or /evolve list -> list all Skill evolution records+ if not skill_arg or skill_arg == "list":+ if not skill_names:+ return {+ "output": "当前 skills_base_dir 下未找到任何 Skill 目录。",+ "result_type": "answer",+ }+ summary = skill_opt.list_summary(skill_names)+ return {+ "output": f"**Skills 演进记录:**\n\n{summary}",+ "result_type": "answer",+ }++ # /evolve <skill_name>+ skill_name = skill_arg+ if skill_name not in skill_names:+ available = "、".join(skill_names) or "(无可用 Skill)"+ return {+ "output": (+ f"在 skills_base_dir 下未找到 Skill '{skill_name}'。\n"+ f"当前可用 Skill:{available}\n"+ f"可使用 /evolve list 查看所有记录。"+ ),+ "result_type": "error",+ }++ messages = await self._get_session_messages(session)+ entry = await skill_opt.evolve_generate(skill_name, messages)++ if entry is None:+ return {+ "output": (+ f"当前对话未发现明确的演进信号(无工具执行失败、无用户纠正)。\n"+ f"如需手动记录经验,可描述具体问题,我会提炼后更新 Skill '{skill_name}'。"+ ),+ "result_type": "answer",+ }++ if session is not None:+ # Request user approval via popup+ keep = await self._request_evolution_approval(session, skill_name, entry)+ if keep:+ skill_opt.evolution_manager.append_entry(skill_name, entry)+ return {+ "output": (+ f"✓ 已记录演进经验到 Skill '{skill_name}':\n"+ f" **[{entry.change.section}]** {entry.change.content[:200]}\n\n"+ f"(evolutions.json 已更新,下次对话自动生效;"+ f"可使用 `/solidify {skill_name}` 将经验固化到 SKILL.md 本体)"+ ),+ "result_type": "answer",+ }+ else:+ return {+ "output": f"已丢弃 Skill '{skill_name}' 的演进内容,evolutions.json 未变更。",+ "result_type": "answer",+ }+ else:+ # Fallback for no session (non-streaming call): save directly+ skill_opt.evolution_manager.append_entry(skill_name, entry)+ return {+ "output": (+ f"✓ 已记录演进经验到 Skill '{skill_name}':\n"+ f" **[{entry.change.section}]** {entry.change.content[:200]}"+ ),+ "result_type": "answer",+ }++ async def _handle_solidify_command(self, query: str) -> Dict[str, Any]:+ """/solidify <skill_name> command handler."""+ skill_opt = self._get_skill_optimizer()+ if skill_opt is None:+ return {+ "output": "演进功能未启用,无法执行 solidify。",+ "result_type": "error",+ }+ parts = query.split(maxsplit=1)+ skill_name = parts[1].strip() if len(parts) > 1 else ""+ if not skill_name:+ return {+ "output": "请指定 Skill 名称:`/solidify <skill_name>`",+ "result_type": "error",+ }+ result_msg = skill_opt.solidify(skill_name)+ return {"output": result_msg, "result_type": "answer"}++ def _build_system_messages(self, session_id: str) -> List[SystemMessage]:+ """Build system messages: prompt_template + workspace + memory + skill summary.++ Order:+ 1. prompt_template+ 2. workspace_prompt+ 3. memory_prompt+ 4. skill_prompt + evolution summary+ """+ # 1. base system messages+ base: List[SystemMessage] = [+ SystemMessage(role=msg["role"], content=msg["content"])+ for msg in (self._config.prompt_template or [])+ if msg.get("role") == "system"+ ]++ if not base:+ return []++ # Build append content+ content_parts: List[str] = []++ # 2. workspace_prompt+ workspace = self._workspace_dir / "session" / session_id+ content_parts.append(f"# Workspace\nYour temporal working directory is: {workspace}\n"+ "Write or save all files under this dir.")++ # 3. memory_prompt+ memory_prompt = build_system_prompt(+ workspace_dir=str(self._memory_dir),+ agent_id=self._agent_id,+ )+ if memory_prompt:+ content_parts.append(memory_prompt)++ # 4. skill_prompt + evolution summary+ skill_msgs = self._get_skill_messages()+ if skill_msgs:+ content_parts.extend(m.content for m in skill_msgs if m.content)++ # Merge all content into the last system message+ merged_content = "\n\n".join([base[-1].content or ""] + content_parts)+ merged = SystemMessage(role=base[-1].role, content=merged_content)+ return [*base[:-1], merged] if len(base) > 1 else [merged]\ No newline at end of filediff --git a/jiuwenclaw/agentserver/skill_manager.py b/jiuwenclaw/agentserver/skill_manager.pynew file mode 100644index 0000000000..5bf0c45c46--- /dev/null+++ b/jiuwenclaw/agentserver/skill_manager.py@@ -0,0 +1,811 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""SkillManager - 管理 skills 的加载、安装、卸载与 marketplace 操作."""++from __future__ import annotations++import asyncio+import json+import logging+import re+import shutil+from pathlib import Path+from typing import Any++from jiuwenclaw.paths import get_workspace_dir++logger = logging.getLogger(__name__)++# ---------------------------------------------------------------------------+# 默认路径+# ---------------------------------------------------------------------------+_WORKSPACE = get_workspace_dir()+_SKILLS_DIR = _WORKSPACE / "agent" / "skills"+_MARKETPLACE_DIR = _SKILLS_DIR / "_marketplace"+_STATE_FILE = _WORKSPACE / "skills_state.json"+++class SkillManager:+ """Skill 管理器,对应 skills.* 请求方法."""++ def __init__(self) -> None:+ _SKILLS_DIR.mkdir(parents=True, exist_ok=True)+ self._state: dict[str, Any] = self._load_state()++ # -----------------------------------------------------------------------+ # 公开 handler+ # -----------------------------------------------------------------------++ async def handle_skills_list(self, params: dict) -> dict:+ """返回所有可用 skill(本地 + marketplace 中未安装的).++ params:+ refresh_marketplaces: bool (可选, 默认 False)+ 为 True 时,先对已配置 marketplace 执行 clone/pull,再扫描列表。+ """+ refresh_marketplaces = bool(params.get("refresh_marketplaces", False))+ if refresh_marketplaces:+ await self._sync_marketplace_repos()+ local = self._scan_local_skills()+ marketplace = self._scan_marketplace_skills()+ return {"skills": local + marketplace}++ async def handle_skills_installed(self, params: dict) -> dict:+ """返回已安装的 marketplace 插件列表.++ 按前端期望格式返回:plugin_name, marketplace, spec, version, installed_at, git_commit, skills[]+ """+ raw_plugins = self._get_installed_plugins()+ plugins = []+ for p in raw_plugins:+ name = p.get("name", "")+ marketplace = p.get("marketplace", "")+ # 构造 spec (plugin_name@marketplace_name)+ spec = f"{name}@{marketplace}" if marketplace else name+ # 转换字段名以符合前端期望+ plugin = {+ "plugin_name": name,+ "marketplace": marketplace,+ "spec": spec,+ "version": p.get("version", ""),+ "installed_at": p.get("installed_at", ""),+ "git_commit": p.get("commit", ""),+ # skills 数组:通常一个 plugin 包含同名 skill+ "skills": [name] if name else [],+ }+ plugins.append(plugin)+ return {"plugins": plugins}++ async def handle_skills_get(self, params: dict) -> dict:+ """获取单个 skill 详情(name 必填).++ 返回字段转换:body -> content, path -> file_path+ """+ name = params.get("name")+ if not name:+ raise ValueError("缺少参数: name")++ # 先在本地 skills 目录中查找+ for child in _SKILLS_DIR.iterdir():+ if child.name.startswith("_") or not child.is_dir():+ continue+ md = self._try_find_skill_file(child)+ if md is None:+ continue+ meta = self._parse_skill_md(md)+ if meta and meta.get("name") == name:+ # 字段转换以符合前端期望+ meta["content"] = meta.pop("body", "")+ meta["file_path"] = meta.pop("path", "")+ meta["source"] = self._resolve_skill_source(meta.get("name", ""))+ return meta++ # 再在 marketplace 目录中查找+ if _MARKETPLACE_DIR.exists():+ for repo_dir in _MARKETPLACE_DIR.iterdir():+ if not repo_dir.is_dir():+ continue+ for plugin_dir in repo_dir.iterdir():+ if not plugin_dir.is_dir():+ continue+ md = self._try_find_skill_file(plugin_dir)+ if md is None:+ continue+ meta = self._parse_skill_md(md)+ if meta and meta.get("name") == name:+ # 字段转换以符合前端期望+ meta["content"] = meta.pop("body", "")+ meta["file_path"] = meta.pop("path", "")+ marketplace_name = repo_dir.name+ meta["source"] = marketplace_name+ meta["marketplace"] = marketplace_name+ return meta++ raise ValueError(f"未找到 skill: {name}")++ async def handle_skills_marketplace_list(self, params: dict) -> dict:+ """列出已配置的 marketplace 源.++ 返回格式符合前端期望:name, url, install_location?, last_updated?+ """+ marketplaces = self._get_marketplaces()+ # 为每个 marketplace 添加前端期望的可选字段+ result = []+ for m in marketplaces:+ item = {+ "name": m.get("name", ""),+ "url": m.get("url", ""),+ "enabled": bool(m.get("enabled", True)),+ "install_location": m.get("install_location"),+ "last_updated": m.get("last_updated"),+ }+ result.append(item)+ return {"marketplaces": result}++ async def handle_skills_install(self, params: dict) -> dict:+ """安装 marketplace 中的 skill.++ params:+ spec: "plugin_name@marketplace_name"+ force: bool (可选, 默认 False)+ """+ spec = params.get("spec", "")+ force = params.get("force", False)++ if "@" not in spec:+ return {"success": False, "detail": "spec 格式应为 plugin@marketplace"}++ plugin_name, marketplace_name = spec.rsplit("@", 1)+ if not plugin_name or not marketplace_name:+ return {"success": False, "detail": "plugin 或 marketplace 名称为空"}++ # 查找 marketplace 配置+ marketplace = None+ for m in self._get_marketplaces():+ if m.get("name") == marketplace_name:+ marketplace = m+ break+ if marketplace is None:+ return {"success": False, "detail": f"未找到 marketplace: {marketplace_name}"}++ git_url = marketplace.get("url", "")+ if not git_url:+ return {"success": False, "detail": f"marketplace {marketplace_name} 缺少 url"}++ # 确保 marketplace 仓库已 clone+ repo_dir = _MARKETPLACE_DIR / marketplace_name+ if repo_dir.exists():+ await self._git_pull(repo_dir)+ else:+ commit = await self._git_clone(git_url, repo_dir)+ if commit is None:+ return {"success": False, "detail": f"git clone 失败: {git_url}"}++ # 在仓库中查找 plugin 目录+ plugin_src = repo_dir / "skills" / plugin_name+ if not plugin_src.is_dir():+ return {"success": False, "detail": f"在 marketplace 仓库中未找到 plugin: {plugin_name}"}++ md = self._try_find_skill_file(plugin_src)+ if md is None:+ return {"success": False, "detail": f"plugin {plugin_name} 缺少 SKILL.md"}++ # 复制到本地 skills 目录+ dest = _SKILLS_DIR / plugin_name+ if dest.exists():+ if not force:+ return {"success": False, "detail": f"skill {plugin_name} 已存在,使用 force=true 覆盖"}+ shutil.rmtree(dest)+ shutil.copytree(plugin_src, dest)++ # 解析元数据并记录(添加 installed_at 时间戳)+ from datetime import datetime, timezone+ meta = self._parse_skill_md(self._try_find_skill_file(dest)) or {}+ commit_hash = await self._git_get_commit(repo_dir)+ self._add_installed_plugin({+ "name": plugin_name,+ "marketplace": marketplace_name,+ "version": meta.get("version", ""),+ "commit": commit_hash or "",+ "source": marketplace_name,+ "installed_at": datetime.now(timezone.utc).isoformat(),+ })++ return {"success": True}++ async def handle_skills_uninstall(self, params: dict) -> dict:+ """卸载已安装的 skill.++ params:+ name: skill 名称+ """+ name = params.get("name", "")+ if not name:+ return {"success": False, "detail": "缺少参数: name"}++ dest = _SKILLS_DIR / name+ if dest.exists() and dest.is_dir():+ shutil.rmtree(dest)++ self._remove_installed_plugin(name)+ return {"success": True}++ async def handle_skills_import_local(self, params: dict) -> dict:+ """从本地路径导入 skill.++ params:+ path: 本地文件或目录路径+ force: bool (可选, 默认 False)+ """+ raw_path = params.get("path", "")+ force = params.get("force", False)+ if not raw_path:+ return {"success": False, "detail": "缺少参数: path"}++ src = Path(raw_path)+ if not src.exists():+ return {"success": False, "detail": f"路径不存在: {raw_path}"}++ if src.is_file():+ # 单文件导入:解析后放入以 name 命名的目录+ meta = self._parse_skill_md(src)+ if meta is None:+ return {"success": False, "detail": "无法解析 skill 文件"}+ skill_name = meta.get("name", src.stem)+ dest = _SKILLS_DIR / skill_name+ if dest.exists():+ if not force:+ return {"success": False, "detail": f"skill {skill_name} 已存在,使用 force=true 覆盖"}+ shutil.rmtree(dest)+ dest.mkdir(parents=True, exist_ok=True)+ shutil.copy2(src, dest / src.name)+ elif src.is_dir():+ md = self._try_find_skill_file(src)+ if md is None:+ return {"success": False, "detail": f"目录中未找到 SKILL.md: {raw_path}"}+ meta = self._parse_skill_md(md) or {}+ skill_name = meta.get("name", src.name)+ dest = _SKILLS_DIR / skill_name+ if dest.exists():+ if not force:+ return {"success": False, "detail": f"skill {skill_name} 已存在,使用 force=true 覆盖"}+ shutil.rmtree(dest)+ shutil.copytree(src, dest)+ else:+ return {"success": False, "detail": f"不支持的路径类型: {raw_path}"}++ self._add_local_skill({"name": skill_name, "origin": raw_path, "source": "local"})+ return {"success": True, "skill": {"name": skill_name}}++ async def handle_skills_marketplace_add(self, params: dict) -> dict:+ """添加 marketplace 源.++ params:+ name: marketplace 名称+ url: git 仓库 URL+ """+ name = params.get("name", "")+ url = params.get("url", "")+ if not name or not url:+ return {"success": False, "detail": "缺少参数: name 和 url"}++ # 检查是否已存在+ for m in self._get_marketplaces():+ if m.get("name") == name:+ return {"success": False, "detail": f"marketplace 已存在: {name}"}++ # 新增源默认禁用,避免未经确认就触发远程同步。+ self._add_marketplace({"name": name, "url": url, "enabled": False})+ return {"success": True}++ async def handle_skills_marketplace_remove(self, params: dict) -> dict:+ """删除 marketplace 源.++ params:+ name: marketplace 名称+ remove_cache: 是否删除本地仓库缓存(可选,默认 True)+ """+ name = params.get("name", "")+ remove_cache = params.get("remove_cache", True)+ if not name:+ return {"success": False, "detail": "缺少参数: name"}++ removed = self._remove_marketplace(name)+ if not removed:+ return {"success": False, "detail": f"marketplace 不存在: {name}"}++ cache_removed = False+ if bool(remove_cache):+ repo_dir = _MARKETPLACE_DIR / name+ if repo_dir.exists() and repo_dir.is_dir():+ try:+ shutil.rmtree(repo_dir)+ cache_removed = True+ except Exception as exc:+ logger.warning("删除 marketplace 缓存失败: %s", exc)++ return {+ "success": True,+ "name": name,+ "cache_removed": cache_removed,+ }++ async def handle_skills_marketplace_toggle(self, params: dict) -> dict:+ """启用或禁用 marketplace 源.++ params:+ name: marketplace 名称+ enabled: 目标状态+ """+ name = params.get("name", "")+ enabled = params.get("enabled")+ if not name:+ return {"success": False, "detail": "缺少参数: name"}+ if not isinstance(enabled, bool):+ return {"success": False, "detail": "缺少参数: enabled (bool)"}++ marketplace = next(+ (m for m in self._get_marketplaces() if m.get("name") == name),+ None,+ )+ if marketplace is None:+ return {"success": False, "detail": f"marketplace 不存在: {name}"}++ if enabled:+ repo_dir = _MARKETPLACE_DIR / name+ url = marketplace.get("url", "")+ if not url:+ return {"success": False, "detail": f"marketplace {name} 缺少 url"}++ detail = "已启用"+ if repo_dir.exists():+ commit = await self._git_pull(repo_dir)+ if commit is None:+ return {"success": False, "name": name, "enabled": False, "detail": "git pull 失败"}+ detail = "已启用并执行 git pull"+ else:+ commit = await self._git_clone(url, repo_dir)+ if commit is None:+ return {"success": False, "name": name, "enabled": False, "detail": "git clone 失败"}+ detail = "已启用并执行 git clone"++ self._set_marketplace_enabled(name, True)+ self._set_marketplace_last_updated(name)+ return {"success": True, "name": name, "enabled": True, "detail": detail}++ # 禁用:删除本地缓存目录,不卸载已安装 skill。+ repo_dir = _MARKETPLACE_DIR / name+ cache_removed = False+ if repo_dir.exists() and repo_dir.is_dir():+ try:+ shutil.rmtree(repo_dir)+ cache_removed = True+ except Exception as exc:+ logger.warning("禁用 marketplace 时删除缓存失败: %s", exc)+ return {"success": False, "name": name, "enabled": True, "detail": "删除本地缓存失败"}++ self._set_marketplace_enabled(name, False)+ self._set_marketplace_last_updated(name)+ return {+ "success": True,+ "name": name,+ "enabled": False,+ "cache_removed": cache_removed,+ "detail": "已禁用并删除本地缓存" if cache_removed else "已禁用(无本地缓存)",+ }++ # -----------------------------------------------------------------------+ # SKILL.md 解析+ # -----------------------------------------------------------------------++ @staticmethod+ def _parse_skill_md(path: Path) -> dict | None:+ """解析 SKILL.md,提取 YAML frontmatter 和正文.++ 支持两种格式:+ 1. 有 frontmatter(--- 分隔的 YAML 头 + 正文)+ 2. 无 frontmatter(整个文件作为 body,name 从文件名推断)+ """+ try:+ text = path.read_text(encoding="utf-8")+ except Exception:+ logger.warning("无法读取文件: %s", path)+ return None++ meta: dict[str, Any] = {}+ body = text++ # 尝试解析 frontmatter+ fm_match = re.match(r"^---\s*\n(.*?)\n---\s*\n?(.*)", text, re.DOTALL)+ if fm_match:+ fm_text = fm_match.group(1)+ body = fm_match.group(2).strip()+ # 简单 YAML 解析(key: value 格式),避免引入额外依赖+ for line in fm_text.splitlines():+ line = line.strip()+ if not line or line.startswith("#"):+ continue+ m = re.match(r"^(\w[\w_-]*)\s*:\s*(.*)", line)+ if m:+ key = m.group(1)+ val = m.group(2).strip()+ # 处理 YAML 列表 [a, b, c]+ if val.startswith("[") and val.endswith("]"):+ inner = val[1:-1]+ val = [v.strip().strip("'\"") for v in inner.split(",") if v.strip()]+ # 去掉引号+ elif val.startswith(("'", '"')) and val.endswith(("'", '"')):+ val = val[1:-1]+ meta[key] = val++ # 如果没有 name,从文件名推断+ if "name" not in meta:+ meta["name"] = path.stem++ # 默认字段+ meta.setdefault("description", "")+ meta.setdefault("version", "")+ meta.setdefault("author", "")+ meta.setdefault("tags", [])+ meta.setdefault("allowed_tools", [])++ meta["body"] = body+ meta["path"] = str(path)++ return meta++ @staticmethod+ def _try_find_skill_file(directory: Path) -> Path | None:+ """在目录中查找 skill 文件.++ 优先查找 SKILL.md,其次查找任意 .md 文件.+ """+ skill_md = directory / "SKILL.md"+ if skill_md.is_file():+ return skill_md++ # 兼容:查找任意 .md 文件+ md_files = list(directory.glob("*.md"))+ if md_files:+ return md_files[0]++ return None++ # -----------------------------------------------------------------------+ # 目录扫描+ # -----------------------------------------------------------------------++ def _scan_local_skills(self) -> list[dict]:+ """扫描 workspace/agent/skills/ 下的本地 skill(跳过 _marketplace)."""+ results: list[dict] = []+ if not _SKILLS_DIR.exists():+ return results++ for child in _SKILLS_DIR.iterdir():+ if not child.is_dir() or child.name.startswith("_"):+ continue+ md = self._try_find_skill_file(child)+ if md is None:+ continue+ meta = self._parse_skill_md(md)+ if meta is None:+ continue++ # 判断 source 类型+ installed = self._get_installed_plugins()+ source = "project"+ for p in installed:+ if p.get("name") == meta.get("name"):+ source = p.get("source", "project")+ if source == "project" and p.get("marketplace"):+ source = p.get("marketplace", "project")+ break+ # 检查是否通过 import_local 导入+ for ls in self._state.get("local_skills", []):+ if ls.get("name") == meta.get("name"):+ source = "local"+ break++ meta["source"] = source+ # 不在列表中返回 body+ meta.pop("body", None)+ results.append(meta)++ return results++ def _resolve_skill_source(self, skill_name: str) -> str:+ """解析 skill 来源(local / project / marketplace 名称)."""+ if not skill_name:+ return "project"++ for plugin in self._get_installed_plugins():+ if plugin.get("name") == skill_name:+ source = plugin.get("source")+ marketplace = plugin.get("marketplace")+ if source == "project" and isinstance(marketplace, str) and marketplace:+ return marketplace+ if isinstance(source, str) and source:+ return source+ if isinstance(marketplace, str) and marketplace:+ return marketplace+ return "project"++ for local_skill in self._state.get("local_skills", []):+ if local_skill.get("name") == skill_name:+ return "local"++ return "project"++ def _scan_marketplace_skills(self) -> list[dict]:+ """扫描 _marketplace/ 下已 clone 的仓库中未安装的 skill.++ 扫描路径:_marketplace/{marketplace_name}/skills/{plugin_name}+ """+ results: list[dict] = []+ if not _MARKETPLACE_DIR.exists():+ return results++ installed_names = {p.get("name") for p in self._get_installed_plugins()}++ enabled_marketplaces = {+ m.get("name")+ for m in self._get_marketplaces()+ if bool(m.get("enabled", True)) and m.get("name")+ }++ for repo_dir in _MARKETPLACE_DIR.iterdir():+ if not repo_dir.is_dir():+ continue+ marketplace_name = repo_dir.name+ if marketplace_name not in enabled_marketplaces:+ continue++ # 检查 skills 子目录是否存在+ skills_dir = repo_dir / "skills"+ if not skills_dir.exists() or not skills_dir.is_dir():+ # 如果没有 skills 子目录,尝试直接扫描 repo_dir(兼容旧结构)+ skills_dir = repo_dir++ for plugin_dir in skills_dir.iterdir():+ if not plugin_dir.is_dir():+ continue+ # 跳过 git 元数据和以 _ 开头的目录+ if plugin_dir.name.startswith((".", "_")):+ continue+ md = self._try_find_skill_file(plugin_dir)+ if md is None:+ continue+ meta = self._parse_skill_md(md)+ if meta is None:+ continue++ # 跳过已安装的+ if meta.get("name") in installed_names:+ continue++ # source 直接返回 marketplace 名称,便于前端安装时自动拼接 spec+ meta["source"] = marketplace_name+ meta["marketplace"] = marketplace_name+ meta.pop("body", None)+ results.append(meta)++ return results++ # -----------------------------------------------------------------------+ # Git 操作+ # -----------------------------------------------------------------------++ async def _git_clone(self, url: str, dest: Path) -> str | None:+ """浅克隆 git 仓库,返回 commit hash 或 None."""+ dest.parent.mkdir(parents=True, exist_ok=True)+ try:+ proc = await asyncio.create_subprocess_exec(+ "git", "clone", "--depth", "1", url, str(dest),+ stdout=asyncio.subprocess.PIPE,+ stderr=asyncio.subprocess.PIPE,+ )+ _, stderr = await proc.communicate()+ if proc.returncode != 0:+ logger.error("git clone 失败: %s", stderr.decode(errors="replace"))+ return None+ return await self._git_get_commit(dest)+ except Exception as exc:+ logger.error("git clone 异常: %s", exc)+ return None++ async def _git_pull(self, repo_path: Path) -> str | None:+ """拉取最新代码,返回 commit hash 或 None."""+ try:+ proc = await asyncio.create_subprocess_exec(+ "git", "-C", str(repo_path), "pull", "--ff-only",+ stdout=asyncio.subprocess.PIPE,+ stderr=asyncio.subprocess.PIPE,+ )+ _, stderr = await proc.communicate()+ if proc.returncode != 0:+ logger.warning("git pull 失败: %s", stderr.decode(errors="replace"))+ return None+ return await self._git_get_commit(repo_path)+ except Exception as exc:+ logger.warning("git pull 异常: %s", exc)+ return None++ async def _git_get_commit(self, repo_path: Path) -> str | None:+ """获取当前 HEAD commit hash."""+ try:+ proc = await asyncio.create_subprocess_exec(+ "git", "-C", str(repo_path), "rev-parse", "HEAD",+ stdout=asyncio.subprocess.PIPE,+ stderr=asyncio.subprocess.PIPE,+ )+ stdout, _ = await proc.communicate()+ if proc.returncode != 0:+ return None+ return stdout.decode().strip()+ except Exception:+ return None++ async def _sync_marketplace_repos(self) -> None:+ """同步所有已配置 marketplace 到本地目录(存在则 pull,不存在则 clone)."""+ marketplaces = [m for m in self._get_marketplaces() if bool(m.get("enabled", True))]+ if not marketplaces:+ return++ _MARKETPLACE_DIR.mkdir(parents=True, exist_ok=True)++ for marketplace in marketplaces:+ name = marketplace.get("name", "")+ url = marketplace.get("url", "")+ if not name or not url:+ continue++ repo_dir = _MARKETPLACE_DIR / name+ try:+ if repo_dir.exists():+ await self._git_pull(repo_dir)+ else:+ await self._git_clone(url, repo_dir)+ except Exception as exc:+ logger.warning(+ "同步 marketplace 失败: name=%s url=%s error=%s",+ name,+ url,+ exc,+ )++ # -----------------------------------------------------------------------+ # 状态持久化+ # -----------------------------------------------------------------------++ def _load_state(self) -> dict[str, Any]:+ """加载 skills_state.json,失败时返回默认空状态."""+ try:+ if _STATE_FILE.exists():+ state = json.loads(_STATE_FILE.read_text(encoding="utf-8"))+ self._normalize_state(state)+ return state+ except Exception:+ logger.warning("加载 skills_state.json 失败,使用默认空状态")+ default_state = {"marketplaces": [], "installed_plugins": [], "local_skills": []}+ self._normalize_state(default_state)+ return default_state++ def _save_state(self) -> None:+ """持久化状态到 skills_state.json."""+ try:+ _STATE_FILE.parent.mkdir(parents=True, exist_ok=True)+ _STATE_FILE.write_text(+ json.dumps(self._state, ensure_ascii=False, indent=2),+ encoding="utf-8",+ )+ except Exception:+ logger.error("保存 skills_state.json 失败")++ def _get_marketplaces(self) -> list[dict]:+ marketplaces = self._state.get("marketplaces", [])+ normalized = self._normalize_marketplaces(marketplaces)+ # 仅当结构发生变化时写回,避免每次读取都触盘。+ if normalized != marketplaces:+ self._state["marketplaces"] = normalized+ self._save_state()+ return normalized++ def _add_marketplace(self, marketplace: dict) -> None:+ self._state.setdefault("marketplaces", []).append(marketplace)+ self._state["marketplaces"] = self._normalize_marketplaces(+ self._state.get("marketplaces", [])+ )+ self._save_state()++ def _remove_marketplace(self, name: str) -> bool:+ marketplaces = self._state.get("marketplaces", [])+ kept = [m for m in marketplaces if m.get("name") != name]+ if len(kept) == len(marketplaces):+ return False+ self._state["marketplaces"] = self._normalize_marketplaces(kept)+ self._save_state()+ return True++ def _set_marketplace_enabled(self, name: str, enabled: bool) -> bool:+ marketplaces = self._normalize_marketplaces(self._state.get("marketplaces", []))+ updated = False+ for marketplace in marketplaces:+ if marketplace.get("name") == name:+ marketplace["enabled"] = bool(enabled)+ updated = True+ break+ if updated:+ self._state["marketplaces"] = marketplaces+ self._save_state()+ return updated++ def _set_marketplace_last_updated(self, name: str) -> bool:+ from datetime import datetime, timezone++ marketplaces = self._normalize_marketplaces(self._state.get("marketplaces", []))+ updated = False+ for marketplace in marketplaces:+ if marketplace.get("name") == name:+ marketplace["last_updated"] = datetime.now(timezone.utc).isoformat()+ updated = True+ break+ if updated:+ self._state["marketplaces"] = marketplaces+ self._save_state()+ return updated++ @staticmethod+ def _normalize_marketplaces(raw_marketplaces: Any) -> list[dict]:+ normalized: list[dict] = []+ if not isinstance(raw_marketplaces, list):+ return normalized+ for item in raw_marketplaces:+ if not isinstance(item, dict):+ continue+ name = item.get("name", "")+ url = item.get("url", "")+ if not name or not url:+ continue+ normalized.append({+ **item,+ "name": name,+ "url": url,+ "enabled": bool(item.get("enabled", True)),+ })+ return normalized++ def _normalize_state(self, state: dict[str, Any]) -> None:+ state.setdefault("marketplaces", [])+ state.setdefault("installed_plugins", [])+ state.setdefault("local_skills", [])+ state["marketplaces"] = self._normalize_marketplaces(state.get("marketplaces"))++ def _get_installed_plugins(self) -> list[dict]:+ return self._state.get("installed_plugins", [])++ def _add_installed_plugin(self, plugin: dict) -> None:+ plugins = self._state.setdefault("installed_plugins", [])+ # 更新已有记录+ for i, p in enumerate(plugins):+ if p.get("name") == plugin.get("name"):+ plugins[i] = plugin+ self._save_state()+ return+ plugins.append(plugin)+ self._save_state()++ def _remove_installed_plugin(self, name: str) -> None:+ plugins = self._state.get("installed_plugins", [])+ self._state["installed_plugins"] = [p for p in plugins if p.get("name") != name]+ self._save_state()++ def _add_local_skill(self, skill: dict) -> None:+ local = self._state.setdefault("local_skills", [])+ # 更新已有记录+ for i, s in enumerate(local):+ if s.get("name") == skill.get("name"):+ local[i] = skill+ self._save_state()+ return+ local.append(skill)+ self._save_state()diff --git a/jiuwenclaw/agentserver/tools/__init__.py b/jiuwenclaw/agentserver/tools/__init__.pynew file mode 100644index 0000000000..53ef779105--- /dev/null+++ b/jiuwenclaw/agentserver/tools/__init__.py@@ -0,0 +1,25 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Tools for JiuWenClaw AgentServer."""++from .memory_tools import (+ set_global_memory_manager,+ init_memory_manager_async,+ get_decorated_tools,+ memory_search,+ memory_get,+ write_memory,+ edit_memory,+ read_memory,+)++__all__ = [+ "set_global_memory_manager",+ "init_memory_manager_async",+ "get_decorated_tools",+ "memory_search",+ "memory_get",+ "write_memory",+ "edit_memory",+ "read_memory",+]diff --git a/jiuwenclaw/agentserver/tools/browser-move/.gitignore b/jiuwenclaw/agentserver/tools/browser-move/.gitignorenew file mode 100644index 0000000000..b2e0dacadd--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/.gitignore@@ -0,0 +1,221 @@+# Byte-compiled / optimized / DLL files+__pycache__/+*.py[codz]+*$py.class++# C extensions+*.so++# Distribution / packaging+.Python+build/+develop-eggs/+dist/+downloads/+eggs/+.eggs/+lib/+lib64/+parts/+sdist/+var/+wheels/+share/python-wheels/+*.egg-info/+.installed.cfg+*.egg+MANIFEST++# PyInstaller+# Usually these files are written by a python script from a template+# before PyInstaller builds the exe, so as to inject date/other infos into it.+*.manifest+*.spec++# Installer logs+pip-log.txt+pip-delete-this-directory.txt++# Unit test / coverage reports+htmlcov/+.tox/+.nox/+.coverage+.coverage.*+.cache+nosetests.xml+coverage.xml+*.cover+*.py.cover+.hypothesis/+.pytest_cache/+cover/++# Translations+*.mo+*.pot++# Django stuff:+*.log+local_settings.py+db.sqlite3+db.sqlite3-journal++# Flask stuff:+instance/+.webassets-cache++# Scrapy stuff:+.scrapy++# Sphinx documentation+docs/_build/++# PyBuilder+.pybuilder/+target/++# Jupyter Notebook+.ipynb_checkpoints++# IPython+profile_default/+ipython_config.py++# pyenv+# For a library or package, you might want to ignore these files since the code is+# intended to run in multiple environments; otherwise, check them in:+# .python-version++# pipenv+# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.+# However, in case of collaboration, if having platform-specific dependencies or dependencies+# having no cross-platform support, pipenv may install dependencies that don't work, or not+# install all needed dependencies.+# Pipfile.lock++# UV+# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.+# This is especially recommended for binary packages to ensure reproducibility, and is more+# commonly ignored for libraries.+# uv.lock++# poetry+# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.+# This is especially recommended for binary packages to ensure reproducibility, and is more+# commonly ignored for libraries.+# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control+# poetry.lock+# poetry.toml++# pdm+# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.+# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.+# https://pdm-project.org/en/latest/usage/project/#working-with-version-control+# pdm.lock+# pdm.toml+.pdm-python+.pdm-build/++# pixi+# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.+# pixi.lock+# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one+# in the .venv directory. It is recommended not to include this directory in version control.+.pixi++# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm+__pypackages__/++# Celery stuff+celerybeat-schedule+celerybeat.pid++# Redis+*.rdb+*.aof+*.pid++# RabbitMQ+mnesia/+rabbitmq/+rabbitmq-data/++# ActiveMQ+activemq-data/++# SageMath parsed files+*.sage.py++# Environments+.env+.envrc+.venv+env/+venv/+ENV/+env.bak/+venv.bak/++# Spyder project settings+.spyderproject+.spyproject++# Rope project settings+.ropeproject++# mkdocs documentation+/site++# mypy+.mypy_cache/+.dmypy.json+dmypy.json++# Pyre type checker+.pyre/++# pytype static type analyzer+.pytype/++# Cython debug symbols+cython_debug/++# PyCharm+# JetBrains specific template is maintained in a separate JetBrains.gitignore that can+# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore+# and can be added to the global gitignore or merged into this file. For a more nuclear+# option (not recommended) you can uncomment the following to ignore the entire idea folder.+# .idea/++# Abstra+# Abstra is an AI-powered process automation framework.+# Ignore directories containing user credentials, local state, and settings.+# Learn more at https://abstra.io/docs+.abstra/++# Visual Studio Code+# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore+# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore+# and can be added to the global gitignore or merged into this file. However, if you prefer,+# you could uncomment the following to ignore the entire vscode folder+# .vscode/++# Ruff stuff:+.ruff_cache/++# PyPI configuration file+.pypirc++# Marimo+marimo/_static/+marimo/_lsp/+__marimo__/++# Streamlit+.streamlit/secrets.toml++logs/+screenshots/+**/logs/+**/screenshots/diff --git a/jiuwenclaw/agentserver/tools/browser-move/README.md b/jiuwenclaw/agentserver/tools/browser-move/README.mdnew file mode 100644index 0000000000..56527fdb8c--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/README.md@@ -0,0 +1,88 @@+# browser-move++Runtime wrapper for using official Playwright MCP (`@playwright/mcp`) from openJiuwen.++## Current `.env` baseline (this repo)++These are the env vars currently used in your local `.env`:++```dotenv+# LLM+OPENROUTER_API_KEY=...+OPENROUTER_BASE_URL=https://openrouter.ai/api/v1+MODEL_NAME=anthropic/claude-sonnet-4.5+MODEL_PROVIDER=openrouter++# Official Playwright MCP (spawned by this runtime)+PLAYWRIGHT_MCP_COMMAND=npx+PLAYWRIGHT_MCP_ARGS=-y @playwright/mcp@latest+PLAYWRIGHT_CDP_URL=http://127.0.0.1:9222++# Runtime timeout guardrails+BROWSER_TIMEOUT_S=180+PLAYWRIGHT_TOOL_TIMEOUT_S=180+```++If you keep only the block above, this runtime will work with your current setup.++## Start the wrapper MCP server (streamable-http)++```powershell+uv run python src/playwright_runtime_mcp_server.py --transport streamable-http --host 127.0.0.1 --port 8940+```++Default streamable-http endpoint path is:+- `http://127.0.0.1:8940/mcp`++You can change path with `--path` or `PLAYWRIGHT_RUNTIME_MCP_PATH`.++## openJiuwen integration (streamable-http)++Use this MCP registration in your main agent:++```python+from openjiuwen.core.foundation.tool import McpServerConfig++mcp_cfg = McpServerConfig(+ server_id="playwright_runtime_wrapper_http",+ server_name="playwright-runtime-wrapper",+ server_path="http://127.0.0.1:8940/mcp",+ client_type="streamable-http"+)++await Runner.resource_mgr.add_mcp_server(mcp_cfg, tag="agent.main")+agent.ability_manager.add(mcp_cfg)+```++In this repo, `jiuwenclaw.agentserver.tools.browser_tools` now does this+automatically for the browser wrapper:++- monkeypatches current `openjiuwen` tool manager so `streamable-http` is accepted+- auto-starts `src/playwright_runtime_mcp_server.py --transport streamable-http`+- registers the wrapper into the agent as MCP tools++## Tools exposed by this wrapper++- `browser_run_task(task, session_id="", request_id="", timeout_s=0)`+ - prefer one comprehensive task instead of many tiny retries+ - omit `timeout_s` to use the configured long default+ - if `timeout_s` is lower than `BROWSER_TIMEOUT_S`, runtime clamps it back up by default+- `browser_cancel_task(session_id, request_id="")`+- `browser_clear_cancel(session_id, request_id="")`+- `browser_custom_action(action, session_id="", request_id="", params={})`+- `browser_list_custom_actions()`+- `browser_runtime_health()`++## Quick local checks++```powershell+python src/test_playwright_runtime.py+python src/test_playwright_runtime.py --live --query "Go to https://example.com and return page title."+```++## Notes++- Streamable HTTP is fully supported in `openjiuwen` tool manager and in this runtime's patched client layer.+- Browser sessions are sticky per `session_id`.+- `max_steps=20`, `max_failures=2`, and `retry_once=true` are hardcoded in runtime entrypoints.+- HTTP/streamable-http runs stateless by default unless you explicitly disable it.diff --git a/jiuwenclaw/agentserver/tools/browser-move/examples/controller_usage_example.py b/jiuwenclaw/agentserver/tools/browser-move/examples/controller_usage_example.pynew file mode 100644index 0000000000..2a7aea2b89--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/examples/controller_usage_example.py@@ -0,0 +1,101 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Example usage of the playwright_runtime custom action registry.++Shows how to:+ 1. Register your own action handlers.+ 2. Call run_action directly (e.g. from tests or scripts).+ 3. Use the MCP tools browser_custom_action and browser_list_custom_actions+ when the runtime MCP server is running.++Run from repo root:+ uv run examples/controller_usage_example.py+ uv run python src/playwright_runtime/controller.py # minimal demo+"""++from __future__ import annotations++import asyncio+import json+import sys+from pathlib import Path+from typing import Any, Dict++# Allow importing playwright_runtime when run from repo root+_REPO_ROOT = Path(__file__).resolve().parents[1]+_SRC = _REPO_ROOT / "src"+if _SRC.exists() and str(_SRC) not in sys.path:+ sys.path.insert(0, str(_SRC))+if str(_REPO_ROOT) not in sys.path:+ sys.path.insert(0, str(_REPO_ROOT))+++async def example_register_and_call() -> None:+ """Example: register a custom action and invoke it via the custom action API."""+ from playwright_runtime.controller import (+ list_actions,+ register_action,+ register_example_actions,+ run_action,+ )++ # Optional: register built-in examples (ping, echo)+ register_example_actions()++ # Register your own action+ async def my_uppercase(+ session_id: str = "",+ request_id: str = "",+ text: str = "",+ **kwargs: Any,+ ) -> Dict[str, Any]:+ return {"uppercased": (text or "").upper(), "session_id": session_id}++ register_action("uppercase", my_uppercase)++ print("Registered actions:", list_actions())++ # Call built-in examples+ out = await run_action("ping", session_id="s1", request_id="r1")+ print("run_action('ping', ...):", json.dumps(out, indent=2))++ out = await run_action("echo", session_id="s1", text="hello controller")+ print("run_action('echo', text='hello controller'):", json.dumps(out, indent=2))++ # Call your custom action+ out = await run_action("uppercase", session_id="s1", text="hello")+ print("run_action('uppercase', text='hello'):", json.dumps(out, indent=2))++ # Unknown action+ out = await run_action("nonexistent")+ print("run_action('nonexistent'):", json.dumps(out, indent=2))+++async def example_via_mcp_tools() -> None:+ """+ When the Playwright runtime MCP server is running, clients can call:++ - browser_list_custom_actions() -> {"ok": true, "actions": ["ping", "echo", ...]}+ - browser_custom_action(action="ping", session_id="...", request_id="...")+ - browser_custom_action(action="echo", params={"text": "hello"})++ The server registers register_example_actions() in its lifespan, so+ "ping" and "echo" are available by default. Add your own in a startup+ hook or by calling register_action() before the server starts.+ """+ print(+ "To use from an MCP client: call browser_custom_action with action='ping' or 'echo', "+ "or register your own actions and call browser_list_custom_actions to see them."+ )+++def main() -> None:+ asyncio.run(example_register_and_call())+ print()+ asyncio.run(example_via_mcp_tools())+++if __name__ == "__main__":+ main()diff --git a/jiuwenclaw/agentserver/tools/browser-move/examples/test_with_mcp.py b/jiuwenclaw/agentserver/tools/browser-move/examples/test_with_mcp.pynew file mode 100644index 0000000000..39d08d4204--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/examples/test_with_mcp.py@@ -0,0 +1,492 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""+Test script for Main Agent + MCP tools and browser sub-agent.++How to run the MCP servers (each in its own terminal; SSE = default, ports match below):++ # Browser (required for browser_cdp_sub)+ uv run -m src.super_agent.tool.mcp_servers.browser_use_mcp_server_cdp --host 127.0.0.1 --port 8930++ # Reasoning (port 8934)+ uv run -m src.super_agent.tool.mcp_servers.reasoning_mcp_server --transport sse --host 127.0.0.1 --port 8934++ # Searching (port 8936)+ uv run -m src.super_agent.tool.mcp_servers.searching_mcp_server --transport sse --host 127.0.0.1 --port 8936++ # Vision (port 8932)+ uv run -m src.super_agent.tool.mcp_servers.vision_mcp_server --transport sse --host 127.0.0.1 --port 8932++Then run this test: uv run -m src.super_agent.test.test_with_mcp+"""+from __future__ import annotations++import sys+import os+import time+import json+import asyncio+from pathlib import Path+from typing import Any, Dict, Optional++from dotenv import load_dotenv++# =============================================================================+# Force using repo openjiuwen (same as your current test.py)+# =============================================================================+REPO_ROOT = Path(__file__).resolve().parents[3]+sys.path.insert(0, str(REPO_ROOT))++# Load environment variables from .env (so you don't have to export them manually)+load_dotenv()++# -----------------------------+# openjiuwen imports+# -----------------------------+from openjiuwen.core.runner import Runner+from openjiuwen.core.foundation.tool import Tool, ToolCard, McpServerConfig+from openjiuwen.core.single_agent.agents.react_agent import ReActAgent, ReActAgentConfig+from openjiuwen.core.single_agent.schema.agent_card import AgentCard+from openjiuwen.core.session.session import Session, BaseSession+++# =============================================================================+# Minimal Session (same idea as your original file)+# =============================================================================+class _DummyBaseSession(BaseSession):+ def __init__(self, sid: str):+ self._sid = sid++ def config(self): return None+ def state(self): return None+ def tracer(self) -> Any: return None+ def stream_writer_manager(self): return None+ def callback_manager(self): return None+ def session_id(self) -> str: return self._sid+ def checkpointer(self): return None+++class DemoSession(Session):+ def __init__(self, sid: Optional[str] = None):+ self._sid = sid or f"demo-{int(time.time() * 1000)}"+ self._exec_id = f"exec-{self._sid}"+ self._state: Dict[str, Any] = {}+ self._global_state: Dict[str, Any] = {}+ self._base = _DummyBaseSession(self._sid)++ def base(self) -> BaseSession: return self._base+ def session_id(self) -> str: return self._sid+ def exec_id(self) -> str: return self._exec_id++ def get(self, key: str, default=None): return self._state.get(key, default)+ def set(self, key: str, value: Any) -> None: self._state[key] = value+ def get_global(self, key: str, default=None): return self._global_state.get(key, default)+ def set_global(self, key: str, value: Any) -> None: self._global_state[key] = value+++# =============================================================================+# A simple local Tool+# =============================================================================+class AddLocalTool(Tool):+ def __init__(self):+ super().__init__(+ card=ToolCard(+ id="tool.add_local",+ name="add_local",+ description="(Local) Add two numbers and return the sum.",+ input_params={+ "type": "object",+ "properties": {+ "a": {"type": "number", "description": "first number"},+ "b": {"type": "number", "description": "second number"},+ },+ "required": ["a", "b"],+ },+ )+ )++ async def invoke(self, a: float, b: float, **kwargs) -> str:+ return str(a + b)+++# =============================================================================+# MCP Server Registry - Configure YOUR MCP servers here+# =============================================================================+# Only this server is exposed as a sub-agent; all other enabled servers are main-agent tools.+BROWSER_MCP_KEY = "browser_cdp"++# Add/remove servers based on what you have running+# Format: (server_name, default_port, description, system_prompt_snippet)+AVAILABLE_MCP_SERVERS = {+ "browser_cdp": {+ "server_name": "browser-use-cdp-server",+ "port": 8930,+ "description": "Browser automation using CDP. Input: {'query': string with browser task}.",+ "prompt": (+ "You are a browser automation sub-agent.\n"+ "You have access to browser MCP tools for web interaction.\n"+ "When given a browser task:\n"+ "1. Use the available MCP tools to complete it\n"+ "2. Return clear, concise results about what you observed\n"+ ),+ "enabled": True, # Set to False to disable+ },+ "vision": {+ "server_name": "vision-mcp-server",+ "port": 8932,+ "description": "Vision/VQA for image analysis. Input: {'query': string with image path/url and question}.",+ "prompt": (+ "You are a vision analysis sub-agent.\n"+ "You can analyze images and answer questions about visual content.\n"+ "Provide detailed descriptions and insights.\n"+ ),+ "enabled": False, # Enable if server is running+ },+ "reasoning": {+ "server_name": "reasoning-mcp-server",+ "port": 8934,+ "description": "Complex reasoning tasks. Input: {'query': string with problem}.",+ "prompt": (+ "You are a reasoning sub-agent.\n"+ "You can perform complex multi-step reasoning and problem solving.\n"+ "Break down problems and solve them systematically.\n"+ ),+ "enabled": True,+ },+ "searching": {+ "server_name": "searching-mcp-server",+ "port": 8936,+ "description": "Web search. Input: {'query': string with search query}.",+ "prompt": (+ "You are a web search sub-agent.\n"+ "You can search the web and retrieve relevant information.\n"+ "Provide comprehensive and accurate search results.\n"+ ),+ "enabled": True,+ },+}+++# =============================================================================+# Sub-agent builder for MCP servers+# =============================================================================+def build_mcp_sub_agent(+ agent_id: str,+ agent_name: str,+ description: str,+ system_prompt: str,+ provider: str,+ api_key: str,+ api_base: str,+ model_name: str,+ mcp_cfg: McpServerConfig+) -> ReActAgent:+ """+ Build a sub-agent that uses MCP tools from a specific server.+ """+ card = AgentCard(+ id=agent_id,+ name=agent_name,+ description=description,+ input_params={},+ )++ return ReActAgent(card=card).configure(+ ReActAgentConfig()+ .configure_model_client(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ )+ .configure_max_iterations(8)+ .configure_prompt_template(+ [+ {+ "role": "system",+ "content": system_prompt,+ }+ ]+ )+ )+++# =============================================================================+# MCP config helper (supports different McpServerConfig field names)+# =============================================================================+def make_mcp_config(+ server_id: str,+ server_name: str,+ host: str,+ port: int,+ transport: str = "sse",+) -> McpServerConfig:+ fields = getattr(McpServerConfig, "model_fields", None) or getattr(McpServerConfig, "__fields__", {})+ def has(k: str) -> bool:+ try:+ return k in fields+ except Exception:+ return False++ base_http = f"http://{host}:{port}"+ sse_url = f"{base_http}/sse"++ payload: Dict[str, Any] = {}+ if has("server_id"):+ payload["server_id"] = server_id+ elif has("id"):+ payload["id"] = server_id++ if has("name"):+ payload["name"] = server_name++ if has("transport"):+ payload["transport"] = transport++ # required in your env: server_path+ if has("server_path"):+ payload["server_path"] = sse_url++ # compat fields (if exist)+ if has("url"):+ payload["url"] = sse_url+ if has("base_url"):+ payload["base_url"] = base_http+ if has("host"):+ payload["host"] = host+ if has("port"):+ payload["port"] = port+ if has("server_name") and "server_name" not in payload:+ payload["server_name"] = server_name+ if has("client_type"):+ payload["client_type"] = transport # "sse" for SSE endpoints++ # filter unknown fields for pydantic v1/v2+ try:+ payload = {k: v for k, v in payload.items() if has(k)}+ except Exception:+ pass++ return McpServerConfig(**payload)+++async def register_mcp_server_to_resource_mgr(mcp_cfg: McpServerConfig, tag: str):+ """Register MCP server to ResourceManager.++ Returns the Result from add_mcp_server. Caller should check .is_ok() and only+ add to ability_manager when True (so failed servers are not offered as tools).+ """+ rm = Runner.resource_mgr+ if not hasattr(rm, "add_mcp_server"):+ raise RuntimeError("Runner.resource_mgr has no method add_mcp_server() in this version.")+ return await rm.add_mcp_server(mcp_cfg, tag=tag)+++# =============================================================================+# Main Agent: registers local tool + MCP sub-agents+# =============================================================================+async def build_main_agent_with_mcp_subs(+ provider: str,+ api_key: str,+ api_base: str,+ model_name: str,+ mcp_host: str = "127.0.0.1",+) -> ReActAgent:+ """Build main agent with direct MCP tools (non-browser) and one browser sub-agent."""++ # Direct MCP tools on main agent (all enabled except browser)+ main_agent_mcp = [+ f"- {key}: {info['description']}"+ for key, info in AVAILABLE_MCP_SERVERS.items()+ if info["enabled"] and key != BROWSER_MCP_KEY+ ]+ main_mcp_desc = "\n".join(main_agent_mcp) if main_agent_mcp else " (none enabled)"+ # Sub-agent: only browser+ sub_agent_desc = (+ "- browser_cdp_sub: Browser automation. For browser tasks, call this sub-agent."+ if AVAILABLE_MCP_SERVERS.get(BROWSER_MCP_KEY, {}).get("enabled")+ else " (none)"+ )++ main_card = AgentCard(+ id="agent.main",+ name="main_agent",+ description="Main agent with local tools, MCP tools, and browser sub-agent.",+ input_params={},+ )++ agent = ReActAgent(card=main_card).configure(+ ReActAgentConfig()+ .configure_model_client(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ )+ .configure_max_iterations(10)+ .configure_prompt_template(+ [+ {+ "role": "system",+ "content": (+ "You are a main orchestrator agent with multiple capabilities:\n\n"+ "Local tools:\n"+ "- add_local: Add two numbers\n\n"+ "MCP tools (use these directly):\n"+ f"{main_mcp_desc}\n\n"+ "Sub-agent (delegate browser tasks only):\n"+ f"{sub_agent_desc}\n\n"+ "For browser tasks, call the browser_cdp_sub sub-agent. For other tasks, use the MCP tools or add_local.\n"+ "Then provide a final natural language answer to the user.\n"+ ),+ }+ ]+ )+ )++ # Register local tool+ add_local = AddLocalTool()+ Runner.resource_mgr.add_tool(add_local, tag=agent.card.id)+ agent.ability_manager.add(add_local.card)++ # Register enabled MCP servers: browser as sub-agent, rest as main-agent tools+ for key, config in AVAILABLE_MCP_SERVERS.items():+ if not config["enabled"]:+ continue++ mcp_cfg = make_mcp_config(+ server_id=key,+ server_name=config["server_name"],+ host=mcp_host,+ port=config["port"],+ )++ if key == BROWSER_MCP_KEY:+ # Browser: sub-agent only+ print(f" Registering sub-agent {key}_sub at port {config['port']} (browser)...")+ await register_mcp_server_to_resource_mgr(mcp_cfg, tag=f"agent.{key}_sub")+ sub_agent = build_mcp_sub_agent(+ agent_id=f"agent.{key}_sub",+ agent_name=f"{key}_sub",+ description=config["description"],+ system_prompt=config["prompt"],+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ mcp_cfg=mcp_cfg,+ )+ sub_agent.ability_manager.add(mcp_cfg)+ Runner.resource_mgr.add_agent(sub_agent.card, lambda a=sub_agent: a, tag=agent.card.id)+ agent.ability_manager.add(sub_agent.card)+ else:+ # Non-browser: main agent MCP tools (only add to ability_manager if registration succeeded)+ print(f" Registering MCP tools for main agent: {key} at port {config['port']}...")+ result = await register_mcp_server_to_resource_mgr(mcp_cfg, tag=agent.card.id)+ if result is not None and getattr(result, "is_ok", lambda: False)():+ agent.ability_manager.add(mcp_cfg)+ else:+ err = getattr(result, "value", result) if result is not None else "connection failed"+ print(f" [WARN] Skipping {key} (MCP server not available): {err}")++ return agent+++# =============================================================================+# Run (assumes MCP servers are started manually)+# =============================================================================+async def main():+ # Start the runner first (required for MCP resource manager)+ await Runner.start()++ # Get credentials from environment (OpenRouter or OpenAI)+ # When MODEL_PROVIDER=openrouter, use OpenRouter key/base; otherwise OpenAI.+ model_provider = (os.getenv("MODEL_PROVIDER") or "OpenAI").strip().lower()+ if model_provider == "openrouter":+ api_key = (os.getenv("OPENROUTER_API_KEY") or os.getenv("OPENAI_API_KEY") or "").strip()+ api_base = (os.getenv("OPENROUTER_BASE_URL") or "https://openrouter.ai/api/v1").strip()+ model_name = (os.getenv("MODEL_NAME") or "anthropic/claude-sonnet-4").strip()+ # openjiuwen Model only accepts OpenAI, SiliconFlow, DashScope; OpenRouter is OpenAI-compatible+ provider = "OpenAI"+ else:+ api_key = (os.getenv("OPENAI_API_KEY") or "").strip()+ api_base = (os.getenv("OPENAI_BASE_URL") or "https://api.openai.com/v1").strip()+ model_name = (os.getenv("MODEL_NAME") or "gpt-4o-mini").strip()+ provider = "OpenAI"++ # MCP server host+ mcp_host = os.getenv("MCP_SERVER_HOST", "127.0.0.1")++ print(f"\n{'='*70}")+ print(f"Testing Main Agent + MCP Sub-Agents")+ print(f"{'='*70}")+ print(f"Backend: {model_provider} (client provider: {provider})")+ print(f"Model: {model_name}")+ print(f"MCP Host: {mcp_host}")+ if not api_key:+ raise RuntimeError(+ "No API key found. Set OPENROUTER_API_KEY (for OpenRouter) or OPENAI_API_KEY (for OpenAI) in .env"+ )+ print(f"\nEnabled MCP Servers:")+ for key, info in AVAILABLE_MCP_SERVERS.items():+ if not info["enabled"]:+ print(f" ⏭️ {key:15} @ port {info['port']} - disabled")+ elif key == BROWSER_MCP_KEY:+ print(f" ✅ {key:15} @ port {info['port']} - sub-agent (browser)")+ else:+ print(f" ✅ {key:15} @ port {info['port']} - main agent tools")+ print(f"{'='*70}\n")++ # Build main agent (direct MCP tools + browser sub-agent)+ print("Building main agent (MCP tools + browser sub-agent)...")+ agent = await build_main_agent_with_mcp_subs(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ mcp_host=mcp_host,+ )++ print("\nDiscovering available tools and sub-agents...")+ tools = await agent.ability_manager.list_tool_info()+ print(f"✅ Main agent has {len(tools)} capabilities\n")++ # Show available capabilities+ print("Main agent capabilities:")+ for tool in tools:+ tool_name = getattr(tool, 'name', 'unknown')+ tool_desc = getattr(tool, 'description', '')[:100]+ print(f" - {tool_name}: {tool_desc}")+ print()++ # Default: main agent uses an MCP tool directly (reasoning or search), not a local tool.+ # Override with EXAMPLE_QUERY env var (e.g. for browser sub-agent: "Open https://example.com and tell me the title").+ query = """+ Use the reasoning tool to solve: if 3x + 5 = 14, what is x? Reply with the value of x.+ Use that value of x to open https://www.roastful.com/top-roasters#top-50 and find the position of the roaster on the list.+ Reply with the name of the roaster that sits in that position.+ """+ print(f"Test Query: {query}\n")+ print("Running main agent (will call MCP tools or delegate to sub-agent as needed)...\n")++ result = await agent.invoke({"query": query}, session=None)++ print("\n" + "="*70)+ print("FINAL RESULT")+ print("="*70)+ print(result)+ print("="*70)+++if __name__ == "__main__":+ try:+ asyncio.run(main())+ except RuntimeError as e:+ # Swallow the specific MCP/anyio shutdown bug so tests can continue+ if "Attempted to exit cancel scope in a different task than it was entered in" in str(e):+ print(f"Ignoring MCP shutdown error: {e}", file=sys.stderr)+ else:+ # Re-raise anything else so real errors still fail+ raisediff --git a/jiuwenclaw/agentserver/tools/browser-move/pyproject.toml b/jiuwenclaw/agentserver/tools/browser-move/pyproject.tomlnew file mode 100644index 0000000000..67a34b8739--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/pyproject.toml@@ -0,0 +1,155 @@+[project]+name = "browser-move"+version = "0.1.0"+requires-python = ">=3.11"+dependencies = [+ "aiofiles==25.1.0",+ "aiohappyeyeballs==2.6.1",+ "aiohttp==3.13.3",+ "aiosignal==1.4.0",+ "annotated-doc==0.0.4",+ "annotated-types==0.7.0",+ "anyio==4.12.1",+ "attrs==25.4.0",+ "authlib==1.6.7",+ "beartype==0.22.9",+ "cacheout==0.16.0",+ "cachetools==7.0.1",+ "certifi==2026.1.4",+ "cffi==2.0.0",+ "cfgv==3.5.0",+ "charset-normalizer==3.4.4",+ "click==8.3.1",+ "cloudpickle==3.1.2",+ "codecov==2.1.13",+ "colorama==0.4.6",+ "coverage==7.13.4",+ "croniter==6.0.0",+ "cryptography==46.0.5",+ "cyclopts==4.5.2",+ "dashscope==1.25.12",+ "diskcache==5.6.3",+ "distlib==0.4.0",+ "distro==1.9.0",+ "dnspython==2.8.0",+ "docstring-parser==0.17.0",+ "docutils==0.22.4",+ "docx2txt==0.9",+ "email-validator==2.3.0",+ "exceptiongroup==1.3.1",+ "fakeredis==2.33.0",+ "fastmcp==2.14.5",+ "filelock==3.20.3",+ "frozenlist==1.8.0",+ "fsspec==2026.2.0",+ "greenlet==3.3.1",+ "grpcio==1.78.0",+ "h11==0.16.0",+ "hf-xet==1.2.0",+ "httpcore==1.0.9",+ "httpx==0.28.1",+ "httpx-sse==0.4.3",+ "huggingface-hub==1.4.1",+ "identify==2.6.16",+ "idna==3.11",+ "importlib-metadata==8.7.1",+ "iniconfig==2.3.0",+ "jaraco-classes==3.4.0",+ "jaraco-context==6.1.0",+ "jaraco-functools==4.4.0",+ "jiter==0.13.0",+ "json-repair==0.57.1",+ "jsonref==1.1.0",+ "jsonschema==4.26.0",+ "jsonschema-path==0.3.4",+ "jsonschema-specifications==2025.9.1",+ "keyring==25.7.0",+ "lupa==2.6",+ "lxml==6.0.2",+ "markdown-it-py==4.0.0",+ "mcp==1.26.0",+ "mdurl==0.1.2",+ "mermaid-py==0.8.3",+ "more-itertools==10.8.0",+ "multidict==6.7.1",+ "nodeenv==1.10.0",+ "numpy==2.4.2",+ "oauthlib==3.3.1",+ "openai==2.20.0",+ "openapi-pydantic==0.5.1",+ "openjiuwen==0.1.7",+ "opentelemetry-api==1.39.1",+ "orjson==3.11.7",+ "packaging==26.0",+ "pandas==3.0.0",+ "pathable==0.4.4",+ "pathvalidate==3.3.1",+ "pdfminer-six==20251230",+ "pdfplumber==0.11.9",+ "pillow==12.1.1",+ "platformdirs==4.5.1",+ "pluggy==1.6.0",+ "portalocker==3.2.0",+ "pre-commit==4.5.1",+ "prometheus-client==0.24.1",+ "propcache==0.4.1",+ "protobuf==6.33.5",+ "py-key-value-aio==0.3.0",+ "py-key-value-shared==0.3.0",+ "pycparser==3.0",+ "pycryptodome==3.23.0",+ "pydantic==2.12.5",+ "pydantic-core==2.41.5",+ "pydantic-settings==2.12.0",+ "pydocket==0.17.7",+ "pygments==2.19.2",+ "pyjwt==2.11.0",+ "pymilvus==2.6.9",+ "pypdfium2==5.4.0",+ "pyperclip==1.11.0",+ "pysbd==0.3.4",+ "pytest==9.0.2",+ "pytest-cov==7.0.0",+ "python-dateutil==2.9.0.post0",+ "python-docx==1.2.0",+ "python-dotenv==1.2.1",+ "python-json-logger==4.0.0",+ "python-multipart==0.0.22",+ "pytz==2025.2",+ "pywin32==311",+ "pywin32-ctypes==0.2.3",+ "pyyaml==6.0.3",+ "redis==7.1.1",+ "referencing==0.36.2",+ "regex==2026.1.15",+ "requests==2.32.5",+ "rich==14.3.2",+ "rich-rst==1.3.2",+ "rpds-py==0.30.0",+ "ruff==0.15.0",+ "safetensors==0.7.0",+ "setuptools==82.0.0",+ "shellingham==1.5.4",+ "six==1.17.0",+ "sniffio==1.3.1",+ "sortedcontainers==2.4.0",+ "sqlalchemy==2.0.46",+ "sse-starlette==3.2.0",+ "starlette==0.52.1",+ "tiktoken==0.12.0",+ "tokenizers==0.22.2",+ "tqdm==4.67.3",+ "transformers==5.1.0",+ "typer==0.23.0",+ "typer-slim==0.23.0",+ "typing-extensions==4.15.0",+ "typing-inspection==0.4.2",+ "tzdata==2025.3",+ "urllib3==2.6.3",+ "uvicorn==0.40.0",+ "virtualenv==20.36.1",+ "websocket-client==1.9.0",+ "websockets==16.0",+ "yarl==1.22.0",+ "zipp==3.23.0",+]diff --git a/jiuwenclaw/agentserver/tools/browser-move/requirements.freeze.txt b/jiuwenclaw/agentserver/tools/browser-move/requirements.freeze.txtnew file mode 100644index 0000000000..fbe8e5dda5Binary files /dev/null and b/jiuwenclaw/agentserver/tools/browser-move/requirements.freeze.txt differdiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/__init__.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/__init__.pynew file mode 100644index 0000000000..bab2194d1a--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/__init__.py@@ -0,0 +1,8 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++from openjiuwen.agent_evolving.optimizer.tool.base import ToolOptimizerBase++__all__ = [+ "ToolOptimizerBase",+]diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/base.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/base.pynew file mode 100644index 0000000000..f4bf70d686--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/base.py@@ -0,0 +1,99 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+"""+Tool domain optimizer base class: fixes domain=tool, default_targets=[enabled, max_retries],+unifies filtering and logging semantics. Subclasses implement _backward / _update.+"""++import os+from typing import List++from openjiuwen.agent_evolving.optimizer.tool.utils.customized_pipline import customized_pipeline+from openjiuwen.agent_evolving.optimizer.tool.utils.customized_reviewer import ToolDescriptionReviewer+from openjiuwen.agent_evolving.optimizer.tool.utils.default_configs import default_config_desc, default_config_eg+from openjiuwen.agent_evolving.optimizer.tool.utils.schema_extractor import extract_schema+from openjiuwen.agent_evolving.optimizer.base import BaseOptimizer+from openjiuwen.core.common.logging import logger+++class ToolOptimizerBase(BaseOptimizer):+ """+ Tool dimension optimizer base class: optimizes tunables exposed by ToolCallOperator (e.g., enabled, max_retries).+ """++ domain: str = "tool"++ def __init__(self, **kwargs):+ super().__init__(**kwargs)+ self.max_turns = kwargs.get("max_turns", 5)+ self.llm_api_key = kwargs.get("llm_api_key", "")+ self.config_eg = kwargs.get("config_eg", default_config_eg)+ self.config_desc = kwargs.get("config_desc", default_config_desc)+ self.path_save_dir = kwargs.get("path_save_dir", "./tool_optimizer_results")+ self.config_eg['save_dir'] = os.path.join(self.path_save_dir, "examples")+ self.config_desc['save_dir'] = os.path.join(self.path_save_dir, "descriptions")+ self.config_desc['examples_dir'] = self.config_eg['save_dir']+ self.config_desc['neg_ex_input_path'] = os.path.join(+ self.path_save_dir,+ f"{kwargs.get('tool_name','tool')}.json"+ )++ def default_targets(self) -> List[str]:+ return ["enabled", "max_retries"]++ def optimize_tool(self, tool, tool_callable):+ """Optimize tool given its description and callable."""+ result_examples = []+ result_descs = []++ original_desc = tool["description"]+ # iter_count from config originally+ for i in range(self.max_turns):+ # update desc for after iters+ if i > 0:+ latest_description = result_desc[-1][0]["description"]+ tool["description"] = latest_description++ # stage 1 - example+ default_config_desc['llm_api_key'] = self.llm_api_key+ default_config_eg['llm_api_key'] = self.llm_api_key+ result_example = customized_pipeline(+ "example",+ tool,+ tool_callable=tool_callable,+ config=self.config_eg+ )+ result_examples.append(result_example)+ logger.info("=== EXAMPLE STAGE FINISHED ===")++ # # stage 2 - description+ result_desc = customized_pipeline(+ "description",+ tool,+ tool_callable=tool_callable,+ config=self.config_desc+ )+ result_descs.append(result_desc)++ # description final reviewer+ output_desc = result_desc[-1][-1]["description"]+ eval_model_id = self.config_desc.get("eval_model_id")+ processor = ToolDescriptionReviewer(+ eval_model_id=eval_model_id,+ llm_api_key=self.llm_api_key+ )++ schema = extract_schema(original_desc)+ processed = processor.process(+ data=output_desc,+ ori_tool=tool["description"],+ steps=["clean", "cross_check", "translate"]+ )+ final_desc = processor.format(schema, processed, example=None)++ return final_desc++ def _update(self):+ updates = {}+ for operator in self.operators.items():+ returndiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/__init__.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/__init__.pynew file mode 100644index 0000000000..ad7075f4d3--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/__init__.py@@ -0,0 +1,2 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/base_method.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/base_method.pynew file mode 100644index 0000000000..b62ece0351--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/base_method.py@@ -0,0 +1,97 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import os+from typing import List, Dict, Any, Optional, Union+import ast+import json++from openjiuwen.agent_evolving.optimizer.tool.utils.rits import get_rits_response+++def parse_json(output, header=None):+ try:+ json_idx = -1+ if header is not None:+ json_idx = output.find(f'{{"{header}":')+ if json_idx == -1:+ json_idx = output.find(f'{{\n"{header}":')+ if json_idx == -1:+ json_idx = output.find('{\n')+ if json_idx == -1:+ json_idx = output.find('{')+ json_end_idx = output.rfind('}')+ json_end_idx = json_end_idx + 1 if json_end_idx != -1 else -1+ output = output[json_idx:json_end_idx].strip()+ output_json = json.loads(output)+ except json.JSONDecodeError:+ output_json = ast.literal_eval(output)+ return output_json+++def format_prompt_llama(system_prompt: str, user_prompt: str):+ return system_prompt + user_prompt+++def print_bold(text):+ bold = "\033[1m"+ reset = "\033[0m"++++class BaseMethod:+ def __init__(+ self,+ config: Dict[str, Union[str, int, bool]],+ ):+ self.config = config+ self.verbose = config['verbose'] if 'verbose' in config else False++ def produce_answer_from_api_call(self, instruction: str, doc_str: str, api_response: str):+ user_prompt = f'''+Please respond in natural language text. Do not include code in your responses. You are given an API tool with the following documentation, which includes the functionality description, required parameters, code snippets for API calls, etc.++Documentation:+{doc_str}++You are given the following instruction: "{instruction}"+To produce a response to the instruction, you made an API call to the given tool, which returned the following results:+{api_response}++Given the instruction and the results of API call, produce an effective and short answer (less than 300 letters) to the user in natural language. Your answer must be based on the results of the API call, do not hallucinate or answer anything not in the API results. You must not include code, comments, JSON data structures, notes, or other irrelevant information in your answer. If there is an error or failure using the tool, you must report the error in your answer and do not make things up, especially when you receive an input about invalid parameters. Also, absolutely do NOT tell a user about a simulated response. Treat every successful API output as real. Every successful API call contains real data. This is very important.++Finally, organize your output in the following JSON format:+{{+ "answer": answer+}}+You must strictly follow the output format. You can begin your task now.'''++ def verify_output(output):+ output_json = parse_json(output)++ if not isinstance(output_json, dict):+ raise ValueError("Output must be a dict.")++ if "answer" not in output_json:+ raise ValueError('"answer" field is required.')++ if "error" in output_json:+ raise ValueError(output_json.get("error"))++ return output_json["answer"].strip()++ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)+ output = get_rits_response(+ self.config['gen_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ include_stop_sequence=False,+ stop_sequences=['<|eot_id|>', '<|end_of_text|>', '<|eom_id|>'],+ verbose=self.config['verbose']+ )+ if self.config['verbose']:+ print_bold('Final LLM output: ')+ print_bold(output)+ return outputdiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/beam_search.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/beam_search.pynew file mode 100644index 0000000000..469274221e--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/beam_search.py@@ -0,0 +1,168 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++from concurrent.futures import ThreadPoolExecutor, as_completed+import time+++class TreeNode:+ def __init__(self, data, score, results, history=None):+ self.data = data+ self.score = score+ self.results = results+ self.history = history if history is not None else []+ self.history = self.history + [results]+ self.parent = None+ self.children = []++ def __repr__(self):+ depth = self.get_depth()+ string = f'{" "*depth}it={depth} score={self.score:.1f} data="{self.data}"'+ for child in self.children:+ string += '\n' + repr(child)+ return string++ def get_depth(self):+ if self.parent is None:+ return 0+ return self.parent.get_depth() + 1++++class BeamSearch:+ def __init__(+ self,+ method,+ beam_width,+ expand_num,+ max_depth,+ num_workers=1,+ verbose=False,+ early_stop=True,+ check_valid=False,+ max_score=100.,+ top_k=1+ ):+ self.method = method+ self.beam_width = beam_width+ self.max_depth = max_depth+ self.expand_num = expand_num+ self.num_workers = num_workers+ if self.num_workers > 1:+ self.pool = ThreadPoolExecutor(self.num_workers)+ self.verbose = verbose+ self.early_stop = early_stop+ self.check_valid = check_valid+ self.max_score = max_score+ self.num_retry = 1+ self.top_k = top_k+ self.timeout = 600++ def search(self, tool):+ start_time = time.time()+ examples = self.method.get_examples(tool) if callable(getattr(self.method, 'get_examples', None)) else None++ # initial root node generation / evaluation+ root = None+ for _ in range(self.num_retry):+ results, data, score = self.method.step(+ tool=tool,+ examples=examples,+ it=0,+ )++ if self.check_valid and score == -1:+ continue++ root = TreeNode(+ data=data,+ score=score,+ results=results,+ )+ break++ if root is None:+ raise RuntimeError("Failed to generate a valid root node after retries.")++ beam_list = [root]+ best_nodes = [root]++ # expand and prune+ for depth in range(1, self.max_depth + 1):+ if time.time() - start_time > self.timeout:+ nodes_sorted = sorted(best_nodes, reverse=True, key=lambda x: x.score)[:self.top_k]+ return [node.history for node in nodes_sorted]+ if self.early_stop and self.check_early_stop(beam_list, max_score=self.max_score, k=self.top_k):+ break+ beam_list = self.expand(beam_list, tool, examples, depth)+ beam_list = self.prune(beam_list)+ best_nodes += beam_list++ nodes_sorted = sorted([node for node in best_nodes if node.get_depth() > 0],+ reverse=True, key=lambda x: x.score)[:self.top_k]++ return [node.history for node in nodes_sorted]++ def expand(self, beam_list, tool, examples, depth):+ def expand_single_step(node, tool, examples, depth):+ new_node = None+ for _ in range(self.num_retry):+ output, data, score = self.method.step(+ tool=tool,+ examples=examples,+ prev_outputs=node.history,+ it=depth,+ )+ if self.check_valid and score == -1:+ continue++ new_node = TreeNode(+ data=data,+ score=score,+ results=output,+ history=node.history,+ )+ new_node.parent = node+ node.children.append(new_node)+ break++ if new_node is None:+ raise RuntimeError+ return new_node++ new_beam_list = []+ futures = []+ for node in beam_list:+ for _ in range(self.expand_num):+ if self.num_workers == 1:+ new_node = expand_single_step(node, tool, examples, depth)+ new_beam_list.append(new_node)+ else:+ futures.append(+ self.pool.submit(+ expand_single_step, node, tool, examples, depth+ )+ )+ if self.num_workers > 1:+ for thd in as_completed(futures):+ e = thd.exception()+ if e is None:+ new_node = thd.result()+ new_beam_list.append(new_node)+ else:+ continue++ return new_beam_list++ def prune(self, beam_list):+ sorted_beam_list = sorted(beam_list, reverse=True, key=lambda x: x.score)+ return sorted_beam_list[:self.beam_width]++ def check_early_stop(self, beam_list, max_score=100., k=1):+ x = self.top_k+ if len(beam_list) < k:+ return False+ for node in beam_list[:k]:+ if node.score < max_score:+ return False+ return Truediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/callable_fortest.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/callable_fortest.pynew file mode 100644index 0000000000..672e0065e6--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/callable_fortest.py@@ -0,0 +1,112 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import os+import json+import asyncio+from typing import Any, Dict, Optional, Callable++from fastmcp.client import Client+from fastmcp.client import SSETransport+++def make_sync_mcp_caller(+ url: str,+ name: str = "Streamable HTTP Python Server",+) -> Callable[[Dict[str, Any]], Any]:++ def call(tool_arguments: Dict[str, Any]) -> Any:+ async def _run():+ transport = SSETransport(url=url)+ client = Client(transport)++ async with client:+ tool_name = tool_arguments["name"]+ arguments = tool_arguments.get("arguments")++ if isinstance(arguments, str):+ try:+ arguments = json.loads(arguments)+ except json.JSONDecodeError as e:+ raise ValueError(+ "Failed to parse `arguments` as JSON string. "+ f"Raw arguments: {arguments}"+ ) from e++ result = await client.call_tool(tool_name, arguments)+ return result.content[0].text++ return asyncio.run(_run())++ return call+++MCP_URL = os.getenv("MCP_URL", "")+MCP_NAME = os.getenv("MCP_NAME", "Streamable HTTP Python Server")+++gaode_map_mcp_generic = make_sync_mcp_caller(MCP_URL)++schema = {+ "type": "function",+ "function": {+ "name": "SearchFunds",+ "description": """搜索基金、根据基金名称匹配基金代码。+通过名称(可用于确定基金代码)、代码、拼音、交易状态等信息进行搜索。+同时可以按照收益、限额、费率等进行排序,,在大部分情况都需要此工具。+(注意如果使用了keyword,就不要使用“分类”这个参数,+另外returnYear指的是近一年收益)""".strip(),+ "parameters": {+ "type": "object",+ "properties": {+ "category": {+ "type": "string",+ "description": """分类 (可选值: '', '不限', '+偏股型', '指数型',+'QDII型', '商品型', '债券型', '货币型',+'国企改革', '工业4.0', '国防军工',+'城镇化', '消费', '节能环保', '美丽中国',+ '养老', '价值蓝筹', '金融', '一带一路',+'农林牧渔', '资源', 'TMT', '新能源',+'文化传媒', '健康中国', '新兴产业', '量化投资', '定增',+'逆向投资', '沪港深', '量化对冲', '打新',+'股票型', '偏股混合型', '平衡混合型', '灵活配置型',+'偏债混合型', '综合指数', '规模指数', '策略指数',+'风格指数', '行业主题指数', '定制指数', '债券指数',+'国际股票型', '国际混合型', '国际债券型',+'国际另类投资', '全球市场', '美国市场', '欧洲市场',+'香港市场', '亚太市场', '新兴市场', '大中华市场',+'黄金', '白银', '油气', '纯债', '一级债',+'二级债', '高杠杆', '利率债', '信用债',+'可转债', '偏股债')""".strip()+ },+ "keyword": {+ "type": "string",+ "description": "基金名称关键字,支持分词搜索"+ },+ "size": {+ "type": "number",+ "description": "每页数量"+ },+ "sortOrder": {+ "type": "string",+ "description": "选择排序的顺序,如果是查找最大、最多等,可以是\"降序\",否则为\"升序\" (可选值: '', '升序', '降序')"+ },+ "tradeStatus": {+ "type": "string",+ "description": "交易状态 (可选值: '', '不限', '正常开放', '认购期', '暂停申购', '暂停赎回', '暂停交易')"+ },+ "sortColumn": {+ "type": "string",+ "description": "选择要排序的列,可选值:成立日期、基金规模、收益率、近一年收益、起购金额、基金限额、选股能力、择时能力、最新股票仓位、综合费率、跟踪误差、七日年化收益率、万份收益"+ },+ "page": {+ "type": "number",+ "description": "页码,从0开始"+ }+ }+ }+ }+}+description = json.dumps(schema, ensure_ascii=False)+tool = {'name': 'SearchFunds', 'description': description}diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_api.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_api.pynew file mode 100644index 0000000000..951ccb6820--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_api.py@@ -0,0 +1,278 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import importlib.util+import json+import os+import sys+from typing import Any, Dict, Optional++from openjiuwen.core.common.logging import logger+++class SimpleAPIWrapper:+ """+ Simplified version of BfclAPIWrapper to load custom functions and data.+ """++ def __init__(+ self,+ tool_path: Optional[str] = None,+ fn_call_name: str = None,+ custom_functions: Optional[Dict] = None+ ):+ """+ Initialize the wrapper with either a Python file or custom functions.++ Args:+ tool_path: Path to Python file containing functions (optional)+ custom_functions: Dictionary of custom functions to use (optional)+ """+ self.functions = {}+ self.fn_call_name = fn_call_name+ self.module = None+ # Load from Python file if provided+ if tool_path and os.path.exists(tool_path):+ self._load_module(tool_path)++ # Add custom functions if provided+ if custom_functions:+ self.functions.update(custom_functions)++ def _load_module(self, tool_path: str):+ """Load functions from a Python module file"""+ module_name = os.path.splitext(os.path.basename(tool_path))[0]+ spec = importlib.util.spec_from_file_location(module_name, tool_path)+ module = importlib.util.module_from_spec(spec)+ sys.modules[module_name] = module+ spec.loader.exec_module(module)+ self.module = module++ # Extract all callable functions from the module+ for name in dir(module):+ obj = getattr(module, name)+ if callable(obj) and not name.startswith('_'):+ self.functions[name] = obj++ def add_function(self, name: str, func: callable):+ """Add a custom function to the wrapper"""+ self.functions[name] = func++ def __call__(self, tool: Dict[str, Any], tool_input: Dict[str, Any]):+ """+ Execute a function call with the same interface as BfclAPIWrapper.++ Args:+ tool: Dictionary containing function info, e.g., {'function': {'name': 'func_name'}}+ tool_input: Dictionary containing function parameters++ Returns:+ Tuple of (json_response_string, status_code)+ """+ tool_name = tool['name']+ logger.info(f"=== Trying to execute tool: {tool}, tool_input: {tool_input} ===")++ params = tool_input+ fn = self.functions.get(self.fn_call_name)+ # Handle function not found+ if fn is None:+ logger.error(f"request invalid, no function '{tool_name}' found")+ return json.dumps({+ "error": f"request invalid, no function '{tool_name}' found",+ "response": ""+ }), 12++ # Execute function+ try:+ output = fn(params)+ return json.dumps({'response': output}, ensure_ascii=False), 0+ except Exception as e:+ logger.error(f"request invalid, error: {str(e)}")+ return json.dumps({+ "error": f"request invalid, error: {str(e)}",+ "response": ""+ }), 12+++class SimpleAPIWrapperFromCallable:+ """+ Simplified version of BfclAPIWrapper to load custom functions and data.+ """++ def __init__(self, tool_callable, name: str, config: Dict):+ """+ Initialize the wrapper with a callable function and config.++ Args:+ tool_callable: The callable function to use+ config: Configuration dictionary+ """+ self.functions = {}+ self.fn_call_name = name+ self.functions[self.fn_call_name] = tool_callable+ self.module = None++ def __call__(self, tool: Dict[str, Any], tool_input: Dict[str, Any]):+ """+ Execute a function call with the same interface as BfclAPIWrapper.++ Args:+ tool: Dictionary containing function info, e.g., {'function': {'name': 'func_name'}}+ tool_input: Dictionary containing function parameters++ Returns:+ Tuple of (json_response_string, status_code)+ """+ tool_name = tool['name']+ logger.info(f"=== Trying to execute tool: {tool}, tool_input: {tool_input} ===")++ params = tool_input+ fn = self.functions.get(self.fn_call_name)+ # Handle function not found+ if fn is None:+ logger.error(f"request invalid, no function '{tool_name}' found")+ return json.dumps({+ "error": f"request invalid, no function '{tool_name}' found",+ "response": ""+ }), 12++ # Execute function+ try:+ output = fn(params)+ return json.dumps({'response': output}, ensure_ascii=False), 0+ except Exception as e:+ logger.error(f"request invalid, error: {str(e)}")+ return json.dumps({+ "error": f"request invalid, error: {str(e)}",+ "response": ""+ }), 12+ """+ Initialize the wrapper with either a Python file or custom functions.++ Args:+ tool_path: Path to Python file containing functions (optional)+ custom_functions: Dictionary of custom functions to use (optional)+ """+ self.functions = {}+ self.fn_call_name = fn_call_name++ # Load from Python file if provided+ if tool_path and os.path.exists(tool_path):+ self._load_module(tool_path)++ # Add custom functions if provided+ if custom_functions:+ self.functions.update(custom_functions)++ def _load_module(self, tool_path: str):+ """Load functions from a Python module file"""+ module_name = os.path.splitext(os.path.basename(tool_path))[0]+ spec = importlib.util.spec_from_file_location(module_name, tool_path)+ module = importlib.util.module_from_spec(spec)+ sys.modules[module_name] = module+ spec.loader.exec_module(module)+ self.module = module++ # Extract all callable functions from the module+ for name in dir(module):+ obj = getattr(module, name)+ if callable(obj) and not name.startswith('_'):+ self.functions[name] = obj++ def add_function(self, name: str, func: callable):+ """Add a custom function to the wrapper"""+ self.functions[name] = func++ def __call__(self, tool: Dict[str, Any], tool_input: Dict[str, Any]):+ """+ Execute a function call with the same interface as BfclAPIWrapper.++ Args:+ tool: Dictionary containing function info, e.g., {'function': {'name': 'func_name'}}+ tool_input: Dictionary containing function parameters++ Returns:+ Tuple of (json_response_string, status_code)+ """+ tool_name = tool['name']+ logger.info(f"=== Trying to execute tool: {tool}, tool_input: {tool_input} ===")++ params = tool_input+ fn = self.functions.get(self.fn_call_name)+ # Handle function not found+ if fn is None:+ logger.error(f"request invalid, no function '{tool_name}' found")+ return json.dumps({+ "error": f"request invalid, no function '{tool_name}' found",+ "response": ""+ }), 12++ # Execute function+ try:+ output = fn(params)+ return json.dumps({'response': output}, ensure_ascii=False), 0+ except Exception as e:+ logger.error(f"request invalid, error: {str(e)}")+ return json.dumps({+ "error": f"request invalid, error: {str(e)}",+ "response": ""+ }), 12+++def load_custom_data(data_path: str, api_wrapper: SimpleAPIWrapper):+ """+ Load function definitions from your custom data format.++ Args:+ data_path: Path to your data file (JSON, JSONL, etc.)+ api_wrapper: The API wrapper instance++ Returns:+ List of tool definitions+ """+ tools = []++ # Handle different file formats+ if data_path.endswith('.jsonl'):+ # JSONL format (like BFCL)+ with open(data_path, 'r') as f:+ for line in f:+ data = json.loads(line)+ if 'function' in data:+ functions = data['function'] if isinstance(data['function'], list) else [data['function']]+ for fn in functions:+ tools.append({+ "type": "function",+ "function": fn+ })++ elif data_path.endswith('.json'):+ # Single JSON file+ with open(data_path, 'r') as f:+ data = json.load(f)++ # Handle different JSON structures+ if isinstance(data, list):+ # List of function definitions+ for item in data:+ if 'function' in item:+ tools.append({+ "type": "function",+ "function": item['function']+ })+ else:+ # Assume the item itself is a function definition+ tools.append({+ "type": "function",+ "function": item+ })+ elif 'functions' in data:+ # Object with functions array+ for fn in data['functions']:+ tools.append({+ "type": "function",+ "function": fn+ })++ return tools+diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_eval.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_eval.pynew file mode 100644index 0000000000..58ddc50ffd--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_eval.py@@ -0,0 +1,451 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import json+from typing import Any, Dict, List, Tuple+import anyio++import numpy as np+# from openai import OpenAI++from openjiuwen.agent_evolving.optimizer.tool.utils.rits import rits_response+from openjiuwen.core.common.logging import logger+from openjiuwen.core.foundation.llm import (+ ModelClientConfig,+ ModelRequestConfig+)+from openjiuwen.core.foundation.llm import OpenAIModelClient+++class SimpleEval:+ """+ Improved evaluation wrapper that generates function calls based on instructions+ and evaluates both function call accuracy and output effectiveness.+ """++ def __init__(+ self,+ api_wrapper=None,+ config: Dict = None,+ fn_call_weight=0.4,+ output_effectiveness_weight=0.6+ ):+ """+ Initialize the evaluator.++ Args:+ api_wrapper: The API wrapper to use for function execution+ llm_agent: LLM agent with tool calling capability (e.g., OpenAI client with function calling)+ evaluation_llm: LLM client for evaluating output effectiveness (can be the same as llm_agent)+ fn_call_weight: Weight for function call accuracy score (0-1)+ output_effectiveness_weight: Weight for output effectiveness score (0-1)+ """+ self.api_wrapper = api_wrapper+ self.fn_call_weight = fn_call_weight+ self.output_effectiveness_weight = output_effectiveness_weight+ self.config = config++ if abs(fn_call_weight + output_effectiveness_weight - 1.0) > 1e-6:+ raise ValueError("fn_call_weight and output_effectiveness_weight must sum to 1.0")++ def __call__(+ self,+ tool: Dict[str, Any],+ description: str,+ examples: List[Tuple[str, Any, str, str]],+ runs: int = 1,+ ):+ """+ Evaluate a tool with given examples.++ Args:+ tool: Tool definition dict with 'function' key+ description: Description of the function+ examples: List of (instruction, fn_call, fn_output, answer) tuples+ runs: Number of evaluation runs (for averaging)++ Returns:+ Dict with 'score_avg', 'score_std', 'fn_call_accuracy', 'output_effectiveness', and 'results'+ """+ all_scores = []+ all_fn_call_scores = []+ all_output_scores = []+ all_results = []++ for run in range(runs):+ run_results = []+ total_fn_call_score = 0.0+ total_output_score = 0.0+ total_count = len(examples)++ for i, (instruction, expected_fn_call, fn_output, answer) in enumerate(examples):+ result = self._evaluate_single_example(+ {+ "tool": tool,+ "description": description,+ "instruction": instruction,+ "expected_fn_call": expected_fn_call,+ "expected_output": fn_output,+ "answer": answer,+ "example_id": i,+ }+ )+ run_results.append(result)+ total_fn_call_score += result['fn_call_score']+ total_output_score += result['output_effectiveness_score']++ # Calculate average scores for this run+ avg_fn_call_score = total_fn_call_score / total_count if total_count > 0 else 0.0+ avg_output_score = total_output_score / total_count if total_count > 0 else 0.0++ # Calculate weighted total score+ total_score = (self.fn_call_weight * avg_fn_call_score ++ self.output_effectiveness_weight * avg_output_score)++ all_scores.append(total_score)+ all_fn_call_scores.append(avg_fn_call_score)+ all_output_scores.append(avg_output_score)+ all_results.append(run_results)++ return {+ 'score_avg': np.mean(all_scores) * 100.0,+ 'score_std': np.std(all_scores) * 100.0,+ 'fn_call_accuracy': np.mean(all_fn_call_scores) * 100.0,+ 'output_effectiveness': np.mean(all_output_scores) * 100.0,+ 'results': all_results[0] if runs == 1 else all_results,+ }++ def _evaluate_single_example(self, example: Dict[str, Any]) -> Dict[str, Any]:+ """+ Evaluate a single example.++ Returns:+ Dict with evaluation results in the format expected by the original system+ """+ tool = example["tool"]+ description = example["description"]+ instruction = example["instruction"]+ expected_fn_call = example["expected_fn_call"]+ expected_output = example["expected_output"]+ answer = example["answer"]+ example_id = example["example_id"]+ try:+ # Step 1: Generate function call based on instruction and tool description+ generated_fn_call = self._generate_function_call(tool, description, instruction)++ # Step 2: Evaluate function call accuracy+ fn_call_score = self._evaluate_function_call_accuracy(generated_fn_call, expected_fn_call)++ # Step 3: Execute the generated function call+ execution_result = None+ execution_error = None+ errors = []++ if self.api_wrapper:+ try:+ actual_output, status_code = self.api_wrapper(tool, generated_fn_call)+ if status_code == 0:+ execution_result = json.loads(actual_output)+ else:+ execution_error = json.loads(actual_output)+ # Format error according to expected structure+ errors.append({+ 'function_name': generated_fn_call.get(+ 'name',+ tool.get('name', 'unknown')+ ),+ 'arguments': generated_fn_call.get('arguments', {}),+ 'error_msg': str(execution_error)+ })+ except Exception as e:+ execution_error = {"error": str(e)}+ if generated_fn_call:+ function_name = generated_fn_call.get(+ "name",+ tool.get("name", "unknown"),+ )+ arguments = generated_fn_call.get("arguments", {})+ else:+ function_name = tool.get("name", "unknown")+ arguments = {}++ errors.append(+ {+ "function_name": function_name,+ "arguments": arguments,+ "error_msg": str(e),+ }+ )+ else:+ logger.error("Missing required input: api_wrapper")+ error_msg = "Missing required input: api_wrapper"+ errors.append({+ 'function_name': tool.get('name', 'unknown'),+ 'arguments': {},+ 'error_msg': error_msg+ })+ raise ValueError(error_msg)++ # Step 4: Evaluate output effectiveness+ output_effectiveness_score = self._evaluate_output_effectiveness(+ instruction, execution_result, execution_error, answer+ )++ # Calculate weighted score+ weighted_score = (self.fn_call_weight * fn_call_score ++ self.output_effectiveness_weight * output_effectiveness_score)++ # Format according to expected structure for output['results']+ return {+ 'instruction': instruction,+ 'expected_fn_call': expected_fn_call,+ 'generated_fn_call': generated_fn_call,+ 'fn_call_score': fn_call_score,+ 'execution_result': execution_result,+ 'execution_error': execution_error,+ 'output_effectiveness_score': output_effectiveness_score,+ 'weighted_score': weighted_score,+ 'answer': answer,+ 'errors': errors+ }++ except Exception as e:+ logger.error(f"Error evaluating example {example_id}: {str(e)}")+ # Format error according to expected structure+ return {+ 'instruction': instruction,+ 'expected_fn_call': expected_fn_call,+ 'generated_fn_call': None,+ 'fn_call_score': 0.0,+ 'execution_result': None,+ 'execution_error': {"error": str(e)},+ 'output_effectiveness_score': 0.0,+ 'weighted_score': 0.0,+ 'answer': answer, # This is what the original format expects in result['answer']+ 'errors': [{+ 'function_name': tool.get('name', 'unknown'),+ 'arguments': {},+ 'error_msg': str(e)+ }]+ }++ def _generate_function_call(self, tool: Dict[str, Any], description: str, instruction: str) -> Dict[str, Any]:+ """+ Generate a function call using LLM agent's built-in tool calling capability.+ """+ try:+ # client = OpenAI()+ model_config = ModelRequestConfig(+ model=self.config["eval_model_id"],+ )+ model_client = ModelClientConfig(+ client_provider="OpenAI",+ api_base="https://api.openai.com/v1",+ api_key=self.config['llm_api_key'],+ verify_ssl=False+ )+ client = OpenAIModelClient(+ model_config=model_config,+ model_client_config=model_client+ )+ if "type" not in tool.keys():+ tool["type"] = "function"++ if isinstance(tool.get("description"), str):+ try:+ desc_json = json.loads(tool["description"])+ if "function" in desc_json:+ func = desc_json["function"]+ tool = {+ "name": func.get("name", tool["name"]),+ "type": tool.get("type", "tool"),+ "description": func.get("description", ""),+ "parameters": func.get("parameters", {})+ }+ except json.JSONDecodeError:+ pass # description not JSON, keep same+++ api_response = anyio.run(+ lambda: client.invoke(+ messages=[{"role": "user", "content": instruction}],+ tools=[{"type": "function", "function": tool}],+ )+ )++ fn_args = api_response.tool_calls[0].arguments+ function_name = api_response.tool_calls[0].name+ function_call = {"name": function_name, "arguments": fn_args}++ # try to load str arguments to dict+ if isinstance(function_call, str):+ try:+ function_call = json.loads(function_call)+ except json.JSONDecodeError:+ pass+ # Return the first generated call, or handle multiple calls as needed+ if function_call and len(function_call) > 0:+ return function_call+ else:+ # Fallback if no calls generated+ return {+ "name": function_name,+ "arguments": {}+ }++ except Exception as e:+ logger.error(f"Error generating function call: {str(e)}")+ # Fallback: return basic function call structure+ return {+ "name": function_name,+ "arguments": {}+ }++ def _evaluate_function_call_accuracy(+ self,+ generated_fn_call: Dict[str, Any],+ expected_fn_call: Dict[str, Any]+ ) -> float:+ """+ Evaluate the accuracy of the generated function call compared to the expected one.+ Returns a score between 0 and 1.+ """+ try:+ score = 0.0+ max_score = 0.0++ # Check function name (30% weight)+ max_score += 0.3+ if generated_fn_call.get('name') == expected_fn_call.get('name'):+ score += 0.3++ # Check parameters (70% weight)+ gen_params = generated_fn_call.get('arguments', {})+ exp_params = expected_fn_call.get('arguments', {})++ # standardize both params to dict+ if isinstance(gen_params, str):+ try:+ gen_params = json.loads(gen_params)+ except json.JSONDecodeError:+ pass+ if isinstance(exp_params, str):+ try:+ exp_params = json.loads(exp_params)+ except json.JSONDecodeError:+ pass++ if not exp_params and not gen_params:+ # Both empty parameters+ score += 0.7+ max_score += 0.7+ elif exp_params:+ param_score = 0.0+ for key, expected_value in exp_params.items():+ max_score += 0.7 / len(exp_params)+ if key in gen_params:+ if self._compare_parameter_values(gen_params[key], expected_value):+ param_score += 0.7 / len(exp_params)++ score += param_score+ else:+ max_score += 0.7++ return score / max_score if max_score > 0 else 0.0++ except Exception as e:+ logger.error(f"Error evaluating function call accuracy: {str(e)}")+ return 0.0++ @staticmethod+ def _compare_parameter_values(actual, expected):+ """+ Compare parameter values with type tolerance.+ """+ # Direct equality+ if actual == expected:+ return True++ # Type conversion tolerance+ try:+ # Try numeric comparison+ if isinstance(actual, (int, float)) and isinstance(expected, (int, float)):+ return abs(actual - expected) < 1e-6++ # Try string comparison+ if str(actual).strip().lower() == str(expected).strip().lower():+ return True++ except (TypeError, ValueError):+ return False++ return False++ def _evaluate_output_effectiveness(+ self,+ instruction: str,+ execution_result: Any,+ execution_error: Any,+ expected_answer: str+ ) -> float:+ """+ Evaluate how effectively the function call output solves the user's problem using LLM.+ Returns a score between 0 and 1.+ """+ if execution_error:+ return 0.0++ prompt = f"""+Evaluate whether the function execution result effectively solves the user's problem.++User Instruction: {instruction}++Function Execution Result: {json.dumps(execution_result, indent=2)}++Expected Answer/Goal: {expected_answer}++Please evaluate on a scale of 0-100 how well the function execution result addresses the user's instruction and matches the expected answer. Consider:+1. Does the result provide the information requested in the instruction?+2. Is the result accurate and complete?+3. Does it align with the expected answer?++Respond with only a number between 0 and 100. Do not include explainations.+"""++ try:+ # Use the evaluation LLM to generate a score+ response = rits_response(+ model_id=self.config["eval_model_id"],+ prompt=prompt,+ )+ score = float(response.strip())+ return min(max(score, 0.0), 100.0) / 100.0+ except Exception as e:+ logger.error(f"Error evaluating output effectiveness: {str(e)}")+ return self._simple_output_comparison(execution_result, expected_answer)++ @staticmethod+ def _simple_output_comparison(+ execution_result: Any,+ expected_answer: str+ ) -> float:+ """+ Simple fallback comparison when LLM evaluation is not available.+ """+ try:+ if execution_result is None:+ return 0.0++ result_str = json.dumps(execution_result) if not isinstance(execution_result, str) else execution_result++ # Simple string similarity+ if expected_answer.lower().strip() in result_str.lower().strip():+ return 1.0+ elif result_str.lower().strip() in expected_answer.lower().strip():+ return 0.8+ else:+ return 0.3 # Partial credit for having some result++ except Exception as e:+ logger.error(f"Error in simple output comparison: {str(e)}")+ return 0.0\ No newline at end of filediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_pipline.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_pipline.pynew file mode 100644index 0000000000..5b540d7880--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_pipline.py@@ -0,0 +1,72 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import json+import os+from pathlib import Path+from typing import Dict++from dotenv import load_dotenv++from openjiuwen.agent_evolving.optimizer.tool.utils.beam_search import BeamSearch+from openjiuwen.agent_evolving.optimizer.tool.utils.customized_api import SimpleAPIWrapperFromCallable+from openjiuwen.agent_evolving.optimizer.tool.utils.customized_eval import SimpleEval+from openjiuwen.agent_evolving.optimizer.tool.utils.description_example_method import ToolDescriptionMethod+from openjiuwen.agent_evolving.optimizer.tool.utils.toolcall_example_method import APICallToExampleMethod+from openjiuwen.core.common.logging import logger+++def customized_pipeline(stage, tool, config, tool_callable=None):+ """Run pipeline++ Args:+ stage (str): Which stage to run. Expected options: ['example', 'description']+ config (dict): config parameters for running+ tool (dict): case details with ground truth - main input data+ """++ if "fn_call_path" in config:+ raise NotImplementedError("config based api wrapper is not implemented yet.")+ elif tool_callable is not None:+ call_api_fn = SimpleAPIWrapperFromCallable(tool_callable, tool['name'], config)+ else:+ raise ValueError("Either config or tool_callable must be provided.")+ eval_fn = SimpleEval(api_wrapper=call_api_fn, config=config)+ api_keys = None # api keys are templates offered to llm for params generation+ non_opt_params = []++ if stage == "example":+ method = APICallToExampleMethod(config, call_api_fn, eval_fn, api_keys=api_keys, non_opt_params=non_opt_params)+ elif stage == "description":+ method = ToolDescriptionMethod(config, eval_fn)+ else:+ raise ValueError(f"wrong stage: {stage}")++ logger.info("=== Starting SingleRoundSearch ===")+ single_search = BeamSearch(+ method=method,+ beam_width=config["beam_width"],+ expand_num=config["expand_num"],+ max_depth=config["max_depth"],+ num_workers=config["num_workers"],+ verbose=config["verbose"],+ early_stop=True,+ check_valid=True,+ max_score=3.0,+ top_k=config["top_k"],+ )+ result = single_search.search(tool)+++ # save results+ save_filename = f"{tool['name']}.json"+ save_path = str(Path(config["save_dir"]) / save_filename)+ os.makedirs(config["save_dir"], exist_ok=True)++ # merge to old results if any+ if Path(save_path).exists():+ with open(save_path, "r", encoding="utf-8") as f:+ result = json.load(f) + result+ with open(save_path, "w", encoding="utf-8") as f:+ json.dump(result, f, indent=2, ensure_ascii=False)+ return result\ No newline at end of filediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_reviewer.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_reviewer.pynew file mode 100644index 0000000000..c11da8ac1b--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/customized_reviewer.py@@ -0,0 +1,253 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import re+import json+from typing import Callable, Optional, List++from openjiuwen.agent_evolving.optimizer.tool.utils.rits import get_rits_response+++class ToolDescriptionReviewer:++ def __init__(self, eval_model_id: str, llm_api_key: str):+ self.eval_model_id = eval_model_id+ self.llm_api_key = llm_api_key+ self.processors: List[Callable] = []++ def format(self, json_schema: dict, description: str, example: Optional[str] = None) -> dict:++ prompt_original = f"""You will receive an input that contains a textual description.+The input may be free-form text, bullet points, or JSON in any structure.+Your task is to convert that content into MY target JSON format, while keeping the information and meaning exactly the same.++Do not add new information, remove information, or reinterpret ambiguous content.+Only reorganize and reformat the content according to the schema provided below.+Target JSON format: \n{json.dumps(json_schema, ensure_ascii=False, indent=2)}.++Output only valid JSON, following the exact structure of the target schema. Do not include explanations, comments, or additional text outside the JSON.++Now convert my following input to desired JSON format:+Input to be converted: \n{description}+"""+ prompt_1 = f"""You will receive an input that contains a textual description.+Your task is to convert it into the target JSON format below.++Rules:+- Preserve all information and meaning exactly.+- Do not add, remove, or reinterpret any information.+- You may rewrite and compress wording to eliminate redundancy.+- Do not restate information already implied by the schema (e.g. type=number/string, required fields).+- Enum/value lists must appear only once at the most relevant location; do not repeat them at field level.+- Use short, content-focused phrases for field descriptions.++Target JSON format:+{json.dumps(json_schema, ensure_ascii=False, indent=2)}++Output only valid JSON following the exact structure.+No explanations or extra text.++Input:+{description}+"""++ prompt_2 = f"""You will receive an input that contains a textual description.+Your task is to convert it into the target JSON format below.++Rules:+- Preserve all information and meaning exactly.+- Do not add, remove, or reinterpret any information.+- You may rewrite and compress wording to eliminate redundancy.+- Do not restate information already implied by the schema (e.g. field types, required fields).+- Do not describe required fields in natural language (e.g. phrases like “each item includes/contains …”).+- Enum/value lists must appear only once at the most relevant location.++Target JSON format:+{json.dumps(json_schema, ensure_ascii=False, indent=2)}++Output only valid JSON following the exact structure.+No explanations or extra text.++Input:+{description}+"""+ prompt = f"""将下面输入转换为目标 JSON 结构。必须满足:++- 输出只允许是有效 JSON,且严格匹配目标结构的键路径与层级(不多不少)。+- 语义必须完全保留:不新增、不删减、不改写含义;可改写措辞以压缩。+- description 去冗余是强制要求:+ - 任何 “每项包含/含有/由…组成/字段包括…” 这类字段清单式描述都必须删除或改写为非清单表述。+ - 不得在 description 中重复 schema 已表达的信息:字段名、字段类型、required 已涵盖的“必填”。+ - 仅保留 schema 无法表达或未显式表达的约束到 description,例如:+ - 覆盖区间/不得留隙/分段规则+ - 默认值语义(如 inflationRate 默认 0)+ - 业务规则(按年累加、考虑通胀等)+ - 枚举值列表只出现一次,放在最贴近字段的位置(通常是该字段的 description);不得在父级/子级重复。+ 如输入中 description 同时包含“字段清单 + 业务约束”,只保留业务约束部分。+ - 若某个 description 完全是冗余字段清单,允许变为简短描述,但不得留空(除非输入本身为空)。+- 请直接输出转换后的 JSON,不要附加解释。++这是目标的json 模板:+{json.dumps(json_schema, ensure_ascii=False, indent=2)}++下面是你需要修改的json,生成后请自检:所有 description 中不得出现“含/包含/包括/each item/contains/fields”等字段列举句式;否则重写直到满足。++Input:+{description}+"""++ def verify_output(output):+ return json.loads(output)++ response = get_rits_response(+ 'gpt-5.2',+ prompt,+ self.llm_api_key,+ verify_output=verify_output,+ max_attempts=5,+ include_stop_sequence=False,+ verbose=False+ )+ return response++ @staticmethod+ def _is_mostly_english(text: str) -> bool:++ text_no_space = re.sub(r'\s+', '', text)++ if len(text_no_space) == 0:+ return False++ english_chars = len(re.findall(r'[a-zA-Z]', text_no_space))+++ english_ratio = english_chars / len(text_no_space)+++ return english_ratio > 0.7++ def clean_and_deduplicate(self, data: dict) -> dict:++ prompt = f"""+Given a tool description JSON, go throught the content sentence+by sentence and perform the following cleaning tasks:++1. Remove usage example in the main tool description+2. Remove redundant "必填"/"可选"/"required"/"optional" markers in parameter+descriptions if they appear in 'required' session+3. Remove verbose, redundant descriptions including:+ - Disclaimers like "若输入无效会返回空结果",+ "若输入代码无效或未收录会返回未找到或空结果"+ - Obvious statements like "结果可能有延迟"+ - Suggestions like "调用者应自行进行进一步分析或合成总结",+ "调用者应在本接口返回后自行进行进一步分析"+ - Irrelevant exclusions that are clearly not in the tool's+ functional scope. e.g. the tool name is maps_directions,+ since it's a direction tool, statements like "不提供预订或支付功能"+ or "不支持语音导航" is clearly irrelevant and need to be removed.+ - Any other unnecessary verbose content+4. Clean up descriptions: for parameter descriptions incorrectly+mixed into the tool descriptions, relocate them to ensure that+each parameter description is correctly placed in its corresponding+parameter description instead of the main tool description session.++**Pay attention to KEEP statements on ACTUAL functionality boundaries**+Keep only unique, essential, and actionable information. Output only the+cleaned JSON without explanations. DO NOT change the overall structure of JSON.++Input JSON:+{json.dumps(data, ensure_ascii=False, indent=2)}+"""++ def verify_output(output):+ return json.loads(output)++ response = get_rits_response(+ self.eval_model_id,+ prompt,+ self.llm_api_key,+ verify_output=verify_output,+ max_attempts=5,+ include_stop_sequence=False,+ verbose=False+ )+ return response++ def cross_check(self, data: dict, ori_tool: str):+ prompt = f"""比较原始描述和修改后的描述,按照以下要求整理修改后的描述:+1. 补充修改后的描述丢失的信息:例如,参数可选值列表丢失,需把原始描述中的列表补充道修改后的对应位置。+2. 确保参数描述信息和工具描述信息位置正确:参考原始描述,确保工具描述中只包含对工具能力、边界等信息,确保参数具体细节要求应在对应的参数描述中,例如:“仅支持经纬度作为输入”应当放在对应的参数描述中,不应当放在主工具能力边界中。++确保不要改变json格式,仅修改文字内容。不要删除内容,仅做整理和补充丢失信息。++原始描述:+{ori_tool}++修改后描述(待优化):+{json.dumps(data, ensure_ascii=False, indent=2)}+"""++ def verify_output(output):+ return json.loads(output)++ response = get_rits_response(+ self.eval_model_id,+ prompt,+ self.llm_api_key,+ verify_output=verify_output,+ max_attempts=5,+ include_stop_sequence=False,+ verbose=False+ )+ return response++ def translate_to_chinese(self, data: dict) -> dict:++ json_str = json.dumps(data, ensure_ascii=False)++ if not self._is_mostly_english(json_str):++ return data++ prompt = f"""Translate all English text in the following JSON to Chinese.+Keep JSON structure unchanged. Keep technical terms and code examples as-is.+Output only the translated JSON without explanations.++Input JSON:+{json.dumps(data, ensure_ascii=False, indent=2)}+"""++ def verify_output(output):+ return json.loads(output)++ response = get_rits_response(+ self.eval_model_id,+ prompt,+ self.llm_api_key,+ verify_output=verify_output,+ max_attempts=5,+ include_stop_sequence=False,+ verbose=False+ )+ return response++ def process(self, data: dict, ori_tool: str, steps: List[str]) -> dict:++ result = data++ for step in steps:+ if step == "cross_check":+ result = self.cross_check(data=data, ori_tool=ori_tool)+ elif step == "clean":+ result = self.clean_and_deduplicate(result)+ elif step == "translate":+ result = self.translate_to_chinese(result)+ else:+ raise ValueError(f"Unknown processing step: {step}")+ return result++++++diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/default_configs.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/default_configs.pynew file mode 100644index 0000000000..b84fdaba35--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/default_configs.py@@ -0,0 +1,31 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++default_config_eg = {+ "gen_model_id": "gpt-5-mini",+ "eval_model_id": "gpt-5-mini",+ "verbose": 1,+ "num_init_loop": 1,+ "num_refine_steps": 1,+ "num_feedback_steps": 2,+ "score_eval_weight": 0.0,+ "beam_width": 2,+ "expand_num": 3,+ "max_depth": 2,+ "num_workers": 2,+ "top_k": 5+}+default_config_desc = {+ "gen_model_id": "gpt-5-mini",+ "eval_model_id": "gpt-5-mini",+ "verbose": 1,+ "num_init_loop": 1,+ "num_feedback_steps": 2,+ "score_eval_weight": 0.0,+ "num_examples_for_desc": 4,+ "beam_width": 2,+ "expand_num": 2,+ "max_depth": 2,+ "num_workers": 2,+ "top_k": 3+}\ No newline at end of filediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/description_example_method.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/description_example_method.pynew file mode 100644index 0000000000..0c098cefe6--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/description_example_method.py@@ -0,0 +1,563 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import os+import json+from typing import List, Dict, Tuple, Any, Optional, Union++from openjiuwen.agent_evolving.optimizer.tool.utils.base_method import BaseMethod+from openjiuwen.agent_evolving.optimizer.tool.utils.rits import get_rits_response+from openjiuwen.agent_evolving.optimizer.tool.utils.format import format_prompt_llama, parse_json+from openjiuwen.core.common.logging import logger+++class ToolDescriptionMethod(BaseMethod):+ def __init__(+ self,+ config: Dict[str, Union[str, int, bool]],+ eval_fn,+ ):+ super().__init__(config)+ self.eval_fn = eval_fn++ def step(+ self,+ tool: Dict[str, Any],+ examples: Optional[List[Tuple[str, Any, str, str]]] = None,+ prev_outputs: Optional[List[Dict]] = None,+ it: int = 0,+ **kwargs,+ ):+ if it == 0:+ description = self.get_original_description(tool)+ # TOOL IS openai tool format, may change to improve it directly, not just desc part+ output = {'description': description, 'iteration': 0}+ logger.info(f"Current description - original description: {output}")+ else:+ # load negative ex+ function_name = tool['name']+ neg_examples = self.get_negative_examples(function_name)+ examples_obtained = {"neg_examples": neg_examples, "examples": examples}+ # improve with neg ex+ output = self.generate(tool, examples_obtained, prev_outputs, it)+ logger.info(f"Current description - generated description: {output}")++ # eval with pos ex+ results = self.eval_loop(tool, output['description'], examples, runs=1)+ output = output | results+ return output, output.get("description"), output.get("score_avg")++ def generate(+ self,+ tool: Dict[str, Any],+ examples: Optional[List[Tuple[str, Any, str, str]]] = None,+ prev_outputs: Optional[List[Dict]] = None,+ it: int = 0,+ ):+ logger.info("Generating desc")+ output = self.generate_description_from_documentation(+ tool, examples, prev_outputs,+ )+ logger.info("Generating desc finished")+ output['iteration'] = it+ return output++ def eval_loop(+ self,+ tool: Dict[str, Any],+ description: str,+ examples: List[Any],+ runs: int = 1,+ ):+ return self.eval_fn(tool, description, examples, runs)++ def critique_descriptions(+ self,+ tool: Dict[str, Any],+ examples: Optional[List[Tuple[str, Any, str, str]]] = None,+ prev_outputs: Optional[List[Dict[str, List[Any]]]] = None,+ ):+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ user_prompt = f'''+ You are given a function {function_name} with the following documentation, which includes the functionality description, required parameters, code snippets for API calls, etc.++ Documentation:+ {doc_str}++ '''++ if len(examples) > 0 and prev_outputs is not None and len(prev_outputs) > 0:+ user_prompt += (+ "\nPreviously, the given tool was used in solving instructions "+ "by a tool assistant with the following function descriptions:\n"+ )+ for output in prev_outputs[::-1][:self.config['num_feedback_steps']][::-1]:+ if output['iteration'] == 0:+ user_prompt += "Original description: "+ else:+ user_prompt += f"Iteration #{output['iteration']}, description="+ user_prompt += f"{output['description']}\n"+ user_prompt += (+ "Here are the instructions the assistant "+ "tried to solve with this tool description, with "+ "their corresponding answers and errors produced by the assistant: "+ )+ for i, ((inst, fn_call, fn_output, ans), result) in enumerate(zip(examples, output['results']), 1):+ user_prompt += f"{i}. instruction=\"{inst}\", answer=\"{result['answer']}\", errors: "+ if len(result['errors']) == 0:+ user_prompt += 'None'++ for j, error in enumerate(result['errors']):+ user_prompt += (f"({j}) function_call={error['function_name']},"+ f" arguments={json.dumps(error['arguments'])}, "+ f"error={error['error_msg'][:512]} "+ )+ user_prompt += f". The ground truth function_call and arguments should be: {json.dumps(fn_call)}.\n"++ user_prompt += f"Overall the performance of this description is:"+ user_prompt += f" score={output['score_avg']}%, stdev={output['score_std']}.\n"++ user_prompt += '''++ Now your task is to critique the descriptions based on these results. A good description maximizes the score, minimizing the stdev, and helps the assistant correctly use the function without errors. In your analysis:+ (1) Identify how the descriptions affect the function call errors of the assistant. Be specific on which errors the assistant tends to make, and find patterns in the description that causes the assistant to make such errors.+ (2) Identify and contrast the patterns of descriptions that have achieved good scores (> 60%) with those that have not. Analyze how the description can be improved.++ Your analysis should be less than 500 characters long, do not violate.+ '''++ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ return {'analysis': output.strip()}+ return get_rits_response(+ self.config['eval_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ include_stop_sequence=False,+ verbose=self.config['verbose']+ )++ def critique_negative_examples(+ self,+ tool: Dict[str, Any],+ examples: Optional[List[Tuple[str, Any, str, str]]] = None+ ):+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ user_prompt = f'''+ You are given a function {function_name} with the following documentation, which includes the functionality description, required parameters, code snippets for API calls, etc.++ Documentation:+ {doc_str}+ '''++ if len(examples) > 0:+ user_prompt += (+ "\nPreviously, the given tool was used in solving instructions "+ "by a tool assistant with the following function descriptions:\n"+ )+ user_prompt += (+ "Here are the instructions the assistant "+ "tried to solve with this tool description, with "+ "their corresponding answers and errors produced by the assistant: "+ )+ for i, (inst, fn_call, fn_output, ans) in enumerate(examples, 1):+ if len(fn_output) > 256:+ fn_output = fn_output[:256]+ user_prompt += f"Example response of the function: {fn_output}, etc"+ else:+ user_prompt += f"Response of the function: {fn_output}"++ user_prompt += f"{i}. instruction=\"{inst}\""+ user_prompt += f". The system generated function call as below "+ user_prompt += f" base on the original documentation: {json.dumps(fn_call)}.\n"+ user_prompt += f"The runction output obtained is {fn_output}: fn_output. "+ user_prompt += f"And thus result to answer=\"{ans}\""++ user_prompt += '''++ Now your task is to critique the descriptions based on these results. In your analysis:+ (1) Identify how the descriptions affect the function call errors of the assistant. Be specific on which errors the assistant tends to make, and find patterns in the description that causes the assistant to make such errors.+ (2) Identify any constrains or limitations the tool have. Analyze how the description can be improved so that it reflect the ability constrains.++ Your analysis should be less than 500 characters long, do not violate.+ '''++ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ return {'analysis': output.strip()}+ return get_rits_response(+ self.config['eval_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ include_stop_sequence=False,+ verbose=self.config['verbose']+ )++ def critique_descriptions(+ self,+ tool: Dict[str, Any],+ examples: Optional[List[Tuple[str, Any, str, str]]] = None,+ prev_outputs: Optional[List[Dict[str, List[Any]]]] = None,+ ):+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ user_prompt = f'''+ You are given a function {function_name} with the following documentation, which includes the functionality description, required parameters, code snippets for API calls, etc.++ Documentation:+ {doc_str}++ '''++ if len(examples) > 0 and prev_outputs is not None and len(prev_outputs) > 0:+ # Separate positive and negative examples based on performance threshold+ positive_examples = []+ negative_examples = []+ performance_threshold = 60.0 # Configurable threshold++ for output in prev_outputs[::-1][:self.config['num_feedback_steps']][::-1]:+ if output['score_avg'] >= performance_threshold:+ positive_examples.append(output)+ else:+ negative_examples.append(output)++ # Add positive examples section+ if positive_examples:+ user_prompt += "\n=== POSITIVE EXAMPLES (Good Performance) ===\n"+ user_prompt += "The following tool descriptions achieved good performance:\n\n"++ for output in positive_examples:+ if output['iteration'] == 0:+ user_prompt += "Original description: "+ else:+ user_prompt += f"Iteration #{output['iteration']}, description="+ user_prompt += f"{output['description']}\n"++ user_prompt += "Instructions solved successfully: "+ for i, ((inst, fn_call, fn_output, ans), result) in enumerate(zip(examples, output['results']), 1):+ user_prompt += f"{i}. instruction=\"{inst}\", answer=\"{result['answer']}\", errors: "+ if len(result['errors']) == 0:+ user_prompt += 'None'+ else:+ for j, error in enumerate(result['errors']):+ user_prompt += (f"({j}) function_call={error['function_name']},"+ f" arguments={json.dumps(error['arguments'])}, "+ f"error={error['error_msg'][:512]} "+ )+ user_prompt += f". Ground truth: {json.dumps(fn_call)}.\n"++ user_prompt += f"Performance: score={output['score_avg']}%, stdev={output['score_std']}.\n\n"++ # Add negative examples section+ if negative_examples:+ user_prompt += "\n=== NEGATIVE EXAMPLES (Poor Performance) ===\n"+ user_prompt += "The following tool descriptions had poor performance:\n\n"++ for output in negative_examples:+ if output['iteration'] == 0:+ user_prompt += "Original description: "+ else:+ user_prompt += f"Iteration #{output['iteration']}, description="+ user_prompt += f"{output['description']}\n"++ user_prompt += "Instructions with problems: "+ for i, ((inst, fn_call, fn_output, ans), result) in enumerate(zip(examples, output['results']), 1):+ user_prompt += f"{i}. instruction=\"{inst}\", answer=\"{result['answer']}\", errors: "+ if len(result['errors']) == 0:+ user_prompt += 'None'+ else:+ for j, error in enumerate(result['errors']):+ user_prompt += (f"({j}) function_call={error['function_name']},"+ f" arguments={json.dumps(error['arguments'])}, "+ f"error={error['error_msg'][:512]} "+ )+ user_prompt += f". Ground truth: {json.dumps(fn_call)}.\n"++ user_prompt += f"Performance: score={output['score_avg']}%, stdev={output['score_std']}.\n\n"++ user_prompt += f'''+ Now your task is to critique the descriptions by comparing positive and negative examples. A good description maximizes the score, minimizes the stdev, and helps the assistant correctly use the function without errors. In your analysis:++ (1) POSITIVE PATTERN ANALYSIS: Identify what makes the high-performing descriptions (>{performance_threshold}%) successful. What specific phrases, structures, or information do they contain that help the assistant use the function correctly?++ (2) NEGATIVE PATTERN ANALYSIS: Identify what causes low-performing descriptions to fail. What specific errors does the assistant make, and what aspects of these descriptions lead to confusion or incorrect function calls?++ (3) CONTRAST AND RECOMMENDATIONS: Compare positive vs negative patterns. What are the key differences? What specific improvements would transform a negative example into a positive one?++ Your analysis should be less than 500 characters long, do not violate.+ '''++ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ return {'analysis': output.strip()}+ return get_rits_response(+ self.config['eval_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ include_stop_sequence=False,+ # stop_sequences=['<|eot_id|>', '<|end_of_text|>', '<|eom_id|>'],+ verbose=self.config['verbose']+ )++ def critique_all_descriptions(+ self,+ tool: Dict[str, Any],+ examples: Optional[List[Tuple[str, Any, str, str]]] = None,+ prev_outputs: Optional[List[Dict[str, List[Any]]]] = None,+ ):+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ user_prompt = f'''+ You are given a function {function_name} with the following documentation, which includes the functionality description, required parameters, code snippets for API calls, etc.++ Documentation:+ {doc_str}+ '''++ if len(examples) > 0 and prev_outputs is not None and len(prev_outputs) > 0:+ # Separate positive and negative examples based on performance threshold+ positive_examples = examples["examples"]+ negative_examples = examples["neg_examples"]++ # Add positive examples section+ if positive_examples:+ user_prompt += "\n=== POSITIVE EXAMPLES (Good Performance) ===\n"+ user_prompt += "The following examples achieved good performance:\n\n"++ for i, (inst, fn_call, fn_output, ans) in enumerate(positive_examples, 1):+ user_prompt += f"{i}. instruction=\"{inst}\", Ground truth: {json.dumps(fn_call)}.\n"+ if len(fn_output) > 256:+ fn_output = fn_output[:256]+ user_prompt += f"Example response of the function: {fn_output}, etc"+ else:+ user_prompt += f"Response of the function: {fn_output}"++ # Add negative examples section+ if negative_examples:+ user_prompt += "\n=== NEGATIVE EXAMPLES (Poor Performance) ===\n"+ user_prompt += "The following tool descriptions had poor performance:\n\n"++ for i, (inst, fn_call, fn_output, ans) in enumerate(negative_examples, 1):+ user_prompt += f"{i}. instruction=\"{inst}\", The "+ user_prompt += f"function call system generated: {json.dumps(fn_call)}."+ if len(fn_output) > 256:+ fn_output = fn_output[:256]+ user_prompt += f"Example response of the function: {fn_output}"+ else:+ user_prompt += f"Response of the function: {fn_output}"++ user_prompt += f'''+ Now your task is to critique the descriptions by comparing positive and negative examples. In your analysis:++ (1) POSITIVE PATTERN ANALYSIS: Identify patterns in successful cases. What specific phrases, structures, or information do they contain that help the assistant use the function correctly?++ (2) NEGATIVE PATTERN ANALYSIS: Identify what causes un-successful cases. What specific errors does the assistant make, and what aspects of these descriptions lead to confusion or incorrect function calls?++ (3) CONTRAST AND RECOMMENDATIONS: Compare positive vs negative patterns. What are the key differences? Analyze carefully to uncover any unspecified constrains or limitations?++ Your analysis should be less than 500 characters long, do not violate.+ '''++ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ return {'analysis': output.strip()}+ return get_rits_response(+ self.config['eval_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ include_stop_sequence=False,+ # stop_sequences=['<|eot_id|>', '<|end_of_text|>', '<|eom_id|>'],+ verbose=self.config['verbose']+ )++ def generate_description_from_documentation(+ self,+ tool: Dict[str, Any],+ examples: Optional[List[Tuple[str, Any, str]]] = None,+ prev_outputs: Optional[List[Dict[str, List[Any]]]] = None,+ ):+ # td - MOD PROMPT TO ANALYZE NEGATIVE CASE+ pos = examples["examples"]+ neg = examples["neg_examples"]+ tmp = self.critique_descriptions(tool, pos, prev_outputs)+ tmp_contrast = self.critique_all_descriptions(tool, examples, prev_outputs)++ analysis = tmp['analysis']+ analysis_contrast = tmp_contrast['analysis']+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ user_prompt = f'''+ You are given an API tool with the following documentation, which includes the functionality description, required parameters, code snippets for API calls, etc.++ Documentation:+ {doc_str}++ '''+ if len(examples) > 0 and prev_outputs is not None and len(prev_outputs) > 0:+ user_prompt += (+ "\nPreviously, the given tool was used in solving instructions "+ "by a tool assistant with the following function descriptions:\n"+ )+ for output in prev_outputs[::-1][:self.config['num_feedback_steps']][::-1]:+ if output['iteration'] == 0:+ user_prompt += "Original description: "+ else:+ user_prompt += f"Iteration #{output['iteration']}, description="+ user_prompt += f"{output['description']}\n"+ user_prompt += "Performance of this description is: "+ user_prompt += f" score={output['score_avg']}%, stdev={output['score_std']}.\n"+ user_prompt += (f'\nFurthermore, an analysis was performed on the '+ f'descriptions for the previous iterations: "{analysis}". An '+ f'analysis was performed on the negative cases for the cons'+ f'trains and ability limits of the function: "{analysis_contrast}"')++ user_prompt += f'''+Your task is to further enhance the description for the function {function_name} to MODIFY THE TOOL DESCRIPTION and PARAMETER DESCRIPTION part, with the objective of maximizing the score, minimizing the stdev, and help the assistant correctly use the function without errors.++Incorporate the analysis and generate the enhanced descriptions. The enhanced description should focus on what this tool can or cannot do, and add the capability boundaries of the tool, e.g., "returns summaries, not full text", "covers domestic locations only", "supports English language only", etc.++The enhanced description should not be longer than 1000 characters, do not violate this.+'''++ # use openai tool call schema+ desired_desc_schema = json.dumps(+ {'type': '',+ 'name': '',+ 'description': '',+ 'parameters': {'type': '',+ 'properties': {+ '<PARAMETER_NAME_0>': {'type': '', 'description': ''},+ '<PARAMETER_NAME_1>': {'type': '', 'description': ''}+ },+ 'required': ['<PARAMETER_NAME>']+ }+ })+ user_prompt += f'''+**IMPORTANT**: You must preserve the exact JSON schema structure provided below. Only modify the text content - do not change schema structure.++**IMPORTANT**: Since no extra fields can be added, include capability boundaries within the main tool description text. Be explicit about what the function CANNOT do to prevent misuse.++**Required Output Format:**+Return JSON following this exact schema structure (modify only description texts):+{{+ "description": {desired_desc_schema}+}}++**Critical**: Maintain all field names, types, and schema structure. Only enhance the textual detail contents.+'''++ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ output_json = parse_json(output, "description")++ if "description" not in output_json:+ raise AssertionError('No "description" found in output')++ output_json["description"] = str(output_json["description"]).strip()+ return output_json++ return get_rits_response(+ self.config['gen_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ include_stop_sequence=False,+ stop_sequences=['<|eot_id|>', '<|end_of_text|>', '<|eom_id|>'],+ verbose=self.config['verbose']+ )++ def load_examples(self, examples_dir, function_name, max_num_examples=3):+ examples_path = os.path.join(examples_dir, f'{function_name}.json')+ logger.info(f"Trying to load examples from {examples_path}")+ with open(examples_path, 'r', encoding='utf-8') as f:+ all_outputs = json.load(f)+ if all_outputs is None:+ raise RuntimeError++ selected_examples = []+ for node_history in all_outputs:+ for step_output in node_history[::-1]:+ fn_call = step_output['fn_call']+ fn_output = step_output['tool_results']+ inst = step_output['instructions'][-1]+ ans = step_output['answers'][-1]+ if 'scores' in step_output.keys():+ score = step_output['scores'][-1]+ if score >= 3. and isinstance(inst, str) and isinstance(ans, str): # td: SCORE THRESHOLD+ selected_examples.append((inst.strip(), fn_call, fn_output, ans.strip()))+ break+ else:+ pass++ return selected_examples[:max_num_examples]++ def get_negative_examples(self, function_name):+ examples_path = self.config["neg_ex_input_path"]+ max_num_examples = self.config['num_examples_for_desc']++ if os.path.exists(examples_path):+ # load from privided path+ with open(examples_path, 'r', encoding='utf-8') as f:+ all_outputs = json.load(f)+ else:+ # if not found, fallback to load from self play examples+ logger.warning(f"NO NEGATIVE FILE FOUND at {examples_path}, FALLBACK TO LOAD GENERATED EXAMPLES")+ examples_path = os.path.join(self.config['examples_dir'], f'{function_name}.json')+ with open(examples_path, 'r', encoding='utf-8') as f:+ all_outputs = json.load(f)+ if all_outputs is None:+ raise RuntimeError++ selected_examples = []+ for node_history in all_outputs:+ for step_output in node_history[::-1]:+ # check all variables exist+ if not all(k in step_output for k in ('instructions', 'fn_call', 'tool_results', 'answers')):+ continue+ fn_call = step_output['fn_call']+ fn_output = step_output['tool_results']+ inst = step_output['instructions'][-1]+ ans = step_output['answers'][-1]+ if "scores" in step_output:+ score = step_output['scores'][-1]+ if 1. <= score < 3. and isinstance(inst, str) and isinstance(ans, str):+ # SCORE THRESHOLD+ selected_examples.append((inst.strip(), fn_call, fn_output, ans.strip()))+ else:+ selected_examples.append((inst.strip(), fn_call, fn_output, ans.strip()))+ return selected_examples[:max_num_examples]++ def get_original_description(self, tool: Dict[str, Any]):+ description = tool['description']+ indicator = 'The description of this function is: "'+ found = description.find(indicator)+ description = description[found + len(indicator): -1] if found != -1 else description+ return description++ def get_examples(self, tool: Dict[str, Any]):+ function_name = tool['name']+ examples = None+ if self.config['examples_dir'] is not None:+ examples = self.load_examples(+ self.config['examples_dir'],+ function_name,+ self.config['num_examples_for_desc'],+ )+ logger.info(f"{len(examples)} Examples loaded for tool: {function_name}: {examples}")+ return examplesdiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/format.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/format.pynew file mode 100644index 0000000000..2ab082d1ab--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/format.py@@ -0,0 +1,34 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import json+import ast+++def parse_json(output, header=None):+ try:+ json_idx = -1+ if header is not None:+ json_idx = output.find(f'{{"{header}":')+ if json_idx == -1:+ json_idx = output.find(f'{{\n"{header}":')+ if json_idx == -1:+ json_idx = output.find('{\n')+ if json_idx == -1:+ json_idx = output.find('{')+ json_end_idx = output.rfind('}')+ json_end_idx = json_end_idx + 1 if json_end_idx != -1 else -1+ output = output[json_idx:json_end_idx].strip()+ output_json = json.loads(output)+ except json.JSONDecodeError:+ output_json = ast.literal_eval(output)+ return output_json+++def format_prompt_llama(system_prompt: str, user_prompt: str):+ return system_prompt + user_prompt+++def print_bold(text):+ bold = "\033[1m"+ rest = "\033[0m"\ No newline at end of filediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/rits.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/rits.pynew file mode 100644index 0000000000..4d543fffd6--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/rits.py@@ -0,0 +1,60 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import asyncio+from tenacity import retry, stop_after_attempt, wait_random_exponential++from openjiuwen.core.foundation.llm import (+ ModelClientConfig,+ ModelRequestConfig+)+from openjiuwen.core.foundation.llm import OpenAIModelClient+++def get_rits_response(*args, **kwargs):+ try:+ return rits_response(*args, **kwargs)+ except Exception as e:+ return {'error': f"Cannot complete LLM call. Error: {e}"}+++@retry(wait=wait_random_exponential(min=1, max=5), stop=stop_after_attempt(2), reraise=True)+def rits_response(+ model_id: str,+ prompt: str,+ llm_api_key: str,+ verify_fn=None,+ verbose: bool = False,+ **kwargs+):+ model_config = ModelRequestConfig(+ model=model_id,+ temperature=1+ )+ model_client = ModelClientConfig(+ client_provider="OpenAI",+ api_base="https://api.openai.com/v1",+ api_key=llm_api_key,+ verify_ssl=False+ )+ client = OpenAIModelClient(+ model_config=model_config,+ model_client_config=model_client+ )++ response = asyncio.run(+ client.invoke(+ messages=[+ {+ "role": "developer",+ "content": prompt+ }+ ]+ )+ )++ output = response.content+ if verify_fn is not None:+ output = verify_fn(output)+ return output+diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/schema_extractor.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/schema_extractor.pynew file mode 100644index 0000000000..f4c0347d7e--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/schema_extractor.py@@ -0,0 +1,26 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import json+++def extract_schema(schema_dict):+ """Extract schema structure without type information"""+ if not isinstance(schema_dict, dict):+ try:+ schema_dict = json.loads(schema_dict)+ except Exception:+ return {}++ result = {}+ for key, value in schema_dict.items():+ if isinstance(value, dict):+ # Recursively process nested dictionaries+ result[key] = extract_schema(value)+ elif isinstance(value, list):+ # Keep lists as is (like required arrays)+ result[key] = value+ else:+ # Keep primitive values (strings, booleans, etc.)+ result[key] = ""+ return result\ No newline at end of filediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/toolcall_example_method.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/toolcall_example_method.pynew file mode 100644index 0000000000..2c57eac6cd--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/agent_evolving/optimizer/tool/utils/toolcall_example_method.py@@ -0,0 +1,578 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import copy+import json+import os+from typing import Any, Dict, List, Optional, Union++from openjiuwen.agent_evolving.optimizer.tool.utils.base_method import BaseMethod+from openjiuwen.agent_evolving.optimizer.tool.utils.format import format_prompt_llama, parse_json+from openjiuwen.agent_evolving.optimizer.tool.utils.rits import get_rits_response+from openjiuwen.core.common.logging import logger+++class APICallToExampleMethod(BaseMethod):+ def __init__(+ self,+ config: Dict[str, Union[str, int, bool]],+ api_call_fn=None,+ eval_fn=None,+ api_keys=None,+ non_opt_params=None,+ ):+ super().__init__(config)+ self.run_tool_with_api_call = api_call_fn+ self.eval_fn = eval_fn+ self.api_keys = api_keys+ self.non_opt_params = [] if non_opt_params is None else non_opt_params++ def step(+ self,+ tool: Dict[str, Any],+ prev_outputs: Optional[List[Dict]] = None,+ it: int = 0,+ **kwargs,+ ):+ logger.info("Inside method, trying to step")+ prev_outputs = copy.copy(prev_outputs) if prev_outputs is not None else []+ description = self.get_original_description(tool) # get original descriptions for toolbench+ logger.info(f"Original desc obtained: {description}")++ tool_for_opt = copy.deepcopy(tool)+ logger.info(f"Tool_for_opt: {tool_for_opt}")++ # 1. Rejection sampling:+ # for initial loop, generate candidate api call, run tool, and determine+ # if there are any errors+ for _ in range(self.config['num_init_loop']):+ fn_call = self.generate_api_call_from_description(tool_for_opt, num_gen=1, prev_output=prev_outputs)+ logger.info("API call generation completed")+ logger.info(f"API call params: {fn_call}")++ tool_res, status_code = self.run_tool_with_api_call(tool_for_opt, fn_call)+ outputs = {+ 'fn_call': fn_call,+ 'tool_results': tool_res,+ 'status_code': status_code,+ 'score': status_code,+ }+ logger.info(f"Run tool with api call completed, status code {status_code}")++ api_analysis = self.critique_api_call(tool_for_opt, fn_call, tool_res)+ logger.info(f"critique_api_call finished, results: {api_analysis}")+ if api_analysis['err_code'] == -1:+ outputs['status_code'] = -1+ outputs['score'] = -1+ outputs['api_reflection'] = api_analysis['analysis']+ prev_outputs.append(outputs)+ if self.verbose:+ logger.info(json.dumps(fn_call))+ logger.info(api_analysis['analysis'])+ continue+ break++ # to do Stop search if have error at first trial+ # if outputs['status_code'] == -1:+ # return outputs, "", -1++ # 2. Q/A generation and refinement:+ # For n_refine steps, generate question/answer from valid api call+ # Evaluate and update by batch self-reflection+ insts, scores, analyses, answers, refls = [], [], [], [], []+ inst_output = None+ for n_refine in range(self.config['num_refine_steps']):+ inst = self.generate_instruction_from_api_call(tool_for_opt, fn_call, tool_res, inst_output)+ ans = self.produce_answer_from_api_call(inst, json.dumps(tool_for_opt), tool_res)+ inst_eval = self.critique_instruction(tool_for_opt, inst, fn_call, tool_res, ans)++ insts.append(inst)+ answers.append(ans)+ scores.append(inst_eval['score'])+ analyses.append(inst_eval['analysis'])++ batch_refl = self.batch_reflection_with_scores(+ tool_for_opt,+ fn_call,+ insts[-self.config['num_feedback_steps']:],+ scores[-self.config['num_feedback_steps']:],+ analyses[-self.config['num_feedback_steps']:],+ ).strip()+ refls.append(batch_refl)++ inst_output = {+ 'instructions': insts[-self.config['num_feedback_steps']:],+ 'scores': scores[-self.config['num_feedback_steps']:],+ 'batch_reflection': batch_refl,+ }+ if inst_eval['score'] == 3:+ break++ # 3. Evaluate newly generated example with downstream LLM -- for+ # selecting difficult examples+ if self.config['score_eval_weight'] > 0.:+ logger.info("Eval step: Using eval fn")+ if isinstance(insts[-1], str) and isinstance(answers[-1], str):+ examples = [(insts[-1].strip(), fn_call, tool_res, answers[-1].strip())]+ eval_res = self.eval_fn(tool, description, examples, runs=1)+ eval_score = eval_res['score_avg'] / 100.+ else:+ eval_score = 1.+ else:+ logger.info("Eval step: hard coded eval_score as score_eval_weight=0 ")+ eval_score = 1.+ final_score = scores[-1] + self.config['score_eval_weight'] * (1. - eval_score)++ outputs['answers'] = answers+ outputs['instructions'] = insts+ outputs['scores'] = scores+ outputs['analyses'] = analyses+ outputs['batch_reflections'] = refls+ outputs['score'] = final_score+ return outputs, insts, outputs['score']++ def generate_api_call_from_description(+ self, tool: Dict[str, Any],+ example_calls: Optional[List[str]] = None,+ num_gen: int = 1,+ prev_output: Optional[Dict[str, List[Any]]] = None,+ ) -> List[Dict[str, Any]]:+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ user_prompt = f'''A tool is an API.+You are given an API tool with the following+documentation, which includes the functionality+description, required parameters, code snippets for API calls, etc.++Documentation:+{doc_str}+'''+ if example_calls is not None and len(example_calls) > 0:+ user_prompt += f'''+Example use cases for this API tool are:+{os.linesep.join(f'"{api_call}"' for api_call in example_calls)}++'''+ if self.api_keys is not None and len(self.api_keys) > 0:+ user_prompt += (+ f"You have access to the following API keys:"+ f" {json.dumps(self.api_keys)}. You must use real API keys"+ f" instead of placeholders when creating an API call.\n\n"+ )+ user_prompt += f'''Your task is to write {num_gen} example API call+for the given API tool given its purpose and parameters list.+The API call you produced will be executed as function call later and+return result if correct, or error if you provide incorrect syntax,+format, or parameters. Given the documentation and description, think+of possible example API calls and produce those that are likely to be+correctly executed. Think of parameter values that are likely API calls+that people use in the real world and be the intension to find out+the api's capabilities. The goal is to generate realistic, slightly+edge-case API calls that are valid, executable, and reveal subtle+limits in the system (e.g., language-restricted fields, domestic-only+locations, silent defaults, etc.). The generated API call MUST be+executable and real. Parameter values must be filled in and not+placeholding text. You must include the required parameters,+and optionally give parameters that are labeled as "optional+parameters". Do not hallucinate and produce parameters that+are not under "required" or "optional". Produce diverse+parameter values if you are asked to generate multiple API calls,+but be factual and do not use fake parameters.++You can only use the given function {function_name} and not anything else. Create an API call that include the function name, and the parameters to be input to the API. Include all the required and optional parameters in a single dictionary without separating them. Do not include the URL or other irrelevant information. The output should be in the following JSON format that represents a function call:+{{+ "name": "{function_name}",+ "arguments": {{+ "parameter_1": <param_value_1>,+ "parameter_2": <param_value_2>+ }}+}}++You must strictly follow the output format, including "name", "arguments", and parameters.\n'''++ if prev_output is not None and len(prev_output) > 0:+ user_prompt += 'Previously you generated the following API calls for this '+ user_prompt += f'function {function_name}, which where then executed and critiqued:\n'+ for i, output in enumerate(prev_output, 1):+ if 'api_reflection' in output:+ user_prompt += (f'{i}. fn_call="{output["fn_call"]}" '+ f'fn_output="{json.dumps(output["tool_results"])[:512]}" '+ f'status={output["status_code"]} reflection="This is an '+ f'example of a bad function call. Here is your reflect'+ f'ion: {output["api_reflection"]}"\n')+ else:+ user_prompt += (f'{i}. fn_call="{output["fn_call"]}" '+ f'fn_output="{json.dumps(output["tool_results"])[:512]}" '+ f'status={output["status_code"]} reflection="This is an '+ f'example of a good and reasonable function call. You '+ f'should generate a function call that differs from thi'+ f's if possible; do not generate the same function ca'+ f'll unless there are no parameters for this function."\n')++ user_prompt += 'You should improve your response based on these reflections.\n\n'++ user_prompt += "Do not output anything other than the JSON output. Now you can begin your task."+ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ fn = parse_json(output)++ if not isinstance(fn, dict):+ raise ValueError("Output must be a dict.")++ if "name" not in fn:+ raise ValueError('incorrect output format, "name" required for function')++ if "arguments" not in fn:+ raise ValueError(+ f'incorrect output format, "arguments" required for function {fn.get("name")}.'+ )++ if fn.get("name") != function_name:+ raise ValueError(+ f"Output function '{fn.get('name')}' is inconsistent with the given function "+ f"'{function_name}'. You must only use the given function {function_name}!"+ )++ return fn++ logger.info(f"Sending request to generate tool use examples")+ result = get_rits_response(+ self.config['gen_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ include_stop_sequence=False,+ stop_sequences=[+ '<|eot_id|>',+ '<|end_of_text|>',+ '<|eom_id|>'+ ],+ verbose=self.verbose+ )+ return result++ def critique_api_call(self, tool: Dict[str, Any], fn_call: Dict[str, Any], fn_response: str):+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ user_prompt = f'''+You are given an API tool with the following documentation, which includes the functionality description, required parameters, code snippets for API calls, etc.++Documentation:+{doc_str}++Previously you were asked to write an example API+call for the function {function_name} given its purpose+and parameters list, and you generated the following+function call: {json.dumps(fn_call)}. '''++ if len(fn_response) > 2048:+ fn_response = fn_response[:2048]+ user_prompt += f'''The function call you produced+was later executed and returned the following result.+Example of function result: "{fn_response}", etc.'''+ else:+ user_prompt += f'''The function call+you produced was later executed and returned the+following result: "{fn_response}".'''++ user_prompt += '''Your task is to analyze the response and check if there are any errors.+ 1. If there are no errors and everything looks reasonable, give an err_code of 0, and don't provide analysis.+ 2. If there is an error, give an err_code of -1. Then in your analysis, describe and analyze in detail why the error occurred based on the error message. Then, based on your analysis, give detailed suggestions to improve the function call so that no errors will be produced. You must give detailed analysis and suggestions, do not simply repeat the error message. The analysis and suggestions should be in the "analysis" field in the output.++ Note that even if the "error" field in the result is empty, the "response" field may contain an error when using the function call. If this is the case you must treat this as an error and analyze the failure. The response field may also be in HTML format. Keep your analysis to less than 200 characters.++ Your output should be in the following JSON format:+ {{+ "analysis": your analysis and suggestions,+ "err_code": error code (-1 for error, 0 for correct)+ }}++You can begin your task now.'''+ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ output_json = parse_json(output)++ if "analysis" not in output_json:+ raise ValueError('No "analysis" found in output')++ if "err_code" not in output_json:+ raise ValueError('No "err_code" found in output')++ output_json["analysis"] = str(output_json.get("analysis", "")).strip()++ try:+ output_json["err_code"] = int(output_json.get("err_code"))+ except (TypeError, ValueError) as exc:+ raise ValueError(f'Invalid "err_code": {output_json.get("err_code")}') from exc++ return output_json++ logger.info(f"Sending request to critique api")++ response = get_rits_response(+ self.config['eval_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ stop_sequences=['<|eot_id|>', '<|end_of_text|>', '<|eom_id|>'],+ verbose=self.verbose+ )+ return response++ def generate_instruction_from_api_call(+ self,+ tool: Dict[str, Any],+ fn_call: Dict[str, Any],+ fn_response: str,+ prev_output: Optional[Dict[str, List[Any]]] = None,+ ):+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ user_prompt = f'''+ You are given an API tool with the following documentation, which includes the functionality description, required parameters, code snippets for API calls, etc.++ Documentation:+ {doc_str}++ For the function {function_name}, you are given the following function call: {json.dumps(fn_call)}, and executing the function call returned the following result: {fn_response}. Your task is to generate a user instruction in natural language that requires the given function call to be completed. Here are some guidelines to follow:+ 1. The instruction must be a scenario or problem that cannot be solved without calling the given function {function_name}. This is your main objective.+ 2. The problem can be complex and require other tools or APIs, but you must include the given API function.+ 3. You should not directly or explicitly ask for the function to be called; the problem itself must inherently be solved by the function.+ 4. Based on the function, function call, its parameters, parameter values, and function execution responses, you should produce a real and reasonable instruction.+ 5. You must use information from the parameter values of the function call to create the response. You must include the value of every parameter from the given function call in the user instruction you generated, including each list/dict element of the parameter values. Do not ignore any parameters/values from the function call.+ 6. You must NOT include specific function calls in your response. You should not explicitly show the function names. You should also never explicitly name the parameter names in your response. You should not show any variable names.+ 7. Your response has to be in natural language. Do not show any variables, function calls, or code.+ 8. The instruction must not be longer than 3 sentences. It should not be longer than 300 letters. Be succinct and do not spend too much on describing irrelevant background.+ 9. You should respond in the user's first-person perspective.+ 10. You are a human user. You are asking a question or giving an instruction. Do not answer in the perspective of an AI assistant. Remember, the user does not know about the API function and thus cannot ask to call the function.+ 11. Remember, you are asking a question, so do not answer your own question in the response. Your goal is to give a querying instruction or question, not producing answers or function calls.+ 12. Be creative and think about what users will ask in real-world scenarios.+ '''+ if self.api_keys is not None and len(self.api_keys) > 0:+ user_prompt += (f'13. The instruction should include '+ f'which API key to use if an API key is required. '+ f'You have access to the following API key'+ f's: {json.dumps(self.api_keys)}.')++ user_prompt += '''+ Your output should be in the following JSON format:+ {{+ "instruction": generated instruction+ }}+ '''+ if prev_output is not None:++ formatted_lines = []++ for i, (inst, score) in enumerate(+ zip(prev_output["instructions"], prev_output["scores"]),+ 1,+ ):+ formatted_lines.append(f'{i}. instruction="{inst}" score={score}')++ formatted = os.linesep.join(formatted_lines)++ user_prompt += f'''Previously you generated the following+instructions for this function call, which were rated and analyzed:+ {formatted}+ Based on these ratings, you are given the following analysis: {prev_output['batch_reflection']}+ You should improve your instructions based on these suggestions. '''++ user_prompt += "You must strictly follow the output format. Now you can begin your task."+ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ output_json = parse_json(output, "instruction")++ if "instruction" not in output_json:+ raise ValueError('No "instruction" found in output')++ return str(output_json.get("instruction", "")).strip()++ return get_rits_response(+ self.config['eval_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ stop_sequences=['<|eot_id|>', '<|end_of_text|>', '<|eom_id|>'],+ verbose=self.verbose+ )++ def critique_instruction(+ self,+ tool: Dict[str, Any],+ instruction: str,+ fn_call: Dict[str, Any],+ fn_response: str,+ answer: str+ ):+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ user_prompt = f'''+You are given an instruction "{instruction}",+function call "{json.dumps(fn_call)}" and an answer "{answer}",+your task is to give a `score` based on the following rules:+1. You must return 1 if any of the following+conditions is met (for instruction only):+ (1) instruction is empty, nonsense, or not in natural language; or+ (2) instruction is explicitly including function+ calls or asking for function calls or contains function names; or+ (3) instruction includes exact function parameter names; or+ (4) instruction includes code or variable assignment; or+ (5) instruction is longer than 3 sentences or 300 letters; or+ (6) instruction does not include a question, query, request, or+ problem to be solved; or+ (7) instruction is not in first-person perspective (not using "I" as pronoun),+ or is in the perspective of an AI assistant instead of a user; or+ (8) any parameter value in the function call is not present in the instruction'''+ if self.api_keys is not None and len(self.api_keys) > 0:+ user_prompt += f'; or (9) instruction does include the corresponding API key when an API key is required'++ user_prompt += f'''+. An instruction that satisfies any of these conditions+is a bad instruction and should be scored a 1.++2. If the answer is a sorry message, not a positive/straight+response for the given instruction, or mentions any+errors (API error, invalid parameter error, ..., etc.),+mentions cannot use API or cannot respond, return 1. Any+errors must be scored a 1, no exceptions.++3. If the answer is a positive/straight response+for the given instruction, you have to further check.+ 3.1 If the answer is not sufficient to+ determine whether they solve the instruction or not, return 2.+ 3.2 If you are confident that the answer+ is sufficient to determine whether the solve the+ instruction or not, return 3 if solvable or 1 if unsolvable.++Finally, organize your output in the following JSON format:++{{+ "analysis": your reasoning,+ "score": score+}}++You must strictly follow the output format. Your reasoning+should not be longer than 200 words. You must also strictly+follow the scoring rules, and remember that the score must+be a number between 1 and 3. You can begin your task now.'''+ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ output_json = parse_json(output, "analysis")++ if not isinstance(output_json, dict):+ raise ValueError(+ "incorrect output format (not a dict), " \+ "you have to output Dict containing your analysis and rating"+ )++ if "analysis" not in output_json:+ raise ValueError('incorrect output format, "analysis" required.')++ if "score" not in output_json:+ raise ValueError('incorrect output format, "score" required.')++ output_json["analysis"] = str(output_json.get("analysis", "")).strip()++ try:+ output_json["score"] = int(output_json.get("score"))+ except (TypeError, ValueError) as exc:+ raise ValueError(f'Invalid "score": {output_json.get("score")}') from exc++ return output_json++ return get_rits_response(+ self.config['eval_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ stop_sequences=['<|eot_id|>', '<|end_of_text|>', '<|eom_id|>'],+ verbose=self.verbose+ )++ def batch_reflection_with_scores(+ self,+ tool: Dict[str, Any],+ fn_call: Dict[str, Any],+ instructions: List[str],+ scores: List[float],+ analyses: Optional[List[str]] = None+ ):+ function_name = tool['name']+ doc_str = json.dumps(tool, ensure_ascii=False)+ lines = []++ for i, (inst, score, ana) in enumerate(+ zip(instructions, scores, analyses),+ 1,+ ):+ line = f'{i}. instruction="{inst}" score={score} analysis="{ana}"'+ lines.append(line)++ formatted = os.linesep.join(lines)+ user_prompt = f'''You are given an API tool with the+following documentation, which includes the functionality+description, required parameters, code snippets for API calls, etc.++Documentation:+{doc_str}++Previously, given the function call {json.dumps(fn_call)},+you were asked to generate example instructions that require+the use of the function {function_name} to complete.+The example instructions generated by you were then scored+by an expert on whether the instructions can be fulfilled+using the given API function. Scores are in a scale+between 1 (lowest) and 3 (highest). Below are the+generated instructions, scores, and analyses:++{formatted}++Task:+1. Firstly, identify and contrast the patterns of+instructions and function calls that have achieved+good scores with those that have not. If there are+no bad scores, only summarize the patterns of the good ones.+2. Next, specify the suggestions that can lead to+improved performance for the generated instructions+and function calls with bad scores. You should+focus on capturing the high-level pattern of the+examples relevant to the API documentation.+Note that both the function and the function+call cannot be changed, and focus your+suggestions on how to improve the example+instructions, including deciding what information+to use from parameters of the function call.++Keep your analysis and suggestions to less+than 500 characters. You can now start your task.'''++ prompt = format_prompt_llama(system_prompt="", user_prompt=user_prompt)++ def verify_output(output):+ return output.strip()++ return get_rits_response(+ self.config['eval_model_id'],+ prompt,+ self.config['llm_api_key'],+ verify_output,+ max_attempts=15,+ stop_sequences=['<|eot_id|>', '<|end_of_text|>', '<|eom_id|>'],+ verbose=self.verbose+ )++ def get_original_description(self, tool: Dict[str, Any]):+ description = tool['description']+ indicator = 'The description of this function is: "'+ found = description.find(indicator)+ description = description[found + len(indicator): -1] if found != -1 else description+ return descriptiondiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/application/llm_agent/llm_controller.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/application/llm_agent/llm_controller.pynew file mode 100644index 0000000000..e87cc41a0e--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/application/llm_agent/llm_controller.py@@ -0,0 +1,1458 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++# Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved+"""LLMController - ReAct style controller based on BaseController"""++from dataclasses import dataclass+from datetime import datetime, timezone++from typing import Dict, Optional, List, Any++from openjiuwen.core.common.exception.errors import build_error, BaseError+from openjiuwen.core.single_agent.legacy import (+ LegacyReActAgentConfig as ReActAgentConfig, PluginSchema,+)+from openjiuwen.core.controller.legacy import BaseController, Event, EventType, Task, TaskResult, TaskStatus+from openjiuwen.core.controller.legacy.utils import MessageHandlerUtils+from openjiuwen.core.common.utils.message_utils import MessageUtils+from openjiuwen.core.common.constants.enums import TaskType+from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.logging import logger+from openjiuwen.core.common.security.json_utils import JsonUtils+from openjiuwen.core.single_agent import Session+from openjiuwen.core.common.security.user_config import UserConfig+from openjiuwen.core.common.utils.hash_util import generate_key+from openjiuwen.core.common.constants import constant as const+from openjiuwen.core.runner import Runner+from openjiuwen.core.session import InteractiveInput+from openjiuwen.core.session.stream import OutputSchema+from openjiuwen.core.workflow import WorkflowExecutionState, WorkflowOutput+from openjiuwen.core.foundation.llm import ModelRequestConfig, ModelClientConfig, AssistantMessage, ToolMessage, Model+from openjiuwen.core.memory.long_term_memory import LongTermMemory+from openjiuwen.core.foundation.llm import ToolCall+++@dataclass+class TaskInterruptionState:+ """Encapsulates all data related to task interruption++ This dataclass groups related parameters that describe the complete state+ when a task is interrupted, making the API cleaner and more maintainable.+ """+ task: Task+ session: Session+ ai_message: AssistantMessage+ remaining_tasks: list[Task]+ interaction_data: Optional[list] = None+ current_iteration: Optional[int] = None+++def convert_timestamp(utc_timestamp: str) -> str:+ local_dt = utc_timestamp+ if utc_timestamp:+ try:+ utc_dt = datetime.strptime(utc_timestamp, '%Y-%m-%d %H:%M:%S').replace(tzinfo=timezone.utc)+ local_dt = utc_dt.astimezone().strftime('%Y-%m-%d %H:%M:%S')+ except ValueError:+ logger.warning(f"timestamp format invalid: {utc_timestamp}, skip convert")+ return local_dt+++class LLMController(BaseController):+ """LLM Controller++ Core responsibilities:+ 1. Receive user input and invoke LLM reasoning to generate tasks+ 2. Execute tasks (plugin/workflow)+ 3. After task completion, invoke LLM reasoning again to decide whether to continue+ 4. Loop until problem solved or max iteration reached+ """++ def __init__(+ self,+ config: ReActAgentConfig,+ context_engine,+ session+ ):+ super().__init__(config, context_engine, session)+ self.config = config+ self._enable_long_term_mem = self.config.agent_memory_config.enable_long_term_mem+ self._enable_mem_variables = len(self.config.agent_memory_config.mem_variables) > 0+ self._enable_memory = (self.config.memory_scope_id and+ (self._enable_long_term_mem or self._enable_mem_variables))+ self._long_term_memory_instance = LongTermMemory()+ self._memory_inited = False++ async def handle_event(self, event: Event, session: Session) -> Optional[Dict]:+ """Handle Message - only handles user input++ Notes:+ - BaseController.invoke() only creates USER_INPUT type messages+ - Task execution results are handled directly in _execute_tasks_loop++ Args:+ event: Event object (only USER_INPUT type)+ session: Session context++ Returns:+ Final result+ """+ if event.event_type != EventType.USER_INPUT:+ logger.warning(f"Unexpected event type: {event.event_type}, expected USER_INPUT")+ raise build_error(+ StatusCode.AGENT_CONTROLLER_USER_INPUT_PROCESS_ERROR,+ error_msg=f"{event.event_type} is unexpected event type, should be USER_INPUT"+ )++ try:+ return await self._handle_user_input(event, session)+ except Exception as e:+ logger.error(f"Error in handling message: {e}")+ if isinstance(e, BaseError):+ raise e+ else:+ raise build_error(+ StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg=str(e),+ cause=e+ ) from e++ async def _handle_user_input(self, event: Event, session: Session) -> Optional[Dict]:+ """Handle user input - ReAct core: LLM reasoning to generate plan++ Process:+ 1. Add user message to conversation history+ 2. Call LLM reasoning to generate task plan+ 3. Execute tasks+ 4. If workflow task, check if needs to resume interrupted task+ 5. Loop until completion+ """++ # Add user message to conversation history+ await MessageUtils.add_user_message(event.get_display_content(), self._context_engine, session)++ # 0. Fast path: Check if message has InteractiveInput with node_id - directly resume workflow+ interactive_input = getattr(event.content, 'interactive_input', None)+ if interactive_input is not None and interactive_input.user_inputs:+ resume_result = self._find_interrupted_task_by_node_id(+ interactive_input, session+ )+ if resume_result:+ # Unpack new return values+ ai_message, remaining_tasks, saved_iteration = resume_result++ logger.info(+ f"Resuming interrupted workflow from InteractiveInput, "+ f"remaining tasks: {len(remaining_tasks)}, "+ f"saved_iteration: {saved_iteration}"+ )++ # Directly use saved ai_message (no need to manually construct)+ await MessageUtils.add_ai_message(ai_message, self._context_engine, session)++ # Update first task (interrupted one) with user input+ interrupted_task = remaining_tasks[0]+ interrupted_task.input.arguments = interactive_input+ interrupted_task.status = TaskStatus.INTERRUPTED++ # Resume execution: execute all remaining tasks+ initial_iteration = (saved_iteration + 1) if saved_iteration is not None else 1++ return await self._execute_react_loop(+ remaining_tasks,+ session,+ initial_iteration=initial_iteration,+ ai_message=ai_message+ )+ logger.warning("Given Interactive input, but no interrupted task found, " \+ "falling through to normal LLM detection")++ # 1. Normal path: Call LLM model to generate plans+ tasks, llm_output = await self._generate_plan_from_llm(event, session)++ if not tasks:+ logger.info("ReAct Iteration: 1 end, No task is generated")+ final_result = await self._send_final_stream(llm_output.content, session)+ return self._unwrap_result(final_result)++ # Check if planned task is workflow task+ initial_iteration = 1+ workflow_task = self._resolve_workflow_from_tasks(tasks)+ if workflow_task:+ # Check if needs to resume interrupted task+ resume_result = self._find_interrupted_task(workflow_task, session)+ if resume_result[0]:+ # Unpack new return values+ saved_ai_message, remaining_tasks, saved_iteration, component_ids = resume_result++ logger.info(+ f"Resuming interrupted workflow task: {workflow_task.input.target_name}, "+ f"last iteration: {saved_iteration}"+ )++ # LLM generated a new ai_message (llm_output) with new tool_call_id in _generate_plan_from_llm.+ # To ensure tool responses match the ai_message in context, we update the saved task's+ # task_id to use LLM's new tool_call_id. This way the tool response will correctly+ # correspond to the ai_message already in context.+ if llm_output and llm_output.tool_calls and len(llm_output.tool_calls) > 0:+ new_tool_call_id = llm_output.tool_calls[0].id+ old_task_id = remaining_tasks[0].task_id+ remaining_tasks[0].task_id = new_tool_call_id+ logger.info(f"Updated task_id from {old_task_id} to {new_tool_call_id} for resume")++ # Update first task (interrupted one) with user input+ interrupted_task = remaining_tasks[0]++ # Build correct InteractiveInput for workflow resume+ if event.content.interactive_input is not None:+ interactive_input = event.content.interactive_input+ else:+ # Create InteractiveInput with component_ids+ user_query = event.get_display_content()+ interactive_input = InteractiveInput()+ if component_ids:+ # Use first component_id to bind user input+ for comp_id in component_ids:+ interactive_input.update(comp_id, user_query)+ else:+ # Fallback to raw_inputs+ interactive_input = InteractiveInput(raw_inputs=user_query)+ logger.info(+ f"Created InteractiveInput with component_ids: {component_ids}, user_query: {user_query}")++ interrupted_task.input.arguments = interactive_input+ interrupted_task.status = TaskStatus.INTERRUPTED++ # Resume execution+ initial_iteration = saved_iteration + 1 if saved_iteration is not None else 1++ return await self._execute_react_loop(+ remaining_tasks,+ session,+ initial_iteration=initial_iteration,+ ai_message=saved_ai_message+ )+ else:+ logger.info(f"Creating new workflow task: {workflow_task.input.target_name}")++ # Execute new tasks+ return await self._execute_react_loop(+ tasks,+ session,+ initial_iteration=initial_iteration,+ ai_message=llm_output+ )++ async def _post_task_completion(+ self,+ task: Task,+ output: Any,+ workflow_id: Optional[str],+ session: Session+ ):+ """Post-processing after task completion: add tool_msg, clear state++ Args:+ task: Completed task+ output: Task output (stream data)+ workflow_id: Workflow ID (if applicable)+ session: Session context+ """+ # Add tool_msg for completed task+ if output and len(output) > 0:+ if output[0].type in ("plugin_final", "workflow_final"):+ temp_event = Event.create_task_completed(+ conversation_id=session.get_session_id(),+ task_id=task.task_id,+ task_result=task.result,+ workflow_id=workflow_id,+ stream_data=output+ )+ await MessageHandlerUtils.add_tool_result(temp_event, self._context_engine, session)+ logger.info(f"Added tool_message for completed task: {task.task_id}")++ # Clear workflow interrupted state (if any)+ if workflow_id:+ self._clear_interrupted_state(task, session)+ logger.info(f"Cleared interrupted state for workflow: {workflow_id}")++ async def _generate_next_plan(+ self,+ task: Task,+ workflow_id: Optional[str],+ output: Any,+ session: Session+ ) -> tuple[list[Task], Any]:+ """Generate next plan after task completion++ Args:+ task: Completed task+ workflow_id: Workflow ID (if applicable)+ output: Task output (stream data)+ session: Session context++ Returns:+ tuple: (tasks, llm_output)+ """+ # Create temporary Event for LLM reasoning (maintain compatibility)+ temp_event = Event.create_task_completed(+ conversation_id=session.get_session_id(),+ task_id=task.task_id,+ task_result=task.result,+ workflow_id=workflow_id,+ stream_data=output+ )++ return await self._generate_plan_from_llm(temp_event, session)++ async def _handle_task_completed(+ self,+ task: Task,+ execution_result: TaskResult,+ session: Session+ ) -> tuple[Optional[Dict], list[Task], Optional[AssistantMessage]]:+ """Handle task completion - generate next plan, check if done++ Args:+ task: Completed task+ execution_result: Task execution result+ session: Session context++ Returns:+ tuple: (final_result_if_done, new_tasks, new_ai_message)+ - If final_result is not None, ReAct loop should end+ - If final_result is None, continue with new_tasks and new_ai_message+ """+ workflow_id = execution_result.metadata.get("workflow_id")++ # Generate next plan+ tasks, llm_output = await self._generate_next_plan(+ task=task,+ workflow_id=workflow_id,+ output=execution_result.output,+ session=session+ )++ # Check if done+ if not tasks:+ logger.info("No new tasks generated, ReAct loop completed")+ final_result = await self._send_final_stream(llm_output.content, session)+ return self._unwrap_result(final_result), [], None++ # Continue loop with new tasks and new ai_message+ return None, tasks, llm_output++ async def _handle_task_interrupted(+ self,+ interruption_state: TaskInterruptionState,+ output: List+ ) -> Optional[Dict]:+ """Handle task interruption++ Save complete ai_message and remaining tasks for resumption++ Args:+ interruption_state: Complete interruption state encapsulated in dataclass+ output: Interaction output data+ """+ # Save interruption state with complete information+ await self.interrupt_task(interruption_state)++ # Add mock tool_msg+ mock_tool_msg = ToolMessage(+ content="[INTERRUPTED - Waiting for user input]",+ tool_call_id=interruption_state.task.task_id+ )+ agent_context = self._context_engine.get_context(+ session_id=interruption_state.session.get_session_id()+ )+ await agent_context.add_messages(mock_tool_msg)++ # 流式返回:只返回第一个中断+ first_interrupt = self._get_first_interrupt(output)+ logger.info(+ f"Task has {self._count_interactions(output)} "+ f"interrupts, returning only the first one for streaming"+ )++ # Write interrupted task stream data (only first interrupt)+ await self._write_message_stream_data(first_interrupt, interruption_state.session)++ # Return interruption result (only first interrupt)+ return self._unwrap_result(first_interrupt)++ async def _handle_task_error(+ self,+ error_msg: str,+ session: Session,+ task: Task+ ) -> Optional[Dict]:+ """Handle task error++ - Add tool message and send error stream data+ - Return None to continue executing next task+ """+ logger.error(f"Task execution error: {error_msg}")++ # Add tool message (similar to interrupted task handling)+ error_content = f"[FAILED - {error_msg}]"+ mock_tool_msg = ToolMessage(+ content=error_content,+ tool_call_id=task.task_id+ )+ agent_context = self._context_engine.get_context(session_id=session.get_session_id())+ await agent_context.add_messages(mock_tool_msg)+ logger.info(f"Added tool_message for failed task: {task.task_id}")++ # Send error stream data for user notification+ await self._send_error_stream(error_msg, session)++ # Return None to allow continuing to next task+ return None++ async def _execute_react_loop(self, tasks: list[Task], session: Session,+ initial_iteration: int = 1,+ ai_message: Optional[AssistantMessage] = None) -> Optional[Dict]:+ """Execute ReAct loop with explicit iteration - NO RECURSION++ Main loop:+ 1. Execute all tasks sequentially+ 2. If interrupted, return immediately, if failed, add tool message and execute next task+ 3. If all completed, generate next plan from LLM+ 4. If no new tasks or max iteration reached, return final result+ 5. Otherwise, continue loop with new tasks++ Args:+ tasks: Initial task list+ session: Session context+ initial_iteration: Initial iteration+ ai_message: Complete AI message with all tool_calls++ Returns:+ Final result dictionary+ """+ iteration = initial_iteration+ while tasks and iteration <= self.config.constrain.max_iteration:+ logger.info(f"ReAct Iteration: {iteration} / {self.config.constrain.max_iteration}")++ # Execute all tasks sequentially+ for idx, task in enumerate(tasks):+ logger.info(f"Executing task {task.task_id}, type: {task.task_type}, index: {idx + 1}/{len(tasks)}")++ # Execute task+ execution_result = await self._execute_task(task, session)++ # Handle interruption - stop immediately, wait for user input+ if execution_result.status == TaskStatus.INTERRUPTED:+ logger.info(f"Task interrupted at index {idx + 1}, stopping ReAct loop")++ # Calculate remaining uncompleted tasks (including current interrupted one)+ remaining_tasks = tasks[idx:]++ # Create interruption state+ interruption_state = TaskInterruptionState(+ task=task,+ session=session,+ ai_message=ai_message,+ remaining_tasks=remaining_tasks,+ interaction_data=execution_result.output,+ current_iteration=iteration+ )++ return await self._handle_task_interrupted(+ interruption_state=interruption_state,+ output=execution_result.output+ )++ # Handle error - add mock tool message and continue to next task+ if execution_result.status == TaskStatus.FAILED:+ logger.error(f"Task failed: {execution_result.error}")+ await self._handle_task_error(+ error_msg=execution_result.error,+ session=session,+ task=task+ )+ # Continue to next task++ # Task completed successfully - do post-processing+ if execution_result.status == TaskStatus.SUCCESS:+ await self._post_task_completion(+ task=task,+ output=execution_result.output,+ workflow_id=execution_result.metadata.get("workflow_id"),+ session=session+ )+ # Continue to next task++ # All tasks completed, generate next plan+ logger.info("All tasks completed successfully, generate next plan using LLM")+ last_task = tasks[-1]+ final_result, new_tasks, new_ai_message = await self._handle_task_completed(+ task=last_task,+ execution_result=execution_result,+ session=session+ )++ if final_result is not None:+ logger.info(f"ReAct loop completed at iteration: {iteration}")+ return final_result++ # Update loop variables+ tasks = new_tasks+ ai_message = new_ai_message+ iteration += 1++ # Exceeded max iteration count+ logger.warning(+ f"Exceeded max iteration {self.config.constrain.max_iteration}, stopping ReAct loop"+ )+ return {"output": "Maximum iteration reached", "result_type": "answer"}++ async def _execute_task(self, task: Task, session: Session) -> TaskResult:+ """Execute single task - return execution task result+ """+ try:+ if task.task_type == TaskType.WORKFLOW:+ return await self._execute_workflow_task(task, session)+ elif task.task_type == TaskType.PLUGIN:+ return await self._execute_plugin_task(task, session)+ else:+ logger.warning(f"Unknown task type: {task.task_type}")+ raise build_error(+ StatusCode.AGENT_TASK_NOT_SUPPORT,+ error_msg=str(task.task_type)+ )+ except Exception as e:+ logger.error(f"Error executing task {task.task_id}: {e}")+ return TaskResult(+ status=TaskStatus.FAILED,+ error=str(e)+ )++ async def _execute_workflow_task(self, task: Task, session: Session) -> TaskResult:+ """Execute workflow task - return result dictionary++ - If task status is INTERRUPTED, it's a resume task+ - Change status to RUNNING before execution+ - Determine if interrupted or completed based on execution result+ """+ try:+ workflow_id = task.input.target_id+ workflow = await self._find_workflow_by_id(workflow_id, session)+ if not workflow:+ raise ValueError(f"Workflow not found: {workflow_id}")+ workflow_session = session.create_workflow_session()++ # Record task execution information+ is_resume = task.status == TaskStatus.INTERRUPTED+ logger.info(+ f"Executing workflow: {task.input.target_name}, "+ f"workflow_id: {task.input.target_id}, "+ f"is_resume={is_resume}, "+ f"input_type={type(task.input.arguments)}"+ )++ # Update task status to RUNNING+ task.status = TaskStatus.RUNNING++ # Execute workflow+ result = await Runner.run_workflow(+ workflow,+ inputs=task.input.arguments,+ session=workflow_session,+ context=await self._context_engine.create_context(+ context_id=workflow_id, session=session+ )+ )++ # Prepare stream data+ output_stream_data = self._prepare_workflow_stream_data(result)++ # Check result status+ is_interrupted = self._is_workflow_interrupted(result)+ result_state = "NO STATE"+ if hasattr(result, 'state'):+ result_state = result.state+ logger.info(+ f"Executing workflow result state: {result_state}, "+ f"interrupted: {is_interrupted}"+ )+ if is_interrupted:+ task.result = TaskResult(+ status=TaskStatus.INTERRUPTED,+ output=result,+ metadata={"state": result.state.value}+ )+ logger.info(f"Workflow {task.input.target_name} interrupted, waiting for user input")++ return TaskResult(+ status=TaskStatus.INTERRUPTED,+ output=output_stream_data,+ metadata={"workflow_id": task.input.target_id}+ )+ else:+ task.result = TaskResult(+ status=TaskStatus.SUCCESS,+ output=result,+ metadata={"state": result.state.value if hasattr(result, 'state') else "completed"}+ )+ await self._write_workflow_stream_output(result, session)+ logger.info(f"Workflow {task.input.target_name} completed successfully")++ return TaskResult(+ status=TaskStatus.SUCCESS,+ output=output_stream_data,+ metadata={"workflow_id": task.input.target_id}+ )+ except BaseError as e:+ logger.error(f"Error executing workflow task {task.input.target_name}: {e}")+ raise build_error(+ StatusCode.AGENT_WORKFLOW_EXECUTION_ERROR,+ error_msg=e.message,+ cause=e+ ) from e+ except Exception as e:+ logger.error(f"Error executing workflow {task.input.target_name}: {e}")+ raise build_error(+ StatusCode.AGENT_WORKFLOW_EXECUTION_ERROR,+ error_msg=str(e),+ cause=e+ ) from e++ async def _execute_plugin_task(self, task: Task, session: Session) -> TaskResult:+ """Execute plugin task - return result dictionary"""+ tool = None+ tool_id = self._find_plugin_id_by_name(task.input.target_name)+ if tool_id:+ tool = Runner.resource_mgr.get_tool(tool_id=tool_id, tag=self.config.id)+ if not tool:+ logger.error("Tool not found")+ raise build_error(+ StatusCode.AGENT_TOOL_NOT_FOUND,+ error_msg=f"tool '{task.input.target_name}' is not registered in session"+ )+ try:+ result = await tool.invoke(task.input.arguments)++ # Prepare stream data+ payload = {"output": result, "result_type": "answer"}+ output_stream_data = [OutputSchema(type="plugin_final", index=0, payload=payload)]++ # update task result+ task.result = TaskResult(+ status=TaskStatus.SUCCESS,+ output=output_stream_data,+ metadata={"tool_name": task.input.target_name}+ )+ return TaskResult(+ status=TaskStatus.SUCCESS,+ output=output_stream_data,+ metadata={"tool_name": task.input.target_name}+ )+ except BaseError as e:+ logger.error(f"Error executing plugin task {task.input.target_name}: {e}")+ raise build_error(+ StatusCode.AGENT_TOOL_EXECUTION_ERROR,+ error_msg=e.message,+ cause=e+ ) from e+ except Exception as e:+ logger.error(f"Error executing plugin task {task.input.target_name}: {e}")+ raise build_error(+ StatusCode.AGENT_TOOL_EXECUTION_ERROR,+ error_msg=str(e),+ cause=e+ ) from e++ async def _generate_plan_from_llm(self, event: Event, session: Session):+ """Call LLM to generate plan - ReAct core method"""+ inputs = event.get_display_content()+ user_id = event.source.user_id+ tools = await Runner.resource_mgr.get_tool_infos(tag=self.config.id)+ logger.info(f"Loaded {len(tools)} Tool(s) for generating plans")+ system_prompt_keywords = await self._get_system_prompt_keywords(inputs, user_id)+ chat_history = MessageUtils.get_chat_history(self._context_engine, session, self.config)+ llm_inputs = MessageHandlerUtils.format_llm_inputs(inputs, chat_history, self.config, system_prompt_keywords)++ if UserConfig.is_sensitive():+ logger.info(f"React llm inputs")+ else:+ logger.info(f"React llm inputs: {llm_inputs}")++ try:+ model = await self._get_model(session=session)+ llm_output = await self._call_llm_get_output(+ model,+ self.config.model.model_info.model_name,+ llm_inputs,+ tools,+ session+ )++ if UserConfig.is_sensitive():+ logger.info(f"React llm output")+ else:+ logger.info(f"React llm output: {llm_output}")++ tasks = MessageHandlerUtils.parse_llm_output(llm_output, self.config)+ # Add LLM output to CE conversation history+ await MessageUtils.add_ai_message(llm_output, self._context_engine, session)++ except Exception as e:+ logger.error(f"Failed to invoke model, {e}")+ if isinstance(e, BaseError):+ raise e+ else:+ raise build_error(+ StatusCode.AGENT_CONTROLLER_INVOKE_CALL_FAILED,+ error_msg=str(e),+ cause=e+ ) from e++ return tasks, llm_output++ async def _call_llm_get_output(+ self,+ model,+ model_name: str,+ llm_inputs: Any,+ tools: List[Any],+ session: Session+ ) -> AssistantMessage:+ """ Stream LLM invocation and output chunks in real-time++ Args:+ model: Model instance+ model_name: Model name+ llm_inputs: LLM input messages+ tools: Available tools+ session: Session context for streaming output++ Returns:+ AIMessage: Accumulated complete message from all chunks++ Raises:+ BaseError: If LLM returns empty response or invocation fails+ """+ accumulated_chunk = None+ stream_index = 0++ try:+ async for chunk in model.stream(llm_inputs, tools=tools, model=model_name):+ # Accumulate chunks using AIMessageChunk's __add__ method+ if accumulated_chunk is None:+ accumulated_chunk = chunk+ else:+ accumulated_chunk = accumulated_chunk + chunk++ # Stream output for reasoning content+ if chunk.reasoning_content:+ stream_output = OutputSchema(+ type="llm_reasoning",+ index=stream_index,+ payload={+ "output": chunk.reasoning_content,+ "result_type": "answer"+ }+ )+ await session.write_stream(stream_output)+ stream_index += 1++ # Stream output for response content+ if chunk.content:+ stream_output = OutputSchema(+ type="llm_output",+ index=stream_index,+ payload={+ "output": chunk.content,+ "result_type": "answer"+ }+ )+ await session.write_stream(stream_output)+ stream_index += 1++ # Check for empty response+ if accumulated_chunk is None:+ raise build_error(+ StatusCode.AGENT_CONTROLLER_INVOKE_CALL_FAILED,+ error_msg="LLM returned empty response"+ )++ # Convert accumulated chunk to AIMessage+ return AssistantMessage(+ role=accumulated_chunk.role or "assistant",+ content=accumulated_chunk.content or "",+ tool_calls=accumulated_chunk.tool_calls or [],+ usage_metadata=accumulated_chunk.usage_metadata,+ finish_reason=accumulated_chunk.finish_reason,+ parser_content=accumulated_chunk.parser_content,+ reasoning_content=accumulated_chunk.reasoning_content,+ )++ except Exception as e:+ logger.error(f"Failed to stream LLM output: {e}")+ raise++ async def _get_model(self, session=None):+ """Get model instance"""+ model_id = generate_key(+ self.config.model.model_info.api_key,+ self.config.model.model_info.api_base,+ self.config.model.model_provider+ )++ model = await Runner.resource_mgr.get_model(model_id=model_id, session=session)++ if model is None:+ model_client_config = ModelClientConfig(+ client_id=model_id,+ client_provider=self.config.model.model_provider,+ api_key=self.config.model.model_info.api_key,+ api_base=self.config.model.model_info.api_base,+ timeout=self.config.model.model_info.timeout,+ verify_ssl=False,+ ssl_cert=None,+ )+ model_request_config = ModelRequestConfig(+ model=self.config.model.model_info.model_name,+ temperature=self.config.model.model_info.temperature,+ top_p=self.config.model.model_info.top_p,+ **(self.config.model.model_info.model_extra or {})+ )++ def model_provider():+ return Model(model_client_config=model_client_config, model_config=model_request_config)++ Runner.resource_mgr.add_model(model_id=model_id, model=model_provider)++ return await Runner.resource_mgr.get_model(model_id=model_id, session=session)++ def _get_workflow_id_from_schema(self, workflow_name: str) -> Optional[str]:+ """Get workflow_id from workflow schema by name++ Args:+ workflow_name: Workflow name++ Returns:+ Workflow ID in format {id}_{version}, or None if not found+ """+ for workflow_schema in self.config.workflows:+ if workflow_schema.name == workflow_name:+ return f"{workflow_schema.id}_{workflow_schema.version}"+ return None++ def _ensure_workflow_id(self, task: Task) -> str:+ """Ensure task has valid workflow_id, construct from schema if needed++ Args:+ task: Task object++ Returns:+ Workflow ID++ Raises:+ ValueError: If workflow_id cannot be determined+ """+ # If task already has target_id, use it+ if task.input.target_id:+ return task.input.target_id++ # Otherwise, construct from workflow schema+ workflow_id = self._get_workflow_id_from_schema(task.input.target_name)+ if workflow_id:+ task.input.target_id = workflow_id+ logger.info(+ f"Set workflow_id={workflow_id} for workflow: {task.input.target_name}"+ )+ return workflow_id++ raise ValueError(+ f"Cannot determine workflow_id for task: {task.input.target_name}"+ )++ def _resolve_workflow_from_tasks(self, tasks: list[Task]) -> Optional[Task]:+ """Find workflow task from task list"""+ for task in tasks:+ if task.task_type == TaskType.WORKFLOW:+ return task+ return None++ def _find_interrupted_task(self, workflow_task: Task, session: Session):+ """Find interrupted task++ Find interrupted task from session.state:+ state["llm_controller"]["interrupted_tasks"][workflow_id]++ Find interrupted task for specified workflow from session.state++ Returns:+ tuple: (ai_message, remaining_tasks, saved_iteration, component_ids) or (None, None, None, None)+ """+ state = session.get_state("llm_controller")+ if not state:+ logger.info("No llm_controller state found, don't have interrupted tasks")+ return None, None, None, None++ interrupted_tasks = state.get("interrupted_tasks", {})+ logger.info(f"find interrupted_tasks {list(interrupted_tasks.keys())} from llm_controller")++ # Get workflow_id from schema (unified method)+ workflow_id = self._get_workflow_id_from_schema(workflow_task.input.target_name)+ if not workflow_id:+ logger.warning(f"Workflow schema not found for {workflow_task.input.target_name}")+ return None, None, None, None++ state_key = workflow_id.replace('.', '_')++ # Try to find interrupted task with normalized key+ if state_key in interrupted_tasks:+ logger.info(f"Found interrupted task for {workflow_task.input.target_name} (key: {state_key})")+ task_info = interrupted_tasks[state_key]++ # Restore complete information+ ai_message = AssistantMessage.model_validate(task_info["ai_message"])+ remaining_tasks = [Task.model_validate(t) for t in task_info["remaining_tasks"]]+ saved_iteration = task_info["iteration"]+ component_ids = task_info.get("component_ids", [])++ logger.info(+ f"Restored: {len(ai_message.tool_calls) if ai_message.tool_calls else 0} tool_calls, "+ f"{len(remaining_tasks)} remaining tasks, component_ids: {component_ids}"+ )++ return ai_message, remaining_tasks, saved_iteration, component_ids++ logger.info(f"No interrupted task found for workflow {workflow_task.input.target_name}")+ return None, None, None, None++ def _create_resume_task(self, event: Event, interrupted_task: Task) -> Task:+ """Create resume task++ - If message has InteractiveInput, use it directly+ - Otherwise create InteractiveInput from query+ - Update interrupted task input parameters+ - Update task status to Interrupted++ Args:+ event: Event+ interrupted_task: Interrupted task recovered from state++ Returns:+ Task: Resumed task object+ """+ # Check if message content already has InteractiveInput+ if event.content.interactive_input is not None:+ interactive_input = event.content.interactive_input+ logger.info(f"Using InteractiveInput from message for resuming workflow directly")+ else:+ # Create InteractiveInput from query+ query = event.content.get_query()+ logger.info(f"Creating InteractiveInput from query: {query}")+ interactive_input = InteractiveInput(raw_inputs=query)++ # Update interrupted task input to InteractiveInput+ interrupted_task.input.arguments = interactive_input++ # Keep task status as INTERRUPTED+ interrupted_task.status = TaskStatus.INTERRUPTED++ logger.info(+ f"Created resume task: task_id={interrupted_task.task_id}, "+ f"workflow={interrupted_task.input.target_name}, "+ f"status={interrupted_task.status}, "+ f"input_type={type(interrupted_task.input.arguments)}"+ )++ return interrupted_task++ async def _find_workflow_by_id(self, workflow_id: str, session: Session):+ """Find workflow object from session++ Args:+ workflow_id: workflow ID (format: {id}_{version})+ session: Session context++ Returns:+ Workflow object, None if not found+ """+ try:+ workflow = await Runner.resource_mgr.get_workflow(workflow_id=workflow_id, tag=self.config.id)+ return workflow+ except Exception as e:+ logger.error(f"Failed to find workflow {workflow_id}: {e}")+ return None++ def _prepare_workflow_stream_data(self, result) -> list:+ """Prepare workflow stream data"""+ try:+ if self._is_workflow_interrupted(result):+ return result.result+ else:+ payload = {"output": result, "result_type": "answer"}+ return [OutputSchema(type="workflow_final", index=0, payload=payload)]+ except Exception as e:+ logger.warning(f"Failed to prepare stream data: {e}")+ return []++ def _is_workflow_interrupted(self, result) -> bool:+ """Check if workflow is interrupted"""+ return hasattr(result, 'state') and result.state == WorkflowExecutionState.INPUT_REQUIRED++ def _clear_interrupted_state(self, task: Task, session: Session):+ """Clean up interruption state++ Remove interrupted task for specified workflow from session.state+ """+ workflow_id = task.input.target_id+ if not workflow_id:+ logger.warning("Cannot clear interrupted state: task has no target_id")+ return++ state = session.get_state("llm_controller") or {}+ interrupted_tasks = state.get("interrupted_tasks", {})++ # Normalize workflow_id for state key+ state_key = workflow_id.replace('.', '_')++ if state_key in interrupted_tasks:+ del interrupted_tasks[state_key]+ session.update_state({"llm_controller": None}) # clear state first+ session.update_state({"llm_controller": state})+ logger.info(+ f"Cleared interrupted state for workflow: {task.input.target_id}, "+ f"state_key: {state_key}"+ )++ async def interrupt_task(+ self,+ interruption_state: TaskInterruptionState+ ) -> Dict:+ """Save interruption state to session.state++ Args:+ interruption_state: Complete interruption state containing task, session,+ ai_message, remaining_tasks, interaction_data, and current_iteration++ Returns:+ dict: Interruption information+ """+ # Ensure task has valid workflow_id (unified method)+ try:+ workflow_id = self._ensure_workflow_id(interruption_state.task)+ except ValueError as e:+ logger.error(f"interrupt_task: {e}")+ workflow_id = "unknown"++ # Step 1: Update task status+ interruption_state.task.status = TaskStatus.INTERRUPTED++ # Step 2: Save interruption state to session.state+ state = interruption_state.session.get_state("llm_controller") or {}+ if "interrupted_tasks" not in state:+ state["interrupted_tasks"] = {}++ # Extract component ID from interaction data+ component_ids = self._extract_component_ids_from_interaction_data(+ interruption_state.interaction_data+ )++ # Normalize workflow_id for state key+ state_key = workflow_id.replace('.', '_')++ state["interrupted_tasks"][state_key] = {+ "ai_message": interruption_state.ai_message.model_dump(),+ "remaining_tasks": [t.model_dump() for t in interruption_state.remaining_tasks],+ "component_ids": component_ids,+ "iteration": interruption_state.current_iteration+ }++ # Clear old state first, then update with new state, which ensures proper cleanup of nested dict keys+ interruption_state.session.update_state({"llm_controller": None})+ interruption_state.session.update_state({"llm_controller": state})++ logger.info(+ f"Task interrupted: workflow={workflow_id}, "+ f"state_key={state_key}, "+ f"saved remaining_tasks count: {len(interruption_state.remaining_tasks)}, "+ f"ai_message tool_calls: {len(interruption_state.ai_message.tool_calls) if interruption_state.ai_message.tool_calls else 0}, "+ f"task_id={interruption_state.task.task_id}, current_iteration={interruption_state.current_iteration}"+ )++ return {+ "status": "interrupted",+ "task_id": interruption_state.task.task_id,+ "workflow_id": workflow_id,+ "message": "Task interrupted, waiting for subsequent input"+ }++ def _extract_component_ids_from_interaction_data(self, interaction_data: Optional[list]) -> List[str]:+ """Extract component ID from interaction data++ Args:+ interaction_data: OutputSchema list containing interaction requests during interruption++ Returns:+ str: Component ID, defaults to "questioner"+ """+ if not interaction_data:+ logger.warning("No interaction_data provided, using default component_id")+ return ["questioner"]++ component_ids = []+ try:+ # Iterate through interaction_data to find outputs with INTERACTION type+ for output_schema in interaction_data:+ if (hasattr(output_schema, 'type') and+ output_schema.type == const.INTERACTION):+ # Extract InteractionOutput.id from payload+ if (hasattr(output_schema, 'payload') and+ hasattr(output_schema.payload, 'id')):+ component_id = output_schema.payload.id+ component_ids.append(component_id)+ logger.info(+ f"Extracted component_id from interaction_data: {component_id}"+ )+ except Exception as e:+ logger.warning(+ f"Failed to extract component_id from interaction_data: {e}"+ )++ if not component_ids:+ logger.warning("No component_id found in interaction_data, using default")+ return ["questioner"] # Default value++ return component_ids++ async def _write_message_stream_data(self, stream_data: List, session: Session):+ """Write stream data carried by message List[OutputSchema]"""+ try:+ for output_schema in stream_data:+ await session.write_stream(output_schema)+ except Exception as e:+ logger.warning(f"Failed to write message stream data: {e}")++ async def _send_final_stream(self, content: str, session: Session):+ """Send final stream data"""+ try:+ payload = {"output": content, "result_type": "answer"}+ final_stream = OutputSchema(+ type="answer",+ index=0,+ payload=payload+ )+ await session.write_stream(final_stream)+ return final_stream+ except Exception as e:+ logger.error(f"Failed to send final stream data: {e}")+ raise build_error(+ StatusCode.AGENT_CONTROLLER_EXECUTION_CALL_FAILED,+ error_msg=str(e),+ cause=e+ ) from e++ async def _send_error_stream(self, error_msg: str, session: Session):+ """Send error result stream and return OutputSchema"""+ try:+ error_stream = OutputSchema(+ type="final",+ index=0,+ payload={+ "error": True,+ "message": error_msg,+ "status": "failed"+ }+ )+ await session.write_stream(error_stream)+ return error_stream+ except Exception as e:+ logger.error(f"Failed to send error stream: {e}")+ raise build_error(+ StatusCode.AGENT_CONTROLLER_EXECUTION_CALL_FAILED,+ error_msg=str(e),+ cause=e+ ) from e++ def _unwrap_result(self, result):+ """Unwrap result - unify return format"""+ if isinstance(result, list):+ if not result:+ return {"output": "", "result_type": "answer"}+ if isinstance(result[0], OutputSchema):+ # If it's interaction requests (multiple or single), return list+ if result[0].type == const.INTERACTION:+ return result+ # If it's a single non-interaction OutputSchema, extract its payload+ if len(result) == 1:+ payload = result[0].payload+ if isinstance(payload, dict):+ if 'output' in payload and isinstance(payload['output'], str):+ payload['output'] = payload['output'].strip()+ return payload+ return {"output": payload, "result_type": "answer"}+ # If it's multiple non-interaction OutputSchemas, return list+ return result+ return {"output": result, "result_type": "answer"}++ if isinstance(result, OutputSchema):+ # If it's interaction, return wrapped in list for consistency+ if result.type == const.INTERACTION:+ return [result]+ payload = result.payload+ if isinstance(payload, dict):+ if 'output' in payload and isinstance(payload['output'], str):+ payload['output'] = payload['output'].strip()+ return payload+ return {"output": payload, "result_type": "answer"}++ return {"output": result, "result_type": "answer"}++ def _get_first_interrupt(+ self,+ interaction_data: Optional[list]+ ) -> list:+ """从 interaction_data 中提取第一个中断用于流式返回++ 当产生多个中断时,状态中保存所有中断,+ 但流式输出只返回第一个中断给用户。++ Args:+ interaction_data: OutputSchema 列表,包含所有中断++ Returns:+ list: 只包含第一个 __interaction__ 的 OutputSchema 列表+ 保持其他类型的 chunk(tracer等)不变+ """+ if not interaction_data:+ return []++ first_interrupt_found = False+ result = []++ for chunk in interaction_data:+ if isinstance(chunk, OutputSchema) and chunk.type == const.INTERACTION:+ # 只保留第一个 __interaction__+ if not first_interrupt_found:+ result.append(chunk)+ first_interrupt_found = True+ logger.info(+ f"Found first interrupt: component_id="+ f"{chunk.payload.id if hasattr(chunk.payload, 'id') else 'unknown'}"+ )+ else:+ # 跳过后续的 __interaction__+ logger.info(+ f"Skipping additional interrupt: component_id="+ f"{chunk.payload.id if hasattr(chunk.payload, 'id') else 'unknown'}"+ )+ else:+ # 保留非 __interaction__ 类型的 chunk(如 tracer)+ result.append(chunk)++ return result++ def _count_interactions(+ self,+ interaction_data: Optional[list]+ ) -> int:+ """统计 interaction_data 中的中断数量++ Args:+ interaction_data: OutputSchema 列表++ Returns:+ int: 中断数量+ """+ if not interaction_data:+ return 0++ count = 0+ for chunk in interaction_data:+ if isinstance(chunk, OutputSchema) and chunk.type == const.INTERACTION:+ count += 1++ return count++ def create_message(self, inputs: Dict) -> Event:+ """Create message object - override to support query field"""+ query = inputs.get("query", inputs.get("content", ""))+ conversation_id = inputs.get("conversation_id", "default_session")+ user_id = inputs.get("user_id")++ return Event.create_user_event(+ content=query,+ conversation_id=conversation_id,+ user_id=user_id+ )++ @staticmethod+ async def _write_workflow_stream_output(result, session):+ if isinstance(result, WorkflowOutput) and isinstance(result.result, list):+ for item in result.result:+ await session.write_stream(item)++ def set_llm_controller_prompt_template(self, prompt_template: List[Dict[str, str]]):+ """Set prompt template for LLMController"""+ self.config.prompt_template = prompt_template++ async def _get_system_prompt_keywords(self, inputs: Any, user_id: str):+ result = {}+ if self._enable_memory:+ memory_keywords = await self._get_keywords_from_memory(inputs, user_id)+ result.update(memory_keywords)+ return result++ async def _get_keywords_from_memory(self, inputs: Any, user_id: str):+ result = {}+ scope_id = f"{self.config.memory_scope_id}"+ if isinstance(inputs, str):+ query = inputs+ elif isinstance(inputs, dict):+ query = inputs.get("query", "")+ else:+ query = ""+ logger.info(f"scope_id: {scope_id} | user_id: {user_id} | inputs: {inputs}")+ if not self._long_term_memory_instance:+ return result+ if user_id and scope_id:+ if self._enable_mem_variables:+ memory_variables = await self._long_term_memory_instance.get_variables(+ user_id=user_id,+ scope_id=scope_id+ )+ if memory_variables:+ cur_variables_config = [config.name for config in self.config.agent_memory_config.mem_variables]+ filter_memory_variables = {k: v for k, v in memory_variables.items() if k in cur_variables_config}+ result.update({"sys_memory_variables":+ JsonUtils.safe_json_dumps(filter_memory_variables, ensure_ascii=False)})+ logger.info(f"memory_variables: {memory_variables}")+ else:+ logger.info("[LongTermMemory] not enable memory variables")++ try:+ if not self._enable_long_term_mem:+ logger.info("[LongTermMemory] not enable long_term_memory")+ return result+ long_term_memory = await self._long_term_memory_instance.search_user_mem(+ user_id=user_id,+ scope_id=scope_id,+ query=query,+ num=10+ )+ if long_term_memory:+ memory_contents = [mem.mem_info.content for mem in long_term_memory]+ result.update(+ {"sys_long_term_memory": JsonUtils.safe_json_dumps(memory_contents, ensure_ascii=False)})+ logger.info(f"long_term_memory: {long_term_memory}")+ except Exception as e:+ logger.error(f"[LongTermMemory] failed to search mem: {e}")+ result.update({"sys_long_term_memory": "[]"})+ return result++ def _convert_openai_tool_calls_to_tool_call_objects(self, tool_calls: List[Dict]) -> List[ToolCall]:+ """Convert OpenAI format tool_calls to ToolCall objects++ OpenAI format: {"id": "...", "type": "...", "function": {"name": "...", "arguments": "..."}}+ ToolCall format: ToolCall(id=..., type=..., name=..., arguments=...)+ """+ if not tool_calls:+ return []+ result = []+ for tool_call in tool_calls:+ # Handle both OpenAI format (with function nested) and ToolCall format (direct fields)+ if "function" in tool_call:+ # OpenAI format+ result.append(ToolCall(+ id=tool_call.get("id"),+ type=tool_call.get("type", "function"),+ name=tool_call.get("function", {}).get("name", ""),+ arguments=tool_call.get("function", {}).get("arguments", ""),+ index=tool_call.get("index"),+ ))+ else:+ # Already in ToolCall format+ result.append(ToolCall(**tool_call))+ return result++ def _find_interrupted_task_by_node_id(+ self,+ interactive_input,+ session: Session+ ) -> Optional[tuple]:+ """Find interrupted workflow by node_id from InteractiveInput++ When user provides InteractiveInput with user_inputs (node_id -> value),+ we can directly find the interrupted workflow without LLM detection.++ This method searches in llm_controller state+ to find the interrupted task matching the node_id.++ Args:+ interactive_input: InteractiveInput with user_inputs+ session: Session context++ Returns:+ tuple(ai_message, remaining_tasks, saved_iteration) if found, None otherwise+ """+ state = session.get_state("llm_controller")+ if not state:+ return None++ interrupted_tasks = state.get("interrupted_tasks", {})+ if not interrupted_tasks:+ return None++ # Get node_id from InteractiveInput+ node_ids = list(interactive_input.user_inputs.keys())+ if not node_ids:+ return None++ logger.info(+ f"_find_interrupted_task_by_node_id: looking for node_id={node_ids}"+ )++ # Search through interrupted tasks to find matching component_id+ # Support multiple node_ids (parallel interruptions)+ for workflow_key, task_info in interrupted_tasks.items():+ component_ids = task_info.get("component_ids") or []+ if any(node_id in component_ids for node_id in node_ids):+ logger.info(+ f"_find_interrupted_task_by_node_id: "+ f"found match workflow_key={workflow_key}, "+ f"given component_id={component_ids}"+ )++ # Restore complete information+ ai_message_data = task_info["ai_message"].copy()+ if "tool_calls" in ai_message_data and ai_message_data["tool_calls"]:+ ai_message_data["tool_calls"] = [+ tc.model_dump() if isinstance(tc, ToolCall) else tc+ for tc in self._convert_openai_tool_calls_to_tool_call_objects(ai_message_data["tool_calls"])+ ]++ # Restore complete information+ ai_message = AssistantMessage.model_validate(ai_message_data)+ remaining_tasks = [Task.model_validate(t) for t in task_info["remaining_tasks"]]+ saved_iteration = task_info["iteration"]++ logger.info(+ f"Restored: ai_message with "+ f"{len(ai_message.tool_calls) if ai_message.tool_calls else 0} tool_calls, "+ f"{len(remaining_tasks)} remaining tasks"+ )++ return ai_message, remaining_tasks, saved_iteration++ logger.warning(+ f"_find_interrupted_task_by_node_id: "+ f"no match found for node_id={node_ids}"+ )+ return None++ def _find_plugin_id_by_name(self, tool_name: str) -> Optional[str]:+ config = self.config+ if hasattr(config, "plugins"):+ for plugin in config.plugins:+ if isinstance(plugin, PluginSchema) and tool_name == plugin.name:+ return plugin.id+ return Nonediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/application/workflow_agent/workflow_controller.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/application/workflow_agent/workflow_controller.pynew file mode 100644index 0000000000..3344d843b3--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/application/workflow_agent/workflow_controller.py@@ -0,0 +1,1174 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+"""Workflow Controller - Workflow-specific execution logic"""++import asyncio+from typing import Dict, List, Optional, Union++from openjiuwen.core.common.constants.enums import TaskType+from openjiuwen.core.runner import Runner+from openjiuwen.core.single_agent.legacy import AgentConfig, WorkflowSchema+from openjiuwen.core.common.utils.message_utils import MessageUtils+from openjiuwen.core.controller.legacy import (+ TaskStatus,+ IntentDetectionConfig,+ Intent,+ IntentDetectionController,+ IntentType,+ IntentDetector,+ Event,+ EventContent,+ Task,+ TaskInput+)+from openjiuwen.core.common.constants.constant import INTERACTION+from openjiuwen.core.common.logging import logger+from openjiuwen.core.session import InteractionOutput+from openjiuwen.core.single_agent import Session+from openjiuwen.core.session.stream import CustomSchema, OutputSchema+from openjiuwen.core.foundation.llm import AssistantMessage+from openjiuwen.core.workflow import WorkflowOutput, WorkflowExecutionState+++class WorkflowController(IntentDetectionController):+ """WorkflowController - Implements workflow-specific execution logic++ Core responsibilities:+ 1. Intent detection: Select workflow + Check interruption state+ 2. Task execution: Execute workflow (new/resume)+ 3. Interruption handling: Save interruption state to session.state+ """++ def __init__(+ self,+ config: AgentConfig = None,+ context_engine=None,+ session=None+ ):+ """Initialize WorkflowController++ Args:+ config: Agent configuration (optional, can be injected later)+ context_engine: Context engine (optional, can be injected later)+ session: Agent-level Session (optional, can be injected later)++ Note:+ If parameters are not provided, they will be injected by+ ControllerAgent via setup_from_agent()+ """+ super().__init__(config, context_engine, session)++ # Maintain backward compatible attribute name+ self.agent_config = config++ # Initialize intent detection module (only if config and context_engine are available)+ self._intent_detector = None+ if config is not None and context_engine is not None:+ self._init_intent_detection()++ def _init_intent_detection(self):+ """Initialize intent detection module - can be called after setup_from_agent"""+ # Intent detection will be lazily initialized when needed with session+ pass++ def setup_from_agent(self, agent):+ """Override to also initialize intent detection after setup"""+ super().setup_from_agent(agent)+ # Update backward compatible reference+ self.agent_config = self._config++ async def intent_detection(+ self,+ event: Event,+ session: Session+ ) -> Intent:+ """Intent detection: Select workflow + Check interruption state++ Process:+ 1. Check if input is InteractiveInput with node_id - skip LLM detection+ 2. Get available workflows+ 3. Single workflow: Use directly; Multiple workflows: LLM recognition+ 4. Check for interrupted tasks+ 5. Return Intent (ExecNewTask or ResumeTask)++ Args:+ event: Event object+ session: Session context++ Returns:+ Intent: Intent object+ """+ workflows = self.agent_config.workflows or []++ if not workflows:+ raise ValueError("No workflows configured for single_agent")++ # 0. Fast path: InteractiveInput with node_id - directly resume workflow+ # When user provides InteractiveInput, always resume (don't return interruption again)+ interactive_input = getattr(event.content, 'interactive_input', None)+ if interactive_input is not None and interactive_input.user_inputs:+ resume_result = self._find_interrupted_task_by_node_id(+ interactive_input, session+ )+ if resume_result:+ workflow, task = resume_result+ logger.info(+ f"InteractiveInput detected, directly resuming workflow: "+ f"{workflow.name}"+ )+ return Intent(+ intent_type=IntentType.ResumeTask,+ task=task,+ workflow=workflow+ )+ # If not found, fall through to normal detection++ # 1. Select workflow based on user's current query+ if len(workflows) == 1:+ # Single workflow: Use directly+ detected_workflow = workflows[0]+ logger.info(f"Single workflow mode: using {detected_workflow.name}")+ else:+ # Multiple workflows: LLM recognition+ detected_workflow = await self._detect_workflow_via_llm(+ event, session+ )+ # Check if default_response should be used+ if detected_workflow is None:+ default_text = self.agent_config.default_response.text+ logger.info(+ f"Using default response: {default_text}"+ )+ return Intent(+ intent_type=IntentType.DefaultResponse,+ metadata={"default_response_text": default_text}+ )+ logger.info(+ f"Multi workflow mode: detected {detected_workflow.name}"+ )++ # 2. Check if detected workflow has an interrupted task+ interrupted_task = self._find_interrupted_task(+ detected_workflow, session+ )++ if interrupted_task:+ # Found interrupted task for this workflow+ # Check if we should resume or return the interruption again+ should_resume = self._should_resume_interrupted_task(+ interrupted_task, event, session+ )++ if should_resume:+ # Resume task execution+ logger.info(+ f"Found interrupted task for workflow "+ f"{detected_workflow.name}, resuming"+ )+ return Intent(+ intent_type=IntentType.ResumeTask,+ task=interrupted_task,+ workflow=detected_workflow+ )+ else:+ # Return the interruption again (dict type interruption)+ logger.info(+ f"Found interrupted task with dict-type interruption, "+ f"returning interruption again for workflow {detected_workflow.name}"+ )+ # Use ResumeTask intent but with special metadata to indicate+ # we should return the interruption instead of executing+ return Intent(+ intent_type=IntentType.ResumeTask,+ task=interrupted_task,+ workflow=detected_workflow,+ metadata={"return_interruption": True}+ )+ else:+ # No interrupted task for this workflow: Create new task+ # Note: Other workflows' interrupted states are preserved+ logger.info(+ f"No interrupted task for workflow {detected_workflow.name}, "+ f"creating new task"+ )+ new_task = self._create_new_task(event, detected_workflow)+ return Intent(+ intent_type=IntentType.ExecNewTask,+ task=new_task,+ workflow=detected_workflow+ )++ async def exec_task(+ self,+ message_content: EventContent,+ task: Task,+ session: Session+ ) -> Dict:+ """Execute workflow task++ Execution method depends on task.status:+ - PENDING: New task, use Runner.run_workflow+ - INTERRUPTED: Resume task, use Runner.run_workflow with InteractiveInput++ Args:+ message_content: Message content+ task: Task object+ session: Session context++ Returns:+ dict: Execution result+ """+ workflow_id = task.input.target_id+ conversation_id = session.get_session_id()++ try:+ # 1. Check if there's a running task for this conversation+ if self.task_queue.has_running_task(conversation_id):+ # Cancel old task+ cancelled = await self.task_queue.cancel_running_task(+ conversation_id+ )+ if cancelled:+ logger.info(+ f"Cancelled previous running task for "+ f"conversation: {conversation_id}"+ )+ # Clear old task's interrupted state+ old_info = self.task_queue.find_task(conversation_id)+ if old_info:+ # Create a temporary task object for cleanup+ temp_task = Task(+ task_id=old_info.task.task_id,+ task_type=old_info.task.task_type,+ status=TaskStatus.CANCELLED,+ input=TaskInput(+ target_id=old_info.target_id,+ target_name="",+ arguments={}+ )+ )+ self._clear_interrupted_state(temp_task, session)++ # 2. Prepare execution (existing code)+ task.status = TaskStatus.RUNNING++ # Get workflow object (from controller's single_agent)+ workflow = await self._find_workflow_from_agent(workflow_id, session)+ if not workflow:+ raise ValueError(f"Workflow not found: {workflow_id}")++ # Create workflow session+ workflow_session = session.create_workflow_session()++ # Prepare input parameters+ inputs = task.input.arguments++ # If resuming task, parameters should already be InteractiveInput+ if task.status == TaskStatus.INTERRUPTED:+ logger.info(+ f"Resuming workflow: {workflow_id}, "+ f"inputs type={type(inputs)}"+ )+ else:+ logger.info(f"Starting workflow: {workflow_id}")++ # 3. Use streaming workflow call, so workflow layer can yield:+ # - tracer_workflow (execution trace)+ # - __interaction__ (interrupt request)+ # - workflow_final (completion result)+ # Stream data written to session, single_agent layer's stream_iterator can read+ async def run_workflow_streaming():+ from openjiuwen.core.runner import Runner+ workflow_stream = Runner.run_workflow_streaming(+ workflow,+ inputs=inputs,+ session=workflow_session,+ context=await self._context_engine.create_context(+ context_id=workflow_id, session=session+ )+ )+ chunks = []+ has_interaction = False+ final_result = None+ async for chunk in workflow_stream:+ # Check chunk type+ if isinstance(chunk, OutputSchema):+ if chunk.type == INTERACTION:+ has_interaction = True+ # Don't pass through __interaction__ here+ # Let upper ControllerAgent.stream write after controller.invoke completes+ # Ensure __interaction__ comes after all tracer events+ elif chunk.type == "workflow_final":+ # Direct pass-through of workflow_final frame from workflow+ final_result = chunk.payload+ await session.write_stream(chunk)+ else:+ # Pass through other stream data (tracer etc.)+ await session.write_stream(chunk)+ elif isinstance(chunk, CustomSchema):+ await session.write_custom_stream(chunk)+ else:+ await session.write_stream(chunk)+ chunks.append(chunk)++ # add messages to context+ if chunks:+ content_parts = []+ for chunk in chunks:+ if isinstance(chunk, OutputSchema):+ if isinstance(chunk.payload, dict):+ response = chunk.payload.get("response", "")+ if response is not None:+ content_parts.append(str(response))+ elif isinstance(chunk.payload, InteractionOutput):+ # Keep interaction interrupt output content+ content_parts.append(str(chunk.payload.value) if chunk.payload.value else "")+ workflow_content = "".join(content_parts)+ await MessageUtils.add_ai_message(AssistantMessage(content=workflow_content),+ self._context_engine, session)++ # Construct WorkflowOutput+ if has_interaction:+ return WorkflowOutput(+ result=chunks,+ state=WorkflowExecutionState.INPUT_REQUIRED+ )+ else:+ return WorkflowOutput(+ result=final_result,+ state=WorkflowExecutionState.COMPLETED+ )++ workflow_task = asyncio.create_task(run_workflow_streaming())++ # 4. Register task to queue+ await self.task_queue.register_task(+ conversation_id, task, workflow_task, target_id=workflow_id+ )++ # 5. Wait for task completion (may be cancelled)+ try:+ result = await workflow_task+ except asyncio.CancelledError:+ logger.info(f"Workflow cancelled: {workflow_id}")+ task.status = TaskStatus.CANCELLED+ return {+ "status": "cancelled",+ "task_id": task.task_id,+ "workflow_id": workflow_id+ }+ finally:+ # 6. Unregister task+ await self.task_queue.unregister_task(conversation_id)++ # 7. Process result (existing code)+ is_interrupted = self._is_workflow_interrupted(result)+ result_state = "NO STATE"+ if hasattr(result, 'state'):+ result_state = result.state+ logger.info(+ f"Workflow result state: {result_state}, "+ f"interrupted: {is_interrupted}"+ )++ if is_interrupted:+ # Workflow interrupted+ logger.info(f"Workflow interrupted: {workflow_id}")+ task.status = TaskStatus.INTERRUPTED++ # Extract interaction list from result+ interaction_data = (+ result.result if hasattr(result, 'result') else None+ )++ # 状态保存:保存所有中断+ await self.interrupt_task(task, session, interaction_data)++ # 流式返回:只返回第一个中断+ first_interrupt = self._get_first_interrupt(interaction_data)+ logger.info(+ f"Workflow has {self._count_interactions(interaction_data)} "+ f"interrupts, returning only the first one for streaming"+ )+ return first_interrupt # Return only first interrupt for streaming+ else:+ # Workflow completed+ logger.info(f"Workflow completed: {workflow_id}")+ task.status = TaskStatus.SUCCESS++ # Clean up interruption state (if any)+ self._clear_interrupted_state(task, session)++ # workflow_final already passed through directly in run_workflow_streaming+ # If workflow doesn't return workflow_final frame, don't write+ # Return completion response+ # Return value maintains compatibility with original format, includes output and result_type+ return {"output": result, "result_type": "answer"}++ except asyncio.CancelledError:+ # Task was cancelled+ logger.info(f"Task cancelled during execution: {workflow_id}")+ task.status = TaskStatus.CANCELLED+ await self.task_queue.unregister_task(conversation_id)+ return {+ "status": "cancelled",+ "task_id": task.task_id,+ "workflow_id": workflow_id+ }+ except Exception as e:+ # Execution failed+ logger.error(+ f"Workflow execution failed: {workflow_id}, error: {e}"+ )+ task.status = TaskStatus.FAILED+ await self.task_queue.unregister_task(conversation_id)+ raise++ async def _handle_resume(+ self,+ event: Event,+ intent: Intent,+ session: Session+ ) -> Dict:+ """Override parent's _handle_resume to support return_interruption logic++ If intent.metadata contains 'return_interruption': True,+ directly return the saved interruption instead of executing workflow.++ Args:+ event: Event object+ intent: Intent object+ session: Session context++ Returns:+ dict: Execution result or interruption data+ """+ # Check if we should return interruption directly+ if intent.metadata and intent.metadata.get("return_interruption"):+ logger.info("Returning saved interruption directly (dict-type interruption)")++ # Get saved interruption data from state+ task = intent.task+ workflow_id = task.input.target_id+ state = session.get_state("workflow_controller")++ if not state:+ logger.warning("No workflow_controller state found, falling back to normal resume")+ return await super()._handle_resume(event, intent, session)++ state_key = workflow_id.replace('.', '_')+ interrupted_info = state.get("interrupted_tasks", {}).get(state_key)++ if not interrupted_info:+ logger.warning("No interrupted task info found, falling back to normal resume")+ return await super()._handle_resume(event, intent, session)++ # Reconstruct the interruption OutputSchema+ component_id = interrupted_info.get("component_id", "questioner")+ last_interaction_value = interrupted_info.get("last_interaction_value")++ if last_interaction_value is None:+ logger.warning("No last_interaction_value found, falling back to normal resume")+ return await super()._handle_resume(event, intent, session)++ # Create InteractionOutput+ interaction_output = InteractionOutput(+ id=component_id,+ value=last_interaction_value+ )++ # Return as OutputSchema list (same format as workflow interruption)+ return [+ OutputSchema(+ type="__interaction__",+ index=0,+ payload=interaction_output+ )+ ]++ # Normal resume flow+ return await super()._handle_resume(event, intent, session)++ async def interrupt_task(+ self,+ task: Task,+ session: Session,+ interaction_data: Optional[list] = None+ ) -> Dict:+ """Interrupt workflow task++ Save interruption state to session.state++ Args:+ task: Task object+ session: Session context+ interaction_data: Interaction data during interruption (OutputSchema list)++ Returns:+ dict: Interruption information+ """+ workflow_id = task.input.target_id++ # 1. Update task status+ task.status = TaskStatus.INTERRUPTED++ # 2. Save interruption state to session.state+ state = session.get_state("workflow_controller") or {}+ if "interrupted_tasks" not in state:+ state["interrupted_tasks"] = {}++ # Extract component ID and interaction value from interaction data+ component_id = self._extract_component_id_from_interaction_data(+ interaction_data+ )+ interaction_value = self._extract_interaction_value_from_interaction_data(+ interaction_data+ )+ state_key = workflow_id.replace('.', '_')++ state["interrupted_tasks"][state_key] = {+ "task": task.model_dump(),+ "component_id": component_id,+ "last_interaction_value": interaction_value+ }++ # Clear old state first, then update with new state+ # This ensures proper cleanup of nested dict keys+ session.update_state({"workflow_controller": None})+ session.update_state({"workflow_controller": state})++ logger.info(+ f"Task interrupted: workflow={workflow_id}, "+ f"state_key={state_key}, component_id={component_id}, "+ f"interaction_value_type={type(interaction_value).__name__}"+ )++ return {+ "status": "interrupted",+ "task_id": task.task_id,+ "workflow_id": workflow_id,+ "message": "Task interrupted, waiting for subsequent input"+ }++ async def _detect_workflow_via_llm(+ self,+ event: Event,+ session: Session+ ) -> Optional[WorkflowSchema]:+ """Use LLM to detect workflow++ If intent_detection exists and model is configured, call intent detection directly+ Otherwise return the first workflow++ Args:+ event: Event object+ session: Session context++ Returns:+ Optional[WorkflowSchema]: Detected workflow schema, or None if+ default_response should be used+ """+ try:+ # Initialize intent detection module (pass session)+ self._ensure_intent_detection_initialized(session)++ # If no intent detection, use first workflow+ if not self._intent_detector:+ logger.warning("No intent detection configured, using first workflow")+ return self.agent_config.workflows[0]++ # Call intent detection directly to detect intent+ detected_tasks = await self._intent_detector.process_message(event)++ if not detected_tasks:+ # Check if default_response.text is configured+ default_response = getattr(+ self.agent_config, 'default_response', None+ )+ if (default_response and+ default_response.text):+ logger.info(+ "Intent detection returned no tasks, "+ "using configured default_response"+ )+ return None++ logger.warning(+ "Intent detection returned no tasks, using first workflow"+ )+ return self.agent_config.workflows[0]++ # Extract workflow from detected_tasks+ # detected_tasks is a Task list+ # task.input.target_name contains workflow name+ workflow_name = detected_tasks[0].input.target_name++ # Match workflow+ for workflow in self.agent_config.workflows:+ if workflow.name == workflow_name:+ return workflow++ # If not found, return first workflow+ logger.warning(+ f"Workflow '{workflow_name}' not found, "+ "using first workflow"+ )+ return self.agent_config.workflows[0]++ except Exception as e:+ logger.error(f"Intent detection failed: {e}, using first workflow")+ return self.agent_config.workflows[0]++ def _ensure_intent_detection_initialized(self, session: Session):+ """Initialize intent detection module++ If already has intent_detection, update session+ Otherwise create new IntentDetection instance++ Args:+ session: Session context+ """+ # If already initialized, update session+ if self._intent_detector:+ self._intent_detector.session = session+ logger.debug("Updated intent detection session")+ return++ # Prefer description for classification (richer semantics); fallback to name if not configured+ category_list = [+ workflow.description if workflow.description else workflow.name+ for workflow in self.agent_config.workflows+ ]+ intent_config = IntentDetectionConfig(+ category_list=category_list,+ category_info="\n".join(+ f"- {w.description if w.description else w.name}"+ for w in self.agent_config.workflows+ ),+ enable_history=True,+ enable_input=True,+ )++ self._intent_detector = IntentDetector(+ intent_config=intent_config,+ agent_config=self.agent_config,+ context_engine=self._context_engine,+ session=session # Pass session+ )++ logger.info("Intent detection module initialized")++ def _should_resume_interrupted_task(+ self,+ task: Task,+ event: Event,+ session: Session+ ) -> bool:+ """Check if interrupted task should resume or return interruption again++ Logic:+ 1. If user provides InteractiveInput -> always resume+ 2. If last_interaction_value is dict (structured data from component) -> return interruption again+ 3. If last_interaction_value is str (human interaction text) -> resume++ Args:+ task: Interrupted task+ message: Current message+ session: Session context++ Returns:+ bool: True if should resume, False if should return interruption again+ """+ # 1. Check if user provides InteractiveInput+ interactive_input = getattr(event.content, 'interactive_input', None)+ if interactive_input is not None and interactive_input.user_inputs:+ logger.info("User provided InteractiveInput, will resume task")+ return True++ # 2. Get last_interaction_value from state+ state = session.get_state("workflow_controller")+ if not state:+ logger.info("No workflow_controller state, will resume task")+ return True++ workflow_id = task.input.target_id+ state_key = workflow_id.replace('.', '_')+ interrupted_info = state.get("interrupted_tasks", {}).get(state_key)++ if not interrupted_info:+ logger.info("No interrupted task info in state, will resume task")+ return True++ last_interaction_value = interrupted_info.get("last_interaction_value")++ # 3. Check type of last_interaction_value+ if last_interaction_value is None:+ logger.info("No last_interaction_value, will resume task")+ return True++ if isinstance(last_interaction_value, dict) or isinstance(last_interaction_value, list):+ logger.info(+ f"last_interaction_value is dict (structured data), "+ f"will return interruption again"+ )+ return False+ elif isinstance(last_interaction_value, str):+ logger.info(+ f"last_interaction_value is str (human interaction), "+ f"will resume task"+ )+ return True+ else:+ # For other types, default to resume+ logger.info(+ f"last_interaction_value type is {type(last_interaction_value).__name__}, "+ f"will resume task"+ )+ return True++ def _find_interrupted_task_by_node_id(+ self,+ interactive_input,+ session: Session+ ) -> Optional[tuple]:+ """Find interrupted workflow by node_id from InteractiveInput++ When user provides InteractiveInput with user_inputs (node_id -> value),+ we can directly find the interrupted workflow without LLM detection.++ Args:+ interactive_input: InteractiveInput with user_inputs+ session: Session context++ Returns:+ tuple(WorkflowSchema, Task) if found, None otherwise+ """+ state = session.get_state("workflow_controller")+ if not state:+ return None++ interrupted_tasks = state.get("interrupted_tasks", {})+ if not interrupted_tasks:+ return None++ # Get node_ids from InteractiveInput+ node_ids = list(interactive_input.user_inputs.keys())+ if not node_ids:+ return None++ logger.info(+ f"_find_interrupted_task_by_node_id: looking for node_ids={node_ids}"+ )++ # Search through interrupted tasks to find matching component_id+ # Support multiple node_ids (parallel interruptions)+ for workflow_key, task_info in interrupted_tasks.items():+ component_id = task_info.get("component_id")+ # component_id can be a list (parallel interruptions) or a string (legacy)+ # Check if any node_id from user input matches any component_id in the interrupted task+ matched = False+ if isinstance(component_id, list):+ # New format: component_id is a list+ if any(node_id in component_id for node_id in node_ids):+ matched = True+ logger.info(+ f"_find_interrupted_task_by_node_id: "+ f"found match workflow_key={workflow_key}, "+ f"component_ids={component_id}, node_ids={node_ids}"+ )+ else:+ # Legacy format: component_id is a string+ if component_id in node_ids:+ matched = True+ logger.info(+ f"_find_interrupted_task_by_node_id: "+ f"found match workflow_key={workflow_key}, "+ f"component_id={component_id}"+ )++ if matched:+ task_data = task_info["task"]+ task = Task.model_validate(task_data)++ # Find corresponding WorkflowSchema+ for workflow in (self.agent_config.workflows or []):+ base_id = f"{workflow.id}_{workflow.version.replace('.', '_')}"+ if workflow_key == base_id or workflow_key == workflow.id:+ return (workflow, task)++ logger.info(+ f"_find_interrupted_task_by_node_id: "+ f"no match found for node_ids={node_ids}"+ )+ return None++ def _find_interrupted_task(+ self,+ workflow: WorkflowSchema,+ session: Session+ ) -> Optional[Task]:+ """Find interrupted task for specified workflow++ Find interrupted task from session.state:+ state["workflow_controller"]["interrupted_tasks"][workflow_id]++ Note: Since update_dict uses '.' as nested path separator,+ '.' is replaced with '_' when saving, so we need to replace when finding too+ """+ state = session.get_state("workflow_controller")+ logger.info(f"_find_interrupted_task: workflow={workflow.name}, state={state}")+ if not state:+ logger.info("_find_interrupted_task: No workflow_controller state found")+ return None++ interrupted_tasks = state.get("interrupted_tasks", {})+ logger.info(f"_find_interrupted_task: interrupted_tasks keys={list(interrupted_tasks.keys())}")++ base_id_with_version = f"{workflow.id}_{workflow.version.replace('.', '_')}"+ possible_ids = [+ base_id_with_version, # weather_flow_1_0+ workflow.id # weather_flow+ ]+ logger.info(f"_find_interrupted_task: possible_ids={possible_ids}")++ for workflow_id in possible_ids:+ if workflow_id in interrupted_tasks:+ logger.info(f"_find_interrupted_task: Found interrupted task for {workflow_id}")+ task_data = interrupted_tasks[workflow_id]["task"]+ return Task.model_validate(task_data)++ logger.info(f"_find_interrupted_task: No interrupted task found for workflow {workflow.name}")+ return None++ def _create_new_task(+ self,+ event: Event,+ workflow: WorkflowSchema+ ) -> Task:+ """Create new workflow task++ Extract query from message and filter parameters based on workflow.input_params+ """+ # Get query+ query = event.content.get_query() if hasattr(event.content, 'get_query') else ""++ # Filter input parameters+ user_data = {"query": query}+ user_data.update(event.content.extensions or {})+ filtered_inputs = self._filter_workflow_inputs(+ workflow.input_params or {},+ user_data+ )++ logger.info(f"Creating task with inputs: {filtered_inputs}, query: {query}")++ # Create task+ task = Task(+ task_id=f"workflow_{event.event_id}",+ task_type=TaskType.WORKFLOW,+ status=TaskStatus.PENDING,+ input=TaskInput(+ target_name=workflow.name,+ target_id=f"{workflow.id}_{workflow.version}",+ arguments=filtered_inputs+ )+ )++ return task++ def _filter_workflow_inputs(+ self,+ schema: Dict,+ user_data: Dict+ ) -> Dict:+ """Filter input parameters based on schema++ Supports two formats:+ 1. Standard JSON Schema: {"type": "object", "properties": {...}}+ 2. Simplified format: {"query": {"type": "string"}}+ """+ filtered = {}++ # Try to get properties (standard format)+ properties = schema.get("properties", {})++ # If no properties field, but schema itself contains field definitions (simplified format)+ if not properties and schema:+ # Check if it's simplified format (directly contains field definitions)+ if any(isinstance(v, dict) and "type" in v for v in schema.values()):+ properties = schema++ for key, value in user_data.items():+ if key in properties or not properties:+ # If key is in properties, or properties is empty (allow all fields)+ filtered[key] = value++ return filtered++ def _get_interrupted_component_id(self, task: Task, session: Session) -> str:+ """Get component ID at interruption++ Find component_id of interrupted task from session.state+ """+ state = session.get_state("workflow_controller")+ if not state:+ return "questioner" # Default value++ workflow_id = task.input.target_id+ # Replace '.' with '_', consistent with saving+ state_key = workflow_id.replace('.', '_')++ interrupted_info = state.get("interrupted_tasks", {}).get(state_key)+ if interrupted_info:+ return interrupted_info.get("component_id", "questioner")++ return "questioner"++ def _clear_interrupted_state(self, task: Task, session: Session):+ """Clean up interruption state++ Remove interrupted task for specified workflow from session.state+ """+ state = session.get_state("workflow_controller") or {}+ interrupted_tasks = state.get("interrupted_tasks", {})++ workflow_id = task.input.target_id+ # Replace '.' with '_', consistent with saving+ state_key = workflow_id.replace('.', '_')++ if state_key in interrupted_tasks:+ del interrupted_tasks[state_key]+ session.update_state({"workflow_controller": None}) # clear state first+ session.update_state({"workflow_controller": state})+ logger.info(f"Cleared interrupted state for workflow: {workflow_id}, state_key: {state_key}")++ def _extract_component_id_from_interaction_data(+ self,+ interaction_data: Optional[list]+ ) -> Union[str, List[str]]:+ """Extract component ID(s) from interaction data++ Reference old implementation: MessageHandler.extract_component_id_from_stream_data+ Find all OutputSchema with type '__interaction__' from interaction_data list,+ and extract component_ids from payload.id++ Support parallel interruptions by collecting all component IDs.++ Args:+ interaction_data: OutputSchema list, containing interaction requests during interruption++ Returns:+ Union[str, List[str]]: Single component ID string if only one interruption,+ List of component IDs if multiple interruptions,+ Default return "questioner" for legacy compatibility+ """+ if not interaction_data:+ logger.warning("No interaction_data provided, using default component_id")+ return "questioner"++ component_ids = []+ try:+ # Iterate through interaction_data, find all outputs with type '__interaction__'+ for output_schema in interaction_data:+ if (hasattr(output_schema, 'type') and+ output_schema.type == '__interaction__'):+ # Extract InteractionOutput.id from payload+ if (hasattr(output_schema, 'payload') and+ hasattr(output_schema.payload, 'id')):+ component_id = output_schema.payload.id+ component_ids.append(component_id)+ logger.info(+ f"Extracted component_id from interaction_data: "+ f"{component_id}"+ )+ except Exception as e:+ logger.warning(+ f"Failed to extract component_id from interaction_data: {e}"+ )++ if not component_ids:+ logger.warning("No component_id found in interaction_data, using default")+ return "questioner" # Default value for legacy compatibility++ # Return single string if only one interruption, list if multiple+ if len(component_ids) == 1:+ logger.info(f"Extracted single component_id: {component_ids[0]}")+ return component_ids[0]+ else:+ logger.info(f"Extracted {len(component_ids)} component_ids: {component_ids}")+ return component_ids++ def _extract_interaction_value_from_interaction_data(+ self,+ interaction_data: Optional[list]+ ) -> Optional[any]:+ """Extract interaction value from interaction data++ Find OutputSchema with type '__interaction__' from interaction_data list,+ and extract value from payload.value++ Args:+ interaction_data: OutputSchema list, containing interaction requests during interruption++ Returns:+ Optional[any]: Interaction value (could be str, dict, or other types), None if not found+ """+ if not interaction_data:+ logger.warning("No interaction_data provided, cannot extract interaction_value")+ return None++ try:+ # Iterate through interaction_data, find output with type '__interaction__'+ for output_schema in interaction_data:+ if (hasattr(output_schema, 'type') and+ output_schema.type == '__interaction__'):+ # Extract InteractionOutput.value from payload+ if (hasattr(output_schema, 'payload') and+ hasattr(output_schema.payload, 'value')):+ interaction_value = output_schema.payload.value+ logger.info(+ f"Extracted interaction_value from interaction_data: "+ f"type={type(interaction_value).__name__}"+ )+ return interaction_value+ except Exception as e:+ logger.warning(+ f"Failed to extract interaction_value from interaction_data: {e}"+ )++ logger.warning("No interaction_value found in interaction_data")+ return None++ def _get_first_interrupt(+ self,+ interaction_data: Optional[list]+ ) -> list:+ """从 interaction_data 中提取第一个中断用于流式返回++ 当 workflow 产生多个中断时,状态中保存所有中断,+ 但流式输出只返回第一个中断给用户。++ Args:+ interaction_data: OutputSchema 列表,包含所有中断++ Returns:+ list: 只包含第一个 __interaction__ 的 OutputSchema 列表+ 保持其他类型的 chunk(tracer等)不变+ """+ if not interaction_data:+ return []++ first_interrupt_found = False+ result = []++ for chunk in interaction_data:+ if isinstance(chunk, OutputSchema) and chunk.type == INTERACTION:+ # 只保留第一个 __interaction__+ if not first_interrupt_found:+ result.append(chunk)+ first_interrupt_found = True+ logger.info(+ f"Found first interrupt: component_id="+ f"{chunk.payload.id if hasattr(chunk.payload, 'id') else 'unknown'}"+ )+ else:+ # 跳过后续的 __interaction__+ logger.info(+ f"Skipping additional interrupt: component_id="+ f"{chunk.payload.id if hasattr(chunk.payload, 'id') else 'unknown'}"+ )++ return result++ def _count_interactions(+ self,+ interaction_data: Optional[list]+ ) -> int:+ """统计 interaction_data 中的中断数量++ Args:+ interaction_data: OutputSchema 列表++ Returns:+ int: 中断数量+ """+ if not interaction_data:+ return 0++ count = 0+ for chunk in interaction_data:+ if isinstance(chunk, OutputSchema) and chunk.type == INTERACTION:+ count += 1++ return count++ async def _find_workflow_from_agent(self, workflow_id: str, session: Session):+ """Find workflow object from session++ Args:+ workflow_id: workflow ID (format: {id}_{version})+ session: Task Session context++ Returns:+ Workflow object, None if not found+ """+ # First try to find from Runner's global resource_mgr+ try:+ from openjiuwen.core.runner import Runner+ logger.info(f"Trying to find workflow from resource_mgr: {workflow_id}")++ workflow = await Runner.resource_mgr.get_workflow(workflow_id=workflow_id, tag=self.agent_config.id,+ session=session.base())+ logger.info(f"Found workflow from resource_mgr: {workflow is not None}")+ if workflow:+ return workflow+ except Exception as e:+ logger.warning(f"Failed to find workflow from resource_mgr {workflow_id}: {e}")++ # Then try to get from controller's _session+ try:+ from openjiuwen.core.runner import Runner+ logger.info(f"Trying to find workflow from controller._session: {workflow_id}")+ workflow = await Runner.resource_mgr.get_workflow(workflow_id=workflow_id, tag=self.agent_config.id)+ logger.info(f"Found workflow from controller._session: {workflow is not None}")+ return workflow+ except Exception as e:+ logger.error(f"Failed to find workflow from controller._session {workflow_id}: {e}")++ logger.error(f"Workflow not found: {workflow_id}")+ return None++ async def _find_workflow_by_id(self, workflow_id: str, session: Session):+ """Find workflow object from session++ Args:+ workflow_id: workflow ID (format: {id}_{version})+ session: Session context++ Returns:+ Workflow object, None if not found+ """+ try:+ workflow = await Runner.resource_mgr.get_workflow(workflow_id=workflow_id, tag=self.agent_config.id)+ return workflow+ except Exception as e:+ logger.error(f"Failed to find workflow {workflow_id}: {e}")+ return None++ def _is_workflow_interrupted(self, result) -> bool:+ """Check if workflow is interrupted++ Args:+ result: WorkflowOutput object++ Returns:+ True if interrupted, False otherwise+ """+ if not result:+ return False++ # Check state (compare enum value)+ if hasattr(result, 'state'):+ return result.state == WorkflowExecutionState.INPUT_REQUIRED++ return Falsediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/common/logging/default/default_impl.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/common/logging/default/default_impl.pynew file mode 100644index 0000000000..cbb7f36189--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/common/logging/default/default_impl.py@@ -0,0 +1,626 @@+# -*- coding: UTF-8 -*-+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""+Default Logging Implementation Module++Provides default logging implementations, including:+- DefaultLogger: Default logger implementation+- SafeRotatingFileHandler: Secure log file rotation handler+- ContextFilter: Context filter (adapted for async environments)+"""++import json+import logging+import os+import sys+from datetime import (+ datetime,+ timezone,+)+from logging.handlers import RotatingFileHandler+from typing import (+ Any,+ Dict,+ List,+ Optional,+)++from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.common.logging.events import (+ BaseLogEvent,+ create_log_event,+ LogEventType,+ LogLevel,+)+from openjiuwen.core.common.logging.protocol import LoggerProtocol+from openjiuwen.core.common.logging.utils import (+ get_log_max_bytes,+ get_session_id,+ normalize_and_validate_log_path,+)+++class SafeRotatingFileHandler(RotatingFileHandler):+ """+ Secure log file rotation handler++ Extends standard RotatingFileHandler, providing:+ - Secure file permission settings+ - Support for log file name patterns+ - Automatic log directory creation+ - Backup file permission management+ """++ def __init__(+ self,+ filename: str,+ *args: Any,+ log_file_pattern: Optional[str] = None,+ backup_file_pattern: Optional[str] = None,+ **kwargs: Any,+ ) -> None:+ """+ Initialize secure log file rotation handler++ Args:+ filename: Log file path+ *args: Other positional arguments for RotatingFileHandler+ log_file_pattern: Log file name pattern (supports {name}, {ext}, {pid}, {timestamp}, etc.)+ backup_file_pattern: Backup file name pattern+ **kwargs: Other keyword arguments for RotatingFileHandler+ """+ if log_file_pattern:+ filename = self._format_filename(filename, log_file_pattern)++ # Ensure log file directory exists+ log_dir = os.path.dirname(filename)+ if log_dir:+ try:+ abs_log_dir = os.path.abspath(os.path.expanduser(log_dir))+ os.makedirs(abs_log_dir, mode=0o750, exist_ok=True)+ except OSError:+ pass++ super().__init__(filename, *args, **kwargs)+ self.backup_file_pattern = backup_file_pattern or "{baseFilename}.{index}"++ # Set log file permissions+ try:+ os.chmod(self.baseFilename, 0o640)+ except OSError as e:+ raise build_error(+ StatusCode.COMMON_LOG_EXECUTION_RUNTIME_ERROR,+ error_msg=f"failed to set file permissions: {e}"+ ) from e++ def _format_filename(self, base_filename: str, pattern: str) -> str:+ """+ Format filename according to pattern++ Args:+ base_filename: Base filename+ pattern: Format pattern++ Returns:+ Formatted filename++ Supported placeholders:+ - {name}: Filename (without extension)+ - {ext}: File extension+ - {pid}: Process ID+ - {timestamp}: Timestamp (YYYYMMDDHHMMSS)+ - {date}: Date (YYYYMMDD)+ - {time}: Time (HHMMSS)+ - {datetime}: Datetime (YYYY-MM-DD_HH-MM-SS)+ """+ dir_path = os.path.dirname(base_filename)+ file_name = os.path.basename(base_filename)++ if "." in file_name:+ name_part, ext_part = file_name.rsplit(".", 1)+ ext = "." + ext_part+ else:+ name_part = file_name+ ext = ""++ now = datetime.now(tz=timezone.utc)+ replacements = {+ "name": name_part,+ "ext": ext,+ "pid": str(os.getpid()),+ "timestamp": now.strftime("%Y%m%d%H%M%S"),+ "date": now.strftime("%Y%m%d"),+ "time": now.strftime("%H%M%S"),+ "datetime": now.strftime("%Y-%m-%d_%H-%M-%S"),+ }++ try:+ formatted_name = pattern.format(**replacements)++ # If pattern doesn't have {ext} and original file has extension, append extension+ if "{ext}" not in pattern and ext and not formatted_name.endswith(ext):+ formatted_name = formatted_name + ext++ if dir_path:+ return os.path.join(dir_path, formatted_name)+ else:+ return formatted_name+ except KeyError:+ # If pattern has unsupported placeholder, return original filename+ return base_filename++ def doRollover(self) -> None:+ """+ Perform log rotation++ Set backup file permissions during rotation to ensure security.+ """+ super().doRollover()++ # Set backup file permissions+ for i in range(self.backupCount, 0, -1):+ sfn = self.backup_file_pattern.format(baseFilename=self.baseFilename, index=i)+ if os.path.exists(sfn):+ try:+ os.chmod(sfn, 0o440) # Read-only permission+ except OSError as e:+ raise build_error(+ StatusCode.COMMON_LOG_EXECUTION_RUNTIME_ERROR,+ error_msg=f"failed to set backup file permissions: {e}"+ ) from e++ # Set new log file permissions+ try:+ os.chmod(self.baseFilename, 0o640)+ except OSError as e:+ raise build_error(+ StatusCode.COMMON_LOG_EXECUTION_RUNTIME_ERROR,+ error_msg=f"failed to set log file permissions: {e}"+ ) from e+++class ContextFilter(logging.Filter):+ """+ Context filter++ Adds context information (trace_id and log_type) to log records.+ Adapted for async environments, uses contextvars to get context information.+ """++ def __init__(self, log_type: str) -> None:+ """+ Initialize context filter++ Args:+ log_type: Log type identifier+ """+ super().__init__()+ self.log_type = log_type++ def filter(self, record: logging.LogRecord) -> bool:+ """+ Filter log record, add context information++ Args:+ record: Log record object++ Returns:+ Always returns True (does not filter any records)+ """+ # Get trace_id from context variable (adapted for async environments)+ record.trace_id = get_session_id()++ # Set log type, special handling for performance type+ record.log_type = "perf" if self.log_type == "performance" else self.log_type++ return True+++class DefaultLogger(LoggerProtocol):+ """+ Default logger implementation++ Implements LoggerProtocol interface, providing complete logging functionality:+ - Supports console and file output+ - Supports log rotation+ - Automatic control character cleanup+ - Automatic caller information detection+ - Automatic context information injection+ """++ # Control character mapping table for cleaning control characters in log messages+ _CONTROL_CHAR_MAP = {+ "\r": "\\r",+ "\n": "\\n",+ "\t": "\\t",+ "\b": "\\b",+ "\v": "\\v",+ "\f": "\\f",+ "\0": "\\0",+ }++ def __init__(self, log_type: str, config: Dict[str, Any]) -> None:+ """+ Initialize default logger++ Args:+ log_type: Log type identifier+ config: Log configuration dictionary+ """+ self.log_type = log_type+ self.config = config.copy() # Use copy to avoid external modification impact+ self._logger = logging.getLogger(log_type)+ self._setup_logger()++ def _setup_logger(self) -> None:+ """+ Setup logger++ Set log level, output targets, and formatter according to configuration.+ """+ # Parse log level+ level_config = self.config.get("level", "WARNING")+ if isinstance(level_config, str):+ level = getattr(logging, level_config.upper(), logging.WARNING)+ elif isinstance(level_config, int):+ level = level_config+ else:+ level = logging.WARNING++ self._logger.setLevel(level)++ # Get output targets and log file path+ output = self.config.get("output", ["console"])+ log_file = self.config.get("log_file", f"{self.log_type}.log")++ normalize_and_validate_log_path(log_file)++ # Clear existing handlers+ for handler in self._logger.handlers[:]:+ handler.close()+ self._logger.removeHandler(handler)++ # Add console handler+ if "console" in output:+ stream_handler = logging.StreamHandler(stream=sys.stdout)+ stream_handler.addFilter(ContextFilter(self.log_type))+ stream_handler.setFormatter(self._get_formatter())+ self._logger.addHandler(stream_handler)++ # Add file handler+ if "file" in output:+ try:+ abs_log_file = os.path.abspath(os.path.expanduser(log_file))+ except (OSError, TypeError):+ # If path normalization fails, use original path+ abs_log_file = log_file++ # Ensure log directory exists+ log_dir = os.path.dirname(abs_log_file)+ if log_dir:+ try:+ os.makedirs(log_dir, mode=0o750, exist_ok=True)+ except OSError as e:+ raise build_error(+ StatusCode.COMMON_LOG_PATH_INIT_FAILED,+ error_msg=f"the log_dir is `{log_dir}`, error detail: {e}"+ ) from e++ # Get configuration parameters+ backup_count = self.config.get("backup_count", 20)+ max_bytes = get_log_max_bytes(self.config.get("max_bytes", 20 * 1024 * 1024))+ log_file_pattern = self.config.get("log_file_pattern", None)+ backup_file_pattern = self.config.get("backup_file_pattern", None)++ # Create file handler+ file_handler = SafeRotatingFileHandler(+ filename=abs_log_file,+ maxBytes=max_bytes,+ backupCount=backup_count,+ encoding="utf-8",+ log_file_pattern=log_file_pattern,+ backup_file_pattern=backup_file_pattern,+ )+ file_handler.addFilter(ContextFilter(self.log_type))+ file_handler.setFormatter(self._get_formatter())+ self._logger.addHandler(file_handler)++ def _get_formatter(self) -> logging.Formatter:+ """+ Get formatter++ Returns:+ Configured formatter instance+ """+ log_format = (+ self.config.get("format")+ or "%(asctime)s.%(msecs)03d | %(log_type)s | %(trace_id)s | %(levelname)s | %(message)s"+ )+ return logging.Formatter(log_format, datefmt="%Y-%m-%d %H:%M:%S")++ def _sanitize_message(self, msg: Any) -> str:+ """+ Clean control characters in log message++ Args:+ msg: Original message (can be any type)++ Returns:+ Cleaned message string+ """+ if not isinstance(msg, str):+ return str(msg)++ result: List[str] = []+ for char in msg:+ code = ord(char)+ if code < 32 or code == 127:+ # Replace control characters+ result.append(self._CONTROL_CHAR_MAP.get(char, f"\\x{code:02x}"))+ else:+ result.append(char)+ return "".join(result)++ def _process_log_message(+ self,+ log_level: LogLevel,+ msg: str,+ event_type: Optional[LogEventType | str] = None,+ event: Optional[BaseLogEvent] = None,+ **kwargs: Any,+ ) -> str:+ """+ Process log message, supporting both string and structured event objects++ - If event is provided, uses it directly (structured logging).+ - If event_type is provided, creates a structured event using create_log_event (structured logging).+ - If neither event nor event_type is provided, returns plain string message (no structured logging).++ Args:+ log_level: Log level for the message+ msg: Log message (string)+ event_type: Event type for creating structured event+ (LogEventType enum or string identifier, only used when event is None)+ event: Optional structured log event object+ **kwargs: Additional keyword arguments for event creation++ Returns:+ Processed message string (plain string if no event_type/event, JSON format if structured logging)+ """+ if event is not None:+ # If structured event is provided, use it directly+ # Ensure log_level is set correctly+ if event.log_level != log_level:+ event.log_level = log_level++ # BaseLogEvent always has a message field+ # Only set message if msg is provided and not empty, otherwise keep existing message+ if msg and msg.strip():+ event.message = self._sanitize_message(msg)+ elif not event.message:+ # If event has no message and msg is empty, set empty string+ event.message = ""++ # Convert event to dictionary and then to JSON+ event_dict = event.to_dict()+ try:+ return json.dumps(event_dict, ensure_ascii=False, default=str)+ except (TypeError, ValueError):+ # If JSON serialization fails, fall back to string representation+ return str(event_dict)+ else:+ # If event_type is not provided, return plain string message (no structured logging)+ if event_type is None:+ return self._sanitize_message(msg)++ # If event_type is provided, create a structured event using create_log_event+ # Get trace_id from context if available and not provided in kwargs+ if "trace_id" not in kwargs:+ trace_id = get_session_id()+ if trace_id != "default_trace_id":+ kwargs["trace_id"] = trace_id++ # Set default module information if not provided+ if "module_id" not in kwargs:+ kwargs["module_id"] = self.log_type+ if "module_name" not in kwargs:+ kwargs["module_name"] = self.log_type++ # Set message field (use BaseLogEvent.message field instead of metadata)+ if "message" not in kwargs:+ kwargs["message"] = self._sanitize_message(msg)++ # Create structured event+ event_obj = create_log_event(event_type, log_level=log_level, **kwargs)++ # Convert to JSON+ event_dict = event_obj.to_dict()+ try:+ return json.dumps(event_dict, ensure_ascii=False, default=str)+ except (TypeError, ValueError):+ return str(event_dict)++ def debug(self, msg: str, *args: Any, **kwargs: Any) -> None:+ """+ Log DEBUG level message++ Args:+ msg: Log message (string)+ *args: Additional positional arguments+ **kwargs: Additional keyword arguments (can include event_type, event for structured logging)+ """+ # Extract event_type, event, and stacklevel from kwargs+ event_type = kwargs.pop("event_type", None)+ event = kwargs.pop("event", None)+ stacklevel = kwargs.pop("stacklevel", 2)+ # Remaining kwargs are used for event creation+ processed_msg = self._process_log_message(LogLevel.DEBUG, msg, event_type, event, **kwargs)+ self._logger.debug(processed_msg, *args, stacklevel=stacklevel)++ def info(self, msg: str, *args: Any, **kwargs: Any) -> None:+ """+ Log INFO level message++ Args:+ msg: Log message (string)+ *args: Additional positional arguments+ **kwargs: Additional keyword arguments (can include event_type, event for structured logging)+ """+ # Extract event_type, event, and stacklevel from kwargs+ event_type = kwargs.pop("event_type", None)+ event = kwargs.pop("event", None)+ stacklevel = kwargs.pop("stacklevel", 2)+ # Remaining kwargs are used for event creation+ processed_msg = self._process_log_message(LogLevel.INFO, msg, event_type, event, **kwargs)+ self._logger.info(processed_msg, *args, stacklevel=stacklevel)++ def warning(self, msg: str, *args: Any, **kwargs: Any) -> None:+ """+ Log WARNING level message++ Args:+ msg: Log message (string)+ *args: Additional positional arguments+ **kwargs: Additional keyword arguments (can include event_type, event for structured logging)+ """+ # Extract event_type, event, and stacklevel from kwargs+ event_type = kwargs.pop("event_type", None)+ event = kwargs.pop("event", None)+ stacklevel = kwargs.pop("stacklevel", 2)+ # Remaining kwargs are used for event creation+ processed_msg = self._process_log_message(LogLevel.WARNING, msg, event_type, event, **kwargs)+ self._logger.warning(processed_msg, *args, stacklevel=stacklevel)++ def error(self, msg: str, *args: Any, **kwargs: Any) -> None:+ """+ Log ERROR level message++ Args:+ msg: Log message (string)+ *args: Additional positional arguments+ **kwargs: Additional keyword arguments (can include event_type, event for structured logging)+ """+ # Extract event_type, event, and stacklevel from kwargs+ event_type = kwargs.pop("event_type", None)+ event = kwargs.pop("event", None)+ stacklevel = kwargs.pop("stacklevel", 2)+ # Remaining kwargs are used for event creation+ processed_msg = self._process_log_message(LogLevel.ERROR, msg, event_type, event, **kwargs)+ self._logger.error(processed_msg, *args, stacklevel=stacklevel)++ def critical(self, msg: str, *args: Any, **kwargs: Any) -> None:+ """+ Log CRITICAL level message++ Args:+ msg: Log message (string)+ *args: Additional positional arguments+ **kwargs: Additional keyword arguments (can include event_type, event for structured logging)+ """+ # Extract event_type, event, and stacklevel from kwargs+ event_type = kwargs.pop("event_type", None)+ event = kwargs.pop("event", None)+ stacklevel = kwargs.pop("stacklevel", 2)+ # Remaining kwargs are used for event creation+ processed_msg = self._process_log_message(LogLevel.CRITICAL, msg, event_type, event, **kwargs)+ self._logger.critical(processed_msg, *args, stacklevel=stacklevel)++ def exception(self, msg: str, *args: Any, **kwargs: Any) -> None:+ """+ Log exception (includes stack trace)++ Args:+ msg: Log message (string)+ *args: Additional positional arguments+ **kwargs: Additional keyword arguments (can include event_type, event for structured logging)+ """+ import traceback++ # Extract event_type, event, and stacklevel from kwargs+ event_type = kwargs.pop("event_type", None)+ event = kwargs.pop("event", None)+ stacklevel = kwargs.pop("stacklevel", 2)++ # Capture stack trace if not already provided+ if event is None and "stacktrace" not in kwargs:+ try:+ stacktrace = "".join(traceback.format_exc())+ if stacktrace and stacktrace.strip() != "NoneType: None":+ kwargs["stacktrace"] = stacktrace+ except Exception:+ pass # If traceback capture fails, continue without it++ # Remaining kwargs are used for event creation+ processed_msg = self._process_log_message(LogLevel.ERROR, msg, event_type, event, **kwargs)+ self._logger.exception(processed_msg, *args, stacklevel=stacklevel)++ def log(self, level: int, msg: str, *args: Any, **kwargs: Any) -> None:+ """+ Log message at specified level++ Args:+ level: Log level (integer)+ msg: Log message (string)+ *args: Additional positional arguments+ **kwargs: Additional keyword arguments (can include event_type, event for structured logging)+ """+ # Map logging level to LogLevel enum+ log_level_map = {+ logging.DEBUG: LogLevel.DEBUG,+ logging.INFO: LogLevel.INFO,+ logging.WARNING: LogLevel.WARNING,+ logging.ERROR: LogLevel.ERROR,+ logging.CRITICAL: LogLevel.CRITICAL,+ }+ log_level = log_level_map.get(level, LogLevel.INFO)+ # Extract event_type, event, and stacklevel from kwargs+ event_type = kwargs.pop("event_type", None)+ event = kwargs.pop("event", None)+ stacklevel = kwargs.pop("stacklevel", 2)+ # Remaining kwargs are used for event creation+ processed_msg = self._process_log_message(log_level, msg, event_type, event, **kwargs)+ self._logger.log(level, processed_msg, *args, stacklevel=stacklevel)++ def set_level(self, level: int) -> None:+ """Set log level"""+ self._logger.setLevel(level)++ def add_handler(self, handler: logging.Handler) -> None:+ """Add log handler"""+ self._logger.addHandler(handler)++ def remove_handler(self, handler: logging.Handler) -> None:+ """Remove log handler"""+ self._logger.removeHandler(handler)++ def add_filter(self, log_filter: logging.Filter) -> None:+ """Add log filter"""+ self._logger.addFilter(log_filter)++ def remove_filter(self, log_filter: logging.Filter) -> None:+ """Remove log filter"""+ self._logger.removeFilter(log_filter)++ def get_config(self) -> Dict[str, Any]:+ """+ Get log configuration++ Returns:+ Copy of configuration dictionary+ """+ return self.config.copy()++ def reconfigure(self, config: Dict[str, Any]) -> None:+ """+ Reconfigure logger++ Args:+ config: New configuration dictionary+ """+ self.config = config.copy()+ self._setup_logger()++ def logger(self):+ return self._loggerdiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/legacy/reasoner/intent_detector.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/legacy/reasoner/intent_detector.pynew file mode 100644index 0000000000..6916328573--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/legacy/reasoner/intent_detector.py@@ -0,0 +1,299 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++# Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved++import json+import re+import secrets+from typing import List, Union++from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.single_agent.legacy import AgentConfig+from openjiuwen.core.controller.legacy.config.reasoner_config import (+ IntentDetectionConfig+)+from openjiuwen.core.controller.legacy.event.event import Event+from openjiuwen.core.controller.legacy.task.task import Task, TaskInput+from openjiuwen.core.controller.legacy.constants import IntentDetectionConstants+from openjiuwen.core.controller.legacy.utils import ReasonerUtils+from openjiuwen.core.common.constants.enums import TaskType+from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.logging import logger+from openjiuwen.core.context_engine import ContextEngine+from openjiuwen.core.session.agent import Session+from openjiuwen.core.common.security.user_config import UserConfig+from openjiuwen.core.foundation.llm import BaseMessage+++class IntentDetector:+ """IntentDetector - Intent detection module for message intent recognition+ and task generation"""++ def __init__(+ self,+ intent_config: IntentDetectionConfig,+ agent_config: AgentConfig,+ context_engine: ContextEngine,+ session: Session+ ):+ """+ Initialize IntentDetector++ Args:+ intent_config: IntentDetection config+ agent_config: Agent config+ context_engine: Context engine+ session: Session environment+ """+ self.intent_config = intent_config+ self.agent_config = agent_config+ self.context_engine = context_engine+ self.session = session++ async def process_message(self, event: Event) -> List[Task]:+ """+ Process event, detect intent and generate tasks++ Args:+ message: Input message++ Returns:+ List[Task]: Generated task list+ """+ # 1. Detect intent+ llm_inputs = self._prepare_detection_input(event)+ session_id = self.session.get_session_id()+ if UserConfig.is_sensitive():+ logger.info(f"[%s] <LLM Input>", session_id)+ else:+ logger.info(f"[%s] <LLM Input>: %s", session_id, llm_inputs)++ # 2. Call LLM for intent detection+ llm_output = await self._invoke_llm_get_output(llm_inputs)+ if UserConfig.is_sensitive():+ logger.info(f"[%s] <LLM Output>", session_id)+ else:+ logger.info(f"[%s] <LLM Output>: %s", session_id, llm_output)+ detected_intent_id = self._parse_intent_from_output(llm_output)++ # 3. Create tasks from intent+ tasks = self._generate_tasks_from_intent(detected_intent_id, event)+ return tasks++ def _generate_tasks_from_intent(+ self,+ intent_id: str,+ event: Event+ ) -> List[Task]:+ """+ Create task objects++ Create tasks from detected intent:+ 1. Map intent to task type+ 2. Create task instance+ 3. Return task list++ Note: If agent_config has no workflows, use intent_id as target_name+ """+ tasks = []+ session_id = self.session.get_session_id()+ task_unique_id = f"{session_id}_intent_{intent_id}_{secrets.token_hex(4)}"++ if intent_id == IntentDetectionConstants.DEFAULT_CLASS:+ # No match, return empty task list+ return tasks++ # If no workflows, use intent_id as target+ workflows = getattr(self.agent_config, 'workflows', None) or []+ if not workflows:+ task_input = TaskInput(+ target_id=intent_id,+ target_name=intent_id,+ arguments=event.content+ )+ task = Task(+ agent_id=self.agent_config.id,+ task_id=task_unique_id,+ task_type=TaskType.WORKFLOW,+ input=task_input+ )+ tasks.append(task)+ logger.info(+ f"[%s] success to create task for intent (direct): %s",+ session_id, intent_id+ )+ return tasks++ # Match workflow when workflows exist+ for workflow in workflows:+ if workflow.id == intent_id:+ task_input = TaskInput(+ target_id=workflow.id,+ target_name=workflow.name,+ arguments=event.content+ )+ task = Task(+ agent_id=self.agent_config.id,+ task_id=task_unique_id,+ task_type=TaskType.WORKFLOW,+ input=task_input+ )+ tasks.append(task)+ logger.info(+ f"[%s] success to create task for intent: %s",+ session_id, intent_id+ )+ break+ return tasks++ def _parse_intent_from_output(self, llm_output: str) -> str:+ """+ Parse intent from LLM output++ Extract intent from LLM output:+ 1. Parse intent label from output+ 2. Return workflow id or category name++ Note: If agent_config has no workflows, return category name directly+ """+ detected_intent_id = ""+ session_id = self.session.get_session_id()+ try:+ cleaned = re.sub(+ r'^\s*```json\s*|\s*```\s*$',+ '',+ llm_output.strip(),+ flags=re.IGNORECASE+ )+ cleaned = re.sub(+ r"^\s*'''json\s*|\s*'''\s*$",+ '',+ cleaned,+ flags=re.IGNORECASE+ )+ output_data = json.loads(cleaned, strict=False)+ detected_class_number = int(output_data.get('result', ''))+ if (detected_class_number <= 0 or+ detected_class_number > len(self.intent_config.category_list)):+ # Unknown intent+ logger.warning("get unknown class")+ else:+ detected_intent_name = (+ self.intent_config.category_list[detected_class_number - 1]+ )++ # If no workflows, return category name directly+ workflows = getattr(self.agent_config, 'workflows', None) or []+ if not workflows:+ logger.info(+ f"[%s] get intent (direct category): %s",+ session_id, detected_intent_name+ )+ return detected_intent_name++ # Match workflow when workflows exist+ # Prefer description match, fallback to name match+ for workflow in workflows:+ workflow_label = (+ workflow.description if workflow.description+ else workflow.name+ )+ if workflow_label == detected_intent_name:+ detected_intent_id = workflow.id+ logger.info(+ f"[%s] get intent: %s", session_id, detected_intent_id+ )+ break+ return detected_intent_id+ except Exception as e:+ if UserConfig.is_sensitive():+ logger.error("failed to parse JSON from LLM output")+ else:+ logger.error(+ "failed to parse JSON from LLM output, error: %s", str(e)+ )+ raise++ return IntentDetectionConstants.DEFAULT_CLASS++ async def _invoke_llm_get_output(+ self,+ llm_inputs: Union[List[BaseMessage], str]+ ) -> str:+ try:+ model = await ReasonerUtils.get_model(+ self.agent_config.model+ )+ llm_output = await model.invoke(+ llm_inputs,+ model=self.agent_config.model.model_info.model_name+ )+ llm_output_content = llm_output.content.strip()+ except Exception as e:+ raise build_error(+ StatusCode.AGENT_CONTROLLER_INVOKE_CALL_FAILED, error_msg=str(e)+ ) from e++ return llm_output_content++ def _prepare_detection_input(self, event: Event) -> str:+ """+ Prepare intent detection input++ Combine current message and history as LLM input:+ 1. Format current message+ 2. Format history+ 3. Combine as LLM input+ """+ category_list = "分类0:意图不明\n" + "\n".join(+ f"分类{i+1}:{c}"+ for i, c in enumerate(self.intent_config.category_list)+ )+ current_inputs = {}+ current_inputs.update({+ IntentDetectionConstants.USER_PROMPT:+ self.intent_config.user_prompt,+ IntentDetectionConstants.CATEGORY_LIST: category_list,+ IntentDetectionConstants.DEFAULT_CLASS:+ self.intent_config.default_class,+ IntentDetectionConstants.ENABLE_HISTORY:+ self.intent_config.enable_history,+ IntentDetectionConstants.ENABLE_INPUT:+ self.intent_config.enable_input,+ IntentDetectionConstants.EXAMPLE_CONTENT:+ "\n\n".join(self.intent_config.example_content),+ IntentDetectionConstants.CHAT_HISTORY_MAX_TURN:+ self.intent_config.chat_history_max_turn,+ IntentDetectionConstants.CHAT_HISTORY: ""+ })++ # Update chat history+ if self.intent_config.enable_history:+ chat_history = ReasonerUtils.get_chat_history(+ self.context_engine,+ self.session,+ self.intent_config.chat_history_max_turn+ )+ chat_history_str = ""+ for history in chat_history:+ chat_history_str += "{}: {}\n".format(+ IntentDetectionConstants.ROLE_MAP.get(history.role, "用户"),+ history.content+ )+ current_inputs.update({+ IntentDetectionConstants.CHAT_HISTORY: chat_history_str+ })++ # Process current input+ if self.intent_config.enable_input:+ current_inputs.update({+ IntentDetectionConstants.INPUT: event.content.get_query() or ""+ })+ llm_inputs = (+ self.intent_config.intent_detection_template+ .format(current_inputs)+ .to_messages()+ )+ return llm_inputs+diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/legacy/utils.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/legacy/utils.pynew file mode 100644index 0000000000..f755bcedaa--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/legacy/utils.py@@ -0,0 +1,314 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import copy+from typing import List, Dict, Any, Optional, TYPE_CHECKING++from openjiuwen.core.common.constants.enums import TaskType+from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.single_agent.legacy import AgentConfig+from openjiuwen.core.controller.legacy.event.event import Event+from openjiuwen.core.controller.legacy.task.task import Task, TaskInput+from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.logging import logger+from openjiuwen.core.common.security.json_utils import JsonUtils+from openjiuwen.core.common.security.user_config import UserConfig+from openjiuwen.core.common.utils.hash_util import generate_key+from openjiuwen.core.context_engine import ContextEngine+from openjiuwen.core.session.interaction.interactive_input import InteractiveInput+from openjiuwen.core.session.agent import Session+from openjiuwen.core.session.stream.base import OutputSchema+from openjiuwen.core.foundation.llm import ModelConfig, BaseMessage, AssistantMessage, UserMessage, ToolMessage, \+ ModelClientConfig, ModelRequestConfig, Model+from openjiuwen.core.foundation.prompt import PromptTemplate+from openjiuwen.core.foundation.llm import ToolCall+from openjiuwen.core.workflow import WorkflowOutput++if TYPE_CHECKING:+ from openjiuwen.core.runner import Runner+++class MessageHandlerUtils:++ @staticmethod+ def format_llm_inputs(+ inputs: Any,+ chat_history: List[BaseMessage],+ config: AgentConfig,+ keywords: Optional[dict] = None+ ) -> List[BaseMessage]:+ if isinstance(inputs, InteractiveInput):+ user_fields = {}+ elif isinstance(inputs, dict):+ user_fields = copy.deepcopy(inputs)+ else:+ user_fields = {"query": inputs}++ if keywords:+ user_fields.update(keywords)++ system_prompt = (PromptTemplate(+ content=config.prompt_template+ ).format(user_fields).to_messages())++ return MessageHandlerUtils.concat_system_prompt_with_chat_history(system_prompt, chat_history)++ @staticmethod+ def concat_system_prompt_with_chat_history(system_prompt: List[BaseMessage],+ chat_history: List[BaseMessage]) -> List[BaseMessage]:+ result_messages = []++ if not chat_history or chat_history[0].role != "system":+ result_messages.extend(system_prompt)++ result_messages.extend(chat_history)++ return result_messages++ @staticmethod+ def parse_llm_output(response: BaseMessage, config: AgentConfig) -> List[Task]:+ """Parse LLM output, return task list"""+ return MessageHandlerUtils.create_tasks_from_tool_calls(+ response.tool_calls, config+ )++ @staticmethod+ def create_tasks_from_tool_calls(+ tool_calls: List[ToolCall],+ config: AgentConfig+ ) -> List[Task]:+ if not tool_calls:+ return []++ result = []+ for tool_call in tool_calls:+ tool_name = tool_call.name+ for workflow in config.workflows:+ if workflow.name == tool_name:+ task_type = TaskType.WORKFLOW+ target_id = f"{workflow.id}_{workflow.version}"+ arguments = {}+ try:+ arguments = JsonUtils.safe_json_loads(tool_call.arguments)+ except Exception as e:+ if UserConfig.is_sensitive():+ logger.error("LLM Agent parse tool call workflow's arguments error")+ raise build_error(StatusCode.AGENT_CONTROLLER_TOOL_EXECUTION_PROCESS_ERROR,+ error_msg="LLM-generated workflow arguments are invalid") from e+ else:+ logger.error(f"LLM Agent parse tool call workflow({tool_name})'s arguments error: "+ f"{tool_call.arguments}")+ raise build_error(StatusCode.AGENT_CONTROLLER_TOOL_EXECUTION_PROCESS_ERROR,+ error_msg=f"LLM-generated workflow ({tool_name}) arguments "+ f"are invalid: {tool_call.arguments}") from e++ result.append(Task(+ task_id=tool_call.id,+ input=TaskInput(+ target_id=target_id,+ target_name=tool_name,+ arguments=arguments+ ),+ task_type=task_type+ ))+ break+ for plugin in config.plugins:+ if plugin.name == tool_name:+ task_type = TaskType.PLUGIN+ arguments = {}+ try:+ arguments = JsonUtils.safe_json_loads(tool_call.arguments)+ except Exception as e:+ if UserConfig.is_sensitive():+ logger.error("LLM Agent parse tool call plugin's arguments error")+ raise build_error(StatusCode.AGENT_CONTROLLER_TOOL_EXECUTION_PROCESS_ERROR,+ error_msg="LLM-generated plugin arguments are invalid") from e+ else:+ logger.error(f"LLM Agent parse tool call plugin({tool_name})'s arguments error: "+ f"{tool_call.arguments}")+ raise build_error(StatusCode.AGENT_CONTROLLER_TOOL_EXECUTION_PROCESS_ERROR,+ error_msg=f"LLM-generated plugin ({tool_name}) arguments "+ f"are invalid: {tool_call.arguments}") from e+ result.append(Task(+ task_id=tool_call.id,+ input=TaskInput(+ target_name=tool_name,+ arguments=arguments+ ),+ task_type=task_type+ ))+ break+ if not result:+ raise build_error(+ StatusCode.AGENT_TOOL_NOT_FOUND,+ error_msg="failed to create task from tool calls"+ )+ return result++ @staticmethod+ def determine_task_type(tool_name: str, config: AgentConfig) -> TaskType:+ for workflow in config.workflows:+ if tool_name == workflow.name:+ return TaskType.WORKFLOW++ for plugin in config.plugins:+ if tool_name == plugin.name:+ return TaskType.PLUGIN++ raise build_error(StatusCode.AGENT_TOOL_NOT_FOUND, error_msg=f"not find tool call type: {tool_name}")++ @staticmethod+ def is_interaction_result(exec_result: Any) -> bool:+ return (isinstance(exec_result, dict) and+ exec_result.get("error") and+ isinstance(exec_result.get("value"), list))++ @staticmethod+ def create_interrupt_result(e, tool_name: str) -> Dict[str, Any]:+ return {+ "error": True,+ "value": e.message,+ "tool_name": tool_name+ }++ @staticmethod+ def validate_execution_inputs(exec_result: Any, sub_task_result: Any) -> bool:+ return exec_result is not None++ @staticmethod+ def should_add_user_message(query: str, context_engine: ContextEngine, session: Session) -> bool:+ agent_context = context_engine.get_context(session_id=session.get_session_id())+ last_message = agent_context.get_messages(size=1)++ if not last_message:+ return True+ last_message = last_message[0]++ if last_message.role == 'tool':+ logger.info("Skipping user message - post-tool-call request")+ return False++ if last_message.role == 'user' and last_message.content == query:+ logger.info("Skipping duplicate user message")+ return False++ return True++ @staticmethod+ async def add_user_message(query: Any, context_engine: ContextEngine, session: Session):+ if MessageHandlerUtils.should_add_user_message(query, context_engine, session):+ agent_context = context_engine.get_context(session_id=session.get_session_id())+ user_message = UserMessage(content=query)+ await agent_context.add_messages(user_message)+ if UserConfig.is_sensitive():+ logger.info(f"Added user message")+ else:+ logger.info(f"Added user message: {query}")++ @staticmethod+ async def add_ai_message(ai_message: AssistantMessage, context_engine: ContextEngine, session: Session):+ if ai_message:+ agent_context = context_engine.get_context(session_id=session.get_session_id())+ await agent_context.add_messages(ai_message)++ @staticmethod+ async def add_tool_result(event: Event, context_engine: ContextEngine, session: Session):+ if event:+ agent_context = context_engine.get_context(session_id=session.get_session_id())+ tool_result = event.content.task_result.output+ if isinstance(tool_result, OutputSchema):+ payload = tool_result.payload+ if isinstance(payload, dict):+ tool_result = payload.get("output", "")+ elif isinstance(tool_result, WorkflowOutput):+ tool_result = tool_result.result+ content = JsonUtils.safe_json_dumps(tool_result, str(tool_result), ensure_ascii=False)+ tool_message = ToolMessage(content=content,+ tool_call_id=event.context.task_id)+ await agent_context.add_messages(tool_message)++ @staticmethod+ def get_chat_history(context_engine: ContextEngine, session: Session, config: AgentConfig) -> List[BaseMessage]:+ agent_context = context_engine.get_context(session_id=session.get_session_id())+ chat_history = agent_context.get_messages()+ max_rounds = config.constrain.reserved_max_chat_rounds+ return chat_history[-2 * max_rounds:]++ @staticmethod+ def filter_inputs(schema: dict, user_data: dict) -> dict:+ """Filter and validate user input, extract fields by schema"""+ if not schema:+ return {}++ required_fields = {+ k for k, v in schema.items()+ if isinstance(v, dict) and v.get("required") is True+ }++ filtered = {}+ for k in schema:+ if k not in user_data:+ if k in required_fields:+ raise KeyError(f"missing required parameter: {k}")+ continue+ filtered[k] = user_data[k]++ return filtered++ @staticmethod+ async def add_workflow_message_to_chat_history(message: BaseMessage, workflow_id: str,+ context_engine: ContextEngine, session: Session):+ """Add message to workflow chat history"""+ workflow_context = context_engine.get_context(+ context_id=workflow_id,+ session_id=session.get_session_id()+ )+ workflow_context.add_messages(message)+++class ReasonerUtils:+ @staticmethod+ def get_chat_history(context_engine: ContextEngine, session: Session,+ chat_history_max_turn: int) -> List[BaseMessage]:+ """Get history by max conversation rounds"""+ agent_context = context_engine.get_context(session_id=session.get_session_id())+ chat_history = agent_context.get_messages()+ return chat_history[-2 * chat_history_max_turn:]++ @staticmethod+ async def get_model(model_config: ModelConfig):+ """Get model instance by config"""+ from openjiuwen.core.runner import Runner+ model_id = generate_key(+ model_config.model_info.api_key,+ model_config.model_info.api_base,+ model_config.model_provider+ )++ model = await Runner.resource_mgr.get_model(model_id=model_id)++ if model is None:+ model_client_config = ModelClientConfig(+ client_id=model_id,+ client_provider=model_config.model_provider,+ api_key=model_config.model_info.api_key,+ api_base=model_config.model_info.api_base,+ timeout=model_config.model_info.timeout,+ verify_ssl=False,+ ssl_cert=None,+ )+ model_request_config = ModelRequestConfig(+ model=model_config.model_info.model_name,+ temperature=model_config.model_info.temperature,+ top_p=model_config.model_info.top_p,+ **(model_config.model_info.model_extra or {})+ )++ def create_model():+ return Model(model_client_config=model_client_config, model_config=model_request_config)++ Runner.resource_mgr.add_model(model_id=model_id, model=create_model)++ model = await Runner.resource_mgr.get_model(model_id=model_id)++ return modeldiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/modules/intent_recognizer.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/modules/intent_recognizer.pynew file mode 100644index 0000000000..43c1ad826a--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/modules/intent_recognizer.py@@ -0,0 +1,449 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+++"""Intent recognition module.++This module implements event handling based on intent recognition, including:++- IntentRecognizer: recognizes user intent from input events.+- EventHandlerWithIntentRecognition: event handler that routes logic by+ recognized intent.++Workflow:+ 1. Receive an input event.+ 2. Use ``IntentRecognizer`` to recognize intent.+ 3. Call the corresponding handler method based on intent type.++Supported intent types (see ``IntentType`` for details):+- CREATE_TASK+- PAUSE_TASK+- RESUME_TASK+- CONTINUE_TASK+- SUPPLEMENT_TASK+- CANCEL_TASK+- MODIFY_TASK+- SWITCH_TASK+- UNKNOWN_TASK+"""+import asyncio+import json+from abc import ABC, abstractmethod+from typing import TYPE_CHECKING, List++from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.context_engine import ContextEngine, ModelContext+from openjiuwen.core.controller import DataFrame, TextDataFrame, FileDataFrame, JsonDataFrame, IntentType, TaskStatus, \+ Task+from openjiuwen.core.controller.base import ControllerConfig+from openjiuwen.core.controller.modules.event_handler import EventHandler, EventHandlerInput+from openjiuwen.core.controller.modules.intent_toolkits import IntentToolkits+from openjiuwen.core.controller.modules.task_manager import TaskManager, TaskFilter+from openjiuwen.core.controller.schema import Intent+from openjiuwen.core.controller.schema.event import Event, InputEvent, TaskFailedEvent, TaskCompletionEvent, \+ TaskInteractionEvent+from openjiuwen.core.foundation.llm import SystemMessage, UserMessage, ToolMessage+from openjiuwen.core.session.agent import Session+from openjiuwen.core.single_agent.ability_manager import AbilityManager+++class IntentRecognizer:+ """意图识别器++ 负责识别用户输入中的意图,将事件转换为Intent对象。+ """+ def __init__(+ self,+ config: ControllerConfig,+ task_manager: TaskManager,+ ability_manager: AbilityManager,+ context_engine: ContextEngine+ ):+ """初始化意图识别器++ Args:+ config: 控制器配置+ task_manager: 任务管理器+ ability_manager: 能力包+ context_engine: 上下文引擎+ """+ self._config = config+ self._task_manager = task_manager+ self._context_engine = context_engine+ self._ability_manager = ability_manager++ self._system_message = SystemMessage(content="""# 角色+你是一个任务管理助手,专门使用工具创建和管理任务。你的核心理念是:**任何用户请求都可以转化为一个任务**,并由任务管理器处理。++# 核心原则+1. **任务化一切**:对于任何用户请求(包括信息查询、事务处理、提醒等),你的第一反应不是直接执行或拒绝,而是思考如何将它创建为一个任务。+2. **透明管理**:如果任务需要外部能力(如天气API),你仍然创建它,并明确告知用户任务的状态。++# 工作流程+1. **解析请求**:理解用户想做什么。+2. **任务操作**:使用工具创建一个对应的任务或修改已有任务。+3. **永远不拒绝**:不声称“超出能力范围”,而是告知用户任务会由其他执行器处理。++# 任务目标+- 根据用户输入,**总是优先创建对应的任务**。+- 使用工具进行任务操作(创建、更新、列表、删除)。+- 只有纯粹闲聊或问候时不调用工具。+""")++ self._user_prompt_template = """你当前拥有的任务有:+{task_descriptions}++当前用户的输入为:+{query}++请根据你当前的任务和用户输入,进行合适的任务操作。+"""++ async def _prepare_user_message(self, query):+ tasks = await self._task_manager.get_task()+ task_prompt = []+ if tasks:+ for task in tasks:+ task_prompt.append(+ f"## Task id: {task.task_id}\n### Task description: {task.description}\nStatus: {task.status}\n")+ else:+ task_prompt.append("无")+ task_prompt = "\n".join(task_prompt)++ prompt = self._user_prompt_template.format(+ task_descriptions=task_prompt,+ query=query+ )+ return UserMessage(content=prompt)++ async def recognize(self, event: Event, session: Session) -> List[Intent]:+ """识别意图++ Args:+ event: 输入事件+ session: 会话对象++ Returns:+ Intent: 识别出的意图对象+ """++ context = self._context_engine.get_context(session_id=session.get_session_id())+ if not context:+ context = await self._context_engine.create_context(session=session)++ if not isinstance(event, InputEvent):+ raise ValueError++ inputs: List[DataFrame] = event.input_data+ texts = [df for df in inputs if isinstance(df, TextDataFrame)]+ files = [df for df in inputs if isinstance(df, FileDataFrame)]+ jsons = [df for df in inputs if isinstance(df, JsonDataFrame)]++ if files or jsons:+ raise build_error(+ status=StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg="Inputs with files or jsons are not supported for intent recognition."+ )++ if len(texts) > 1:+ raise build_error(+ status=StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg="Multiple inputs are not supported for intent recognition."+ )++ from openjiuwen.core.runner import Runner+ model = await Runner.resource_mgr.get_model(model_id=self._config.intent_llm_id)+ user_message = await self._prepare_user_message(query=texts[0].text)+ await context.add_messages(user_message)+ toolkits = IntentToolkits(event, self._config.intent_confidence_threshold)+ max_message_len = 50+ response = await model.invoke(+ messages=[self._system_message] + context.get_messages(size=max_message_len),+ tools=toolkits.get_openai_tool_schemas(self._config.intent_type_list)+ )+ await context.add_messages(response)++ intents = []+ while True:+ if not response.tool_calls:+ break+ else:+ for tool_call in response.tool_calls:+ instance = getattr(toolkits, tool_call.name)+ intent, result = await instance(**json.loads(tool_call.arguments))+ intents.append(intent)+ await context.add_messages(ToolMessage(+ tool_call_id=tool_call.id,+ content=result+ ))+ response = await model.invoke(+ messages=[self._system_message] + context.get_messages(size=max_message_len),+ tools=toolkits.get_openai_tool_schemas()+ )+ await context.add_messages(response)++ return intents+++class EventHandlerWithIntentRecognition(EventHandler):+ """基于意图识别的事件处理器++ 在EventHandler的基础上增加意图识别功能,根据识别出的意图调用相应的处理方法。+ """++ def __init__(self):+ super().__init__()+ self.recognizer = IntentRecognizer(+ self._config,+ self.task_manager,+ self.ability_manager,+ self.context_engine+ )++ async def handle_input(self, inputs: EventHandlerInput):+ """处理输入事件++ 识别输入意图,并调用相应方法处理意图,可重写。++ Args:+ inputs: 事件处理器输入+ """+ intents = await self.recognizer.recognize(inputs.event, inputs.session)+ tasks = []+ for intent in intents:+ if intent.intent_type == IntentType.CREATE_TASK:+ tasks.append(asyncio.create_task(self._process_create_task_intent(intent, inputs.session)))+ elif intent.intent_type == IntentType.PAUSE_TASK:+ tasks.append(asyncio.create_task(self._process_pause_task_intent(intent, inputs.session)))+ elif intent.intent_type == IntentType.RESUME_TASK:+ tasks.append(asyncio.create_task(self._process_resume_task_intent(intent, inputs.session)))+ elif intent.intent_type == IntentType.CONTINUE_TASK:+ tasks.append(asyncio.create_task(self._process_continue_task_intent(intent, inputs.session)))+ elif intent.intent_type == IntentType.SUPPLEMENT_TASK:+ tasks.append(asyncio.create_task(self._process_supplement_task_intent(intent, inputs.session)))+ elif intent.intent_type == IntentType.CANCEL_TASK:+ tasks.append(asyncio.create_task(self._process_cancel_task_intent(intent, inputs.session)))+ elif intent.intent_type == IntentType.MODIFY_TASK:+ tasks.append(asyncio.create_task(self._process_modify_task_intent(intent, inputs.session)))+ else:+ tasks.append(asyncio.create_task(self._process_unknown_task_intent(intent, inputs.session)))+ return await asyncio.gather(*tasks)++ async def handle_task_interaction(self, inputs: EventHandlerInput):+ """处理任务交互事件++ 将interaction直接抛出给用户,可重写。++ Args:+ inputs: 事件处理器输入+ """+ if not isinstance(inputs.event, TaskInteractionEvent):+ raise build_error(+ status=StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg=f"Input Event has to be type of TaskInteractionEvent, not {type(inputs.event)}"+ )+ await inputs.session.write_stream({+ "interaction": inputs.event.interaction+ })++ async def handle_task_completion(self, inputs: EventHandlerInput):+ """处理任务完成事件++ 将任务完成信息抛出给用户,可重写。++ Args:+ inputs: 事件处理器输入+ """+ if not isinstance(inputs.event, TaskCompletionEvent):+ raise build_error(+ status=StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg=f"Input Event has to be type of TaskCompletionEvent, not {type(inputs.event)}"+ )+ await inputs.session.write_stream({+ "result": inputs.event.task_result+ })++ async def handle_task_failed(self, inputs: EventHandlerInput):+ """处理任务失败事件++ 将错误信息抛出给用户,可重写。++ Args:+ inputs: 事件处理器输入+ """+ if not isinstance(inputs.event, TaskFailedEvent):+ raise build_error(+ status=StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg=f"Input Event has to be type of TaskFailedEvent, not {type(inputs.event)}"+ )+ await inputs.session.write_stream({+ "error_message": inputs.event.error_message+ })++ async def _process_create_task_intent(self, intent: Intent, session: Session):+ """处理创建任务意图++ 用户自定义执行新任务逻辑。++ Args:+ intent: 意图+ session: Session+ """+ task = Task(+ session_id=session.get_session_id(),+ task_id=intent.target_task_id,+ task_type="default_task_type",+ description=intent.target_task_description,+ priority=1,+ context_id=f"{session.get_session_id()}_{intent.target_task_id}",+ inputs=[intent.event] if isinstance(intent.event, InputEvent) else None,+ status=TaskStatus.SUBMITTED,+ error_message=None,+ metadata=intent.metadata,+ )+ await self.task_manager.add_task(task)++ async def _process_pause_task_intent(self, intent: Intent, session: Session):+ """处理暂停任务意图++ 调用 task_scheduler 的 pause_task 方法打断目标任务。++ Args:+ intent: 意图+ session: Session+ """+ await self.task_scheduler.pause_task(intent.target_task_id)++ async def _process_resume_task_intent(self, intent: Intent, session: Session):+ """处理恢复任务意图++ 将要恢复的任务的状态置为 submitted。++ Args:+ intent: 意图+ session: Session+ """+ task = await self.task_manager.get_task(TaskFilter(task_id=intent.target_task_id))+ task = task[0]+ if task.status == TaskStatus.PAUSED:+ task.status = TaskStatus.SUBMITTED+ await self.task_manager.update_task(task)++ async def _process_continue_task_intent(self, intent: Intent, session: Session):+ """处理接续任务意图++ Args:+ intent: 意图+ session: Session+ """+ if not isinstance(intent.event, InputEvent):+ raise build_error(+ status=StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg=f"Input Event has to be type of InputEvent, not {type(intent.event)}"+ )+ previous_events = []+ context_ids = []+ for task_id in intent.depend_task_id:+ old_tasks = await self.task_manager.get_task(TaskFilter(task_id=task_id))+ if old_tasks:+ previous_events.extend(old_tasks[0].inputs)+ context_id = old_tasks[0].context_id+ context_ids.append(context_id)+ event: InputEvent = intent.event+ event.input_data.append(+ JsonDataFrame(data={+ context_id: (await self._context_engine.get_context(context_id)).get_messages()+ for context_id in context_ids+ })+ )+ previous_events.append(event)+ task = Task(+ session_id=session.get_session_id(),+ task_id=intent.target_task_id,+ task_type="default_task_type",+ description=intent.target_task_description,+ priority=1,+ context_id=f"{session.get_session_id()}_{intent.target_task_id}",+ inputs=previous_events,+ status=TaskStatus.SUBMITTED,+ error_message=None,+ metadata=intent.metadata,+ )+ await self.task_manager.add_task(task)++ async def _process_supplement_task_intent(self, intent: Intent, session: Session):+ """处理补充任务意图++ Args:+ intent: 意图+ session: Session+ """+ if intent.intent_type != IntentType.SUPPLEMENT_TASK:+ raise build_error(+ status=StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg=f"Input Event has to be type of SUPPLEMENT_TASK, not {type(intent.event)}"+ )++ tasks = await self.task_manager.get_task(TaskFilter(task_id=intent.target_task_id))+ task = tasks[0]+ await self.task_scheduler.pause_task(intent.target_task_id)+ task.description += "\n\n任务补充信息:\n{}".format(intent.supplementary_info)+ task.status = TaskStatus.SUBMITTED+ await self.task_manager.update_task(task)++ async def _process_cancel_task_intent(self, intent: Intent, session: Session):+ """处理取消任务意图++ 调用 task_scheduler 的 cancel_task 方法取消目标任务。++ Args:+ intent: 意图+ session: Session+ """+ if intent.intent_type != IntentType.CANCEL_TASK:+ raise build_error(+ status=StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg=f"Input event has to be type of CANCEL_TASK, not {type(intent.event)}"+ )++ await self.task_scheduler.cancel_task(intent.target_task_id)++ async def _process_modify_task_intent(self, intent: Intent, session: Session):+ """处理修改任务意图++ 修改目标任务后,将其状态置为 submitted。++ Args:+ intent: 意图+ session: Session+ """+ if intent.intent_type != IntentType.MODIFY_TASK:+ raise build_error(+ status=StatusCode.AGENT_CONTROLLER_RUNTIME_ERROR,+ error_msg=f"Input Event has to be type of InputEvent, not {type(intent.event)}"+ )+ await self.task_scheduler.cancel_task(intent.target_task_id)+ task = await self.task_manager.get_task(TaskFilter(task_id=intent.target_task_id))+ task[0].description = intent.target_task_description+ if not isinstance(task[0].inputs, list):+ task[0].inputs = [intent.event]+ else:+ task[0].inputs.append(intent.event)+ task[0].status = TaskStatus.SUBMITTED+ await self.task_manager.update_task(task[0])++ async def _process_unknown_task_intent(self, intent: Intent, session: Session):+ """处理未知任务意图++ 返回 Intent 的 clarification_prompt 字段给用户。++ Args:+ intent: 意图+ session: Session+ """+ if intent.intent_type != IntentType.UNKNOWN_TASK:+ raise ValueError+ await session.write_stream({+ "clarification_prompt": intent.clarification_prompt+ })diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/schema/event.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/schema/event.pynew file mode 100644index 0000000000..a03526aa41--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/controller/schema/event.py@@ -0,0 +1,137 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++from __future__ import annotations++import uuid+from enum import Enum+from typing import List, Optional, Union, Dict, Any, TYPE_CHECKING+from pydantic import BaseModel, Field++from openjiuwen.core.controller.schema.dataframe import DataFrame, TextDataFrame, JsonDataFrame++if TYPE_CHECKING:+ from openjiuwen.core.controller.schema.task import Task+++class EventType(str, Enum):+ """Event Type Enumeration++ Defines all supported event types:+ - INPUT: User input event+ - TASK_INTERACTION: Task interaction event (requires user interaction during task execution)+ - TASK_COMPLETION: Task completion event+ - TASK_FAILED: Task failed event+ """+ INPUT = "input"+ TASK_INTERACTION = "task_interaction",+ TASK_COMPLETION = "task_completion",+ TASK_FAILED = "task_failed"+++class Event(BaseModel):+ """Event Base Class++ Base class for all events, containing event type, event ID, and metadata.+ """+ event_type: EventType+ event_id: str = Field(default_factory=lambda: str(uuid.uuid4()))+ metadata: Optional[Dict[str, Any]] = None++ def __post_init__(self):+ """Post-initialization processing++ Ensures metadata is not None.+ """+ if self.metadata is None:+ self.metadata = {}+++class InputEvent(Event):+ """Input Event++ User input event containing input data.+ This is the main input type for the controller, used to receive user requests.++ Attributes:+ event_type: Event type, fixed as EventType.INPUT+ input_data: Input data list, supports text, file, and JSON formats+ """+ event_type: EventType = EventType.INPUT+ input_data: List[DataFrame] = Field(default_factory=list)++ @classmethod+ def from_user_input(cls, user_input: Union[str, dict, 'InputEvent']) -> "InputEvent":+ """Create input event from user input++ Convenience method to convert user input to InputEvent.++ Args:+ user_input: User input, supports string, dictionary, and InputEvent++ Returns:+ InputEvent: Input event object+ """+ if isinstance(user_input, cls):+ return user_input++ if isinstance(user_input, str):+ return cls(+ event_type=EventType.INPUT,+ input_data=[TextDataFrame(text=user_input)]+ )+ if isinstance(user_input, dict):+ return cls(+ event_type=EventType.INPUT,+ input_data=[JsonDataFrame(data=user_input)]+ )++ raise TypeError(f"Unsupported user input type: {type(user_input)}. Must be str, dict, or InputEvent.")+++class TaskInteractionEvent(Event):+ """Task Interaction Event++ Event generated when user interaction is required during task execution.+ This event is generated when a task requires the user to provide additional information or confirmation.++ Attributes:+ event_type: Event type, fixed as EventType.TASK_INTERACTION+ interaction: Interaction content list, containing information that requires user interaction+ task: Associated task object+ """+ event_type: EventType = EventType.TASK_INTERACTION+ interaction: List[DataFrame] = Field(default_factory=list)+ task: Optional[Task] = None+++class TaskCompletionEvent(Event):+ """Task Completion Event++ Event generated when task execution is completed, containing task results.+ This event is generated when a task successfully completes and includes the task's output results.++ Attributes:+ event_type: Event type, fixed as EventType.TASK_COMPLETION+ task_result: Task result list, containing the task's output data+ task: Associated task object+ """+ event_type: EventType = EventType.TASK_COMPLETION+ task_result: List[DataFrame] = Field(default_factory=list)+ task: Optional[Task] = None+++class TaskFailedEvent(Event):+ """Task Failed Event++ Event generated when task execution fails, containing error information.+ This event is generated when an error occurs during task execution and includes error details.++ Attributes:+ event_type: Event type, fixed as EventType.TASK_FAILED+ error_message: Error message describing the reason for task failure+ task: Associated task object+ """+ event_type: EventType = EventType.TASK_FAILED+ error_message: Optional[str] = None+ task: Optional[Task] = Nonediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/model.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/model.pynew file mode 100644index 0000000000..a14c278e48--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/model.py@@ -0,0 +1,306 @@+# -*- coding: UTF-8 -*-+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+from typing import Union, List, Optional, AsyncIterator, Type, Dict++from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.foundation.llm.model_clients.dashscope_model_client import DashScopeModelClient+from openjiuwen.core.foundation.llm.schema.message import BaseMessage, AssistantMessage, UserMessage+from openjiuwen.core.foundation.llm.schema.message_chunk import AssistantMessageChunk+from openjiuwen.core.foundation.tool import ToolInfo+from openjiuwen.core.foundation.llm.schema.config import ModelRequestConfig, ModelClientConfig+from openjiuwen.core.foundation.llm.output_parsers.output_parser import BaseOutputParser+from openjiuwen.core.foundation.llm.schema.generation_response import (+ ImageGenerationResponse,+ AudioGenerationResponse,+ VideoGenerationResponse+)+from openjiuwen.core.foundation.llm.model_clients.base_model_client import BaseModelClient+from openjiuwen.core.foundation.llm.model_clients.openai_model_client import OpenAIModelClient+from openjiuwen.core.foundation.llm.model_clients.siliconflow_model_client import SiliconFlowModelClient++_CLIENT_TYPE_REGISTRY: Dict[str, Type[BaseModelClient]] = {+ "OpenAI": OpenAIModelClient,+ "OpenRouter": OpenAIModelClient,+ "SiliconFlow": SiliconFlowModelClient,+ "DashScope": DashScopeModelClient,+}+++class Model:+ """Unified LLM invocation entry point++ Responsibilities:+ 1. Get/create ModelClient instance based on client_id or configuration+ 2. Delegate to ModelClient to execute actual LLM calls+ 3. Provide unified interface (ainvoke, astream)++ Usage:++ Method 1: Dynamic creation (pass configuration)+ model = Model(model_config, client_config)+ response = await model.ainvoke("Hello")+ """++ def __init__(+ self,+ model_client_config: Optional[ModelClientConfig],+ model_config: ModelRequestConfig = None,+ ):+ """Initialize Model instance++ Args:+ model_config: Model parameter configuration+ model_client_config: Client configuration+ """+ self.model_config = model_config+ self.model_client_config = model_client_config+ self._client: Optional[BaseModelClient] = None++ if model_client_config is not None:+ self._client = self._create_model_client(model_client_config)+ else:+ raise build_error(StatusCode.MODEL_SERVICE_CONFIG_ERROR,+ error_msg="model client config is none")++ def _create_model_client(self, client_config: ModelClientConfig) -> BaseModelClient:+ """Create corresponding ModelClient instance based on client_type++ Args:+ client_config: Client configuration++ Returns:+ BaseModelClient: ModelClient instance++ Raises:+ ValueError: When client_provider is not supported+ """+ if client_config.client_provider is None:+ raise build_error(StatusCode.MODEL_SERVICE_CONFIG_ERROR,+ error_msg="model client config client_provider is none")+ if client_config.client_id is None:+ raise build_error(StatusCode.MODEL_SERVICE_CONFIG_ERROR,+ error_msg="model client config client_id is none")+ client_provider = client_config.client_provider++ client_class = _CLIENT_TYPE_REGISTRY.get(client_provider)++ if client_class is None:+ supported_types = ", ".join(_CLIENT_TYPE_REGISTRY.keys())++ raise build_error(+ StatusCode.MODEL_SERVICE_CONFIG_ERROR,+ error_msg=f"Unsupported client_type: '{client_provider}', Supported types: {supported_types}"+ )++ return client_class(self.model_config, client_config)++ async def invoke(+ self,+ messages: Union[str, List[BaseMessage], List[dict]],+ *,+ tools: Union[List[ToolInfo], List[dict], None] = None,+ temperature: Optional[float] = None,+ top_p: Optional[float] = None,+ max_tokens: Optional[int] = None,+ stop: Union[Optional[str], None] = None,+ model: str = None,+ output_parser: Optional[BaseOutputParser] = None,+ timeout: float = None,+ **kwargs+ ) -> AssistantMessage:+ """Asynchronous LLM invocation++ Args:+ :param output_parser:+ :param model:+ :param stop:+ :param temperature:+ :param tools:+ :param messages:+ :param top_p:+ :param max_tokens:+ :param timeout:+ **kwargs: Other parameters++ Returns:+ AssistantMessage+ """+ return await self._client.invoke(+ messages=messages,+ stop=stop,+ model=model,+ tools=tools,+ temperature=temperature,+ top_p=top_p,+ max_tokens=max_tokens,+ output_parser=output_parser,+ timeout=timeout,+ **kwargs+ )++ async def stream(+ self,+ messages: Union[str, List[BaseMessage], List[dict]],+ *,+ tools: Union[List[ToolInfo], List[dict], None] = None,+ temperature: Optional[float] = None,+ top_p: Optional[float] = None,+ max_tokens: Optional[int] = None,+ stop: Union[Optional[str], None] = None,+ model: str = None,+ output_parser: Optional[BaseOutputParser] = None,+ timeout: float = None,+ **kwargs+ ) -> AsyncIterator[AssistantMessageChunk]:+ """Asynchronous streaming LLM invocation++ Args:+ :param output_parser:+ :param model:+ :param stop:+ :param temperature:+ :param tools:+ :param messages:+ :param top_p:+ :param max_tokens:+ :param timeout:+ **kwargs: Other parameters++ Yields:+ AssistantMessageChunk+ """+ async for chunk in self._client.stream(+ messages=messages,+ stop=stop,+ model=model,+ tools=tools,+ temperature=temperature,+ top_p=top_p,+ max_tokens=max_tokens,+ output_parser=output_parser,+ timeout=timeout,+ **kwargs+ ):+ yield chunk++ async def generate_image(+ self,+ messages: List[UserMessage],+ *,+ model: Optional[str] = None,+ size: Optional[str] = "1664*928",+ negative_prompt: Optional[str] = None,+ n: Optional[int] = 1,+ prompt_extend: bool = True,+ watermark: bool = False,+ seed: int = 0,+ **kwargs+ ) -> ImageGenerationResponse:+ """Generate image from text prompt (text-to-image or text+image-to-image)++ Args:+ messages: List of UserMessage containing text descriptions and optional image URLs+ model: Model to use for generation+ size: Size of the generated image (e.g., "1664*928", "1024*1024")+ negative_prompt: Optional negative prompt to guide what not to generate+ n: Number of images to generate+ prompt_extend: Whether to automatically extend/enhance the prompt+ watermark: Whether to add watermark to generated images+ seed: Random seed for reproducible generation (0 for random)+ **kwargs: Additional parameters++ Returns:+ ImageGenerationResponse: Generated image response+ """+ return await self._client.generate_image(+ messages=messages,+ model=model,+ negative_prompt=negative_prompt,+ size=size,+ n=n,+ prompt_extend=prompt_extend,+ watermark=watermark,+ seed=seed,+ **kwargs+ )++ async def generate_speech(+ self,+ messages: List[UserMessage],+ *,+ model: Optional[str] = None,+ voice: Optional[str] = "Cherry",+ language_type: Optional[str] = "Auto",+ **kwargs+ ) -> AudioGenerationResponse:+ """Generate speech audio from text++ Args:+ messages: List of UserMessage containing text to convert to speech+ model: Model to use for generation+ voice: Voice to use for speech synthesis (required), refer to supported voices+ language_type: Language type for synthesized audio, defaults to "Auto" for automatic detection+ **kwargs: Additional parameters++ Returns:+ AudioGenerationResponse: Generated audio response+ """+ return await self._client.generate_speech(+ messages=messages,+ model=model,+ voice=voice,+ language_type=language_type,+ **kwargs+ )++ async def generate_video(+ self,+ messages: List[UserMessage],+ *,+ img_url: Optional[str] = None,+ audio_url: Optional[str] = None,+ model: Optional[str] = None,+ size: Optional[str] = None,+ resolution: Optional[str] = None,+ duration: Optional[int] = 5,+ prompt_extend: bool = True,+ watermark: bool = False,+ negative_prompt: Optional[str] = None,+ seed: Optional[int] = None,+ **kwargs+ ) -> VideoGenerationResponse:+ """Generate video from text prompt (text-to-video or image-to-video)++ Args:+ messages: List of UserMessage containing text description of the video to generate+ img_url: Optional URL/path of the first frame image for image-to-video generation.+ Supports: public URL, local file path (file:// prefix), or base64 encoded image+ audio_url: Optional URL of audio to add to the video+ model: Model to use for generation+ size: Video size (e.g., "1280*720"). Use '*' as separator.+ resolution: Video resolution (e.g., "720P", "1080P")+ duration: Duration of the video in seconds (default: 5)+ prompt_extend: Whether to automatically extend/enhance the prompt (default: True)+ watermark: Whether to add watermark to generated video (default: False)+ negative_prompt: Negative prompt to guide what not to generate+ seed: Random seed for reproducible generation+ **kwargs: Additional parameters++ Returns:+ VideoGenerationResponse: Generated video response+ """+ return await self._client.generate_video(+ messages=messages,+ img_url=img_url,+ audio_url=audio_url,+ model=model,+ size=size,+ resolution=resolution,+ duration=duration,+ prompt_extend=prompt_extend,+ watermark=watermark,+ negative_prompt=negative_prompt,+ seed=seed,+ **kwargs+ )diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.pynew file mode 100644index 0000000000..1cb96642dd--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/llm/schema/config.py@@ -0,0 +1,81 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+import uuid+from enum import Enum+from typing import Optional, Union, Any, Self++from pydantic import BaseModel, Field, model_validator+from pydantic.config import ExtraValues++from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.common.exception.codes import StatusCode+++class ProviderType(str, Enum):+ """ModelClientProvider type"""+ OpenAI = "OpenAI"+ OpenRouter = "OpenRouter"+ SiliconFlow = "SiliconFlow"+ DashScope = "DashScope"+++class ModelClientConfig(BaseModel):+ """ModelClient config"""+ client_id: str = Field(default_factory=lambda: str(uuid.uuid4()),+ description="The ModelClient client ID is a unique identifier used for registration in the Runner")+ client_provider: Union[ProviderType, str] = Field(+ ...,+ description="Service provider identification, Enumeration value: OpenAI, OpenRouter, "+ "SiliconFlow, DashScope or ICBC"+ )+ api_key: str = Field(..., description="API key")+ api_base: str = Field(..., description="API base URL")+ timeout: float = Field(default=60.0, gt=0, description="Request timeout in seconds (must be greater than 0)")+ max_retries: int = Field(default=3, description="Maximum number of retries")+ verify_ssl: bool = Field(default=True, description="Whether to verify SSL certificates")+ ssl_cert: Optional[str] = Field(default=None, description="Path to SSL certificate file")+ model_config = {"extra": "allow"} # Allow extra fields like user_id for ICBC integrations.++ @model_validator(mode='after')+ def validate_client_provider(self) -> Self:+ """Validate and normalize client_provider."""+ def to_provider_type(provider_name: str) -> Union[ProviderType, str]:+ try:+ return ProviderType(provider_name)+ except ValueError:+ return provider_name++ provider = self.client_provider.value if isinstance(self.client_provider, ProviderType) \+ else str(self.client_provider)+ provider = provider.strip()++ from openjiuwen.core.foundation.llm.model import _CLIENT_TYPE_REGISTRY++ if provider in _CLIENT_TYPE_REGISTRY:+ self.client_provider = to_provider_type(provider)+ return self++ # Normalize common lowercase/mixed-case provider values to canonical keys.+ provider_map = {k.lower(): k for k in _CLIENT_TYPE_REGISTRY.keys()}+ normalized_provider = provider_map.get(provider.lower())+ if normalized_provider:+ self.client_provider = to_provider_type(normalized_provider)+ return self++ supported_providers = ", ".join([*list(_CLIENT_TYPE_REGISTRY.keys()), "ICBC"])+ raise build_error(+ StatusCode.MODEL_PROVIDER_INVALID,+ error_msg=f"unavailable model provider: {self.client_provider},"+ f"and available providers are: {supported_providers}"+ )+ return self+++class ModelRequestConfig(BaseModel):+ """Model config"""+ model_name: str = Field(default="", alias="model", description="Model name, e.g. gpt-4")+ temperature: float = Field(default=0.95, description="Temperature parameter, controlling the randomness of outputs")+ top_p: float = Field(default=0.1, description="Top-p sampling parameter")+ max_tokens: Optional[int] = Field(default=None, description="Maximum number of tokens to generate")+ stop: Union[Optional[str], None] = Field(default=None, description="Stop sequence")+ model_config = {"extra": "allow"}diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/__init__.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/__init__.pynew file mode 100644index 0000000000..7134ebd231--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/__init__.py@@ -0,0 +1,42 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++from openjiuwen.core.foundation.tool.base import Tool, ToolCard, Input, Output+from openjiuwen.core.foundation.tool.function.function import LocalFunction+from openjiuwen.core.foundation.tool.mcp.base import (+ MCPTool,+ McpToolCard, McpServerConfig,+)+from openjiuwen.core.foundation.tool.mcp.client.mcp_client import McpClient+from openjiuwen.core.foundation.tool.mcp.client.playwright_client import PlaywrightClient+from openjiuwen.core.foundation.tool.mcp.client.sse_client import SseClient+from openjiuwen.core.foundation.tool.mcp.client.stdio_client import StdioClient+from openjiuwen.core.foundation.tool.mcp.client.streamable_http_client import StreamableHttpClient+from openjiuwen.core.foundation.tool.schema import ToolInfo+from openjiuwen.core.foundation.tool.service_api.restful_api import RestfulApi, RestfulApiCard+from openjiuwen.core.foundation.tool.tool import tool++__all__ = [+ # constants/alias/func+ "Input",+ "Output",+ "tool",+ # all tools+ "Tool",+ "LocalFunction",+ "RestfulApi",+ "MCPTool",+ # for tool info/tool call+ "ToolCard",+ "RestfulApiCard",+ "ToolInfo",+ # for mcp tool+ "McpToolCard",+ "McpServerConfig",+ # mcp client+ "McpClient",+ "SseClient",+ "StdioClient",+ "StreamableHttpClient",+ "PlaywrightClient"+]diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/mcp/client/playwright_client.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/mcp/client/playwright_client.pynew file mode 100644index 0000000000..d339d6816d--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/mcp/client/playwright_client.py@@ -0,0 +1,132 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+import asyncio+from contextlib import AsyncExitStack+from typing import Any, List, Optional++from openjiuwen.core.common.logging import logger+from openjiuwen.core.foundation.tool import McpToolCard+from openjiuwen.core.foundation.tool.mcp.base import NO_TIMEOUT+from openjiuwen.core.foundation.tool.mcp.client.mcp_client import McpClient+++class PlaywrightClient(McpClient):+ """Playwright browser session based MCP client"""++ def __init__(self, server_path: str, name: str):+ super().__init__(server_path)+ self._name = name+ self._client = None+ self._session = None+ self._read = None+ self._write = None+ self._exit_stack = AsyncExitStack()+ self._is_disconnected: bool = False++ async def connect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ """Establish connection to Playwright MCP server"""+ from mcp import ClientSession, StdioServerParameters+ from mcp.client.sse import sse_client+ from mcp.client.stdio import stdio_client++ try:+ # Determine client type based on server_path type+ if isinstance(self._server_path, StdioServerParameters):+ self._client = stdio_client(self._server_path)+ self._read, self._write = await self._exit_stack.enter_async_context(self._client)+ logger.debug("Using Stdio transport for Playwright client")+ elif isinstance(self._server_path, str) and self._server_path.startswith(("http://", "https://")):+ self._client = sse_client(self._server_path)+ self._read, self._write = await self._exit_stack.enter_async_context(self._client)+ logger.debug("Using SSE transport for Playwright client")+ else:+ raise ValueError(f"Unsupported server_path type: {type(self._server_path)}")+ self._session = await self._exit_stack.enter_async_context(+ ClientSession(self._read, self._write, sampling_callback=None))+ await self._session.initialize()+ self._is_disconnected = False+ logger.info("Playwright client connected successfully")+ return True+ except Exception as e:+ logger.error(f"Playwright connection failed: {e}")+ await self.disconnect()+ return False++ async def disconnect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ """Close SSE connection"""+ if self._is_disconnected:+ logger.info("Playwright client disconnected successfully")+ return True+ try:+ await self._exit_stack.aclose()+ logger.info("Playwright client disconnected successfully")+ self._is_disconnected = True+ return True+ except (asyncio.CancelledError, RuntimeError):+ if self._client:+ await self._client.__aexit__(None, None, None)+ logger.info("Playwright client disconnected successfully")+ self._is_disconnected = True+ return True+ except Exception as e:+ logger.error(f"Playwright disconnection failed: {e}")+ return False+ finally:+ self._session = None+ self._client = None+ self._read = None+ self._write = None++ async def list_tools(self, *, timeout: float = NO_TIMEOUT) -> List[Any]:+ """List available browser tools"""+ if not self._session:+ raise RuntimeError("Not connected to Playwright server")++ try:+ tools_response = await self._session.list_tools()+ tools_list = [+ McpToolCard(+ name=tool.name,+ server_name=self._name,+ description=getattr(tool, "description", ""),+ input_params=getattr(tool, "inputSchema", {}),+ )+ for tool in tools_response.tools+ ]+ logger.info(f"Retrieved {len(tools_list)} browser tools from Playwright server")+ return tools_list+ except Exception as e:+ logger.error(f"Failed to list browser tools: {e}")+ raise++ async def call_tool(self, tool_name: str, arguments: dict, *, timeout: float = NO_TIMEOUT) -> Any:+ """Call browser tool"""+ if not self._session:+ raise RuntimeError("Not connected to Playwright server")++ try:+ logger.info(f"Calling browser tool '{tool_name}' with arguments: {arguments}")+ tool_result = await self._session.call_tool(tool_name, arguments=arguments)+ result_content = None+ if tool_result.content and len(tool_result.content) > 0:+ last_item = tool_result.content[-1]+ if hasattr(last_item, "text"):+ result_content = last_item.text+ elif hasattr(last_item, "data"):+ mime = getattr(last_item, "mimeType", "image/png")+ result_content = f"data:{mime};base64,{last_item.data}"+ logger.info(f"Browser tool '{tool_name}' call completed")+ return result_content+ except Exception as e:+ logger.error(f"Browser tool call failed: {e!r}")+ raise++ async def get_tool_info(self, tool_name: str, *, timeout: float = NO_TIMEOUT) -> Optional[Any]:+ """Get specific browser tool info"""+ tools = await self.list_tools(timeout=timeout)+ for tool in tools:+ if tool.name == tool_name:+ logger.debug(f"Found browser tool info for '{tool_name}'")+ return tool+ logger.warning(f"Browser tool '{tool_name}' not found")+ return Nonediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/mcp/client/stdio_client.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/mcp/client/stdio_client.pynew file mode 100644index 0000000000..f18e3f7b5c--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/mcp/client/stdio_client.py@@ -0,0 +1,135 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+import asyncio+from contextlib import AsyncExitStack+from typing import Any, List, Optional, Dict++from openjiuwen.core.common.logging import logger+from openjiuwen.core.foundation.tool import McpToolCard+from openjiuwen.core.foundation.tool.mcp.base import NO_TIMEOUT+from openjiuwen.core.foundation.tool.mcp.client.mcp_client import McpClient+++class StdioClient(McpClient):+ """Stdio transport based MCP client"""++ def __init__(self, server_path: str, name: str, params: Dict = None):+ super().__init__(server_path)+ self._name = name+ self._client = None+ self._session = None+ self._read = None+ self._write = None+ self._params = params if params else {}+ self._exit_stack = AsyncExitStack()+ self._is_disconnected: bool = False++ async def connect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ """Establish Stdio connection to the tool server"""+ from mcp import ClientSession, StdioServerParameters+ from mcp.client.stdio import stdio_client++ try:+ # server_path should be StdioServerParameters for stdio client+ valid_handlers = {"strict", "ignore", "replace"}+ handler = self._params.get('encoding_error_handler', 'strict')+ if handler not in valid_handlers:+ handler = 'strict'+ params = StdioServerParameters(command=self._params.get('command'),+ args=self._params.get('args'),+ env=self._params.get('env'),+ cwd=self._params.get('cwd'),+ encoding_error_handler=handler+ )++ self._client = stdio_client(params)+ self._read, self._write = await self._exit_stack.enter_async_context(self._client)+ self._session = await self._exit_stack.enter_async_context(+ ClientSession(self._read, self._write, sampling_callback=None))+ await self._session.initialize()+ self._is_disconnected = False+ logger.info("Stdio client connected successfully")+ return True+ except Exception as e:+ logger.error(f"Stdio connection failed: {e}")+ await self.disconnect()+ return False++ async def disconnect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ """Close SSE connection"""+ if self._is_disconnected:+ logger.info("Stdio client disconnected successfully")+ return True+ try:+ await self._exit_stack.aclose()+ logger.info("Stdio client disconnected successfully")+ self._is_disconnected = True+ return True+ except (asyncio.CancelledError, RuntimeError):+ if self._client:+ await self._client.__aexit__(None, None, None)+ logger.info("Stdio client disconnected successfully")+ self._is_disconnected = True+ return True+ except Exception as e:+ logger.error(f"Stdio disconnection failed: {e}")+ return False+ finally:+ self._session = None+ self._client = None+ self._read = None+ self._write = None++ async def list_tools(self, *, timeout: float = NO_TIMEOUT) -> List[Any]:+ """List available tools via Stdio"""+ if not self._session:+ raise RuntimeError("Not connected to Stdio server")++ try:+ tools_response = await self._session.list_tools()+ tools_list = [+ McpToolCard(+ name=tool.name,+ server_name=self._name,+ description=getattr(tool, "description", ""),+ input_params=getattr(tool, "inputSchema", {}),+ )+ for tool in tools_response.tools+ ]+ logger.info(f"Retrieved {len(tools_list)} tools from Stdio server")+ return tools_list+ except Exception as e:+ logger.error(f"Failed to list tools via Stdio: {e}")+ raise++ async def call_tool(self, tool_name: str, arguments: dict, *, timeout: float = NO_TIMEOUT) -> Any:+ """Call tool via Stdio"""+ if not self._session:+ raise RuntimeError("Not connected to Stdio server")++ try:+ logger.info(f"Calling tool '{tool_name}' via Stdio with arguments: {arguments}")+ tool_result = await self._session.call_tool(tool_name, arguments=arguments)+ result_content = None+ if tool_result.content and len(tool_result.content) > 0:+ last_item = tool_result.content[-1]+ if hasattr(last_item, "text"):+ result_content = last_item.text+ elif hasattr(last_item, "data"):+ mime = getattr(last_item, "mimeType", "image/png")+ result_content = f"data:{mime};base64,{last_item.data}"+ logger.info(f"Tool '{tool_name}' call completed via Stdio")+ return result_content+ except Exception as e:+ logger.error(f"Tool call failed via Stdio: {e!r}")+ raise++ async def get_tool_info(self, tool_name: str, *, timeout: float = NO_TIMEOUT) -> Optional[Any]:+ """Get specific tool info via Stdio"""+ tools = await self.list_tools(timeout=timeout)+ for tool in tools:+ if tool.name == tool_name:+ logger.debug(f"Found tool info for '{tool_name}' via Stdio")+ return tool+ logger.warning(f"Tool '{tool_name}' not found via Stdio")+ return Nonediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/mcp/client/streamable_http_client.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/mcp/client/streamable_http_client.pynew file mode 100644index 0000000000..206a8e7787--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/foundation/tool/mcp/client/streamable_http_client.py@@ -0,0 +1,206 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+import asyncio+from contextlib import AsyncExitStack+from typing import Any, List, Optional, Dict, AsyncGenerator++import httpx++from openjiuwen.core.common.logging import logger+from openjiuwen.core.foundation.tool import McpToolCard+from openjiuwen.core.foundation.tool.mcp.base import NO_TIMEOUT+from openjiuwen.core.foundation.tool.mcp.client.mcp_client import McpClient+++class StreamableHttpClient(McpClient):+ """Streamable HTTP transport based MCP client."""++ def __init__(+ self,+ server_path: str,+ name: str,+ auth_headers: Optional[Dict[str, str]] = None,+ auth_query_params: Optional[Dict[str, str]] = None,+ ):+ super().__init__(server_path)+ self._name = name+ self._client = None+ self._session = None+ self._read = None+ self._write = None+ self._get_session_id = None+ self._exit_stack = AsyncExitStack()+ self._is_disconnected: bool = False+ self._reconnect_lock = asyncio.Lock()+ if auth_headers is not None or auth_query_params is not None:+ self._auth_provider = AuthHeaderAndQueryProvider(+ auth_headers=auth_headers or {},+ auth_query_params=auth_query_params or {},+ )+ logger.info("Using custom header and query authorization for Streamable HTTP client")+ else:+ self._auth_provider = None++ @staticmethod+ def _is_retryable_transport_error(error: Exception) -> bool:+ name = error.__class__.__name__.lower()+ text = str(error).lower()+ markers = (+ "session terminated",+ "closedresourceerror",+ "brokenresourceerror",+ "endofstream",+ "stream closed",+ "connection closed",+ "remoteprotocolerror",+ "readerror",+ "writeerror",+ "not connected",+ "broken pipe",+ )+ return any(m in name or m in text for m in markers)++ async def _reconnect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ async with self._reconnect_lock:+ return await self.connect(retry_times=1, timeout=timeout)++ async def connect(self, *, timeout: float = NO_TIMEOUT, retry_times: int = 1) -> bool:+ from mcp import ClientSession+ from mcp.client.streamable_http import streamablehttp_client++ actual_timeout = timeout if timeout != NO_TIMEOUT else 60.0+ attempts = max(1, int(retry_times))+ for attempt in range(1, attempts + 1):+ try:+ await self.disconnect(timeout=timeout)+ self._client = streamablehttp_client(+ self._server_path,+ timeout=actual_timeout,+ auth=self._auth_provider,+ )+ self._read, self._write, self._get_session_id = await self._exit_stack.enter_async_context(self._client)+ self._session = await self._exit_stack.enter_async_context(+ ClientSession(self._read, self._write, sampling_callback=None)+ )+ await asyncio.wait_for(self._session.initialize(), timeout=actual_timeout)+ self._is_disconnected = False+ logger.info(f"Streamable HTTP client connected successfully to {self._server_path}")+ return True+ except asyncio.TimeoutError:+ logger.error(+ f"Streamable HTTP connection timed out after {actual_timeout:.1f}s "+ f"(attempt {attempt}/{attempts}): {self._server_path}"+ )+ await self.disconnect(timeout=timeout)+ except Exception as e:+ logger.error(+ f"Streamable HTTP connection failed to {self._server_path} "+ f"(attempt {attempt}/{attempts}): {e}"+ )+ await self.disconnect(timeout=timeout)+ return False++ async def disconnect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ """Close Streamable HTTP connection."""+ try:+ await self._exit_stack.aclose()+ logger.info("Streamable HTTP client disconnected successfully")+ self._is_disconnected = True+ return True+ except Exception as e:+ logger.error(f"Streamable HTTP disconnection failed: {e}")+ return False+ finally:+ self._session = None+ self._client = None+ self._read = None+ self._write = None+ self._get_session_id = None+ self._exit_stack = AsyncExitStack()++ async def list_tools(self, *, timeout: float = NO_TIMEOUT) -> List[Any]:+ """List available tools via Streamable HTTP."""+ if not self._session:+ connected = await self._reconnect(timeout=timeout)+ if not connected:+ raise RuntimeError("Not connected to Streamable HTTP server")++ for attempt in range(2):+ try:+ tools_response = await self._session.list_tools()+ tools_list = [+ McpToolCard(+ name=tool.name,+ server_name=self._name,+ description=getattr(tool, "description", ""),+ input_params=getattr(tool, "inputSchema", {}),+ )+ for tool in tools_response.tools+ ]+ logger.info(f"Retrieved {len(tools_list)} tools from Streamable HTTP server")+ return tools_list+ except Exception as e:+ if attempt == 0 and self._is_retryable_transport_error(e):+ logger.warning(f"Streamable HTTP list_tools retry after reconnect: {e}")+ connected = await self._reconnect(timeout=timeout)+ if connected:+ continue+ logger.error(f"Failed to list tools via Streamable HTTP: {e}")+ raise++ async def call_tool(self, tool_name: str, arguments: dict, *, timeout: float = NO_TIMEOUT) -> Any:+ """Call tool via Streamable HTTP."""+ if not self._session:+ connected = await self._reconnect(timeout=timeout)+ if not connected:+ raise RuntimeError("Not connected to Streamable HTTP server")++ for attempt in range(2):+ try:+ logger.info(f"Calling tool '{tool_name}' via Streamable HTTP with arguments: {arguments}")+ tool_result = await self._session.call_tool(tool_name, arguments=arguments)+ result_content = None+ if tool_result.content and len(tool_result.content) > 0:+ last_item = tool_result.content[-1]+ if hasattr(last_item, "text"):+ result_content = last_item.text+ elif hasattr(last_item, "data"):+ mime = getattr(last_item, "mimeType", "image/png")+ result_content = f"data:{mime};base64,{last_item.data}"+ logger.info(f"Tool '{tool_name}' call completed via Streamable HTTP")+ return result_content+ except Exception as e:+ if attempt == 0 and self._is_retryable_transport_error(e):+ logger.warning(f"Streamable HTTP tool call '{tool_name}' retry after reconnect: {e}")+ connected = await self._reconnect(timeout=timeout)+ if connected:+ continue+ logger.error(f"Tool call failed via Streamable HTTP: {e}")+ raise++ async def get_tool_info(self, tool_name: str, *, timeout: float = NO_TIMEOUT) -> Optional[Any]:+ """Get specific tool info via Streamable HTTP."""+ tools = await self.list_tools(timeout=timeout)+ for tool in tools:+ if tool.name == tool_name:+ logger.debug(f"Found tool info for '{tool_name}' via Streamable HTTP")+ return tool+ logger.warning(f"Tool '{tool_name}' not found via Streamable HTTP")+ return None+++class AuthHeaderAndQueryProvider(httpx.Auth):+ def __init__(self, auth_headers: Dict[str, str], auth_query_params: Dict[str, str]):+ self.headers = auth_headers+ self.query_params = auth_query_params++ async def async_auth_flow(self, request: httpx.Request) -> AsyncGenerator[httpx.Request, httpx.Response]:+ if self.headers:+ for key, value in self.headers.items():+ request.headers[key] = value++ if self.query_params:+ url = request.url.copy_merge_params(self.query_params)+ request.url = url++ yield requestdiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/retrieval/embedding/ollama_embedding.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/retrieval/embedding/ollama_embedding.pynew file mode 100644index 0000000000..37a56d63aa--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/retrieval/embedding/ollama_embedding.py@@ -0,0 +1,269 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+"""+Ollama Embedding Model Implementation++Implementation of Ollama embedding model.+"""++import asyncio+from itertools import chain+from typing import List, Optional++import requests++from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.common.logging import logger+from openjiuwen.core.retrieval.common.callbacks import BaseCallback+from openjiuwen.core.retrieval.common.config import EmbeddingConfig+from openjiuwen.core.retrieval.embedding.base import Embedding+++class OllamaEmbedding(Embedding):+ """Ollama embedding model implementation."""++ def __init__(+ self,+ config: EmbeddingConfig,+ hf_tokenizer_name: Optional[str] = None,+ timeout: int = 60,+ max_retries: int = 3,+ extra_headers: Optional[dict] = None,+ max_batch_size: int = 8,+ max_concurrent: int = 50,+ dimension: Optional[int] = None,+ ):+ """+ Initialize Ollama embedder.++ Args:+ config: Embedding model configuration+ hf_tokenizer_name: HuggingFace tokenizer name (optional)+ timeout: Request timeout in seconds+ max_retries: Maximum retry count+ extra_headers: Additional request headers+ """+ self.config = config+ self.model_name = config.model_name+ self.base_url = (config.base_url or "").rstrip("/")+ self.timeout = timeout+ self.max_retries = max_retries+ self.embed_url = f"{self.base_url}/api/embed"+ self._headers = extra_headers or {}+ self.max_batch_size = max_batch_size+ self.limiter = asyncio.Semaphore(max_concurrent)+ self._dimension: Optional[int] = None+ if dimension is not None:+ self._dimension = dimension++ # Initialize tokenizer if provided+ if hf_tokenizer_name:+ try:+ from transformers import AutoTokenizer++ self._tokenizer = AutoTokenizer.from_pretrained(hf_tokenizer_name)+ except ImportError:+ logger.warning("transformers not available, tokenizer disabled")+ self._tokenizer = None+ else:+ self._tokenizer = None++ # Test connection and model availability+ self._verify_model_availability()++ @property+ def tokenizer(self):+ return self._tokenizer++ def _verify_model_availability(self):+ """Verify that Ollama is running and the model is available."""+ try:+ # Check if Ollama is running+ response = requests.get(f"{self.base_url}/api/tags", timeout=5)+ response.raise_for_status()++ # Check if the model is available+ models = response.json().get("models", [])+ model_names = [model["name"] for model in models]++ if self.model_name not in model_names:+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_MODEL_NOT_FOUND,+ error_msg=f"Model '{self.model_name}' not found in available models: {model_names}. "+ f"Make sure to pull the model first: ollama pull {self.model_name}",+ )+ except requests.exceptions.RequestException as e:+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_CALL_FAILED,+ error_msg=f"Could not connect to Ollama at {self.base_url}. Is Ollama running?",+ cause=e,+ ) from e++ @property+ def dimension(self) -> int:+ """Return embedding dimension"""+ if self._dimension is None:+ # Get dimension by embedding a test text+ try:+ loop = asyncio.get_event_loop()+ if loop.is_running():+ # If event loop is running, use default value+ self._dimension = 768+ else:+ test_embedding = loop.run_until_complete(self._get_ollama_embedding("X"))+ if test_embedding:+ self._dimension = len(test_embedding[0])+ else:+ self._dimension = 768+ except Exception:+ # If failed to get, use default value+ self._dimension = 768+ return self._dimension++ async def embed_query(self, text: str, **kwargs) -> List[float]:+ if not text.strip():+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_INPUT_INVALID, error_msg="Empty text provided for embedding"+ )++ embeddings = await self._get_embeddings(text, **kwargs)+ return embeddings[0]++ async def embed_documents(+ self,+ texts: List[str],+ batch_size: Optional[int] = None,+ **kwargs,+ ) -> List[List[float]]:+ if not texts:+ raise build_error(StatusCode.RETRIEVAL_EMBEDDING_INPUT_INVALID, error_msg="Empty texts list provided")+ callback_cls = kwargs.pop("callback_cls", BaseCallback)+ if not isinstance(callback_cls, type) or not issubclass(callback_cls, BaseCallback):+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_CALLBACK_INVALID,+ error_msg=(+ f"callback_cls in OllamaEmbedding.embed_documents must be a subclass of "+ f"BaseCallback, got {type(callback_cls)}"+ ),+ )++ # Filter out empty texts+ non_empty_texts = [text for text in texts if text.strip()]+ if len(non_empty_texts) != len(texts):+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_INPUT_INVALID,+ error_msg=f"{len(texts) - len(non_empty_texts)} chunks are empty while embedding",+ )++ if not non_empty_texts:+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_INPUT_INVALID, error_msg="All texts are empty after filtering"+ )++ # Respect caller batch_size but never exceed configured max_batch_size+ bsz = batch_size or self.max_batch_size or 1+ if self.max_batch_size:+ bsz = min(bsz, self.max_batch_size)++ indices = list(range(0, len(non_empty_texts), bsz))+ callback_obj = callback_cls(seq=indices)++ async def process_batch(i: int) -> List[List[float]]:+ """Process a single batch with semaphore for concurrency control."""+ async with self.limiter:+ j = i + bsz+ batch = non_empty_texts[i:j]+ embeddings = await self._get_embeddings(batch, **kwargs)+ callback_obj(start_idx=i, end_idx=j, batch=batch)+ return embeddings++ # Create and run tasks for all batches concurrently+ tasks = [process_batch(i) for i in indices]+ results = await asyncio.gather(*tasks)+ all_embeddings = list(chain.from_iterable(results))++ return all_embeddings++ async def _get_embeddings(self, text: str | List[str], **kwargs) -> List[List[float]]:+ """Get embedding vectors"""++ payload = {+ "model": self.model_name,+ "input": text,+ "truncate": False,+ **kwargs,+ }++ for attempt in range(self.max_retries):+ try:+ response = await asyncio.to_thread(+ requests.post,+ self.embed_url,+ json=payload,+ headers=self._headers,+ timeout=self.timeout,+ )+ response.raise_for_status()+ result = response.json()+ if "embeddings" not in result:+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_RESPONSE_INVALID,+ error_msg=f"No embeddings in response: {result}",+ )++ return result["embeddings"]++ except requests.exceptions.RequestException as e:+ if attempt == self.max_retries - 1:+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_REQUEST_CALL_FAILED,+ error_msg=f"Failed to get embedding after {self.max_retries} attempts",+ cause=e,+ ) from e+ logger.warning(f"Attempt {attempt + 1} failed, retrying: {e}")++ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_UNREACHABLE_CALL_FAILED, error_msg="This should never be reached"+ )++ def _get_embeddings_sync(self, text: str | List[str], **kwargs) -> List[List[float]]:+ """Get embedding vectors"""++ payload = {+ "model": self.model_name,+ "input": text,+ "truncate": False,+ **kwargs,+ }++ for attempt in range(self.max_retries):+ try:+ response = requests.post(+ self.embed_url,+ json=payload,+ headers=self._headers,+ timeout=self.timeout,+ )+ response.raise_for_status()+ result = response.json()+ if "embeddings" not in result:+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_RESPONSE_INVALID,+ error_msg=f"No embeddings in response: {result}",+ )++ return result["embeddings"]++ except requests.exceptions.RequestException as e:+ if attempt == self.max_retries - 1:+ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_REQUEST_CALL_FAILED,+ error_msg=f"Failed to get embedding after {self.max_retries} attempts",+ cause=e,+ ) from e+ logger.warning(f"Attempt {attempt + 1} failed, retrying: {e}")++ raise build_error(+ StatusCode.RETRIEVAL_EMBEDDING_UNREACHABLE_CALL_FAILED, error_msg="This should never be reached"+ )diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/runner/resources_manager/tool_manager.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/runner/resources_manager/tool_manager.pynew file mode 100644index 0000000000..2d1f1b2a33--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/runner/resources_manager/tool_manager.py@@ -0,0 +1,215 @@+# -*- coding: UTF-8 -*-+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+import time+from copy import deepcopy+from dataclasses import dataclass+from typing import Any, List, Optional++from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.logging import runner_logger as logger+from openjiuwen.core.session.tracer import decorate_tool_with_trace+from openjiuwen.core.foundation.tool import Tool+from openjiuwen.core.foundation.tool import McpToolCard, MCPTool, McpServerConfig+from openjiuwen.core.foundation.tool import (+ McpClient,+ SseClient,+ StdioClient,+ StreamableHttpClient,+ PlaywrightClient+)+++@dataclass+class McpServerResource:+ config: McpServerConfig+ client: McpClient+ tool_ids: list[str]+ last_update_time: Any+ expiry_time: Optional[float] = None+++@dataclass+class SysOpToolResource:+ sys_op_id: str+ tool_ids: list[str]+ last_update_time: Any+++class ToolMgr:+ def __init__(self) -> None:+ self._tools: dict[str, Tool] = {}+ self._mcp_server_name_to_ids: dict[str, list[str]] = {}+ self._mcp_server_resources: dict[str, McpServerResource] = {}+ self._sys_op_resources: dict[str, SysOpToolResource] = {}++ def add_tool(self, tool_id: str, tool: Tool) -> None:+ if self._tools.get(tool_id) is not None:+ raise ValueError(f"already exist tool {tool_id}")+ self._tools[tool_id] = tool++ def get_tool(self, tool_id: str, session=None) -> Optional[Tool]:+ tool = self._tools.get(tool_id)+ return decorate_tool_with_trace(tool, session)++ def get_mcp_tool(self, tool_name: str, server_id: str, session):+ resource = self._mcp_server_resources.get(server_id)+ if resource:+ tool_id = self.generate_mcp_tool_id(server_id, resource.config.server_name, tool_name)+ return self.get_tool(tool_id, session)+ return None++ def get_mcp_tools(self, server_id: str, session):+ resource = self._mcp_server_resources.get(server_id)+ if resource:+ tool_ids = resource.tool_ids+ results = []+ for tool_id in tool_ids:+ results.append(self.get_tool(tool_id, session))+ return results+ return None++ def get_mcp_tool_id(self, server_id: str, tool_name=None):+ resource = self._mcp_server_resources.get(server_id)+ if resource:+ if tool_name is None:+ return resource.tool_ids+ tool_id = self.generate_mcp_tool_id(server_id, resource.config.server_name, tool_name)+ return tool_id+ else:+ return None++ def remove_tool(self, tool_id: str) -> Optional[Tool]:+ return self._tools.pop(tool_id, None)++ @staticmethod+ def generate_mcp_tool_id(server_id, server_name, tool_name):+ return f'{server_id}.{server_name}.{tool_name}'++ async def add_tool_server(self, server_config: McpServerConfig, expiry_time: Optional[float] = None) -> List[+ McpToolCard]:+ if self._mcp_server_resources.get(server_config.server_id) is not None:+ raise build_error(StatusCode.RESOURCE_MCP_SERVER_ADD_ERROR, server_config=server_config,+ reason="server_id is already exist")+ client = self._create_client(server_config)+ try:+ connected = await client.connect()+ if not connected:+ raise build_error(StatusCode.RESOURCE_MCP_SERVER_CONNECTION_ERROR, server_config=server_config,+ reason="")+ results = await self._inner_refresh_mcp_tools(client, server_config, expiry_time)+ self._mcp_server_name_to_ids.setdefault(server_config.server_name, []).append(server_config.server_id)+ return results+ except Exception as e:+ raise build_error(StatusCode.RESOURCE_MCP_SERVER_ADD_ERROR, cause=e, server_config=server_config,+ reason=str(e))++ @staticmethod+ def _create_client(config: McpServerConfig) -> McpClient:+ if config.client_type == "sse":+ return SseClient(config.server_path, config.server_name,+ config.auth_headers, config.auth_query_params)+ elif config.client_type in {"streamable-http", "streamable_http", "http"}:+ return StreamableHttpClient(+ config.server_path,+ config.server_name,+ config.auth_headers,+ config.auth_query_params,+ )+ elif config.client_type == "stdio":+ return StdioClient(config.server_path, config.server_name, config.params)+ elif config.client_type == "playwright":+ return PlaywrightClient(config.server_path, config.server_name)+ elif config.client_type == "openapi":+ from openjiuwen.core.foundation.tool.mcp.client import OpenApiClient+ return OpenApiClient(config.server_path, config.server_name)+ else:+ raise ValueError(f"Unsupported MCP client type: {config.client_type}")++ def get_mcp_server_ids(self, server_name: str):+ return self._mcp_server_name_to_ids.get(server_name, [])++ async def remove_tool_server(self, server_id: str, ignore_not_exist: bool = True) -> list[str]:+ mcp_server_resource = self._mcp_server_resources.pop(server_id, None)+ if not mcp_server_resource:+ if not ignore_not_exist:+ raise build_error(StatusCode.RESOURCE_MCP_SERVER_REMOVE_ERROR, server_id=server_id,+ reason="server is not exist")+ else:+ return []+ try:+ await mcp_server_resource.client.disconnect()+ except Exception as e:+ logger.warn(f"remove tool server discount {str(e)}, server_id={server_id}")+ finally:+ self._inner_remove_mcp_tools(mcp_server_resource.tool_ids)+ ids = self._mcp_server_name_to_ids.get(mcp_server_resource.config.server_name)+ if ids and server_id in ids:+ ids.remove(server_id)+ if not ids:+ self._mcp_server_name_to_ids.pop(mcp_server_resource.config.server_name)+ return mcp_server_resource.tool_ids++ def add_sys_operation_tools(self, sys_op_id: str, tool_ids: list[str]) -> None:+ """Register tools associated with a SysOperation."""+ if not tool_ids:+ return+ self._sys_op_resources[sys_op_id] = SysOpToolResource(+ sys_op_id=sys_op_id,+ tool_ids=deepcopy(tool_ids),+ last_update_time=time.time()+ )++ def remove_sys_operation_tools(self, sys_op_id: str) -> list[str]:+ """Unregister and return tool IDs associated with a SysOperation."""+ resource = self._sys_op_resources.pop(sys_op_id, None)+ return resource.tool_ids if resource else []++ async def refresh_tool_server(self, server_id: str, skip_not_exist: bool = False, force: bool = False) -> list[+ McpToolCard]:+ mcp_resource = self._mcp_server_resources.get(server_id)+ if not mcp_resource:+ if not skip_not_exist:+ raise build_error(StatusCode.RESOURCE_MCP_SERVER_REFRESH_ERROR, server_id=server_id,+ reason="server is not exist")+ return []+ need_refresh = force+ if not force:+ if mcp_resource.expiry_time and time.time() - mcp_resource.last_update_time >= mcp_resource.expiry_time:+ need_refresh = True++ if need_refresh:+ return await self._inner_refresh_mcp_tools(mcp_resource.client, mcp_resource.config,+ mcp_resource.expiry_time)+ else:+ return []++ async def _inner_refresh_mcp_tools(self, client, server_config, expiry_time):+ mcp_cards = await client.list_tools()+ mcp_cards = mcp_cards if mcp_cards else []+ for card in mcp_cards:+ card.id = self.generate_mcp_tool_id(server_config.server_id, server_config.server_name, card.name)+ self.add_tool(card.id, MCPTool(mcp_client=client, tool_info=deepcopy(card)))+ mcp_ids = [card.id for card in mcp_cards]+ self._mcp_server_resources[server_config.server_id] = McpServerResource(config=server_config,+ expiry_time=expiry_time,+ client=client,+ last_update_time=time.time(),+ tool_ids=deepcopy(mcp_ids))+ return mcp_cards++ def _inner_remove_mcp_tools(self, tools):+ if not tools:+ return+ for tool_id in tools:+ try:+ self.remove_tool(tool_id)+ except Exception:+ continue++ async def release(self):+ for res in self._mcp_server_resources.values():+ try:+ await res.client.disconnect()+ except Exception:+ continuediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/session/checkpointer/persistence.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/session/checkpointer/persistence.pynew file mode 100644index 0000000000..ac2d63559e--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/session/checkpointer/persistence.py@@ -0,0 +1,927 @@+# -*- coding: UTF-8 -*-+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""+Persistence checkpointer implementation using BaseKVStore interface.++This module provides a checkpointer implementation that uses BaseKVStore+for persistent storage, supporting any KV store implementation (shelve, database, etc.).+"""++import base64+from abc import ABC+from pathlib import Path+from typing import (+ Any,+ Optional,+ Tuple,+)++from sqlalchemy.ext.asyncio import (+ AsyncEngine,+ create_async_engine,+)++from openjiuwen.core.common.constants.constant import INTERACTIVE_INPUT+from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.common.logging import session_logger, LogEventType+from openjiuwen.core.foundation.store import (+ BaseKVStore,+ DbBasedKVStore,+)+from openjiuwen.core.foundation.store.kv import ShelveStore+from openjiuwen.core.graph.pregel import TASK_STATUS_INTERRUPT+from openjiuwen.core.graph.store import (+ create_serializer,+ GraphState,+ Serializer,+ Store,+)+from openjiuwen.core.session import (+ BaseSession,+ Checkpointer,+ InteractiveInput,+ NodeSession,+)+from openjiuwen.core.session.checkpointer import (+ build_key,+ build_key_with_namespace,+ CheckpointerFactory,+ CheckpointerProvider,+ SESSION_NAMESPACE_AGENT,+ SESSION_NAMESPACE_WORKFLOW,+ Storage,+ WORKFLOW_NAMESPACE_GRAPH,+)+from openjiuwen.core.session.constants import FORCE_DEL_WORKFLOW_STATE_KEY+++class BaseStorage(Storage, ABC):+ """+ Base class for persistence-based storage implementations with common functionality.++ This class uses BaseKVStore interface and does not depend on specific implementations.+ """++ def __init__(self, kv_store: BaseKVStore):+ """+ Initialize BaseStorage with a BaseKVStore instance.++ Args:+ kv_store (BaseKVStore): The BaseKVStore instance for all storage operations.+ ttl (Optional[dict[str, Any]]): Optional TTL configuration.+ """+ self._kv_store = kv_store+ self._serde: Serializer = create_serializer("pickle")++ def _serialize_state(self, state: Any) -> Optional[Tuple[str, bytes]]:+ """Serialize state and return (dump_type, blob) tuple."""+ return self._serde.dumps_typed(state)++ def _decode_dump_type(self, dump_type: Any) -> str:+ """Decode dump_type from bytes to string if needed."""+ if isinstance(dump_type, bytes):+ return dump_type.decode("utf-8")+ return dump_type if dump_type is not None else ""++ def _deserialize_state(self, dump_type: Any, blob: Any) -> Any:+ """Deserialize state from (dump_type, blob) tuple."""+ if dump_type is None or blob is None:+ return None+ # Decode dump_type if needed+ dump_type_str = self._decode_dump_type(dump_type)+ try:+ # Convert blob string back to bytes if needed+ if isinstance(blob, str):+ # Assume base64 encoding for bytes stored as string+ blob_bytes = base64.b64decode(blob)+ else:+ blob_bytes = blob+ return self._serde.loads_typed((dump_type_str, blob_bytes))+ except Exception as e:+ session_logger.error(+ "Failed to deserialize state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ error_message=str(e),+ metadata={"operation": "deserialize"}+ )+ return None+++class AgentStorage(BaseStorage):+ """Agent state storage using BaseKVStore."""++ _STATE_BLOBS = "agent_state_blobs"+ _STATE_BLOBS_DUMP_TYPE = "agent_state_blobs_dump_type"+ _KEY_NUMS = 2++ async def save(self, session: BaseSession):+ """Save agent state to KV store."""+ state = session.state().get_state()+ session_id = session.session_id()+ agent_id = session.agent_id()++ state_blob = self._serialize_state(state)+ if not state_blob:+ session_logger.warning(+ "Failed to serialize agent state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ agent_id=agent_id,+ metadata={"operation": "serialize"}+ )+ return++ try:+ dump_type, blob = state_blob+ pipeline = self._kv_store.pipeline()+ dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_AGENT, agent_id, self._STATE_BLOBS_DUMP_TYPE+ )+ blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_AGENT, agent_id, self._STATE_BLOBS+ )+ await pipeline.set(dump_type_key, dump_type)+ await pipeline.set(blob_key, blob)+ await pipeline.execute()+ session_logger.debug(+ "Agent state saved successfully",+ event_type=LogEventType.CHECKPOINT_SAVE,+ session_id=session_id,+ agent_id=agent_id,+ metadata={"storage_type": "persistence"}+ )+ except Exception as e:+ session_logger.error(+ "Failed to save agent state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ agent_id=agent_id,+ error_message=str(e),+ metadata={"operation": "save", "storage_type": "persistence"}+ )+ raise++ async def recover(self, session: BaseSession, inputs: InteractiveInput = None):+ """Recover agent state from KV store."""+ session_id = session.session_id()+ agent_id = session.agent_id()++ pipeline = self._kv_store.pipeline()+ dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_AGENT, agent_id, self._STATE_BLOBS_DUMP_TYPE+ )+ blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_AGENT, agent_id, self._STATE_BLOBS+ )+ await pipeline.get(dump_type_key)+ await pipeline.get(blob_key)+ results = await pipeline.execute()++ if len(results) != self._KEY_NUMS:+ session_logger.debug(+ "Unexpected key count during agent state recovery",+ event_type=LogEventType.CHECKPOINT_RESTORE,+ session_id=session_id,+ agent_id=agent_id,+ metadata={"expected_keys": self._KEY_NUMS, "actual_keys": len(results)}+ )+ return++ dump_type, blob = results[0], results[1]+ state = self._deserialize_state(dump_type, blob)+ if state is None:+ session_logger.debug(+ "No agent state found",+ event_type=LogEventType.CHECKPOINT_RESTORE,+ session_id=session_id,+ agent_id=agent_id,+ metadata={"storage_type": "persistence"}+ )+ return++ try:+ session.state().set_state(state)+ session_logger.debug(+ "Agent state recovered successfully",+ event_type=LogEventType.CHECKPOINT_RESTORE,+ session_id=session_id,+ agent_id=agent_id,+ metadata={"storage_type": "persistence"}+ )+ except Exception as e:+ session_logger.error(+ "Failed to set agent state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ agent_id=agent_id,+ error_message=str(e),+ metadata={"operation": "set_state"}+ )+ raise++ async def clear(self, agent_id: str, session_id: str):+ """Clear agent state from KV store."""+ dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_AGENT, agent_id, self._STATE_BLOBS_DUMP_TYPE+ )+ blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_AGENT, agent_id, self._STATE_BLOBS+ )+ # Use batch_delete for multiple keys+ deleted = await self._kv_store.batch_delete([dump_type_key, blob_key])+ session_logger.debug(+ "Agent checkpoint cleared",+ event_type=LogEventType.CHECKPOINT_CLEAR,+ session_id=session_id,+ agent_id=agent_id,+ metadata={"deleted_keys": deleted, "storage_type": "persistence"}+ )++ async def exists(self, session: BaseSession) -> bool:+ """Check if agent state exists in KV store."""+ session_id = session.session_id()+ agent_id = session.agent_id()++ pipeline = self._kv_store.pipeline()+ dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_AGENT, agent_id, self._STATE_BLOBS_DUMP_TYPE+ )+ blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_AGENT, agent_id, self._STATE_BLOBS+ )+ await pipeline.exists(dump_type_key)+ await pipeline.exists(blob_key)+ results = await pipeline.execute()++ if len(results) != self._KEY_NUMS:+ return False++ # Both keys must exist for the state to be considered existing+ return results[0] is True and results[1] is True+++class WorkflowStorage(BaseStorage):+ """Workflow state storage using BaseKVStore."""++ _STATE_BLOBS = "workflow_state_blobs"+ _STATE_BLOBS_DUMP_TYPE = "workflow_state_blobs_dump_type"+ _UPDATE_BLOBS = "workflow_update_blobs"+ _UPDATE_BLOBS_DUMP_TYPE = "workflow_update_blobs_dump_type"+ _KEY_NUMS = 4++ def _process_interactive_inputs(self, session: BaseSession, inputs: InteractiveInput) -> None:+ """Process interactive inputs and update workflow state."""+ if inputs.raw_inputs is not None:+ session.state().update_and_commit_workflow_state({INTERACTIVE_INPUT: inputs.raw_inputs})+ return++ if not (hasattr(inputs, 'user_inputs') and inputs.user_inputs):+ return++ for node_id, value in inputs.user_inputs.items():+ node_session = NodeSession(session, node_id)+ interactive_input = node_session.state().get(INTERACTIVE_INPUT)+ if isinstance(interactive_input, list):+ interactive_input.append(value)+ node_session.state().update({INTERACTIVE_INPUT: interactive_input})+ else:+ node_session.state().update({INTERACTIVE_INPUT: [value]})+ session.state().commit()++ async def save(self, session: BaseSession):+ """Save workflow state to KV store."""+ state = session.state().get_state()+ workflow_id = session.workflow_id()+ session_id = session.session_id()++ pipeline = self._kv_store.pipeline()+ has_operations = False++ state_blob = self._serialize_state(state)+ if state_blob:+ dump_type, blob = state_blob+ dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._STATE_BLOBS_DUMP_TYPE+ )+ blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._STATE_BLOBS+ )+ await pipeline.set(dump_type_key, dump_type)+ await pipeline.set(blob_key, blob)+ has_operations = True+ else:+ session_logger.warning(+ "Failed to serialize workflow state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ workflow_id=workflow_id,+ metadata={"operation": "serialize"}+ )++ updates = session.state().get_updates()+ updates_blob = self._serialize_state(updates)+ if updates_blob:+ dump_type, blob = updates_blob+ dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._UPDATE_BLOBS_DUMP_TYPE+ )+ blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._UPDATE_BLOBS+ )+ await pipeline.set(dump_type_key, dump_type)+ await pipeline.set(blob_key, blob)+ has_operations = True++ if has_operations:+ try:+ await pipeline.execute()+ session_logger.debug(+ "Workflow state saved successfully",+ event_type=LogEventType.CHECKPOINT_SAVE,+ session_id=session_id,+ workflow_id=workflow_id,+ metadata={"storage_type": "persistence"}+ )+ except Exception as e:+ session_logger.error(+ "Failed to save workflow state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ workflow_id=workflow_id,+ error_message=str(e),+ metadata={"operation": "save", "storage_type": "persistence"}+ )+ raise++ async def recover(self, session: BaseSession, inputs: InteractiveInput = None):+ """Recover workflow state from KV store."""+ workflow_id = session.workflow_id()+ session_id = session.session_id()++ pipeline = self._kv_store.pipeline()+ state_dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._STATE_BLOBS_DUMP_TYPE+ )+ state_blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._STATE_BLOBS+ )+ await pipeline.get(state_dump_type_key)+ await pipeline.get(state_blob_key)+ updates_dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._UPDATE_BLOBS_DUMP_TYPE+ )+ updates_blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._UPDATE_BLOBS+ )+ await pipeline.get(updates_dump_type_key)+ await pipeline.get(updates_blob_key)+ results = await pipeline.execute()++ if len(results) != self._KEY_NUMS:+ session_logger.warning(+ "Unexpected key count during workflow state recovery",+ event_type=LogEventType.CHECKPOINT_RESTORE,+ session_id=session_id,+ workflow_id=workflow_id,+ metadata={"expected_keys": self._KEY_NUMS, "actual_keys": len(results)}+ )+ return++ # Recover state+ state_dump_type, state_blob = results[0], results[1]+ state_dump_type_str = self._decode_dump_type(state_dump_type)++ if state_blob and state_dump_type_str and state_dump_type_str != "empty":+ try:+ state = self._deserialize_state(state_dump_type_str, state_blob)+ if state is not None:+ session.state().set_state(state)+ except Exception as e:+ session_logger.error(+ "Failed to deserialize workflow state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ workflow_id=workflow_id,+ error_message=str(e),+ metadata={"operation": "deserialize_state"}+ )++ # Process interactive inputs+ if inputs is not None:+ self._process_interactive_inputs(session, inputs)++ # Recover updates+ updates_dump_type, updates_blob = results[2], results[3]+ updates_dump_type_str = self._decode_dump_type(updates_dump_type)++ if updates_blob and updates_dump_type_str and updates_dump_type_str != "empty":+ try:+ state_updates = self._deserialize_state(updates_dump_type_str, updates_blob)+ if state_updates is not None:+ session.state().set_updates(state_updates)+ except Exception as e:+ session_logger.error(+ "Failed to deserialize workflow updates",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ workflow_id=workflow_id,+ error_message=str(e),+ metadata={"operation": "deserialize_updates"}+ )++ async def clear(self, workflow_id: str, session_id: str):+ """Clear workflow state from KV store."""+ state_dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._STATE_BLOBS_DUMP_TYPE+ )+ state_blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._STATE_BLOBS+ )+ state_updates_dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._UPDATE_BLOBS_DUMP_TYPE+ )+ state_updates_blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._UPDATE_BLOBS+ )+ # Use batch_delete for multiple keys+ deleted = await self._kv_store.batch_delete([+ state_dump_type_key, state_blob_key,+ state_updates_dump_type_key, state_updates_blob_key+ ])+ session_logger.debug(+ "Workflow checkpoint cleared",+ event_type=LogEventType.CHECKPOINT_CLEAR,+ session_id=session_id,+ workflow_id=workflow_id,+ metadata={"deleted_keys": deleted, "storage_type": "persistence"}+ )++ async def exists(self, session: BaseSession) -> bool:+ """Check if workflow state exists in KV store."""+ workflow_id = session.workflow_id()+ session_id = session.session_id()++ pipeline = self._kv_store.pipeline()+ # Check state keys+ state_dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._STATE_BLOBS_DUMP_TYPE+ )+ state_blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._STATE_BLOBS+ )+ await pipeline.exists(state_dump_type_key)+ await pipeline.exists(state_blob_key)+ # Check updates keys (optional)+ state_updates_dump_type_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._UPDATE_BLOBS_DUMP_TYPE+ )+ state_updates_blob_key = build_key_with_namespace(+ session_id, SESSION_NAMESPACE_WORKFLOW, workflow_id, self._UPDATE_BLOBS+ )+ await pipeline.exists(state_updates_dump_type_key)+ await pipeline.exists(state_updates_blob_key)+ results = await pipeline.execute()++ if len(results) != self._KEY_NUMS:+ return False++ # At least state keys must exist for the workflow state to be considered existing+ # Updates are optional, so we only require state keys to exist+ return results[0] is True and results[1] is True+++class GraphStore(Store):+ """+ Graph state store implementation using BaseKVStore.++ Graph state keys are structured as: session:workflow-graph:workflow_id:suffix+ This separates graph state from workflow's own state.+ """++ _DATA_TYPE = "checkpoint_data_type"+ _DATA_VALUE = "checkpoint_data_value"+ _KEY_NUMS = 2++ def __init__(self, kv_store: BaseKVStore) -> None:+ """+ Initialize GraphStore with a BaseKVStore instance.++ Args:+ kv_store (BaseKVStore): The BaseKVStore instance for all storage operations.+ """+ self._kv_store = kv_store+ self._serde: Serializer = create_serializer("pickle")++ def _serialize_graph_state(self, graph_state: GraphState) -> Optional[Tuple[str, bytes]]:+ """Serialize graph state and return (dump_type, blob) tuple."""+ return self._serde.dumps_typed(graph_state)++ def _decode_dump_type(self, dump_type: Any) -> str:+ """Decode dump_type from bytes to string if needed."""+ if isinstance(dump_type, bytes):+ return dump_type.decode("utf-8")+ return dump_type if dump_type is not None else ""++ def _deserialize_graph_state(self, dump_type: Any, blob: Any) -> Optional[GraphState]:+ """Deserialize graph state from (dump_type, blob) tuple."""+ if not dump_type or blob is None:+ return None+ dump_type_str = self._decode_dump_type(dump_type)+ try:+ # Convert blob string back to bytes if needed+ if isinstance(blob, str):+ blob_bytes = base64.b64decode(blob)+ else:+ blob_bytes = blob+ return self._serde.loads_typed((dump_type_str, blob_bytes))+ except Exception as e:+ session_logger.error(+ "Failed to deserialize graph state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ error_message=str(e),+ metadata={"operation": "deserialize"}+ )+ return None++ async def get(self, session_id: str, ns: str) -> Optional[GraphState]:+ """Get graph state from KV store."""+ pipeline = self._kv_store.pipeline()+ key_type = build_key_with_namespace(+ session_id, WORKFLOW_NAMESPACE_GRAPH, ns, self._DATA_TYPE+ )+ await pipeline.get(key_type)+ key_value = build_key_with_namespace(+ session_id, WORKFLOW_NAMESPACE_GRAPH, ns, self._DATA_VALUE+ )+ await pipeline.get(key_value)+ results = await pipeline.execute()++ if len(results) != self._KEY_NUMS:+ session_logger.error(+ "Unexpected key count during graph state retrieval",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ metadata={"expected_keys": self._KEY_NUMS, "actual_keys": len(results), "namespace": ns}+ )+ return None++ _type, _value = results[0], results[1]+ if not _type or not _value:+ session_logger.debug(+ "Graph state not found in KV store",+ event_type=LogEventType.CHECKPOINT_RESTORE,+ session_id=session_id,+ metadata={"namespace": ns, "has_type": bool(_type), "has_value": bool(_value)}+ )+ return None++ graph_state = self._deserialize_graph_state(_type, _value)+ if graph_state is None:+ session_logger.debug(+ "Failed to deserialize graph state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ metadata={"namespace": ns}+ )+ return None+ return graph_state++ async def save(self, session_id: str, ns: str, state: GraphState) -> None:+ """Save graph state to KV store."""+ serialized = self._serialize_graph_state(state)+ if not serialized:+ session_logger.warning(+ "Failed to serialize graph state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ metadata={"namespace": ns, "operation": "serialize"}+ )+ return++ dump_type, blob = serialized+ dump_type_str = dump_type if isinstance(dump_type, str) else dump_type.decode("utf-8")++ try:+ key_type = build_key_with_namespace(+ session_id, WORKFLOW_NAMESPACE_GRAPH, ns, self._DATA_TYPE+ )+ pipeline = self._kv_store.pipeline()+ await pipeline.set(key_type, dump_type_str)+ key_value = build_key_with_namespace(+ session_id, WORKFLOW_NAMESPACE_GRAPH, ns, self._DATA_VALUE+ )+ await pipeline.set(key_value, blob)+ await pipeline.execute()+ session_logger.debug(+ "Graph state saved successfully",+ event_type=LogEventType.CHECKPOINT_SAVE,+ session_id=session_id,+ metadata={"namespace": ns, "storage_type": "graph"}+ )+ except Exception as e:+ session_logger.error(+ "Failed to save graph state",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ error_message=str(e),+ metadata={"namespace": ns, "operation": "save", "storage_type": "graph"}+ )+ raise++ async def delete(self, session_id: str, ns: Optional[str] = None) -> None:+ """+ Delete graph state keys for the given session_id and namespace.++ Args:+ session_id: Session identifier.+ ns: Namespace identifier. If None or empty, deletes all graph state data+ for the session_id (all namespaces under this session).+ """+ if not ns:+ # Delete all graph state data for this session_id+ prefix = build_key(session_id, WORKFLOW_NAMESPACE_GRAPH)+ await self._kv_store.delete_by_prefix(prefix)+ session_logger.debug(+ "Graph checkpoint cleared for all namespaces",+ event_type=LogEventType.CHECKPOINT_CLEAR,+ session_id=session_id,+ metadata={"storage_type": "graph"}+ )+ else:+ # Delete specific namespace+ prefix = build_key_with_namespace(+ session_id, WORKFLOW_NAMESPACE_GRAPH, ns+ )+ await self._kv_store.delete_by_prefix(prefix)+ session_logger.debug(+ "Graph checkpoint cleared",+ event_type=LogEventType.CHECKPOINT_CLEAR,+ session_id=session_id,+ metadata={"namespace": ns, "storage_type": "graph"}+ )+++class PersistenceCheckpointer(Checkpointer):+ """+ Persistence-based checkpointer implementation using BaseKVStore.++ This checkpointer uses BaseKVStore interface for persistent storage,+ supporting any KV store implementation (shelve, database, etc.).+ """++ def __init__(self, kv_store: BaseKVStore):+ """+ Initialize PersistenceCheckpointer with a BaseKVStore instance.++ Args:+ kv_store (BaseKVStore): The BaseKVStore instance for all storage operations.+ """+ self._kv_store = kv_store+ self._agent_storage = AgentStorage(kv_store)+ self._workflow_storage = WorkflowStorage(kv_store)+ self._graph_state = GraphStore(kv_store)++ async def pre_agent_execute(self, session: BaseSession, inputs):+ """Prepare agent execution by recovering agent state."""+ session_logger.info(+ "Agent checkpoint restore initiated",+ event_type=LogEventType.CHECKPOINT_RESTORE,+ session_id=session.session_id(),+ agent_id=session.agent_id(),+ metadata={"operation": "pre_execute", "storage_type": "persistence"}+ )+ await self._agent_storage.recover(session)+ if inputs is not None:+ session.state().update({INTERACTIVE_INPUT: [inputs]})++ async def interrupt_agent_execute(self, session: BaseSession):+ """Save agent state when interaction is required."""+ session_logger.info(+ "Agent checkpoint save on interrupt",+ event_type=LogEventType.CHECKPOINT_SAVE,+ session_id=session.session_id(),+ agent_id=session.agent_id(),+ metadata={"reason": "interaction_required", "storage_type": "persistence"}+ )+ await self._agent_storage.save(session)++ async def post_agent_execute(self, session: BaseSession):+ """Save agent state after execution completes."""+ session_logger.info(+ "Agent checkpoint save on completion",+ event_type=LogEventType.CHECKPOINT_SAVE,+ session_id=session.session_id(),+ agent_id=session.agent_id(),+ metadata={"reason": "agent_finished", "storage_type": "persistence"}+ )+ await self._agent_storage.save(session)++ async def pre_workflow_execute(self, session: BaseSession, inputs: InteractiveInput):+ """+ Prepare workflow execution by recovering or clearing workflow state.++ If inputs is an InteractiveInput, recover the workflow state.+ If inputs is not an InteractiveInput and workflow state exists:+ - If FORCE_DEL_WORKFLOW_STATE_KEY is True, delete graph state and workflow state+ - Otherwise, raise WORKFLOW_STATE_INVALID exception++ Args:+ session (BaseSession): The session for the workflow.+ inputs (InteractiveInput): The input for the workflow execution.+ """+ workflow_id = session.workflow_id()+ session_logger.info(+ "Workflow checkpoint restore initiated",+ event_type=LogEventType.CHECKPOINT_RESTORE,+ session_id=session.session_id(),+ workflow_id=workflow_id,+ metadata={"operation": "pre_execute", "storage_type": "persistence"}+ )+ if isinstance(inputs, InteractiveInput):+ await self._workflow_storage.recover(session, inputs)+ else:+ # Check if workflow state exists+ if not await self._workflow_storage.exists(session):+ return++ # If FORCE_DEL_WORKFLOW_STATE_KEY is enabled, delete the state+ if session.config().get_env(FORCE_DEL_WORKFLOW_STATE_KEY, False):+ workflow_id = session.workflow_id()+ if workflow_id is None:+ session_logger.warning(+ "Workflow ID is None during state cleanup",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session.session_id(),+ metadata={"operation": "force_delete"}+ )+ return+ session_id = session.session_id()+ await self._graph_state.delete(session_id, workflow_id)+ await self._workflow_storage.clear(workflow_id, session_id)+ session_logger.info(+ "Workflow state force deleted",+ event_type=LogEventType.CHECKPOINT_CLEAR,+ session_id=session_id,+ workflow_id=workflow_id,+ metadata={"reason": "force_delete", "storage_type": "persistence"}+ )+ else:+ # Raise exception if state exists but cleanup is disabled+ raise build_error(+ StatusCode.CHECKPOINTER_PRE_WORKFLOW_EXECUTION_ERROR,+ workflow=workflow_id,+ reason="workflow state exists but non-interactive input and cleanup is disabled"+ )++ async def post_workflow_execute(self, session: BaseSession, result, exception):+ """Handle workflow execution completion."""+ workflow_id = session.workflow_id()+ session_id = session.session_id()++ if exception is not None:+ session_logger.info(+ "Workflow checkpoint save on exception",+ event_type=LogEventType.CHECKPOINT_SAVE,+ session_id=session_id,+ workflow_id=workflow_id,+ metadata={"reason": "exception", "storage_type": "persistence"}+ )+ await self._workflow_storage.save(session)+ raise exception++ if result.get(TASK_STATUS_INTERRUPT) is None:+ session_logger.info(+ "Workflow checkpoint cleared on completion",+ event_type=LogEventType.CHECKPOINT_CLEAR,+ session_id=session_id,+ workflow_id=workflow_id,+ metadata={"reason": "workflow_completed", "storage_type": "persistence"}+ )+ await self._graph_state.delete(session_id, workflow_id)+ await self._workflow_storage.clear(workflow_id, session_id)+ else:+ session_logger.info(+ "Workflow checkpoint save on interrupt",+ event_type=LogEventType.CHECKPOINT_SAVE,+ session_id=session_id,+ workflow_id=workflow_id,+ metadata={"reason": "interaction_required", "storage_type": "persistence"}+ )+ await self._workflow_storage.save(session)++ async def session_exists(self, session_id: str) -> bool:+ """+ Check if a session exists in KV store.++ Args:+ session_id (str): The session ID to check.++ Returns:+ bool: True if the session exists (has associated keys), False otherwise.+ """+ if self._kv_store is None:+ return False++ # Check if any keys exist with the session_id prefix+ prefix = f"{session_id}:"+ keys = await self._kv_store.get_by_prefix(prefix)+ return len(keys) > 0++ async def release(self, session_id: str, agent_id: Optional[str] = None):+ """+ Release resources for a session, optionally for a specific agent.++ Args:+ session_id (str): The session ID to release resources for.+ agent_id (str, optional): If provided, only release resources for this specific agent.+ """+ if self._kv_store is None:+ session_logger.warning(+ "Cannot release resources: KV store is None",+ event_type=LogEventType.CHECKPOINT_ERROR,+ session_id=session_id,+ metadata={"operation": "release"}+ )+ return++ if agent_id is not None:+ session_logger.info(+ "Agent checkpoint cleared",+ event_type=LogEventType.CHECKPOINT_CLEAR,+ session_id=session_id,+ agent_id=agent_id,+ metadata={"operation": "release", "storage_type": "persistence"}+ )+ await self._agent_storage.clear(agent_id, session_id)+ else:+ session_logger.info(+ "Session cleared",+ event_type=LogEventType.CHECKPOINT_CLEAR,+ session_id=session_id,+ metadata={"operation": "release_all", "storage_type": "persistence"}+ )+ # Delete all keys matching the session prefix+ prefix = f"{session_id}:"+ await self._kv_store.delete_by_prefix(prefix)+ session_logger.debug(+ "All session resources released",+ event_type=LogEventType.CHECKPOINT_CLEAR,+ session_id=session_id,+ metadata={"storage_type": "persistence"}+ )++ def graph_store(self) -> Store:+ """Return the graph store instance."""+ return self._graph_state++[email protected]("persistence")+class PersistenceCheckpointerProvider(CheckpointerProvider):+ """+ Provider for creating persistence-based checkpointers.++ Configuration format:+ {+ "db_type": "sqlite" | "shelve", # Optional: Type of storage backend (default: "sqlite")+ "db_path": "checkpointer.db", # Optional: Path to database file+ "db_client": AsyncEngine # Optional: Pre-configured database engine+ }+ """++ async def create(self, conf: dict) -> Checkpointer:+ """+ Create a PersistenceCheckpointer instance.++ Args:+ conf (dict): Configuration dictionary with optional keys:+ - 'db_type': Type of storage backend ("sqlite" or "shelve", default: "sqlite")+ - 'db_path': Path to database file (default: "checkpointer")+ - 'db_client': Pre-configured AsyncEngine instance (optional)++ Returns:+ Checkpointer: A PersistenceCheckpointer instance.+ """+ db_type = conf.get("db_type", "sqlite")+ db_path = conf.get("db_path", "checkpointer")++ if db_type == "sqlite":+ db_client = conf.get("db_client")+ if db_client is not None and isinstance(db_client, AsyncEngine):+ kv_store = DbBasedKVStore(db_client)+ else:+ if not db_path.endswith(".db"):+ db_path = f"{db_path}.db"+ # Ensure parent directory exists; SQLite cannot create it.+ if db_path and not db_path.strip().startswith(":memory:"):+ Path(db_path).parent.mkdir(parents=True, exist_ok=True)+ engine = create_async_engine(f"sqlite+aiosqlite:///{db_path}")+ kv_store = DbBasedKVStore(engine)+ elif db_type == "shelve":+ if db_path.endswith(".db"):+ db_path = db_path.removesuffix(".db")+ kv_store = ShelveStore(db_path)+ else:+ raise build_error(StatusCode.CHECKPOINTER_CONFIG_ERROR, reason=f"db type[{db_type}] is not supported")+ return PersistenceCheckpointer(kv_store)diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/ability_manager.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/ability_manager.pynew file mode 100644index 0000000000..dc193c4b27--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/ability_manager.py@@ -0,0 +1,359 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+"""AbilityManager Class Definition+"""+from __future__ import annotations++import asyncio+import json+from typing import List, Any, Union, Optional, Tuple, Dict+from pydantic import BaseModel++from openjiuwen.core.common.logging import logger+from openjiuwen.core.foundation.llm import ToolMessage, ToolCall+from openjiuwen.core.foundation.tool import ToolInfo+from openjiuwen.core.foundation.tool import ToolCard+from openjiuwen.core.foundation.tool import McpServerConfig+from openjiuwen.core.session.session import Session+from openjiuwen.core.single_agent.schema.agent_card import AgentCard+from openjiuwen.core.workflow import WorkflowCard++# Ability type definition+Ability = Union[ToolCard, WorkflowCard, AgentCard, McpServerConfig]+++class AbilityManager:+ """Agent Ability Manager++ Responsibilities:+ - Store available ability Cards for Agent (metadata only, no instances)+ - Provide add/remove/query interfaces for abilities+ - Convert Cards to ToolInfo for LLM usage+ - Execute ability calls (get instances from ResourceManager)+ """++ def __init__(self):+ self._tools: Dict[str, ToolCard] = {}+ self._workflows: Dict[str, WorkflowCard] = {}+ self._agents: Dict[str, AgentCard] = {}+ self._mcp_servers: Dict[str, McpServerConfig] = {}++ def add(self, ability: Union[Ability, List[Ability]]) -> None:+ """Add an ability++ Args:+ ability: Ability Card to add+ """+ def add_single_ability(_ability: Ability):+ if isinstance(_ability, ToolCard):+ self._tools[_ability.name] = _ability+ elif isinstance(_ability, WorkflowCard):+ self._workflows[_ability.name] = _ability+ elif isinstance(_ability, AgentCard):+ self._agents[_ability.name] = _ability+ elif isinstance(_ability, McpServerConfig):+ self._mcp_servers[_ability.server_name] = _ability+ else:+ logger.warning(f"Unknown ability type: {type(_ability)}")++ if isinstance(ability, Ability):+ add_single_ability(ability)+ elif isinstance(ability, List):+ for item in ability:+ add_single_ability(item)+ else:+ logger.warning(f"Unknown ability type: {type(ability)}")++ def remove(self, name: Union[str, List[str]]) -> Union[None, Ability, List[Ability]]:+ """Remove an ability by name++ Args:+ name: Ability name to remove++ Returns:+ Removed ability Card, or None if not found+ """+ if isinstance(name, str):+ if name in self._tools:+ return self._tools.pop(name, None)+ if name in self._workflows:+ return self._workflows.pop(name, None)+ if name in self._agents:+ return self._agents.pop(name, None)+ if name in self._mcp_servers:+ return self._mcp_servers.pop(name, None)+ return None+ elif isinstance(name, list):+ result = []+ for item in name:+ if name in self._tools:+ result.append(self._tools.pop(item, None))+ if name in self._workflows:+ result.append(self._workflows.pop(item, None))+ if name in self._agents:+ result.append(self._agents.pop(item, None))+ if name in self._mcp_servers:+ result.append(self._mcp_servers.pop(item, None))+ return result+ else:+ return None++ def get(self, name: str) -> Optional[Ability]:+ """Get an ability Card by name++ Args:+ name: Ability name++ Returns:+ Ability Card, or None if not found+ """+ if name in self._tools:+ return self._tools[name]+ if name in self._workflows:+ return self._workflows[name]+ if name in self._agents:+ return self._agents[name]+ if name in self._mcp_servers:+ return self._mcp_servers[name]+ return None++ def list(self) -> List[Ability]:+ """List all ability Cards++ Returns:+ List of all ability Cards+ """+ abilities: List[Ability] = []+ abilities.extend(self._tools.values())+ abilities.extend(self._workflows.values())+ abilities.extend(self._agents.values())+ abilities.extend(self._mcp_servers.values())+ return abilities++ async def list_tool_info(+ self,+ names: Optional[List[str]] = None,+ mcp_server_name: Optional[str] = None+ ) -> List[ToolInfo]:+ """Get ToolInfo list (for LLM usage)++ Args:+ names: Filter by ability names (optional)+ mcp_server_name: Filter by MCP server name (optional)++ Returns:+ List of ToolInfo objects for LLM+ """+ tool_infos: List[ToolInfo] = []++ # Convert ToolCards to ToolInfo+ for name, tool_card in self._tools.items():+ if names is None or name in names:+ tool_info = ToolInfo(+ name=tool_card.name,+ description=tool_card.description or "",+ parameters=tool_card.input_params or {}+ )+ tool_infos.append(tool_info)++ # Convert WorkflowCards to ToolInfo+ for name, workflow_card in self._workflows.items():+ if names is None or name in names:+ tool_info = ToolInfo(+ name=workflow_card.name,+ description=workflow_card.description or "",+ parameters=workflow_card.input_params or {}+ )+ tool_infos.append(tool_info)++ # Convert AgentCards to ToolInfo+ for name, agent_card in self._agents.items():+ if names is None or name in names:+ # Build parameters from input_params+ params = {"type": "object", "properties": {}, "required": []}+ if hasattr(agent_card, 'input_params'):+ for param in agent_card.input_params:+ params["properties"][param.name] = {+ "type": param.type,+ "description": param.description or ""+ }+ if getattr(param, 'required', False):+ params["required"].append(param.name)++ tool_info = ToolInfo(+ name=agent_card.name,+ description=agent_card.description or "",+ parameters=params+ )+ tool_infos.append(tool_info)++ # Handle MCP servers if needed+ for mcp_server_name, mcp_server in self._mcp_servers.items():+ mcp_server_id = getattr(mcp_server, 'server_id', None) or getattr(mcp_server, 'server_name', '')+ if not mcp_server_id:+ continue+ from openjiuwen.core.runner import Runner+ if names is None:+ try:+ mcp_tool_infos = await Runner.resource_mgr.get_mcp_tool_infos(server_id=mcp_server_id)+ except Exception:+ mcp_tool_infos = []+ if mcp_tool_infos is None:+ mcp_tool_infos = []+ elif not isinstance(mcp_tool_infos, list):+ mcp_tool_infos = [mcp_tool_infos] if mcp_tool_infos else []+ for mcp_tool in mcp_tool_infos:+ if mcp_tool is None:+ continue+ mcp_tool_name = getattr(mcp_tool, 'name', None)+ if not mcp_tool_name:+ continue+ mcp_tool_id = f'{mcp_server_id}.{mcp_server_name}.{mcp_tool_name}'+ self._tools[mcp_tool_name] = ToolCard(id=mcp_tool_id, name=mcp_tool_name,+ description=getattr(mcp_tool, 'description', '') or '')+ tool_infos.append(mcp_tool)++ # Deduplicate by tool name so the LLM API receives unique names (required by providers)+ seen_names: set = set()+ unique_tool_infos: List[ToolInfo] = []+ for t in tool_infos:+ n = getattr(t, 'name', None) or ''+ if n and n not in seen_names:+ seen_names.add(n)+ unique_tool_infos.append(t)+ return unique_tool_infos++ async def execute(+ self,+ tool_call: Union[ToolCall, List[ToolCall]],+ session: Session+ ) -> List[Tuple[Any, ToolMessage]]:+ """Execute an ability call++ Get instance from Runner.resource_mgr by card info, execute and return++ Args:+ tool_call: Single tool call or list of tool calls+ session: Session instance++ Returns:+ List of (result, ToolMessage) tuples+ """++ tool_calls = []+ if isinstance(tool_call, list):+ tool_calls.extend(tool_call)+ elif isinstance(tool_call, ToolCall):+ tool_calls.append(tool_call)+ else:+ logger.warning(f"execute ability input tool call is invalid, {type(tool_call)}!")++ # Execute all tool calls in parallel+ tasks = [+ self._execute_single_tool_call(tool_call, session)+ for tool_call in tool_calls+ ]+ results = await asyncio.gather(*tasks, return_exceptions=True)++ # Process results+ final_results: List[Tuple[Any, ToolMessage]] = []+ for i, result in enumerate(results):+ if isinstance(result, Exception):+ # Handle exception+ error_msg = f"Ability execution error: {str(result)}"+ logger.error(error_msg)+ tool_message = ToolMessage(+ content=error_msg,+ tool_call_id=tool_calls[i].id+ )+ final_results.append((None, tool_message))+ else:+ final_results.append(result)++ return final_results++ async def _execute_single_tool_call(self, tool_call: ToolCall, session: Session) -> Tuple[Any, ToolMessage]:+ result, error_msg = None, None+ tool_name = tool_call.name++ # Parse arguments+ try:+ tool_args = (+ json.loads(tool_call.arguments)+ if isinstance(tool_call.arguments, str)+ else tool_call.arguments+ )+ except (json.JSONDecodeError, AttributeError):+ tool_args = {}++ # Check ability type and execute accordingly+ if tool_name in self._tools:+ # Execute Tool - get instance from Runner.resource_mgr+ tool_card = self._tools[tool_name]+ tool_id = tool_card.id or tool_card.name+ from openjiuwen.core.runner import Runner+ tool = Runner.resource_mgr.get_tool(tool_id=tool_id)+ if tool:+ try:+ result = await tool.invoke(tool_args)+ except Exception as e:+ error_msg = f"Tool execution error: {str(e)}"+ logger.error(error_msg)+ else:+ error_msg = f"Tool instance not found in resource_mgr: {tool_id}"+ elif tool_name in self._workflows:+ # Execute Workflow - get instance from Runner.resource_mgr+ workflow_card = self._workflows[tool_name]+ workflow_id = workflow_card.id or workflow_card.name+ from openjiuwen.core.runner import Runner+ workflow = await Runner.resource_mgr.get_workflow(workflow_id=workflow_id)+ if workflow:+ try:+ result = await workflow.invoke(tool_args, session)+ except Exception as e:+ error_msg = f"Workflow execution error: {str(e)}"+ logger.error(error_msg)+ else:+ error_msg = (+ f"Workflow instance not found in resource_mgr: {workflow_id}"+ )+ elif tool_name in self._agents:+ # Execute sub-Agent - get instance from Runner.resource_mgr+ agent_card = self._agents[tool_name]+ agent_id = agent_card.id or agent_card.name+ from openjiuwen.core.runner import Runner+ agent = await Runner.resource_mgr.get_agent(agent_id=agent_id)+ if agent:+ try:+ result = await agent.invoke(tool_args)+ except Exception as e:+ error_msg = f"Agent execution error: {str(e)}"+ logger.error(error_msg)+ else:+ error_msg = (+ f"Agent instance not found in resource_mgr: {agent_id}"+ )+ elif tool_name in self._mcp_servers:+ # Execute MCP tool+ error_msg = f"MCP tool execution not yet implemented: {tool_name}"+ else:+ # Fallback: try to get tool from Runner.resource_mgr by name+ from openjiuwen.core.runner import Runner+ tool = Runner.resource_mgr.get_tool(tool_id=tool_name)+ if tool:+ try:+ result = await tool.invoke(tool_args)+ except Exception as e:+ error_msg = f"Tool execution error: {str(e)}"+ logger.error(error_msg)+ else:+ error_msg = f"Ability not found in resource_mgr: {tool_name}"++ # Build ToolMessage+ content = str(result) if result is not None else (error_msg or "")+ tool_message = ToolMessage(+ content=content,+ tool_call_id=tool_call.id+ )++ return result, tool_messagediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/agents/react_agent.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/agents/react_agent.pynew file mode 100644index 0000000000..40c9b9e5e6--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/agents/react_agent.py@@ -0,0 +1,632 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+"""ReActAgent Implementation++ReAct (Reasoning + Acting) paradigm Agent implementation++Created on: 2025-11-25+Author: [email protected]+"""+from __future__ import annotations++import asyncio+from typing import Any, AsyncIterator, Dict, List, Optional, Tuple++from pydantic import Field, BaseModel++from openjiuwen.core.common.logging import logger+from openjiuwen.core.foundation.llm.schema.config import (+ ModelClientConfig,+ ModelRequestConfig+)+from openjiuwen.core.context_engine import (+ ContextEngine,+ ContextEngineConfig,+ ModelContext+)+from openjiuwen.core.foundation.llm import (+ AssistantMessage,+ Model,+ UserMessage,+ SystemMessage+)+from openjiuwen.core.foundation.tool import ToolInfo+from openjiuwen.core.memory import LongTermMemory, MemoryScopeConfig+from openjiuwen.core.session.agent import Session+from openjiuwen.core.session.stream import OutputSchema+from openjiuwen.core.session.stream.base import StreamMode+from openjiuwen.core.single_agent.base import BaseAgent+from openjiuwen.core.single_agent.middleware.base import AgentCallbackEvent+from openjiuwen.core.single_agent.schema.agent_card import AgentCard++++class ReActAgentConfig(BaseModel):+ """ReActAgent Configuration Class++ Attributes:+ max_iterations: Maximum number of ReAct loop iterations+ """+ mem_scope_id: str = Field(default="", description="Memory scope ID")+ model_name: str = Field(default="", description="Model name")+ model_provider: str = Field(default="openai", description="Model provider")+ api_key: str = Field(default="", description="API key")+ api_base: str = Field(default="", description="API base URL")+ prompt_template_name: str = Field(+ default="",+ description="Prompt template name"+ )+ prompt_template: List[Dict] = Field(+ default_factory=list,+ description="Prompt template list"+ )++ max_iterations: int = Field(default=5, description="Maximum iterations")++ # LLM configuration objects (for Model initialization)+ model_client_config: Optional[ModelClientConfig] = Field(+ default=None,+ description="Model client configuration"+ )+ model_config_obj: Optional[ModelRequestConfig] = Field(+ default=None,+ description="Model request configuration"+ )++ sys_operation_id: Optional[str] = None++ context_engine_config: ContextEngineConfig = Field(+ default=ContextEngineConfig(+ max_context_message_num=200,+ default_window_round_num=10+ ),+ description="Context engine configuration"+ )++ context_processors: List[Tuple[str, BaseModel]] = Field(+ default=None,+ description="Context processors configuration"+ )++ def configure_model(self, model_name: str) -> 'ReActAgentConfig':+ """Configure model name++ Args:+ model_name: Model name++ Returns:+ self (supports chaining)+ """+ self.model_name = model_name+ return self++ def configure_model_provider(+ self,+ provider: str,+ api_key: str,+ api_base: str+ ) -> 'ReActAgentConfig':+ """Configure model provider details++ Args:+ provider: Model provider name (e.g., "openai")+ api_key: API key+ api_base: API base URL++ Returns:+ self (supports chaining)+ """+ self.model_provider = provider+ self.api_key = api_key+ self.api_base = api_base+ return self++ def configure_prompt(self, prompt_name: str) -> 'ReActAgentConfig':+ """Configure prompt template name++ Args:+ prompt_name: Prompt template name++ Returns:+ self (supports chaining)+ """+ self.prompt_template_name = prompt_name+ return self++ def configure_prompt_template(+ self,+ prompt_template: List[Dict]+ ) -> 'ReActAgentConfig':+ """Configure prompt template directly++ Args:+ prompt_template: Prompt template list, format like+ [{"role": "system", "content": "..."}]++ Returns:+ self (supports chaining)+ """+ self.prompt_template = prompt_template+ return self++ def configure_context_engine(+ self,+ max_context_message_num: Optional[int] = 200,+ default_window_round_num: Optional[int] = 10,+ enable_reload: bool = False+ ) -> 'ReActAgentConfig':+ """+ Configure the context-engine parameters that control how conversation history+ is truncated, offloaded and reloaded.++ Parameters+ ----------+ max_context_message_num : int, optional, default 200+ Hard upper bound on the total number of messages kept in the context+ window. `None` means no hard limit.+ default_window_round_num : int, optional, default 10+ Number of **most-recent conversation rounds** to retain (a round =+ user message → final assistant reply without tool calls). When set,+ it takes precedence over `default_window_message_num`. Must be > 0+ if given.+ enable_reload : bool, default False+ Whether the agent is allowed to **automatically reload** messages that+ were previously off-loaded (via hints such as `[[OFFLOAD:...]]`).+ Enable this if you want the model to retrieve long content on demand;+ disable it to keep hints as plain text.+ """+ self.context_engine_config = ContextEngineConfig(+ max_context_message_num=max_context_message_num,+ default_window_round_num=default_window_round_num,+ enable_reload=enable_reload+ )+ return self+++ def configure_mem_scope(self, mem_scope_id: str) -> 'ReActAgentConfig':+ """Configure memory scope ID++ Args:+ mem_scope_id: Memory scope ID++ Returns:+ self (supports chaining)+ """+ self.mem_scope_id = mem_scope_id+ return self++ def configure_max_iterations(+ self,+ max_iterations: int+ ) -> 'ReActAgentConfig':+ """Configure maximum iterations++ Args:+ max_iterations: Maximum number of ReAct loop iterations++ Returns:+ self (supports chaining)+ """+ self.max_iterations = max_iterations+ return self++ def configure_model_client(+ self,+ provider: str,+ api_key: str,+ api_base: str,+ model_name: str,+ verify_ssl: bool = False+ ) -> 'ReActAgentConfig':+ """Configure model client for LLM initialization++ This method creates ModelClientConfig and ModelRequestConfig+ for the Model class initialization.++ Args:+ provider: Model provider name (e.g., "OpenAI", "SiliconFlow")+ api_key: API key+ api_base: API base URL+ model_name: Model name+ verify_ssl: Whether to verify SSL (default False)++ Returns:+ self (supports chaining)+ """+ self.model_provider = provider+ self.api_key = api_key+ self.api_base = api_base+ self.model_name = model_name++ self.model_client_config = ModelClientConfig(+ client_provider=provider,+ api_key=api_key,+ api_base=api_base,+ verify_ssl=verify_ssl+ )+ self.model_config_obj = ModelRequestConfig(+ model_name=model_name+ )+ return self++ def configure_context_processors(+ self,+ processors: List[Tuple[str, BaseModel]]+ ) -> 'ReActAgentConfig':+ self.context_processors = processors+ return self+++class ReActAgent(BaseAgent):+ """ReAct paradigm Agent implementation+ ReAct loop: Reasoning -> Acting -> Observation -> Repeat++ Input format (compatible with legacy):+ {"query": "user question", "conversation_id": "session_123"}++ Output format (compatible with legacy):+ invoke: {"output": "response content", "result_type": "answer|error"}+ stream: yields OutputSchema objects++ Note:+ This agent currently does not support Runner.run_agent().+ Use agent.invoke() directly with a session parameter.+ """++ def __init__(+ self,+ card: AgentCard,+ ):+ """Initialize ReActAgent++ Args:+ card: Agent card (required)+ """+ self._config = self._create_default_config()+ self.context_engine = ContextEngine(+ self._config.context_engine_config+ )+ self._llm = None+ self._init_memory_scope()+ super().__init__(card)++ def _init_memory_scope(self) -> None:+ """Initialize memory scope (subclass can override configuration)"""+ if self._config.mem_scope_id:+ asyncio.run(+ LongTermMemory().set_scope_config(+ self._config.mem_scope_id,+ MemoryScopeConfig()+ )+ )++ def _create_default_config(self) -> ReActAgentConfig:+ """Create default configuration"""+ return ReActAgentConfig()++ def configure(self, config: ReActAgentConfig) -> 'BaseAgent':+ """Set configuration++ Args:+ config: ReActAgentConfig configuration object++ Returns:+ self (supports chaining)++ Note:+ After config update, context_engine and memory_scope+ will be updated accordingly+ """+ old_config = self._config+ self._config = config++ # Reset LLM if model config changed+ if (old_config.model_provider != config.model_provider or+ old_config.api_key != config.api_key or+ old_config.api_base != config.api_base):+ self._llm = None++ # Update context_engine if context window limit changed+ if old_config.context_engine_config != config.context_engine_config:+ self.context_engine = ContextEngine(+ config.context_engine_config+ )++ # Update memory_scope if memory scope ID changed+ if old_config.mem_scope_id != config.mem_scope_id:+ self._init_memory_scope()++ # Reset sys operation id if changed+ if old_config.sys_operation_id != config.sys_operation_id:+ self.lazy_init_skill()++ return self++ def _get_llm(self) -> Model:+ """Get LLM instance (lazy initialization)++ Returns:+ Model instance++ Raises:+ ValueError: If model_client_config is not configured+ """+ if self._llm is None:+ if self._config.model_client_config is None:+ raise ValueError(+ "model_client_config is required. "+ "Use configure_model_client() to set it."+ )+ self._llm = Model(+ model_client_config=self._config.model_client_config,+ model_config=self._config.model_config_obj+ )+ return self._llm++ async def _call_llm(+ self,+ messages: List,+ tools: Optional[List[ToolInfo]] = None+ ) -> AssistantMessage:+ """Call LLM with messages and optional tools++ Args:+ messages: Message list (BaseMessage or dict)+ tools: Optional tool definitions (List[ToolInfo])++ Returns:+ AssistantMessage from LLM+ """+ llm = self._get_llm()+ return await llm.invoke(+ model=self._config.model_name,+ messages=messages,+ tools=tools+ )++ async def _init_context(+ self,+ session: Optional[Session]+ ) -> ModelContext:+ if self._config.context_processors:+ from openjiuwen.core.context_engine.token.tiktoken_counter import TiktokenCounter+ context = await self.context_engine.create_context(+ session=session,+ processors=self._config.context_processors,+ token_counter=TiktokenCounter()+ )+ else:+ context = await self.context_engine.create_context(+ session=session+ )+ context_reloader = context.reloader_tool()+ if self._config.context_engine_config.enable_reload:+ self.ability_manager.add(context_reloader.card)+ from openjiuwen.core.runner import Runner+ if not Runner.resource_mgr.get_tool(context_reloader.card.id, tag=self.card.id):+ Runner.resource_mgr.add_tool(context_reloader, tag=self.card.id)+ else:+ self.ability_manager.remove(context_reloader.card.name)+ return context++ async def invoke(+ self,+ inputs: Any,+ session: Optional[Session] = None+ ) -> Dict[str, Any]:+ """Execute ReAct process++ Args:+ inputs: User input, supports the following formats:+ - dict: {"query": "...", "conversation_id": "..."}+ - str: Used directly as query+ session: Session object (required for tool execution)++ Returns:+ Dict with output and result_type+ """+ # Normalize inputs+ if isinstance(inputs, dict):+ user_input = inputs.get("query")+ if user_input is None:+ raise ValueError("Input dict must contain 'query'")+ elif isinstance(inputs, str):+ user_input = inputs+ else:+ raise ValueError("Input must be dict with 'query' or str")++ # Hook: before invoke+ await self._execute_callbacks(AgentCallbackEvent.BEFORE_INVOKE, inputs=inputs)++ # Get or create model context+ context = await self._init_context(session)++ # Add user message to context+ await context.add_messages(UserMessage(content=user_input))++ # Build system messages from prompt template+ # prompt_template is List[Dict], access via dict keys+ system_messages = [+ SystemMessage(role=msg["role"], content=msg["content"])+ for msg in self._config.prompt_template+ if msg.get("role") == "system"+ ]++ if len(system_messages) > 0 and self._skill_util is not None and self._skill_util.has_skill():+ skill_prompt = self._skill_util.get_skill_prompt()+ last_msg = system_messages[-1]+ last_msg.content = (last_msg.content or "") + "\n" + skill_prompt++ # Get tool info from _ability_manager+ tools = await self.ability_manager.list_tool_info()++ result = None++ # ReAct loop+ for iteration in range(self._config.max_iterations):+ logger.info(+ f"ReAct iteration {iteration + 1}/{self._config.max_iterations}"+ )++ # Get context window with system messages and tools+ context_window = await context.get_context_window(+ system_messages=system_messages,+ tools=tools if tools else None,+ )++ # Hook: before model call+ await self._execute_callbacks(+ AgentCallbackEvent.BEFORE_MODEL_CALL,+ inputs=inputs,+ iteration=iteration + 1,+ messages=context_window.get_messages()+ )++ # Call LLM with messages and tools from context window+ ai_message = await self._call_llm(+ context_window.get_messages(),+ context_window.get_tools() or None+ )++ # Hook: after model call+ await self._execute_callbacks(+ AgentCallbackEvent.AFTER_MODEL_CALL,+ inputs=inputs,+ iteration=iteration + 1,+ response=ai_message+ )++ # Add AI message to context+ ai_msg_for_context = AssistantMessage(+ content=ai_message.content,+ tool_calls=ai_message.tool_calls+ )+ await context.add_messages(ai_msg_for_context)++ # Check for tool calls+ if ai_message.tool_calls:+ # Log tool calls+ for tool_call in ai_message.tool_calls:+ logger.info(+ f"Executing tool: {tool_call.name} "+ f"with args: {tool_call.arguments}"+ )++ # Hook: before tool call+ await self._execute_callbacks(+ AgentCallbackEvent.BEFORE_TOOL_CALL,+ inputs=inputs,+ iteration=iteration + 1,+ tool_name=tool_call.name,+ tool_args=tool_call.arguments+ )++ # Execute tools using _execute_ability (supports parallel)+ results = await self.ability_manager.execute(+ ai_message.tool_calls, session, tag=self.card.id+ )++ # Process results and add tool messages to context+ for idx, (tool_result, tool_msg) in enumerate(results):+ logger.info(f"Tool result: {tool_result}")+ await context.add_messages(tool_msg)++ # Hook: after tool call+ tool_call = ai_message.tool_calls[idx]+ await self._execute_callbacks(+ AgentCallbackEvent.AFTER_TOOL_CALL,+ inputs=inputs,+ iteration=iteration + 1,+ tool_name=tool_call.name,+ tool_args=tool_call.arguments,+ tool_result=tool_result+ )+ else:+ # No tool calls, return AI response+ await self.context_engine.save_contexts(session)+ result = {+ "output": ai_message.content,+ "result_type": "answer"+ }+ # Hook: after invoke+ await self._execute_callbacks(+ AgentCallbackEvent.AFTER_INVOKE,+ inputs=inputs,+ result=result+ )+ return result++ # Max iterations reached+ await self.context_engine.save_contexts(session)+ result = {+ "output": "Max iterations reached without completion",+ "result_type": "error"+ }+ # Hook: after invoke+ await self._execute_callbacks(+ AgentCallbackEvent.AFTER_INVOKE,+ inputs=inputs,+ result=result+ )+ return result++ async def stream(+ self,+ inputs: Any,+ session: Optional[Session] = None,+ stream_modes: Optional[List[StreamMode]] = None+ ) -> AsyncIterator[Any]:+ """Stream execute ReAct process++ Args:+ inputs: User input (required in new version)+ session: Session object (required in new version)+ stream_modes: Stream output modes (optional)++ Yields:+ OutputSchema objects from stream_iterator+ """+ final_result_holder = {"result": None}++ if session is not None:+ await session.pre_run()++ async def stream_process():+ try:+ final_result = await self.invoke(inputs, session)+ final_result_holder["result"] = final_result+ # Write to session stream if available+ if session is not None:+ await session.write_stream(OutputSchema(+ type="answer",+ index=0,+ payload={+ "output": final_result,+ "result_type": "answer"+ }+ ))+ except Exception as e:+ logger.error(f"ReActAgent stream error: {e}")+ final_result_holder["result"] = {+ "output": str(e),+ "result_type": "error"+ }+ finally:+ # Close stream+ if session is not None:+ await self.context_engine.save_contexts(session)+ await session.post_run()++ task = asyncio.create_task(stream_process())++ # Read from stream_iterator and yield+ if session is not None:+ async for result in session.stream_iterator():+ yield result++ await task+++__all__ = [+ "ReActAgent",+ "ReActAgentConfig",+]diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/agents/react_agent_evolve.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/agents/react_agent_evolve.pynew file mode 100644index 0000000000..2a9e737fcc--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/agents/react_agent_evolve.py@@ -0,0 +1,416 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+from __future__ import annotations++import asyncio+from typing import Any, AsyncIterator, Dict, List, Optional, Union++from openjiuwen.core.common.logging import logger+from openjiuwen.core.operator import Operator, LLMCallOperator, ToolCallOperator+from openjiuwen.core.context_engine import ContextEngine, ModelContext+from openjiuwen.core.foundation.llm import AssistantMessage, Model, UserMessage, SystemMessage+from openjiuwen.core.memory import LongTermMemory, MemoryScopeConfig+from openjiuwen.core.session.agent import Session+from openjiuwen.core.session.stream import OutputSchema+from openjiuwen.core.session.stream.base import StreamMode+from openjiuwen.core.single_agent.base import BaseAgent+from openjiuwen.core.single_agent.middleware.base import AgentCallbackEvent+from openjiuwen.core.single_agent.schema.agent_card import AgentCard+from openjiuwen.core.single_agent.agents.react_agent import ReActAgentConfig+++class ReActAgentEvolve(BaseAgent):+ """ReAct paradigm Agent implementation+ ReAct loop: Reasoning -> Acting -> Observation -> Repeat++ Input format (compatible with legacy):+ {"query": "user question", "conversation_id": "session_123"}++ Output format (compatible with legacy):+ invoke: {"output": "response content", "result_type": "answer|error"}+ stream: yields OutputSchema objects++ Note:+ This agent currently does not support Runner.run_agent().+ Use agent.invoke() directly with a session parameter.+ """++ def __init__(+ self,+ card: AgentCard,+ ):+ """Initialize ReActAgent++ Args:+ card: Agent card (required)+ """+ self._config = self._create_default_config()+ self.context_engine = ContextEngine(+ self._config.context_engine_config+ )+ self._llm = None+ # Unified naming: *_op indicates evolvable Operator+ # LLM Operator uses lazy init: model_client_config/model_config_obj may only be ready after configure()+ self._llm_op: Optional[LLMCallOperator] = None+ self._tool_op: Optional[ToolCallOperator] = None+ self._init_memory_scope()+ # Lazy import to avoid circular dependency: skills -> runner -> single_agent -> skills+ from openjiuwen.core.single_agent.skills import SkillUtil++ self._skill_util = SkillUtil(self._config.sys_operation_id)+ super().__init__(card)+ # Operator depends on ability_kit, so placed after BaseAgent initialization+ self._tool_op = ToolCallOperator(+ tool=None,+ tool_call_id="react_tool",+ tool_executor=self.ability_manager.execute,+ tool_registry=self.ability_manager,+ )++ def _init_memory_scope(self) -> None:+ """Initialize memory scope (subclass can override configuration)"""+ if self._config.mem_scope_id:+ LongTermMemory().set_scope_config(self._config.mem_scope_id, MemoryScopeConfig())++ def _create_default_config(self) -> ReActAgentConfig:+ """Create default configuration"""+ return ReActAgentConfig()++ def configure(self, config: ReActAgentConfig) -> 'BaseAgent':+ """Set configuration++ Args:+ config: ReActAgentConfig configuration object++ Returns:+ self (supports chaining)++ Note:+ After config update, context_engine and memory_scope+ will be updated accordingly+ """+ old_config = self._config+ self._config = config++ # Reset LLM if model config changed+ if (old_config.model_provider != config.model_provider or+ old_config.api_key != config.api_key or+ old_config.api_base != config.api_base):+ self._llm = None++ # Update context_engine if context window limit changed+ if old_config.context_engine_config != config.context_engine_config:+ self.context_engine = ContextEngine(+ config.context_engine_config+ )++ # Update memory_scope if memory scope ID changed+ if old_config.mem_scope_id != config.mem_scope_id:+ self._init_memory_scope()++ # Reset sys operation id if changed+ if old_config.sys_operation_id != config.sys_operation_id:+ self.lazy_init_skill()++ return self++ @staticmethod+ def _normalize_user_input(inputs: Any) -> str:+ if isinstance(inputs, dict):+ user_input = inputs.get("query")+ if user_input is None:+ raise ValueError("Input dict must contain 'query'")+ return user_input+ if isinstance(inputs, str):+ return inputs+ raise ValueError("Input must be dict with 'query' or str")++ def _on_llm_parameter_updated(self, target: str, value: Any) -> None:+ # Keep AgentConfig aligned with Operator (especially system_prompt)+ if target == "system_prompt":+ if isinstance(value, list):+ content = value+ else:+ content = [{"role": "system", "content": str(value)}]+ self._config.prompt_template = content++ def _resolve_llm_model_name(self) -> str:+ """Single source of truth: prefer model_name from ModelRequestConfig.++ Consistent with core Model construction.+ """+ model_name_from_obj = (+ getattr(self._config.model_config_obj, "model_name", None)+ if self._config.model_config_obj is not None+ else None+ )+ model_name_from_field = self._config.model_name+ return model_name_from_obj or model_name_from_field++ def _get_llm_op(self) -> LLMCallOperator:+ """LLMCallOperator for self-evolving (react_llm), syncs back to config.prompt_template via callback."""+ if self._llm_op is None:+ llm = self._get_llm()+ model_name = self._resolve_llm_model_name()+ system_prompt = getattr(self._config, "prompt_template", []) or []+ self._llm_op = LLMCallOperator(+ model_name=model_name,+ llm=llm,+ system_prompt=system_prompt,+ user_prompt="{{query}}",+ freeze_system_prompt=False,+ freeze_user_prompt=True,+ llm_call_id="react_llm",+ on_parameter_updated=self._on_llm_parameter_updated,+ )+ else:+ # prompt_template may change after configure/self-evolving:+ # ensure operator internal view aligns with config+ self._llm_op.update_system_prompt(getattr(self._config, "prompt_template", []))+ return self._llm_op++ def _get_skill_messages(self) -> List[SystemMessage]:+ # Skill prompt: injected as additional system message (not written to evolvable system_prompt)+ if self._skill_util is None or not self._skill_util.has_skill():+ return []+ return [SystemMessage(content=self._skill_util.get_skill_prompt())]++ def get_operators(self) -> Dict[str, Operator]:+ """Returns evolvable operator registry (operator_id -> Operator)."""+ ops: Dict[str, Operator] = {}+ if self._tool_op is not None:+ ops[self._tool_op.operator_id] = self._tool_op+ try:+ llm_op = self._get_llm_op()+ ops[llm_op.operator_id] = llm_op+ except Exception:+ # Skip llm operator when model_client_config not configured (remains importable/buildable)+ pass+ return ops++ def _get_llm(self) -> Model:+ """Get LLM instance (lazy initialization)++ Returns:+ Model instance++ Raises:+ ValueError: If model configuration is not configured+ """+ if self._llm is None:+ if self._config.model_client_config is None and self._config.model_config_obj is None:+ raise ValueError("model_client_config is required. Use configure_model_client() to set it.")+ self._llm = Model(+ model_client_config=self._config.model_client_config, model_config=self._config.model_config_obj+ )+ return self._llm++ async def register_skill(self, skill_path: Union[str, List[str]]):+ """Register a skill"""+ self._skill_util.register_skills(skill_path, self)++ async def _init_context(+ self,+ session: Optional[Session]+ ) -> ModelContext:+ if self._config.context_processors:+ from openjiuwen.core.context_engine.token.tiktoken_counter import TiktokenCounter+ context = await self.context_engine.create_context(+ session=session,+ processors=self._config.context_processors,+ token_counter=TiktokenCounter()+ )+ else:+ context = await self.context_engine.create_context(+ session=session+ )+ context_reloader = context.reloader_tool()+ if self._config.context_engine_config.enable_reload:+ self.ability_manager.add(context_reloader.card)+ from openjiuwen.core.runner import Runner+ if not Runner.resource_mgr.get_tool(context_reloader.card.id, tag=self.card.id):+ Runner.resource_mgr.add_tool(context_reloader, tag=self.card.id)+ else:+ self.ability_manager.remove(context_reloader.card.name)+ return context++ async def invoke(self, inputs: Any, session: Optional[Session] = None) -> Dict[str, Any]:+ """Execute ReAct process++ Args:+ inputs: User input, supports the following formats:+ - dict: {"query": "...", "conversation_id": "..."}+ - str: Used directly as query+ session: Session object (required for tool execution)++ Returns:+ Dict with output and result_type+ """+ user_input = self._normalize_user_input(inputs)++ # Hook: before invoke+ await self._execute_callbacks(AgentCallbackEvent.BEFORE_INVOKE, inputs=inputs)++ # Get or create model context+ context = await self._init_context(session)+ # Add user message to context+ await context.add_messages(UserMessage(content=user_input))+ # Get tool info from _ability_manager+ tools = await self.ability_manager.list_tool_info()++ result = None++ # ReAct loop+ for iteration in range(self._config.max_iterations):+ logger.info(f"ReAct iteration {iteration + 1}/{self._config.max_iterations}")++ # Get context window (system_prompt injected by react_llm operator)+ context_window = await context.get_context_window(system_messages=[], tools=tools if tools else None)++ # Hook: before model call+ await self._execute_callbacks(+ AgentCallbackEvent.BEFORE_MODEL_CALL,+ inputs=inputs,+ iteration=iteration + 1,+ messages=context_window.get_messages()+ )++ skill_messages = self._get_skill_messages()++ # Call LLM via Operator (react_llm)+ llm_op = self._get_llm_op()+ history_messages = context_window.get_messages()+ ai_message = await llm_op.invoke(+ inputs={"query": user_input, "messages": [*skill_messages, *history_messages]},+ session=session,+ tools=context_window.get_tools() or None,+ )++ # Hook: after model call+ await self._execute_callbacks(+ AgentCallbackEvent.AFTER_MODEL_CALL,+ inputs=inputs,+ iteration=iteration + 1,+ response=ai_message+ )++ # Add AI message to context+ ai_msg_for_context = AssistantMessage(content=ai_message.content, tool_calls=ai_message.tool_calls)+ await context.add_messages(ai_msg_for_context)++ # Check for tool calls+ if ai_message.tool_calls:+ # Log tool calls+ for tool_call in ai_message.tool_calls:+ logger.info(f"Executing tool: {tool_call.name} with args: {tool_call.arguments}")++ # Hook: before tool call+ await self._execute_callbacks(+ AgentCallbackEvent.BEFORE_TOOL_CALL,+ inputs=inputs,+ iteration=iteration + 1,+ tool_name=tool_call.name,+ tool_args=tool_call.arguments+ )++ # Execute tools via Operator (react_tool)+ tool_op = self._tool_op+ if tool_op is None:+ raise RuntimeError("react_tool operator is not initialized")+ results = await tool_op.invoke({"tool_calls": ai_message.tool_calls}, session=session)++ # Process results and add tool messages to context+ for idx, (tool_result, tool_msg) in enumerate(results):+ logger.info(f"Tool result: {tool_result}")+ await context.add_messages(tool_msg)++ # Hook: after tool call+ tool_call = ai_message.tool_calls[idx]+ await self._execute_callbacks(+ AgentCallbackEvent.AFTER_TOOL_CALL,+ inputs=inputs,+ iteration=iteration + 1,+ tool_name=tool_call.name,+ tool_args=tool_call.arguments,+ tool_result=tool_result+ )+ else:+ # No tool calls, return AI response+ await self.context_engine.save_contexts(session)+ result = {+ "output": ai_message.content,+ "result_type": "answer"+ }+ # Hook: after invoke+ await self._execute_callbacks(+ AgentCallbackEvent.AFTER_INVOKE,+ inputs=inputs,+ result=result+ )+ return result++ # Max iterations reached+ await self.context_engine.save_contexts(session)+ result = {+ "output": "Max iterations reached without completion",+ "result_type": "error"+ }+ # Hook: after invoke+ await self._execute_callbacks(+ AgentCallbackEvent.AFTER_INVOKE,+ inputs=inputs,+ result=result+ )+ return result++ async def stream(+ self,+ inputs: Any,+ session: Optional[Session] = None,+ stream_modes: Optional[List[StreamMode]] = None,+ ) -> AsyncIterator[Any]:+ """Stream execute ReAct process++ Args:+ inputs: User input (required in new version)+ session: Session object (required in new version)+ stream_modes: Stream output modes (optional)++ Yields:+ OutputSchema objects from stream_iterator+ """+ final_result_holder = {"result": None}++ if session is not None:+ await session.pre_run()++ async def stream_process():+ try:+ final_result = await self.invoke(inputs, session)+ final_result_holder["result"] = final_result+ # Write to session stream if available+ if session is not None and hasattr(session, "write_stream"):+ await session.write_stream(+ OutputSchema(type="answer", index=0, payload={"output": final_result, "result_type": "answer"})+ )+ except Exception as e:+ logger.error(f"ReActAgent stream error: {e}")+ final_result_holder["result"] = {"output": str(e), "result_type": "error"}+ finally:+ # Close stream+ if session is not None:+ await self.context_engine.save_contexts(session)+ await session.post_run()++ task = asyncio.create_task(stream_process())++ # Read from stream_iterator and yield+ if session is not None and hasattr(session, "stream_iterator"):+ async for result in session.stream_iterator():+ yield result++ await task+++__all__ = [+ "ReActAgentEvolve",+]diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/legacy/agent.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/legacy/agent.pynew file mode 100644index 0000000000..887e68654f--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/legacy/agent.py@@ -0,0 +1,676 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import asyncio+import copy+import inspect+from abc import ABC, abstractmethod+from typing import TYPE_CHECKING, Any, AsyncIterator, Callable, Dict, List, Tuple, Union++from pydantic import BaseModel++from openjiuwen.core.workflow import WorkflowCard as WorkflowSchema, WorkflowCard+from openjiuwen.core.common.logging import logger+from openjiuwen.core.single_agent.legacy.schema import PluginSchema+from openjiuwen.core.context_engine import ContextEngine, ContextEngineConfig++from openjiuwen.core.session import Config+from openjiuwen.core.session.agent import Session, create_agent_session+from openjiuwen.core.session.stream import CustomSchema+from openjiuwen.core.foundation.tool import Tool+from openjiuwen.core.workflow import Workflow, generate_workflow_key++if TYPE_CHECKING:+ pass++++class WorkflowFactory:+ """Workflow factory class that creates a new workflow instance on each call (concurrency-safe).++ Usage:+ # Method 1: Use decorator (recommended, most concise)+ @workflow_provider(workflow_id="my_workflow", workflow_version="1.0")+ def create_workflow():+ return Workflow() # No need to set metadata++ single_agent.add_workflows([create_workflow])++ # Method 2: Direct instantiation+ provider = WorkflowFactory("my_workflow", "1.0", lambda: build_workflow())+ single_agent.add_workflows([provider])++ Features:+ - Callable: provider() returns a new workflow instance each time+ - Provides id/version attributes for workflow key generation+ - Auto-sets workflow metadata on each call+ """++ def __init__(+ self,+ workflow_id: str,+ workflow_version: str,+ factory: Callable[[], Workflow],+ workflow_name: str = '',+ workflow_description: str = '',+ input_schema=None,+ ):+ """+ Args:+ workflow_id: Workflow ID for registration+ workflow_version: Workflow version for registration+ factory: Factory function that returns a new Workflow instance on each call+ """+ self._factory = factory+ self._workflow_card = WorkflowCard(id=workflow_id, name=workflow_name, description=workflow_description,+ version=workflow_version, input_params=input_schema)++ def card(self):+ return self._workflow_card++ def __call__(self):+ """Return a new workflow instance on each call, with metadata auto-set.++ Supports both sync and async factory functions:+ - Sync factory: returns Workflow directly+ - Async factory: returns coroutine that resolves to Workflow+ """+ result = self._factory()++ # Handle async factory (returns coroutine)+ if asyncio.iscoroutine(result) or inspect.iscoroutinefunction(self._factory):+ async def async_wrapper():+ workflow = await result if asyncio.iscoroutine(result) else await self._factory()+ return workflow++ return async_wrapper()+ return result+++def workflow_provider(workflow_id: str, workflow_version: str, workflow_name: str = '', workflow_description: str = '',+ inputs: Union[dict, BaseModel] = None):+ """Decorator to create a WorkflowFactory from a factory function.++ Usage:+ @workflow_provider(workflow_id="weather_workflow", workflow_version="1.0")+ def create_weather_workflow():+ flow = Workflow()+ # ... build workflow ...+ return flow++ single_agent.add_workflows([create_weather_workflow])++ Args:+ workflow_id: Workflow ID for registration+ workflow_version: Workflow version for registration++ Returns:+ Decorator that wraps a factory function as WorkflowFactory+ """++ def decorator(func: Callable[[], Workflow]) -> WorkflowFactory:+ return WorkflowFactory(workflow_id, workflow_version, func, workflow_name, workflow_description, inputs)++ return decorator+++class BaseAgent(ABC):+ """Base Agent - Minimal interface definition (new architecture)+ """++ def __init__(self, agent_config):+ """Initialize Agent++ Args:+ agent_config: Agent configuration+ """+ # 1. Create Config wrapper (backward compatible)+ self._config_wrapper = Config()+ self._config_wrapper.set_agent_config(agent_config)+ self.agent_config = agent_config+ self._config = self._config_wrapper # Unified interface++ # 3. Create ContextEngine+ self._context_engine = self._create_context_engine()++ # 4. Uniformly hold tools and workflows (eliminate subclass duplication)+ self._tools: List[Tool] = []+ self._workflows: List[Workflow] = []++ def config(self) -> Config:+ """Get Config wrapper - Backward compatible method interface++ Returns:+ Config instance (contains get_agent_config() method)+ """+ return self._config_wrapper++ @property+ def tools(self) -> List[Tool]:+ """Get tools list - Read-only access for subclasses"""+ return self._tools++ @property+ def workflows(self) -> List[Workflow]:+ """Get workflows list - Read-only access for subclasses"""+ return self._workflows++ @property+ def context_engine(self) -> ContextEngine:+ """Get Context Engine - Unified public interface"""+ return self._context_engine++ def _create_context_engine(self) -> ContextEngine:+ """Create ContextEngine - Internal method, called during base class initialization"""+ # Get max conversation rounds configuration+ if (hasattr(self.agent_config, 'constrain') and+ hasattr(self.agent_config.constrain, 'reserved_max_chat_rounds')):+ max_rounds = self.agent_config.constrain.reserved_max_chat_rounds+ else:+ max_rounds = 10 # Default value++ context_config = ContextEngineConfig(+ max_context_message_num=max_rounds * 2+ )+ return ContextEngine(+ config=context_config,+ )++ @abstractmethod+ async def invoke(self, inputs: Dict, session: Session = None) -> Dict:+ """Synchronous invocation entry point - Abstract method++ Subclasses must implement this method+ """+ raise NotImplementedError(+ f"{self.__class__.__name__} must implement invoke() method"+ )++ @abstractmethod+ async def stream(self, inputs: Dict, session: Session = None) -> AsyncIterator[Any]:+ """Streaming invocation entry point - Abstract method++ Subclasses must implement this method+ """+ raise NotImplementedError(+ f"{self.__class__.__name__} must implement stream() method"+ )++ # ===== Dynamic configuration interface (Plan A: Backward compatible) =====++ def add_prompt(self, prompt_template: List[Dict]) -> None:+ """Add Prompt template++ Args:+ prompt_template: Prompt template list, format like+ [{"role": "system", "content": "..."}]++ Note:+ - This method only updates configuration, does not affect already created session+ - Subclasses should override this method if they need to sync session+ """+ # Check if configuration has prompt_template field+ if hasattr(self.agent_config, 'prompt_template'):+ # Append mode: Keep original prompt, add new prompt+ self.agent_config.prompt_template.extend(prompt_template)+ else:+ config_class_name = self.agent_config.__class__.__name__+ logger.warning(+ f"{config_class_name} has no prompt_template field, "+ "add_prompt operation ignored"+ )++ def add_tools(self, tools: List[Tool]) -> None:+ """Add tools (update config, session, and self._tools simultaneously)++ Args:+ tools: List of tool instances+ """++ for tool in tools:+ # 1. Add tool name to config.tools+ if tool.card.name not in self.agent_config.tools:+ self.agent_config.tools.append(tool.card.name)++ # 2. Generate PluginSchema (if configuration supports)+ if hasattr(self.agent_config, 'plugins'):+ # Check if already exists+ existing_plugin_names = {+ p.name for p in self.agent_config.plugins+ }+ if tool.card.name not in existing_plugin_names:+ plugin_schema = self._tool_to_plugin_schema(tool)+ self.agent_config.plugins.append(plugin_schema)++ # 3. Add to self._tools (avoid duplication)+ existing_tool_names = {t.card.name for t in self._tools}+ if tool.card.name not in existing_tool_names:+ self._tools.append(tool)+ from openjiuwen.core.runner import Runner+ # 4. Sync to session (auto register)+ Runner.resource_mgr.add_tool(tool=[tool], tag=self.agent_config.id)++ def add_workflows(+ self,+ workflows: List[Union[Workflow, Callable[[], Workflow]]]+ ) -> None:+ """Add workflows (update config and session simultaneously).++ Supports three registration methods:+ 1. Workflow instance - registered directly (note: does not support concurrent calls)+ 2. WorkflowFactory object - registered directly (concurrency-safe, recommended)+ 3. Callable with id/version attributes - async/sync provider (concurrency-safe)++ Args:+ workflows: List of workflow instances or WorkflowFactory/provider objects++ Concurrency Notes:+ - Instance: multiple conversations share the same instance, not concurrency-safe+ - WorkflowFactory or provider with id/version: new instance on each get_workflow()++ Recommended Usage (concurrent scenarios):+ # Method 1: Use @workflow_provider decorator (most concise)+ @workflow_provider(workflow_id="my_wf", workflow_version="1.0")+ def create_workflow():+ return Workflow()+ single_agent.add_workflows([create_workflow])++ # Method 2: Use WorkflowFactory directly+ provider = WorkflowFactory("my_wf", "1.0", lambda: build_workflow())+ single_agent.add_workflows([provider])++ # Method 3: Async provider with id/version attributes+ async def _create_provider(wf, mgr):+ async def provider():+ return await wf.compile(mgr)+ provider.id = wf.id+ provider.version = wf.version+ return provider+ providers = [await _create_provider(wf, mgr) for wf in workflows]+ single_agent.add_workflows(providers)+ """+ logger.info(f"BaseAgent.add_workflows called with {len(workflows)} workflows")++ def make_workflow_provider(workflow):+ """Create a provider function that returns the workflow instance."""+ def provider():+ return workflow+ return provider++ for item in workflows:+ # Extract workflow_id, workflow_version, and provider/workflow+ workflow_card = None+ provider = None+ is_provider = True+ if isinstance(item, WorkflowFactory):+ # WorkflowFactory object: use id/version attributes+ provider = item+ workflow_card = provider.card()+ elif callable(item) and hasattr(item, 'id') and hasattr(item, 'version'):+ # Callable with id/version attributes (preferred way for async providers)+ provider = item+ workflow_card = WorkflowCard(id=getattr(item, 'id'),+ name=getattr(item, 'name', None),+ description=getattr(item, 'description', None),+ version=getattr(item, 'version'),+ input_params=getattr(item, "input_params", None) or+ getattr(item, "inputs", None))+ elif callable(item):+ # Bare callable without id/version: error+ raise ValueError(+ f"Callable workflow provider must have 'id' and 'version' attributes. "+ f"Use @workflow_provider decorator or WorkflowFactory class."+ )+ else:+ # Create a provider function to wrap the instance+ provider = make_workflow_provider(item)+ workflow_card = item.card+ is_provider = False++ workflow_key = generate_workflow_key(workflow_card.id, workflow_card.version)++ # Check if already exists+ existing_keys = {+ generate_workflow_key(w.id, w.version)+ for w in self.agent_config.workflows+ }+ logger.info(+ f"Workflow {workflow_key}: existing_keys={existing_keys}, "+ f"exists={workflow_key in existing_keys}, is_provider={is_provider}"+ )++ # Even if schema exists, still need to add workflow+ if workflow_key not in existing_keys:+ # 1. Update config.workflows+ workflow_schema = WorkflowSchema(+ id=workflow_card.id,+ name=workflow_card.name,+ version=workflow_card.version,+ description=workflow_card.description or "",+ input_params=workflow_card.input_params+ )++ self.agent_config.workflows.append(workflow_schema)++ # 2. Sync to session (provider or instance)+ to_register = provider++ # 3. Also add to global resource_mgr (for cross-session access)+ try:+ logger.info(f"Adding workflow {'provider' if is_provider else 'instance'} "+ f"{workflow_key} to global resource_mgr")+ from openjiuwen.core.runner import Runner+ workflow_card_copy = copy.deepcopy(workflow_card)+ workflow_card_copy.id = workflow_key+ Runner.resource_mgr.add_workflow(card=workflow_card_copy, workflow=to_register,+ tag=self.agent_config.id)+ logger.info(f"Successfully added workflow {'provider' if is_provider else 'instance'} {workflow_key}")+ except Exception as e:+ logger.error(f"Failed to add workflow to global resource_mgr: {e}")++ def remove_workflows(+ self,+ workflows: List[Tuple[str, str]]+ ) -> None:+ """Remove workflows from single_agent (update config and session simultaneously).++ Removes workflows from three locations:+ 1. agent_config.workflows (WorkflowSchema list)+ 2. session workflow manager+ 3. global resource_mgr (if available)++ Args:+ workflows: List of (workflow_id, workflow_version) tuples to remove++ Example:+ single_agent.remove_workflows([+ ("my_workflow", "1.0"),+ ("another_workflow", "2.0")+ ])+ """+ logger.info(f"BaseAgent.remove_workflows called with {len(workflows)} workflows")++ for workflow_id, workflow_version in workflows:+ workflow_key = generate_workflow_key(workflow_id, workflow_version)+ logger.info(f"Removing workflow: {workflow_key}")++ # 1. Remove from agent_config.workflows+ original_count = len(self.agent_config.workflows)+ self.agent_config.workflows = [+ w for w in self.agent_config.workflows+ if not (w.id == workflow_id and w.version == workflow_version)+ ]+ removed_from_config = original_count - len(self.agent_config.workflows)+ logger.info(f"Removed {removed_from_config} workflow schema(s) from config")++ # 3. Remove from global resource_mgr+ try:+ from openjiuwen.core.runner import Runner+ Runner.resource_mgr.remove_workflow(workflow_key)+ logger.info(f"Successfully removed workflow {workflow_key} from global resource_mgr")+ except Exception as e:+ logger.error(f"Failed to remove workflow from global resource_mgr: {e}")++ def bind_workflows(self, workflows: List[Workflow]) -> None:+ """Bind workflows - Backward compatible alias method++ Args:+ workflows: List of workflow instances+ """+ self.add_workflows(workflows)++ def add_plugins(self, plugins: List) -> None:+ """Add plugin Schema++ Args:+ plugins: PluginSchema list++ Note:+ - This method only updates plugins field in configuration+ - Subclasses should override this method if they need to sync session+ """+ if hasattr(self.agent_config, 'plugins'):+ # Check duplication+ existing_names = {p.name for p in self.agent_config.plugins}+ for plugin in plugins:+ if plugin.name not in existing_names:+ self.agent_config.plugins.append(plugin)+ existing_names.add(plugin.name)+ else:+ config_class_name = self.agent_config.__class__.__name__+ logger.warning(+ f"{config_class_name} has no plugins field, "+ "add_plugins operation ignored"+ )++ def _tool_to_plugin_schema(self, tool: Tool):+ """Convert Tool instance to PluginSchema++ This is an internal method for automatically generating plugin schema++ Args:+ tool: Tool instance++ Returns:+ PluginSchema: Plugin schema object+ """+ # Generate inputs from tool.params+ inputs = {+ "type": "object",+ "properties": {},+ "required": []+ }++ if hasattr(tool, 'params') and tool.params:+ for param in tool.params:+ prop = {+ "type": param.type,+ "description": param.description+ }+ inputs["properties"][param.name] = prop+ if param.required:+ inputs["required"].append(param.name)++ tool_description = ""+ if hasattr(tool, 'description'):+ tool_description = tool.description++ return PluginSchema(+ id=tool.card.id,+ name=tool.card.name,+ description=tool_description,+ inputs=inputs+ )++ async def clear_session(self, session_id: str = "default_session"):+ await self._session.release(session_id)+++class ControllerAgent(BaseAgent):+ """Agent that holds Controller (new architecture)+ """++ def __init__(self, agent_config, controller=None):+ """Initialize ControllerAgent++ Args:+ agent_config: Agent configuration+ controller: Optional Controller instance (will be auto-configured)++ Note:+ If controller is provided, it will be automatically configured with+ config, context_engine and session from this single_agent via setup_from_agent()++ Usage:+ # Simplest way - controller auto-configured:+ controller = WorkflowController() # No parameters needed+ single_agent = ControllerAgent(config=config, controller=controller)++ # Alternative - set controller after single_agent creation:+ single_agent = ControllerAgent(config=config)+ single_agent.controller = WorkflowController() # Will be auto-configured+ """+ super().__init__(agent_config)+ self.controller = controller++ # Auto-configure controller if provided+ if self.controller is not None:+ self._setup_controller()++ def _setup_controller(self):+ """Setup controller with single_agent's config, context_engine and session"""+ if hasattr(self.controller, 'setup_from_agent'):+ self.controller.setup_from_agent(self)++ @property+ def controller(self):+ """Get controller"""+ return self._controller++ @controller.setter+ def controller(self, value):+ """Set controller and auto-configure it"""+ self._controller = value+ # Auto-configure when setting controller+ # Only if single_agent is already initialized (has _context_engine)+ if value is not None and hasattr(self, '_context_engine'):+ self._setup_controller()++ async def invoke(self, inputs: Dict, session: Session = None) -> Dict:+ """Synchronous invocation - Fully delegate to controller++ Args:+ inputs: Input data+ session: Session instance (if None, auto create)++ Returns:+ Execution result+ """+ if not self.controller:+ raise RuntimeError(+ f"{self.__class__.__name__} has no controller, "+ "subclass should create controller before invocation"+ )++ # If session not provided, create one+ session_id = inputs.get("conversation_id", "default_session")+ if session is None:+ from openjiuwen.core.single_agent import AgentCard+ agent_session = create_agent_session(session_id=session_id, card=AgentCard(id=self.agent_config.id))+ await agent_session.pre_run(inputs=inputs)+ else:+ if isinstance(session, Session):+ agent_session = getattr(session, "_inner")+ else:+ agent_session = session+ await self.context_engine.create_context(session=agent_session)+ try:+ # Fully delegate to controller+ result = await self.controller.invoke(inputs, agent_session)+ if session is None:+ await self.context_engine.save_contexts(agent_session)+ await agent_session.post_run()++ return result+ except Exception as e:+ await agent_session.post_run()+ raise++ async def stream(self, inputs: Dict, session: Session = None) -> AsyncIterator[Any]:+ """Streaming invocation - Fully delegate to controller++ Args:+ inputs: Input data+ session: Session instance (if None, auto create)++ Yields:+ Streaming output++ Note:+ When external session is provided, data is written to it but not read+ from stream_iterator (to avoid nested read deadlock). External caller+ reads stream data from session.+ """+ if not self.controller:+ raise RuntimeError(+ f"{self.__class__.__name__} has no controller, "+ "subclass should create controller before invocation"+ )++ # If session not provided, create one+ session_id = inputs.get("conversation_id", "default_session")+ if session is None:+ from openjiuwen.core.single_agent import AgentCard+ agent_session = create_agent_session(session_id=session_id, card=AgentCard(id=self.agent_config.id))+ await agent_session.pre_run(inputs=inputs)+ need_cleanup = True+ own_stream = True # Owns stream lifecycle+ else:+ if isinstance(session, Session):+ agent_session = getattr(session, "_inner")+ else:+ agent_session = session+ need_cleanup = False+ own_stream = False # External owns stream lifecycle++ # Sync single_agent's tools to external session+ # When external session is provided, single_agent's tools need to be registered+ from openjiuwen.core.runner import Runner+ if self._tools:+ tools_to_add = [(tool.card.name, tool) for tool in self._tools]+ Runner.resource_mgr.add_tool(tool=tools_to_add, tag=self.agent_config.id)+ # Sync agent's workflows to external session+ # When external session is provided, agent's workflows need to be registered+ # Store final result for send_to_agent+ final_result_holder = {"result": None}+ await self.context_engine.create_context(session=agent_session)++ # Fully delegate to controller+ async def stream_process():+ try:+ res = await self.controller.invoke(inputs, agent_session)+ final_result_holder["result"] = res+ # Interrupt: list contains __interaction__ OutputSchema+ # Only WorkflowController writes to session here+ # Other controllers (e.g. HierarchicalMainController) forward+ # lower single_agent results, which already wrote to shared session+ from openjiuwen.core.application.workflow_agent.workflow_controller import (+ WorkflowController+ )+ if isinstance(res, list) and isinstance(self.controller, WorkflowController):+ for item in res:+ if isinstance(item, CustomSchema):+ await agent_session.write_custom_stream(item)+ else:+ await agent_session.write_stream(item)+ finally:+ if need_cleanup:+ await self.context_engine.save_contexts(agent_session)+ await agent_session.post_run()++ task = asyncio.create_task(stream_process())++ if own_stream:+ # Read from stream_iterator only when owning stream+ # External caller reads if external session provided+ async for result in agent_session.stream_iterator():+ yield result++ await task++ # When own_stream=False, yield final result to send_to_agent+ # so send_to_agent can get single_agent's actual return value+ if not own_stream and final_result_holder["result"] is not None:+ res = final_result_holder["result"]+ if isinstance(res, list):+ # Interrupt: return list (contains __interaction__)+ for item in res:+ yield item+ else:+ # Normal completion: yield dict or other result+ yield res++ async def clear_session(self, session_id: str = "default_session"):+ await self._session.release(session_id)+ self.context_engine.clear_context(session_id=session_id)+ await self.controller.cleanup_conversation(session_id)diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/legacy/react_agent.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/legacy/react_agent.pynew file mode 100644index 0000000000..a469570dc4--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/single_agent/legacy/react_agent.py@@ -0,0 +1,366 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+"""+Legacy ReActAgent - Backward compatible version++This is the legacy version of ReActAgent for backward compatibility.+For new code, use openjiuwen.core.single_agent.agents.react_agent.ReActAgent++Will be removed in v1.0.0+"""++import asyncio+import json+from typing import Dict, Any, AsyncIterator, List++from pydantic import ValidationError++from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.common.utils.hash_util import generate_key+from openjiuwen.core.common.utils.message_utils import MessageUtils+from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.logging import logger+from openjiuwen.core.session import Config+from openjiuwen.core.session.workflow import Session as WorkflowSession+from openjiuwen.core.session.agent import Session+from openjiuwen.core.session.checkpointer import CheckpointerFactory+from openjiuwen.core.session.interaction.interaction import SimpleAgentInteraction+from openjiuwen.core.session.internal.agent import AgentSession as InternalAgentSession+from openjiuwen.core.session.internal.wrapper import StateSession+from openjiuwen.core.session.tracer import Tracer+from openjiuwen.core.single_agent.legacy.agent import BaseAgent+from openjiuwen.core.single_agent.legacy.config import (+ LegacyReActAgentConfig,+)+from openjiuwen.core.workflow import Workflow+from openjiuwen.core.session.stream import OutputSchema+from openjiuwen.core.foundation.llm import AssistantMessage, ToolMessage, ModelConfig, ModelClientConfig, \+ ModelRequestConfig, Model+from openjiuwen.core.foundation.prompt import PromptTemplate+from openjiuwen.core.foundation.tool import Tool+++class TaskSession(StateSession):+ """+ deprecated+ """+ def __init__(self, session_id: str = None, config: Config = None, resource_mgr=None, card=None):+ if config is None:+ config = Config()+ super().__init__(InternalAgentSession(session_id, config, resource_mgr, card=card))+ self._interaction = None++ async def trace(self, data: dict):+ pass++ async def trace_error(self, error: Exception):+ pass++ async def interact(self, value):+ if self._interaction is None:+ self._interaction = SimpleAgentInteraction(self._inner)+ await self._interaction.wait_user_inputs(value)++ def get_inner_session(self):+ return self._inner++ def stream_iterator(self) -> AsyncIterator[Any]:+ return self._inner.stream_writer_manager().stream_output()++ async def post_run(self):+ if isinstance(self._inner, InternalAgentSession):+ await self._inner.stream_writer_manager().stream_emitter().close()+ await self._inner.checkpointer().post_agent_execute(self._inner)++ def tracer(self) -> Tracer:+ return self._inner.tracer()++ def get_envs(self):+ return getattr(self._inner.config(), "_env")++ def create_workflow_session(self) -> WorkflowSession:+ return WorkflowSession(parent=self._inner, session_id=self.session_id())++ def get_session_id(self):+ return self.session_id()+++class AgentSession:+ """+ deprecated+ """++ def __init__(self, config: Config = None):+ self._config = config if config is not None else Config()+ self._checkpointer = CheckpointerFactory.get_checkpointer()++ async def pre_run(self, **kwargs) -> Session:+ session_id = kwargs.get("session_id")+ if session_id is None:+ session_id = kwargs.get("trace_id")+ inputs = kwargs.get("inputs")+ session = TaskSession(session_id=session_id, config=self._config)+ await self._checkpointer.pre_agent_execute(session.base(), inputs)+ return session++ async def release(self, session_id: str):+ await self._checkpointer.release(session_id)+++class LegacyReActAgent(BaseAgent):+ """Legacy ReAct Agent for backward compatibility++ For new code, use openjiuwen.core.single_agent.agents.react_agent.ReActAgent++ Will be removed in v1.0.0+ """++ def __init__(+ self,+ agent_config: LegacyReActAgentConfig,+ workflows: List[Workflow] = None,+ tools: List[Tool] = None+ ):+ """Initialize Legacy ReActAgent++ Args:+ agent_config: ReAct config+ workflows: Workflow list+ tools: Tool list+ """+ super().__init__(agent_config)+ # 2. Create Session+ self._session = AgentSession(config=self._config)+ self._llm = None++ if tools:+ self.add_tools(tools)+ if workflows:+ self.add_workflows(workflows)++ def _get_llm(self):+ """Get LLM instance"""+ if self._llm is None:+ model_id = generate_key(+ self.agent_config.model.model_info.api_key,+ self.agent_config.model.model_info.api_base,+ self.agent_config.model.model_provider+ )++ model_client_config = ModelClientConfig(+ client_id=model_id,+ client_provider=self.agent_config.model.model_provider,+ api_key=self.agent_config.model.model_info.api_key,+ api_base=self.agent_config.model.model_info.api_base,+ verify_ssl=False,+ ssl_cert=None,+ )+ model_request_config = ModelRequestConfig(+ model=self.agent_config.model.model_info.model_name,+ temperature=self.agent_config.model.model_info.temperature,+ top_p=self.agent_config.model.model_info.top_p,+ **(self.agent_config.model.model_info.model_extra or {})+ )+ self._llm = Model(model_client_config=model_client_config, model_config=model_request_config)++ return self._llm++ async def call_model(self, user_input: str, session: Session, is_first_call: bool = False):+ """Call LLM for reasoning"""+ if is_first_call:+ await MessageUtils.add_user_message(user_input, self.context_engine, session)++ chat_history = MessageUtils.get_chat_history(+ self.context_engine, session,+ self.agent_config+ )++ messages = []+ try:+ system_prompt = PromptTemplate(content=self.agent_config.prompt_template).to_messages()+ for prompt in system_prompt:+ prompt_dict = prompt.model_dump(exclude_none=True)+ messages.append(prompt_dict)+ except ValidationError as e:+ raise build_error(+ StatusCode.AGENT_PROMPT_PARAM_ERROR,+ error_msg=str(e),+ cause=e+ ) from e++ for msg in chat_history:+ msg_dict = msg.model_dump(exclude_none=True)+ messages.append(msg_dict)+ from openjiuwen.core.runner import Runner+ tools = await Runner.resource_mgr.get_tool_infos(tag=self.agent_config.id)+ llm = self._get_llm()+ llm_output = await llm.invoke(+ messages,+ tools=tools,+ model=self.agent_config.model.model_info.model_name+ )++ ai_message = AssistantMessage(+ content=llm_output.content,+ tool_calls=llm_output.tool_calls+ )+ await MessageUtils.add_ai_message(ai_message, self.context_engine, session)+ return llm_output++ async def _execute_tool_call(self, tool_call, session: Session) -> Any:+ """Execute single tool call"""+ tool_name = tool_call.name+ try:+ tool_args = json.loads(tool_call.arguments) if isinstance(tool_call.arguments, str) else tool_call.arguments+ except (json.JSONDecodeError, AttributeError):+ tool_args = {}+ from openjiuwen.core.runner import Runner+ tool = Runner.resource_mgr.get_tool(tool_id=tool_name, tag=self.agent_config.id)+ if not tool:+ raise ValueError(f"Tool not found: {tool_name}")++ result = await tool.invoke(tool_args)++ tool_message = ToolMessage(+ content=str(result),+ tool_call_id=tool_call.id+ )+ await MessageUtils.add_tool_message(tool_message, self.context_engine, session)+ return result++ async def invoke(self, inputs: Dict, session: Session = None) -> Dict:+ """Sync call - Complete ReAct loop"""+ session_id = inputs.get("conversation_id", "default_session")+ session_created = False+ if session is None:+ session = await self._session.pre_run(session_id=session_id, inputs=inputs)+ session_created = True+ await self.context_engine.create_context(session=session)++ try:+ user_input = inputs.get("query", "")+ if not user_input:+ return {"output": "No query provided", "result_type": "error"}++ iteration = 0+ max_iteration = self.agent_config.constrain.max_iteration+ is_first_call = True++ while iteration < max_iteration:+ iteration += 1+ logger.info(f"ReAct iteration {iteration}")++ llm_output = await self.call_model(+ user_input,+ session,+ is_first_call=is_first_call+ )+ is_first_call = False++ if not llm_output.tool_calls:+ logger.info("No tool calls, task completed")+ return {+ "output": llm_output.content,+ "result_type": "answer"+ }++ for tool_call in llm_output.tool_calls:+ tool_name = tool_call.name+ logger.info(f"Executing tool: {tool_name}")+ result = await self._execute_tool_call(tool_call, session)+ logger.info(f"Tool {tool_name} completed with result: {result}")++ logger.warning(f"Exceeded max iteration {max_iteration}")+ return {+ "output": "Exceeded max iteration",+ "result_type": "error"+ }+ finally:+ if session_created:+ await session.post_run()++ async def stream(self, inputs: Dict, session: Session = None) -> AsyncIterator[Any]:+ """Stream call - minimal version"""+ session_id = inputs.get("conversation_id", "default_session")+ if session is None:+ agent_session = await self._session.pre_run(+ session_id=session_id, inputs=inputs+ )+ need_cleanup = True+ own_stream = True+ else:+ agent_session = session+ need_cleanup = False+ own_stream = False+ from openjiuwen.core.runner import Runner+ if hasattr(self, '_tools') and self._tools:+ tools_to_add = [(tool.card.name, tool) for tool in self._tools]+ Runner.resource_mgr.add_tool(tool=tools_to_add, tag=self.agent_config.id)+ await self.context_engine.create_context(session=agent_session)++ final_result_holder = {"result": None}++ async def stream_process():+ try:+ final_result = await self.invoke(inputs, agent_session)+ final_result_holder["result"] = final_result+ await agent_session.write_stream(OutputSchema(+ type="answer",+ index=0,+ payload={"output": final_result, "result_type": "answer"}+ ))+ except Exception as e:+ logger.error(f"ReActAgent stream error: {e}")+ finally:+ if need_cleanup:+ await agent_session.post_run()++ task = asyncio.create_task(stream_process())++ if own_stream:+ async for result in agent_session.stream_iterator():+ yield result++ await task++ if not own_stream and final_result_holder["result"] is not None:+ yield final_result_holder["result"]+++def create_react_agent_config(+ agent_id: str,+ agent_version: str,+ description: str,+ model: ModelConfig,+ prompt_template: List[Dict]+) -> LegacyReActAgentConfig:+ """Create ReAct Agent config++ Args:+ agent_id: Agent ID+ agent_version: Agent version+ description: Agent description+ model: Model config+ prompt_template: Prompt template++ Returns:+ LegacyReActAgentConfig instance++ Deprecated:+ This function is deprecated and will be removed in v1.0.0.+ Use ReActAgentConfig directly instead.+ """+ import warnings+ warnings.warn(+ "create_react_agent_config() is deprecated and will be removed "+ "in the future. Please use ReActAgentConfig() constructor instead.",+ DeprecationWarning,+ stacklevel=2+ )+ return LegacyReActAgentConfig(+ id=agent_id,+ version=agent_version,+ description=description,+ model=model,+ prompt_template=prompt_template+ )diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/intent_detection_comp.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/intent_detection_comp.pynew file mode 100644index 0000000000..42e1b699d8--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/intent_detection_comp.py@@ -0,0 +1,416 @@+# coding=utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import ast+import re+from dataclasses import dataclass, field+from typing import Optional, Union, Callable, List++from pydantic import BaseModel, ConfigDict, Field, ValidationError++from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.common.logging import workflow_logger, LogEventType+from openjiuwen.core.common.security.exception_utils import ExceptionUtils+from openjiuwen.core.workflow.components.base import ComponentConfig+from openjiuwen.core.workflow.components.component import ComponentComposable, ComponentExecutable+from openjiuwen.core.workflow.components.flow.branch_router import BranchRouter+from openjiuwen.core.workflow.components.condition.condition import Condition+from openjiuwen.core.context_engine import ModelContext+from openjiuwen.core.graph.base import Graph+from openjiuwen.core.graph.executable import Output, Input+from openjiuwen.core.session.node import Session+from openjiuwen.core.foundation.llm import (+ BaseMessage, UserMessage, SystemMessage, ModelRequestConfig, ModelClientConfig, Model+)+from openjiuwen.core.foundation.prompt import PromptTemplate+from openjiuwen.core.common.security.user_config import UserConfig+++LUI = "llm"+NAME = "name"+MODEL = "model"+CLASS = "class"+REASON = "reason"+INPUT = "input"+USER_PROMPT = "user_prompt"+CATEGORY_INFO = "category_info"+CATEGORY_LIST = "category_list"+CATEGORY_NAME_LIST = "category_name_list"+DEFAULT_CLASS = "default_class"+CHAT_HISTORY = "chat_history"+EXAMPLE_CONTENT = "example_content"+ENABLE_HISTORY = "enable_history"+ENABLE_INPUT = "enable_input"+LLM_INPUTS = "llm_inputs"+LLM_OUTPUTS = "llm_outputs"+MODEL_SOURCE = "modelType"+MODEL_NAME = "modelName"+EXTENSION = "extension"+CHAT_HISTORY_MAX_TURN = "chat_history_max_turn"+INTENT_DETECTION_TEMPLATE = "intent_detection_template"+ROLE = "role"+CONTENT = "content"+ROLE_MAP = {"user": '用户', 'assistant': '助手', 'system': '系统', 'tool': '工具'}+JSON_PARSE_FAIL_REASON = "当前意图识别的输出:'{result}'格式不符合有效的JSON规范,导致解析失败,因此返回默认分类。"+CLASS_KEY_MISSING_REASON = "当前意图识别的输出 '{result}' 缺少必要的输出'class'分类信息,因此返回默认分类。"+VALIDATION_FAIL_REASON = "当前意图识别的输出类别 '{intent_class}' 不在预定义的分类列表: '{category_list}'中,因此系统返回默认分类。"+WORKFLOW_CHAT_HISTORY = "workflow_chat_history"++RESULT = "result"+CATEGORY_NAME_ITS1 = "category_name_list"+FEW_SHOT_NUM = 5+ENABLE_Q2L = 'enableKnowledge'+DEFAULT_QUERY_CATE = 'title'+DEFAULT_CLASS_CATE = 'content'+DEFAULT_INT = "不确定,其他的意图"+SEARCH_TYPE = "faq"+SEARCH_NUM = 5+CLASSIFICATION_ID = "classificationId"+CLASSIFICATION_DEFAULT_ID = 0+CLASSIFICATION_NAME = "name"+CLASSIFICATION_DEFAULT_NAME = "默认意图"+KG_FILTER_KEY = "filter_string"+KG_FILTER_PREFIX = "category:"+KG_SCOPE = "scope"++_PROVIDER_NAME_MAP = {+ "openai": "OpenAI",+ "openrouter": "OpenRouter",+ "siliconflow": "SiliconFlow",+ "dashscope": "DashScope",+}++DEFAULT_SYSTEM_PROMPT = "你是一个识别用户输入意图的AI助手。"++DEFAULT_USER_PROMPT = """+{{user_prompt}}++当前可供选择的功能分类如下:+{{category_info}}++用户与助手的对话历史:+{{chat_history}}++当前输入:+{{input}}++请根据当前输入和对话历史分析并输出最适合的功能分类。输出格式为 JSON,包含以下两个字段:+class: 代表分类结果+reason: 说明为何选择该分类+例如: {"class": "分类xx", "reason": "当前输入xxx"}+请参考以下示例:+{{example_content}}+如果没有合适的分类,请输出 {{default_class}}。+"""+++def get_default_template():+ return PromptTemplate(+ content=[+ SystemMessage(content=DEFAULT_SYSTEM_PROMPT),+ UserMessage(content=DEFAULT_USER_PROMPT),+ ]+ )+++@dataclass+class IntentDetectionCompConfig(ComponentConfig):+ model_id: Optional[str] = None+ model_client_config: Optional[ModelClientConfig] = field(default=None)+ model_config: Optional[ModelRequestConfig] = field(default=None)+ category_name_list: list[str] = field(default_factory=list)+ user_prompt: str = ""+ example_content: list[str] = field(default_factory=list)+ enable_history: bool = False+ chat_history_max_turn: int = 3+++@dataclass+class IntentDetectionDefaultConfig:+ category_list: list[str] = field(default_factory=list)+ intent_detection_template: PromptTemplate = field(default_factory=get_default_template)+ default_class: str = '分类0'+ enable_input: bool = True+++class IntentDetectionInput(BaseModel):+ query: str+ model_config = ConfigDict(extra='allow') # Allow any extra fields+++class IntentDetectionOutput(BaseModel):+ classification_id: int = Field(default=-1)+ reason: str = Field(default="")+ category_name: str = Field(default="")+++@dataclass()+class IntentDetectionExecutable(ComponentExecutable):+ def __init__(self, component_config: IntentDetectionCompConfig):+ super().__init__()+ self._session: Union[Session, None] = None+ self._llm: Union[Model, None] = None+ self._initialized: bool = False+ self._config = component_config+ self._init_default_config_category_list(component_config)+ self._append_default_category()+ self._router: Union[BranchRouter, None] = None++ @staticmethod+ def _get_chat_history_from_context(context) -> List[BaseMessage]:+ chat_history = []+ if context:+ chat_history = context.get_messages()+ return chat_history++ @staticmethod+ def _refix_llm_output(input_str):+ json_path = r'\{.*\}'+ match = re.search(json_path, input_str, re.DOTALL)+ if match:+ res = match.group(0)+ res = res.replace("false", "False").replace("true", "True").replace("null", "None")+ return res+ else:+ return input_str++ async def invoke(self, inputs: Input, session: Session, context: ModelContext) -> Output:+ """Invoke IntentDetection node"""+ # Extract context data+ self._set_session(session)+ self._router.set_session(session)+ await self._initialize_if_needed()+ chat_history = self._get_chat_history_from_context(context)+ current_inputs = self._prepare_detection_inputs(inputs, chat_history)+ llm_output = await self._invoke_llm_and_get_result(current_inputs)+ workflow_logger.info(+ "Intent detection completed",+ event_type=LogEventType.WORKFLOW_COMPONENT_END,+ component_id=self._session.get_executable_id(),+ component_type_str="IntentDetectionComponent",+ session_id=self._session.get_session_id(),+ metadata={+ "has_output": bool(llm_output),+ "output_length": len(llm_output) if llm_output else 0,+ "sensitive_mode": UserConfig.is_sensitive()+ }+ )+ intent_res = self._parse_detection_result(llm_output)+ return intent_res++ def set_router(self, router):+ self._router = router+ return self++ def post_commit(self) -> bool:+ return True++ def _get_category_info(self):+ return "\n".join(f"{cid}: {cname}" for cid, cname in+ zip(self._default_config.category_list, self._config.category_name_list))++ def _set_session(self, session: Session):+ self._session = session++ async def _create_llm_instance(self) -> Model:+ if self._config.model_id is None:+ if self._config.model_client_config is None or self._config.model_config is None:+ raise build_error(+ StatusCode.COMPONENT_INTENT_DETECTION_INVOKE_CALL_FAILED,+ error_msg="failed to create llm instance"+ )+ return Model(self._config.model_client_config, self._config.model_config)+ else:+ from openjiuwen.core.runner import Runner+ return await Runner.resource_mgr.get_model(id=self._config.model_id)++ async def _initialize_if_needed(self):+ if not self._initialized:+ try:+ self._llm = await self._create_llm_instance()+ self._initialized = True+ except Exception as e:+ raise build_error(+ StatusCode.COMPONENT_INTENT_DETECTION_LLM_INIT_FAILED,+ error_msg="failed to initialize llm if needed",+ cause=e+ ) from e++ def _prepare_detection_inputs(self, inputs, chat_history):+ current_inputs = {}+ global_intent_map = []++ current_inputs.update({+ USER_PROMPT: self._config.user_prompt,+ CATEGORY_INFO: self._get_category_info(),+ DEFAULT_CLASS: self._default_config.default_class,+ ENABLE_HISTORY: self._config.enable_history,+ ENABLE_INPUT: self._default_config.enable_input,+ EXAMPLE_CONTENT: "\n\n".join(self._config.example_content),+ CHAT_HISTORY_MAX_TURN: self._config.chat_history_max_turn,+ CHAT_HISTORY: ""+ })++ # Process chat history+ if self._config.enable_history:+ chat_history_str = self._format_chat_history(chat_history)+ current_inputs.update({CHAT_HISTORY: chat_history_str})++ # Process current input+ if self._default_config.enable_input:+ try:+ intent_detection_input = IntentDetectionInput.model_validate(inputs)+ current_inputs.update({INPUT: intent_detection_input.query or ""})+ except ValidationError as e:+ raise build_error(+ StatusCode.COMPONENT_INTENT_DETECTION_INPUT_PARAM_ERROR,+ error_msg=ExceptionUtils.format_validation_error(e),+ cause=e+ ) from e++ current_inputs['global_intent_map'] = global_intent_map++ return current_inputs++ def _format_chat_history(self, chat_history):+ chat_history_str = ""+ for history in chat_history[-self._config.chat_history_max_turn:]:+ if history.role in ROLE_MAP:+ chat_history_str += "{}: {}\n".format(+ ROLE_MAP.get(history.role), history.content+ )+ return chat_history_str++ def _pre_process(self, inputs: dict):+ """Pre-process inputs for model"""+ final_prompts = self._default_config.intent_detection_template.format(inputs).to_messages()+ return final_prompts++ def _parse_detection_result(self, llm_output):+ intent_class, reason = self._post_process_intent_detection(llm_output)+ intent_id_and_name = self._get_intent_id_and_name(intent_class)+ return IntentDetectionOutput(classification_id=intent_id_and_name.get(CLASSIFICATION_ID, -1), reason=reason,+ category_name=intent_id_and_name.get(CLASSIFICATION_NAME, "")+ ).model_dump(exclude_defaults=True)++ async def _invoke_llm_and_get_result(self, current_inputs):+ """invoke llm and get result"""+ llm_inputs = self._default_config.intent_detection_template.format(current_inputs).to_messages()+ workflow_logger.info(+ "Intent detection LLM invoke started",+ event_type=LogEventType.WORKFLOW_COMPONENT_START,+ component_id=self._session.get_executable_id(),+ component_type_str="IntentDetectionComponent",+ session_id=self._session.get_session_id(),+ metadata={+ "has_inputs": bool(llm_inputs),+ "input_count": len(llm_inputs) if llm_inputs else 0,+ "sensitive_mode": UserConfig.is_sensitive()+ }+ )+ llm_output_content = ""++ try:+ llm_output = await self._llm.invoke(messages=llm_inputs)+ llm_output_content = llm_output.content+ except Exception as e:+ raise build_error(+ StatusCode.COMPONENT_INTENT_DETECTION_INVOKE_CALL_FAILED,+ error_msg="failed to invoke llm and get result",+ cause=e+ ) from e+ workflow_logger.info(+ "Intent detection LLM invoke completed",+ event_type=LogEventType.WORKFLOW_COMPONENT_END,+ component_id=self._session.get_executable_id(),+ component_type_str="IntentDetectionComponent",+ session_id=self._session.get_session_id(),+ metadata={+ "has_output": bool(llm_output_content),+ "output_length": len(llm_output_content) if llm_output_content else 0,+ "sensitive_mode": UserConfig.is_sensitive()+ }+ )+++ return llm_output_content++ def _post_process_intent_detection(self, result):+ """Post-process the result"""+ try:+ result = self._refix_llm_output(result)+ parsed_dict = ast.literal_eval(result)+ except Exception:+ return self._default_config.default_class, JSON_PARSE_FAIL_REASON.format(result=result)++ if not isinstance(parsed_dict, dict):+ return self._default_config.default_class, JSON_PARSE_FAIL_REASON.format(result=result)++ # post_process class information+ if not parsed_dict.get(CLASS):+ return self._default_config.default_class, CLASS_KEY_MISSING_REASON.format(result=parsed_dict)++ intent_class = parsed_dict.get(CLASS).replace('\n', '').replace(' ', '').replace('"', '').replace("'", '')+ match = re.search(r"分类\d+", intent_class)+ if match:+ parsed_dict.update({CLASS: match.group(0)})++ if not parsed_dict.get(CLASS) in self._default_config.category_list:+ reason = VALIDATION_FAIL_REASON.format(+ intent_class=parsed_dict.get(CLASS),+ category_list=self._default_config.category_list+ )+ parsed_dict.update({CLASS: self._default_config.default_class, REASON: reason})++ return parsed_dict.get(CLASS), parsed_dict.get(REASON, '')++ def _validate_llm_parsed_result(self, result):+ """Validation of LLM output"""+ return result in self._default_config.category_list++ def _append_default_category(self):+ self._default_config.category_list = [self._default_config.default_class] + self._default_config.category_list+ self._config.category_name_list = [CLASSIFICATION_DEFAULT_NAME] + self._config.category_name_list++ def _get_intent_id_and_name(self, intent_class):+ intent_res = {CLASSIFICATION_ID: CLASSIFICATION_DEFAULT_ID, CLASSIFICATION_NAME: CLASSIFICATION_DEFAULT_NAME}+ idx = next((i for i, category in enumerate(self._default_config.category_list) if category == intent_class), -1)+ if idx > -1:+ intent_res = {CLASSIFICATION_ID: idx, CLASSIFICATION_NAME: self._config.category_name_list[idx]}+ return intent_res++ def _init_default_config_category_list(self, component_config: IntentDetectionCompConfig):+ self._default_config = IntentDetectionDefaultConfig()+ for index, _ in enumerate(component_config.category_name_list, start=1):+ self._default_config.category_list.append(f"分类{index}")+++class IntentDetectionComponent(ComponentComposable):+ def __init__(self, component_config: Optional[IntentDetectionCompConfig] = None):+ super().__init__()+ self._executable = None+ self._config = component_config+ self._router = BranchRouter()++ @property+ def executable(self) -> IntentDetectionExecutable:+ if self._executable is None:+ self._executable = self.to_executable()+ return self._executable++ def add_component(self, graph: Graph, node_id: str, wait_for_all: bool = False) -> None:+ graph.add_node(node_id, self.to_executable(), wait_for_all=wait_for_all)+ graph.add_conditional_edges(node_id, self._router)++ def to_executable(self) -> IntentDetectionExecutable:+ return IntentDetectionExecutable(self._config).set_router(self._router)++ def add_branch(self, condition: Union[str, Callable[[], bool], Condition], target: Union[str, list[str]],+ branch_id: str = None):+ if isinstance(target, str):+ target = [target]+ self._router.add_branch(condition, target, branch_id=branch_id)++ def router(self) -> BranchRouter:+ return self._routerdiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/llm_comp.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/llm_comp.pynew file mode 100644index 0000000000..b102a729a0--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/llm_comp.py@@ -0,0 +1,794 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+import json+from dataclasses import dataclass, field+from enum import Enum+from typing import List, Any, Dict, Optional, AsyncIterator, Union++from pydantic import ValidationError, Field, BaseModel++from openjiuwen.core.common.exception.errors import build_error, BaseError+from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.logging import workflow_logger, LogEventType+from openjiuwen.core.common.utils.schema_utils import SchemaUtils+from openjiuwen.core.workflow.components.base import ComponentConfig+from openjiuwen.core.workflow.components.component import ComponentComposable, ComponentExecutable+from openjiuwen.core.context_engine import ModelContext+from openjiuwen.core.graph.executable import Input, Output+from openjiuwen.core.session.node import Session+from openjiuwen.core.common.security.user_config import UserConfig+from openjiuwen.core.foundation.llm import (+ BaseMessage, SystemMessage, UserMessage, ModelRequestConfig, ModelClientConfig, Model+)+from openjiuwen.core.foundation.prompt import PromptTemplate++WORKFLOW_CHAT_HISTORY = "workflow_chat_history"+_ROLE = "role"+_CONTENT = "content"+ROLE_MAP = {"user": "用户", "assistant": "助手", "system": "系统"}+_SPAN = "span"+_WORKFLOW_DATA = "workflow_data"+_ID = "id"+_TYPE = "type"+_INSTRUCTION_NAME = "instruction_name"+_TEMPLATE_NAME = "template_name"++# Provider name mapping: lowercase -> correct case for _CLIENT_TYPE_REGISTRY+_PROVIDER_NAME_MAP = {+ "openai": "OpenAI",+ "openrouter": "OpenRouter",+ "siliconflow": "SiliconFlow",+ "dashscope": "DashScope",+}+++class MessageRole(str, Enum):+ USER = "user"+ ASSISTANT = "assistant"+ FUNCTION = "function"+++class WorkflowLLMResponseType(Enum):+ JSON = "json"+ MARKDOWN = "markdown"+ TEXT = "text"+++RESPONSE_FORMAT_TO_PROMPT_MAP = {+ WorkflowLLMResponseType.JSON.value: {+ _INSTRUCTION_NAME: "jsonInstruction",+ _TEMPLATE_NAME: "llm_json_formatting"+ },+ WorkflowLLMResponseType.MARKDOWN.value: {+ _INSTRUCTION_NAME: "markdownInstruction",+ _TEMPLATE_NAME: "llm_markdown_formatting"+ }+}+++class WorkflowLLMUtils:++ @staticmethod+ def extract_content(response) -> str:+ return response.content if hasattr(response, "content") else str(response)+++class ValidationUtils:++ @staticmethod+ def raise_invalid_params_error(error_msg: str = "") -> None:+ raise build_error(+ StatusCode.COMPONENT_LLM_CONFIG_INVALID,+ error_msg=error_msg+ )++ @staticmethod+ def validate_type(instance: Any, expected_type: str) -> None:+ type_validators = {+ "object": lambda x: isinstance(x, dict),+ "array": lambda value: isinstance(value, list),+ "string": lambda value: isinstance(value, str),+ "integer": lambda value: isinstance(value, int) and not isinstance(value, bool),+ "boolean": lambda value: isinstance(value, bool),+ "number": lambda value: isinstance(value, (float, int)) and not isinstance(value, bool),+ }++ validator = type_validators.get(expected_type)+ if not validator:+ ValidationUtils.raise_invalid_params_error(error_msg=f"{expected_type} is not a valid type")++ if not validator(instance):+ ValidationUtils.raise_invalid_params_error(+ error_msg=f"expected type {expected_type} but got {type(instance)}")++ @staticmethod+ def validate_json_schema(instance: Any, schema: Dict[str, Any]) -> None:+ if "type" not in schema:+ ValidationUtils.raise_invalid_params_error("schema must have 'type' key")+ ValidationUtils.validate_type(instance=instance, expected_type=schema["type"])++ if schema["type"] == "object":+ ValidationUtils._validate_object_properties(instance, schema)++ elif schema["type"] == "array":+ ValidationUtils._validate_array_items(instance, schema)++ @staticmethod+ def _validate_object_properties(instance: Any, schema: Dict[str, Any]) -> None:+ if "properties" not in schema:+ return+ required_fields = schema.get("required", [])+ missing_fields = [field for field in required_fields if field not in instance]+ if missing_fields:+ ValidationUtils.raise_invalid_params_error(f"missing required properties {missing_fields}")+ for prop_name, prop_schema in schema["properties"].items():+ if prop_name in instance:+ ValidationUtils.validate_json_schema(instance=instance[prop_name], schema=prop_schema)++ @staticmethod+ def _validate_array_items(instance: Any, schema: Dict[str, Any]) -> None:+ if "items" not in schema:+ return++ for i, item in enumerate(instance):+ try:+ ValidationUtils.validate_json_schema(instance=item, schema=schema["items"])+ except BaseError as e:+ ValidationUtils.raise_invalid_params_error(f"invalid array item {i}: {type(e).__name__}")++ @staticmethod+ def validate_outputs_config(outputs_config: Any) -> None:+ """Validate output config parameters"""+ if not outputs_config:+ ValidationUtils.raise_invalid_params_error("outputs config must not be empty")+ if not isinstance(outputs_config, dict):+ ValidationUtils.raise_invalid_params_error("outputs config must be a dict")+++class SchemaGenerator:+ @staticmethod+ def generate_json_schema(outputs_config: Dict[str, Dict[str, Any]]) -> Dict[str, Any]:+ properties = {}+ required = []++ for field_name, field_config in outputs_config.items():+ properties[field_name] = {+ "type": field_config.get("type", "string"),+ "description": field_config.get("description", "")+ }++ if field_config.get("type") == "array" and "items" in field_config:+ properties[field_name]["items"] = field_config["items"]++ if field_config.get("type") == "object" and "properties" in field_config:+ properties[field_name]["properties"] = field_config["properties"]++ if field_config.get("required", True):+ required.append(field_name)++ return {+ "type": "object",+ "properties": properties,+ "required": required+ }+++class JsonParser:+ @staticmethod+ def parse_json_content(response_content: str) -> Dict[str, Any]:+ content = JsonParser._clean_markdown_blocks(response_content)++ try:+ return json.loads(content)+ except json.JSONDecodeError as e:+ if UserConfig.is_sensitive():+ ValidationUtils.raise_invalid_params_error("Json parse error")+ else:+ ValidationUtils.raise_invalid_params_error(f"Json parse error: {response_content}")++ @staticmethod+ def _clean_markdown_blocks(content: str):+ content = content.strip()++ if not (content.startswith("```") and content.endswith("```")):+ return content++ lines = content.split("\n")++ if lines[0].startswith("```"):+ lines = lines[1:]++ if lines and lines[-1] == "```":+ lines = lines[:-1]++ return '\n'.join(lines).strip()+++class OutputFormatter:+ @staticmethod+ def format_response(response_content: str, response_format: dict, outputs_config: dict) -> dict:+ response_type = response_format.get("type")+ ValidationUtils.validate_outputs_config(outputs_config)++ formatters = {+ "text": OutputFormatter._format_text_response,+ "markdown": OutputFormatter._format_text_response,+ "json": OutputFormatter._format_json_response+ }++ formatter = formatters.get(response_type)+ if not formatter:+ ValidationUtils.raise_invalid_params_error(f"no supported response type: '{response_type}'")++ return formatter(response_content, outputs_config)++ @staticmethod+ def _format_text_response(response_content: str, outputs_config: dict) -> dict:+ if len(outputs_config) != 1:+ ValidationUtils.raise_invalid_params_error(+ f"text/markdown response type, outputs_config must contain only one field")+ field_name = next(iter(outputs_config))+ return {field_name: response_content}++ @staticmethod+ def _format_json_response(response_content: str, outputs_config: dict) -> dict:+ if not outputs_config:+ ValidationUtils.raise_invalid_params_error(+ f"json response format, output config should contain at least one field")++ parsed_json = JsonParser.parse_json_content(response_content)++ config_type = outputs_config.get("type")+ if isinstance(config_type, str) and config_type == "object":+ SchemaUtils.validate_with_schema(parsed_json, outputs_config)+ return SchemaUtils.format_with_schema(parsed_json, outputs_config)+ else:+ json_schema = SchemaGenerator.generate_json_schema(outputs_config)+ OutputFormatter._validate_json_schema(parsed_json, json_schema, response_content)++ return OutputFormatter._extract_configured_fields(parsed_json, outputs_config)++ @staticmethod+ def _validate_json_schema(parsed_json: dict, json_schema: dict, original_content: str) -> None:+ try:+ ValidationUtils.validate_json_schema(parsed_json, json_schema)+ except BaseError as e:+ raise e+ except Exception as e:+ if UserConfig.is_sensitive():+ ValidationUtils.raise_invalid_params_error("json schema validation failed.")+ else:+ ValidationUtils.raise_invalid_params_error(f"json schema validation failed: {original_content}")++ @staticmethod+ def _extract_configured_fields(parsed_json: dict, outputs_config: dict) -> dict:+ output = {}+ missing_keys = []++ for field_name, field_config in outputs_config.items():+ if field_name not in parsed_json:+ if field_config.get("required", True):+ missing_keys.append(field_name)+ else:+ iterable_data = list(v) if (v := parsed_json[field_name]) and isinstance(v, dict) else []+ for key in iterable_data:+ if isinstance(key, str) and key not in field_config.get("properties", {}):+ parsed_json[field_name].pop(key)+ output[field_name] = parsed_json[field_name]++ if missing_keys:+ if UserConfig.is_sensitive():+ ValidationUtils.raise_invalid_params_error("missing required fields.")+ else:+ ValidationUtils.raise_invalid_params_error(f"missing required fields: {', '.join(missing_keys)}")++ return output+++class LLMPromptFormatter:++ _DEFAULT_MARKDOWN_INSTRUCTION = (+ "Please return the answer in markdown format.\n"+ "- For headings, use number signs (#).\n"+ "- For list items, start with dashes (-).\n"+ "- To emphasize text, wrap it with asterisks (*).\n"+ "- For code or commands, surround them with backticks (`).\n"+ "- For quoted text, use greater than signs (>).\n"+ "- For links, wrap the text in square brackets [], followed by the URL in parentheses ().\n"+ "- For images, use square brackets [] for the alt text, followed by the image URL in parentheses ().\n"+ "The question is: ${query}."+ )++ _DEFAULT_JSON_INSTRUCTION = (+ "Carefully consider the user's question to ensure your answer is logical and makes sense.\n"+ "- Make sure your explanation is concise and easy to understand, not verbose.\n"+ "- Strictly return the answer in valid JSON format only, and "+ "\"DO NOT ADD ANY COMMENTS BEFORE OR AFTER IT\" to ensure it could be formatted "+ "as a JSON instance that conforms to the JSON schema below.\n"+ "Here is the JSON schema: ${json_schema}.\n"+ "The question is: ${query}."+ )++ @staticmethod+ def _get_role(msg) -> str:+ """Get role from message (dict or BaseMessage)."""+ if isinstance(msg, dict):+ return msg.get("role", "")+ return getattr(msg, "role", "")++ @staticmethod+ def _get_content(msg) -> str:+ """Get content from message (dict or BaseMessage)."""+ if isinstance(msg, dict):+ return msg.get("content", "")+ return getattr(msg, "content", "")++ @staticmethod+ def _set_content(msg, content: str):+ """Set content on message (dict or BaseMessage)."""+ if isinstance(msg, dict):+ msg["content"] = content+ else:+ msg.content = content++ @staticmethod+ def _find_last_user_index(history: List[BaseMessage]) -> int | None:+ for idx in range(len(history) - 1, -1, -1):+ if history[idx].role == "user":+ return idx+ return None++ @staticmethod+ def format_prompt(+ history: List[BaseMessage],+ response_format: Dict[str, Any],+ output_config: dict,+ ) -> List[BaseMessage]:+ res_type = response_format.get("type")+ if res_type == "text":+ return history++ last_user_idx = LLMPromptFormatter._find_last_user_index(history)+ if last_user_idx is None:+ return history+ query = history[last_user_idx].content+ prompt = query++ if res_type == "markdown":+ instruction = (+ response_format.get("markdownInstruction")+ or LLMPromptFormatter._DEFAULT_MARKDOWN_INSTRUCTION+ )+ prompt = instruction.replace("${query}", query)++ elif res_type == "json":+ config_type = output_config.get("type")+ if isinstance(config_type, str) and config_type == "object":+ json_schema = output_config+ else:+ json_schema = SchemaGenerator.generate_json_schema(output_config)+ instruction = (+ response_format.get("jsonInstruction")+ or LLMPromptFormatter._DEFAULT_JSON_INSTRUCTION+ )+ prompt = (+ instruction+ .replace("${json_schema}", json.dumps(json_schema, ensure_ascii=False))+ .replace("${query}", query)+ )++ history[last_user_idx].content = prompt+ return history+++@dataclass+class LLMCompConfig(ComponentConfig):+ model_id: Optional[str] = None+ model_client_config: Optional[ModelClientConfig] = field(default=None)+ model_config: Optional[ModelRequestConfig] = field(default=None)+ template_content: List[Any] = field(default_factory=list)+ system_prompt_template: Optional[SystemMessage] = None+ user_prompt_template: Optional[UserMessage] = None+ response_format: Dict[str, Any] = field(default_factory=dict)+ output_config: Dict[str, Any] = field(default_factory=dict)+ enable_history: bool = False+ cache_stream: bool = False+++class ResponseFormatConfig(BaseModel):+ response_type: str = Field(pattern=r'^(text|markdown|json)$', alias="type")+++class OutputParamConfig(BaseModel):+ param_type: str = Field(default="", alias="type")+ param_description: str = Field(default="", alias="description")+ param_required: bool = Field(default=False, alias="required")+++class LLMExecutableState:+ """State maintained by LLMExecutable for caching stream results"""++ def __init__(self):+ self.final_result: Dict[str, Any] = {}+ self._accumulated_content: str = ""++ def accumulate_content(self, content: str):+ """Accumulate stream content chunks"""+ self._accumulated_content += content++ def build_final_result(self, response_format: Dict[str, Any], output_config: Dict[str, Any]) -> Dict[str, Any]:+ """Build final result from accumulated content"""+ if not self._accumulated_content:+ return {}+ return OutputFormatter.format_response(+ self._accumulated_content,+ response_format,+ output_config+ )++ def clear(self):+ """Clear state"""+ self.final_result = {}+ self._accumulated_content = ""+++class LLMExecutable(ComponentExecutable):+ def __init__(self, component_config: LLMCompConfig):+ super().__init__()+ self._validate_config(component_config)+ self._config: LLMCompConfig = component_config+ self._llm: Union[Model, None] = None+ self._initialized: bool = False+ self._session = None+ self._context = None+ self._state = LLMExecutableState()++ @property+ def config(self) -> LLMCompConfig:+ return self._config++ @staticmethod+ def _validate_template(template_content, system_prompt_template, user_prompt_template):+ if system_prompt_template or user_prompt_template or not template_content:+ return+ try:+ for element in template_content:+ if element.get(_ROLE, "") == "system":+ SystemMessage.model_validate(element)+ except ValidationError as e:+ raise build_error(+ StatusCode.COMPONENT_LLM_TEMPLATE_CONFIG_ERROR,+ error_msg="system message is invalid",+ cause=e+ ) from e++ if_contain_user_message = False+ for element in template_content:+ if element.get(_ROLE, "") == "user":+ UserMessage.model_validate(element)+ if_contain_user_message = True+ if if_contain_user_message and element.get(_ROLE, "") == "system":+ SystemMessage.model_validate(element)+ raise build_error(+ StatusCode.COMPONENT_LLM_TEMPLATE_CONFIG_ERROR,+ error_msg="system message must be before user message"+ )+ if not if_contain_user_message:+ raise build_error(+ StatusCode.COMPONENT_LLM_TEMPLATE_CONFIG_ERROR,+ error_msg="user message is required"+ )++ @staticmethod+ def _validate_output_config(output_config):+ if not output_config:+ raise build_error(+ StatusCode.COMPONENT_LLM_CONFIG_ERROR,+ error_msg="output config is empty"+ )+ config_type = output_config.get("type")+ if isinstance(config_type, str) and config_type == "object":+ return+ for param, value in output_config.items():+ if not param:+ raise build_error(+ StatusCode.COMPONENT_LLM_CONFIG_ERROR,+ error_msg=f"output config parameter {param} is empty"+ )+ try:+ OutputParamConfig.model_validate(value)+ except ValidationError as e:+ if UserConfig.is_sensitive():+ raise build_error(+ StatusCode.COMPONENT_LLM_CONFIG_ERROR,+ error_msg=f"output config parameter's config value is invalid",+ cause=e+ ) from e+ else:+ raise build_error(+ StatusCode.COMPONENT_LLM_CONFIG_ERROR,+ error_msg=f"output config parameter's config {value} is invalid",+ cause=e+ ) from e++ @staticmethod+ def _validate_response_format(response_format, output_config):+ response_type = ""+ try:+ response_type = ResponseFormatConfig.model_validate(response_format).response_type+ except ValidationError as e:+ raise build_error(+ StatusCode.COMPONENT_LLM_RESPONSE_CONFIG_INVALID,+ error_msg=f"response format {response_format} is invalid",+ cause=e+ ) from e++ if response_type in ["text", "markdown"] and len(output_config) != 1:+ raise build_error(+ StatusCode.COMPONENT_LLM_RESPONSE_CONFIG_INVALID,+ error_msg="output config must contain exactly one parameter for text or markdown response type"+ )++ async def invoke(self, inputs: Input, session: Session, context: ModelContext) -> Output:+ self._set_session(session)+ self._set_context(context)+ model_inputs = await self._prepare_model_inputs(inputs)+ workflow_logger.info(+ "LLM component invoke started",+ event_type=LogEventType.WORKFLOW_COMPONENT_START,+ component_id=self._session.get_executable_id(),+ component_type_str="LLMComponent",+ session_id=self._session.get_session_id(),+ metadata={+ "model_name": self._config.model_config.model_name if self._config.model_config else None,+ "has_inputs": bool(model_inputs),+ "sensitive_mode": UserConfig.is_sensitive()+ }+ )+ response = ""+ try:+ llm_response = await self._llm.invoke(messages=model_inputs)+ response = llm_response.content+ except Exception as e:+ if UserConfig.is_sensitive():+ raise build_error(+ StatusCode.COMPONENT_LLM_INVOKE_CALL_FAILED,+ error_msg=f"invoke llm failed",+ cause=e+ ) from e+ else:+ raise build_error(+ StatusCode.COMPONENT_LLM_INVOKE_CALL_FAILED,+ error_msg=str(e),+ cause=e+ ) from e++ workflow_logger.info(+ "LLM component invoke completed",+ event_type=LogEventType.WORKFLOW_COMPONENT_END,+ component_id=self._session.get_executable_id(),+ component_type_str="LLMComponent",+ session_id=self._session.get_session_id(),+ metadata={+ "has_response": bool(response),+ "response_length": len(response) if response else 0,+ "sensitive_mode": UserConfig.is_sensitive()+ }+ )+ return self._create_output(response)++ async def stream(self, inputs: Input, session: Session, context: ModelContext) -> AsyncIterator[Output]:+ self._set_session(session)+ self._set_context(context)+ # Reset state for new stream+ if self._config.cache_stream:+ self._state.clear()+ response_format_type = self._config.response_format.get(_TYPE, "")+ try:+ if response_format_type == WorkflowLLMResponseType.JSON.value:+ async for out in self._invoke_for_json_format(inputs):+ yield out+ else:+ async for out in self._stream_with_chunks(inputs):+ yield out+ except Exception as e:+ if UserConfig.is_sensitive():+ raise build_error(+ StatusCode.COMPONENT_LLM_INVOKE_CALL_FAILED,+ error_msg="failed to stream",+ cause=e+ ) from e+ else:+ raise build_error(+ StatusCode.COMPONENT_LLM_INVOKE_CALL_FAILED,+ error_msg=str(e),+ cause=e+ ) from e++ def get_stream_output(self) -> Optional[dict]:+ output = None+ if self._config.cache_stream and self._session:+ final_result = self._state.build_final_result(+ self._config.response_format,+ self._config.output_config+ )+ output = final_result if final_result else output+ return output++ async def _initialize_if_needed(self):+ if not self._initialized:+ try:+ self._llm = await self._create_llm_instance()+ self._initialized = True+ except Exception as e:+ raise build_error(+ StatusCode.COMPONENT_LLM_INIT_FAILED,+ error_msg="failed to initialize llm if needed",+ cause=e+ ) from e++ async def _create_llm_instance(self):+ if self._config.model_id is None:+ if self._config.model_client_config is None or self._config.model_config is None:+ raise build_error(+ StatusCode.COMPONENT_LLM_INVOKE_CALL_FAILED,+ error_msg="failed to create llm instance"+ )+ return Model(self._config.model_client_config, self._config.model_config)+ else:+ from openjiuwen.core.runner import Runner+ return await Runner.resource_mgr.get_model(id=self._config.model_id)++ def _build_user_prompt_content(self, inputs: dict) -> list[BaseMessage]:+ system_prompt_template = getattr(self._config, "system_prompt_template", None)+ user_prompt_template = getattr(self._config, "user_prompt_template", None)++ if system_prompt_template is not None or user_prompt_template is not None:+ if user_prompt_template is None:+ return [UserMessage(content="")]+ return PromptTemplate(content=[user_prompt_template]).format(inputs).to_messages()++ template_content = self._config.template_content+ if not template_content:+ return [UserMessage(content="")]++ user_prompt = [+ element for element in template_content+ if element.get(_ROLE, "") == MessageRole.USER.value+ ]++ return PromptTemplate(content=[user_prompt[0]]).format(inputs).to_messages()++ def _get_model_input(self, inputs: dict):+ system_prompt = self._build_system_prompt(inputs)+ user_prompt = self._build_user_prompt_content(inputs)+ all_prompts = self._insert_history_to_system_and_user_prompt(system_prompt, user_prompt)+ return LLMPromptFormatter.format_prompt(history=all_prompts,+ response_format=self._config.response_format,+ output_config=self._config.output_config)++ def _insert_history_to_system_and_user_prompt(self, system_prompt: list, user_prompt: list):+ original_history = system_prompt if isinstance(system_prompt, list) else []+ if self._config.enable_history and self._context:+ chat_history = self._context.get_messages()+ original_history.extend(chat_history)+ original_history.extend(user_prompt)+ return original_history++ def _build_template_filters(self) -> dict:+ filters = {}++ model_name = self._config.model_config.model_name+ if model_name:+ filters["model_name"] = model_name++ return filters++ def _create_output(self, llm_output) -> Output:+ try:+ formatted_res = OutputFormatter.format_response(llm_output,+ self._config.response_format,+ self._config.output_config)+ return formatted_res+ except BaseError as e:+ if e.code == StatusCode.COMPONENT_LLM_CONFIG_INVALID.code:+ raise build_error(+ StatusCode.COMPONENT_LLM_EXECUTION_PROCESS_ERROR,+ error_msg=e.message,+ cause=e+ ) from e+ else:+ raise e++ def _set_session(self, session: Session):+ self._session = session++ def _set_context(self, context):+ self._context = context++ async def _prepare_model_inputs(self, inputs):+ await self._initialize_if_needed()+ return self._get_model_input(inputs)++ async def _invoke_for_json_format(self, inputs: Input) -> AsyncIterator[Output]:+ model_inputs = await self._prepare_model_inputs(inputs)+ workflow_logger.info(+ "LLM component JSON format invoke started",+ event_type=LogEventType.WORKFLOW_COMPONENT_START,+ component_id=self._session.get_executable_id(),+ component_type_str="LLMComponent",+ session_id=self._session.get_session_id(),+ metadata={+ "response_format": "json",+ "has_inputs": bool(model_inputs),+ "sensitive_mode": UserConfig.is_sensitive()+ }+ )+ llm_output = await self._llm.invoke(messages=model_inputs) # Add await if invoke is async+ llm_output_content = llm_output.content++ if self._config.cache_stream:+ self._state.accumulate_content(llm_output_content)++ output = self._create_output(llm_output_content)++ yield output++ async def _stream_with_chunks(self, inputs: Input) -> AsyncIterator[Output]:+ model_inputs = await self._prepare_model_inputs(inputs)+ try:+ async for chunk in self._llm.stream(messages=model_inputs):+ content = WorkflowLLMUtils.extract_content(chunk)+ if content:+ # Accumulate content if cache_stream is enabled+ if self._config.cache_stream:+ self._state.accumulate_content(content)++ formatted_res = OutputFormatter.format_response(content,+ self._config.response_format,+ self._config.output_config)+ stream_out = formatted_res+ yield stream_out+ except Exception:+ # Clear state on error+ if self._config.cache_stream:+ self._state.clear()+ raise++ def _build_system_prompt(self, inputs: dict):+ system_prompt_template = getattr(self._config, "system_prompt_template", None)+ user_prompt_template = getattr(self._config, "user_prompt_template", None)++ if system_prompt_template is not None or user_prompt_template is not None:+ if system_prompt_template is None:+ return []+ return PromptTemplate(content=[system_prompt_template]).format(inputs).to_messages()++ system_prompt = []+ for element in self._config.template_content:+ if element.get(_ROLE, "") == "system":+ system_prompt.append(element)+ else:+ break+ return PromptTemplate(content=system_prompt).format(inputs).to_messages()++ def _validate_config(self, config: LLMCompConfig):+ self._validate_template(config.template_content, config.system_prompt_template, config.user_prompt_template)+ self._validate_response_format(config.response_format, config.output_config)+ self._validate_output_config(config.output_config)+++class LLMComponent(ComponentComposable):+ def __init__(self, component_config: Optional[LLMCompConfig] = None):+ super().__init__()+ self._executable = None+ self._config = component_config++ @property+ def executable(self) -> LLMExecutable:+ if self._executable is None:+ self._executable = self.to_executable()+ return self._executable++ def to_executable(self) -> LLMExecutable:+ return LLMExecutable(self._config)diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/questioner_comp.py b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/questioner_comp.pynew file mode 100644index 0000000000..c9ba653dc5--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/openjiuwen_patch_sources/openjiuwen/core/workflow/components/llm/questioner_comp.py@@ -0,0 +1,794 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import json+import re+from dataclasses import dataclass, field+from enum import Enum+from typing import Any, Optional, List, Dict, Union, Tuple, Literal++from pydantic import BaseModel, Field, ConfigDict, ValidationError++from openjiuwen.core.common.exception.codes import StatusCode+from openjiuwen.core.common.exception.errors import build_error+from openjiuwen.core.common.logging import workflow_logger, LogEventType+from openjiuwen.core.common.security.exception_utils import ExceptionUtils+from openjiuwen.core.common.security.user_config import UserConfig+from openjiuwen.core.workflow.components.base import ComponentConfig+from openjiuwen.core.workflow.components.component import ComponentComposable, ComponentExecutable+from openjiuwen.core.context_engine import ModelContext+from openjiuwen.core.graph.executable import Executable, Input, Output+from openjiuwen.core.session.node import Session+from openjiuwen.core.foundation.llm import (+ BaseMessage, UserMessage, SystemMessage, ModelRequestConfig, ModelClientConfig, Model+)+from openjiuwen.core.foundation.prompt import PromptTemplate++START_STR = "start"+END_STR = "end"+USER_INTERACT_STR = "user_interact"++SUB_PLACEHOLDER_PATTERN = r'\{\{([^}]*)\}\}'+CONTINUE_ASK_STATEMENT = "请您提供{non_extracted_key_fields_names}相关的信息"+WORKFLOW_CHAT_HISTORY = "workflow_chat_history"+TEMPLATE_NAME = "questioner"+QUESTIONER_STATE_KEY = "questioner_state"++QUESTIONER_SYSTEM_TEMPLATE = """\+你是一个信息收集助手,你需要根据指定的参数收集用户的信息,然后提交到系统。+请注意:不要使用任何工具、不用理会问题的具体含义,并保证你的输出仅有 JSON 格式的结果数据。+请严格遵循如下规则:+ 1. 让我们一步一步思考。+ 2. 用户输入中没有提及的参数提取为 null,并直接向询问用户没有明确提供的参数。+ 3. 通过用户提供的对话历史以及当前输入中提取 {{required_name}},不要追问任何其他信息。+ 4. 参数收集完成后,将收集到的信息通过 JSON 的方式展示给用户。++## Specified Parameters+{{required_params_list}}++## Constraints+{{extra_info}}++## Examples+{{example}}+"""++QUESTIONER_USER_TEMPLATE = """\+对话历史+{{dialogue_history}}++请充分考虑以上对话历史及用户输入,正确提取最符合约束要求的 JSON 格式参数。+"""+++def questioner_default_template():+ return [+ SystemMessage(content=QUESTIONER_SYSTEM_TEMPLATE),+ UserMessage(content=QUESTIONER_USER_TEMPLATE),+ ]+++class ExecutionStatus(Enum):+ START = START_STR+ USER_INTERACT = USER_INTERACT_STR+ END = END_STR+++class QuestionerEvent(Enum):+ START_EVENT = START_STR+ END_EVENT = END_STR+ USER_INTERACT_EVENT = USER_INTERACT_STR+++class ResponseType(Enum):+ ReplyDirectly = "reply_directly"+++class FieldInfo(BaseModel):+ field_name: str+ description: str+ type: Literal["string", "integer", "number", "boolean"] = Field(default="string")+ cn_field_name: str = Field(default="")+ required: bool = Field(default=False)+ default_value: Any = Field(default="")+++@dataclass+class QuestionerConfig(ComponentConfig):+ model_id: Optional[str] = None+ model_client_config: Optional[ModelClientConfig] = field(default=None)+ model_config: Optional[ModelRequestConfig] = field(default=None)+ response_type: str = field(default=ResponseType.ReplyDirectly.value)+ question_content: str = field(default="")+ extract_fields_from_response: bool = field(default=True)+ field_names: List[FieldInfo] = field(default_factory=list)+ max_response: int = field(default=3)+ with_chat_history: bool = field(default=False)+ chat_history_max_rounds: int = field(default=5)+ extra_prompt_for_fields_extraction: str = field(default="")+ example_content: str = field(default="")+++@dataclass+class QuestionerDefaultConfig:+ prompt_template: List[BaseMessage] = field(default_factory=questioner_default_template)+++class QuestionerInput(BaseModel):+ model_config = ConfigDict(extra='allow') # Allow any extra fields+ query: Union[str, dict, None] = Field(default="")+++class OutputCache(BaseModel):+ user_response: Union[str, dict] = Field(default="")+ question: str = Field(default="")+ key_fields: dict = Field(default_factory=dict)+++class QuestionerOutput(BaseModel):+ user_response: Union[str, dict] = Field(default="")+ question: str = Field(default="")+ model_config = ConfigDict(extra='allow') # Allow any extra fields+++class QuestionerState(BaseModel):+ response_num: int = Field(default=0)+ user_response: Union[str, dict] = Field(default="")+ question: str = Field(default="")+ extracted_key_fields: Dict[str, Any] = Field(default_factory=dict)+ status: ExecutionStatus = Field(default=ExecutionStatus.START)++ @classmethod+ def deserialize(cls, raw_state: dict):+ state = cls.model_validate(raw_state)+ return state.handle_event(QuestionerEvent(state.status.value))++ def serialize(self) -> dict:+ return self.model_dump()++ def handle_event(self, event: QuestionerEvent):+ if event == QuestionerEvent.START_EVENT:+ return QuestionerStartState.from_state(self)+ if event == QuestionerEvent.USER_INTERACT_EVENT:+ return QuestionerInteractState.from_state(self)+ if event == QuestionerEvent.END_EVENT:+ return QuestionerEndState.from_state(self)+ return self++ def is_undergoing_interaction(self):+ return self.status in [ExecutionStatus.USER_INTERACT]++ def is_fresh_state(self):+ return self.status == ExecutionStatus.START and self.response_num == 0+++class QuestionerStartState(QuestionerState):+ @classmethod+ def from_state(cls, questioner_state: QuestionerState):+ return cls(response_num=questioner_state.response_num,+ user_response=questioner_state.user_response,+ question=questioner_state.question,+ extracted_key_fields=questioner_state.extracted_key_fields,+ status=ExecutionStatus.START)++ def handle_event(self, event: QuestionerEvent):+ if event == QuestionerEvent.USER_INTERACT_EVENT:+ return QuestionerInteractState.from_state(self)+ if event == QuestionerEvent.END_EVENT:+ return QuestionerEndState.from_state(self)+ return self+++class QuestionerInteractState(QuestionerState):+ status: ExecutionStatus = Field(default=ExecutionStatus.USER_INTERACT)++ @classmethod+ def from_state(cls, questioner_state: QuestionerState):+ return cls(response_num=questioner_state.response_num,+ user_response=questioner_state.user_response,+ question=questioner_state.question,+ extracted_key_fields=questioner_state.extracted_key_fields,+ status=ExecutionStatus.USER_INTERACT)++ def handle_event(self, event: QuestionerEvent):+ if event == QuestionerEvent.END_EVENT:+ return QuestionerEndState.from_state(self)+ return self+++class QuestionerEndState(QuestionerState):+ status: ExecutionStatus = Field(default=ExecutionStatus.END)++ @classmethod+ def from_state(cls, questioner_state: QuestionerState):+ return cls(response_num=questioner_state.response_num,+ user_response=questioner_state.user_response,+ question=questioner_state.question,+ extracted_key_fields=questioner_state.extracted_key_fields,+ status=ExecutionStatus.END)++ def handle_event(self, event: QuestionerEvent):+ if event == QuestionerEvent.START_EVENT:+ return QuestionerState().handle_event(event) # loop back to STRAT state+ return self+++class QuestionerUtils:+ @staticmethod+ def format_template(template: str, user_fields: dict):+ def replace(match):+ key = match.group(1)+ return str(user_fields.get(key))++ try:+ result = re.sub(SUB_PLACEHOLDER_PATTERN, replace, template)+ return result+ except (KeyError, TypeError, AttributeError):+ return ""++ @staticmethod+ def get_latest_k_rounds_chat(chat_messages, rounds):+ return chat_messages[-rounds * 2 - 1:]++ @staticmethod+ def format_continue_ask_question(non_extracted_key_fields: List[FieldInfo]):+ non_extracted_key_fields_names = list()+ for param in non_extracted_key_fields:+ non_extracted_key_fields_names.append(param.cn_field_name or param.description)+ result = ", ".join(non_extracted_key_fields_names)+ return CONTINUE_ASK_STATEMENT.format(non_extracted_key_fields_names=result)++ @staticmethod+ def format_questioner_output(output_cache: OutputCache) -> Dict:+ output = QuestionerOutput(**output_cache.key_fields)+ output.user_response = output_cache.user_response+ output.question = output_cache.question+ return output.model_dump(exclude_defaults=True)++ @staticmethod+ def validate_inputs(inputs):+ try:+ return QuestionerInput.model_validate(inputs)+ except ValidationError as e:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_INPUT_PARAM_ERROR,+ error_msg=ExceptionUtils.format_validation_error(e),+ cause=e+ ) from e++ @staticmethod+ def is_valid_value(input_value):+ if input_value is None:+ return False+ if input_value in ("", {}, []):+ return False+ if isinstance(input_value, str):+ value = input_value.strip().lower()+ return value not in ("null", "none")+ return True++ @staticmethod+ def validate_and_convert_type(value: Any, expected_type: str) -> Tuple[Any, bool]:+ """+ Validate and convert a value to the expected type.++ Args:+ value: The value to validate and convert+ expected_type: One of "string", "integer", "number", "boolean"++ Returns:+ Tuple of (converted_value, is_valid)+ - If conversion succeeds: (converted_value, True)+ - If conversion fails: (None, False)+ """+ if value is None:+ return None, False++ try:+ if expected_type == "string":+ # String type: always convert to string+ return str(value), True++ elif expected_type == "integer":+ # Integer type: try to convert to int+ if isinstance(value, bool):+ # Avoid bool being treated as int (True=1, False=0)+ return None, False+ if isinstance(value, int):+ return value, True+ if isinstance(value, float):+ # Only accept if it's a whole number+ if value == int(value):+ return int(value), True+ return None, False+ if isinstance(value, str):+ # Try to parse string as integer+ cleaned = value.strip()+ return int(cleaned), True+ return None, False++ elif expected_type == "number":+ # Number type: try to convert to float+ if isinstance(value, bool):+ return None, False+ if isinstance(value, (int, float)):+ return float(value), True+ if isinstance(value, str):+ cleaned = value.strip()+ return float(cleaned), True+ return None, False++ elif expected_type == "boolean":+ # Boolean type: only accept bool or string "true"/"false" (case-insensitive)+ if isinstance(value, bool):+ return value, True+ if isinstance(value, str):+ cleaned = value.strip().lower()+ if cleaned == "true":+ return True, True+ if cleaned == "false":+ return False, True+ return None, False+ return None, False++ else:+ # Unknown type: treat as string (backward compatible)+ return str(value), True++ except (ValueError, TypeError):+ return None, False+++class QuestionerDirectReplyHandler:+ def __init__(self):+ self._config = None+ self._model = None+ self._state = None+ self._prompt = None+ self._query = ""++ def config(self, config: QuestionerConfig):+ self._config = config+ return self++ def model(self, model: Model):+ self._model = model+ return self++ def state(self, state: QuestionerState):+ self._state = state+ return self++ def get_state(self):+ return self._state++ def prompt(self, prompt):+ self._prompt = prompt+ return self++ async def handle(self, inputs: Input, session: Session, context):+ if self._state.status == ExecutionStatus.START:+ return await self._handle_start_state(inputs, session, context)+ if self._state.status == ExecutionStatus.USER_INTERACT:+ return await self._handle_user_interact_state(inputs, session, context)+ if self._state.status == ExecutionStatus.END:+ return self._handle_end_state(inputs, session, context)+ return dict()++ async def _handle_start_state(self, inputs, session, context):+ questioner_input = QuestionerUtils.validate_inputs(inputs)+ output = OutputCache()+ self._query = questioner_input.query or ""+ chat_history = self._get_latest_chat_history(context)+ if self._is_set_question_content():+ user_fields = questioner_input.model_dump(exclude={'query'})+ output.question = QuestionerUtils.format_template(self._config.question_content, user_fields)+ self._update_questioner_states_question(output.question)+ self._state = self._state.handle_event(QuestionerEvent.USER_INTERACT_EVENT)+ return QuestionerUtils.format_questioner_output(output)++ if self._need_extract_fields():+ is_continue_ask = await self._initial_extract_from_chat_history(chat_history, output)+ event = QuestionerEvent.USER_INTERACT_EVENT if is_continue_ask else QuestionerEvent.END_EVENT+ if is_continue_ask:+ self._update_questioner_states_question(output.question)+ self._state = self._state.handle_event(event)+ else:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_INPUT_INVALID,+ error_msg="question_content is empty and no extractable fields are configured"+ )+ return QuestionerUtils.format_questioner_output(output)++ async def _handle_user_interact_state(self, inputs, session: Session, context):+ await self._get_latest_human_feedback(session)+ output = OutputCache(question=self._state.question, user_response=self._query)++ chat_history = self._get_latest_chat_history(context)+ user_response = chat_history[-1].content if chat_history else ""++ if self._is_set_question_content() and not self._need_extract_fields():+ output.user_response = user_response+ self._state = self._state.handle_event(QuestionerEvent.END_EVENT)+ return QuestionerUtils.format_questioner_output(output)++ if self._need_extract_fields():+ is_continue_ask = await self._repeat_extract_from_chat_history(chat_history, output)+ event = QuestionerEvent.USER_INTERACT_EVENT if is_continue_ask else QuestionerEvent.END_EVENT+ if is_continue_ask:+ self._update_questioner_states_question(output.question)+ self._state = self._state.handle_event(event)+ else:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_INPUT_INVALID,+ error_msg="question_content is empty and no extractable fields are configured"+ )+ return QuestionerUtils.format_questioner_output(output)++ def _handle_end_state(self, inputs, session, context):+ output = QuestionerOutput(**self._state.extracted_key_fields)+ output.user_response = self._state.user_response+ output.question = self._state.question+ return output.model_dump(exclude_defaults=True)++ def _is_set_question_content(self):+ return isinstance(self._config.question_content, str) and len(self._config.question_content) > 0++ def _need_extract_fields(self):+ return (self._config.extract_fields_from_response and+ len(self._config.field_names) > len(self._state.extracted_key_fields))++ async def _initial_extract_from_chat_history(self, chat_history, output: OutputCache) -> bool:+ await self._invoke_llm_and_parse_result(chat_history, output)++ self._update_param_default_value(output)+ self._update_state_of_key_fields(output.key_fields)++ return self._check_if_continue_ask(output)++ async def _repeat_extract_from_chat_history(self, chat_history, output: OutputCache) -> bool:+ await self._invoke_llm_and_parse_result(chat_history, output)++ self._update_param_default_value(output)+ self._update_state_of_key_fields(output.key_fields)++ return self._check_if_continue_ask(output)++ def _get_latest_chat_history(self, context) -> List:+ result = list()+ if self._config.with_chat_history and context:+ raw_chat_history = context.get_messages()+ if raw_chat_history:+ result = QuestionerUtils.get_latest_k_rounds_chat(raw_chat_history,+ self._config.chat_history_max_rounds)+ if not result or result[-1].role in ["assistant"]:+ # make sure content is Union[str, List[Union[str, Dict]]]+ content = self._query+ if isinstance(content, dict):+ content = [content] # wrap dict in list+ result.append(UserMessage(role="user", content=content))+ return result++ def _build_llm_inputs(self, chat_history: list = None) -> List[BaseMessage]:+ prompt_template_input = self._create_prompt_template_keywords(chat_history)+ formatted_template: PromptTemplate = self._prompt.format(prompt_template_input)+ return formatted_template.to_messages()++ def _create_prompt_template_keywords(self, chat_history: List[BaseMessage]):+ params_list, required_name_list = list(), list()+ for param in self._config.field_names:+ params_list.append(f"{param.field_name}: {param.description}")+ if param.required:+ required_name_list.append(param.cn_field_name or param.description)+ required_name_str = "、".join(required_name_list) + f"{len(required_name_list)}个必要信息"+ all_param_str = "\n".join(params_list)+ dialogue_history_str = "\n".join([f"{_.role}:{_.content}" for _ in chat_history])++ return dict(required_name=required_name_str, required_params_list=all_param_str,+ extra_info=self._config.extra_prompt_for_fields_extraction, example=self._config.example_content,+ dialogue_history=dialogue_history_str)++ async def _invoke_llm_for_extraction(self, llm_inputs: List[BaseMessage]):+ response = ""++ workflow_logger.info(+ "Questioner LLM extraction started",+ event_type=LogEventType.WORKFLOW_COMPONENT_START,+ component_type_str="QuestionerComponent",+ metadata={+ "has_inputs": bool(llm_inputs),+ "input_count": len(llm_inputs) if llm_inputs else 0,+ "sensitive_mode": UserConfig.is_sensitive()+ }+ )++ try:+ response = (await self._model.invoke(messages=llm_inputs)).content+ except Exception as e:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_INVOKE_CALL_FAILED,+ error_msg="failed to invoke llm for extraction",+ cause=e+ ) from e++ workflow_logger.info(+ "Questioner LLM extraction completed",+ event_type=LogEventType.WORKFLOW_COMPONENT_END,+ component_type_str="QuestionerComponent",+ metadata={+ "has_response": bool(response),+ "response_length": len(response) if response else 0,+ "sensitive_mode": UserConfig.is_sensitive()+ }+ )++ result = dict()+ try:+ cleaned = re.sub(r'^\s*```json\s*|\s*```\s*$', '', response.strip(), flags=re.IGNORECASE)+ cleaned = re.sub(r"^\s*'''json\s*|\s*'''\s*$", '', cleaned, flags=re.IGNORECASE)+ result = json.loads(cleaned, strict=False)+ except json.JSONDecodeError as _:+ workflow_logger.error(+ "Questioner JSON parse failed",+ event_type=LogEventType.WORKFLOW_COMPONENT_ERROR,+ component_type_str="QuestionerComponent",+ metadata={"error": "Failed to parse JSON from LLM response"}+ )+ return result++ if not isinstance(result, dict):+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_EXECUTION_PROCESS_ERROR,+ error_msg="failed to parse json from llm response"+ )+ result = {k: v for k, v in result.items() if QuestionerUtils.is_valid_value(v)}++ # Validate and convert field types based on FieldInfo.type+ result = self._validate_and_convert_fields(result)+ return result++ def _validate_and_convert_fields(self, extracted_result: dict) -> dict:+ """+ Validate and convert extracted field values based on FieldInfo.type definitions.++ If validation fails, attempts type conversion. If conversion also fails,+ the field is treated as not extracted (removed from result).++ Args:+ extracted_result: Dict of field_name -> extracted_value from LLM++ Returns:+ Dict with validated and type-converted values. Invalid fields are removed.+ """+ # Build field_name -> expected_type mapping+ field_type_map = {f.field_name: f.type for f in self._config.field_names}++ validated_result = {}+ for field_name, value in extracted_result.items():+ # Get expected type, default to "string" for backward compatibility+ expected_type = field_type_map.get(field_name, "string")++ converted_value, is_valid = QuestionerUtils.validate_and_convert_type(value, expected_type)++ if is_valid:+ validated_result[field_name] = converted_value+ else:+ # Log warning and skip this field (treated as not extracted)+ workflow_logger.warning(+ "Questioner field validation failed",+ event_type=LogEventType.WORKFLOW_COMPONENT_ERROR,+ component_type_str="QuestionerComponent",+ metadata={+ "field_name": field_name,+ "value": str(value) if not UserConfig.is_sensitive() else None,+ "expected_type": expected_type+ }+ )++ return validated_result++ def _filter_non_extracted_key_fields(self) -> List[FieldInfo]:+ result = []+ for item in self._config.field_names:+ if item.required and item.field_name not in self._state.extracted_key_fields:+ result.append(item)+ return result++ def _update_state_of_key_fields(self, key_fields):+ for k, v in key_fields.items():+ if v:+ self._state.extracted_key_fields.update({k: v})++ def _update_param_default_value(self, output: OutputCache):+ result = dict()+ extracted_key_fields = self._state.extracted_key_fields+ for param in self._config.field_names:+ param_name = param.field_name+ default_value = param.default_value+ if default_value and param_name not in extracted_key_fields:+ result.update({param_name: default_value})+ output.key_fields.update(result)++ def _increment_state_of_response_num(self):+ self._state.response_num += 1++ def _exceed_max_response(self):+ return self._state.response_num >= self._config.max_response++ def _check_if_continue_ask(self, output: OutputCache):+ is_continue_ask = False+ non_extracted_key_fields: List[FieldInfo] = self._filter_non_extracted_key_fields()+ if non_extracted_key_fields:+ if not self._exceed_max_response():+ output.question = QuestionerUtils.format_continue_ask_question(non_extracted_key_fields)+ is_continue_ask = True+ else:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_RUNTIME_ERROR,+ error_msg=" max_response reached before all required fields were extracted"+ )+ if is_continue_ask:+ output.key_fields.clear()+ else:+ output.key_fields.update(self._state.extracted_key_fields)+ return is_continue_ask++ async def _invoke_llm_and_parse_result(self, chat_history, output):+ llm_inputs = self._build_llm_inputs(chat_history=chat_history)+ extracted_key_fields = await self._invoke_llm_for_extraction(llm_inputs)+ for k, v in extracted_key_fields.items():+ if v:+ output.key_fields.update({k: v})++ self._update_state_of_key_fields(extracted_key_fields)++ async def _get_latest_human_feedback(self, session):+ for _ in range(self._state.response_num + 1):+ self._query = await session.interact(self._state.question) # keep the last question, in case of no feedback+ self._increment_state_of_response_num()++ def _update_questioner_states_question(self, question):+ self._state.question = question+++class QuestionerExecutable(ComponentExecutable):+ def __init__(self, config: QuestionerConfig):+ super().__init__()+ self._validate_config(config)+ self._config = config+ self._default_config = QuestionerDefaultConfig()+ self._llm: Union[Model, None] = None+ self._initialized: bool = False+ self._prompt: PromptTemplate = self._init_prompt()+ self._state = None++ @staticmethod+ def _load_state_from_session(session: Session) -> QuestionerState:+ questioner_state = session.get_state()+ state_dict = questioner_state.get(QUESTIONER_STATE_KEY) if isinstance(questioner_state, dict) else None+ if state_dict:+ return QuestionerState.deserialize(state_dict)+ return QuestionerState()++ @staticmethod+ def _store_state_to_session(state: QuestionerState, session: Session):+ state_dict = state.serialize()+ session.update_state({QUESTIONER_STATE_KEY: state_dict})++ @staticmethod+ def _validate_max_response_num_config(max_response_num: int):+ if max_response_num <= 0:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_CONFIG_ERROR,+ error_msg="max response must be greater than 0"+ )++ @staticmethod+ def _validate_extract_key_fields_config(if_extract: bool, extract_key_fields: List[FieldInfo]):+ if if_extract and not extract_key_fields:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_CONFIG_ERROR,+ error_msg="extracted key fields cannot be empty"+ )+ for item in extract_key_fields:+ if not item.field_name:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_CONFIG_ERROR,+ error_msg="extracted key field name cannot be empty"+ )++ @staticmethod+ def _validate_response_type_config(response_type: str):+ response_type_values = [member.value for member in ResponseType]+ if response_type not in response_type_values:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_CONFIG_ERROR,+ error_msg=f"response type {response_type} is invalid"+ )++ def state(self, state: QuestionerState):+ self._state = state+ return self++ async def invoke(self, inputs: Input, session: Session, context: ModelContext) -> Output:+ state_from_session = self._load_state_from_session(session)+ if state_from_session.is_undergoing_interaction():+ current_state = state_from_session # recover state from session+ else:+ current_state = QuestionerState() # create new state++ current_state = current_state.handle_event(QuestionerEvent.START_EVENT)+ await self._initialize_if_needed()+ invoke_result = dict()+ if self._config.response_type == ResponseType.ReplyDirectly.value:+ invoke_result = await self._handle_questioner_direct_reply_safe(+ inputs, session, context, current_state+ )+ # handler might update state+ current_state = invoke_result.pop('_state', current_state)++ self._store_state_to_session(current_state, session)++ if current_state.is_undergoing_interaction():+ await session.interact(invoke_result.get("question", ""))++ return invoke_result++ async def _create_llm_instance(self) -> Model:+ if self._config.model_id is None:+ if self._config.model_client_config is None or self._config.model_config is None:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_INVOKE_CALL_FAILED,+ error_msg="failed to create llm instance"+ )+ return Model(self._config.model_client_config, self._config.model_config)+ else:+ from openjiuwen.core.runner import Runner+ return await Runner.resource_mgr.get_model(id=self._config.model_id)++ async def _initialize_if_needed(self):+ if not self._initialized:+ try:+ self._llm = await self._create_llm_instance()+ self._initialized = True+ except Exception as e:+ raise build_error(+ StatusCode.COMPONENT_QUESTIONER_INVOKE_CALL_FAILED,+ error_msg="failed to initialize llm if needed",+ cause=e+ ) from e++ def _init_prompt(self) -> PromptTemplate:+ return PromptTemplate(content=self._default_config.prompt_template)++ async def _handle_questioner_direct_reply(self, inputs: Input, session: Session, context):+ handler = (QuestionerDirectReplyHandler()+ .config(self._config).model(self._llm).state(self._state).prompt(self._prompt))+ result = await handler.handle(inputs, session, context)+ self._state = handler.get_state()+ return result++ async def _handle_questioner_direct_reply_safe(+ self, inputs: Input, session: Session, context, current_state: QuestionerState+ ):+ handler = (QuestionerDirectReplyHandler()+ .config(self._config).model(self._llm).state(current_state).prompt(self._prompt))+ result = await handler.handle(inputs, session, context)+ # return updated state, let caller manage+ result['_state'] = handler.get_state()+ return result++ def _validate_config(self, config: QuestionerConfig):+ self._validate_response_type_config(config.response_type)+ self._validate_extract_key_fields_config(config.extract_fields_from_response, config.field_names)+ self._validate_max_response_num_config(config.max_response)+++class QuestionerComponent(ComponentComposable):+ def __init__(self, questioner_comp_config: QuestionerConfig = None):+ super().__init__()+ self._questioner_config = questioner_comp_config+ self._executable = None++ def to_executable(self) -> Executable:+ return QuestionerExecutable(self._questioner_config).state(QuestionerState())diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/__init__.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/__init__.pynew file mode 100644index 0000000000..825567f9cf--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/__init__.py@@ -0,0 +1,33 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Playwright runtime package bootstrap."""++from __future__ import annotations++import sys+from pathlib import Path++# Make repo-local modules importable when running from repo root or src/.+_HERE = Path(__file__).resolve().parent+SRC_ROOT = _HERE.parent+REPO_ROOT = SRC_ROOT.parent+PROJECT_ROOT = REPO_ROOT.parents[3]+if str(REPO_ROOT) not in sys.path:+ sys.path.insert(0, str(REPO_ROOT))+if str(PROJECT_ROOT) not in sys.path:+ sys.path.insert(0, str(PROJECT_ROOT))++try:+ from dotenv import load_dotenv++ load_dotenv()+except Exception:+ pass++from .openjiuwen_monkeypatch import apply_openjiuwen_monkeypatch++apply_openjiuwen_monkeypatch()++__all__ = ["PROJECT_ROOT", "REPO_ROOT", "SRC_ROOT", "apply_openjiuwen_monkeypatch"]diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/agents.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/agents.pynew file mode 100644index 0000000000..60321bbd51--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/agents.py@@ -0,0 +1,200 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Agent builders for runtime and browser worker."""++from __future__ import annotations++import asyncio+import inspect+import os+from typing import Any++import anyio++from openjiuwen.core.common.logging import logger+from openjiuwen.core.foundation.tool import McpServerConfig+from openjiuwen.core.single_agent.agents.react_agent import ReActAgent, ReActAgentConfig+from openjiuwen.core.single_agent.schema.agent_card import AgentCard+++def _resolve_tool_timeout_s(default_s: float = 180.0) -> float:+ raw = (+ os.getenv("PLAYWRIGHT_TOOL_TIMEOUT_S")+ or os.getenv("PLAYWRIGHT_MCP_TIMEOUT_S")+ or os.getenv("BROWSER_TIMEOUT_S")+ or str(default_s)+ )+ try:+ parsed = float(raw)+ if parsed > 0:+ return parsed+ except (TypeError, ValueError):+ pass+ return default_s+++def _format_tool_names(tool_call: Any) -> str:+ if isinstance(tool_call, list):+ names = [getattr(item, "name", "") for item in tool_call]+ names = [name for name in names if name]+ return ", ".join(names) if names else "<unknown>"+ name = getattr(tool_call, "name", "")+ return name or "<unknown>"+++def _build_main_agent_system_prompt(default_timeout_s: float) -> str:+ timeout_text = f"{int(default_timeout_s)}" if default_timeout_s.is_integer() else f"{default_timeout_s:.1f}"+ return (+ "You are the main orchestration agent.\n"+ "For browser tasks, prefer browser_run_task.\n"+ "Default to one comprehensive browser_run_task call per user request.\n"+ "Do not split work into many small browser_run_task calls unless a prior browser result shows "+ "a concrete blocking error that requires a narrower retry.\n"+ "Reuse the same session_id across retries to preserve browser continuity.\n"+ f"Use a long browser timeout. Do not pass timeout_s below {timeout_text}s. "+ "Prefer omitting timeout_s so the default long timeout is used.\n"+ "When a request is not straightforward and needs custom logic, call browser_custom_action first.\n"+ "If action names or params are unclear, call browser_list_custom_actions first and "+ "then call browser_custom_action with the matching action and params.\n"+ "Do not simulate browser actions yourself.\n"+ "Pass through the full user goal clearly as browser task text.\n"+ "Keep user-facing answer concise and factual.\n"+ "If a browser tool returns an error, report it explicitly."+ )+++def ensure_execute_signature_compat(agent: ReActAgent) -> None:+ """Adapt execute signature and add a timeout watchdog around tool execution."""+ execute_fn = getattr(agent.ability_manager, "execute", None)+ if execute_fn is None:+ return+ if getattr(execute_fn, "_playwright_timeout_wrapped", False):+ return++ try:+ params = inspect.signature(execute_fn).parameters+ except (TypeError, ValueError):+ return++ original_execute = execute_fn+ supports_tag = "tag" in params+ tool_timeout_s = _resolve_tool_timeout_s()++ async def execute_with_tag(tool_call, session, tag=None):+ tool_names = _format_tool_names(tool_call)+ try:+ with anyio.fail_after(tool_timeout_s):+ if supports_tag:+ return await original_execute(tool_call, session, tag=tag)+ return await original_execute(tool_call, session)+ except TimeoutError as exc:+ logger.error(+ f"Tool execution timed out after {tool_timeout_s:.1f}s; tools={tool_names}"+ )+ raise RuntimeError(+ f"tool_execution_timeout: tools={tool_names}, timeout_s={tool_timeout_s:.1f}"+ ) from exc++ agent.ability_manager.execute = execute_with_tag+ setattr(agent.ability_manager.execute, "_playwright_timeout_wrapped", True)+++def build_browser_worker_agent(+ provider: str,+ api_key: str,+ api_base: str,+ model_name: str,+ mcp_cfg: McpServerConfig,+ max_steps: int,+ screenshot_subdir: str = "screenshots",+) -> ReActAgent:+ screenshot_subdir = (+ (screenshot_subdir or "screenshots").strip().replace("\\", "/").strip("/") or "screenshots"+ )+ card = AgentCard(+ id="agent.playwright.browser_worker",+ name="playwright_browser_worker",+ description="Browser worker that executes web tasks using Playwright MCP tools.",+ input_params={},+ )+ agent = ReActAgent(card=card).configure(+ ReActAgentConfig()+ .configure_model_client(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ )+ .configure_max_iterations(max_steps)+ .configure_prompt_template(+ [+ {+ "role": "system",+ "content": (+ "You are a browser worker agent.\n"+ "Execute browser tasks step-by-step with Playwright MCP tools only.\n"+ "Before interacting, ensure page or selector readiness.\n"+ "Keep actions targeted and avoid unnecessary page snapshots.\n"+ "If actions repeatedly fail, stop and report the exact failing action.\n"+ "IMPORTANT: Do NOT use browser_take_screenshot unless strictly necessary. "+ f"If a screenshot is needed, always save it under '{screenshot_subdir}/'. "+ "Use browser_run_code with: "+ f"async (page) => {{ await page.screenshot({{ path: '{screenshot_subdir}/screenshot.png' }}); "+ f"return '{screenshot_subdir}/screenshot.png'; }}\n"+ "Final output MUST be a single JSON object with keys:\n"+ "ok (boolean), final (string), page (object with url and title), "+ "screenshot (string|null), error (string|null).\n"+ "Do not output markdown."+ ),+ }+ ]+ )+ )+ agent.ability_manager.add(mcp_cfg)+ ensure_execute_signature_compat(agent)+ return agent+++def build_main_agent(+ provider: str,+ api_key: str,+ api_base: str,+ model_name: str,+ browser_tool_card,+ custom_action_tool_card=None,+ list_actions_tool_card=None,+) -> ReActAgent:+ default_timeout_s = _resolve_tool_timeout_s()+ card = AgentCard(+ id="agent.playwright.main_runtime",+ name="playwright_main_runtime",+ description="Main runtime agent that delegates browser work to browser_run_task.",+ input_params={},+ )+ agent = ReActAgent(card=card).configure(+ ReActAgentConfig()+ .configure_model_client(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ )+ .configure_max_iterations(8)+ .configure_prompt_template(+ [+ {+ "role": "system",+ "content": _build_main_agent_system_prompt(default_timeout_s),+ }+ ]+ )+ )+ agent.ability_manager.add(browser_tool_card)+ if custom_action_tool_card is not None:+ agent.ability_manager.add(custom_action_tool_card)+ if list_actions_tool_card is not None:+ agent.ability_manager.add(list_actions_tool_card)+ ensure_execute_signature_compat(agent)+ return agentdiff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/clients/__init__.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/clients/__init__.pynew file mode 100644index 0000000000..7eb17c7478--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/clients/__init__.py@@ -0,0 +1,7 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++from playwright_runtime.clients.stdio_client import BrowserMoveStdioClient+from playwright_runtime.clients.streamable_http_client import BrowserMoveStreamableHttpClient++__all__ = ["BrowserMoveStdioClient", "BrowserMoveStreamableHttpClient"]diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/clients/stdio_client.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/clients/stdio_client.pynew file mode 100644index 0000000000..c3e541568b--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/clients/stdio_client.py@@ -0,0 +1,267 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import asyncio+from contextlib import AsyncExitStack+from typing import Any, List, Optional++from openjiuwen.core.common.logging import logger+from openjiuwen.core.foundation.tool import McpToolCard+from openjiuwen.core.foundation.tool.mcp.base import NO_TIMEOUT+from openjiuwen.core.foundation.tool.mcp.client.stdio_client import StdioClient+++class BrowserMoveStdioClient(StdioClient):+ """browser-move extension of StdioClient.++ Adds timeout resolution, retryable-error detection, auto-reconnect, and+ retry/timeout wrapping around list_tools and call_tool. Also fixes the+ missing exit-stack reset in connect/disconnect that would otherwise cause+ failures on the second connection attempt.+ """++ # ------------------------------------------------------------------+ # Helpers+ # ------------------------------------------------------------------++ def _resolve_timeout(self, timeout: float = NO_TIMEOUT, *, default_s: float = 60.0) -> float:+ """Return an effective timeout in seconds for MCP operations."""+ try:+ configured = float(self._params.get("timeout_s", default_s))+ if configured <= 0:+ configured = default_s+ except (TypeError, ValueError):+ configured = default_s++ if timeout == NO_TIMEOUT:+ return configured++ try:+ parsed = float(timeout)+ if parsed > 0:+ return parsed+ except (TypeError, ValueError):+ pass+ return configured++ @staticmethod+ def _is_retryable_transport_error(error: Exception) -> bool:+ name = type(error).__name__.lower()+ text = str(error).lower()+ markers = (+ "closedresourceerror",+ "brokenresourceerror",+ "endofstream",+ "stream closed",+ "connection closed",+ "remoteprotocolerror",+ "readerror",+ "writeerror",+ "not connected",+ "broken pipe",+ )+ return any(marker in name or marker in text for marker in markers)++ async def _reconnect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ await self.disconnect(timeout=timeout)+ return await self.connect(timeout=timeout)++ # ------------------------------------------------------------------+ # Overrides — include exit-stack reset fix missing from base class+ # ------------------------------------------------------------------++ async def connect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ """Establish Stdio connection to the tool server."""+ from mcp import ClientSession, StdioServerParameters+ from mcp.client.stdio import stdio_client++ connect_timeout = self._resolve_timeout(timeout, default_s=30.0)+ try:+ valid_handlers = {"strict", "ignore", "replace"}+ handler = self._params.get("encoding_error_handler", "strict")+ if handler not in valid_handlers:+ handler = "strict"+ params = StdioServerParameters(+ command=self._params.get("command"),+ args=self._params.get("args"),+ env=self._params.get("env"),+ cwd=self._params.get("cwd"),+ encoding_error_handler=handler,+ )+ self._exit_stack = AsyncExitStack()+ self._client = stdio_client(params)+ self._read, self._write = await self._exit_stack.enter_async_context(self._client)+ self._session = await self._exit_stack.enter_async_context(+ ClientSession(self._read, self._write, sampling_callback=None)+ )+ await asyncio.wait_for(self._session.initialize(), timeout=connect_timeout)+ self._is_disconnected = False+ logger.info("Stdio client connected successfully")+ return True+ except asyncio.TimeoutError:+ logger.error(f"Stdio connection timed out after {connect_timeout:.1f}s")+ await self.disconnect()+ return False+ except Exception as e:+ logger.error(f"Stdio connection failed: {e}")+ await self.disconnect()+ return False++ async def disconnect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ """Close Stdio connection."""+ if self._is_disconnected:+ logger.info("Stdio client disconnected successfully")+ return True+ try:+ await self._exit_stack.aclose()+ logger.info("Stdio client disconnected successfully")+ self._is_disconnected = True+ return True+ except (asyncio.CancelledError, RuntimeError):+ if self._client:+ await self._client.__aexit__(None, None, None)+ logger.info("Stdio client disconnected successfully")+ self._is_disconnected = True+ return True+ except Exception as e:+ logger.error(f"Stdio disconnection failed: {e}")+ return False+ finally:+ self._session = None+ self._client = None+ self._read = None+ self._write = None+ self._exit_stack = AsyncExitStack()++ async def list_tools(self, *, timeout: float = NO_TIMEOUT) -> List[Any]:+ """List available tools via Stdio, with auto-reconnect and timeout."""+ if not self._session:+ connected = await self._reconnect(timeout=timeout)+ if not connected:+ raise RuntimeError("Not connected to Stdio server")++ effective_timeout = self._resolve_timeout(timeout)+ for attempt in range(2):+ try:+ tools_response = await asyncio.wait_for(+ self._session.list_tools(),+ timeout=effective_timeout,+ )+ tools_list = [+ McpToolCard(+ name=tool.name,+ server_name=self._name,+ description=getattr(tool, "description", ""),+ input_params=getattr(tool, "inputSchema", {}),+ )+ for tool in tools_response.tools+ ]+ logger.info(f"Retrieved {len(tools_list)} tools from Stdio server")+ return tools_list+ except asyncio.TimeoutError as e:+ if attempt == 0:+ logger.warning(+ f"Stdio list_tools timed out after {effective_timeout:.1f}s, retrying after reconnect"+ )+ connected = await self._reconnect(timeout=effective_timeout)+ if connected:+ continue+ logger.error(f"Stdio list_tools timed out after {effective_timeout:.1f}s")+ raise RuntimeError(+ f"Stdio list_tools timed out after {effective_timeout:.1f}s"+ ) from e+ except Exception as e:+ if attempt == 0 and self._is_retryable_transport_error(e):+ logger.warning(+ f"Stdio list_tools retry after reconnect: type={type(e).__name__}, repr={e!r}"+ )+ connected = await self._reconnect(timeout=timeout)+ if connected:+ continue+ logger.error(f"Failed to list tools via Stdio: {e}")+ raise++ async def call_tool(self, tool_name: str, arguments: dict, *, timeout: float = NO_TIMEOUT) -> Any:+ """Call tool via Stdio, with auto-reconnect, timeout, and multi-content extraction."""+ if not self._session:+ connected = await self._reconnect(timeout=timeout)+ if not connected:+ raise RuntimeError("Not connected to Stdio server")++ effective_timeout = self._resolve_timeout(timeout)+ for attempt in range(2):+ try:+ logger.info(f"Calling tool '{tool_name}' via Stdio with arguments: {arguments}")+ tool_result = await asyncio.wait_for(+ self._session.call_tool(tool_name, arguments=arguments),+ timeout=effective_timeout,+ )+ result_content = None+ if tool_result.content and len(tool_result.content) > 0:+ chunks = []+ for item in tool_result.content:+ text = getattr(item, "text", None)+ if text:+ chunks.append(text)+ continue++ uri = getattr(item, "uri", None)+ if uri:+ chunks.append(str(uri))+ continue++ data = getattr(item, "data", None)+ if data is not None:+ mime = (+ getattr(item, "mimeType", None)+ or getattr(item, "mime_type", None)+ or "application/octet-stream"+ )+ chunks.append(f"[binary content: {mime}]")+ continue++ chunks.append(str(item))++ if chunks:+ result_content = "\n".join(chunks)+ logger.info(f"Tool '{tool_name}' call completed via Stdio")+ return result_content+ except asyncio.TimeoutError as e:+ if attempt == 0:+ logger.warning(+ f"Stdio tool call '{tool_name}' timed out after {effective_timeout:.1f}s, retrying after reconnect"+ )+ connected = await self._reconnect(timeout=effective_timeout)+ if connected:+ continue+ logger.error(+ f"Tool call timed out via Stdio: tool='{tool_name}', timeout={effective_timeout:.1f}s"+ )+ raise RuntimeError(+ f"Stdio tool call timed out for '{tool_name}' after {effective_timeout:.1f}s"+ ) from e+ except Exception as e:+ if attempt == 0 and self._is_retryable_transport_error(e):+ logger.warning(+ f"Stdio tool call '{tool_name}' retry after reconnect: type={type(e).__name__}, repr={e!r}"+ )+ connected = await self._reconnect(timeout=timeout)+ if connected:+ continue+ logger.error(+ f"Tool call failed via Stdio: type={type(e).__name__}, repr={e!r}",+ exc_info=True,+ )+ raise RuntimeError(+ f"Stdio tool call failed for '{tool_name}': {type(e).__name__}: {e!r}"+ ) from e++ async def get_tool_info(self, tool_name: str, *, timeout: float = NO_TIMEOUT) -> Optional[Any]:+ """Get specific tool info via Stdio."""+ tools = await self.list_tools(timeout=timeout)+ for tool in tools:+ if tool.name == tool_name:+ logger.debug(f"Found tool info for '{tool_name}' via Stdio")+ return tool+ logger.warning(f"Tool '{tool_name}' not found via Stdio")+ return Nonediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/clients/streamable_http_client.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/clients/streamable_http_client.pynew file mode 100644index 0000000000..79ceb30966--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/clients/streamable_http_client.py@@ -0,0 +1,184 @@+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import asyncio+from typing import Any, Awaitable, Callable, Dict, List, Optional, TypeVar++from openjiuwen.core.common.logging import logger+from openjiuwen.core.foundation.tool import McpToolCard+from openjiuwen.core.foundation.tool.mcp.base import NO_TIMEOUT++try:+ from openjiuwen.core.foundation.tool.mcp.client.streamable_http_client import StreamableHttpClient+except ModuleNotFoundError:+ from openjiuwen.core.foundation.tool.mcp.client.sse_client import SseClient as StreamableHttpClient++T = TypeVar("T")+++class BrowserMoveStreamableHttpClient(StreamableHttpClient):+ """Streamable HTTP MCP client that uses short-lived per-operation sessions."""++ def __init__(+ self,+ server_path: str,+ name: str,+ auth_headers: Optional[Dict[str, str]] = None,+ auth_query_params: Optional[Dict[str, str]] = None,+ ):+ super().__init__(server_path, name, auth_headers, auth_query_params)+ self._io_lock = asyncio.Lock()++ @staticmethod+ def _is_retryable_transport_error(error: Exception) -> bool:+ name = error.__class__.__name__.lower()+ text = str(error).lower()+ markers = (+ "session terminated",+ "closedresourceerror",+ "brokenresourceerror",+ "endofstream",+ "stream closed",+ "connection closed",+ "remoteprotocolerror",+ "readerror",+ "writeerror",+ "not connected",+ "broken pipe",+ )+ return any(m in name or m in text for m in markers)++ async def _with_fresh_session(+ self,+ operation: Callable[[Any], Awaitable[T]],+ *,+ timeout: float = NO_TIMEOUT,+ ) -> T:+ from mcp import ClientSession+ from mcp.client.streamable_http import streamablehttp_client++ actual_timeout = timeout if timeout != NO_TIMEOUT else 60.0+ client = streamablehttp_client(+ self._server_path,+ timeout=actual_timeout,+ auth=self._auth_provider,+ )+ async with client as (read, write, _get_session_id):+ async with ClientSession(read, write, sampling_callback=None) as session:+ await asyncio.wait_for(session.initialize(), timeout=actual_timeout)+ return await operation(session)++ async def connect(self, *, retry_times: int = 1, timeout: float = NO_TIMEOUT) -> bool:+ attempts = max(1, int(retry_times))+ for attempt in range(1, attempts + 1):+ try:+ async with self._io_lock:+ await self._with_fresh_session(lambda _session: asyncio.sleep(0), timeout=timeout)+ self._is_disconnected = False+ logger.info(f"Streamable HTTP client connected successfully to {self._server_path}")+ return True+ except asyncio.TimeoutError:+ logger.error(+ f"Streamable HTTP connection timed out (attempt {attempt}/{attempts}): {self._server_path}"+ )+ except Exception as e:+ logger.error(+ f"Streamable HTTP connection failed to {self._server_path} "+ f"(attempt {attempt}/{attempts}): {e}"+ )+ self._is_disconnected = True+ return False++ async def disconnect(self, *, timeout: float = NO_TIMEOUT) -> bool:+ self._session = None+ self._client = None+ self._read = None+ self._write = None+ self._get_session_id = None+ self._is_disconnected = True+ logger.info("Streamable HTTP client disconnected successfully")+ return True++ async def list_tools(self, *, timeout: float = NO_TIMEOUT) -> List[Any]:+ async def _list(session: Any) -> List[Any]:+ tools_response = await session.list_tools()+ return [+ McpToolCard(+ name=tool.name,+ server_name=self._name,+ description=getattr(tool, "description", ""),+ input_params=getattr(tool, "inputSchema", {}),+ )+ for tool in tools_response.tools+ ]++ async with self._io_lock:+ for attempt in range(2):+ try:+ tools_list = await self._with_fresh_session(_list, timeout=timeout)+ logger.info(f"Retrieved {len(tools_list)} tools from Streamable HTTP server")+ self._is_disconnected = False+ return tools_list+ except Exception as e:+ if attempt == 0 and self._is_retryable_transport_error(e):+ logger.warning(f"Streamable HTTP list_tools retry with fresh session: {e}")+ continue+ logger.error(f"Failed to list tools via Streamable HTTP: {e}")+ raise++ async def call_tool(self, tool_name: str, arguments: dict, *, timeout: float = NO_TIMEOUT) -> Any:+ async def _call(session: Any) -> Any:+ logger.info(f"Calling tool '{tool_name}' via Streamable HTTP with arguments: {arguments}")+ tool_result = await session.call_tool(tool_name, arguments=arguments)+ result_content = None+ if tool_result.content and len(tool_result.content) > 0:+ chunks = []+ for item in tool_result.content:+ text = getattr(item, "text", None)+ if text:+ chunks.append(text)+ continue++ uri = getattr(item, "uri", None)+ if uri:+ chunks.append(str(uri))+ continue++ data = getattr(item, "data", None)+ if data is not None:+ mime = (+ getattr(item, "mimeType", None)+ or getattr(item, "mime_type", None)+ or "application/octet-stream"+ )+ chunks.append(f"[binary content: {mime}]")+ continue++ chunks.append(str(item))++ if chunks:+ result_content = "\n".join(chunks)+ return result_content++ async with self._io_lock:+ for attempt in range(2):+ try:+ result_content = await self._with_fresh_session(_call, timeout=timeout)+ logger.info(f"Tool '{tool_name}' call completed via Streamable HTTP")+ self._is_disconnected = False+ return result_content+ except Exception as e:+ if attempt == 0 and self._is_retryable_transport_error(e):+ logger.warning(f"Streamable HTTP tool call '{tool_name}' retry with fresh session: {e}")+ continue+ logger.error(f"Tool call failed via Streamable HTTP: {e}")+ raise++ async def get_tool_info(self, tool_name: str, *, timeout: float = NO_TIMEOUT) -> Optional[Any]:+ tools = await self.list_tools(timeout=timeout)+ for tool in tools:+ if tool.name == tool_name:+ logger.debug(f"Found tool info for '{tool_name}' via Streamable HTTP")+ return tool+ logger.warning(f"Tool '{tool_name}' not found via Streamable HTTP")+ return Nonediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/config.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/config.pynew file mode 100644index 0000000000..b0f602f16d--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/config.py@@ -0,0 +1,221 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Runtime configuration helpers."""++from __future__ import annotations++import json+import os+import shlex+from dataclasses import dataclass+from pathlib import Path+from typing import Any, Dict, List, Tuple++from openjiuwen.core.foundation.tool import McpServerConfig+from playwright_runtime import REPO_ROOT+++@dataclass+class BrowserRunGuardrails:+ max_steps: int = 20+ max_failures: int = 2+ timeout_s: int = 180+ retry_once: bool = True+++def parse_args(value: str) -> List[str]:+ value = (value or "").strip()+ if not value:+ return []+ if value.startswith("["):+ try:+ parsed = json.loads(value)+ if isinstance(parsed, list):+ return [str(x) for x in parsed]+ except Exception:+ pass+ return shlex.split(value)+++def _first_non_empty_env(*keys: str) -> str:+ for key in keys:+ value = (os.getenv(key) or "").strip()+ if value:+ return value+ return ""+++def _normalize_provider(provider: str) -> str:+ raw = (provider or "").strip()+ lowered = raw.lower()+ if lowered in {"openai", "openrouter", "dashscope"}:+ return lowered+ if lowered in {"alibaba", "aliyun"}:+ return "dashscope"+ return raw+++def _infer_provider_from_api_base(api_base: str) -> str:+ base = (api_base or "").strip().lower()+ if not base:+ return ""+ if "openrouter.ai" in base:+ return "openrouter"+ if "dashscope.aliyuncs.com" in base or "dashscope" in base:+ return "dashscope"+ return "openai"+++def resolve_playwright_mcp_cwd() -> str:+ """Resolve MCP working directory with relocatable defaults."""+ process_cwd = Path.cwd().expanduser()+ if (process_cwd / "src" / "playwright_runtime").exists():+ return str(process_cwd.resolve())+ return str(Path(REPO_ROOT).expanduser().resolve())+++def build_playwright_mcp_config() -> McpServerConfig:+ command = os.getenv("PLAYWRIGHT_MCP_COMMAND", "npx").strip() or "npx"+ args = parse_args(os.getenv("PLAYWRIGHT_MCP_ARGS", "-y @playwright/mcp@latest"))+ cwd = resolve_playwright_mcp_cwd()+ timeout_raw = (+ os.getenv("PLAYWRIGHT_MCP_TIMEOUT_S")+ or os.getenv("BROWSER_TIMEOUT_S")+ or "180"+ )++ env_map: Dict[str, str] = {}+ for key in (+ "PLAYWRIGHT_BROWSERS_PATH",+ "HTTP_PROXY",+ "HTTPS_PROXY",+ "NO_PROXY",+ ):+ value = os.getenv(key)+ if value:+ env_map[key] = value++ extra_env_json = (os.getenv("PLAYWRIGHT_MCP_ENV_JSON") or "").strip()+ if extra_env_json:+ try:+ extra = json.loads(extra_env_json)+ if isinstance(extra, dict):+ for k, v in extra.items():+ env_map[str(k)] = str(v)+ except json.JSONDecodeError as exc:+ raise ValueError(f"Invalid PLAYWRIGHT_MCP_ENV_JSON: {exc}") from exc++ # CDP support for official Playwright MCP server.+ cdp_endpoint = _first_non_empty_env("PLAYWRIGHT_MCP_CDP_ENDPOINT", "PLAYWRIGHT_CDP_URL")+ cdp_headers = _first_non_empty_env("PLAYWRIGHT_MCP_CDP_HEADERS", "PLAYWRIGHT_CDP_HEADERS")+ cdp_timeout = _first_non_empty_env("PLAYWRIGHT_MCP_CDP_TIMEOUT", "PLAYWRIGHT_CDP_TIMEOUT_MS")+ browser_name = _first_non_empty_env("PLAYWRIGHT_MCP_BROWSER")+ device_name = _first_non_empty_env("PLAYWRIGHT_MCP_DEVICE")++ if cdp_endpoint:+ if device_name:+ raise ValueError("PLAYWRIGHT_MCP_DEVICE is not supported with CDP endpoint mode.")+ env_map["PLAYWRIGHT_MCP_CDP_ENDPOINT"] = cdp_endpoint+ if not browser_name:+ # CDP mode is Chromium-only.+ env_map["PLAYWRIGHT_MCP_BROWSER"] = "chrome"+ if cdp_headers:+ env_map["PLAYWRIGHT_MCP_CDP_HEADERS"] = cdp_headers+ if cdp_timeout:+ env_map["PLAYWRIGHT_MCP_CDP_TIMEOUT"] = cdp_timeout++ params: Dict[str, Any] = {+ "command": command,+ "args": args,+ "cwd": cwd,+ }+ try:+ timeout_s = int(timeout_raw)+ if timeout_s > 0:+ params["timeout_s"] = timeout_s+ except (TypeError, ValueError):+ pass+ if env_map:+ params["env"] = env_map++ return McpServerConfig(+ server_id="playwright_official_stdio",+ server_name="playwright-official",+ server_path="stdio://playwright",+ client_type="stdio",+ params=params,+ )+++def resolve_model_settings() -> Tuple[str, str, str]:+ provider_mode = _normalize_provider(+ _first_non_empty_env("MODEL_PROVIDER", "MODEL_CLIENT_PROVIDER")+ )+ if provider_mode and provider_mode not in {"openai", "openrouter", "dashscope"}:+ raise ValueError(+ f"Unsupported MODEL_PROVIDER '{provider_mode}'. "+ "Supported: openai, openrouter, dashscope."+ )++ explicit_api_key = _first_non_empty_env("API_KEY", "MODEL_API_KEY")+ explicit_api_base = _first_non_empty_env("API_BASE", "MODEL_API_BASE")++ if provider_mode:+ provider = provider_mode+ else:+ base_hint = explicit_api_base or _first_non_empty_env(+ "OPENROUTER_BASE_URL",+ "OPENROUTER_API_BASE",+ "DASHSCOPE_BASE_URL",+ "DASHSCOPE_API_BASE",+ "OPENAI_BASE_URL",+ "OPENAI_API_BASE",+ )+ provider = _infer_provider_from_api_base(base_hint)+ if not provider:+ has_openrouter_key = bool((os.getenv("OPENROUTER_API_KEY") or "").strip())+ provider = "openrouter" if has_openrouter_key else "openai"++ if provider == "openrouter":+ api_key = _first_non_empty_env(+ "API_KEY",+ "MODEL_API_KEY",+ "OPENROUTER_API_KEY",+ "OPENAI_API_KEY",+ )+ api_base = _first_non_empty_env(+ "API_BASE",+ "MODEL_API_BASE",+ "OPENROUTER_BASE_URL",+ "OPENROUTER_API_BASE",+ ) or "https://openrouter.ai/api/v1"+ elif provider == "dashscope":+ api_key = _first_non_empty_env(+ "API_KEY",+ "MODEL_API_KEY",+ "DASHSCOPE_API_KEY",+ "OPENAI_API_KEY",+ "OPENROUTER_API_KEY",+ )+ api_base = _first_non_empty_env(+ "API_BASE",+ "MODEL_API_BASE",+ "DASHSCOPE_BASE_URL",+ "DASHSCOPE_API_BASE",+ ) or "https://dashscope.aliyuncs.com/compatible-mode/v1"+ else:+ api_key = _first_non_empty_env(+ "API_KEY",+ "MODEL_API_KEY",+ "OPENAI_API_KEY",+ "OPENROUTER_API_KEY",+ )+ api_base = _first_non_empty_env(+ "API_BASE",+ "MODEL_API_BASE",+ "OPENAI_BASE_URL",+ "OPENAI_API_BASE",+ ) or "https://api.openai.com/v1"+ return provider, api_key, api_basediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/controllers/__init__.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/controllers/__init__.pynew file mode 100644index 0000000000..ba2420bcdf--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/controllers/__init__.py@@ -0,0 +1,35 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Controller package exports."""++from playwright_runtime.controllers.action import (+ ActionController,+ bind_runtime,+ bind_runtime_runner,+ clear_runtime_runner,+ describe_actions,+ get_default_controller,+ list_actions,+ register_action,+ register_action_spec,+ register_example_actions,+ run_action,+)+from playwright_runtime.controllers.base import BaseController++__all__ = [+ "BaseController",+ "ActionController",+ "get_default_controller",+ "bind_runtime",+ "bind_runtime_runner",+ "clear_runtime_runner",+ "register_action",+ "register_action_spec",+ "register_example_actions",+ "list_actions",+ "describe_actions",+ "run_action",+]diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/controllers/action.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/controllers/action.pynew file mode 100644index 0000000000..bc150799a1--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/controllers/action.py@@ -0,0 +1,1005 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Runtime-native custom action controller for Playwright runtime.++This module intentionally contains no browser_use dependencies.+It exposes a lightweight action registry consumed by the MCP wrapper.+"""++from __future__ import annotations++import asyncio+import copy+import inspect+import json+from typing import Any, Awaitable, Callable, Protocol++from openjiuwen.core.common.logging import logger+from playwright_runtime.controllers.base import BaseController++ActionResult = dict[str, Any]+ActionHandler = Callable[..., Awaitable[Any] | Any]+++class RuntimeRunner(Protocol):+ async def __call__(+ self,+ *,+ task: str,+ session_id: str | None = None,+ request_id: str | None = None,+ timeout_s: int | None = None,+ ) -> dict[str, Any]:+ ...+++_ACTIONS: dict[str, ActionHandler] = {}+_ACTION_SPECS: dict[str, dict[str, Any]] = {}+_RUNTIME_RUNNER: RuntimeRunner | None = None+_LOCK = asyncio.Lock()+++class ActionController(BaseController):+ """Instance-scoped registry and dispatcher for custom actions."""++ def __init__(+ self,+ *,+ actions: dict[str, ActionHandler] | None = None,+ action_specs: dict[str, dict[str, Any]] | None = None,+ runtime_runner: RuntimeRunner | None = None,+ lock: asyncio.Lock | None = None,+ ) -> None:+ self._actions: dict[str, ActionHandler] = actions if actions is not None else {}+ self._action_specs: dict[str, dict[str, Any]] = action_specs if action_specs is not None else {}+ self._runtime_runner: RuntimeRunner | None = runtime_runner+ self._lock: asyncio.Lock = lock if lock is not None else asyncio.Lock()++ def bind_runtime(self, runtime: Any) -> None:+ run_browser_task = getattr(runtime, "run_browser_task", None)+ if run_browser_task is None or not callable(run_browser_task):+ raise ValueError("runtime must expose an async run_browser_task(...) method")++ async def _runner(+ *,+ task: str,+ session_id: str | None = None,+ request_id: str | None = None,+ timeout_s: int | None = None,+ ) -> dict[str, Any]:+ return await run_browser_task(+ task=task,+ session_id=session_id,+ request_id=request_id,+ timeout_s=timeout_s,+ )++ self.bind_runtime_runner(_runner)++ def bind_runtime_runner(self, runner: RuntimeRunner | None) -> None:+ self._runtime_runner = runner++ def clear_runtime_runner(self) -> None:+ self.bind_runtime_runner(None)++ def register_action(self, name: str, handler: ActionHandler, *, overwrite: bool = True) -> None:+ action_name = _normalize_action_name(name)+ if not action_name:+ raise ValueError("action name must be non-empty")+ if not callable(handler):+ raise TypeError("handler must be callable")+ if not overwrite and action_name in self._actions:+ raise ValueError(f"action already exists: {action_name}")+ self._actions[action_name] = handler++ def register_action_spec(+ self,+ name: str,+ *,+ summary: str = "",+ when_to_use: str = "",+ params: dict[str, str] | None = None,+ ) -> None:+ action_name = _normalize_action_name(name)+ if not action_name:+ raise ValueError("action name must be non-empty")+ self._action_specs[action_name] = {+ "summary": (summary or "").strip(),+ "when_to_use": (when_to_use or "").strip(),+ "params": dict(params or {}),+ }++ def list_actions(self) -> list[str]:+ return sorted(self._actions.keys())++ def describe_actions(self) -> dict[str, dict[str, Any]]:+ result: dict[str, dict[str, Any]] = {}+ for name in sorted(self._actions.keys()):+ spec = self._action_specs.get(name, {})+ result[name] = {+ "summary": str(spec.get("summary", "") or ""),+ "when_to_use": str(spec.get("when_to_use", "") or ""),+ "params": dict(spec.get("params", {}) or {}),+ }+ return result++ async def run_action(+ self,+ action: str,+ session_id: str = "",+ request_id: str = "",+ **kwargs: Any,+ ) -> ActionResult:+ action_name = _normalize_action_name(action)+ sid = (session_id or "").strip()+ rid = (request_id or "").strip()+ param_keys = ",".join(sorted(str(key) for key in kwargs.keys()))+ logger.info(+ f"CONTROLLER_ACTION start action={action_name} session_id={sid or '-'} "+ f"request_id={rid or '-'} param_keys={param_keys or '-'}"+ )++ handler = self._actions.get(action_name)+ if handler is None:+ logger.warning(+ f"CONTROLLER_ACTION unknown action={action_name} session_id={sid or '-'} request_id={rid or '-'}"+ )+ return {+ "ok": False,+ "action": action_name,+ "session_id": sid,+ "request_id": rid,+ "error": f"unknown action: {action_name}",+ }++ try:+ async with self._lock:+ raw = await _maybe_await(handler(session_id=sid, request_id=rid, **kwargs))++ response = dict(raw) if isinstance(raw, dict) else {"result": raw}+ response.setdefault("ok", True)+ response.setdefault("action", action_name)+ response.setdefault("session_id", sid)+ response.setdefault("request_id", rid)+ response.setdefault("error", None)+ logger.info(+ f"CONTROLLER_ACTION end action={action_name} session_id={sid or '-'} "+ f"request_id={rid or '-'} ok={bool(response.get('ok', False))}"+ )+ return response+ except Exception as exc:+ logger.error(+ f"CONTROLLER_ACTION error action={action_name} session_id={sid or '-'} "+ f"request_id={rid or '-'} error={exc}"+ )+ return {+ "ok": False,+ "action": action_name,+ "session_id": sid,+ "request_id": rid,+ "error": str(exc),+ }++ def register_example_actions(self) -> None:+ register_example_actions(controller=self)++ def snapshot(self) -> dict[str, Any]:+ return {+ "actions": dict(self._actions),+ "action_specs": copy.deepcopy(self._action_specs),+ "runtime_runner": self._runtime_runner,+ }++ def restore(self, snapshot: dict[str, Any]) -> None:+ self._actions.clear()+ self._actions.update(dict(snapshot.get("actions", {})))+ self._action_specs.clear()+ self._action_specs.update(copy.deepcopy(dict(snapshot.get("action_specs", {}))))+ self._runtime_runner = snapshot.get("runtime_runner")+++def _normalize_action_name(name: str) -> str:+ return (name or "").strip().lower()+++def _extract_json_object(text: Any) -> dict[str, Any]:+ if isinstance(text, dict):+ return text+ if text is None:+ return {}++ raw = str(text).strip()+ if not raw:+ return {}++ # Common browser_run_code shape:+ # ### Result+ # <value>+ # ### Ran Playwright code+ marker_result = "### Result"+ marker_ran = "### Ran Playwright code"+ if marker_result in raw and marker_ran in raw:+ start = raw.find(marker_result) + len(marker_result)+ end = raw.find(marker_ran, start)+ if end > start:+ raw = raw[start:end].strip()++ # Some tool wrappers return JSON as a quoted string.+ for _ in range(2):+ try:+ parsed = json.loads(raw)+ except Exception:+ break+ if isinstance(parsed, dict):+ return parsed+ if isinstance(parsed, str):+ raw = parsed.strip()+ continue+ break++ first = raw.find("{")+ last = raw.rfind("}")+ if first >= 0 and last > first:+ snippet = raw[first : last + 1]+ try:+ parsed = json.loads(snippet)+ if isinstance(parsed, dict):+ return parsed+ except Exception:+ pass+ return {}+++def _to_int_or_none(value: Any) -> int | None:+ if value is None:+ return None+ try:+ return int(value)+ except Exception:+ return None+++def _normalize_offset(value: Any) -> dict[str, int] | None:+ if value is None:+ return None+ if isinstance(value, dict):+ x = _to_int_or_none(value.get("x"))+ y = _to_int_or_none(value.get("y"))+ else:+ x = _to_int_or_none(getattr(value, "x", None))+ y = _to_int_or_none(getattr(value, "y", None))+ if x is None or y is None:+ return None+ return {"x": x, "y": y}+++def _build_run_code_task(js_code: str, purpose: str) -> str:+ tool_input = json.dumps({"code": js_code}, ensure_ascii=False)+ return (+ f"Execute this browser operation: {purpose}.\n"+ "Call browser_run_code exactly once with this JSON input:\n"+ f"{tool_input}\n\n"+ "Then return your required top-level response JSON. "+ "Set its `final` field to the exact JSON result returned by browser_run_code."+ )+++def _build_coordinate_script(payload: dict[str, Any]) -> str:+ payload_json = json.dumps(payload, ensure_ascii=False)+ return (+ "async (page) => {\n"+ f" const params = {payload_json};\n"+ " if (params.url && String(params.url).trim()) {\n"+ " await page.goto(String(params.url).trim());\n"+ " }\n"+ " const getTextBox = async (query, role) => {\n"+ " const term = String(query || '').trim().toLowerCase();\n"+ " if (!term) return null;\n"+ " return await page.evaluate(({ term, role }) => {\n"+ " const all = Array.from(document.querySelectorAll('body *'));\n"+ " const score = (el) => {\n"+ " const text = String(el.textContent || '').trim().toLowerCase();\n"+ " if (!text) return -1;\n"+ " if (text === term) return 2;\n"+ " if (text.includes(term)) return 1;\n"+ " return -1;\n"+ " };\n"+ " const toVisibleBox = (el) => {\n"+ " if (!el) return null;\n"+ " const candidates = role === 'target' && el.parentElement ? [el.parentElement, el] : [el];\n"+ " for (const candidate of candidates) {\n"+ " const rect = candidate.getBoundingClientRect();\n"+ " if (rect && rect.width > 0 && rect.height > 0) {\n"+ " return { x: rect.x, y: rect.y, width: rect.width, height: rect.height };\n"+ " }\n"+ " }\n"+ " return null;\n"+ " };\n"+ " const exactMatches = all.filter((el) => score(el) === 2);\n"+ " for (const el of exactMatches) {\n"+ " const box = toVisibleBox(el);\n"+ " if (box) return box;\n"+ " }\n"+ " const fuzzyMatches = all.filter((el) => score(el) === 1);\n"+ " for (const el of fuzzyMatches) {\n"+ " const box = toVisibleBox(el);\n"+ " if (box) return box;\n"+ " }\n"+ " return null;\n"+ " }, { term, role });\n"+ " };\n"+ " const extractTextFromHasText = (s) => {\n"+ " if (!s || typeof s !== 'string') return s;\n"+ " const m = String(s).match(/:has-text\\s*\\(\\s*['\"]([^'\"]*)['\"]\\s*\\)/);\n"+ " return m ? m[1] : s;\n"+ " };\n"+ " const getPoint = async (selector, offset, role) => {\n"+ " let box = null;\n"+ " if (selector) {\n"+ " try {\n"+ " const el = await page.$(selector);\n"+ " if (el) box = await el.boundingBox();\n"+ " } catch (_err) {\n"+ " box = null;\n"+ " }\n"+ " }\n"+ " if (!box) {\n"+ " const textTerm = extractTextFromHasText(selector) || selector;\n"+ " box = await getTextBox(textTerm, role);\n"+ " }\n"+ " if (!box) return null;\n"+ " if (offset && Number.isFinite(offset.x) && Number.isFinite(offset.y)) {\n"+ " return { x: Math.trunc(box.x + offset.x), y: Math.trunc(box.y + offset.y) };\n"+ " }\n"+ " return { x: Math.trunc(box.x + box.width / 2), y: Math.trunc(box.y + box.height / 2) };\n"+ " };\n"+ " let source = null;\n"+ " let target = null;\n"+ " if (params.element_source || params.element_target) {\n"+ " if (params.element_source) {\n"+ " source = await getPoint(params.element_source, params.element_source_offset, 'source');\n"+ " if (!source) {\n"+ " return { ok: false, error: 'Failed to determine source coordinates from selector. Use the exact visible text (e.g. \"Learn more\" not \"More information\") or a valid CSS/Playwright selector.', source: null, target: null };\n"+ " }\n"+ " }\n"+ " if (params.element_target) {\n"+ " target = await getPoint(params.element_target, params.element_target_offset, 'target');\n"+ " if (!target) {\n"+ " return { ok: false, error: 'Failed to determine target coordinates from selector', source, target: null };\n"+ " }\n"+ " }\n"+ " } else {\n"+ " const values = [params.coord_source_x, params.coord_source_y, params.coord_target_x, params.coord_target_y];\n"+ " const allFinite = values.every((v) => Number.isFinite(v));\n"+ " if (!allFinite) {\n"+ " return { ok: false, error: 'Must provide either source/target selectors or source/target coordinates' };\n"+ " }\n"+ " source = { x: Math.trunc(params.coord_source_x), y: Math.trunc(params.coord_source_y) };\n"+ " target = { x: Math.trunc(params.coord_target_x), y: Math.trunc(params.coord_target_y) };\n"+ " }\n"+ " return { ok: true, source, target, error: null };\n"+ "}"+ )+++def _build_drag_script(payload: dict[str, Any]) -> str:+ payload_json = json.dumps(payload, ensure_ascii=False)+ return (+ "async (page) => {\n"+ f" const params = {payload_json};\n"+ " if (params.url && String(params.url).trim()) {\n"+ " await page.goto(String(params.url).trim());\n"+ " }\n"+ " const getTextBox = async (query, role) => {\n"+ " const term = String(query || '').trim().toLowerCase();\n"+ " if (!term) return null;\n"+ " return await page.evaluate(({ term, role }) => {\n"+ " const all = Array.from(document.querySelectorAll('body *'));\n"+ " const score = (el) => {\n"+ " const text = String(el.textContent || '').trim().toLowerCase();\n"+ " if (!text) return -1;\n"+ " if (text === term) return 2;\n"+ " if (text.includes(term)) return 1;\n"+ " return -1;\n"+ " };\n"+ " const toVisibleBox = (el) => {\n"+ " if (!el) return null;\n"+ " const candidates = role === 'target' && el.parentElement ? [el.parentElement, el] : [el];\n"+ " for (const candidate of candidates) {\n"+ " const rect = candidate.getBoundingClientRect();\n"+ " if (rect && rect.width > 0 && rect.height > 0) {\n"+ " return { x: rect.x, y: rect.y, width: rect.width, height: rect.height };\n"+ " }\n"+ " }\n"+ " return null;\n"+ " };\n"+ " const exactMatches = all.filter((el) => score(el) === 2);\n"+ " for (const el of exactMatches) {\n"+ " const box = toVisibleBox(el);\n"+ " if (box) return box;\n"+ " }\n"+ " const fuzzyMatches = all.filter((el) => score(el) === 1);\n"+ " for (const el of fuzzyMatches) {\n"+ " const box = toVisibleBox(el);\n"+ " if (box) return box;\n"+ " }\n"+ " return null;\n"+ " }, { term, role });\n"+ " };\n"+ " const extractTextFromHasText = (s) => {\n"+ " if (!s || typeof s !== 'string') return s;\n"+ " const m = String(s).match(/:has-text\\s*\\(\\s*['\"]([^'\"]*)['\"]\\s*\\)/);\n"+ " return m ? m[1] : s;\n"+ " };\n"+ " const getPoint = async (selector, offset, role) => {\n"+ " let box = null;\n"+ " if (selector) {\n"+ " try {\n"+ " const el = await page.$(selector);\n"+ " if (el) box = await el.boundingBox();\n"+ " } catch (_err) {\n"+ " box = null;\n"+ " }\n"+ " }\n"+ " if (!box) {\n"+ " const textTerm = extractTextFromHasText(selector) || selector;\n"+ " box = await getTextBox(textTerm, role);\n"+ " }\n"+ " if (!box) return null;\n"+ " if (offset && Number.isFinite(offset.x) && Number.isFinite(offset.y)) {\n"+ " return { x: Math.trunc(box.x + offset.x), y: Math.trunc(box.y + offset.y) };\n"+ " }\n"+ " return { x: Math.trunc(box.x + box.width / 2), y: Math.trunc(box.y + box.height / 2) };\n"+ " };\n"+ " let source = null;\n"+ " let target = null;\n"+ " if (params.element_source && params.element_target) {\n"+ " source = await getPoint(params.element_source, params.element_source_offset, 'source');\n"+ " target = await getPoint(params.element_target, params.element_target_offset, 'target');\n"+ " if (!source || !target) {\n"+ " return { ok: false, error: 'Failed to determine source or target coordinates from selectors', source, target };\n"+ " }\n"+ " } else {\n"+ " const values = [params.coord_source_x, params.coord_source_y, params.coord_target_x, params.coord_target_y];\n"+ " const allFinite = values.every((v) => Number.isFinite(v));\n"+ " if (!allFinite) {\n"+ " return { ok: false, error: 'Must provide either source/target selectors or source/target coordinates' };\n"+ " }\n"+ " source = { x: Math.trunc(params.coord_source_x), y: Math.trunc(params.coord_source_y) };\n"+ " target = { x: Math.trunc(params.coord_target_x), y: Math.trunc(params.coord_target_y) };\n"+ " }\n"+ " const steps = Math.max(1, Number.isFinite(params.steps) ? Math.trunc(params.steps) : 10);\n"+ " const delayMs = Math.max(0, Number.isFinite(params.delay_ms) ? Math.trunc(params.delay_ms) : 5);\n"+ " try {\n"+ " await page.mouse.move(source.x, source.y);\n"+ " await page.mouse.down();\n"+ " for (let i = 1; i <= steps; i += 1) {\n"+ " const ratio = i / steps;\n"+ " const x = Math.trunc(source.x + (target.x - source.x) * ratio);\n"+ " const y = Math.trunc(source.y + (target.y - source.y) * ratio);\n"+ " await page.mouse.move(x, y);\n"+ " if (delayMs > 0) {\n"+ " await new Promise((resolve) => setTimeout(resolve, delayMs));\n"+ " }\n"+ " }\n"+ " await page.mouse.move(target.x, target.y);\n"+ " await page.mouse.move(target.x, target.y);\n"+ " await page.mouse.up();\n"+ " } catch (error) {\n"+ " return {\n"+ " ok: false,\n"+ " error: `Error during drag operation: ${String(error)}`,\n"+ " source,\n"+ " target,\n"+ " steps,\n"+ " delay_ms: delayMs,\n"+ " };\n"+ " }\n"+ " const message = params.element_source && params.element_target\n"+ " ? `Dragged element '${params.element_source}' to '${params.element_target}'`\n"+ " : `Dragged from (${source.x}, ${source.y}) to (${target.x}, ${target.y})`;\n"+ " return { ok: true, message, source, target, steps, delay_ms: delayMs, error: null };\n"+ "}"+ )+++def _build_drag_payload(+ *,+ url: str = "",+ source: str = "",+ target: str = "",+ element_source: str = "",+ element_target: str = "",+ element_source_offset: Any = None,+ element_target_offset: Any = None,+ source_x: Any = None,+ source_y: Any = None,+ target_x: Any = None,+ target_y: Any = None,+ coord_source_x: Any = None,+ coord_source_y: Any = None,+ coord_target_x: Any = None,+ coord_target_y: Any = None,+ steps: Any = None,+ delay_ms: Any = None,+) -> dict[str, Any]:+ source_selector = (element_source or "").strip()+ target_selector = (element_target or "").strip()+ if not source_selector:+ source_selector = (source or "").strip()+ if not target_selector:+ target_selector = (target or "").strip()++ sx = _to_int_or_none(coord_source_x)+ sy = _to_int_or_none(coord_source_y)+ tx = _to_int_or_none(coord_target_x)+ ty = _to_int_or_none(coord_target_y)+ if sx is None:+ sx = _to_int_or_none(source_x)+ if sy is None:+ sy = _to_int_or_none(source_y)+ if tx is None:+ tx = _to_int_or_none(target_x)+ if ty is None:+ ty = _to_int_or_none(target_y)++ return {+ "url": (url or "").strip(),+ "element_source": source_selector,+ "element_target": target_selector,+ "element_source_offset": _normalize_offset(element_source_offset),+ "element_target_offset": _normalize_offset(element_target_offset),+ "coord_source_x": sx,+ "coord_source_y": sy,+ "coord_target_x": tx,+ "coord_target_y": ty,+ "steps": _to_int_or_none(steps),+ "delay_ms": _to_int_or_none(delay_ms),+ }+++def _has_selector_inputs(payload: dict[str, Any]) -> bool:+ return bool((payload.get("element_source") or "").strip()) and bool((payload.get("element_target") or "").strip())+++def _has_source_selector(payload: dict[str, Any]) -> bool:+ """True if at least element_source is set (for get_element_coordinates, target is optional)."""+ return bool((payload.get("element_source") or "").strip())+++def _has_coordinate_inputs(payload: dict[str, Any]) -> bool:+ return all(+ payload.get(k) is not None+ for k in ("coord_source_x", "coord_source_y", "coord_target_x", "coord_target_y")+ )+++async def _maybe_await(value: Any) -> Any:+ if inspect.isawaitable(value):+ return await value+ return value+++_DEFAULT_CONTROLLER = ActionController(+ actions=_ACTIONS,+ action_specs=_ACTION_SPECS,+ runtime_runner=_RUNTIME_RUNNER,+ lock=_LOCK,+)+++def get_default_controller() -> ActionController:+ return _DEFAULT_CONTROLLER+++def bind_runtime(runtime: Any) -> None:+ _DEFAULT_CONTROLLER.bind_runtime(runtime)+ global _RUNTIME_RUNNER+ _RUNTIME_RUNNER = _DEFAULT_CONTROLLER._runtime_runner+++def bind_runtime_runner(runner: RuntimeRunner | None) -> None:+ _DEFAULT_CONTROLLER.bind_runtime_runner(runner)+ global _RUNTIME_RUNNER+ _RUNTIME_RUNNER = runner+++def clear_runtime_runner() -> None:+ bind_runtime_runner(None)+++def register_action(name: str, handler: ActionHandler, *, overwrite: bool = True) -> None:+ _DEFAULT_CONTROLLER.register_action(name=name, handler=handler, overwrite=overwrite)+++def register_action_spec(+ name: str,+ *,+ summary: str = "",+ when_to_use: str = "",+ params: dict[str, str] | None = None,+) -> None:+ _DEFAULT_CONTROLLER.register_action_spec(+ name=name,+ summary=summary,+ when_to_use=when_to_use,+ params=params,+ )+++def list_actions() -> list[str]:+ return _DEFAULT_CONTROLLER.list_actions()+++def describe_actions() -> dict[str, dict[str, Any]]:+ return _DEFAULT_CONTROLLER.describe_actions()+++async def run_action(+ action: str,+ session_id: str = "",+ request_id: str = "",+ **kwargs: Any,+) -> ActionResult:+ return await _DEFAULT_CONTROLLER.run_action(+ action=action,+ session_id=session_id,+ request_id=request_id,+ **kwargs,+ )+++def register_example_actions(controller: ActionController | None = None) -> None:+ ctl = controller or _DEFAULT_CONTROLLER+ async def ping(session_id: str = "", request_id: str = "", **kwargs: Any) -> ActionResult:+ return {+ "ok": True,+ "pong": True,+ "session_id": session_id,+ "request_id": request_id,+ "meta": kwargs,+ }++ async def echo(+ session_id: str = "",+ request_id: str = "",+ text: str = "",+ **kwargs: Any,+ ) -> ActionResult:+ return {+ "ok": True,+ "text": text,+ "session_id": session_id,+ "request_id": request_id,+ "meta": kwargs,+ }++ async def browser_task(+ session_id: str = "",+ request_id: str = "",+ task: str = "",+ timeout_s: int | None = None,+ **kwargs: Any,+ ) -> ActionResult:+ runner = ctl._runtime_runner+ if runner is None:+ return {+ "ok": False,+ "error": "runtime_not_bound: call bind_runtime(...) before browser_task",+ "session_id": session_id,+ "request_id": request_id,+ }++ task_text = (task or "").strip()+ if not task_text:+ return {+ "ok": False,+ "error": "missing required parameter: task",+ "session_id": session_id,+ "request_id": request_id,+ }++ effective_timeout: int | None = None+ if timeout_s is not None:+ try:+ parsed = int(timeout_s)+ if parsed > 0:+ effective_timeout = parsed+ except Exception:+ effective_timeout = None++ return await runner(+ task=task_text,+ session_id=session_id or None,+ request_id=request_id or None,+ timeout_s=effective_timeout,+ )++ async def browser_get_element_coordinates(+ session_id: str = "",+ request_id: str = "",+ url: str = "",+ source: str = "",+ target: str = "",+ element_source: str = "",+ element_target: str = "",+ element_source_offset: Any = None,+ element_target_offset: Any = None,+ source_x: Any = None,+ source_y: Any = None,+ target_x: Any = None,+ target_y: Any = None,+ coord_source_x: Any = None,+ coord_source_y: Any = None,+ coord_target_x: Any = None,+ coord_target_y: Any = None,+ timeout_s: int | None = None,+ **kwargs: Any,+ ) -> ActionResult:+ del kwargs+ runner = ctl._runtime_runner+ if runner is None:+ return {+ "ok": False,+ "error": "runtime_not_bound: call bind_runtime(...) before browser_get_element_coordinates",+ "session_id": session_id,+ "request_id": request_id,+ }++ payload = _build_drag_payload(+ url=url,+ source=source,+ target=target,+ element_source=element_source,+ element_target=element_target,+ element_source_offset=element_source_offset,+ element_target_offset=element_target_offset,+ source_x=source_x,+ source_y=source_y,+ target_x=target_x,+ target_y=target_y,+ coord_source_x=coord_source_x,+ coord_source_y=coord_source_y,+ coord_target_x=coord_target_x,+ coord_target_y=coord_target_y,+ )+ if not (_has_source_selector(payload) or _has_coordinate_inputs(payload)):+ return {+ "ok": False,+ "error": (+ "Missing location inputs. Provide at least element_source (element_target is optional), or "+ "coord_source_x/coord_source_y/coord_target_x/coord_target_y. "+ "Aliases source/target and source_x/source_y/target_x/target_y are also supported."+ ),+ }+ js_code = _build_coordinate_script(payload)+ task_prompt = _build_run_code_task(js_code, "resolve source/target coordinates")++ runtime_result = await runner(+ task=task_prompt,+ session_id=session_id or None,+ request_id=request_id or None,+ timeout_s=timeout_s if isinstance(timeout_s, int) and timeout_s > 0 else None,+ )+ if not runtime_result.get("ok", False):+ return {+ "ok": False,+ "error": runtime_result.get("error") or "runtime error",+ "runtime": runtime_result,+ }++ parsed = _extract_json_object(runtime_result.get("final"))+ if not parsed:+ final_preview = str(runtime_result.get("final", ""))[:400]+ return {+ "ok": False,+ "error": "Could not parse coordinate result JSON from runtime final output",+ "final_preview": final_preview,+ "runtime": runtime_result,+ }+ return {+ "ok": bool(parsed.get("ok", False)),+ "source": parsed.get("source"),+ "target": parsed.get("target"),+ "error": parsed.get("error"),+ "runtime": runtime_result,+ }++ async def browser_drag_and_drop(+ session_id: str = "",+ request_id: str = "",+ url: str = "",+ source: str = "",+ target: str = "",+ element_source: str = "",+ element_target: str = "",+ element_source_offset: Any = None,+ element_target_offset: Any = None,+ source_x: Any = None,+ source_y: Any = None,+ target_x: Any = None,+ target_y: Any = None,+ coord_source_x: Any = None,+ coord_source_y: Any = None,+ coord_target_x: Any = None,+ coord_target_y: Any = None,+ steps: Any = None,+ delay_ms: Any = None,+ timeout_s: int | None = None,+ **kwargs: Any,+ ) -> ActionResult:+ del kwargs+ runner = ctl._runtime_runner+ if runner is None:+ return {+ "ok": False,+ "error": "runtime_not_bound: call bind_runtime(...) before browser_drag_and_drop",+ "session_id": session_id,+ "request_id": request_id,+ }++ payload = _build_drag_payload(+ url=url,+ source=source,+ target=target,+ element_source=element_source,+ element_target=element_target,+ element_source_offset=element_source_offset,+ element_target_offset=element_target_offset,+ source_x=source_x,+ source_y=source_y,+ target_x=target_x,+ target_y=target_y,+ coord_source_x=coord_source_x,+ coord_source_y=coord_source_y,+ coord_target_x=coord_target_x,+ coord_target_y=coord_target_y,+ steps=steps,+ delay_ms=delay_ms,+ )+ if not (_has_selector_inputs(payload) or _has_coordinate_inputs(payload)):+ return {+ "ok": False,+ "error": (+ "Missing drag inputs. Provide either "+ "element_source + element_target, or "+ "coord_source_x/coord_source_y/coord_target_x/coord_target_y. "+ "Aliases source/target and source_x/source_y/target_x/target_y are also supported."+ ),+ }+ js_code = _build_drag_script(payload)+ task_prompt = _build_run_code_task(js_code, "drag and drop")++ runtime_result = await runner(+ task=task_prompt,+ session_id=session_id or None,+ request_id=request_id or None,+ timeout_s=timeout_s if isinstance(timeout_s, int) and timeout_s > 0 else None,+ )+ if not runtime_result.get("ok", False):+ return {+ "ok": False,+ "error": runtime_result.get("error") or "runtime error",+ "runtime": runtime_result,+ }++ parsed = _extract_json_object(runtime_result.get("final"))+ if not parsed:+ final_preview = str(runtime_result.get("final", ""))[:400]+ return {+ "ok": False,+ "error": "Could not parse drag result JSON from runtime final output",+ "final_preview": final_preview,+ "runtime": runtime_result,+ }+ return {+ "ok": bool(parsed.get("ok", False)),+ "message": parsed.get("message"),+ "source": parsed.get("source"),+ "target": parsed.get("target"),+ "steps": parsed.get("steps"),+ "delay_ms": parsed.get("delay_ms"),+ "error": parsed.get("error"),+ "runtime": runtime_result,+ }++ ctl.register_action("ping", ping, overwrite=True)+ ctl.register_action_spec(+ "ping",+ summary="Health check action.",+ when_to_use="Use to verify controller dispatch and session/request threading.",+ )+ ctl.register_action("echo", echo, overwrite=True)+ ctl.register_action_spec(+ "echo",+ summary="Echoes provided text and metadata.",+ when_to_use="Use for debugging payload passthrough through browser_custom_action.",+ params={"text": "string: text to echo back"},+ )+ ctl.register_action("browser_task", browser_task, overwrite=True)+ ctl.register_action_spec(+ "browser_task",+ summary="Runs a free-form browser task through runtime.run_browser_task.",+ when_to_use="Use for generic website tasks when no specialized custom action applies.",+ params={+ "task": "string: required task prompt for the browser worker",+ "timeout_s": "int: optional positive timeout override",+ },+ )+ ctl.register_action("run_browser_task", browser_task, overwrite=True)+ ctl.register_action_spec(+ "run_browser_task",+ summary="Alias of browser_task.",+ when_to_use="Same behavior as browser_task.",+ params={+ "task": "string: required task prompt for the browser worker",+ "timeout_s": "int: optional positive timeout override",+ },+ )+ ctl.register_action(+ "browser_get_element_coordinates",+ browser_get_element_coordinates,+ overwrite=True,+ )+ ctl.register_action_spec(+ "browser_get_element_coordinates",+ summary="Resolves source/target screen coordinates by selectors or explicit coordinates.",+ when_to_use=(+ "Use when you need coordinates for one element (element_source only) or two (source + target). "+ "element_target is optional."+ ),+ params={+ "url": "string: optional URL to open before resolving coordinates",+ "element_source": "string: source selector/text alias (required for selector mode)",+ "element_target": "string: target selector/text alias (optional)",+ "coord_source_x": "int: source x coordinate",+ "coord_source_y": "int: source y coordinate",+ "coord_target_x": "int: target x coordinate",+ "coord_target_y": "int: target y coordinate",+ "source/target": "string aliases for element_source/element_target",+ "source_x/source_y/target_x/target_y": "int aliases for coord_* fields",+ },+ )+ ctl.register_action(+ "browser_drag_and_drop",+ browser_drag_and_drop,+ overwrite=True,+ )+ ctl.register_action_spec(+ "browser_drag_and_drop",+ summary="Performs drag-and-drop using selectors or explicit coordinates.",+ when_to_use=(+ "Use for drag-and-drop tasks instead of generic browser_run_task text-only instructions."+ ),+ params={+ "url": "string: optional URL to open before drag-and-drop",+ "element_source": "string: source selector/text alias",+ "element_target": "string: target selector/text alias",+ "coord_source_x": "int: source x coordinate",+ "coord_source_y": "int: source y coordinate",+ "coord_target_x": "int: target x coordinate",+ "coord_target_y": "int: target y coordinate",+ "steps": "int: optional drag interpolation steps",+ "delay_ms": "int: optional delay between drag steps",+ "source/target": "string aliases for element_source/element_target",+ "source_x/source_y/target_x/target_y": "int aliases for coord_* fields",+ },+ )+++__all__ = [+ "BaseController",+ "ActionController",+ "get_default_controller",+ "bind_runtime",+ "bind_runtime_runner",+ "clear_runtime_runner",+ "register_action",+ "register_action_spec",+ "register_example_actions",+ "list_actions",+ "describe_actions",+ "run_action",+]diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/controllers/base.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/controllers/base.pynew file mode 100644index 0000000000..51bfbf744a--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/controllers/base.py@@ -0,0 +1,59 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Base controller contract for action dispatchers."""++from __future__ import annotations++from abc import ABC, abstractmethod+from typing import Any+++class BaseController(ABC):+ """Abstract contract for controller implementations."""++ @abstractmethod+ def bind_runtime(self, runtime: Any) -> None:+ """Bind a runtime object used by runtime-backed actions."""++ @abstractmethod+ def bind_runtime_runner(self, runner: Any | None) -> None:+ """Bind a runtime runner callable."""++ @abstractmethod+ def clear_runtime_runner(self) -> None:+ """Clear any currently bound runtime runner."""++ @abstractmethod+ def register_action(self, name: str, handler: Any, *, overwrite: bool = True) -> None:+ """Register an action handler."""++ @abstractmethod+ def register_action_spec(+ self,+ name: str,+ *,+ summary: str = "",+ when_to_use: str = "",+ params: dict[str, str] | None = None,+ ) -> None:+ """Register metadata for an action."""++ @abstractmethod+ def list_actions(self) -> list[str]:+ """List registered action names."""++ @abstractmethod+ def describe_actions(self) -> dict[str, dict[str, Any]]:+ """Return metadata for registered actions."""++ @abstractmethod+ async def run_action(+ self,+ action: str,+ session_id: str = "",+ request_id: str = "",+ **kwargs: Any,+ ) -> dict[str, Any]:+ """Execute a registered action."""diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/drivers/__init__.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/drivers/__init__.pynew file mode 100644index 0000000000..505accbb5b--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/drivers/__init__.py@@ -0,0 +1,5 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/drivers/managed_browser.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/drivers/managed_browser.pynew file mode 100644index 0000000000..cb868754f9--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/drivers/managed_browser.py@@ -0,0 +1,153 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Managed isolated browser launcher for CDP attach."""++from __future__ import annotations++import json+import os+import shutil+import subprocess+import time+from pathlib import Path+from typing import Optional+from urllib.error import URLError+from urllib.request import urlopen++from playwright_runtime.profiles import BrowserProfile+++def _candidate_binaries() -> list[str]:+ names = [+ "chrome",+ "chromium",+ "msedge",+ "brave",+ ]+ resolved = [shutil.which(name) for name in names]+ binaries = [item for item in resolved if item]++ if os.name == "nt":+ windows_defaults = [+ r"C:\Program Files\Google\Chrome\Application\chrome.exe",+ r"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe",+ r"C:\Program Files\Chromium\Application\chrome.exe",+ r"C:\Program Files\Microsoft\Edge\Application\msedge.exe",+ r"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe",+ r"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe",+ r"C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe",+ ]+ for path in windows_defaults:+ if Path(path).exists():+ binaries.append(path)+ return binaries+++class ManagedBrowserDriver:+ """Launch and manage a dedicated local Chromium-family process."""++ def __init__(self, profile: BrowserProfile) -> None:+ self.profile = profile+ self._process: Optional[subprocess.Popen] = None++ @property+ def cdp_endpoint(self) -> str:+ host = self.profile.host or "127.0.0.1"+ return f"http://{host}:{int(self.profile.debug_port)}"++ def _resolve_binary(self) -> str:+ explicit = (self.profile.browser_binary or "").strip()+ if explicit:+ candidate = Path(explicit).expanduser()+ if candidate.exists():+ return str(candidate)+ resolved = shutil.which(explicit)+ if resolved:+ return resolved+ raise RuntimeError(f"Configured browser binary not found: {explicit}")++ candidates = _candidate_binaries()+ if not candidates:+ raise RuntimeError(+ "No Chromium-family browser binary found. Set BROWSER_MANAGED_BINARY to chrome/msedge/brave path."+ )+ return candidates[0]++ def _build_args(self, binary: str) -> list[str]:+ user_data_dir = Path(self.profile.user_data_dir).expanduser()+ user_data_dir.mkdir(parents=True, exist_ok=True)++ host = (self.profile.host or "127.0.0.1").strip() or "127.0.0.1"+ port = int(self.profile.debug_port)+ if port <= 0:+ raise RuntimeError(f"Invalid debug port for managed browser profile: {port}")++ args = [+ binary,+ f"--remote-debugging-address={host}",+ f"--remote-debugging-port={port}",+ f"--user-data-dir={user_data_dir}",+ "--no-first-run",+ "--no-default-browser-check",+ "about:blank",+ ]+ args.extend(self.profile.extra_args)+ return args++ def _is_endpoint_ready(self) -> bool:+ endpoint = f"{self.cdp_endpoint}/json/version"+ try:+ with urlopen(endpoint, timeout=1.5) as response: # nosec B310+ payload = json.loads(response.read().decode("utf-8", errors="ignore"))+ if isinstance(payload, dict):+ return bool(payload.get("webSocketDebuggerUrl") or payload.get("Browser"))+ except (URLError, TimeoutError, OSError, ValueError):+ return False+ return False++ def start(self, timeout_s: float = 20.0) -> str:+ if self._process is not None and self._process.poll() is None:+ if self._is_endpoint_ready():+ return self.cdp_endpoint++ binary = self._resolve_binary()+ args = self._build_args(binary)+ self._process = subprocess.Popen(+ args,+ stdout=subprocess.DEVNULL,+ stderr=subprocess.DEVNULL,+ stdin=subprocess.DEVNULL,+ creationflags=getattr(subprocess, "CREATE_NEW_PROCESS_GROUP", 0) if os.name == "nt" else 0,+ )++ deadline = time.time() + max(1.0, float(timeout_s))+ while time.time() < deadline:+ if self._process.poll() is not None:+ raise RuntimeError(+ f"Managed browser process exited early with code {self._process.returncode}"+ )+ if self._is_endpoint_ready():+ return self.cdp_endpoint+ time.sleep(0.25)++ raise RuntimeError(f"Managed browser CDP endpoint not ready after {timeout_s:.1f}s: {self.cdp_endpoint}")++ def stop(self, wait_timeout_s: float = 5.0) -> None:+ process = self._process+ self._process = None+ if process is None:+ return+ if process.poll() is not None:+ return++ try:+ process.terminate()+ process.wait(timeout=max(0.5, float(wait_timeout_s)))+ except Exception:+ try:+ process.kill()+ except Exception:+ pass+diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/hooks.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/hooks.pynew file mode 100644index 0000000000..a6c8bb65fc--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/hooks.py@@ -0,0 +1,52 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Browser runtime hook and middleware helpers."""++from __future__ import annotations++from typing import Awaitable, Callable, Optional++from openjiuwen.core.single_agent.middleware.base import AgentCallbackContext, AgentMiddleware+++class BrowserRunCancelled(RuntimeError):+ """Raised when a browser run is canceled by external signal."""+++class BrowserCancellationMiddleware(AgentMiddleware):+ """Abort browser agent execution when cancellation flag is set."""++ priority = 1++ def __init__(+ self,+ is_cancelled: Callable[[str, Optional[str]], Awaitable[bool]],+ ) -> None:+ self._is_cancelled = is_cancelled++ async def _abort_if_cancelled(self, ctx: AgentCallbackContext) -> None:+ inputs = ctx.inputs if isinstance(ctx.inputs, dict) else {}+ session_id = str(inputs.get("conversation_id", "")).strip()+ request_id_raw = str(inputs.get("request_id", "")).strip()+ request_id = request_id_raw if request_id_raw else None+ if not session_id:+ return+ if await self._is_cancelled(session_id, request_id):+ raise BrowserRunCancelled(+ f"browser run canceled (session_id={session_id}, request_id={request_id or ''})"+ )++ async def before_model_call(self, ctx: AgentCallbackContext) -> None:+ await self._abort_if_cancelled(ctx)++ async def after_model_call(self, ctx: AgentCallbackContext) -> None:+ await self._abort_if_cancelled(ctx)++ async def before_tool_call(self, ctx: AgentCallbackContext) -> None:+ await self._abort_if_cancelled(ctx)++ async def after_tool_call(self, ctx: AgentCallbackContext) -> None:+ # This fires after each tool step, enabling prompt stop after frontend disconnect.+ await self._abort_if_cancelled(ctx)diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/main.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/main.pynew file mode 100644index 0000000000..dcac6e91bf--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/main.py@@ -0,0 +1,116 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""CLI entrypoint for Playwright browser runtime."""++from __future__ import annotations++import asyncio+import json+import os+import sys+import traceback+from pathlib import Path++_HERE = Path(__file__).resolve().parent+_SRC_ROOT = _HERE.parent+if str(_SRC_ROOT) not in sys.path:+ sys.path.insert(0, str(_SRC_ROOT))++from playwright_runtime import REPO_ROOT # noqa: F401++# Inject browser-move client subclasses before openjiuwen's ToolMgr is used,+# so that our retry/timeout/reconnect logic is active without modifying openjiuwen.+import openjiuwen.core.runner.resources_manager.tool_manager as _tool_mgr_mod+from playwright_runtime.clients.stdio_client import BrowserMoveStdioClient+from playwright_runtime.clients.streamable_http_client import BrowserMoveStreamableHttpClient++_tool_mgr_mod.StdioClient = BrowserMoveStdioClient+_tool_mgr_mod.StreamableHttpClient = BrowserMoveStreamableHttpClient++from openjiuwen.core.runner import Runner+from playwright_runtime.config import (+ BrowserRunGuardrails,+ build_playwright_mcp_config,+ resolve_model_settings,+)+from playwright_runtime.runtime import BrowserAgentRuntime++GUARDRAIL_MAX_STEPS = 20+GUARDRAIL_MAX_FAILURES = 2+GUARDRAIL_RETRY_ONCE = True+++async def main() -> None:+ provider, api_key, api_base = resolve_model_settings()+ model_name = (os.getenv("MODEL_NAME") or "anthropic/claude-sonnet-4").strip()+ if not api_key:+ raise RuntimeError("Missing API key. Set OPENROUTER_API_KEY or OPENAI_API_KEY.")++ guardrails = BrowserRunGuardrails(+ max_steps=GUARDRAIL_MAX_STEPS,+ max_failures=GUARDRAIL_MAX_FAILURES,+ timeout_s=int(os.getenv("BROWSER_TIMEOUT_S", "180")),+ retry_once=GUARDRAIL_RETRY_ONCE,+ )+ mcp_cfg = build_playwright_mcp_config()++ runtime = BrowserAgentRuntime(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ mcp_cfg=mcp_cfg,+ guardrails=guardrails,+ )++ initial_query = (os.getenv("AGENT_QUERY") or "").strip()+ session_id = (os.getenv("AGENT_SESSION_ID") or "").strip() or "demo-browser-session"++ try:+ await runtime.ensure_started()+ mcp_tools = await Runner.resource_mgr.get_mcp_tool_infos(server_id=mcp_cfg.server_id) or []++ print("=" * 72)+ print("Playwright Browser Runtime")+ print("=" * 72)+ print(f"Model provider: {provider}")+ print(f"Model: {model_name}")+ print(f"MCP command: {mcp_cfg.params.get('command')}")+ print(f"MCP args: {mcp_cfg.params.get('args')}")+ print(f"Discovered browser tools: {len(mcp_tools)}")+ for item in mcp_tools:+ print(f" - {getattr(item, 'name', 'unknown')}")+ print("=" * 72)+ print(f"Session: {session_id}")+ print("Continuous mode: enter a task and press Enter.")+ print("Type 'exit' or 'quit' to stop.\n")++ query = initial_query+ while True:+ if not query:+ query = input("query> ").strip()+ if not query:+ continue+ if query.lower() in {"exit", "quit"}:+ break++ answer = await runtime.handle_request(query=query, session_id=session_id)+ print("Result:")+ print(json.dumps(answer, ensure_ascii=False, indent=2))+ print("")+ query = ""+ except Exception as exc:+ print("Runtime error:")+ print(str(exc))+ traceback.print_exc()+ raise+ except KeyboardInterrupt:+ print("\nInterrupted by user.")+ finally:+ await runtime.shutdown()+++if __name__ == "__main__":+ asyncio.run(main())diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/openjiuwen_monkeypatch.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/openjiuwen_monkeypatch.pynew file mode 100644index 0000000000..3abcd125fa--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/openjiuwen_monkeypatch.py@@ -0,0 +1,404 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Runtime monkeypatches for openjiuwen logging behavior."""++from __future__ import annotations++import importlib+import importlib.abc+import importlib.util+import logging+import os+import sys+from pathlib import Path+from typing import Any, Dict, Iterable, List++_PATCH_APPLIED = False+_TOOL_LOG_FILE_DEFAULT = "run/tools.log"+_PATCH_SOURCE_ROOT = Path(__file__).resolve().parent.parent / "openjiuwen_patch_sources"+++class _OpenJiuwenPatchFinder(importlib.abc.MetaPathFinder):+ """Meta path finder that redirects selected openjiuwen modules to local patch sources."""++ def __init__(self, module_to_file: Dict[str, Path]) -> None:+ self._module_to_file = module_to_file++ @staticmethod+ def _package_search_locations(fullname: str, package_dir: Path) -> List[str]:+ locations: List[str] = [str(package_dir)]+ rel_parts = fullname.split(".")++ for base in sys.path:+ try:+ base_path = Path(base)+ except Exception:+ continue+ candidate_dir = base_path.joinpath(*rel_parts)+ candidate_init = candidate_dir / "__init__.py"+ if not candidate_init.exists():+ continue+ candidate_str = str(candidate_dir)+ if candidate_str not in locations:+ locations.append(candidate_str)+ return locations++ def find_spec(self, fullname: str, path: Any = None, target: Any = None) -> Any:+ file_path = self._module_to_file.get(fullname)+ if file_path is None:+ return None+ if not file_path.exists():+ return None++ if file_path.name == "__init__.py":+ search_locations = self._package_search_locations(fullname, file_path.parent)+ return importlib.util.spec_from_file_location(+ fullname,+ str(file_path),+ submodule_search_locations=search_locations,+ )++ return importlib.util.spec_from_file_location(fullname, str(file_path))+++def _build_patch_module_map() -> Dict[str, Path]:+ module_to_file: Dict[str, Path] = {}+ root = _PATCH_SOURCE_ROOT+ if not root.exists():+ return module_to_file++ for py_file in root.rglob("*.py"):+ rel = py_file.relative_to(root)+ if not rel.parts or rel.parts[0] != "openjiuwen":+ continue+ if py_file.name == "__init__.py":+ module_name = ".".join(rel.parts[:-1])+ else:+ module_name = ".".join(rel.with_suffix("").parts)+ if module_name:+ module_to_file[module_name] = py_file+ return module_to_file+++def _install_openjiuwen_import_hook() -> None:+ module_to_file = _build_patch_module_map()+ if not module_to_file:+ return++ for finder in sys.meta_path:+ if isinstance(finder, _OpenJiuwenPatchFinder):+ finder._module_to_file.update(module_to_file)+ return++ sys.meta_path.insert(0, _OpenJiuwenPatchFinder(module_to_file))+++def _patch_default_inner_config(constant_mod: Any, log_config_mod: Any) -> None:+ constant_mod.DEFAULT_INNER_LOG_CONFIG.setdefault("tool_log_file", _TOOL_LOG_FILE_DEFAULT)++ module_default = getattr(log_config_mod, "DEFAULT_INNER_LOG_CONFIG", None)+ if isinstance(module_default, dict):+ module_default.setdefault("tool_log_file", _TOOL_LOG_FILE_DEFAULT)++ log_config = getattr(log_config_mod, "log_config", None)+ runtime_log_config = getattr(log_config, "_log_config", None)+ if isinstance(runtime_log_config, dict):+ runtime_log_config.setdefault("tool_log_file", _TOOL_LOG_FILE_DEFAULT)+++def _patch_log_config(log_config_mod: Any) -> None:+ if getattr(log_config_mod.LogConfig, "_browser_move_tool_patch", False):+ return++ original_load_config = log_config_mod.LogConfig._load_config+ original_get_common_config = log_config_mod.LogConfig.get_common_config++ def _load_config_with_tool_log(config_path: str) -> Dict[str, Any]:+ config = original_load_config(config_path)+ if isinstance(config, dict):+ config.setdefault("tool_log_file", _TOOL_LOG_FILE_DEFAULT)+ return config++ def _get_common_config_with_tool_log(self: Any) -> Dict[str, Any]:+ common_config = original_get_common_config(self)++ tool_log_file = self._log_config.get("tool_log_file", _TOOL_LOG_FILE_DEFAULT)+ if tool_log_file:+ full_tool_log_file = os.path.join(self._log_path, tool_log_file)+ log_config_mod.normalize_and_validate_log_path(full_tool_log_file)+ common_config["tool_log_file"] = full_tool_log_file++ return common_config++ log_config_mod.LogConfig._load_config = staticmethod(_load_config_with_tool_log)+ log_config_mod.LogConfig.get_common_config = _get_common_config_with_tool_log+ log_config_mod.LogConfig._browser_move_tool_patch = True+++def _install_tool_file_handler(default_impl_mod: Any, tool_only_filter_cls: type, logger_obj: Any) -> None:+ output = logger_obj.config.get("output", ["console"])+ if "file" not in output:+ return++ tool_log_file = logger_obj.config.get("tool_log_file")+ if not tool_log_file:+ return++ default_impl_mod.normalize_and_validate_log_path(tool_log_file)+ try:+ abs_tool_log_file = os.path.abspath(os.path.expanduser(tool_log_file))+ except (OSError, TypeError):+ abs_tool_log_file = tool_log_file++ target_file = os.path.normcase(os.path.abspath(abs_tool_log_file))++ for handler in logger_obj._logger.handlers:+ base_filename = getattr(handler, "baseFilename", None)+ if not base_filename:+ continue+ if os.path.normcase(os.path.abspath(base_filename)) != target_file:+ continue+ for current_filter in getattr(handler, "filters", []):+ if isinstance(current_filter, tool_only_filter_cls):+ return++ tool_log_dir = os.path.dirname(abs_tool_log_file)+ if tool_log_dir:+ try:+ os.makedirs(tool_log_dir, mode=0o750, exist_ok=True)+ except OSError as error:+ raise default_impl_mod.build_error(+ default_impl_mod.StatusCode.COMMON_LOG_PATH_INIT_FAILED,+ error_msg=f"the log_dir is `{tool_log_dir}`, error detail: {error}",+ ) from error++ backup_count = logger_obj.config.get("backup_count", 20)+ max_bytes = default_impl_mod.get_log_max_bytes(logger_obj.config.get("max_bytes", 20 * 1024 * 1024))+ log_file_pattern = logger_obj.config.get("log_file_pattern", None)+ backup_file_pattern = logger_obj.config.get("backup_file_pattern", None)++ tool_file_handler = default_impl_mod.SafeRotatingFileHandler(+ filename=abs_tool_log_file,+ maxBytes=max_bytes,+ backupCount=backup_count,+ encoding="utf-8",+ log_file_pattern=log_file_pattern,+ backup_file_pattern=backup_file_pattern,+ )+ tool_file_handler.addFilter(default_impl_mod.ContextFilter(logger_obj.log_type))+ tool_file_handler.addFilter(tool_only_filter_cls())+ tool_file_handler.setFormatter(logger_obj._get_formatter())+ logger_obj._logger.addHandler(tool_file_handler)+++def _patch_default_logger(default_impl_mod: Any) -> None:+ if not hasattr(default_impl_mod, "ToolOnlyFilter"):++ class ToolOnlyFilter(logging.Filter):+ """Keep only tool invocation lifecycle records."""++ _TOOL_EVENT_MARKERS = (+ '"event_type": "tool_call_start"',+ '"event_type": "tool_call_end"',+ '"event_type": "tool_call_error"',+ '"module_type": "tool"',+ )++ def filter(self, record: logging.LogRecord) -> bool:+ record_log_type = getattr(record, "log_type", "")+ if record_log_type == "tool":+ return True++ message = record.getMessage()+ if any(marker in message for marker in self._TOOL_EVENT_MARKERS):+ return True++ lowered = message.lower()+ if "executing tool:" in lowered:+ return True+ if "calling tool '" in lowered:+ return True+ if "tool '" in lowered and "call completed" in lowered:+ return True++ return False++ default_impl_mod.ToolOnlyFilter = ToolOnlyFilter++ if getattr(default_impl_mod.DefaultLogger, "_browser_move_tool_patch", False):+ return++ original_setup_logger = default_impl_mod.DefaultLogger._setup_logger+ tool_only_filter_cls = default_impl_mod.ToolOnlyFilter++ def _setup_logger_with_tool_handler(self: Any) -> None:+ original_setup_logger(self)+ _install_tool_file_handler(default_impl_mod, tool_only_filter_cls, self)++ default_impl_mod.DefaultLogger._setup_logger = _setup_logger_with_tool_handler+ default_impl_mod.DefaultLogger._browser_move_tool_patch = True+++def _refresh_common_logger(log_config_mod: Any, log_manager_cls: Any) -> None:+ if not getattr(log_manager_cls, "_initialized", False):+ return++ common_logger = getattr(log_manager_cls, "_loggers", {}).get("common")+ if common_logger is None or not hasattr(common_logger, "reconfigure"):+ return++ common_logger.reconfigure(log_config_mod.log_config.get_common_config())+++def _patch_llm_provider_aliases(model_mod: Any) -> None:+ """Restore provider aliases that existed in the vendored openjiuwen copy."""+ registry = getattr(model_mod, "_CLIENT_TYPE_REGISTRY", None)+ if not isinstance(registry, dict):+ return++ openai_client = registry.get("OpenAI")+ if openai_client is None:+ return++ registry.setdefault("OpenRouter", openai_client)+ registry.setdefault("openrouter", openai_client)+ registry.setdefault("openai", openai_client)+++def _tool_param_score(params: Any) -> int:+ """Heuristic score for tool parameter richness (higher is better)."""+ if params is None:+ return 0+ if isinstance(params, dict):+ score = 1+ properties = params.get("properties")+ if isinstance(properties, dict):+ score += len(properties) * 10+ required = params.get("required")+ if isinstance(required, list):+ score += len(required) * 3+ if "$schema" in params:+ score += 5+ if params:+ score += 1+ return score+ if hasattr(params, "model_dump"):+ try:+ return _tool_param_score(params.model_dump())+ except Exception:+ return 1+ return 1+++def _dedupe_tool_info_list(tool_infos: Iterable[Any]) -> List[Any]:+ """Deduplicate tool infos by name, preferring richer parameter schemas."""+ ordered_names: List[str] = []+ best_by_name: Dict[str, Any] = {}+ best_score: Dict[str, int] = {}++ for tool in tool_infos or []:+ name = (getattr(tool, "name", None) or "").strip()+ if not name:+ continue++ params = getattr(tool, "parameters", None)+ score = _tool_param_score(params)+ if name not in best_by_name:+ ordered_names.append(name)+ best_by_name[name] = tool+ best_score[name] = score+ continue++ if score >= best_score[name]:+ best_by_name[name] = tool+ best_score[name] = score++ return [best_by_name[name] for name in ordered_names if name in best_by_name]+++def _patch_ability_manager(ability_manager_mod: Any) -> None:+ """Patch AbilityManager.list_tool_info to avoid duplicate tool names."""+ ability_cls = getattr(ability_manager_mod, "AbilityManager", None)+ if ability_cls is None:+ return+ if getattr(ability_cls, "_browser_move_tool_dedupe_patch", False):+ return++ original_list_tool_info = ability_cls.list_tool_info++ async def _list_tool_info_dedup(self: Any, *args: Any, **kwargs: Any) -> List[Any]:+ result = await original_list_tool_info(self, *args, **kwargs)+ return _dedupe_tool_info_list(result)++ ability_cls.list_tool_info = _list_tool_info_dedup+ ability_cls._browser_move_tool_dedupe_patch = True+++def _patch_base_model_client(base_model_client_mod: Any) -> None:+ """Patch model tool serialization to enforce unique tool names."""+ base_cls = getattr(base_model_client_mod, "BaseModelClient", None)+ if base_cls is None:+ return+ if getattr(base_cls, "_browser_move_tool_dedupe_patch", False):+ return++ original_convert_tools = base_cls._convert_tools_to_dict++ def _convert_tools_to_dict_dedup(self: Any, tools: Any) -> Any:+ tool_dicts = original_convert_tools(self, tools)+ if not tool_dicts:+ return tool_dicts++ ordered_names: List[str] = []+ best_by_name: Dict[str, Dict[str, Any]] = {}+ best_score: Dict[str, int] = {}+ for tool_dict in tool_dicts:+ function = tool_dict.get("function", {}) if isinstance(tool_dict, dict) else {}+ name = str(function.get("name", "")).strip()+ if not name:+ continue+ score = _tool_param_score(function.get("parameters"))+ if name not in best_by_name:+ ordered_names.append(name)+ best_by_name[name] = tool_dict+ best_score[name] = score+ continue+ if score >= best_score[name]:+ best_by_name[name] = tool_dict+ best_score[name] = score++ return [best_by_name[name] for name in ordered_names if name in best_by_name]++ base_cls._convert_tools_to_dict = _convert_tools_to_dict_dedup+ base_cls._browser_move_tool_dedupe_patch = True+++def apply_openjiuwen_monkeypatch() -> None:+ """Apply runtime monkeypatches for openjiuwen logging."""+ global _PATCH_APPLIED+ if _PATCH_APPLIED:+ return++ _install_openjiuwen_import_hook()++ try:+ constant_mod = importlib.import_module("openjiuwen.core.common.logging.default.constant")+ default_impl_mod = importlib.import_module("openjiuwen.core.common.logging.default.default_impl")+ log_config_mod = importlib.import_module("openjiuwen.core.common.logging.default.log_config")+ manager_mod = importlib.import_module("openjiuwen.core.common.logging.manager")+ model_mod = importlib.import_module("openjiuwen.core.foundation.llm.model")+ ability_manager_mod = importlib.import_module("openjiuwen.core.single_agent.ability_manager")+ base_model_client_mod = importlib.import_module("openjiuwen.core.foundation.llm.model_clients.base_model_client")+ except Exception:+ return++ _patch_default_inner_config(constant_mod, log_config_mod)+ _patch_log_config(log_config_mod)+ _patch_default_logger(default_impl_mod)+ _refresh_common_logger(log_config_mod, manager_mod.LogManager)+ _patch_llm_provider_aliases(model_mod)+ _patch_ability_manager(ability_manager_mod)+ _patch_base_model_client(base_model_client_mod)+ _PATCH_APPLIED = Truediff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/profiles.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/profiles.pynew file mode 100644index 0000000000..7ca7951db0--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/profiles.py@@ -0,0 +1,137 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Profile storage for browser runtime drivers."""++from __future__ import annotations++import json+from dataclasses import asdict, dataclass, field+from pathlib import Path+from typing import Any, Dict, List, Optional+++@dataclass+class BrowserProfile:+ """Persisted browser profile metadata."""++ name: str+ driver_type: str = "remote"+ cdp_url: str = ""+ browser_binary: str = ""+ user_data_dir: str = ""+ debug_port: int = 0+ host: str = "127.0.0.1"+ extra_args: List[str] = field(default_factory=list)++ @classmethod+ def from_dict(cls, raw: Dict[str, Any]) -> "BrowserProfile":+ debug_port_raw = raw.get("debug_port")+ try:+ debug_port = int(debug_port_raw or 0)+ except (TypeError, ValueError):+ debug_port = 0+ return cls(+ name=str(raw.get("name") or "").strip(),+ driver_type=str(raw.get("driver_type") or "remote").strip().lower() or "remote",+ cdp_url=str(raw.get("cdp_url") or "").strip(),+ browser_binary=str(raw.get("browser_binary") or "").strip(),+ user_data_dir=str(raw.get("user_data_dir") or "").strip(),+ debug_port=debug_port,+ host=str(raw.get("host") or "127.0.0.1").strip() or "127.0.0.1",+ extra_args=[str(x) for x in (raw.get("extra_args") or []) if str(x).strip()],+ )++ def to_dict(self) -> Dict[str, Any]:+ return asdict(self)+++class BrowserProfileStore:+ """JSON-backed profile store with selected-profile tracking."""++ def __init__(self, path: Path) -> None:+ self.path = path.expanduser()+ self._profiles: Dict[str, BrowserProfile] = {}+ self._selected: str = ""+ self._load()++ def _load(self) -> None:+ self._profiles = {}+ self._selected = ""+ if not self.path.exists():+ return+ try:+ payload = json.loads(self.path.read_text(encoding="utf-8"))+ except Exception:+ return++ if not isinstance(payload, dict):+ return++ self._selected = str(payload.get("selected_profile") or "").strip()+ for item in payload.get("profiles") or []:+ if not isinstance(item, dict):+ continue+ profile = BrowserProfile.from_dict(item)+ if not profile.name:+ continue+ self._profiles[profile.name] = profile++ def save(self) -> None:+ self.path.parent.mkdir(parents=True, exist_ok=True)+ payload = {+ "selected_profile": self._selected,+ "profiles": [profile.to_dict() for profile in sorted(self._profiles.values(), key=lambda p: p.name)],+ }+ self.path.write_text(json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8")++ def list_profiles(self) -> List[BrowserProfile]:+ return sorted(self._profiles.values(), key=lambda p: p.name)++ def get_profile(self, name: str) -> Optional[BrowserProfile]:+ key = (name or "").strip()+ if not key:+ return None+ return self._profiles.get(key)++ def upsert_profile(self, profile: BrowserProfile, *, select: bool = False) -> BrowserProfile:+ name = (profile.name or "").strip()+ if not name:+ raise ValueError("profile.name is required")+ profile.name = name+ profile.driver_type = (profile.driver_type or "remote").strip().lower() or "remote"+ self._profiles[name] = profile+ if select:+ self._selected = name+ elif self._selected and self._selected not in self._profiles:+ self._selected = ""+ self.save()+ return profile++ def remove_profile(self, name: str) -> bool:+ key = (name or "").strip()+ if not key or key not in self._profiles:+ return False+ del self._profiles[key]+ if self._selected == key:+ self._selected = ""+ self.save()+ return True++ def select_profile(self, name: str) -> BrowserProfile:+ key = (name or "").strip()+ profile = self._profiles.get(key)+ if profile is None:+ raise KeyError(f"profile not found: {key}")+ self._selected = key+ self.save()+ return profile++ def selected_name(self) -> str:+ return self._selected++ def selected_profile(self) -> Optional[BrowserProfile]:+ if not self._selected:+ return None+ return self._profiles.get(self._selected)diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/runtime.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/runtime.pynew file mode 100644index 0000000000..ca41cd1661--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/runtime.py@@ -0,0 +1,266 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Runtime wiring for main agent and browser tool."""++from __future__ import annotations++import contextvars+import uuid+from typing import Any, Dict, Optional++from jiuwenclaw.browser_timeout_policy import resolve_browser_task_timeout+from openjiuwen.core.foundation.tool import McpServerConfig, tool+from openjiuwen.core.runner import Runner+from openjiuwen.core.single_agent.agents.react_agent import ReActAgent+from openjiuwen.core.single_agent.middleware.base import (+ AgentCallbackEvent,+ AgentMiddleware,+ AnyAgentCallback,+)+from playwright_runtime.agents import build_main_agent+from playwright_runtime.controllers import ActionController, BaseController+from playwright_runtime.config import BrowserRunGuardrails+from playwright_runtime.service import BrowserService++_ctx_parent_session_id: contextvars.ContextVar[str] = contextvars.ContextVar(+ "playwright_runtime_parent_session_id",+ default="",+)+_ctx_parent_request_id: contextvars.ContextVar[str] = contextvars.ContextVar(+ "playwright_runtime_parent_request_id",+ default="",+)+++class BrowserAgentRuntime:+ """Runtime that wires main agent + browser backend tool contract."""++ def __init__(+ self,+ provider: str,+ api_key: str,+ api_base: str,+ model_name: str,+ mcp_cfg: McpServerConfig,+ guardrails: BrowserRunGuardrails,+ ) -> None:+ self._service = BrowserService(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ mcp_cfg=mcp_cfg,+ guardrails=guardrails,+ )+ self._main_agent: Optional[ReActAgent] = None+ self._browser_tool = None+ self._browser_custom_action_tool = None+ self._browser_list_actions_tool = None+ self._controller: BaseController = ActionController()++ def add_browser_middleware(self, middleware: AgentMiddleware) -> None:+ self._service.add_browser_middleware(middleware)++ def add_browser_callback(+ self,+ event: AgentCallbackEvent,+ callback: AnyAgentCallback,+ priority: int = 100,+ ) -> None:+ self._service.add_browser_callback(event=event, callback=callback, priority=priority)++ async def cancel_run(self, session_id: str, request_id: Optional[str] = None) -> Dict[str, Any]:+ await self._service.request_cancel(session_id=session_id, request_id=request_id)+ return {+ "ok": True,+ "session_id": session_id,+ "request_id": request_id,+ "error": None,+ }++ async def clear_cancel(self, session_id: str, request_id: Optional[str] = None) -> Dict[str, Any]:+ await self._service.clear_cancel(session_id=session_id, request_id=request_id)+ return {+ "ok": True,+ "session_id": session_id,+ "request_id": request_id,+ "error": None,+ }++ async def ensure_started(self) -> None:+ await self._service.ensure_started()+ if self._main_agent is not None:+ return+ self._controller.register_example_actions()+ action_details = self._controller.describe_actions()+ action_summary_lines: list[str] = []+ for action_name in sorted(action_details.keys()):+ spec = action_details.get(action_name, {})+ summary = str(spec.get("summary", "")).strip() or "No summary."+ when_to_use = str(spec.get("when_to_use", "")).strip()+ if when_to_use:+ action_summary_lines.append(f"- {action_name}: {summary} Use when: {when_to_use}")+ else:+ action_summary_lines.append(f"- {action_name}: {summary}")+ action_summary_text = "\n".join(action_summary_lines) if action_summary_lines else "- (none)"++ @tool(+ name="browser_run_task",+ description=(+ "Run a browser task in a sticky logical session. "+ "Prefer one comprehensive task per request instead of many tiny retries. "+ "Use a long timeout and do not pass timeout_s below the configured default; "+ "omit timeout_s to use the default long timeout. "+ "Returns JSON with ok/session_id/final/page/screenshot/error/attempt."+ ),+ )+ async def browser_run_task(+ task: str,+ session_id: str = "",+ request_id: str = "",+ timeout_s: int = 180,+ ) -> Dict[str, Any]:+ effective_session_id = (session_id or "").strip() or _ctx_parent_session_id.get()+ effective_request_id = (request_id or "").strip() or _ctx_parent_request_id.get()+ effective_timeout = resolve_browser_task_timeout(timeout_s, self._service.guardrails.timeout_s)+ return await self._service.run_task(+ task=task,+ session_id=effective_session_id,+ request_id=effective_request_id,+ timeout_s=effective_timeout,+ )++ @tool(+ name="browser_custom_action",+ description=(+ "Run a registered custom browser action by name. "+ "Use this for higher-level actions such as drag-and-drop helpers. "+ "For browser_get_element_coordinates provide at least element_source (element_target optional); "+ "for browser_drag_and_drop provide element_source + element_target. "+ "Or use (coord_source_x + coord_source_y + coord_target_x + coord_target_y). "+ "Aliases source/target and source_x/source_y/target_x/target_y are accepted.\n"+ "Current registered actions:\n"+ f"{action_summary_text}\n"+ "If uncertain about params, call browser_list_custom_actions first and use its details."+ ),+ )+ async def browser_custom_action(+ action: str,+ session_id: str = "",+ request_id: str = "",+ params: Optional[Dict[str, Any]] = None,+ ) -> Dict[str, Any]:+ effective_session_id = (session_id or "").strip() or _ctx_parent_session_id.get()+ effective_request_id = (request_id or "").strip() or _ctx_parent_request_id.get()+ self._controller.bind_runtime(self)+ return await self._controller.run_action(+ action=action,+ session_id=effective_session_id,+ request_id=effective_request_id,+ **(params or {}),+ )++ @tool(+ name="browser_list_custom_actions",+ description=(+ "List available custom actions and detailed parameter guidance "+ "for browser_custom_action."+ ),+ )+ async def browser_list_custom_actions() -> Dict[str, Any]:+ return {+ "ok": True,+ "actions": self._controller.list_actions(),+ "details": self._controller.describe_actions(),+ }++ self._browser_tool = browser_run_task+ self._browser_custom_action_tool = browser_custom_action+ self._browser_list_actions_tool = browser_list_custom_actions+ add_result = Runner.resource_mgr.add_tool(self._browser_tool, tag="agent.playwright.main_runtime")+ if add_result is not None and not getattr(add_result, "is_ok", lambda: False)():+ error_value = getattr(add_result, "value", add_result)+ if "already exist" not in str(error_value):+ raise RuntimeError(f"Failed to register browser_run_task tool: {error_value}")+ add_result = Runner.resource_mgr.add_tool(+ self._browser_custom_action_tool,+ tag="agent.playwright.main_runtime",+ )+ if add_result is not None and not getattr(add_result, "is_ok", lambda: False)():+ error_value = getattr(add_result, "value", add_result)+ if "already exist" not in str(error_value):+ raise RuntimeError(f"Failed to register browser_custom_action tool: {error_value}")+ add_result = Runner.resource_mgr.add_tool(+ self._browser_list_actions_tool,+ tag="agent.playwright.main_runtime",+ )+ if add_result is not None and not getattr(add_result, "is_ok", lambda: False)():+ error_value = getattr(add_result, "value", add_result)+ if "already exist" not in str(error_value):+ raise RuntimeError(f"Failed to register browser_list_custom_actions tool: {error_value}")++ self._main_agent = build_main_agent(+ provider=self._service.provider,+ api_key=self._service.api_key,+ api_base=self._service.api_base,+ model_name=self._service.model_name,+ browser_tool_card=self._browser_tool.card,+ custom_action_tool_card=self._browser_custom_action_tool.card,+ list_actions_tool_card=self._browser_list_actions_tool.card,+ )++ async def handle_request(+ self,+ query: str,+ session_id: Optional[str] = None,+ request_id: Optional[str] = None,+ ) -> Dict[str, Any]:+ await self.ensure_started()+ sid = self._service.session_new(session_id)+ rid = (request_id or "").strip() or uuid.uuid4().hex++ if self._main_agent is None:+ raise RuntimeError("Main agent not initialized")++ token_sid = _ctx_parent_session_id.set(sid)+ token_rid = _ctx_parent_request_id.set(rid)+ try:+ result = await Runner.run_agent(+ self._main_agent,+ {"query": query, "conversation_id": sid, "request_id": rid},+ )+ finally:+ _ctx_parent_session_id.reset(token_sid)+ _ctx_parent_request_id.reset(token_rid)+ result_type = result.get("result_type") if isinstance(result, dict) else None+ final = result.get("output", "") if isinstance(result, dict) else str(result)+ ok = result_type != "error"+ error = None if ok else str(final)++ return {+ "ok": ok,+ "session_id": sid,+ "request_id": rid,+ "final": final,+ "error": error,+ }++ async def run_browser_task(+ self,+ task: str,+ session_id: Optional[str] = None,+ request_id: Optional[str] = None,+ timeout_s: Optional[int] = None,+ ) -> Dict[str, Any]:+ await self.ensure_started()+ return await self._service.run_task(+ task=task,+ session_id=session_id,+ request_id=request_id,+ timeout_s=timeout_s,+ )++ async def shutdown(self) -> None:+ await self._service.shutdown()diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/service.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/service.pynew file mode 100644index 0000000000..3abe66812e--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime/service.py@@ -0,0 +1,632 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Browser backend service with sticky sessions and guardrails."""++from __future__ import annotations++import asyncio+import base64+import json+import mimetypes+import os+import shlex+import shutil+import uuid+from pathlib import Path+from typing import Any, Dict, List, Optional, Tuple++from jiuwenclaw.browser_timeout_policy import (+ allow_short_timeout_override,+ resolve_browser_task_timeout,+)+from openjiuwen.core.foundation.store.base_kv_store import BaseKVStore+from openjiuwen.core.foundation.store.kv.in_memory_kv_store import InMemoryKVStore+from openjiuwen.core.foundation.tool import McpServerConfig+from openjiuwen.core.runner import Runner+from openjiuwen.core.single_agent.agents.react_agent import ReActAgent+from openjiuwen.core.single_agent.middleware.base import (+ AgentCallbackEvent,+ AgentMiddleware,+ AnyAgentCallback,+)+from playwright_runtime import REPO_ROOT+from playwright_runtime.agents import build_browser_worker_agent+from playwright_runtime.config import BrowserRunGuardrails, resolve_playwright_mcp_cwd+from playwright_runtime.drivers.managed_browser import ManagedBrowserDriver+from playwright_runtime.hooks import BrowserCancellationMiddleware, BrowserRunCancelled+from playwright_runtime.profiles import BrowserProfile, BrowserProfileStore+++def extract_json_object(text: Any) -> Dict[str, Any]:+ """Best-effort JSON extraction from model text."""+ if isinstance(text, dict):+ return text+ if text is None:+ return {}++ raw = str(text).strip()+ if not raw:+ return {}++ try:+ parsed = json.loads(raw)+ if isinstance(parsed, dict):+ return parsed+ except Exception:+ pass++ if "```json" in raw:+ start = raw.find("```json") + len("```json")+ end = raw.find("```", start)+ if end > start:+ block = raw[start:end].strip()+ try:+ parsed = json.loads(block)+ if isinstance(parsed, dict):+ return parsed+ except Exception:+ pass++ first = raw.find("{")+ last = raw.rfind("}")+ if first >= 0 and last > first:+ snippet = raw[first:last + 1]+ try:+ parsed = json.loads(snippet)+ if isinstance(parsed, dict):+ return parsed+ except Exception:+ pass++ return {}+++class BrowserService:+ """Backend browser service with sticky logical sessions."""++ def __init__(+ self,+ provider: str,+ api_key: str,+ api_base: str,+ model_name: str,+ mcp_cfg: McpServerConfig,+ guardrails: BrowserRunGuardrails,+ cancel_store: Optional[BaseKVStore] = None,+ ) -> None:+ self.provider = provider+ self.api_key = api_key+ self.api_base = api_base+ self.model_name = model_name+ self.mcp_cfg = mcp_cfg+ self.guardrails = guardrails+ self._cancel_store: BaseKVStore = cancel_store or InMemoryKVStore()++ self.started = False+ self._browser_agent: Optional[ReActAgent] = None+ self._locks: Dict[str, asyncio.Lock] = {}+ self._sessions: set[str] = set()+ self._inflight_tasks: Dict[str, set[asyncio.Task[Any]]] = {}+ self._pending_middlewares: List[AgentMiddleware] = []+ self._pending_callbacks: List[Tuple[AgentCallbackEvent, AnyAgentCallback, int]] = []+ self._screenshot_subdir = "screenshots"+ self._mcp_cwd = self._resolve_mcp_cwd()+ self._screenshots_dir = self._mcp_cwd / self._screenshot_subdir+ self._profile_store = BrowserProfileStore(self._resolve_profile_store_path())+ self._profile_name = (os.getenv("BROWSER_PROFILE_NAME") or "jiuwenclaw").strip() or "jiuwenclaw"+ self._driver_mode = self._resolve_driver_mode()+ self._active_profile: Optional[BrowserProfile] = None+ self._managed_driver: Optional[ManagedBrowserDriver] = None++ @staticmethod+ def _parse_env_args(value: str) -> List[str]:+ raw = (value or "").strip()+ if not raw:+ return []+ if raw.startswith("["):+ try:+ parsed = json.loads(raw)+ if isinstance(parsed, list):+ return [str(x).strip() for x in parsed if str(x).strip()]+ except Exception:+ pass+ return [part for part in shlex.split(raw) if part]++ def _resolve_profile_store_path(self) -> Path:+ configured = (os.getenv("BROWSER_PROFILE_STORE_PATH") or "").strip()+ if configured:+ return Path(configured).expanduser()+ return Path(REPO_ROOT).expanduser() / ".browser" / "profiles.json"++ def _resolve_driver_mode(self) -> str:+ explicit = (os.getenv("BROWSER_DRIVER") or "").strip().lower()+ if explicit:+ if explicit not in {"remote", "managed"}:+ raise ValueError("BROWSER_DRIVER must be one of: remote, managed")+ return explicit+ return "remote"++ def _resolve_effective_timeout(self, timeout_s: Optional[int]) -> int:+ effective_timeout = resolve_browser_task_timeout(timeout_s, self.guardrails.timeout_s)+ requested_timeout = None+ if timeout_s is not None:+ try:+ parsed = int(timeout_s)+ if parsed > 0:+ requested_timeout = parsed+ except (TypeError, ValueError):+ requested_timeout = None+ if (+ requested_timeout is not None+ and effective_timeout != requested_timeout+ and not allow_short_timeout_override()+ ):+ from openjiuwen.core.common.logging import logger as _logger++ _logger.info(+ "BrowserService: clamped browser task timeout from "+ f"{requested_timeout}s to {effective_timeout}s"+ )+ return effective_timeout++ @staticmethod+ def _cancel_key(session_id: str, request_id: Optional[str] = None) -> str:+ rid = (request_id or "").strip() or "*"+ return f"playwright_runtime:cancel:{session_id}:{rid}"++ @staticmethod+ def _inflight_key(session_id: str, request_id: Optional[str] = None) -> str:+ rid = (request_id or "").strip()+ return f"{session_id}:{rid}" if rid else session_id++ def _register_inflight_task(self, session_id: str, request_id: str, task: asyncio.Task[Any]) -> None:+ keys = (self._inflight_key(session_id), self._inflight_key(session_id, request_id))+ for key in keys:+ self._inflight_tasks.setdefault(key, set()).add(task)++ def _unregister_inflight_task(self, session_id: str, request_id: str, task: asyncio.Task[Any]) -> None:+ keys = (self._inflight_key(session_id), self._inflight_key(session_id, request_id))+ for key in keys:+ tasks = self._inflight_tasks.get(key)+ if not tasks:+ continue+ tasks.discard(task)+ if not tasks:+ self._inflight_tasks.pop(key, None)++ def _resolve_mcp_cwd(self) -> Path:+ params = getattr(self.mcp_cfg, "params", {}) or {}+ raw = str(params.get("cwd", "")).strip()+ if raw:+ return Path(raw).expanduser()+ return Path(resolve_playwright_mcp_cwd()).expanduser()++ def _build_managed_profile(self) -> BrowserProfile:+ host = (os.getenv("BROWSER_MANAGED_HOST") or "127.0.0.1").strip() or "127.0.0.1"+ port_raw = (os.getenv("BROWSER_MANAGED_PORT") or "9333").strip()+ try:+ port = int(port_raw)+ if port <= 0:+ raise ValueError+ except ValueError as exc:+ raise ValueError(f"Invalid BROWSER_MANAGED_PORT: {port_raw}") from exc++ user_data_dir = (+ os.getenv("BROWSER_MANAGED_USER_DATA_DIR")+ or str(Path(REPO_ROOT).expanduser() / ".browser-profiles" / self._profile_name)+ ).strip()+ browser_binary = (os.getenv("BROWSER_MANAGED_BINARY") or "").strip()+ extra_args = self._parse_env_args(os.getenv("BROWSER_MANAGED_ARGS") or "")+ cdp_url = f"http://{host}:{port}"+ return BrowserProfile(+ name=self._profile_name,+ driver_type="managed",+ cdp_url=cdp_url,+ browser_binary=browser_binary,+ user_data_dir=user_data_dir,+ debug_port=port,+ host=host,+ extra_args=extra_args,+ )++ def _inject_cdp_endpoint(self, endpoint: str) -> None:+ params = dict(getattr(self.mcp_cfg, "params", {}) or {})+ env_map = dict(params.get("env", {}) or {})+ env_map["PLAYWRIGHT_MCP_CDP_ENDPOINT"] = endpoint+ env_map.setdefault("PLAYWRIGHT_MCP_BROWSER", "chrome")+ env_map.pop("PLAYWRIGHT_MCP_DEVICE", None)+ params["env"] = env_map+ self.mcp_cfg.params = params++ async def _ensure_managed_driver_started(self) -> None:+ if self._driver_mode != "managed":+ return+ if self._managed_driver is not None:+ return++ profile = self._profile_store.get_profile(self._profile_name)+ if (+ profile is None+ or profile.driver_type != "managed"+ or profile.debug_port <= 0+ or not str(profile.user_data_dir).strip()+ ):+ profile = self._build_managed_profile()+ self._profile_store.upsert_profile(profile, select=True)+ self._active_profile = profile++ driver = ManagedBrowserDriver(profile=profile)+ endpoint = await asyncio.to_thread(driver.start, 20.0)+ self._inject_cdp_endpoint(endpoint)+ profile.cdp_url = endpoint+ self._profile_store.upsert_profile(profile, select=True)+ self._managed_driver = driver++ async def _stop_managed_driver(self) -> None:+ if self._managed_driver is None:+ return+ driver = self._managed_driver+ self._managed_driver = None+ await asyncio.to_thread(driver.stop)++ def _ensure_screenshots_dir(self) -> None:+ self._screenshots_dir.mkdir(parents=True, exist_ok=True)++ def _resolve_local_screenshot_path(self, raw_path: str) -> Path:+ path = Path(raw_path).expanduser()+ candidates: List[Path] = []+ if path.is_absolute():+ candidates.append(path)+ else:+ candidates.extend(+ [+ self._mcp_cwd / path,+ Path.cwd() / path,+ path,+ ]+ )++ for candidate in candidates:+ if candidate.exists() and candidate.is_file():+ return candidate+ return path++ def _ensure_screenshot_in_folder(self, source_path: Path) -> Path:+ if not source_path.exists() or not source_path.is_file():+ return source_path++ self._ensure_screenshots_dir()+ try:+ source_resolved = source_path.resolve()+ target_dir_resolved = self._screenshots_dir.resolve()+ try:+ source_resolved.relative_to(target_dir_resolved)+ return source_resolved+ except ValueError:+ pass++ target_path = self._screenshots_dir / source_path.name+ if target_path.exists():+ target_resolved = target_path.resolve()+ if target_resolved != source_resolved:+ target_path = self._screenshots_dir / (+ f"{source_path.stem}-{uuid.uuid4().hex[:8]}{source_path.suffix}"+ )++ shutil.copy2(source_path, target_path)+ return target_path+ except Exception:+ return source_path++ def _normalize_screenshot_value(self, screenshot: Any) -> Any:+ """Normalize screenshot for downstream multimodal APIs.++ - Keep remote URLs and existing data URLs as-is.+ - Ensure local screenshots are copied into screenshots/ folder.+ - Convert local image file paths to data URLs.+ """+ if screenshot is None or not isinstance(screenshot, str):+ return screenshot++ raw = screenshot.strip()+ if not raw:+ return None++ lowered = raw.lower()+ if lowered.startswith(("http://", "https://", "data:image/")):+ return raw++ local_path_str = raw[7:] if lowered.startswith("file://") else raw+ local_path = self._resolve_local_screenshot_path(local_path_str)+ if not local_path.exists() or not local_path.is_file():+ return raw+ local_path = self._ensure_screenshot_in_folder(local_path)++ mime_type, _ = mimetypes.guess_type(str(local_path))+ if not mime_type or not mime_type.startswith("image/"):+ return raw++ try:+ encoded = base64.b64encode(local_path.read_bytes()).decode("ascii")+ except Exception:+ return raw+ return f"data:{mime_type};base64,{encoded}"++ @staticmethod+ def _is_retryable_transport_error(exc: Exception) -> bool:+ name = type(exc).__name__.lower()+ text = str(exc).lower()+ markers = (+ "session terminated",+ "not connected",+ "endofstream",+ "closedresourceerror",+ "brokenresourceerror",+ "stream closed",+ "connection closed",+ "broken pipe",+ "remoteprotocolerror",+ "readerror",+ "writeerror",+ )+ return any(marker in name or marker in text for marker in markers)++ async def request_cancel(self, session_id: str, request_id: Optional[str] = None) -> None:+ sid = (session_id or "").strip()+ if not sid:+ raise ValueError("session_id is required for cancellation")+ await self._cancel_store.set(self._cancel_key(sid, request_id), "1")++ request_id_clean = (request_id or "").strip()+ if request_id_clean:+ keys = [self._inflight_key(sid, request_id_clean)]+ else:+ keys = [self._inflight_key(sid)]++ for key in keys:+ for task in list(self._inflight_tasks.get(key, set())):+ if not task.done():+ task.cancel()++ async def clear_cancel(self, session_id: str, request_id: Optional[str] = None) -> None:+ sid = (session_id or "").strip()+ if not sid:+ return+ if request_id:+ await self._cancel_store.delete(self._cancel_key(sid, request_id))+ return+ await self._cancel_store.delete(self._cancel_key(sid, "*"))++ async def is_cancelled(self, session_id: str, request_id: Optional[str] = None) -> bool:+ sid = (session_id or "").strip()+ if not sid:+ return False+ if request_id:+ exact = await self._cancel_store.get(self._cancel_key(sid, request_id))+ if exact is not None:+ return True+ wildcard = await self._cancel_store.get(self._cancel_key(sid, "*"))+ return wildcard is not None++ def add_browser_middleware(self, middleware: AgentMiddleware) -> None:+ if self._browser_agent is None:+ self._pending_middlewares.append(middleware)+ return+ self._browser_agent.register_middleware(middleware)++ def add_browser_callback(+ self,+ event: AgentCallbackEvent,+ callback: AnyAgentCallback,+ priority: int = 100,+ ) -> None:+ if self._browser_agent is None:+ self._pending_callbacks.append((event, callback, priority))+ return+ self._browser_agent.register_callback(event, callback, priority=priority)++ def session_new(self, session_id: Optional[str] = None) -> str:+ sid = (session_id or "").strip() or f"browser-{uuid.uuid4().hex}"+ self._sessions.add(sid)+ if sid not in self._locks:+ self._locks[sid] = asyncio.Lock()+ return sid++ async def ensure_started(self) -> None:+ if self.started:+ return++ if shutil.which("npx") is None:+ raise RuntimeError("npx not found in PATH. Install Node.js first.")++ await self._ensure_managed_driver_started()+ self._ensure_screenshots_dir()+ await Runner.start()++ register_result = await Runner.resource_mgr.add_mcp_server(self.mcp_cfg, tag="browser.service")+ if register_result is not None and not getattr(register_result, "is_ok", lambda: False)():+ error_value = getattr(register_result, "value", register_result)+ if "already exist" not in str(error_value):+ raise RuntimeError(f"Failed to register Playwright MCP server: {error_value}")++ self._browser_agent = build_browser_worker_agent(+ provider=self.provider,+ api_key=self.api_key,+ api_base=self.api_base,+ model_name=self.model_name,+ mcp_cfg=self.mcp_cfg,+ max_steps=self.guardrails.max_steps,+ screenshot_subdir=self._screenshot_subdir,+ )+ self._browser_agent.register_middleware(BrowserCancellationMiddleware(self.is_cancelled))+ for middleware in self._pending_middlewares:+ self._browser_agent.register_middleware(middleware)+ self._pending_middlewares.clear()+ for event, callback, priority in self._pending_callbacks:+ self._browser_agent.register_callback(event, callback, priority=priority)+ self._pending_callbacks.clear()+ self.started = True++ async def _restart(self) -> None:+ """Tear down and reinitialize the browser service (e.g. after stdio subprocess dies)."""+ from openjiuwen.core.common.logging import logger as _logger+ _logger.warning("BrowserService: restarting due to broken MCP connection")+ try:+ server_resource_id = (self.mcp_cfg.server_id or "").strip() or self.mcp_cfg.server_name+ await Runner.resource_mgr.remove_tool_server(+ server_resource_id, ignore_not_exist=True+ )+ except Exception:+ pass+ self.started = False+ self._browser_agent = None+ await self.ensure_started()++ async def _run_task_once(self, task: str, session_id: str, request_id: str) -> Dict[str, Any]:+ if self._browser_agent is None:+ raise RuntimeError("BrowserService is not started")++ task_prompt = (+ f"Session id: {session_id}\n"+ f"Request id: {request_id}\n"+ f"Max steps: {self.guardrails.max_steps}\n"+ f"Max failures: {self.guardrails.max_failures}\n\n"+ f"Task:\n{task}\n\n"+ "Perform the task in the current logical browser session/tab for this session id."+ )+ result = await Runner.run_agent(+ self._browser_agent,+ {"query": task_prompt, "conversation_id": session_id, "request_id": request_id},+ )+ output_text = result.get("output") if isinstance(result, dict) else result+ parsed = extract_json_object(output_text)+ if parsed:+ return parsed+ return {+ "ok": False,+ "final": str(output_text) if output_text is not None else "",+ "page": {"url": "", "title": ""},+ "screenshot": None,+ "error": "Browser worker did not return valid JSON output",+ }++ async def run_task(+ self,+ task: str,+ session_id: Optional[str] = None,+ request_id: Optional[str] = None,+ timeout_s: Optional[int] = None,+ ) -> Dict[str, Any]:+ await self.ensure_started()+ sid = self.session_new(session_id)+ rid = (request_id or "").strip() or uuid.uuid4().hex+ effective_timeout = self._resolve_effective_timeout(timeout_s)+ attempts = 2 if self.guardrails.retry_once else 1++ async with self._locks[sid]:+ current_task = asyncio.current_task()+ if current_task is not None:+ self._register_inflight_task(sid, rid, current_task)+ try:+ if await self.is_cancelled(sid, rid):+ await self.clear_cancel(sid, rid)+ await self.clear_cancel(sid, None)+ return {+ "ok": False,+ "session_id": sid,+ "request_id": rid,+ "final": "",+ "page": {"url": "", "title": ""},+ "screenshot": None,+ "error": "cancelled_by_frontend",+ "attempt": 0,+ }+ last_error: Optional[str] = None+ for attempt_idx in range(attempts):+ try:+ parsed = await asyncio.wait_for(+ self._run_task_once(task=task, session_id=sid, request_id=rid),+ timeout=float(effective_timeout),+ )+ page = parsed.get("page") if isinstance(parsed.get("page"), dict) else {}+ screenshot = self._normalize_screenshot_value(parsed.get("screenshot"))+ return {+ "ok": bool(parsed.get("ok", False)),+ "session_id": sid,+ "request_id": rid,+ "final": str(parsed.get("final", "")),+ "page": {+ "url": str(page.get("url", "")),+ "title": str(page.get("title", "")),+ },+ "screenshot": screenshot,+ "error": parsed.get("error"),+ "attempt": attempt_idx + 1,+ }+ except TimeoutError:+ last_error = f"task_timeout: exceeded {effective_timeout}s"+ if attempt_idx + 1 >= attempts:+ break+ except asyncio.CancelledError:+ await self.clear_cancel(sid, rid)+ await self.clear_cancel(sid, None)+ return {+ "ok": False,+ "session_id": sid,+ "request_id": rid,+ "final": "",+ "page": {"url": "", "title": ""},+ "screenshot": None,+ "error": "cancelled_by_frontend",+ "attempt": attempt_idx + 1,+ }+ except BrowserRunCancelled:+ await self.clear_cancel(sid, rid)+ await self.clear_cancel(sid, None)+ return {+ "ok": False,+ "session_id": sid,+ "request_id": rid,+ "final": "",+ "page": {"url": "", "title": ""},+ "screenshot": None,+ "error": "cancelled_by_frontend",+ "attempt": attempt_idx + 1,+ }+ except Exception as exc:+ last_error = str(exc) or repr(exc)+ if attempt_idx + 1 >= attempts:+ break+ # Restart before retry on known transport/session failures.+ if (not str(exc)) or self._is_retryable_transport_error(exc):+ try:+ await self._restart()+ except Exception as restart_exc:+ last_error = f"restart_failed: {restart_exc!r}"+ break++ await self.clear_cancel(sid, rid)+ await self.clear_cancel(sid, None)+ return {+ "ok": False,+ "session_id": sid,+ "request_id": rid,+ "final": "",+ "page": {"url": "", "title": ""},+ "screenshot": None,+ "error": last_error or "unknown browser execution error",+ "attempt": attempts,+ }+ finally:+ if current_task is not None:+ self._unregister_inflight_task(sid, rid, current_task)++ async def shutdown(self) -> None:+ try:+ if self.started:+ await Runner.stop()+ self.started = False+ finally:+ await self._stop_managed_driver()diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime_mcp_server.py b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime_mcp_server.pynew file mode 100644index 0000000000..ab14e8add2--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/playwright_runtime_mcp_server.py@@ -0,0 +1,330 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""MCP server wrapper for Playwright browser runtime.++Usage (from repo root):+ uv run python src/playwright_runtime_mcp_server.py+ uv run python src/playwright_runtime_mcp_server.py --transport sse --host 127.0.0.1 --port 8940+"""++from __future__ import annotations++import argparse+import asyncio+import os+import sys+from contextlib import asynccontextmanager+from pathlib import Path+from typing import TYPE_CHECKING, Any, Dict, Optional++# Ensure repo and src packages are importable when running as a script.+_HERE = Path(__file__).resolve().parent+_SRC_ROOT = _HERE+_REPO_ROOT = _SRC_ROOT.parent+for _p in (str(_REPO_ROOT), str(_SRC_ROOT)):+ if _p not in sys.path:+ sys.path.insert(0, _p)++from fastmcp import FastMCP+from jiuwenclaw.browser_timeout_policy import resolve_browser_task_timeout+from playwright_runtime.openjiuwen_monkeypatch import apply_openjiuwen_monkeypatch++# Inject browser-move client subclasses before openjiuwen's ToolMgr is used,+# so retry/timeout/reconnect logic is active in MCP server mode as well.+apply_openjiuwen_monkeypatch()+import openjiuwen.core.runner.resources_manager.tool_manager as _tool_mgr_mod+from playwright_runtime.clients.stdio_client import BrowserMoveStdioClient+from playwright_runtime.clients.streamable_http_client import BrowserMoveStreamableHttpClient+from playwright_runtime.config import (+ BrowserRunGuardrails,+ build_playwright_mcp_config,+ resolve_model_settings,+)+from playwright_runtime.controllers.action import (+ bind_runtime,+ clear_runtime_runner,+ list_actions,+ register_example_actions,+ run_action,+)++if TYPE_CHECKING:+ from playwright_runtime.runtime import BrowserAgentRuntime++_tool_mgr_mod.StdioClient = BrowserMoveStdioClient+_tool_mgr_mod.StreamableHttpClient = BrowserMoveStreamableHttpClient++_runtime: Optional["BrowserAgentRuntime"] = None+_runtime_lock = asyncio.Lock()+GUARDRAIL_MAX_STEPS = 20+GUARDRAIL_MAX_FAILURES = 2+GUARDRAIL_RETRY_ONCE = True+++def _build_runtime() -> "BrowserAgentRuntime":+ from playwright_runtime.runtime import BrowserAgentRuntime++ provider, api_key, api_base = resolve_model_settings()+ if not api_key:+ raise RuntimeError("Missing API key. Set OPENROUTER_API_KEY or OPENAI_API_KEY.")++ model_name = (os.getenv("MODEL_NAME") or "anthropic/claude-sonnet-4.5").strip()+ guardrails = BrowserRunGuardrails(+ max_steps=GUARDRAIL_MAX_STEPS,+ max_failures=GUARDRAIL_MAX_FAILURES,+ timeout_s=int(os.getenv("BROWSER_TIMEOUT_S", "180")),+ retry_once=GUARDRAIL_RETRY_ONCE,+ )+ return BrowserAgentRuntime(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ mcp_cfg=build_playwright_mcp_config(),+ guardrails=guardrails,+ )+++async def _get_runtime() -> BrowserAgentRuntime:+ global _runtime+ if _runtime is not None:+ return _runtime++ async with _runtime_lock:+ if _runtime is None:+ _runtime = _build_runtime()+ await _runtime.ensure_started()+ bind_runtime(_runtime)+ return _runtime+++async def _shutdown_runtime() -> None:+ global _runtime+ async with _runtime_lock:+ if _runtime is not None:+ await _runtime.shutdown()+ _runtime = None+ clear_runtime_runner()+++@asynccontextmanager+async def _lifespan(_server: FastMCP):+ try:+ register_example_actions()+ yield {}+ finally:+ await _shutdown_runtime()+++mcp = FastMCP(+ "playwright-runtime-mcp",+ instructions=(+ "Browser automation MCP server. "+ "Use browser_run_task for web tasks. "+ "Pass a stable session_id to reuse browser session state."+ ),+ lifespan=_lifespan,+)+++ name="browser_run_task",+ description=(+ "Execute a browser task using Playwright runtime. "+ "Prefer one comprehensive task per request instead of many tiny retries. "+ "Use a long timeout and do not pass timeout_s below the configured default; "+ "omit timeout_s to use the default long timeout. "+ "Returns JSON with ok/session_id/request_id/final/page/screenshot/error/attempt."+ ),+)+async def browser_run_task(+ task: str,+ session_id: str = "",+ request_id: str = "",+ timeout_s: int = 0,+) -> Dict[str, Any]:+ runtime = await _get_runtime()+ effective_timeout = None+ if timeout_s > 0:+ effective_timeout = resolve_browser_task_timeout(timeout_s, runtime._service.guardrails.timeout_s)+ return await runtime.run_browser_task(+ task=task,+ session_id=session_id or None,+ request_id=request_id or None,+ timeout_s=effective_timeout,+ )+++ name="browser_cancel_task",+ description="Cancel an in-flight browser run for a session/request.",+)+async def browser_cancel_task(+ session_id: str,+ request_id: str = "",+) -> Dict[str, Any]:+ runtime = await _get_runtime()+ return await runtime.cancel_run(session_id=session_id, request_id=request_id or None)+++ name="browser_clear_cancel",+ description="Clear cancellation flag for a session/request.",+)+async def browser_clear_cancel(+ session_id: str,+ request_id: str = "",+) -> Dict[str, Any]:+ runtime = await _get_runtime()+ return await runtime.clear_cancel(session_id=session_id, request_id=request_id or None)+++ name="browser_custom_action",+ description=(+ "Run a custom controller action by name. Use for actions the Playwright MCP does not provide. "+ "Optional: session_id, request_id, and action-specific args via params object "+ "(e.g. params={'text': 'hello'} for 'echo'). "+ "Built-in examples: ping, echo, browser_get_element_coordinates, browser_drag_and_drop. "+ "For browser_get_element_coordinates use at least element_source (element_target optional). "+ "For browser_drag_and_drop use element_source+element_target. "+ "Or use coord_source_x+coord_source_y+coord_target_x+coord_target_y. "+ "Aliases source/target and source_x/source_y/target_x/target_y are accepted. "+ "Register your own via playwright_runtime.controllers.action.register_action."+ ),+)+async def browser_custom_action(+ action: str,+ session_id: str = "",+ request_id: str = "",+ params: Optional[Dict[str, Any]] = None,+) -> Dict[str, Any]:+ result = await run_action(+ action=action,+ session_id=session_id,+ request_id=request_id,+ **(params or {}),+ )+ if isinstance(result, dict) and str(result.get("error", "")).startswith("runtime_not_bound:"):+ runtime = await _get_runtime()+ bind_runtime(runtime)+ result = await run_action(+ action=action,+ session_id=session_id,+ request_id=request_id,+ **(params or {}),+ )+ return result+++ name="browser_list_custom_actions",+ description="List registered custom action names (for browser_custom_action).",+)+async def browser_list_custom_actions() -> Dict[str, Any]:+ return {"ok": True, "actions": list_actions()}+++ name="browser_runtime_health",+ description="Return runtime readiness and selected model/provider config.",+)+async def browser_runtime_health() -> Dict[str, Any]:+ provider, _api_key, api_base = resolve_model_settings()+ model_name = (os.getenv("MODEL_NAME") or "anthropic/claude-sonnet-4").strip()+ return {+ "ok": True,+ "provider": provider,+ "api_base": api_base,+ "model_name": model_name,+ "started": _runtime is not None,+ }+++def parse_args() -> argparse.Namespace:+ parser = argparse.ArgumentParser(description="Playwright runtime MCP server")+ parser.add_argument(+ "--transport",+ choices=["stdio", "sse", "streamable-http", "http"],+ default=(os.getenv("PLAYWRIGHT_RUNTIME_MCP_TRANSPORT") or "stdio").strip().lower(),+ help="MCP transport mode. Use stdio for agent-launched server; sse/http for standalone server.",+ )+ parser.add_argument(+ "--host",+ default=(os.getenv("PLAYWRIGHT_RUNTIME_MCP_HOST") or "127.0.0.1").strip(),+ help="Host for sse/http transports.",+ )+ parser.add_argument(+ "--port",+ type=int,+ default=int((os.getenv("PLAYWRIGHT_RUNTIME_MCP_PORT") or "8940").strip()),+ help="Port for sse/http transports.",+ )+ parser.add_argument(+ "--path",+ default=(os.getenv("PLAYWRIGHT_RUNTIME_MCP_PATH") or "").strip(),+ help="Optional custom endpoint path for sse/http transports.",+ )+ parser.add_argument(+ "--log-level",+ default=(os.getenv("PLAYWRIGHT_RUNTIME_MCP_LOG_LEVEL") or "INFO").strip(),+ help="Server log level.",+ )+ parser.add_argument(+ "--no-banner",+ action="store_true",+ help="Disable FastMCP startup banner.",+ )+ parser.add_argument(+ "--stateless-http",+ action="store_true",+ help=(+ "Enable stateless HTTP mode for http/streamable-http transports. "+ "Useful when clients intermittently lose transport session state."+ ),+ )+ return parser.parse_args()+++def _apply_timeout_defaults(transport: str) -> None:+ """Set runtime timeout defaults based on transport when not explicitly provided."""+ os.environ.setdefault("BROWSER_TIMEOUT_S", "180")+ os.environ.setdefault("PLAYWRIGHT_TOOL_TIMEOUT_S", os.getenv("BROWSER_TIMEOUT_S", "180"))+++def _resolve_stateless_http(args: argparse.Namespace) -> bool:+ """Resolve whether to run HTTP transports in stateless mode."""+ if args.stateless_http:+ return True++ env_raw = (os.getenv("PLAYWRIGHT_RUNTIME_MCP_STATELESS_HTTP") or "").strip().lower()+ if env_raw in {"1", "true", "yes", "on"}:+ return True+ if env_raw in {"0", "false", "no", "off"}:+ return False++ # Default to stateless for streamable/http to avoid stateful session crashes.+ return args.transport in {"streamable-http", "http"}+++def main() -> None:+ args = parse_args()+ _apply_timeout_defaults(args.transport)+ kwargs: Dict[str, Any] = {+ "show_banner": not args.no_banner,+ "log_level": args.log_level,+ }+ if args.transport in {"sse", "streamable-http", "http"}:+ kwargs["host"] = args.host+ kwargs["port"] = args.port+ if args.path:+ kwargs["path"] = args.path+ if args.transport in {"streamable-http", "http"} and _resolve_stateless_http(args):+ kwargs["stateless_http"] = True+ mcp.run(transport=args.transport, **kwargs)+++if __name__ == "__main__":+ main()diff --git a/jiuwenclaw/agentserver/tools/browser-move/src/test_playwright_runtime.py b/jiuwenclaw/agentserver/tools/browser-move/src/test_playwright_runtime.pynew file mode 100644index 0000000000..00c432a352--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/src/test_playwright_runtime.py@@ -0,0 +1,289 @@+#!/usr/bin/env python+# coding: utf-8+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Test harness for playwright_runtime package.++Usage (from repo root):+ uv run python src/test_playwright_runtime.py+ uv run python src/test_playwright_runtime.py --live+ uv run python src/test_playwright_runtime.py --live --query "Go to example.com and return title"+ uv run python src/test_playwright_runtime.py --live --via-controller --controller-action browser_get_element_coordinates --controller-params-json "{\"url\":\"https://example.com\",\"element_source\":\"Learn more\",\"element_target\":\"Example Domain\"}"+"""++from __future__ import annotations++import argparse+import asyncio+import json+import os+import re+import sys+from pathlib import Path+from typing import Any, Dict++from playwright_runtime.config import (+ BrowserRunGuardrails,+ build_playwright_mcp_config,+ resolve_model_settings,+)++GUARDRAIL_MAX_STEPS = 20+GUARDRAIL_MAX_FAILURES = 2+GUARDRAIL_RETRY_ONCE = True+++def _check(condition: bool, msg: str) -> None:+ if not condition:+ raise AssertionError(msg)+++def _autoload_env() -> Dict[str, Any]:+ env_path = Path(__file__).resolve().parents[1] / ".env"+ if not env_path.exists():+ return {"loaded": False, "path": str(env_path), "reason": "missing"}++ try:+ from dotenv import load_dotenv++ loaded = load_dotenv(dotenv_path=env_path, override=True)+ return {"loaded": bool(loaded), "path": str(env_path), "reason": "ok"}+ except Exception as exc:+ return {"loaded": False, "path": str(env_path), "reason": f"error: {exc}"}+++def run_smoke_checks() -> Dict[str, Any]:+ mcp_cfg = build_playwright_mcp_config()+ provider, api_key, api_base = resolve_model_settings()++ _check(mcp_cfg.client_type == "stdio", "Expected stdio MCP transport")+ _check(bool(mcp_cfg.server_id), "server_id is empty")+ _check(bool(mcp_cfg.server_name), "server_name is empty")+ _check(bool(mcp_cfg.params.get("command")), "MCP command is missing")+ _check(isinstance(mcp_cfg.params.get("args", []), list), "MCP args must be a list")+ _check(provider in ("openai", "openrouter"), "Unexpected provider")+ _check(bool(api_base), "api_base is empty")++ return {+ "ok": True,+ "mode": "smoke",+ "provider": provider,+ "has_api_key": bool(api_key),+ "mcp_server_id": mcp_cfg.server_id,+ "mcp_server_name": mcp_cfg.server_name,+ "mcp_command": mcp_cfg.params.get("command"),+ "mcp_args": mcp_cfg.params.get("args"),+ }+++async def run_live_check(query: str, session_id: str, cancel_after_s: float = 0.0) -> Dict[str, Any]:+ try:+ from playwright_runtime.runtime import BrowserAgentRuntime+ except ModuleNotFoundError as exc:+ missing = getattr(exc, "name", None) or str(exc)+ raise RuntimeError(+ f"Live mode missing dependency: {missing}. "+ "Install project runtime dependencies before using --live."+ ) from exc++ provider, api_key, api_base = resolve_model_settings()+ if not api_key:+ raise RuntimeError("Missing API key for live run. Set OPENROUTER_API_KEY or OPENAI_API_KEY.")++ model_name = (os.getenv("MODEL_NAME") or "anthropic/claude-sonnet-4").strip()+ guardrails = BrowserRunGuardrails(+ max_steps=GUARDRAIL_MAX_STEPS,+ max_failures=GUARDRAIL_MAX_FAILURES,+ timeout_s=int(os.getenv("BROWSER_TIMEOUT_S", "180")),+ retry_once=GUARDRAIL_RETRY_ONCE,+ )+ runtime = BrowserAgentRuntime(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ mcp_cfg=build_playwright_mcp_config(),+ guardrails=guardrails,+ )++ try:+ await runtime.ensure_started()+ if cancel_after_s > 0:+ request_task = asyncio.create_task(runtime.handle_request(query=query, session_id=session_id))+ await asyncio.sleep(cancel_after_s)+ await runtime.cancel_run(session_id=session_id)+ result = await request_task+ else:+ result = await runtime.handle_request(query=query, session_id=session_id)+ return {+ "ok": bool(result.get("ok", False)),+ "mode": "live",+ "session_id": result.get("session_id"),+ "request_id": result.get("request_id"),+ "final": result.get("final"),+ "error": result.get("error"),+ }+ finally:+ await runtime.shutdown()+++def _parse_json_object(raw: str) -> Dict[str, Any]:+ text = (raw or "").strip()+ if not text:+ return {}+ value = json.loads(text)+ if not isinstance(value, dict):+ raise ValueError("controller params JSON must be an object")+ return value+++def _extract_first_url(text: str) -> str:+ match = re.search(r"https?://[^\s\"'<>]+", str(text or ""))+ if not match:+ return ""+ return match.group(0).rstrip(").,;!?")+++async def run_live_controller_check(+ query: str,+ session_id: str,+ controller_action: str,+ controller_params_json: str = "",+) -> Dict[str, Any]:+ try:+ from playwright_runtime.runtime import BrowserAgentRuntime+ except ModuleNotFoundError as exc:+ missing = getattr(exc, "name", None) or str(exc)+ raise RuntimeError(+ f"Live mode missing dependency: {missing}. "+ "Install project runtime dependencies before using --live."+ ) from exc++ provider, api_key, api_base = resolve_model_settings()+ if not api_key:+ raise RuntimeError("Missing API key for live run. Set OPENROUTER_API_KEY or OPENAI_API_KEY.")++ model_name = (os.getenv("MODEL_NAME") or "anthropic/claude-sonnet-4").strip()+ guardrails = BrowserRunGuardrails(+ max_steps=GUARDRAIL_MAX_STEPS,+ max_failures=GUARDRAIL_MAX_FAILURES,+ timeout_s=int(os.getenv("BROWSER_TIMEOUT_S", "180")),+ retry_once=GUARDRAIL_RETRY_ONCE,+ )+ runtime = BrowserAgentRuntime(+ provider=provider,+ api_key=api_key,+ api_base=api_base,+ model_name=model_name,+ mcp_cfg=build_playwright_mcp_config(),+ guardrails=guardrails,+ )++ try:+ await runtime.ensure_started()+ action_name = (controller_action or "").strip() or "browser_task"+ params = _parse_json_object(controller_params_json)+ if not params and action_name in ("browser_task", "run_browser_task"):+ params = {"task": query}+ if action_name in ("browser_get_element_coordinates", "browser_drag_and_drop"):+ url_value = str(params.get("url") or "").strip()+ if not url_value:+ inferred_url = _extract_first_url(query)+ if inferred_url:+ params["url"] = inferred_url++ result = await runtime.run_custom_action(+ action=action_name,+ params=params,+ session_id=session_id,+ )+ return {+ "ok": bool(result.get("ok", False)),+ "mode": "live_controller",+ "action": action_name,+ "session_id": result.get("session_id"),+ "request_id": result.get("request_id"),+ "final": result.get("final"),+ "error": result.get("error"),+ "result": result,+ }+ finally:+ await runtime.shutdown()+++def parse_args() -> argparse.Namespace:+ parser = argparse.ArgumentParser(description="Playwright runtime test harness")+ parser.add_argument(+ "--live",+ action="store_true",+ help="Run full live browser/runtime check (requires API key and Playwright MCP runtime).",+ )+ parser.add_argument(+ "--query",+ default="Go to https://example.com and return the page title.",+ help="Query used for --live mode.",+ )+ parser.add_argument(+ "--session-id",+ default="test-browser-session",+ help="Session id used for --live mode.",+ )+ parser.add_argument(+ "--cancel-after-s",+ type=float,+ default=0.0,+ help="For --live mode, send a cancel signal after N seconds (session-level cancel).",+ )+ parser.add_argument(+ "--via-controller",+ action="store_true",+ help="For --live mode, bypass main-agent tool choice and run through controller directly.",+ )+ parser.add_argument(+ "--controller-action",+ default="browser_task",+ help="Action name used with --via-controller (default: browser_task).",+ )+ parser.add_argument(+ "--controller-params-json",+ default="",+ help="Optional JSON object string for --via-controller action params.",+ )+ return parser.parse_args()+++def main() -> int:+ args = parse_args()+ try:+ env_info = _autoload_env()+ smoke_result = run_smoke_checks()+ smoke_result["dotenv"] = env_info+ print(json.dumps(smoke_result, ensure_ascii=False, indent=2))++ if not args.live:+ return 0++ if args.via_controller:+ if args.cancel_after_s > 0:+ raise RuntimeError("--cancel-after-s is not supported with --via-controller mode.")+ live_result = asyncio.run(+ run_live_controller_check(+ query=args.query,+ session_id=args.session_id,+ controller_action=args.controller_action,+ controller_params_json=args.controller_params_json,+ )+ )+ else:+ live_result = asyncio.run(+ run_live_check(query=args.query, session_id=args.session_id, cancel_after_s=args.cancel_after_s)+ )+ print(json.dumps(live_result, ensure_ascii=False, indent=2))+ return 0 if live_result.get("ok") else 2+ except Exception as exc:+ print(json.dumps({"ok": False, "error": str(exc)}, ensure_ascii=False, indent=2))+ return 1+++if __name__ == "__main__":+ sys.exit(main())diff --git a/jiuwenclaw/agentserver/tools/browser-move/uv.lock b/jiuwenclaw/agentserver/tools/browser-move/uv.locknew file mode 100644index 0000000000..449602c9be--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser-move/uv.lock@@ -0,0 +1,3262 @@+version = 1+revision = 3+requires-python = ">=3.13"+resolution-markers = [+ "python_full_version >= '3.14' and sys_platform == 'win32'",+ "python_full_version >= '3.14' and sys_platform == 'emscripten'",+ "python_full_version >= '3.14' and sys_platform != 'emscripten' and sys_platform != 'win32'",+ "python_full_version < '3.14' and sys_platform == 'win32'",+ "python_full_version < '3.14' and sys_platform == 'emscripten'",+ "python_full_version < '3.14' and sys_platform != 'emscripten' and sys_platform != 'win32'",+]++[[package]]+name = "aiofiles"+version = "25.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/41/c3/534eac40372d8ee36ef40df62ec129bee4fdb5ad9706e58a29be53b2c970/aiofiles-25.1.0.tar.gz", hash = "sha256:a8d728f0a29de45dc521f18f07297428d56992a742f0cd2701ba86e44d23d5b2", size = 46354, upload-time = "2025-10-09T20:51:04.358Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bc/8a/340a1555ae33d7354dbca4faa54948d76d89a27ceef032c8c3bc661d003e/aiofiles-25.1.0-py3-none-any.whl", hash = "sha256:abe311e527c862958650f9438e859c1fa7568a141b22abcd015e120e86a85695", size = 14668, upload-time = "2025-10-09T20:51:03.174Z" },+]++[[package]]+name = "aiohappyeyeballs"+version = "2.6.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/26/30/f84a107a9c4331c14b2b586036f40965c128aa4fee4dda5d3d51cb14ad54/aiohappyeyeballs-2.6.1.tar.gz", hash = "sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558", size = 22760, upload-time = "2025-03-12T01:42:48.764Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0f/15/5bf3b99495fb160b63f95972b81750f18f7f4e02ad051373b669d17d44f2/aiohappyeyeballs-2.6.1-py3-none-any.whl", hash = "sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8", size = 15265, upload-time = "2025-03-12T01:42:47.083Z" },+]++[[package]]+name = "aiohttp"+version = "3.13.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohappyeyeballs" },+ { name = "aiosignal" },+ { name = "attrs" },+ { name = "frozenlist" },+ { name = "multidict" },+ { name = "propcache" },+ { name = "yarl" },+]+sdist = { url = "https://files.pythonhosted.org/packages/50/42/32cf8e7704ceb4481406eb87161349abb46a57fee3f008ba9cb610968646/aiohttp-3.13.3.tar.gz", hash = "sha256:a949eee43d3782f2daae4f4a2819b2cb9b0c5d3b7f7a927067cc84dafdbb9f88", size = 7844556, upload-time = "2026-01-03T17:33:05.204Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/97/8a/12ca489246ca1faaf5432844adbfce7ff2cc4997733e0af120869345643a/aiohttp-3.13.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:5dff64413671b0d3e7d5918ea490bdccb97a4ad29b3f311ed423200b2203e01c", size = 734190, upload-time = "2026-01-03T17:30:45.832Z" },+ { url = "https://files.pythonhosted.org/packages/32/08/de43984c74ed1fca5c014808963cc83cb00d7bb06af228f132d33862ca76/aiohttp-3.13.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:87b9aab6d6ed88235aa2970294f496ff1a1f9adcd724d800e9b952395a80ffd9", size = 491783, upload-time = "2026-01-03T17:30:47.466Z" },+ { url = "https://files.pythonhosted.org/packages/17/f8/8dd2cf6112a5a76f81f81a5130c57ca829d101ad583ce57f889179accdda/aiohttp-3.13.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:425c126c0dc43861e22cb1c14ba4c8e45d09516d0a3ae0a3f7494b79f5f233a3", size = 490704, upload-time = "2026-01-03T17:30:49.373Z" },+ { url = "https://files.pythonhosted.org/packages/6d/40/a46b03ca03936f832bc7eaa47cfbb1ad012ba1be4790122ee4f4f8cba074/aiohttp-3.13.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7f9120f7093c2a32d9647abcaf21e6ad275b4fbec5b55969f978b1a97c7c86bf", size = 1720652, upload-time = "2026-01-03T17:30:50.974Z" },+ { url = "https://files.pythonhosted.org/packages/f7/7e/917fe18e3607af92657e4285498f500dca797ff8c918bd7d90b05abf6c2a/aiohttp-3.13.3-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:697753042d57f4bf7122cab985bf15d0cef23c770864580f5af4f52023a56bd6", size = 1692014, upload-time = "2026-01-03T17:30:52.729Z" },+ { url = "https://files.pythonhosted.org/packages/71/b6/cefa4cbc00d315d68973b671cf105b21a609c12b82d52e5d0c9ae61d2a09/aiohttp-3.13.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6de499a1a44e7de70735d0b39f67c8f25eb3d91eb3103be99ca0fa882cdd987d", size = 1759777, upload-time = "2026-01-03T17:30:54.537Z" },+ { url = "https://files.pythonhosted.org/packages/fb/e3/e06ee07b45e59e6d81498b591fc589629be1553abb2a82ce33efe2a7b068/aiohttp-3.13.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:37239e9f9a7ea9ac5bf6b92b0260b01f8a22281996da609206a84df860bc1261", size = 1861276, upload-time = "2026-01-03T17:30:56.512Z" },+ { url = "https://files.pythonhosted.org/packages/7c/24/75d274228acf35ceeb2850b8ce04de9dd7355ff7a0b49d607ee60c29c518/aiohttp-3.13.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f76c1e3fe7d7c8afad7ed193f89a292e1999608170dcc9751a7462a87dfd5bc0", size = 1743131, upload-time = "2026-01-03T17:30:58.256Z" },+ { url = "https://files.pythonhosted.org/packages/04/98/3d21dde21889b17ca2eea54fdcff21b27b93f45b7bb94ca029c31ab59dc3/aiohttp-3.13.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fc290605db2a917f6e81b0e1e0796469871f5af381ce15c604a3c5c7e51cb730", size = 1556863, upload-time = "2026-01-03T17:31:00.445Z" },+ { url = "https://files.pythonhosted.org/packages/9e/84/da0c3ab1192eaf64782b03971ab4055b475d0db07b17eff925e8c93b3aa5/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4021b51936308aeea0367b8f006dc999ca02bc118a0cc78c303f50a2ff6afb91", size = 1682793, upload-time = "2026-01-03T17:31:03.024Z" },+ { url = "https://files.pythonhosted.org/packages/ff/0f/5802ada182f575afa02cbd0ec5180d7e13a402afb7c2c03a9aa5e5d49060/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:49a03727c1bba9a97d3e93c9f93ca03a57300f484b6e935463099841261195d3", size = 1716676, upload-time = "2026-01-03T17:31:04.842Z" },+ { url = "https://files.pythonhosted.org/packages/3f/8c/714d53bd8b5a4560667f7bbbb06b20c2382f9c7847d198370ec6526af39c/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:3d9908a48eb7416dc1f4524e69f1d32e5d90e3981e4e37eb0aa1cd18f9cfa2a4", size = 1733217, upload-time = "2026-01-03T17:31:06.868Z" },+ { url = "https://files.pythonhosted.org/packages/7d/79/e2176f46d2e963facea939f5be2d26368ce543622be6f00a12844d3c991f/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:2712039939ec963c237286113c68dbad80a82a4281543f3abf766d9d73228998", size = 1552303, upload-time = "2026-01-03T17:31:08.958Z" },+ { url = "https://files.pythonhosted.org/packages/ab/6a/28ed4dea1759916090587d1fe57087b03e6c784a642b85ef48217b0277ae/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:7bfdc049127717581866fa4708791220970ce291c23e28ccf3922c700740fdc0", size = 1763673, upload-time = "2026-01-03T17:31:10.676Z" },+ { url = "https://files.pythonhosted.org/packages/e8/35/4a3daeb8b9fab49240d21c04d50732313295e4bd813a465d840236dd0ce1/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8057c98e0c8472d8846b9c79f56766bcc57e3e8ac7bfd510482332366c56c591", size = 1721120, upload-time = "2026-01-03T17:31:12.575Z" },+ { url = "https://files.pythonhosted.org/packages/bc/9f/d643bb3c5fb99547323e635e251c609fbbc660d983144cfebec529e09264/aiohttp-3.13.3-cp313-cp313-win32.whl", hash = "sha256:1449ceddcdbcf2e0446957863af03ebaaa03f94c090f945411b61269e2cb5daf", size = 427383, upload-time = "2026-01-03T17:31:14.382Z" },+ { url = "https://files.pythonhosted.org/packages/4e/f1/ab0395f8a79933577cdd996dd2f9aa6014af9535f65dddcf88204682fe62/aiohttp-3.13.3-cp313-cp313-win_amd64.whl", hash = "sha256:693781c45a4033d31d4187d2436f5ac701e7bbfe5df40d917736108c1cc7436e", size = 453899, upload-time = "2026-01-03T17:31:15.958Z" },+ { url = "https://files.pythonhosted.org/packages/99/36/5b6514a9f5d66f4e2597e40dea2e3db271e023eb7a5d22defe96ba560996/aiohttp-3.13.3-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:ea37047c6b367fd4bd632bff8077449b8fa034b69e812a18e0132a00fae6e808", size = 737238, upload-time = "2026-01-03T17:31:17.909Z" },+ { url = "https://files.pythonhosted.org/packages/f7/49/459327f0d5bcd8c6c9ca69e60fdeebc3622861e696490d8674a6d0cb90a6/aiohttp-3.13.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:6fc0e2337d1a4c3e6acafda6a78a39d4c14caea625124817420abceed36e2415", size = 492292, upload-time = "2026-01-03T17:31:19.919Z" },+ { url = "https://files.pythonhosted.org/packages/e8/0b/b97660c5fd05d3495b4eb27f2d0ef18dc1dc4eff7511a9bf371397ff0264/aiohttp-3.13.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c685f2d80bb67ca8c3837823ad76196b3694b0159d232206d1e461d3d434666f", size = 493021, upload-time = "2026-01-03T17:31:21.636Z" },+ { url = "https://files.pythonhosted.org/packages/54/d4/438efabdf74e30aeceb890c3290bbaa449780583b1270b00661126b8aae4/aiohttp-3.13.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:48e377758516d262bde50c2584fc6c578af272559c409eecbdd2bae1601184d6", size = 1717263, upload-time = "2026-01-03T17:31:23.296Z" },+ { url = "https://files.pythonhosted.org/packages/71/f2/7bddc7fd612367d1459c5bcf598a9e8f7092d6580d98de0e057eb42697ad/aiohttp-3.13.3-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:34749271508078b261c4abb1767d42b8d0c0cc9449c73a4df494777dc55f0687", size = 1669107, upload-time = "2026-01-03T17:31:25.334Z" },+ { url = "https://files.pythonhosted.org/packages/00/5a/1aeaecca40e22560f97610a329e0e5efef5e0b5afdf9f857f0d93839ab2e/aiohttp-3.13.3-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:82611aeec80eb144416956ec85b6ca45a64d76429c1ed46ae1b5f86c6e0c9a26", size = 1760196, upload-time = "2026-01-03T17:31:27.394Z" },+ { url = "https://files.pythonhosted.org/packages/f8/f8/0ff6992bea7bd560fc510ea1c815f87eedd745fe035589c71ce05612a19a/aiohttp-3.13.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2fff83cfc93f18f215896e3a190e8e5cb413ce01553901aca925176e7568963a", size = 1843591, upload-time = "2026-01-03T17:31:29.238Z" },+ { url = "https://files.pythonhosted.org/packages/e3/d1/e30e537a15f53485b61f5be525f2157da719819e8377298502aebac45536/aiohttp-3.13.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bbe7d4cecacb439e2e2a8a1a7b935c25b812af7a5fd26503a66dadf428e79ec1", size = 1720277, upload-time = "2026-01-03T17:31:31.053Z" },+ { url = "https://files.pythonhosted.org/packages/84/45/23f4c451d8192f553d38d838831ebbc156907ea6e05557f39563101b7717/aiohttp-3.13.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b928f30fe49574253644b1ca44b1b8adbd903aa0da4b9054a6c20fc7f4092a25", size = 1548575, upload-time = "2026-01-03T17:31:32.87Z" },+ { url = "https://files.pythonhosted.org/packages/6a/ed/0a42b127a43712eda7807e7892c083eadfaf8429ca8fb619662a530a3aab/aiohttp-3.13.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7b5e8fe4de30df199155baaf64f2fcd604f4c678ed20910db8e2c66dc4b11603", size = 1679455, upload-time = "2026-01-03T17:31:34.76Z" },+ { url = "https://files.pythonhosted.org/packages/2e/b5/c05f0c2b4b4fe2c9d55e73b6d3ed4fd6c9dc2684b1d81cbdf77e7fad9adb/aiohttp-3.13.3-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:8542f41a62bcc58fc7f11cf7c90e0ec324ce44950003feb70640fc2a9092c32a", size = 1687417, upload-time = "2026-01-03T17:31:36.699Z" },+ { url = "https://files.pythonhosted.org/packages/c9/6b/915bc5dad66aef602b9e459b5a973529304d4e89ca86999d9d75d80cbd0b/aiohttp-3.13.3-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:5e1d8c8b8f1d91cd08d8f4a3c2b067bfca6ec043d3ff36de0f3a715feeedf926", size = 1729968, upload-time = "2026-01-03T17:31:38.622Z" },+ { url = "https://files.pythonhosted.org/packages/11/3b/e84581290a9520024a08640b63d07673057aec5ca548177a82026187ba73/aiohttp-3.13.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:90455115e5da1c3c51ab619ac57f877da8fd6d73c05aacd125c5ae9819582aba", size = 1545690, upload-time = "2026-01-03T17:31:40.57Z" },+ { url = "https://files.pythonhosted.org/packages/f5/04/0c3655a566c43fd647c81b895dfe361b9f9ad6d58c19309d45cff52d6c3b/aiohttp-3.13.3-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:042e9e0bcb5fba81886c8b4fbb9a09d6b8a00245fd8d88e4d989c1f96c74164c", size = 1746390, upload-time = "2026-01-03T17:31:42.857Z" },+ { url = "https://files.pythonhosted.org/packages/1f/53/71165b26978f719c3419381514c9690bd5980e764a09440a10bb816ea4ab/aiohttp-3.13.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2eb752b102b12a76ca02dff751a801f028b4ffbbc478840b473597fc91a9ed43", size = 1702188, upload-time = "2026-01-03T17:31:44.984Z" },+ { url = "https://files.pythonhosted.org/packages/29/a7/cbe6c9e8e136314fa1980da388a59d2f35f35395948a08b6747baebb6aa6/aiohttp-3.13.3-cp314-cp314-win32.whl", hash = "sha256:b556c85915d8efaed322bf1bdae9486aa0f3f764195a0fb6ee962e5c71ef5ce1", size = 433126, upload-time = "2026-01-03T17:31:47.463Z" },+ { url = "https://files.pythonhosted.org/packages/de/56/982704adea7d3b16614fc5936014e9af85c0e34b58f9046655817f04306e/aiohttp-3.13.3-cp314-cp314-win_amd64.whl", hash = "sha256:9bf9f7a65e7aa20dd764151fb3d616c81088f91f8df39c3893a536e279b4b984", size = 459128, upload-time = "2026-01-03T17:31:49.2Z" },+ { url = "https://files.pythonhosted.org/packages/6c/2a/3c79b638a9c3d4658d345339d22070241ea341ed4e07b5ac60fb0f418003/aiohttp-3.13.3-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:05861afbbec40650d8a07ea324367cb93e9e8cc7762e04dd4405df99fa65159c", size = 769512, upload-time = "2026-01-03T17:31:51.134Z" },+ { url = "https://files.pythonhosted.org/packages/29/b9/3e5014d46c0ab0db8707e0ac2711ed28c4da0218c358a4e7c17bae0d8722/aiohttp-3.13.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:2fc82186fadc4a8316768d61f3722c230e2c1dcab4200d52d2ebdf2482e47592", size = 506444, upload-time = "2026-01-03T17:31:52.85Z" },+ { url = "https://files.pythonhosted.org/packages/90/03/c1d4ef9a054e151cd7839cdc497f2638f00b93cbe8043983986630d7a80c/aiohttp-3.13.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0add0900ff220d1d5c5ebbf99ed88b0c1bbf87aa7e4262300ed1376a6b13414f", size = 510798, upload-time = "2026-01-03T17:31:54.91Z" },+ { url = "https://files.pythonhosted.org/packages/ea/76/8c1e5abbfe8e127c893fe7ead569148a4d5a799f7cf958d8c09f3eedf097/aiohttp-3.13.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:568f416a4072fbfae453dcf9a99194bbb8bdeab718e08ee13dfa2ba0e4bebf29", size = 1868835, upload-time = "2026-01-03T17:31:56.733Z" },+ { url = "https://files.pythonhosted.org/packages/8e/ac/984c5a6f74c363b01ff97adc96a3976d9c98940b8969a1881575b279ac5d/aiohttp-3.13.3-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:add1da70de90a2569c5e15249ff76a631ccacfe198375eead4aadf3b8dc849dc", size = 1720486, upload-time = "2026-01-03T17:31:58.65Z" },+ { url = "https://files.pythonhosted.org/packages/b2/9a/b7039c5f099c4eb632138728828b33428585031a1e658d693d41d07d89d1/aiohttp-3.13.3-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:10b47b7ba335d2e9b1239fa571131a87e2d8ec96b333e68b2a305e7a98b0bae2", size = 1847951, upload-time = "2026-01-03T17:32:00.989Z" },+ { url = "https://files.pythonhosted.org/packages/3c/02/3bec2b9a1ba3c19ff89a43a19324202b8eb187ca1e928d8bdac9bbdddebd/aiohttp-3.13.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3dd4dce1c718e38081c8f35f323209d4c1df7d4db4bab1b5c88a6b4d12b74587", size = 1941001, upload-time = "2026-01-03T17:32:03.122Z" },+ { url = "https://files.pythonhosted.org/packages/37/df/d879401cedeef27ac4717f6426c8c36c3091c6e9f08a9178cc87549c537f/aiohttp-3.13.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34bac00a67a812570d4a460447e1e9e06fae622946955f939051e7cc895cfab8", size = 1797246, upload-time = "2026-01-03T17:32:05.255Z" },+ { url = "https://files.pythonhosted.org/packages/8d/15/be122de1f67e6953add23335c8ece6d314ab67c8bebb3f181063010795a7/aiohttp-3.13.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a19884d2ee70b06d9204b2727a7b9f983d0c684c650254679e716b0b77920632", size = 1627131, upload-time = "2026-01-03T17:32:07.607Z" },+ { url = "https://files.pythonhosted.org/packages/12/12/70eedcac9134cfa3219ab7af31ea56bc877395b1ac30d65b1bc4b27d0438/aiohttp-3.13.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5f8ca7f2bb6ba8348a3614c7918cc4bb73268c5ac2a207576b7afea19d3d9f64", size = 1795196, upload-time = "2026-01-03T17:32:09.59Z" },+ { url = "https://files.pythonhosted.org/packages/32/11/b30e1b1cd1f3054af86ebe60df96989c6a414dd87e27ad16950eee420bea/aiohttp-3.13.3-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:b0d95340658b9d2f11d9697f59b3814a9d3bb4b7a7c20b131df4bcef464037c0", size = 1782841, upload-time = "2026-01-03T17:32:11.445Z" },+ { url = "https://files.pythonhosted.org/packages/88/0d/d98a9367b38912384a17e287850f5695c528cff0f14f791ce8ee2e4f7796/aiohttp-3.13.3-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:a1e53262fd202e4b40b70c3aff944a8155059beedc8a89bba9dc1f9ef06a1b56", size = 1795193, upload-time = "2026-01-03T17:32:13.705Z" },+ { url = "https://files.pythonhosted.org/packages/43/a5/a2dfd1f5ff5581632c7f6a30e1744deda03808974f94f6534241ef60c751/aiohttp-3.13.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:d60ac9663f44168038586cab2157e122e46bdef09e9368b37f2d82d354c23f72", size = 1621979, upload-time = "2026-01-03T17:32:15.965Z" },+ { url = "https://files.pythonhosted.org/packages/fa/f0/12973c382ae7c1cccbc4417e129c5bf54c374dfb85af70893646e1f0e749/aiohttp-3.13.3-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:90751b8eed69435bac9ff4e3d2f6b3af1f57e37ecb0fbeee59c0174c9e2d41df", size = 1822193, upload-time = "2026-01-03T17:32:18.219Z" },+ { url = "https://files.pythonhosted.org/packages/3c/5f/24155e30ba7f8c96918af1350eb0663e2430aad9e001c0489d89cd708ab1/aiohttp-3.13.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:fc353029f176fd2b3ec6cfc71be166aba1936fe5d73dd1992ce289ca6647a9aa", size = 1769801, upload-time = "2026-01-03T17:32:20.25Z" },+ { url = "https://files.pythonhosted.org/packages/eb/f8/7314031ff5c10e6ece114da79b338ec17eeff3a079e53151f7e9f43c4723/aiohttp-3.13.3-cp314-cp314t-win32.whl", hash = "sha256:2e41b18a58da1e474a057b3d35248d8320029f61d70a37629535b16a0c8f3767", size = 466523, upload-time = "2026-01-03T17:32:22.215Z" },+ { url = "https://files.pythonhosted.org/packages/b4/63/278a98c715ae467624eafe375542d8ba9b4383a016df8fdefe0ae28382a7/aiohttp-3.13.3-cp314-cp314t-win_amd64.whl", hash = "sha256:44531a36aa2264a1860089ffd4dce7baf875ee5a6079d5fb42e261c704ef7344", size = 499694, upload-time = "2026-01-03T17:32:24.546Z" },+]++[[package]]+name = "aiosignal"+version = "1.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "frozenlist" },+]+sdist = { url = "https://files.pythonhosted.org/packages/61/62/06741b579156360248d1ec624842ad0edf697050bbaf7c3e46394e106ad1/aiosignal-1.4.0.tar.gz", hash = "sha256:f47eecd9468083c2029cc99945502cb7708b082c232f9aca65da147157b251c7", size = 25007, upload-time = "2025-07-03T22:54:43.528Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fb/76/641ae371508676492379f16e2fa48f4e2c11741bd63c48be4b12a6b09cba/aiosignal-1.4.0-py3-none-any.whl", hash = "sha256:053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e", size = 7490, upload-time = "2025-07-03T22:54:42.156Z" },+]++[[package]]+name = "annotated-doc"+version = "0.0.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/57/ba/046ceea27344560984e26a590f90bc7f4a75b06701f653222458922b558c/annotated_doc-0.0.4.tar.gz", hash = "sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4", size = 7288, upload-time = "2025-11-10T22:07:42.062Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1e/d3/26bf1008eb3d2daa8ef4cacc7f3bfdc11818d111f7e2d0201bc6e3b49d45/annotated_doc-0.0.4-py3-none-any.whl", hash = "sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320", size = 5303, upload-time = "2025-11-10T22:07:40.673Z" },+]++[[package]]+name = "annotated-types"+version = "0.7.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" },+]++[[package]]+name = "anyio"+version = "4.12.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "idna" },+]+sdist = { url = "https://files.pythonhosted.org/packages/96/f0/5eb65b2bb0d09ac6776f2eb54adee6abe8228ea05b20a5ad0e4945de8aac/anyio-4.12.1.tar.gz", hash = "sha256:41cfcc3a4c85d3f05c932da7c26d0201ac36f72abd4435ba90d0464a3ffed703", size = 228685, upload-time = "2026-01-06T11:45:21.246Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/38/0e/27be9fdef66e72d64c0cdc3cc2823101b80585f8119b5c112c2e8f5f7dab/anyio-4.12.1-py3-none-any.whl", hash = "sha256:d405828884fc140aa80a3c667b8beed277f1dfedec42ba031bd6ac3db606ab6c", size = 113592, upload-time = "2026-01-06T11:45:19.497Z" },+]++[[package]]+name = "attrs"+version = "25.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/6b/5c/685e6633917e101e5dcb62b9dd76946cbb57c26e133bae9e0cd36033c0a9/attrs-25.4.0.tar.gz", hash = "sha256:16d5969b87f0859ef33a48b35d55ac1be6e42ae49d5e853b597db70c35c57e11", size = 934251, upload-time = "2025-10-06T13:54:44.725Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3a/2a/7cc015f5b9f5db42b7d48157e23356022889fc354a2813c15934b7cb5c0e/attrs-25.4.0-py3-none-any.whl", hash = "sha256:adcf7e2a1fb3b36ac48d97835bb6d8ade15b8dcce26aba8bf1d14847b57a3373", size = 67615, upload-time = "2025-10-06T13:54:43.17Z" },+]++[[package]]+name = "authlib"+version = "1.6.7"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cryptography" },+]+sdist = { url = "https://files.pythonhosted.org/packages/49/dc/ed1681bf1339dd6ea1ce56136bad4baabc6f7ad466e375810702b0237047/authlib-1.6.7.tar.gz", hash = "sha256:dbf10100011d1e1b34048c9d120e83f13b35d69a826ae762b93d2fb5aafc337b", size = 164950, upload-time = "2026-02-06T14:04:14.171Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f8/00/3ed12264094ec91f534fae429945efbaa9f8c666f3aa7061cc3b2a26a0cd/authlib-1.6.7-py2.py3-none-any.whl", hash = "sha256:c637340d9a02789d2efa1d003a7437d10d3e565237bcb5fcbc6c134c7b95bab0", size = 244115, upload-time = "2026-02-06T14:04:12.141Z" },+]++[[package]]+name = "beartype"+version = "0.22.9"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c7/94/1009e248bbfbab11397abca7193bea6626806be9a327d399810d523a07cb/beartype-0.22.9.tar.gz", hash = "sha256:8f82b54aa723a2848a56008d18875f91c1db02c32ef6a62319a002e3e25a975f", size = 1608866, upload-time = "2025-12-13T06:50:30.72Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/71/cc/18245721fa7747065ab478316c7fea7c74777d07f37ae60db2e84f8172e8/beartype-0.22.9-py3-none-any.whl", hash = "sha256:d16c9bbc61ea14637596c5f6fbff2ee99cbe3573e46a716401734ef50c3060c2", size = 1333658, upload-time = "2025-12-13T06:50:28.266Z" },+]++[[package]]+name = "browser-move"+version = "0.1.0"+source = { virtual = "." }+dependencies = [+ { name = "aiofiles" },+ { name = "aiohappyeyeballs" },+ { name = "aiohttp" },+ { name = "aiosignal" },+ { name = "annotated-doc" },+ { name = "annotated-types" },+ { name = "anyio" },+ { name = "attrs" },+ { name = "authlib" },+ { name = "beartype" },+ { name = "cacheout" },+ { name = "cachetools" },+ { name = "certifi" },+ { name = "cffi" },+ { name = "cfgv" },+ { name = "charset-normalizer" },+ { name = "click" },+ { name = "cloudpickle" },+ { name = "codecov" },+ { name = "colorama" },+ { name = "coverage" },+ { name = "croniter" },+ { name = "cryptography" },+ { name = "cyclopts" },+ { name = "dashscope" },+ { name = "diskcache" },+ { name = "distlib" },+ { name = "distro" },+ { name = "dnspython" },+ { name = "docstring-parser" },+ { name = "docutils" },+ { name = "docx2txt" },+ { name = "email-validator" },+ { name = "exceptiongroup" },+ { name = "fakeredis" },+ { name = "fastmcp" },+ { name = "filelock" },+ { name = "frozenlist" },+ { name = "fsspec" },+ { name = "greenlet" },+ { name = "grpcio" },+ { name = "h11" },+ { name = "hf-xet" },+ { name = "httpcore" },+ { name = "httpx" },+ { name = "httpx-sse" },+ { name = "huggingface-hub" },+ { name = "identify" },+ { name = "idna" },+ { name = "importlib-metadata" },+ { name = "iniconfig" },+ { name = "jaraco-classes" },+ { name = "jaraco-context" },+ { name = "jaraco-functools" },+ { name = "jiter" },+ { name = "json-repair" },+ { name = "jsonref" },+ { name = "jsonschema" },+ { name = "jsonschema-path" },+ { name = "jsonschema-specifications" },+ { name = "keyring" },+ { name = "lupa" },+ { name = "lxml" },+ { name = "markdown-it-py" },+ { name = "mcp" },+ { name = "mdurl" },+ { name = "mermaid-py" },+ { name = "more-itertools" },+ { name = "multidict" },+ { name = "nodeenv" },+ { name = "numpy" },+ { name = "oauthlib" },+ { name = "openai" },+ { name = "openapi-pydantic" },+ { name = "openjiuwen" },+ { name = "opentelemetry-api" },+ { name = "orjson" },+ { name = "packaging" },+ { name = "pandas" },+ { name = "pathable" },+ { name = "pathvalidate" },+ { name = "pdfminer-six" },+ { name = "pdfplumber" },+ { name = "pillow" },+ { name = "platformdirs" },+ { name = "pluggy" },+ { name = "portalocker" },+ { name = "pre-commit" },+ { name = "prometheus-client" },+ { name = "propcache" },+ { name = "protobuf" },+ { name = "py-key-value-aio" },+ { name = "py-key-value-shared" },+ { name = "pycparser" },+ { name = "pycryptodome" },+ { name = "pydantic" },+ { name = "pydantic-core" },+ { name = "pydantic-settings" },+ { name = "pydocket" },+ { name = "pygments" },+ { name = "pyjwt" },+ { name = "pymilvus" },+ { name = "pypdfium2" },+ { name = "pyperclip" },+ { name = "pysbd" },+ { name = "pytest" },+ { name = "pytest-cov" },+ { name = "python-dateutil" },+ { name = "python-docx" },+ { name = "python-dotenv" },+ { name = "python-json-logger" },+ { name = "python-multipart" },+ { name = "pytz" },+ { name = "pywin32" },+ { name = "pywin32-ctypes" },+ { name = "pyyaml" },+ { name = "redis" },+ { name = "referencing" },+ { name = "regex" },+ { name = "requests" },+ { name = "rich" },+ { name = "rich-rst" },+ { name = "rpds-py" },+ { name = "ruff" },+ { name = "safetensors" },+ { name = "setuptools" },+ { name = "shellingham" },+ { name = "six" },+ { name = "sniffio" },+ { name = "sortedcontainers" },+ { name = "sqlalchemy" },+ { name = "sse-starlette" },+ { name = "starlette" },+ { name = "tiktoken" },+ { name = "tokenizers" },+ { name = "tqdm" },+ { name = "transformers" },+ { name = "typer" },+ { name = "typer-slim" },+ { name = "typing-extensions" },+ { name = "typing-inspection" },+ { name = "tzdata" },+ { name = "urllib3" },+ { name = "uvicorn" },+ { name = "virtualenv" },+ { name = "websocket-client" },+ { name = "websockets" },+ { name = "yarl" },+ { name = "zipp" },+]++[package.metadata]+requires-dist = [+ { name = "aiofiles", specifier = "==25.1.0" },+ { name = "aiohappyeyeballs", specifier = "==2.6.1" },+ { name = "aiohttp", specifier = "==3.13.3" },+ { name = "aiosignal", specifier = "==1.4.0" },+ { name = "annotated-doc", specifier = "==0.0.4" },+ { name = "annotated-types", specifier = "==0.7.0" },+ { name = "anyio", specifier = "==4.12.1" },+ { name = "attrs", specifier = "==25.4.0" },+ { name = "authlib", specifier = "==1.6.7" },+ { name = "beartype", specifier = "==0.22.9" },+ { name = "cacheout", specifier = "==0.16.0" },+ { name = "cachetools", specifier = "==7.0.1" },+ { name = "certifi", specifier = "==2026.1.4" },+ { name = "cffi", specifier = "==2.0.0" },+ { name = "cfgv", specifier = "==3.5.0" },+ { name = "charset-normalizer", specifier = "==3.4.4" },+ { name = "click", specifier = "==8.3.1" },+ { name = "cloudpickle", specifier = "==3.1.2" },+ { name = "codecov", specifier = "==2.1.13" },+ { name = "colorama", specifier = "==0.4.6" },+ { name = "coverage", specifier = "==7.13.4" },+ { name = "croniter", specifier = "==6.0.0" },+ { name = "cryptography", specifier = "==46.0.5" },+ { name = "cyclopts", specifier = "==4.5.2" },+ { name = "dashscope", specifier = "==1.25.12" },+ { name = "diskcache", specifier = "==5.6.3" },+ { name = "distlib", specifier = "==0.4.0" },+ { name = "distro", specifier = "==1.9.0" },+ { name = "dnspython", specifier = "==2.8.0" },+ { name = "docstring-parser", specifier = "==0.17.0" },+ { name = "docutils", specifier = "==0.22.4" },+ { name = "docx2txt", specifier = "==0.9" },+ { name = "email-validator", specifier = "==2.3.0" },+ { name = "exceptiongroup", specifier = "==1.3.1" },+ { name = "fakeredis", specifier = "==2.33.0" },+ { name = "fastmcp", specifier = "==2.14.5" },+ { name = "filelock", specifier = "==3.20.3" },+ { name = "frozenlist", specifier = "==1.8.0" },+ { name = "fsspec", specifier = "==2026.2.0" },+ { name = "greenlet", specifier = "==3.3.1" },+ { name = "grpcio", specifier = "==1.78.0" },+ { name = "h11", specifier = "==0.16.0" },+ { name = "hf-xet", specifier = "==1.2.0" },+ { name = "httpcore", specifier = "==1.0.9" },+ { name = "httpx", specifier = "==0.28.1" },+ { name = "httpx-sse", specifier = "==0.4.3" },+ { name = "huggingface-hub", specifier = "==1.4.1" },+ { name = "identify", specifier = "==2.6.16" },+ { name = "idna", specifier = "==3.11" },+ { name = "importlib-metadata", specifier = "==8.7.1" },+ { name = "iniconfig", specifier = "==2.3.0" },+ { name = "jaraco-classes", specifier = "==3.4.0" },+ { name = "jaraco-context", specifier = "==6.1.0" },+ { name = "jaraco-functools", specifier = "==4.4.0" },+ { name = "jiter", specifier = "==0.13.0" },+ { name = "json-repair", specifier = "==0.57.1" },+ { name = "jsonref", specifier = "==1.1.0" },+ { name = "jsonschema", specifier = "==4.26.0" },+ { name = "jsonschema-path", specifier = "==0.3.4" },+ { name = "jsonschema-specifications", specifier = "==2025.9.1" },+ { name = "keyring", specifier = "==25.7.0" },+ { name = "lupa", specifier = "==2.6" },+ { name = "lxml", specifier = "==6.0.2" },+ { name = "markdown-it-py", specifier = "==4.0.0" },+ { name = "mcp", specifier = "==1.26.0" },+ { name = "mdurl", specifier = "==0.1.2" },+ { name = "mermaid-py", specifier = "==0.8.3" },+ { name = "more-itertools", specifier = "==10.8.0" },+ { name = "multidict", specifier = "==6.7.1" },+ { name = "nodeenv", specifier = "==1.10.0" },+ { name = "numpy", specifier = "==2.4.2" },+ { name = "oauthlib", specifier = "==3.3.1" },+ { name = "openai", specifier = "==2.20.0" },+ { name = "openapi-pydantic", specifier = "==0.5.1" },+ { name = "openjiuwen", specifier = "==0.1.6" },+ { name = "opentelemetry-api", specifier = "==1.39.1" },+ { name = "orjson", specifier = "==3.11.7" },+ { name = "packaging", specifier = "==26.0" },+ { name = "pandas", specifier = "==3.0.0" },+ { name = "pathable", specifier = "==0.4.4" },+ { name = "pathvalidate", specifier = "==3.3.1" },+ { name = "pdfminer-six", specifier = "==20251230" },+ { name = "pdfplumber", specifier = "==0.11.9" },+ { name = "pillow", specifier = "==12.1.1" },+ { name = "platformdirs", specifier = "==4.5.1" },+ { name = "pluggy", specifier = "==1.6.0" },+ { name = "portalocker", specifier = "==3.2.0" },+ { name = "pre-commit", specifier = "==4.5.1" },+ { name = "prometheus-client", specifier = "==0.24.1" },+ { name = "propcache", specifier = "==0.4.1" },+ { name = "protobuf", specifier = "==6.33.5" },+ { name = "py-key-value-aio", specifier = "==0.3.0" },+ { name = "py-key-value-shared", specifier = "==0.3.0" },+ { name = "pycparser", specifier = "==3.0" },+ { name = "pycryptodome", specifier = "==3.23.0" },+ { name = "pydantic", specifier = "==2.12.5" },+ { name = "pydantic-core", specifier = "==2.41.5" },+ { name = "pydantic-settings", specifier = "==2.12.0" },+ { name = "pydocket", specifier = "==0.17.7" },+ { name = "pygments", specifier = "==2.19.2" },+ { name = "pyjwt", specifier = "==2.11.0" },+ { name = "pymilvus", specifier = "==2.6.9" },+ { name = "pypdfium2", specifier = "==5.4.0" },+ { name = "pyperclip", specifier = "==1.11.0" },+ { name = "pysbd", specifier = "==0.3.4" },+ { name = "pytest", specifier = "==9.0.2" },+ { name = "pytest-cov", specifier = "==7.0.0" },+ { name = "python-dateutil", specifier = "==2.9.0.post0" },+ { name = "python-docx", specifier = "==1.2.0" },+ { name = "python-dotenv", specifier = "==1.2.1" },+ { name = "python-json-logger", specifier = "==4.0.0" },+ { name = "python-multipart", specifier = "==0.0.22" },+ { name = "pytz", specifier = "==2025.2" },+ { name = "pywin32", specifier = "==311" },+ { name = "pywin32-ctypes", specifier = "==0.2.3" },+ { name = "pyyaml", specifier = "==6.0.3" },+ { name = "redis", specifier = "==7.1.1" },+ { name = "referencing", specifier = "==0.36.2" },+ { name = "regex", specifier = "==2026.1.15" },+ { name = "requests", specifier = "==2.32.5" },+ { name = "rich", specifier = "==14.3.2" },+ { name = "rich-rst", specifier = "==1.3.2" },+ { name = "rpds-py", specifier = "==0.30.0" },+ { name = "ruff", specifier = "==0.15.0" },+ { name = "safetensors", specifier = "==0.7.0" },+ { name = "setuptools", specifier = "==82.0.0" },+ { name = "shellingham", specifier = "==1.5.4" },+ { name = "six", specifier = "==1.17.0" },+ { name = "sniffio", specifier = "==1.3.1" },+ { name = "sortedcontainers", specifier = "==2.4.0" },+ { name = "sqlalchemy", specifier = "==2.0.46" },+ { name = "sse-starlette", specifier = "==3.2.0" },+ { name = "starlette", specifier = "==0.52.1" },+ { name = "tiktoken", specifier = "==0.12.0" },+ { name = "tokenizers", specifier = "==0.22.2" },+ { name = "tqdm", specifier = "==4.67.3" },+ { name = "transformers", specifier = "==5.1.0" },+ { name = "typer", specifier = "==0.23.0" },+ { name = "typer-slim", specifier = "==0.23.0" },+ { name = "typing-extensions", specifier = "==4.15.0" },+ { name = "typing-inspection", specifier = "==0.4.2" },+ { name = "tzdata", specifier = "==2025.3" },+ { name = "urllib3", specifier = "==2.6.3" },+ { name = "uvicorn", specifier = "==0.40.0" },+ { name = "virtualenv", specifier = "==20.36.1" },+ { name = "websocket-client", specifier = "==1.9.0" },+ { name = "websockets", specifier = "==16.0" },+ { name = "yarl", specifier = "==1.22.0" },+ { name = "zipp", specifier = "==3.23.0" },+]++[[package]]+name = "cacheout"+version = "0.16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d1/60/ed4c4b27b2131a0b2cc461789be2cf06866644ca462cb34a5d8fca114c15/cacheout-0.16.0.tar.gz", hash = "sha256:ee264897cbaa089ae5f406da11952697d99fa7f3583cfab69fe8a00ff8e1952d", size = 42050, upload-time = "2023-12-22T17:44:33.29Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/72/14/a89bb55107b8a9b586c8878f47d0b7750c3688c209f05f915e70de74880d/cacheout-0.16.0-py3-none-any.whl", hash = "sha256:1a52d9aa8b1e9720d8453b061348f15795578231f9ec4ad376fec49e717d0ed8", size = 21837, upload-time = "2023-12-22T17:44:31.556Z" },+]++[[package]]+name = "cachetools"+version = "7.0.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d4/07/56595285564e90777d758ebd383d6b0b971b87729bbe2184a849932a3736/cachetools-7.0.1.tar.gz", hash = "sha256:e31e579d2c5b6e2944177a0397150d312888ddf4e16e12f1016068f0c03b8341", size = 36126, upload-time = "2026-02-10T22:24:05.03Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ed/9e/5faefbf9db1db466d633735faceda1f94aa99ce506ac450d232536266b32/cachetools-7.0.1-py3-none-any.whl", hash = "sha256:8f086515c254d5664ae2146d14fc7f65c9a4bce75152eb247e5a9c5e6d7b2ecf", size = 13484, upload-time = "2026-02-10T22:24:03.741Z" },+]++[[package]]+name = "certifi"+version = "2026.1.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e0/2d/a891ca51311197f6ad14a7ef42e2399f36cf2f9bd44752b3dc4eab60fdc5/certifi-2026.1.4.tar.gz", hash = "sha256:ac726dd470482006e014ad384921ed6438c457018f4b3d204aea4281258b2120", size = 154268, upload-time = "2026-01-04T02:42:41.825Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e6/ad/3cc14f097111b4de0040c83a525973216457bbeeb63739ef1ed275c1c021/certifi-2026.1.4-py3-none-any.whl", hash = "sha256:9943707519e4add1115f44c2bc244f782c0249876bf51b6599fee1ffbedd685c", size = 152900, upload-time = "2026-01-04T02:42:40.15Z" },+]++[[package]]+name = "cffi"+version = "2.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pycparser", marker = "implementation_name != 'PyPy'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/eb/56/b1ba7935a17738ae8453301356628e8147c79dbb825bcbc73dc7401f9846/cffi-2.0.0.tar.gz", hash = "sha256:44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529", size = 523588, upload-time = "2025-09-08T23:24:04.541Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4b/8d/a0a47a0c9e413a658623d014e91e74a50cdd2c423f7ccfd44086ef767f90/cffi-2.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:00bdf7acc5f795150faa6957054fbbca2439db2f775ce831222b66f192f03beb", size = 185230, upload-time = "2025-09-08T23:23:00.879Z" },+ { url = "https://files.pythonhosted.org/packages/4a/d2/a6c0296814556c68ee32009d9c2ad4f85f2707cdecfd7727951ec228005d/cffi-2.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:45d5e886156860dc35862657e1494b9bae8dfa63bf56796f2fb56e1679fc0bca", size = 181043, upload-time = "2025-09-08T23:23:02.231Z" },+ { url = "https://files.pythonhosted.org/packages/b0/1e/d22cc63332bd59b06481ceaac49d6c507598642e2230f201649058a7e704/cffi-2.0.0-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:07b271772c100085dd28b74fa0cd81c8fb1a3ba18b21e03d7c27f3436a10606b", size = 212446, upload-time = "2025-09-08T23:23:03.472Z" },+ { url = "https://files.pythonhosted.org/packages/a9/f5/a2c23eb03b61a0b8747f211eb716446c826ad66818ddc7810cc2cc19b3f2/cffi-2.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d48a880098c96020b02d5a1f7d9251308510ce8858940e6fa99ece33f610838b", size = 220101, upload-time = "2025-09-08T23:23:04.792Z" },+ { url = "https://files.pythonhosted.org/packages/f2/7f/e6647792fc5850d634695bc0e6ab4111ae88e89981d35ac269956605feba/cffi-2.0.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:f93fd8e5c8c0a4aa1f424d6173f14a892044054871c771f8566e4008eaa359d2", size = 207948, upload-time = "2025-09-08T23:23:06.127Z" },+ { url = "https://files.pythonhosted.org/packages/cb/1e/a5a1bd6f1fb30f22573f76533de12a00bf274abcdc55c8edab639078abb6/cffi-2.0.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:dd4f05f54a52fb558f1ba9f528228066954fee3ebe629fc1660d874d040ae5a3", size = 206422, upload-time = "2025-09-08T23:23:07.753Z" },+ { url = "https://files.pythonhosted.org/packages/98/df/0a1755e750013a2081e863e7cd37e0cdd02664372c754e5560099eb7aa44/cffi-2.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c8d3b5532fc71b7a77c09192b4a5a200ea992702734a2e9279a37f2478236f26", size = 219499, upload-time = "2025-09-08T23:23:09.648Z" },+ { url = "https://files.pythonhosted.org/packages/50/e1/a969e687fcf9ea58e6e2a928ad5e2dd88cc12f6f0ab477e9971f2309b57c/cffi-2.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d9b29c1f0ae438d5ee9acb31cadee00a58c46cc9c0b2f9038c6b0b3470877a8c", size = 222928, upload-time = "2025-09-08T23:23:10.928Z" },+ { url = "https://files.pythonhosted.org/packages/36/54/0362578dd2c9e557a28ac77698ed67323ed5b9775ca9d3fe73fe191bb5d8/cffi-2.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6d50360be4546678fc1b79ffe7a66265e28667840010348dd69a314145807a1b", size = 221302, upload-time = "2025-09-08T23:23:12.42Z" },+ { url = "https://files.pythonhosted.org/packages/eb/6d/bf9bda840d5f1dfdbf0feca87fbdb64a918a69bca42cfa0ba7b137c48cb8/cffi-2.0.0-cp313-cp313-win32.whl", hash = "sha256:74a03b9698e198d47562765773b4a8309919089150a0bb17d829ad7b44b60d27", size = 172909, upload-time = "2025-09-08T23:23:14.32Z" },+ { url = "https://files.pythonhosted.org/packages/37/18/6519e1ee6f5a1e579e04b9ddb6f1676c17368a7aba48299c3759bbc3c8b3/cffi-2.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:19f705ada2530c1167abacb171925dd886168931e0a7b78f5bffcae5c6b5be75", size = 183402, upload-time = "2025-09-08T23:23:15.535Z" },+ { url = "https://files.pythonhosted.org/packages/cb/0e/02ceeec9a7d6ee63bb596121c2c8e9b3a9e150936f4fbef6ca1943e6137c/cffi-2.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:256f80b80ca3853f90c21b23ee78cd008713787b1b1e93eae9f3d6a7134abd91", size = 177780, upload-time = "2025-09-08T23:23:16.761Z" },+ { url = "https://files.pythonhosted.org/packages/92/c4/3ce07396253a83250ee98564f8d7e9789fab8e58858f35d07a9a2c78de9f/cffi-2.0.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:fc33c5141b55ed366cfaad382df24fe7dcbc686de5be719b207bb248e3053dc5", size = 185320, upload-time = "2025-09-08T23:23:18.087Z" },+ { url = "https://files.pythonhosted.org/packages/59/dd/27e9fa567a23931c838c6b02d0764611c62290062a6d4e8ff7863daf9730/cffi-2.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c654de545946e0db659b3400168c9ad31b5d29593291482c43e3564effbcee13", size = 181487, upload-time = "2025-09-08T23:23:19.622Z" },+ { url = "https://files.pythonhosted.org/packages/d6/43/0e822876f87ea8a4ef95442c3d766a06a51fc5298823f884ef87aaad168c/cffi-2.0.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:24b6f81f1983e6df8db3adc38562c83f7d4a0c36162885ec7f7b77c7dcbec97b", size = 220049, upload-time = "2025-09-08T23:23:20.853Z" },+ { url = "https://files.pythonhosted.org/packages/b4/89/76799151d9c2d2d1ead63c2429da9ea9d7aac304603de0c6e8764e6e8e70/cffi-2.0.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:12873ca6cb9b0f0d3a0da705d6086fe911591737a59f28b7936bdfed27c0d47c", size = 207793, upload-time = "2025-09-08T23:23:22.08Z" },+ { url = "https://files.pythonhosted.org/packages/bb/dd/3465b14bb9e24ee24cb88c9e3730f6de63111fffe513492bf8c808a3547e/cffi-2.0.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:d9b97165e8aed9272a6bb17c01e3cc5871a594a446ebedc996e2397a1c1ea8ef", size = 206300, upload-time = "2025-09-08T23:23:23.314Z" },+ { url = "https://files.pythonhosted.org/packages/47/d9/d83e293854571c877a92da46fdec39158f8d7e68da75bf73581225d28e90/cffi-2.0.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:afb8db5439b81cf9c9d0c80404b60c3cc9c3add93e114dcae767f1477cb53775", size = 219244, upload-time = "2025-09-08T23:23:24.541Z" },+ { url = "https://files.pythonhosted.org/packages/2b/0f/1f177e3683aead2bb00f7679a16451d302c436b5cbf2505f0ea8146ef59e/cffi-2.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:737fe7d37e1a1bffe70bd5754ea763a62a066dc5913ca57e957824b72a85e205", size = 222828, upload-time = "2025-09-08T23:23:26.143Z" },+ { url = "https://files.pythonhosted.org/packages/c6/0f/cafacebd4b040e3119dcb32fed8bdef8dfe94da653155f9d0b9dc660166e/cffi-2.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:38100abb9d1b1435bc4cc340bb4489635dc2f0da7456590877030c9b3d40b0c1", size = 220926, upload-time = "2025-09-08T23:23:27.873Z" },+ { url = "https://files.pythonhosted.org/packages/3e/aa/df335faa45b395396fcbc03de2dfcab242cd61a9900e914fe682a59170b1/cffi-2.0.0-cp314-cp314-win32.whl", hash = "sha256:087067fa8953339c723661eda6b54bc98c5625757ea62e95eb4898ad5e776e9f", size = 175328, upload-time = "2025-09-08T23:23:44.61Z" },+ { url = "https://files.pythonhosted.org/packages/bb/92/882c2d30831744296ce713f0feb4c1cd30f346ef747b530b5318715cc367/cffi-2.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:203a48d1fb583fc7d78a4c6655692963b860a417c0528492a6bc21f1aaefab25", size = 185650, upload-time = "2025-09-08T23:23:45.848Z" },+ { url = "https://files.pythonhosted.org/packages/9f/2c/98ece204b9d35a7366b5b2c6539c350313ca13932143e79dc133ba757104/cffi-2.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:dbd5c7a25a7cb98f5ca55d258b103a2054f859a46ae11aaf23134f9cc0d356ad", size = 180687, upload-time = "2025-09-08T23:23:47.105Z" },+ { url = "https://files.pythonhosted.org/packages/3e/61/c768e4d548bfa607abcda77423448df8c471f25dbe64fb2ef6d555eae006/cffi-2.0.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:9a67fc9e8eb39039280526379fb3a70023d77caec1852002b4da7e8b270c4dd9", size = 188773, upload-time = "2025-09-08T23:23:29.347Z" },+ { url = "https://files.pythonhosted.org/packages/2c/ea/5f76bce7cf6fcd0ab1a1058b5af899bfbef198bea4d5686da88471ea0336/cffi-2.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7a66c7204d8869299919db4d5069a82f1561581af12b11b3c9f48c584eb8743d", size = 185013, upload-time = "2025-09-08T23:23:30.63Z" },+ { url = "https://files.pythonhosted.org/packages/be/b4/c56878d0d1755cf9caa54ba71e5d049479c52f9e4afc230f06822162ab2f/cffi-2.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7cc09976e8b56f8cebd752f7113ad07752461f48a58cbba644139015ac24954c", size = 221593, upload-time = "2025-09-08T23:23:31.91Z" },+ { url = "https://files.pythonhosted.org/packages/e0/0d/eb704606dfe8033e7128df5e90fee946bbcb64a04fcdaa97321309004000/cffi-2.0.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:92b68146a71df78564e4ef48af17551a5ddd142e5190cdf2c5624d0c3ff5b2e8", size = 209354, upload-time = "2025-09-08T23:23:33.214Z" },+ { url = "https://files.pythonhosted.org/packages/d8/19/3c435d727b368ca475fb8742ab97c9cb13a0de600ce86f62eab7fa3eea60/cffi-2.0.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b1e74d11748e7e98e2f426ab176d4ed720a64412b6a15054378afdb71e0f37dc", size = 208480, upload-time = "2025-09-08T23:23:34.495Z" },+ { url = "https://files.pythonhosted.org/packages/d0/44/681604464ed9541673e486521497406fadcc15b5217c3e326b061696899a/cffi-2.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:28a3a209b96630bca57cce802da70c266eb08c6e97e5afd61a75611ee6c64592", size = 221584, upload-time = "2025-09-08T23:23:36.096Z" },+ { url = "https://files.pythonhosted.org/packages/25/8e/342a504ff018a2825d395d44d63a767dd8ebc927ebda557fecdaca3ac33a/cffi-2.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7553fb2090d71822f02c629afe6042c299edf91ba1bf94951165613553984512", size = 224443, upload-time = "2025-09-08T23:23:37.328Z" },+ { url = "https://files.pythonhosted.org/packages/e1/5e/b666bacbbc60fbf415ba9988324a132c9a7a0448a9a8f125074671c0f2c3/cffi-2.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6c6c373cfc5c83a975506110d17457138c8c63016b563cc9ed6e056a82f13ce4", size = 223437, upload-time = "2025-09-08T23:23:38.945Z" },+ { url = "https://files.pythonhosted.org/packages/a0/1d/ec1a60bd1a10daa292d3cd6bb0b359a81607154fb8165f3ec95fe003b85c/cffi-2.0.0-cp314-cp314t-win32.whl", hash = "sha256:1fc9ea04857caf665289b7a75923f2c6ed559b8298a1b8c49e59f7dd95c8481e", size = 180487, upload-time = "2025-09-08T23:23:40.423Z" },+ { url = "https://files.pythonhosted.org/packages/bf/41/4c1168c74fac325c0c8156f04b6749c8b6a8f405bbf91413ba088359f60d/cffi-2.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d68b6cef7827e8641e8ef16f4494edda8b36104d79773a334beaa1e3521430f6", size = 191726, upload-time = "2025-09-08T23:23:41.742Z" },+ { url = "https://files.pythonhosted.org/packages/ae/3a/dbeec9d1ee0844c679f6bb5d6ad4e9f198b1224f4e7a32825f47f6192b0c/cffi-2.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0a1527a803f0a659de1af2e1fd700213caba79377e27e4693648c2923da066f9", size = 184195, upload-time = "2025-09-08T23:23:43.004Z" },+]++[[package]]+name = "cfgv"+version = "3.5.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/4e/b5/721b8799b04bf9afe054a3899c6cf4e880fcf8563cc71c15610242490a0c/cfgv-3.5.0.tar.gz", hash = "sha256:d5b1034354820651caa73ede66a6294d6e95c1b00acc5e9b098e917404669132", size = 7334, upload-time = "2025-11-19T20:55:51.612Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/db/3c/33bac158f8ab7f89b2e59426d5fe2e4f63f7ed25df84c036890172b412b5/cfgv-3.5.0-py2.py3-none-any.whl", hash = "sha256:a8dc6b26ad22ff227d2634a65cb388215ce6cc96bbcc5cfde7641ae87e8dacc0", size = 7445, upload-time = "2025-11-19T20:55:50.744Z" },+]++[[package]]+name = "charset-normalizer"+version = "3.4.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz", hash = "sha256:94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a", size = 129418, upload-time = "2025-10-14T04:42:32.879Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/97/45/4b3a1239bbacd321068ea6e7ac28875b03ab8bc0aa0966452db17cd36714/charset_normalizer-3.4.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e1f185f86a6f3403aa2420e815904c67b2f9ebc443f045edd0de921108345794", size = 208091, upload-time = "2025-10-14T04:41:13.346Z" },+ { url = "https://files.pythonhosted.org/packages/7d/62/73a6d7450829655a35bb88a88fca7d736f9882a27eacdca2c6d505b57e2e/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b39f987ae8ccdf0d2642338faf2abb1862340facc796048b604ef14919e55ed", size = 147936, upload-time = "2025-10-14T04:41:14.461Z" },+ { url = "https://files.pythonhosted.org/packages/89/c5/adb8c8b3d6625bef6d88b251bbb0d95f8205831b987631ab0c8bb5d937c2/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3162d5d8ce1bb98dd51af660f2121c55d0fa541b46dff7bb9b9f86ea1d87de72", size = 144180, upload-time = "2025-10-14T04:41:15.588Z" },+ { url = "https://files.pythonhosted.org/packages/91/ed/9706e4070682d1cc219050b6048bfd293ccf67b3d4f5a4f39207453d4b99/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:81d5eb2a312700f4ecaa977a8235b634ce853200e828fbadf3a9c50bab278328", size = 161346, upload-time = "2025-10-14T04:41:16.738Z" },+ { url = "https://files.pythonhosted.org/packages/d5/0d/031f0d95e4972901a2f6f09ef055751805ff541511dc1252ba3ca1f80cf5/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5bd2293095d766545ec1a8f612559f6b40abc0eb18bb2f5d1171872d34036ede", size = 158874, upload-time = "2025-10-14T04:41:17.923Z" },+ { url = "https://files.pythonhosted.org/packages/f5/83/6ab5883f57c9c801ce5e5677242328aa45592be8a00644310a008d04f922/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8a8b89589086a25749f471e6a900d3f662d1d3b6e2e59dcecf787b1cc3a1894", size = 153076, upload-time = "2025-10-14T04:41:19.106Z" },+ { url = "https://files.pythonhosted.org/packages/75/1e/5ff781ddf5260e387d6419959ee89ef13878229732732ee73cdae01800f2/charset_normalizer-3.4.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc7637e2f80d8530ee4a78e878bce464f70087ce73cf7c1caf142416923b98f1", size = 150601, upload-time = "2025-10-14T04:41:20.245Z" },+ { url = "https://files.pythonhosted.org/packages/d7/57/71be810965493d3510a6ca79b90c19e48696fb1ff964da319334b12677f0/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f8bf04158c6b607d747e93949aa60618b61312fe647a6369f88ce2ff16043490", size = 150376, upload-time = "2025-10-14T04:41:21.398Z" },+ { url = "https://files.pythonhosted.org/packages/e5/d5/c3d057a78c181d007014feb7e9f2e65905a6c4ef182c0ddf0de2924edd65/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:554af85e960429cf30784dd47447d5125aaa3b99a6f0683589dbd27e2f45da44", size = 144825, upload-time = "2025-10-14T04:41:22.583Z" },+ { url = "https://files.pythonhosted.org/packages/e6/8c/d0406294828d4976f275ffbe66f00266c4b3136b7506941d87c00cab5272/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:74018750915ee7ad843a774364e13a3db91682f26142baddf775342c3f5b1133", size = 162583, upload-time = "2025-10-14T04:41:23.754Z" },+ { url = "https://files.pythonhosted.org/packages/d7/24/e2aa1f18c8f15c4c0e932d9287b8609dd30ad56dbe41d926bd846e22fb8d/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c0463276121fdee9c49b98908b3a89c39be45d86d1dbaa22957e38f6321d4ce3", size = 150366, upload-time = "2025-10-14T04:41:25.27Z" },+ { url = "https://files.pythonhosted.org/packages/e4/5b/1e6160c7739aad1e2df054300cc618b06bf784a7a164b0f238360721ab86/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:362d61fd13843997c1c446760ef36f240cf81d3ebf74ac62652aebaf7838561e", size = 160300, upload-time = "2025-10-14T04:41:26.725Z" },+ { url = "https://files.pythonhosted.org/packages/7a/10/f882167cd207fbdd743e55534d5d9620e095089d176d55cb22d5322f2afd/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a26f18905b8dd5d685d6d07b0cdf98a79f3c7a918906af7cc143ea2e164c8bc", size = 154465, upload-time = "2025-10-14T04:41:28.322Z" },+ { url = "https://files.pythonhosted.org/packages/89/66/c7a9e1b7429be72123441bfdbaf2bc13faab3f90b933f664db506dea5915/charset_normalizer-3.4.4-cp313-cp313-win32.whl", hash = "sha256:9b35f4c90079ff2e2edc5b26c0c77925e5d2d255c42c74fdb70fb49b172726ac", size = 99404, upload-time = "2025-10-14T04:41:29.95Z" },+ { url = "https://files.pythonhosted.org/packages/c4/26/b9924fa27db384bdcd97ab83b4f0a8058d96ad9626ead570674d5e737d90/charset_normalizer-3.4.4-cp313-cp313-win_amd64.whl", hash = "sha256:b435cba5f4f750aa6c0a0d92c541fb79f69a387c91e61f1795227e4ed9cece14", size = 107092, upload-time = "2025-10-14T04:41:31.188Z" },+ { url = "https://files.pythonhosted.org/packages/af/8f/3ed4bfa0c0c72a7ca17f0380cd9e4dd842b09f664e780c13cff1dcf2ef1b/charset_normalizer-3.4.4-cp313-cp313-win_arm64.whl", hash = "sha256:542d2cee80be6f80247095cc36c418f7bddd14f4a6de45af91dfad36d817bba2", size = 100408, upload-time = "2025-10-14T04:41:32.624Z" },+ { url = "https://files.pythonhosted.org/packages/2a/35/7051599bd493e62411d6ede36fd5af83a38f37c4767b92884df7301db25d/charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:da3326d9e65ef63a817ecbcc0df6e94463713b754fe293eaa03da99befb9a5bd", size = 207746, upload-time = "2025-10-14T04:41:33.773Z" },+ { url = "https://files.pythonhosted.org/packages/10/9a/97c8d48ef10d6cd4fcead2415523221624bf58bcf68a802721a6bc807c8f/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8af65f14dc14a79b924524b1e7fffe304517b2bff5a58bf64f30b98bbc5079eb", size = 147889, upload-time = "2025-10-14T04:41:34.897Z" },+ { url = "https://files.pythonhosted.org/packages/10/bf/979224a919a1b606c82bd2c5fa49b5c6d5727aa47b4312bb27b1734f53cd/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74664978bb272435107de04e36db5a9735e78232b85b77d45cfb38f758efd33e", size = 143641, upload-time = "2025-10-14T04:41:36.116Z" },+ { url = "https://files.pythonhosted.org/packages/ba/33/0ad65587441fc730dc7bd90e9716b30b4702dc7b617e6ba4997dc8651495/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:752944c7ffbfdd10c074dc58ec2d5a8a4cd9493b314d367c14d24c17684ddd14", size = 160779, upload-time = "2025-10-14T04:41:37.229Z" },+ { url = "https://files.pythonhosted.org/packages/67/ed/331d6b249259ee71ddea93f6f2f0a56cfebd46938bde6fcc6f7b9a3d0e09/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1f13550535ad8cff21b8d757a3257963e951d96e20ec82ab44bc64aeb62a191", size = 159035, upload-time = "2025-10-14T04:41:38.368Z" },+ { url = "https://files.pythonhosted.org/packages/67/ff/f6b948ca32e4f2a4576aa129d8bed61f2e0543bf9f5f2b7fc3758ed005c9/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ecaae4149d99b1c9e7b88bb03e3221956f68fd6d50be2ef061b2381b61d20838", size = 152542, upload-time = "2025-10-14T04:41:39.862Z" },+ { url = "https://files.pythonhosted.org/packages/16/85/276033dcbcc369eb176594de22728541a925b2632f9716428c851b149e83/charset_normalizer-3.4.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cb6254dc36b47a990e59e1068afacdcd02958bdcce30bb50cc1700a8b9d624a6", size = 149524, upload-time = "2025-10-14T04:41:41.319Z" },+ { url = "https://files.pythonhosted.org/packages/9e/f2/6a2a1f722b6aba37050e626530a46a68f74e63683947a8acff92569f979a/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c8ae8a0f02f57a6e61203a31428fa1d677cbe50c93622b4149d5c0f319c1d19e", size = 150395, upload-time = "2025-10-14T04:41:42.539Z" },+ { url = "https://files.pythonhosted.org/packages/60/bb/2186cb2f2bbaea6338cad15ce23a67f9b0672929744381e28b0592676824/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:47cc91b2f4dd2833fddaedd2893006b0106129d4b94fdb6af1f4ce5a9965577c", size = 143680, upload-time = "2025-10-14T04:41:43.661Z" },+ { url = "https://files.pythonhosted.org/packages/7d/a5/bf6f13b772fbb2a90360eb620d52ed8f796f3c5caee8398c3b2eb7b1c60d/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:82004af6c302b5d3ab2cfc4cc5f29db16123b1a8417f2e25f9066f91d4411090", size = 162045, upload-time = "2025-10-14T04:41:44.821Z" },+ { url = "https://files.pythonhosted.org/packages/df/c5/d1be898bf0dc3ef9030c3825e5d3b83f2c528d207d246cbabe245966808d/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b7d8f6c26245217bd2ad053761201e9f9680f8ce52f0fcd8d0755aeae5b2152", size = 149687, upload-time = "2025-10-14T04:41:46.442Z" },+ { url = "https://files.pythonhosted.org/packages/a5/42/90c1f7b9341eef50c8a1cb3f098ac43b0508413f33affd762855f67a410e/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:799a7a5e4fb2d5898c60b640fd4981d6a25f1c11790935a44ce38c54e985f828", size = 160014, upload-time = "2025-10-14T04:41:47.631Z" },+ { url = "https://files.pythonhosted.org/packages/76/be/4d3ee471e8145d12795ab655ece37baed0929462a86e72372fd25859047c/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:99ae2cffebb06e6c22bdc25801d7b30f503cc87dbd283479e7b606f70aff57ec", size = 154044, upload-time = "2025-10-14T04:41:48.81Z" },+ { url = "https://files.pythonhosted.org/packages/b0/6f/8f7af07237c34a1defe7defc565a9bc1807762f672c0fde711a4b22bf9c0/charset_normalizer-3.4.4-cp314-cp314-win32.whl", hash = "sha256:f9d332f8c2a2fcbffe1378594431458ddbef721c1769d78e2cbc06280d8155f9", size = 99940, upload-time = "2025-10-14T04:41:49.946Z" },+ { url = "https://files.pythonhosted.org/packages/4b/51/8ade005e5ca5b0d80fb4aff72a3775b325bdc3d27408c8113811a7cbe640/charset_normalizer-3.4.4-cp314-cp314-win_amd64.whl", hash = "sha256:8a6562c3700cce886c5be75ade4a5db4214fda19fede41d9792d100288d8f94c", size = 107104, upload-time = "2025-10-14T04:41:51.051Z" },+ { url = "https://files.pythonhosted.org/packages/da/5f/6b8f83a55bb8278772c5ae54a577f3099025f9ade59d0136ac24a0df4bde/charset_normalizer-3.4.4-cp314-cp314-win_arm64.whl", hash = "sha256:de00632ca48df9daf77a2c65a484531649261ec9f25489917f09e455cb09ddb2", size = 100743, upload-time = "2025-10-14T04:41:52.122Z" },+ { url = "https://files.pythonhosted.org/packages/0a/4c/925909008ed5a988ccbb72dcc897407e5d6d3bd72410d69e051fc0c14647/charset_normalizer-3.4.4-py3-none-any.whl", hash = "sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f", size = 53402, upload-time = "2025-10-14T04:42:31.76Z" },+]++[[package]]+name = "click"+version = "8.3.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065, upload-time = "2025-11-15T20:45:42.706Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274, upload-time = "2025-11-15T20:45:41.139Z" },+]++[[package]]+name = "cloudpickle"+version = "3.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/27/fb/576f067976d320f5f0114a8d9fa1215425441bb35627b1993e5afd8111e5/cloudpickle-3.1.2.tar.gz", hash = "sha256:7fda9eb655c9c230dab534f1983763de5835249750e85fbcef43aaa30a9a2414", size = 22330, upload-time = "2025-11-03T09:25:26.604Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/88/39/799be3f2f0f38cc727ee3b4f1445fe6d5e4133064ec2e4115069418a5bb6/cloudpickle-3.1.2-py3-none-any.whl", hash = "sha256:9acb47f6afd73f60dc1df93bb801b472f05ff42fa6c84167d25cb206be1fbf4a", size = 22228, upload-time = "2025-11-03T09:25:25.534Z" },+]++[[package]]+name = "codecov"+version = "2.1.13"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "coverage" },+ { name = "requests" },+]+sdist = { url = "https://files.pythonhosted.org/packages/2c/bb/594b26d2c85616be6195a64289c578662678afa4910cef2d3ce8417cf73e/codecov-2.1.13.tar.gz", hash = "sha256:2362b685633caeaf45b9951a9b76ce359cd3581dd515b430c6c3f5dfb4d92a8c", size = 21416, upload-time = "2023-04-17T23:11:39.779Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/af/02/18785edcdf6266cdd6c6dc7635f1cbeefd9a5b4c3bb8aff8bd681e9dd095/codecov-2.1.13-py2.py3-none-any.whl", hash = "sha256:c2ca5e51bba9ebb43644c43d0690148a55086f7f5e6fd36170858fa4206744d5", size = 16512, upload-time = "2023-04-17T23:11:37.344Z" },+]++[[package]]+name = "colorama"+version = "0.4.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },+]++[[package]]+name = "coverage"+version = "7.13.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/24/56/95b7e30fa389756cb56630faa728da46a27b8c6eb46f9d557c68fff12b65/coverage-7.13.4.tar.gz", hash = "sha256:e5c8f6ed1e61a8b2dcdf31eb0b9bbf0130750ca79c1c49eb898e2ad86f5ccc91", size = 827239, upload-time = "2026-02-09T12:59:03.86Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/db/23/aad45061a31677d68e47499197a131eea55da4875d16c1f42021ab963503/coverage-7.13.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b66a2da594b6068b48b2692f043f35d4d3693fb639d5ea8b39533c2ad9ac3ab9", size = 219474, upload-time = "2026-02-09T12:57:19.332Z" },+ { url = "https://files.pythonhosted.org/packages/a5/70/9b8b67a0945f3dfec1fd896c5cefb7c19d5a3a6d74630b99a895170999ae/coverage-7.13.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:3599eb3992d814d23b35c536c28df1a882caa950f8f507cef23d1cbf334995ac", size = 219844, upload-time = "2026-02-09T12:57:20.66Z" },+ { url = "https://files.pythonhosted.org/packages/97/fd/7e859f8fab324cef6c4ad7cff156ca7c489fef9179d5749b0c8d321281c2/coverage-7.13.4-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:93550784d9281e374fb5a12bf1324cc8a963fd63b2d2f223503ef0fd4aa339ea", size = 250832, upload-time = "2026-02-09T12:57:22.007Z" },+ { url = "https://files.pythonhosted.org/packages/e4/dc/b2442d10020c2f52617828862d8b6ee337859cd8f3a1f13d607dddda9cf7/coverage-7.13.4-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b720ce6a88a2755f7c697c23268ddc47a571b88052e6b155224347389fdf6a3b", size = 253434, upload-time = "2026-02-09T12:57:23.339Z" },+ { url = "https://files.pythonhosted.org/packages/5a/88/6728a7ad17428b18d836540630487231f5470fb82454871149502f5e5aa2/coverage-7.13.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7b322db1284a2ed3aa28ffd8ebe3db91c929b7a333c0820abec3d838ef5b3525", size = 254676, upload-time = "2026-02-09T12:57:24.774Z" },+ { url = "https://files.pythonhosted.org/packages/7c/bc/21244b1b8cedf0dff0a2b53b208015fe798d5f2a8d5348dbfece04224fff/coverage-7.13.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f4594c67d8a7c89cf922d9df0438c7c7bb022ad506eddb0fdb2863359ff78242", size = 256807, upload-time = "2026-02-09T12:57:26.125Z" },+ { url = "https://files.pythonhosted.org/packages/97/a0/ddba7ed3251cff51006737a727d84e05b61517d1784a9988a846ba508877/coverage-7.13.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:53d133df809c743eb8bce33b24bcababb371f4441340578cd406e084d94a6148", size = 251058, upload-time = "2026-02-09T12:57:27.614Z" },+ { url = "https://files.pythonhosted.org/packages/9b/55/e289addf7ff54d3a540526f33751951bf0878f3809b47f6dfb3def69c6f7/coverage-7.13.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:76451d1978b95ba6507a039090ba076105c87cc76fc3efd5d35d72093964d49a", size = 252805, upload-time = "2026-02-09T12:57:29.066Z" },+ { url = "https://files.pythonhosted.org/packages/13/4e/cc276b1fa4a59be56d96f1dabddbdc30f4ba22e3b1cd42504c37b3313255/coverage-7.13.4-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:7f57b33491e281e962021de110b451ab8a24182589be17e12a22c79047935e23", size = 250766, upload-time = "2026-02-09T12:57:30.522Z" },+ { url = "https://files.pythonhosted.org/packages/94/44/1093b8f93018f8b41a8cf29636c9292502f05e4a113d4d107d14a3acd044/coverage-7.13.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1731dc33dc276dafc410a885cbf5992f1ff171393e48a21453b78727d090de80", size = 254923, upload-time = "2026-02-09T12:57:31.946Z" },+ { url = "https://files.pythonhosted.org/packages/8b/55/ea2796da2d42257f37dbea1aab239ba9263b31bd91d5527cdd6db5efe174/coverage-7.13.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:bd60d4fe2f6fa7dff9223ca1bbc9f05d2b6697bc5961072e5d3b952d46e1b1ea", size = 250591, upload-time = "2026-02-09T12:57:33.842Z" },+ { url = "https://files.pythonhosted.org/packages/d4/fa/7c4bb72aacf8af5020675aa633e59c1fbe296d22aed191b6a5b711eb2bc7/coverage-7.13.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9181a3ccead280b828fae232df12b16652702b49d41e99d657f46cc7b1f6ec7a", size = 252364, upload-time = "2026-02-09T12:57:35.743Z" },+ { url = "https://files.pythonhosted.org/packages/5c/38/a8d2ec0146479c20bbaa7181b5b455a0c41101eed57f10dd19a78ab44c80/coverage-7.13.4-cp313-cp313-win32.whl", hash = "sha256:f53d492307962561ac7de4cd1de3e363589b000ab69617c6156a16ba7237998d", size = 222010, upload-time = "2026-02-09T12:57:37.25Z" },+ { url = "https://files.pythonhosted.org/packages/e2/0c/dbfafbe90a185943dcfbc766fe0e1909f658811492d79b741523a414a6cc/coverage-7.13.4-cp313-cp313-win_amd64.whl", hash = "sha256:e6f70dec1cc557e52df5306d051ef56003f74d56e9c4dd7ddb07e07ef32a84dd", size = 222818, upload-time = "2026-02-09T12:57:38.734Z" },+ { url = "https://files.pythonhosted.org/packages/04/d1/934918a138c932c90d78301f45f677fb05c39a3112b96fd2c8e60503cdc7/coverage-7.13.4-cp313-cp313-win_arm64.whl", hash = "sha256:fb07dc5da7e849e2ad31a5d74e9bece81f30ecf5a42909d0a695f8bd1874d6af", size = 221438, upload-time = "2026-02-09T12:57:40.223Z" },+ { url = "https://files.pythonhosted.org/packages/52/57/ee93ced533bcb3e6df961c0c6e42da2fc6addae53fb95b94a89b1e33ebd7/coverage-7.13.4-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:40d74da8e6c4b9ac18b15331c4b5ebc35a17069410cad462ad4f40dcd2d50c0d", size = 220165, upload-time = "2026-02-09T12:57:41.639Z" },+ { url = "https://files.pythonhosted.org/packages/c5/e0/969fc285a6fbdda49d91af278488d904dcd7651b2693872f0ff94e40e84a/coverage-7.13.4-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4223b4230a376138939a9173f1bdd6521994f2aff8047fae100d6d94d50c5a12", size = 220516, upload-time = "2026-02-09T12:57:44.215Z" },+ { url = "https://files.pythonhosted.org/packages/b1/b8/9531944e16267e2735a30a9641ff49671f07e8138ecf1ca13db9fd2560c7/coverage-7.13.4-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1d4be36a5114c499f9f1f9195e95ebf979460dbe2d88e6816ea202010ba1c34b", size = 261804, upload-time = "2026-02-09T12:57:45.989Z" },+ { url = "https://files.pythonhosted.org/packages/8a/f3/e63df6d500314a2a60390d1989240d5f27318a7a68fa30ad3806e2a9323e/coverage-7.13.4-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:200dea7d1e8095cc6e98cdabe3fd1d21ab17d3cee6dab00cadbb2fe35d9c15b9", size = 263885, upload-time = "2026-02-09T12:57:47.42Z" },+ { url = "https://files.pythonhosted.org/packages/f3/67/7654810de580e14b37670b60a09c599fa348e48312db5b216d730857ffe6/coverage-7.13.4-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b8eb931ee8e6d8243e253e5ed7336deea6904369d2fd8ae6e43f68abbf167092", size = 266308, upload-time = "2026-02-09T12:57:49.345Z" },+ { url = "https://files.pythonhosted.org/packages/37/6f/39d41eca0eab3cc82115953ad41c4e77935286c930e8fad15eaed1389d83/coverage-7.13.4-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:75eab1ebe4f2f64d9509b984f9314d4aa788540368218b858dad56dc8f3e5eb9", size = 267452, upload-time = "2026-02-09T12:57:50.811Z" },+ { url = "https://files.pythonhosted.org/packages/50/6d/39c0fbb8fc5cd4d2090811e553c2108cf5112e882f82505ee7495349a6bf/coverage-7.13.4-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c35eb28c1d085eb7d8c9b3296567a1bebe03ce72962e932431b9a61f28facf26", size = 261057, upload-time = "2026-02-09T12:57:52.447Z" },+ { url = "https://files.pythonhosted.org/packages/a4/a2/60010c669df5fa603bb5a97fb75407e191a846510da70ac657eb696b7fce/coverage-7.13.4-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:eb88b316ec33760714a4720feb2816a3a59180fd58c1985012054fa7aebee4c2", size = 263875, upload-time = "2026-02-09T12:57:53.938Z" },+ { url = "https://files.pythonhosted.org/packages/3e/d9/63b22a6bdbd17f1f96e9ed58604c2a6b0e72a9133e37d663bef185877cf6/coverage-7.13.4-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:7d41eead3cc673cbd38a4417deb7fd0b4ca26954ff7dc6078e33f6ff97bed940", size = 261500, upload-time = "2026-02-09T12:57:56.012Z" },+ { url = "https://files.pythonhosted.org/packages/70/bf/69f86ba1ad85bc3ad240e4c0e57a2e620fbc0e1645a47b5c62f0e941ad7f/coverage-7.13.4-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:fb26a934946a6afe0e326aebe0730cdff393a8bc0bbb65a2f41e30feddca399c", size = 265212, upload-time = "2026-02-09T12:57:57.5Z" },+ { url = "https://files.pythonhosted.org/packages/ae/f2/5f65a278a8c2148731831574c73e42f57204243d33bedaaf18fa79c5958f/coverage-7.13.4-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:dae88bc0fc77edaa65c14be099bd57ee140cf507e6bfdeea7938457ab387efb0", size = 260398, upload-time = "2026-02-09T12:57:59.027Z" },+ { url = "https://files.pythonhosted.org/packages/ef/80/6e8280a350ee9fea92f14b8357448a242dcaa243cb2c72ab0ca591f66c8c/coverage-7.13.4-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:845f352911777a8e722bfce168958214951e07e47e5d5d9744109fa5fe77f79b", size = 262584, upload-time = "2026-02-09T12:58:01.129Z" },+ { url = "https://files.pythonhosted.org/packages/22/63/01ff182fc95f260b539590fb12c11ad3e21332c15f9799cb5e2386f71d9f/coverage-7.13.4-cp313-cp313t-win32.whl", hash = "sha256:2fa8d5f8de70688a28240de9e139fa16b153cc3cbb01c5f16d88d6505ebdadf9", size = 222688, upload-time = "2026-02-09T12:58:02.736Z" },+ { url = "https://files.pythonhosted.org/packages/a9/43/89de4ef5d3cd53b886afa114065f7e9d3707bdb3e5efae13535b46ae483d/coverage-7.13.4-cp313-cp313t-win_amd64.whl", hash = "sha256:9351229c8c8407645840edcc277f4a2d44814d1bc34a2128c11c2a031d45a5dd", size = 223746, upload-time = "2026-02-09T12:58:05.362Z" },+ { url = "https://files.pythonhosted.org/packages/35/39/7cf0aa9a10d470a5309b38b289b9bb07ddeac5d61af9b664fe9775a4cb3e/coverage-7.13.4-cp313-cp313t-win_arm64.whl", hash = "sha256:30b8d0512f2dc8c8747557e8fb459d6176a2c9e5731e2b74d311c03b78451997", size = 222003, upload-time = "2026-02-09T12:58:06.952Z" },+ { url = "https://files.pythonhosted.org/packages/92/11/a9cf762bb83386467737d32187756a42094927150c3e107df4cb078e8590/coverage-7.13.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:300deaee342f90696ed186e3a00c71b5b3d27bffe9e827677954f4ee56969601", size = 219522, upload-time = "2026-02-09T12:58:08.623Z" },+ { url = "https://files.pythonhosted.org/packages/d3/28/56e6d892b7b052236d67c95f1936b6a7cf7c3e2634bf27610b8cbd7f9c60/coverage-7.13.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:29e3220258d682b6226a9b0925bc563ed9a1ebcff3cad30f043eceea7eaf2689", size = 219855, upload-time = "2026-02-09T12:58:10.176Z" },+ { url = "https://files.pythonhosted.org/packages/e5/69/233459ee9eb0c0d10fcc2fe425a029b3fa5ce0f040c966ebce851d030c70/coverage-7.13.4-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:391ee8f19bef69210978363ca930f7328081c6a0152f1166c91f0b5fdd2a773c", size = 250887, upload-time = "2026-02-09T12:58:12.503Z" },+ { url = "https://files.pythonhosted.org/packages/06/90/2cdab0974b9b5bbc1623f7876b73603aecac11b8d95b85b5b86b32de5eab/coverage-7.13.4-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:0dd7ab8278f0d58a0128ba2fca25824321f05d059c1441800e934ff2efa52129", size = 253396, upload-time = "2026-02-09T12:58:14.615Z" },+ { url = "https://files.pythonhosted.org/packages/ac/15/ea4da0f85bf7d7b27635039e649e99deb8173fe551096ea15017f7053537/coverage-7.13.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:78cdf0d578b15148b009ccf18c686aa4f719d887e76e6b40c38ffb61d264a552", size = 254745, upload-time = "2026-02-09T12:58:16.162Z" },+ { url = "https://files.pythonhosted.org/packages/99/11/bb356e86920c655ca4d61daee4e2bbc7258f0a37de0be32d233b561134ff/coverage-7.13.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:48685fee12c2eb3b27c62f2658e7ea21e9c3239cba5a8a242801a0a3f6a8c62a", size = 257055, upload-time = "2026-02-09T12:58:17.892Z" },+ { url = "https://files.pythonhosted.org/packages/c9/0f/9ae1f8cb17029e09da06ca4e28c9e1d5c1c0a511c7074592e37e0836c915/coverage-7.13.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:4e83efc079eb39480e6346a15a1bcb3e9b04759c5202d157e1dd4303cd619356", size = 250911, upload-time = "2026-02-09T12:58:19.495Z" },+ { url = "https://files.pythonhosted.org/packages/89/3a/adfb68558fa815cbc29747b553bc833d2150228f251b127f1ce97e48547c/coverage-7.13.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ecae9737b72408d6a950f7e525f30aca12d4bd8dd95e37342e5beb3a2a8c4f71", size = 252754, upload-time = "2026-02-09T12:58:21.064Z" },+ { url = "https://files.pythonhosted.org/packages/32/b1/540d0c27c4e748bd3cd0bd001076ee416eda993c2bae47a73b7cc9357931/coverage-7.13.4-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ae4578f8528569d3cf303fef2ea569c7f4c4059a38c8667ccef15c6e1f118aa5", size = 250720, upload-time = "2026-02-09T12:58:22.622Z" },+ { url = "https://files.pythonhosted.org/packages/c7/95/383609462b3ffb1fe133014a7c84fc0dd01ed55ac6140fa1093b5af7ebb1/coverage-7.13.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:6fdef321fdfbb30a197efa02d48fcd9981f0d8ad2ae8903ac318adc653f5df98", size = 254994, upload-time = "2026-02-09T12:58:24.548Z" },+ { url = "https://files.pythonhosted.org/packages/f7/ba/1761138e86c81680bfc3c49579d66312865457f9fe405b033184e5793cb3/coverage-7.13.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b0f6ccf3dbe577170bebfce1318707d0e8c3650003cb4b3a9dd744575daa8b5", size = 250531, upload-time = "2026-02-09T12:58:26.271Z" },+ { url = "https://files.pythonhosted.org/packages/f8/8e/05900df797a9c11837ab59c4d6fe94094e029582aab75c3309a93e6fb4e3/coverage-7.13.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:75fcd519f2a5765db3f0e391eb3b7d150cce1a771bf4c9f861aeab86c767a3c0", size = 252189, upload-time = "2026-02-09T12:58:27.807Z" },+ { url = "https://files.pythonhosted.org/packages/00/bd/29c9f2db9ea4ed2738b8a9508c35626eb205d51af4ab7bf56a21a2e49926/coverage-7.13.4-cp314-cp314-win32.whl", hash = "sha256:8e798c266c378da2bd819b0677df41ab46d78065fb2a399558f3f6cae78b2fbb", size = 222258, upload-time = "2026-02-09T12:58:29.441Z" },+ { url = "https://files.pythonhosted.org/packages/a7/4d/1f8e723f6829977410efeb88f73673d794075091c8c7c18848d273dc9d73/coverage-7.13.4-cp314-cp314-win_amd64.whl", hash = "sha256:245e37f664d89861cf2329c9afa2c1fe9e6d4e1a09d872c947e70718aeeac505", size = 223073, upload-time = "2026-02-09T12:58:31.026Z" },+ { url = "https://files.pythonhosted.org/packages/51/5b/84100025be913b44e082ea32abcf1afbf4e872f5120b7a1cab1d331b1e13/coverage-7.13.4-cp314-cp314-win_arm64.whl", hash = "sha256:ad27098a189e5838900ce4c2a99f2fe42a0bf0c2093c17c69b45a71579e8d4a2", size = 221638, upload-time = "2026-02-09T12:58:32.599Z" },+ { url = "https://files.pythonhosted.org/packages/a7/e4/c884a405d6ead1370433dad1e3720216b4f9fd8ef5b64bfd984a2a60a11a/coverage-7.13.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:85480adfb35ffc32d40918aad81b89c69c9cc5661a9b8a81476d3e645321a056", size = 220246, upload-time = "2026-02-09T12:58:34.181Z" },+ { url = "https://files.pythonhosted.org/packages/81/5c/4d7ed8b23b233b0fffbc9dfec53c232be2e695468523242ea9fd30f97ad2/coverage-7.13.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:79be69cf7f3bf9b0deeeb062eab7ac7f36cd4cc4c4dd694bd28921ba4d8596cc", size = 220514, upload-time = "2026-02-09T12:58:35.704Z" },+ { url = "https://files.pythonhosted.org/packages/2f/6f/3284d4203fd2f28edd73034968398cd2d4cb04ab192abc8cff007ea35679/coverage-7.13.4-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:caa421e2684e382c5d8973ac55e4f36bed6821a9bad5c953494de960c74595c9", size = 261877, upload-time = "2026-02-09T12:58:37.864Z" },+ { url = "https://files.pythonhosted.org/packages/09/aa/b672a647bbe1556a85337dc95bfd40d146e9965ead9cc2fe81bde1e5cbce/coverage-7.13.4-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:14375934243ee05f56c45393fe2ce81fe5cc503c07cee2bdf1725fb8bef3ffaf", size = 264004, upload-time = "2026-02-09T12:58:39.492Z" },+ { url = "https://files.pythonhosted.org/packages/79/a1/aa384dbe9181f98bba87dd23dda436f0c6cf2e148aecbb4e50fc51c1a656/coverage-7.13.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:25a41c3104d08edb094d9db0d905ca54d0cd41c928bb6be3c4c799a54753af55", size = 266408, upload-time = "2026-02-09T12:58:41.852Z" },+ { url = "https://files.pythonhosted.org/packages/53/5e/5150bf17b4019bc600799f376bb9606941e55bd5a775dc1e096b6ffea952/coverage-7.13.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6f01afcff62bf9a08fb32b2c1d6e924236c0383c02c790732b6537269e466a72", size = 267544, upload-time = "2026-02-09T12:58:44.093Z" },+ { url = "https://files.pythonhosted.org/packages/e0/ed/f1de5c675987a4a7a672250d2c5c9d73d289dbf13410f00ed7181d8017dd/coverage-7.13.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:eb9078108fbf0bcdde37c3f4779303673c2fa1fe8f7956e68d447d0dd426d38a", size = 260980, upload-time = "2026-02-09T12:58:45.721Z" },+ { url = "https://files.pythonhosted.org/packages/b3/e3/fe758d01850aa172419a6743fe76ba8b92c29d181d4f676ffe2dae2ba631/coverage-7.13.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0e086334e8537ddd17e5f16a344777c1ab8194986ec533711cbe6c41cde841b6", size = 263871, upload-time = "2026-02-09T12:58:47.334Z" },+ { url = "https://files.pythonhosted.org/packages/b6/76/b829869d464115e22499541def9796b25312b8cf235d3bb00b39f1675395/coverage-7.13.4-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:725d985c5ab621268b2edb8e50dfe57633dc69bda071abc470fed55a14935fd3", size = 261472, upload-time = "2026-02-09T12:58:48.995Z" },+ { url = "https://files.pythonhosted.org/packages/14/9e/caedb1679e73e2f6ad240173f55218488bfe043e38da577c4ec977489915/coverage-7.13.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:3c06f0f1337c667b971ca2f975523347e63ec5e500b9aa5882d91931cd3ef750", size = 265210, upload-time = "2026-02-09T12:58:51.178Z" },+ { url = "https://files.pythonhosted.org/packages/3a/10/0dd02cb009b16ede425b49ec344aba13a6ae1dc39600840ea6abcb085ac4/coverage-7.13.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:590c0ed4bf8e85f745e6b805b2e1c457b2e33d5255dd9729743165253bc9ad39", size = 260319, upload-time = "2026-02-09T12:58:53.081Z" },+ { url = "https://files.pythonhosted.org/packages/92/8e/234d2c927af27c6d7a5ffad5bd2cf31634c46a477b4c7adfbfa66baf7ebb/coverage-7.13.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:eb30bf180de3f632cd043322dad5751390e5385108b2807368997d1a92a509d0", size = 262638, upload-time = "2026-02-09T12:58:55.258Z" },+ { url = "https://files.pythonhosted.org/packages/2f/64/e5547c8ff6964e5965c35a480855911b61509cce544f4d442caa759a0702/coverage-7.13.4-cp314-cp314t-win32.whl", hash = "sha256:c4240e7eded42d131a2d2c4dec70374b781b043ddc79a9de4d55ca71f8e98aea", size = 223040, upload-time = "2026-02-09T12:58:56.936Z" },+ { url = "https://files.pythonhosted.org/packages/c7/96/38086d58a181aac86d503dfa9c47eb20715a79c3e3acbdf786e92e5c09a8/coverage-7.13.4-cp314-cp314t-win_amd64.whl", hash = "sha256:4c7d3cc01e7350f2f0f6f7036caaf5673fb56b6998889ccfe9e1c1fe75a9c932", size = 224148, upload-time = "2026-02-09T12:58:58.645Z" },+ { url = "https://files.pythonhosted.org/packages/ce/72/8d10abd3740a0beb98c305e0c3faf454366221c0f37a8bcf8f60020bb65a/coverage-7.13.4-cp314-cp314t-win_arm64.whl", hash = "sha256:23e3f687cf945070d1c90f85db66d11e3025665d8dafa831301a0e0038f3db9b", size = 222172, upload-time = "2026-02-09T12:59:00.396Z" },+ { url = "https://files.pythonhosted.org/packages/0d/4a/331fe2caf6799d591109bb9c08083080f6de90a823695d412a935622abb2/coverage-7.13.4-py3-none-any.whl", hash = "sha256:1af1641e57cf7ba1bd67d677c9abdbcd6cc2ab7da3bca7fa1e2b7e50e65f2ad0", size = 211242, upload-time = "2026-02-09T12:59:02.032Z" },+]++[[package]]+name = "croniter"+version = "6.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "python-dateutil" },+ { name = "pytz" },+]+sdist = { url = "https://files.pythonhosted.org/packages/ad/2f/44d1ae153a0e27be56be43465e5cb39b9650c781e001e7864389deb25090/croniter-6.0.0.tar.gz", hash = "sha256:37c504b313956114a983ece2c2b07790b1f1094fe9d81cc94739214748255577", size = 64481, upload-time = "2024-12-17T17:17:47.32Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/07/4b/290b4c3efd6417a8b0c284896de19b1d5855e6dbdb97d2a35e68fa42de85/croniter-6.0.0-py2.py3-none-any.whl", hash = "sha256:2f878c3856f17896979b2a4379ba1f09c83e374931ea15cc835c5dd2eee9b368", size = 25468, upload-time = "2024-12-17T17:17:45.359Z" },+]++[[package]]+name = "cryptography"+version = "46.0.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cffi", marker = "platform_python_implementation != 'PyPy'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/60/04/ee2a9e8542e4fa2773b81771ff8349ff19cdd56b7258a0cc442639052edb/cryptography-46.0.5.tar.gz", hash = "sha256:abace499247268e3757271b2f1e244b36b06f8515cf27c4d49468fc9eb16e93d", size = 750064, upload-time = "2026-02-10T19:18:38.255Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f7/81/b0bb27f2ba931a65409c6b8a8b358a7f03c0e46eceacddff55f7c84b1f3b/cryptography-46.0.5-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:351695ada9ea9618b3500b490ad54c739860883df6c1f555e088eaf25b1bbaad", size = 7176289, upload-time = "2026-02-10T19:17:08.274Z" },+ { url = "https://files.pythonhosted.org/packages/ff/9e/6b4397a3e3d15123de3b1806ef342522393d50736c13b20ec4c9ea6693a6/cryptography-46.0.5-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c18ff11e86df2e28854939acde2d003f7984f721eba450b56a200ad90eeb0e6b", size = 4275637, upload-time = "2026-02-10T19:17:10.53Z" },+ { url = "https://files.pythonhosted.org/packages/63/e7/471ab61099a3920b0c77852ea3f0ea611c9702f651600397ac567848b897/cryptography-46.0.5-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4d7e3d356b8cd4ea5aff04f129d5f66ebdc7b6f8eae802b93739ed520c47c79b", size = 4424742, upload-time = "2026-02-10T19:17:12.388Z" },+ { url = "https://files.pythonhosted.org/packages/37/53/a18500f270342d66bf7e4d9f091114e31e5ee9e7375a5aba2e85a91e0044/cryptography-46.0.5-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:50bfb6925eff619c9c023b967d5b77a54e04256c4281b0e21336a130cd7fc263", size = 4277528, upload-time = "2026-02-10T19:17:13.853Z" },+ { url = "https://files.pythonhosted.org/packages/22/29/c2e812ebc38c57b40e7c583895e73c8c5adb4d1e4a0cc4c5a4fdab2b1acc/cryptography-46.0.5-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:803812e111e75d1aa73690d2facc295eaefd4439be1023fefc4995eaea2af90d", size = 4947993, upload-time = "2026-02-10T19:17:15.618Z" },+ { url = "https://files.pythonhosted.org/packages/6b/e7/237155ae19a9023de7e30ec64e5d99a9431a567407ac21170a046d22a5a3/cryptography-46.0.5-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:3ee190460e2fbe447175cda91b88b84ae8322a104fc27766ad09428754a618ed", size = 4456855, upload-time = "2026-02-10T19:17:17.221Z" },+ { url = "https://files.pythonhosted.org/packages/2d/87/fc628a7ad85b81206738abbd213b07702bcbdada1dd43f72236ef3cffbb5/cryptography-46.0.5-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:f145bba11b878005c496e93e257c1e88f154d278d2638e6450d17e0f31e558d2", size = 3984635, upload-time = "2026-02-10T19:17:18.792Z" },+ { url = "https://files.pythonhosted.org/packages/84/29/65b55622bde135aedf4565dc509d99b560ee4095e56989e815f8fd2aa910/cryptography-46.0.5-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:e9251e3be159d1020c4030bd2e5f84d6a43fe54b6c19c12f51cde9542a2817b2", size = 4277038, upload-time = "2026-02-10T19:17:20.256Z" },+ { url = "https://files.pythonhosted.org/packages/bc/36/45e76c68d7311432741faf1fbf7fac8a196a0a735ca21f504c75d37e2558/cryptography-46.0.5-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:47fb8a66058b80e509c47118ef8a75d14c455e81ac369050f20ba0d23e77fee0", size = 4912181, upload-time = "2026-02-10T19:17:21.825Z" },+ { url = "https://files.pythonhosted.org/packages/6d/1a/c1ba8fead184d6e3d5afcf03d569acac5ad063f3ac9fb7258af158f7e378/cryptography-46.0.5-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:4c3341037c136030cb46e4b1e17b7418ea4cbd9dd207e4a6f3b2b24e0d4ac731", size = 4456482, upload-time = "2026-02-10T19:17:25.133Z" },+ { url = "https://files.pythonhosted.org/packages/f9/e5/3fb22e37f66827ced3b902cf895e6a6bc1d095b5b26be26bd13c441fdf19/cryptography-46.0.5-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:890bcb4abd5a2d3f852196437129eb3667d62630333aacc13dfd470fad3aaa82", size = 4405497, upload-time = "2026-02-10T19:17:26.66Z" },+ { url = "https://files.pythonhosted.org/packages/1a/df/9d58bb32b1121a8a2f27383fabae4d63080c7ca60b9b5c88be742be04ee7/cryptography-46.0.5-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:80a8d7bfdf38f87ca30a5391c0c9ce4ed2926918e017c29ddf643d0ed2778ea1", size = 4667819, upload-time = "2026-02-10T19:17:28.569Z" },+ { url = "https://files.pythonhosted.org/packages/ea/ed/325d2a490c5e94038cdb0117da9397ece1f11201f425c4e9c57fe5b9f08b/cryptography-46.0.5-cp311-abi3-win32.whl", hash = "sha256:60ee7e19e95104d4c03871d7d7dfb3d22ef8a9b9c6778c94e1c8fcc8365afd48", size = 3028230, upload-time = "2026-02-10T19:17:30.518Z" },+ { url = "https://files.pythonhosted.org/packages/e9/5a/ac0f49e48063ab4255d9e3b79f5def51697fce1a95ea1370f03dc9db76f6/cryptography-46.0.5-cp311-abi3-win_amd64.whl", hash = "sha256:38946c54b16c885c72c4f59846be9743d699eee2b69b6988e0a00a01f46a61a4", size = 3480909, upload-time = "2026-02-10T19:17:32.083Z" },+ { url = "https://files.pythonhosted.org/packages/00/13/3d278bfa7a15a96b9dc22db5a12ad1e48a9eb3d40e1827ef66a5df75d0d0/cryptography-46.0.5-cp314-cp314t-macosx_10_9_universal2.whl", hash = "sha256:94a76daa32eb78d61339aff7952ea819b1734b46f73646a07decb40e5b3448e2", size = 7119287, upload-time = "2026-02-10T19:17:33.801Z" },+ { url = "https://files.pythonhosted.org/packages/67/c8/581a6702e14f0898a0848105cbefd20c058099e2c2d22ef4e476dfec75d7/cryptography-46.0.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5be7bf2fb40769e05739dd0046e7b26f9d4670badc7b032d6ce4db64dddc0678", size = 4265728, upload-time = "2026-02-10T19:17:35.569Z" },+ { url = "https://files.pythonhosted.org/packages/dd/4a/ba1a65ce8fc65435e5a849558379896c957870dd64fecea97b1ad5f46a37/cryptography-46.0.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fe346b143ff9685e40192a4960938545c699054ba11d4f9029f94751e3f71d87", size = 4408287, upload-time = "2026-02-10T19:17:36.938Z" },+ { url = "https://files.pythonhosted.org/packages/f8/67/8ffdbf7b65ed1ac224d1c2df3943553766914a8ca718747ee3871da6107e/cryptography-46.0.5-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:c69fd885df7d089548a42d5ec05be26050ebcd2283d89b3d30676eb32ff87dee", size = 4270291, upload-time = "2026-02-10T19:17:38.748Z" },+ { url = "https://files.pythonhosted.org/packages/f8/e5/f52377ee93bc2f2bba55a41a886fd208c15276ffbd2569f2ddc89d50e2c5/cryptography-46.0.5-cp314-cp314t-manylinux_2_28_ppc64le.whl", hash = "sha256:8293f3dea7fc929ef7240796ba231413afa7b68ce38fd21da2995549f5961981", size = 4927539, upload-time = "2026-02-10T19:17:40.241Z" },+ { url = "https://files.pythonhosted.org/packages/3b/02/cfe39181b02419bbbbcf3abdd16c1c5c8541f03ca8bda240debc467d5a12/cryptography-46.0.5-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:1abfdb89b41c3be0365328a410baa9df3ff8a9110fb75e7b52e66803ddabc9a9", size = 4442199, upload-time = "2026-02-10T19:17:41.789Z" },+ { url = "https://files.pythonhosted.org/packages/c0/96/2fcaeb4873e536cf71421a388a6c11b5bc846e986b2b069c79363dc1648e/cryptography-46.0.5-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:d66e421495fdb797610a08f43b05269e0a5ea7f5e652a89bfd5a7d3c1dee3648", size = 3960131, upload-time = "2026-02-10T19:17:43.379Z" },+ { url = "https://files.pythonhosted.org/packages/d8/d2/b27631f401ddd644e94c5cf33c9a4069f72011821cf3dc7309546b0642a0/cryptography-46.0.5-cp314-cp314t-manylinux_2_34_aarch64.whl", hash = "sha256:4e817a8920bfbcff8940ecfd60f23d01836408242b30f1a708d93198393a80b4", size = 4270072, upload-time = "2026-02-10T19:17:45.481Z" },+ { url = "https://files.pythonhosted.org/packages/f4/a7/60d32b0370dae0b4ebe55ffa10e8599a2a59935b5ece1b9f06edb73abdeb/cryptography-46.0.5-cp314-cp314t-manylinux_2_34_ppc64le.whl", hash = "sha256:68f68d13f2e1cb95163fa3b4db4bf9a159a418f5f6e7242564fc75fcae667fd0", size = 4892170, upload-time = "2026-02-10T19:17:46.997Z" },+ { url = "https://files.pythonhosted.org/packages/d2/b9/cf73ddf8ef1164330eb0b199a589103c363afa0cf794218c24d524a58eab/cryptography-46.0.5-cp314-cp314t-manylinux_2_34_x86_64.whl", hash = "sha256:a3d1fae9863299076f05cb8a778c467578262fae09f9dc0ee9b12eb4268ce663", size = 4441741, upload-time = "2026-02-10T19:17:48.661Z" },+ { url = "https://files.pythonhosted.org/packages/5f/eb/eee00b28c84c726fe8fa0158c65afe312d9c3b78d9d01daf700f1f6e37ff/cryptography-46.0.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c4143987a42a2397f2fc3b4d7e3a7d313fbe684f67ff443999e803dd75a76826", size = 4396728, upload-time = "2026-02-10T19:17:50.058Z" },+ { url = "https://files.pythonhosted.org/packages/65/f4/6bc1a9ed5aef7145045114b75b77c2a8261b4d38717bd8dea111a63c3442/cryptography-46.0.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:7d731d4b107030987fd61a7f8ab512b25b53cef8f233a97379ede116f30eb67d", size = 4652001, upload-time = "2026-02-10T19:17:51.54Z" },+ { url = "https://files.pythonhosted.org/packages/86/ef/5d00ef966ddd71ac2e6951d278884a84a40ffbd88948ef0e294b214ae9e4/cryptography-46.0.5-cp314-cp314t-win32.whl", hash = "sha256:c3bcce8521d785d510b2aad26ae2c966092b7daa8f45dd8f44734a104dc0bc1a", size = 3003637, upload-time = "2026-02-10T19:17:52.997Z" },+ { url = "https://files.pythonhosted.org/packages/b7/57/f3f4160123da6d098db78350fdfd9705057aad21de7388eacb2401dceab9/cryptography-46.0.5-cp314-cp314t-win_amd64.whl", hash = "sha256:4d8ae8659ab18c65ced284993c2265910f6c9e650189d4e3f68445ef82a810e4", size = 3469487, upload-time = "2026-02-10T19:17:54.549Z" },+ { url = "https://files.pythonhosted.org/packages/e2/fa/a66aa722105ad6a458bebd64086ca2b72cdd361fed31763d20390f6f1389/cryptography-46.0.5-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:4108d4c09fbbf2789d0c926eb4152ae1760d5a2d97612b92d508d96c861e4d31", size = 7170514, upload-time = "2026-02-10T19:17:56.267Z" },+ { url = "https://files.pythonhosted.org/packages/0f/04/c85bdeab78c8bc77b701bf0d9bdcf514c044e18a46dcff330df5448631b0/cryptography-46.0.5-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7d1f30a86d2757199cb2d56e48cce14deddf1f9c95f1ef1b64ee91ea43fe2e18", size = 4275349, upload-time = "2026-02-10T19:17:58.419Z" },+ { url = "https://files.pythonhosted.org/packages/5c/32/9b87132a2f91ee7f5223b091dc963055503e9b442c98fc0b8a5ca765fab0/cryptography-46.0.5-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:039917b0dc418bb9f6edce8a906572d69e74bd330b0b3fea4f79dab7f8ddd235", size = 4420667, upload-time = "2026-02-10T19:18:00.619Z" },+ { url = "https://files.pythonhosted.org/packages/a1/a6/a7cb7010bec4b7c5692ca6f024150371b295ee1c108bdc1c400e4c44562b/cryptography-46.0.5-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:ba2a27ff02f48193fc4daeadf8ad2590516fa3d0adeeb34336b96f7fa64c1e3a", size = 4276980, upload-time = "2026-02-10T19:18:02.379Z" },+ { url = "https://files.pythonhosted.org/packages/8e/7c/c4f45e0eeff9b91e3f12dbd0e165fcf2a38847288fcfd889deea99fb7b6d/cryptography-46.0.5-cp38-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:61aa400dce22cb001a98014f647dc21cda08f7915ceb95df0c9eaf84b4b6af76", size = 4939143, upload-time = "2026-02-10T19:18:03.964Z" },+ { url = "https://files.pythonhosted.org/packages/37/19/e1b8f964a834eddb44fa1b9a9976f4e414cbb7aa62809b6760c8803d22d1/cryptography-46.0.5-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:3ce58ba46e1bc2aac4f7d9290223cead56743fa6ab94a5d53292ffaac6a91614", size = 4453674, upload-time = "2026-02-10T19:18:05.588Z" },+ { url = "https://files.pythonhosted.org/packages/db/ed/db15d3956f65264ca204625597c410d420e26530c4e2943e05a0d2f24d51/cryptography-46.0.5-cp38-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:420d0e909050490d04359e7fdb5ed7e667ca5c3c402b809ae2563d7e66a92229", size = 3978801, upload-time = "2026-02-10T19:18:07.167Z" },+ { url = "https://files.pythonhosted.org/packages/41/e2/df40a31d82df0a70a0daf69791f91dbb70e47644c58581d654879b382d11/cryptography-46.0.5-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:582f5fcd2afa31622f317f80426a027f30dc792e9c80ffee87b993200ea115f1", size = 4276755, upload-time = "2026-02-10T19:18:09.813Z" },+ { url = "https://files.pythonhosted.org/packages/33/45/726809d1176959f4a896b86907b98ff4391a8aa29c0aaaf9450a8a10630e/cryptography-46.0.5-cp38-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:bfd56bb4b37ed4f330b82402f6f435845a5f5648edf1ad497da51a8452d5d62d", size = 4901539, upload-time = "2026-02-10T19:18:11.263Z" },+ { url = "https://files.pythonhosted.org/packages/99/0f/a3076874e9c88ecb2ecc31382f6e7c21b428ede6f55aafa1aa272613e3cd/cryptography-46.0.5-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:a3d507bb6a513ca96ba84443226af944b0f7f47dcc9a399d110cd6146481d24c", size = 4452794, upload-time = "2026-02-10T19:18:12.914Z" },+ { url = "https://files.pythonhosted.org/packages/02/ef/ffeb542d3683d24194a38f66ca17c0a4b8bf10631feef44a7ef64e631b1a/cryptography-46.0.5-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9f16fbdf4da055efb21c22d81b89f155f02ba420558db21288b3d0035bafd5f4", size = 4404160, upload-time = "2026-02-10T19:18:14.375Z" },+ { url = "https://files.pythonhosted.org/packages/96/93/682d2b43c1d5f1406ed048f377c0fc9fc8f7b0447a478d5c65ab3d3a66eb/cryptography-46.0.5-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ced80795227d70549a411a4ab66e8ce307899fad2220ce5ab2f296e687eacde9", size = 4667123, upload-time = "2026-02-10T19:18:15.886Z" },+ { url = "https://files.pythonhosted.org/packages/45/2d/9c5f2926cb5300a8eefc3f4f0b3f3df39db7f7ce40c8365444c49363cbda/cryptography-46.0.5-cp38-abi3-win32.whl", hash = "sha256:02f547fce831f5096c9a567fd41bc12ca8f11df260959ecc7c3202555cc47a72", size = 3010220, upload-time = "2026-02-10T19:18:17.361Z" },+ { url = "https://files.pythonhosted.org/packages/48/ef/0c2f4a8e31018a986949d34a01115dd057bf536905dca38897bacd21fac3/cryptography-46.0.5-cp38-abi3-win_amd64.whl", hash = "sha256:556e106ee01aa13484ce9b0239bca667be5004efb0aabbed28d353df86445595", size = 3467050, upload-time = "2026-02-10T19:18:18.899Z" },+]++[[package]]+name = "cyclopts"+version = "4.5.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "attrs" },+ { name = "docstring-parser" },+ { name = "rich" },+ { name = "rich-rst" },+]+sdist = { url = "https://files.pythonhosted.org/packages/50/cd/1fd03921a95113182e6fdf84af5d47f07aa91c00c03ac074c192b0d4672c/cyclopts-4.5.2.tar.gz", hash = "sha256:7fe01b2d184c55c4555e06a0397602b319d87faa5b086b41913eaeaea52fae16", size = 162381, upload-time = "2026-02-11T16:30:46.051Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2b/03/f906829bcfcbb945f19d6a64240ffb66a31d69ca5533e95882f0efc9c13c/cyclopts-4.5.2-py3-none-any.whl", hash = "sha256:ee56ee23c2c81abc34b66b5aa8fd2698ca699740054e84e534449ec3eb7f944d", size = 200165, upload-time = "2026-02-11T16:30:46.942Z" },+]++[[package]]+name = "dashscope"+version = "1.25.12"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohttp" },+ { name = "certifi" },+ { name = "cryptography" },+ { name = "requests" },+ { name = "websocket-client" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/d9/7a/a1a9d0d293ca2cfabf54eedbea237d4d9e233251477d65c51c77667c407c/dashscope-1.25.12-py3-none-any.whl", hash = "sha256:92e98314bac0ff45b7f32f9120946771a85e614371b397f0874c1e579de60f98", size = 1342605, upload-time = "2026-02-09T09:02:50.82Z" },+]++[[package]]+name = "diskcache"+version = "5.6.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/3f/21/1c1ffc1a039ddcc459db43cc108658f32c57d271d7289a2794e401d0fdb6/diskcache-5.6.3.tar.gz", hash = "sha256:2c3a3fa2743d8535d832ec61c2054a1641f41775aa7c556758a109941e33e4fc", size = 67916, upload-time = "2023-08-31T06:12:00.316Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3f/27/4570e78fc0bf5ea0ca45eb1de3818a23787af9b390c0b0a0033a1b8236f9/diskcache-5.6.3-py3-none-any.whl", hash = "sha256:5e31b2d5fbad117cc363ebaf6b689474db18a1f6438bc82358b024abd4c2ca19", size = 45550, upload-time = "2023-08-31T06:11:58.822Z" },+]++[[package]]+name = "distlib"+version = "0.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/96/8e/709914eb2b5749865801041647dc7f4e6d00b549cfe88b65ca192995f07c/distlib-0.4.0.tar.gz", hash = "sha256:feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d", size = 614605, upload-time = "2025-07-17T16:52:00.465Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/33/6b/e0547afaf41bf2c42e52430072fa5658766e3d65bd4b03a563d1b6336f57/distlib-0.4.0-py2.py3-none-any.whl", hash = "sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16", size = 469047, upload-time = "2025-07-17T16:51:58.613Z" },+]++[[package]]+name = "distro"+version = "1.9.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/fc/f8/98eea607f65de6527f8a2e8885fc8015d3e6f5775df186e443e0964a11c3/distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed", size = 60722, upload-time = "2023-12-24T09:54:32.31Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2", size = 20277, upload-time = "2023-12-24T09:54:30.421Z" },+]++[[package]]+name = "dnspython"+version = "2.8.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8c/8b/57666417c0f90f08bcafa776861060426765fdb422eb10212086fb811d26/dnspython-2.8.0.tar.gz", hash = "sha256:181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f", size = 368251, upload-time = "2025-09-07T18:58:00.022Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ba/5a/18ad964b0086c6e62e2e7500f7edc89e3faa45033c71c1893d34eed2b2de/dnspython-2.8.0-py3-none-any.whl", hash = "sha256:01d9bbc4a2d76bf0db7c1f729812ded6d912bd318d3b1cf81d30c0f845dbf3af", size = 331094, upload-time = "2025-09-07T18:57:58.071Z" },+]++[[package]]+name = "docstring-parser"+version = "0.17.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b2/9d/c3b43da9515bd270df0f80548d9944e389870713cc1fe2b8fb35fe2bcefd/docstring_parser-0.17.0.tar.gz", hash = "sha256:583de4a309722b3315439bb31d64ba3eebada841f2e2cee23b99df001434c912", size = 27442, upload-time = "2025-07-21T07:35:01.868Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/55/e2/2537ebcff11c1ee1ff17d8d0b6f4db75873e3b0fb32c2d4a2ee31ecb310a/docstring_parser-0.17.0-py3-none-any.whl", hash = "sha256:cf2569abd23dce8099b300f9b4fa8191e9582dda731fd533daf54c4551658708", size = 36896, upload-time = "2025-07-21T07:35:00.684Z" },+]++[[package]]+name = "docutils"+version = "0.22.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ae/b6/03bb70946330e88ffec97aefd3ea75ba575cb2e762061e0e62a213befee8/docutils-0.22.4.tar.gz", hash = "sha256:4db53b1fde9abecbb74d91230d32ab626d94f6badfc575d6db9194a49df29968", size = 2291750, upload-time = "2025-12-18T19:00:26.443Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/02/10/5da547df7a391dcde17f59520a231527b8571e6f46fc8efb02ccb370ab12/docutils-0.22.4-py3-none-any.whl", hash = "sha256:d0013f540772d1420576855455d050a2180186c91c15779301ac2ccb3eeb68de", size = 633196, upload-time = "2025-12-18T19:00:18.077Z" },+]++[[package]]+name = "docx2txt"+version = "0.9"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ea/07/4486a038624e885e227fe79111914c01f55aa70a51920ff1a7f2bd216d10/docx2txt-0.9.tar.gz", hash = "sha256:18013f6229b14909028b19aa7bf4f8f3d6e4632d7b089ab29f7f0a4d1f660e28", size = 3613, upload-time = "2025-03-24T20:59:25.21Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d6/51/756e71bec48ece0ecc2a10e921ef2756e197dcb7e478f2b43673b6683902/docx2txt-0.9-py3-none-any.whl", hash = "sha256:e3718c0653fd6f2fcf4b51b02a61452ad1c38a4c163bcf0a6fd9486cd38f529a", size = 4025, upload-time = "2025-03-24T20:59:24.394Z" },+]++[[package]]+name = "email-validator"+version = "2.3.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "dnspython" },+ { name = "idna" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f5/22/900cb125c76b7aaa450ce02fd727f452243f2e91a61af068b40adba60ea9/email_validator-2.3.0.tar.gz", hash = "sha256:9fc05c37f2f6cf439ff414f8fc46d917929974a82244c20eb10231ba60c54426", size = 51238, upload-time = "2025-08-26T13:09:06.831Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/de/15/545e2b6cf2e3be84bc1ed85613edd75b8aea69807a71c26f4ca6a9258e82/email_validator-2.3.0-py3-none-any.whl", hash = "sha256:80f13f623413e6b197ae73bb10bf4eb0908faf509ad8362c5edeb0be7fd450b4", size = 35604, upload-time = "2025-08-26T13:09:05.858Z" },+]++[[package]]+name = "exceptiongroup"+version = "1.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" },+]++[[package]]+name = "fakeredis"+version = "2.33.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "redis" },+ { name = "sortedcontainers" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5f/f9/57464119936414d60697fcbd32f38909bb5688b616ae13de6e98384433e0/fakeredis-2.33.0.tar.gz", hash = "sha256:d7bc9a69d21df108a6451bbffee23b3eba432c21a654afc7ff2d295428ec5770", size = 175187, upload-time = "2025-12-16T19:45:52.269Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6e/78/a850fed8aeef96d4a99043c90b818b2ed5419cd5b24a4049fd7cfb9f1471/fakeredis-2.33.0-py3-none-any.whl", hash = "sha256:de535f3f9ccde1c56672ab2fdd6a8efbc4f2619fc2f1acc87b8737177d71c965", size = 119605, upload-time = "2025-12-16T19:45:51.08Z" },+]++[package.optional-dependencies]+lua = [+ { name = "lupa" },+]++[[package]]+name = "fastmcp"+version = "2.14.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "authlib" },+ { name = "cyclopts" },+ { name = "exceptiongroup" },+ { name = "httpx" },+ { name = "jsonref" },+ { name = "jsonschema-path" },+ { name = "mcp" },+ { name = "openapi-pydantic" },+ { name = "packaging" },+ { name = "platformdirs" },+ { name = "py-key-value-aio", extra = ["disk", "keyring", "memory"] },+ { name = "pydantic", extra = ["email"] },+ { name = "pydocket" },+ { name = "pyperclip" },+ { name = "python-dotenv" },+ { name = "rich" },+ { name = "uvicorn" },+ { name = "websockets" },+]+sdist = { url = "https://files.pythonhosted.org/packages/3b/32/982678d44f13849530a74ab101ed80e060c2ee6cf87471f062dcf61705fd/fastmcp-2.14.5.tar.gz", hash = "sha256:38944dc582c541d55357082bda2241cedb42cd3a78faea8a9d6a2662c62a42d7", size = 8296329, upload-time = "2026-02-03T15:35:21.005Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e5/c1/1a35ec68ff76ea8443aa115b18bcdee748a4ada2124537ee90522899ff9f/fastmcp-2.14.5-py3-none-any.whl", hash = "sha256:d81e8ec813f5089d3624bec93944beaefa86c0c3a4ef1111cbef676a761ebccf", size = 417784, upload-time = "2026-02-03T15:35:18.489Z" },+]++[[package]]+name = "filelock"+version = "3.20.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1d/65/ce7f1b70157833bf3cb851b556a37d4547ceafc158aa9b34b36782f23696/filelock-3.20.3.tar.gz", hash = "sha256:18c57ee915c7ec61cff0ecf7f0f869936c7c30191bb0cf406f1341778d0834e1", size = 19485, upload-time = "2026-01-09T17:55:05.421Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b5/36/7fb70f04bf00bc646cd5bb45aa9eddb15e19437a28b8fb2b4a5249fac770/filelock-3.20.3-py3-none-any.whl", hash = "sha256:4b0dda527ee31078689fc205ec4f1c1bf7d56cf88b6dc9426c4f230e46c2dce1", size = 16701, upload-time = "2026-01-09T17:55:04.334Z" },+]++[[package]]+name = "frozenlist"+version = "1.8.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/2d/f5/c831fac6cc817d26fd54c7eaccd04ef7e0288806943f7cc5bbf69f3ac1f0/frozenlist-1.8.0.tar.gz", hash = "sha256:3ede829ed8d842f6cd48fc7081d7a41001a56f1f38603f9d49bf3020d59a31ad", size = 45875, upload-time = "2025-10-06T05:38:17.865Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2d/40/0832c31a37d60f60ed79e9dfb5a92e1e2af4f40a16a29abcc7992af9edff/frozenlist-1.8.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8d92f1a84bb12d9e56f818b3a746f3efba93c1b63c8387a73dde655e1e42282a", size = 85717, upload-time = "2025-10-06T05:36:27.341Z" },+ { url = "https://files.pythonhosted.org/packages/30/ba/b0b3de23f40bc55a7057bd38434e25c34fa48e17f20ee273bbde5e0650f3/frozenlist-1.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:96153e77a591c8adc2ee805756c61f59fef4cf4073a9275ee86fe8cba41241f7", size = 49651, upload-time = "2025-10-06T05:36:28.855Z" },+ { url = "https://files.pythonhosted.org/packages/0c/ab/6e5080ee374f875296c4243c381bbdef97a9ac39c6e3ce1d5f7d42cb78d6/frozenlist-1.8.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f21f00a91358803399890ab167098c131ec2ddd5f8f5fd5fe9c9f2c6fcd91e40", size = 49417, upload-time = "2025-10-06T05:36:29.877Z" },+ { url = "https://files.pythonhosted.org/packages/d5/4e/e4691508f9477ce67da2015d8c00acd751e6287739123113a9fca6f1604e/frozenlist-1.8.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:fb30f9626572a76dfe4293c7194a09fb1fe93ba94c7d4f720dfae3b646b45027", size = 234391, upload-time = "2025-10-06T05:36:31.301Z" },+ { url = "https://files.pythonhosted.org/packages/40/76/c202df58e3acdf12969a7895fd6f3bc016c642e6726aa63bd3025e0fc71c/frozenlist-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eaa352d7047a31d87dafcacbabe89df0aa506abb5b1b85a2fb91bc3faa02d822", size = 233048, upload-time = "2025-10-06T05:36:32.531Z" },+ { url = "https://files.pythonhosted.org/packages/f9/c0/8746afb90f17b73ca5979c7a3958116e105ff796e718575175319b5bb4ce/frozenlist-1.8.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:03ae967b4e297f58f8c774c7eabcce57fe3c2434817d4385c50661845a058121", size = 226549, upload-time = "2025-10-06T05:36:33.706Z" },+ { url = "https://files.pythonhosted.org/packages/7e/eb/4c7eefc718ff72f9b6c4893291abaae5fbc0c82226a32dcd8ef4f7a5dbef/frozenlist-1.8.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f6292f1de555ffcc675941d65fffffb0a5bcd992905015f85d0592201793e0e5", size = 239833, upload-time = "2025-10-06T05:36:34.947Z" },+ { url = "https://files.pythonhosted.org/packages/c2/4e/e5c02187cf704224f8b21bee886f3d713ca379535f16893233b9d672ea71/frozenlist-1.8.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:29548f9b5b5e3460ce7378144c3010363d8035cea44bc0bf02d57f5a685e084e", size = 245363, upload-time = "2025-10-06T05:36:36.534Z" },+ { url = "https://files.pythonhosted.org/packages/1f/96/cb85ec608464472e82ad37a17f844889c36100eed57bea094518bf270692/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ec3cc8c5d4084591b4237c0a272cc4f50a5b03396a47d9caaf76f5d7b38a4f11", size = 229314, upload-time = "2025-10-06T05:36:38.582Z" },+ { url = "https://files.pythonhosted.org/packages/5d/6f/4ae69c550e4cee66b57887daeebe006fe985917c01d0fff9caab9883f6d0/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:517279f58009d0b1f2e7c1b130b377a349405da3f7621ed6bfae50b10adf20c1", size = 243365, upload-time = "2025-10-06T05:36:40.152Z" },+ { url = "https://files.pythonhosted.org/packages/7a/58/afd56de246cf11780a40a2c28dc7cbabbf06337cc8ddb1c780a2d97e88d8/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:db1e72ede2d0d7ccb213f218df6a078a9c09a7de257c2fe8fcef16d5925230b1", size = 237763, upload-time = "2025-10-06T05:36:41.355Z" },+ { url = "https://files.pythonhosted.org/packages/cb/36/cdfaf6ed42e2644740d4a10452d8e97fa1c062e2a8006e4b09f1b5fd7d63/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:b4dec9482a65c54a5044486847b8a66bf10c9cb4926d42927ec4e8fd5db7fed8", size = 240110, upload-time = "2025-10-06T05:36:42.716Z" },+ { url = "https://files.pythonhosted.org/packages/03/a8/9ea226fbefad669f11b52e864c55f0bd57d3c8d7eb07e9f2e9a0b39502e1/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:21900c48ae04d13d416f0e1e0c4d81f7931f73a9dfa0b7a8746fb2fe7dd970ed", size = 233717, upload-time = "2025-10-06T05:36:44.251Z" },+ { url = "https://files.pythonhosted.org/packages/1e/0b/1b5531611e83ba7d13ccc9988967ea1b51186af64c42b7a7af465dcc9568/frozenlist-1.8.0-cp313-cp313-win32.whl", hash = "sha256:8b7b94a067d1c504ee0b16def57ad5738701e4ba10cec90529f13fa03c833496", size = 39628, upload-time = "2025-10-06T05:36:45.423Z" },+ { url = "https://files.pythonhosted.org/packages/d8/cf/174c91dbc9cc49bc7b7aab74d8b734e974d1faa8f191c74af9b7e80848e6/frozenlist-1.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:878be833caa6a3821caf85eb39c5ba92d28e85df26d57afb06b35b2efd937231", size = 43882, upload-time = "2025-10-06T05:36:46.796Z" },+ { url = "https://files.pythonhosted.org/packages/c1/17/502cd212cbfa96eb1388614fe39a3fc9ab87dbbe042b66f97acb57474834/frozenlist-1.8.0-cp313-cp313-win_arm64.whl", hash = "sha256:44389d135b3ff43ba8cc89ff7f51f5a0bb6b63d829c8300f79a2fe4fe61bcc62", size = 39676, upload-time = "2025-10-06T05:36:47.8Z" },+ { url = "https://files.pythonhosted.org/packages/d2/5c/3bbfaa920dfab09e76946a5d2833a7cbdf7b9b4a91c714666ac4855b88b4/frozenlist-1.8.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:e25ac20a2ef37e91c1b39938b591457666a0fa835c7783c3a8f33ea42870db94", size = 89235, upload-time = "2025-10-06T05:36:48.78Z" },+ { url = "https://files.pythonhosted.org/packages/d2/d6/f03961ef72166cec1687e84e8925838442b615bd0b8854b54923ce5b7b8a/frozenlist-1.8.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:07cdca25a91a4386d2e76ad992916a85038a9b97561bf7a3fd12d5d9ce31870c", size = 50742, upload-time = "2025-10-06T05:36:49.837Z" },+ { url = "https://files.pythonhosted.org/packages/1e/bb/a6d12b7ba4c3337667d0e421f7181c82dda448ce4e7ad7ecd249a16fa806/frozenlist-1.8.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4e0c11f2cc6717e0a741f84a527c52616140741cd812a50422f83dc31749fb52", size = 51725, upload-time = "2025-10-06T05:36:50.851Z" },+ { url = "https://files.pythonhosted.org/packages/bc/71/d1fed0ffe2c2ccd70b43714c6cab0f4188f09f8a67a7914a6b46ee30f274/frozenlist-1.8.0-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b3210649ee28062ea6099cfda39e147fa1bc039583c8ee4481cb7811e2448c51", size = 284533, upload-time = "2025-10-06T05:36:51.898Z" },+ { url = "https://files.pythonhosted.org/packages/c9/1f/fb1685a7b009d89f9bf78a42d94461bc06581f6e718c39344754a5d9bada/frozenlist-1.8.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:581ef5194c48035a7de2aefc72ac6539823bb71508189e5de01d60c9dcd5fa65", size = 292506, upload-time = "2025-10-06T05:36:53.101Z" },+ { url = "https://files.pythonhosted.org/packages/e6/3b/b991fe1612703f7e0d05c0cf734c1b77aaf7c7d321df4572e8d36e7048c8/frozenlist-1.8.0-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3ef2d026f16a2b1866e1d86fc4e1291e1ed8a387b2c333809419a2f8b3a77b82", size = 274161, upload-time = "2025-10-06T05:36:54.309Z" },+ { url = "https://files.pythonhosted.org/packages/ca/ec/c5c618767bcdf66e88945ec0157d7f6c4a1322f1473392319b7a2501ded7/frozenlist-1.8.0-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5500ef82073f599ac84d888e3a8c1f77ac831183244bfd7f11eaa0289fb30714", size = 294676, upload-time = "2025-10-06T05:36:55.566Z" },+ { url = "https://files.pythonhosted.org/packages/7c/ce/3934758637d8f8a88d11f0585d6495ef54b2044ed6ec84492a91fa3b27aa/frozenlist-1.8.0-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:50066c3997d0091c411a66e710f4e11752251e6d2d73d70d8d5d4c76442a199d", size = 300638, upload-time = "2025-10-06T05:36:56.758Z" },+ { url = "https://files.pythonhosted.org/packages/fc/4f/a7e4d0d467298f42de4b41cbc7ddaf19d3cfeabaf9ff97c20c6c7ee409f9/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:5c1c8e78426e59b3f8005e9b19f6ff46e5845895adbde20ece9218319eca6506", size = 283067, upload-time = "2025-10-06T05:36:57.965Z" },+ { url = "https://files.pythonhosted.org/packages/dc/48/c7b163063d55a83772b268e6d1affb960771b0e203b632cfe09522d67ea5/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:eefdba20de0d938cec6a89bd4d70f346a03108a19b9df4248d3cf0d88f1b0f51", size = 292101, upload-time = "2025-10-06T05:36:59.237Z" },+ { url = "https://files.pythonhosted.org/packages/9f/d0/2366d3c4ecdc2fd391e0afa6e11500bfba0ea772764d631bbf82f0136c9d/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:cf253e0e1c3ceb4aaff6df637ce033ff6535fb8c70a764a8f46aafd3d6ab798e", size = 289901, upload-time = "2025-10-06T05:37:00.811Z" },+ { url = "https://files.pythonhosted.org/packages/b8/94/daff920e82c1b70e3618a2ac39fbc01ae3e2ff6124e80739ce5d71c9b920/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:032efa2674356903cd0261c4317a561a6850f3ac864a63fc1583147fb05a79b0", size = 289395, upload-time = "2025-10-06T05:37:02.115Z" },+ { url = "https://files.pythonhosted.org/packages/e3/20/bba307ab4235a09fdcd3cc5508dbabd17c4634a1af4b96e0f69bfe551ebd/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6da155091429aeba16851ecb10a9104a108bcd32f6c1642867eadaee401c1c41", size = 283659, upload-time = "2025-10-06T05:37:03.711Z" },+ { url = "https://files.pythonhosted.org/packages/fd/00/04ca1c3a7a124b6de4f8a9a17cc2fcad138b4608e7a3fc5877804b8715d7/frozenlist-1.8.0-cp313-cp313t-win32.whl", hash = "sha256:0f96534f8bfebc1a394209427d0f8a63d343c9779cda6fc25e8e121b5fd8555b", size = 43492, upload-time = "2025-10-06T05:37:04.915Z" },+ { url = "https://files.pythonhosted.org/packages/59/5e/c69f733a86a94ab10f68e496dc6b7e8bc078ebb415281d5698313e3af3a1/frozenlist-1.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:5d63a068f978fc69421fb0e6eb91a9603187527c86b7cd3f534a5b77a592b888", size = 48034, upload-time = "2025-10-06T05:37:06.343Z" },+ { url = "https://files.pythonhosted.org/packages/16/6c/be9d79775d8abe79b05fa6d23da99ad6e7763a1d080fbae7290b286093fd/frozenlist-1.8.0-cp313-cp313t-win_arm64.whl", hash = "sha256:bf0a7e10b077bf5fb9380ad3ae8ce20ef919a6ad93b4552896419ac7e1d8e042", size = 41749, upload-time = "2025-10-06T05:37:07.431Z" },+ { url = "https://files.pythonhosted.org/packages/f1/c8/85da824b7e7b9b6e7f7705b2ecaf9591ba6f79c1177f324c2735e41d36a2/frozenlist-1.8.0-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:cee686f1f4cadeb2136007ddedd0aaf928ab95216e7691c63e50a8ec066336d0", size = 86127, upload-time = "2025-10-06T05:37:08.438Z" },+ { url = "https://files.pythonhosted.org/packages/8e/e8/a1185e236ec66c20afd72399522f142c3724c785789255202d27ae992818/frozenlist-1.8.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:119fb2a1bd47307e899c2fac7f28e85b9a543864df47aa7ec9d3c1b4545f096f", size = 49698, upload-time = "2025-10-06T05:37:09.48Z" },+ { url = "https://files.pythonhosted.org/packages/a1/93/72b1736d68f03fda5fdf0f2180fb6caaae3894f1b854d006ac61ecc727ee/frozenlist-1.8.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4970ece02dbc8c3a92fcc5228e36a3e933a01a999f7094ff7c23fbd2beeaa67c", size = 49749, upload-time = "2025-10-06T05:37:10.569Z" },+ { url = "https://files.pythonhosted.org/packages/a7/b2/fabede9fafd976b991e9f1b9c8c873ed86f202889b864756f240ce6dd855/frozenlist-1.8.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:cba69cb73723c3f329622e34bdbf5ce1f80c21c290ff04256cff1cd3c2036ed2", size = 231298, upload-time = "2025-10-06T05:37:11.993Z" },+ { url = "https://files.pythonhosted.org/packages/3a/3b/d9b1e0b0eed36e70477ffb8360c49c85c8ca8ef9700a4e6711f39a6e8b45/frozenlist-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:778a11b15673f6f1df23d9586f83c4846c471a8af693a22e066508b77d201ec8", size = 232015, upload-time = "2025-10-06T05:37:13.194Z" },+ { url = "https://files.pythonhosted.org/packages/dc/94/be719d2766c1138148564a3960fc2c06eb688da592bdc25adcf856101be7/frozenlist-1.8.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0325024fe97f94c41c08872db482cf8ac4800d80e79222c6b0b7b162d5b13686", size = 225038, upload-time = "2025-10-06T05:37:14.577Z" },+ { url = "https://files.pythonhosted.org/packages/e4/09/6712b6c5465f083f52f50cf74167b92d4ea2f50e46a9eea0523d658454ae/frozenlist-1.8.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:97260ff46b207a82a7567b581ab4190bd4dfa09f4db8a8b49d1a958f6aa4940e", size = 240130, upload-time = "2025-10-06T05:37:15.781Z" },+ { url = "https://files.pythonhosted.org/packages/f8/d4/cd065cdcf21550b54f3ce6a22e143ac9e4836ca42a0de1022da8498eac89/frozenlist-1.8.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:54b2077180eb7f83dd52c40b2750d0a9f175e06a42e3213ce047219de902717a", size = 242845, upload-time = "2025-10-06T05:37:17.037Z" },+ { url = "https://files.pythonhosted.org/packages/62/c3/f57a5c8c70cd1ead3d5d5f776f89d33110b1addae0ab010ad774d9a44fb9/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:2f05983daecab868a31e1da44462873306d3cbfd76d1f0b5b69c473d21dbb128", size = 229131, upload-time = "2025-10-06T05:37:18.221Z" },+ { url = "https://files.pythonhosted.org/packages/6c/52/232476fe9cb64f0742f3fde2b7d26c1dac18b6d62071c74d4ded55e0ef94/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:33f48f51a446114bc5d251fb2954ab0164d5be02ad3382abcbfe07e2531d650f", size = 240542, upload-time = "2025-10-06T05:37:19.771Z" },+ { url = "https://files.pythonhosted.org/packages/5f/85/07bf3f5d0fb5414aee5f47d33c6f5c77bfe49aac680bfece33d4fdf6a246/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:154e55ec0655291b5dd1b8731c637ecdb50975a2ae70c606d100750a540082f7", size = 237308, upload-time = "2025-10-06T05:37:20.969Z" },+ { url = "https://files.pythonhosted.org/packages/11/99/ae3a33d5befd41ac0ca2cc7fd3aa707c9c324de2e89db0e0f45db9a64c26/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:4314debad13beb564b708b4a496020e5306c7333fa9a3ab90374169a20ffab30", size = 238210, upload-time = "2025-10-06T05:37:22.252Z" },+ { url = "https://files.pythonhosted.org/packages/b2/60/b1d2da22f4970e7a155f0adde9b1435712ece01b3cd45ba63702aea33938/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:073f8bf8becba60aa931eb3bc420b217bb7d5b8f4750e6f8b3be7f3da85d38b7", size = 231972, upload-time = "2025-10-06T05:37:23.5Z" },+ { url = "https://files.pythonhosted.org/packages/3f/ab/945b2f32de889993b9c9133216c068b7fcf257d8595a0ac420ac8677cab0/frozenlist-1.8.0-cp314-cp314-win32.whl", hash = "sha256:bac9c42ba2ac65ddc115d930c78d24ab8d4f465fd3fc473cdedfccadb9429806", size = 40536, upload-time = "2025-10-06T05:37:25.581Z" },+ { url = "https://files.pythonhosted.org/packages/59/ad/9caa9b9c836d9ad6f067157a531ac48b7d36499f5036d4141ce78c230b1b/frozenlist-1.8.0-cp314-cp314-win_amd64.whl", hash = "sha256:3e0761f4d1a44f1d1a47996511752cf3dcec5bbdd9cc2b4fe595caf97754b7a0", size = 44330, upload-time = "2025-10-06T05:37:26.928Z" },+ { url = "https://files.pythonhosted.org/packages/82/13/e6950121764f2676f43534c555249f57030150260aee9dcf7d64efda11dd/frozenlist-1.8.0-cp314-cp314-win_arm64.whl", hash = "sha256:d1eaff1d00c7751b7c6662e9c5ba6eb2c17a2306ba5e2a37f24ddf3cc953402b", size = 40627, upload-time = "2025-10-06T05:37:28.075Z" },+ { url = "https://files.pythonhosted.org/packages/c0/c7/43200656ecc4e02d3f8bc248df68256cd9572b3f0017f0a0c4e93440ae23/frozenlist-1.8.0-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:d3bb933317c52d7ea5004a1c442eef86f426886fba134ef8cf4226ea6ee1821d", size = 89238, upload-time = "2025-10-06T05:37:29.373Z" },+ { url = "https://files.pythonhosted.org/packages/d1/29/55c5f0689b9c0fb765055629f472c0de484dcaf0acee2f7707266ae3583c/frozenlist-1.8.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:8009897cdef112072f93a0efdce29cd819e717fd2f649ee3016efd3cd885a7ed", size = 50738, upload-time = "2025-10-06T05:37:30.792Z" },+ { url = "https://files.pythonhosted.org/packages/ba/7d/b7282a445956506fa11da8c2db7d276adcbf2b17d8bb8407a47685263f90/frozenlist-1.8.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2c5dcbbc55383e5883246d11fd179782a9d07a986c40f49abe89ddf865913930", size = 51739, upload-time = "2025-10-06T05:37:32.127Z" },+ { url = "https://files.pythonhosted.org/packages/62/1c/3d8622e60d0b767a5510d1d3cf21065b9db874696a51ea6d7a43180a259c/frozenlist-1.8.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:39ecbc32f1390387d2aa4f5a995e465e9e2f79ba3adcac92d68e3e0afae6657c", size = 284186, upload-time = "2025-10-06T05:37:33.21Z" },+ { url = "https://files.pythonhosted.org/packages/2d/14/aa36d5f85a89679a85a1d44cd7a6657e0b1c75f61e7cad987b203d2daca8/frozenlist-1.8.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:92db2bf818d5cc8d9c1f1fc56b897662e24ea5adb36ad1f1d82875bd64e03c24", size = 292196, upload-time = "2025-10-06T05:37:36.107Z" },+ { url = "https://files.pythonhosted.org/packages/05/23/6bde59eb55abd407d34f77d39a5126fb7b4f109a3f611d3929f14b700c66/frozenlist-1.8.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2dc43a022e555de94c3b68a4ef0b11c4f747d12c024a520c7101709a2144fb37", size = 273830, upload-time = "2025-10-06T05:37:37.663Z" },+ { url = "https://files.pythonhosted.org/packages/d2/3f/22cff331bfad7a8afa616289000ba793347fcd7bc275f3b28ecea2a27909/frozenlist-1.8.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:cb89a7f2de3602cfed448095bab3f178399646ab7c61454315089787df07733a", size = 294289, upload-time = "2025-10-06T05:37:39.261Z" },+ { url = "https://files.pythonhosted.org/packages/a4/89/5b057c799de4838b6c69aa82b79705f2027615e01be996d2486a69ca99c4/frozenlist-1.8.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:33139dc858c580ea50e7e60a1b0ea003efa1fd42e6ec7fdbad78fff65fad2fd2", size = 300318, upload-time = "2025-10-06T05:37:43.213Z" },+ { url = "https://files.pythonhosted.org/packages/30/de/2c22ab3eb2a8af6d69dc799e48455813bab3690c760de58e1bf43b36da3e/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:168c0969a329b416119507ba30b9ea13688fafffac1b7822802537569a1cb0ef", size = 282814, upload-time = "2025-10-06T05:37:45.337Z" },+ { url = "https://files.pythonhosted.org/packages/59/f7/970141a6a8dbd7f556d94977858cfb36fa9b66e0892c6dd780d2219d8cd8/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:28bd570e8e189d7f7b001966435f9dac6718324b5be2990ac496cf1ea9ddb7fe", size = 291762, upload-time = "2025-10-06T05:37:46.657Z" },+ { url = "https://files.pythonhosted.org/packages/c1/15/ca1adae83a719f82df9116d66f5bb28bb95557b3951903d39135620ef157/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b2a095d45c5d46e5e79ba1e5b9cb787f541a8dee0433836cea4b96a2c439dcd8", size = 289470, upload-time = "2025-10-06T05:37:47.946Z" },+ { url = "https://files.pythonhosted.org/packages/ac/83/dca6dc53bf657d371fbc88ddeb21b79891e747189c5de990b9dfff2ccba1/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:eab8145831a0d56ec9c4139b6c3e594c7a83c2c8be25d5bcf2d86136a532287a", size = 289042, upload-time = "2025-10-06T05:37:49.499Z" },+ { url = "https://files.pythonhosted.org/packages/96/52/abddd34ca99be142f354398700536c5bd315880ed0a213812bc491cff5e4/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:974b28cf63cc99dfb2188d8d222bc6843656188164848c4f679e63dae4b0708e", size = 283148, upload-time = "2025-10-06T05:37:50.745Z" },+ { url = "https://files.pythonhosted.org/packages/af/d3/76bd4ed4317e7119c2b7f57c3f6934aba26d277acc6309f873341640e21f/frozenlist-1.8.0-cp314-cp314t-win32.whl", hash = "sha256:342c97bf697ac5480c0a7ec73cd700ecfa5a8a40ac923bd035484616efecc2df", size = 44676, upload-time = "2025-10-06T05:37:52.222Z" },+ { url = "https://files.pythonhosted.org/packages/89/76/c615883b7b521ead2944bb3480398cbb07e12b7b4e4d073d3752eb721558/frozenlist-1.8.0-cp314-cp314t-win_amd64.whl", hash = "sha256:06be8f67f39c8b1dc671f5d83aaefd3358ae5cdcf8314552c57e7ed3e6475bdd", size = 49451, upload-time = "2025-10-06T05:37:53.425Z" },+ { url = "https://files.pythonhosted.org/packages/e0/a3/5982da14e113d07b325230f95060e2169f5311b1017ea8af2a29b374c289/frozenlist-1.8.0-cp314-cp314t-win_arm64.whl", hash = "sha256:102e6314ca4da683dca92e3b1355490fed5f313b768500084fbe6371fddfdb79", size = 42507, upload-time = "2025-10-06T05:37:54.513Z" },+ { url = "https://files.pythonhosted.org/packages/9a/9a/e35b4a917281c0b8419d4207f4334c8e8c5dbf4f3f5f9ada73958d937dcc/frozenlist-1.8.0-py3-none-any.whl", hash = "sha256:0c18a16eab41e82c295618a77502e17b195883241c563b00f0aa5106fc4eaa0d", size = 13409, upload-time = "2025-10-06T05:38:16.721Z" },+]++[[package]]+name = "fsspec"+version = "2026.2.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/51/7c/f60c259dcbf4f0c47cc4ddb8f7720d2dcdc8888c8e5ad84c73ea4531cc5b/fsspec-2026.2.0.tar.gz", hash = "sha256:6544e34b16869f5aacd5b90bdf1a71acb37792ea3ddf6125ee69a22a53fb8bff", size = 313441, upload-time = "2026-02-05T21:50:53.743Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e6/ab/fb21f4c939bb440104cc2b396d3be1d9b7a9fd3c6c2a53d98c45b3d7c954/fsspec-2026.2.0-py3-none-any.whl", hash = "sha256:98de475b5cb3bd66bedd5c4679e87b4fdfe1a3bf4d707b151b3c07e58c9a2437", size = 202505, upload-time = "2026-02-05T21:50:51.819Z" },+]++[[package]]+name = "greenlet"+version = "3.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8a/99/1cd3411c56a410994669062bd73dd58270c00cc074cac15f385a1fd91f8a/greenlet-3.3.1.tar.gz", hash = "sha256:41848f3230b58c08bb43dee542e74a2a2e34d3c59dc3076cec9151aeeedcae98", size = 184690, upload-time = "2026-01-23T15:31:02.076Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ec/ab/d26750f2b7242c2b90ea2ad71de70cfcd73a948a49513188a0fc0d6fc15a/greenlet-3.3.1-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:7ab327905cabb0622adca5971e488064e35115430cec2c35a50fd36e72a315b3", size = 275205, upload-time = "2026-01-23T15:30:24.556Z" },+ { url = "https://files.pythonhosted.org/packages/10/d3/be7d19e8fad7c5a78eeefb2d896a08cd4643e1e90c605c4be3b46264998f/greenlet-3.3.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:65be2f026ca6a176f88fb935ee23c18333ccea97048076aef4db1ef5bc0713ac", size = 599284, upload-time = "2026-01-23T16:00:58.584Z" },+ { url = "https://files.pythonhosted.org/packages/ae/21/fe703aaa056fdb0f17e5afd4b5c80195bbdab701208918938bd15b00d39b/greenlet-3.3.1-cp313-cp313-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7a3ae05b3d225b4155bda56b072ceb09d05e974bc74be6c3fc15463cf69f33fd", size = 610274, upload-time = "2026-01-23T16:05:29.312Z" },+ { url = "https://files.pythonhosted.org/packages/06/00/95df0b6a935103c0452dad2203f5be8377e551b8466a29650c4c5a5af6cc/greenlet-3.3.1-cp313-cp313-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:12184c61e5d64268a160226fb4818af4df02cfead8379d7f8b99a56c3a54ff3e", size = 624375, upload-time = "2026-01-23T16:15:55.915Z" },+ { url = "https://files.pythonhosted.org/packages/cb/86/5c6ab23bb3c28c21ed6bebad006515cfe08b04613eb105ca0041fecca852/greenlet-3.3.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6423481193bbbe871313de5fd06a082f2649e7ce6e08015d2a76c1e9186ca5b3", size = 612904, upload-time = "2026-01-23T15:32:52.317Z" },+ { url = "https://files.pythonhosted.org/packages/c2/f3/7949994264e22639e40718c2daf6f6df5169bf48fb038c008a489ec53a50/greenlet-3.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:33a956fe78bbbda82bfc95e128d61129b32d66bcf0a20a1f0c08aa4839ffa951", size = 1567316, upload-time = "2026-01-23T16:04:23.316Z" },+ { url = "https://files.pythonhosted.org/packages/8d/6e/d73c94d13b6465e9f7cd6231c68abde838bb22408596c05d9059830b7872/greenlet-3.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4b065d3284be43728dd280f6f9a13990b56470b81be20375a207cdc814a983f2", size = 1636549, upload-time = "2026-01-23T15:33:48.643Z" },+ { url = "https://files.pythonhosted.org/packages/5e/b3/c9c23a6478b3bcc91f979ce4ca50879e4d0b2bd7b9a53d8ecded719b92e2/greenlet-3.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:27289986f4e5b0edec7b5a91063c109f0276abb09a7e9bdab08437525977c946", size = 227042, upload-time = "2026-01-23T15:33:58.216Z" },+ { url = "https://files.pythonhosted.org/packages/90/e7/824beda656097edee36ab15809fd063447b200cc03a7f6a24c34d520bc88/greenlet-3.3.1-cp313-cp313-win_arm64.whl", hash = "sha256:2f080e028001c5273e0b42690eaf359aeef9cb1389da0f171ea51a5dc3c7608d", size = 226294, upload-time = "2026-01-23T15:30:52.73Z" },+ { url = "https://files.pythonhosted.org/packages/ae/fb/011c7c717213182caf78084a9bea51c8590b0afda98001f69d9f853a495b/greenlet-3.3.1-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:bd59acd8529b372775cd0fcbc5f420ae20681c5b045ce25bd453ed8455ab99b5", size = 275737, upload-time = "2026-01-23T15:32:16.889Z" },+ { url = "https://files.pythonhosted.org/packages/41/2e/a3a417d620363fdbb08a48b1dd582956a46a61bf8fd27ee8164f9dfe87c2/greenlet-3.3.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b31c05dd84ef6871dd47120386aed35323c944d86c3d91a17c4b8d23df62f15b", size = 646422, upload-time = "2026-01-23T16:01:00.354Z" },+ { url = "https://files.pythonhosted.org/packages/b4/09/c6c4a0db47defafd2d6bab8ddfe47ad19963b4e30f5bed84d75328059f8c/greenlet-3.3.1-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:02925a0bfffc41e542c70aa14c7eda3593e4d7e274bfcccca1827e6c0875902e", size = 658219, upload-time = "2026-01-23T16:05:30.956Z" },+ { url = "https://files.pythonhosted.org/packages/e2/89/b95f2ddcc5f3c2bc09c8ee8d77be312df7f9e7175703ab780f2014a0e781/greenlet-3.3.1-cp314-cp314-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3e0f3878ca3a3ff63ab4ea478585942b53df66ddde327b59ecb191b19dbbd62d", size = 671455, upload-time = "2026-01-23T16:15:57.232Z" },+ { url = "https://files.pythonhosted.org/packages/80/38/9d42d60dffb04b45f03dbab9430898352dba277758640751dc5cc316c521/greenlet-3.3.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:34a729e2e4e4ffe9ae2408d5ecaf12f944853f40ad724929b7585bca808a9d6f", size = 660237, upload-time = "2026-01-23T15:32:53.967Z" },+ { url = "https://files.pythonhosted.org/packages/96/61/373c30b7197f9e756e4c81ae90a8d55dc3598c17673f91f4d31c3c689c3f/greenlet-3.3.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:aec9ab04e82918e623415947921dea15851b152b822661cce3f8e4393c3df683", size = 1615261, upload-time = "2026-01-23T16:04:25.066Z" },+ { url = "https://files.pythonhosted.org/packages/fd/d3/ca534310343f5945316f9451e953dcd89b36fe7a19de652a1dc5a0eeef3f/greenlet-3.3.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:71c767cf281a80d02b6c1bdc41c9468e1f5a494fb11bc8688c360524e273d7b1", size = 1683719, upload-time = "2026-01-23T15:33:50.61Z" },+ { url = "https://files.pythonhosted.org/packages/52/cb/c21a3fd5d2c9c8b622e7bede6d6d00e00551a5ee474ea6d831b5f567a8b4/greenlet-3.3.1-cp314-cp314-win_amd64.whl", hash = "sha256:96aff77af063b607f2489473484e39a0bbae730f2ea90c9e5606c9b73c44174a", size = 228125, upload-time = "2026-01-23T15:32:45.265Z" },+ { url = "https://files.pythonhosted.org/packages/6a/8e/8a2db6d11491837af1de64b8aff23707c6e85241be13c60ed399a72e2ef8/greenlet-3.3.1-cp314-cp314-win_arm64.whl", hash = "sha256:b066e8b50e28b503f604fa538adc764a638b38cf8e81e025011d26e8a627fa79", size = 227519, upload-time = "2026-01-23T15:31:47.284Z" },+ { url = "https://files.pythonhosted.org/packages/28/24/cbbec49bacdcc9ec652a81d3efef7b59f326697e7edf6ed775a5e08e54c2/greenlet-3.3.1-cp314-cp314t-macosx_11_0_universal2.whl", hash = "sha256:3e63252943c921b90abb035ebe9de832c436401d9c45f262d80e2d06cc659242", size = 282706, upload-time = "2026-01-23T15:33:05.525Z" },+ { url = "https://files.pythonhosted.org/packages/86/2e/4f2b9323c144c4fe8842a4e0d92121465485c3c2c5b9e9b30a52e80f523f/greenlet-3.3.1-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:76e39058e68eb125de10c92524573924e827927df5d3891fbc97bd55764a8774", size = 651209, upload-time = "2026-01-23T16:01:01.517Z" },+ { url = "https://files.pythonhosted.org/packages/d9/87/50ca60e515f5bb55a2fbc5f0c9b5b156de7d2fc51a0a69abc9d23914a237/greenlet-3.3.1-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c9f9d5e7a9310b7a2f416dd13d2e3fd8b42d803968ea580b7c0f322ccb389b97", size = 654300, upload-time = "2026-01-23T16:05:32.199Z" },+ { url = "https://files.pythonhosted.org/packages/7c/25/c51a63f3f463171e09cb586eb64db0861eb06667ab01a7968371a24c4f3b/greenlet-3.3.1-cp314-cp314t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4b9721549a95db96689458a1e0ae32412ca18776ed004463df3a9299c1b257ab", size = 662574, upload-time = "2026-01-23T16:15:58.364Z" },+ { url = "https://files.pythonhosted.org/packages/1d/94/74310866dfa2b73dd08659a3d18762f83985ad3281901ba0ee9a815194fb/greenlet-3.3.1-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:92497c78adf3ac703b57f1e3813c2d874f27f71a178f9ea5887855da413cd6d2", size = 653842, upload-time = "2026-01-23T15:32:55.671Z" },+ { url = "https://files.pythonhosted.org/packages/97/43/8bf0ffa3d498eeee4c58c212a3905dd6146c01c8dc0b0a046481ca29b18c/greenlet-3.3.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ed6b402bc74d6557a705e197d47f9063733091ed6357b3de33619d8a8d93ac53", size = 1614917, upload-time = "2026-01-23T16:04:26.276Z" },+ { url = "https://files.pythonhosted.org/packages/89/90/a3be7a5f378fc6e84abe4dcfb2ba32b07786861172e502388b4c90000d1b/greenlet-3.3.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:59913f1e5ada20fde795ba906916aea25d442abcc0593fba7e26c92b7ad76249", size = 1676092, upload-time = "2026-01-23T15:33:52.176Z" },+ { url = "https://files.pythonhosted.org/packages/e1/2b/98c7f93e6db9977aaee07eb1e51ca63bd5f779b900d362791d3252e60558/greenlet-3.3.1-cp314-cp314t-win_amd64.whl", hash = "sha256:301860987846c24cb8964bdec0e31a96ad4a2a801b41b4ef40963c1b44f33451", size = 233181, upload-time = "2026-01-23T15:33:00.29Z" },+]++[[package]]+name = "grpcio"+version = "1.78.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/8a/3d098f35c143a89520e568e6539cc098fcd294495910e359889ce8741c84/grpcio-1.78.0.tar.gz", hash = "sha256:7382b95189546f375c174f53a5fa873cef91c4b8005faa05cc5b3beea9c4f1c5", size = 12852416, upload-time = "2026-02-06T09:57:18.093Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/05/a9/8f75894993895f361ed8636cd9237f4ab39ef87fd30db17467235ed1c045/grpcio-1.78.0-cp313-cp313-linux_armv7l.whl", hash = "sha256:ce3a90455492bf8bfa38e56fbbe1dbd4f872a3d8eeaf7337dc3b1c8aa28c271b", size = 5920143, upload-time = "2026-02-06T09:55:52.035Z" },+ { url = "https://files.pythonhosted.org/packages/55/06/0b78408e938ac424100100fd081189451b472236e8a3a1f6500390dc4954/grpcio-1.78.0-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:2bf5e2e163b356978b23652c4818ce4759d40f4712ee9ec5a83c4be6f8c23a3a", size = 11803926, upload-time = "2026-02-06T09:55:55.494Z" },+ { url = "https://files.pythonhosted.org/packages/88/93/b59fe7832ff6ae3c78b813ea43dac60e295fa03606d14d89d2e0ec29f4f3/grpcio-1.78.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8f2ac84905d12918e4e55a16da17939eb63e433dc11b677267c35568aa63fc84", size = 6478628, upload-time = "2026-02-06T09:55:58.533Z" },+ { url = "https://files.pythonhosted.org/packages/ed/df/e67e3734527f9926b7d9c0dde6cd998d1d26850c3ed8eeec81297967ac67/grpcio-1.78.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:b58f37edab4a3881bc6c9bca52670610e0c9ca14e2ea3cf9debf185b870457fb", size = 7173574, upload-time = "2026-02-06T09:56:01.786Z" },+ { url = "https://files.pythonhosted.org/packages/a6/62/cc03fffb07bfba982a9ec097b164e8835546980aec25ecfa5f9c1a47e022/grpcio-1.78.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:735e38e176a88ce41840c21bb49098ab66177c64c82426e24e0082500cc68af5", size = 6692639, upload-time = "2026-02-06T09:56:04.529Z" },+ { url = "https://files.pythonhosted.org/packages/bf/9a/289c32e301b85bdb67d7ec68b752155e674ee3ba2173a1858f118e399ef3/grpcio-1.78.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:2045397e63a7a0ee7957c25f7dbb36ddc110e0cfb418403d110c0a7a68a844e9", size = 7268838, upload-time = "2026-02-06T09:56:08.397Z" },+ { url = "https://files.pythonhosted.org/packages/0e/79/1be93f32add280461fa4773880196572563e9c8510861ac2da0ea0f892b6/grpcio-1.78.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:a9f136fbafe7ccf4ac7e8e0c28b31066e810be52d6e344ef954a3a70234e1702", size = 8251878, upload-time = "2026-02-06T09:56:10.914Z" },+ { url = "https://files.pythonhosted.org/packages/65/65/793f8e95296ab92e4164593674ae6291b204bb5f67f9d4a711489cd30ffa/grpcio-1.78.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:748b6138585379c737adc08aeffd21222abbda1a86a0dca2a39682feb9196c20", size = 7695412, upload-time = "2026-02-06T09:56:13.593Z" },+ { url = "https://files.pythonhosted.org/packages/1c/9f/1e233fe697ecc82845942c2822ed06bb522e70d6771c28d5528e4c50f6a4/grpcio-1.78.0-cp313-cp313-win32.whl", hash = "sha256:271c73e6e5676afe4fc52907686670c7cea22ab2310b76a59b678403ed40d670", size = 4064899, upload-time = "2026-02-06T09:56:15.601Z" },+ { url = "https://files.pythonhosted.org/packages/4d/27/d86b89e36de8a951501fb06a0f38df19853210f341d0b28f83f4aa0ffa08/grpcio-1.78.0-cp313-cp313-win_amd64.whl", hash = "sha256:f2d4e43ee362adfc05994ed479334d5a451ab7bc3f3fee1b796b8ca66895acb4", size = 4797393, upload-time = "2026-02-06T09:56:17.882Z" },+ { url = "https://files.pythonhosted.org/packages/29/f2/b56e43e3c968bfe822fa6ce5bca10d5c723aa40875b48791ce1029bb78c7/grpcio-1.78.0-cp314-cp314-linux_armv7l.whl", hash = "sha256:e87cbc002b6f440482b3519e36e1313eb5443e9e9e73d6a52d43bd2004fcfd8e", size = 5920591, upload-time = "2026-02-06T09:56:20.758Z" },+ { url = "https://files.pythonhosted.org/packages/5d/81/1f3b65bd30c334167bfa8b0d23300a44e2725ce39bba5b76a2460d85f745/grpcio-1.78.0-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:c41bc64626db62e72afec66b0c8a0da76491510015417c127bfc53b2fe6d7f7f", size = 11813685, upload-time = "2026-02-06T09:56:24.315Z" },+ { url = "https://files.pythonhosted.org/packages/0e/1c/bbe2f8216a5bd3036119c544d63c2e592bdf4a8ec6e4a1867592f4586b26/grpcio-1.78.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8dfffba826efcf366b1e3ccc37e67afe676f290e13a3b48d31a46739f80a8724", size = 6487803, upload-time = "2026-02-06T09:56:27.367Z" },+ { url = "https://files.pythonhosted.org/packages/16/5c/a6b2419723ea7ddce6308259a55e8e7593d88464ce8db9f4aa857aba96fa/grpcio-1.78.0-cp314-cp314-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:74be1268d1439eaaf552c698cdb11cd594f0c49295ae6bb72c34ee31abbe611b", size = 7173206, upload-time = "2026-02-06T09:56:29.876Z" },+ { url = "https://files.pythonhosted.org/packages/df/1e/b8801345629a415ea7e26c83d75eb5dbe91b07ffe5210cc517348a8d4218/grpcio-1.78.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:be63c88b32e6c0f1429f1398ca5c09bc64b0d80950c8bb7807d7d7fb36fb84c7", size = 6693826, upload-time = "2026-02-06T09:56:32.305Z" },+ { url = "https://files.pythonhosted.org/packages/34/84/0de28eac0377742679a510784f049738a80424b17287739fc47d63c2439e/grpcio-1.78.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:3c586ac70e855c721bda8f548d38c3ca66ac791dc49b66a8281a1f99db85e452", size = 7277897, upload-time = "2026-02-06T09:56:34.915Z" },+ { url = "https://files.pythonhosted.org/packages/ca/9c/ad8685cfe20559a9edb66f735afdcb2b7d3de69b13666fdfc542e1916ebd/grpcio-1.78.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:35eb275bf1751d2ffbd8f57cdbc46058e857cf3971041521b78b7db94bdaf127", size = 8252404, upload-time = "2026-02-06T09:56:37.553Z" },+ { url = "https://files.pythonhosted.org/packages/3c/05/33a7a4985586f27e1de4803887c417ec7ced145ebd069bc38a9607059e2b/grpcio-1.78.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:207db540302c884b8848036b80db352a832b99dfdf41db1eb554c2c2c7800f65", size = 7696837, upload-time = "2026-02-06T09:56:40.173Z" },+ { url = "https://files.pythonhosted.org/packages/73/77/7382241caf88729b106e49e7d18e3116216c778e6a7e833826eb96de22f7/grpcio-1.78.0-cp314-cp314-win32.whl", hash = "sha256:57bab6deef2f4f1ca76cc04565df38dc5713ae6c17de690721bdf30cb1e0545c", size = 4142439, upload-time = "2026-02-06T09:56:43.258Z" },+ { url = "https://files.pythonhosted.org/packages/48/b2/b096ccce418882fbfda4f7496f9357aaa9a5af1896a9a7f60d9f2b275a06/grpcio-1.78.0-cp314-cp314-win_amd64.whl", hash = "sha256:dce09d6116df20a96acfdbf85e4866258c3758180e8c49845d6ba8248b6d0bbb", size = 4929852, upload-time = "2026-02-06T09:56:45.885Z" },+]++[[package]]+name = "h11"+version = "0.16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },+]++[[package]]+name = "hf-xet"+version = "1.2.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/5e/6e/0f11bacf08a67f7fb5ee09740f2ca54163863b07b70d579356e9222ce5d8/hf_xet-1.2.0.tar.gz", hash = "sha256:a8c27070ca547293b6890c4bf389f713f80e8c478631432962bb7f4bc0bd7d7f", size = 506020, upload-time = "2025-10-24T19:04:32.129Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9e/a5/85ef910a0aa034a2abcfadc360ab5ac6f6bc4e9112349bd40ca97551cff0/hf_xet-1.2.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:ceeefcd1b7aed4956ae8499e2199607765fbd1c60510752003b6cc0b8413b649", size = 2861870, upload-time = "2025-10-24T19:04:11.422Z" },+ { url = "https://files.pythonhosted.org/packages/ea/40/e2e0a7eb9a51fe8828ba2d47fe22a7e74914ea8a0db68a18c3aa7449c767/hf_xet-1.2.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:b70218dd548e9840224df5638fdc94bd033552963cfa97f9170829381179c813", size = 2717584, upload-time = "2025-10-24T19:04:09.586Z" },+ { url = "https://files.pythonhosted.org/packages/a5/7d/daf7f8bc4594fdd59a8a596f9e3886133fdc68e675292218a5e4c1b7e834/hf_xet-1.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7d40b18769bb9a8bc82a9ede575ce1a44c75eb80e7375a01d76259089529b5dc", size = 3315004, upload-time = "2025-10-24T19:04:00.314Z" },+ { url = "https://files.pythonhosted.org/packages/b1/ba/45ea2f605fbf6d81c8b21e4d970b168b18a53515923010c312c06cd83164/hf_xet-1.2.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:cd3a6027d59cfb60177c12d6424e31f4b5ff13d8e3a1247b3a584bf8977e6df5", size = 3222636, upload-time = "2025-10-24T19:03:58.111Z" },+ { url = "https://files.pythonhosted.org/packages/4a/1d/04513e3cab8f29ab8c109d309ddd21a2705afab9d52f2ba1151e0c14f086/hf_xet-1.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6de1fc44f58f6dd937956c8d304d8c2dea264c80680bcfa61ca4a15e7b76780f", size = 3408448, upload-time = "2025-10-24T19:04:20.951Z" },+ { url = "https://files.pythonhosted.org/packages/f0/7c/60a2756d7feec7387db3a1176c632357632fbe7849fce576c5559d4520c7/hf_xet-1.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f182f264ed2acd566c514e45da9f2119110e48a87a327ca271027904c70c5832", size = 3503401, upload-time = "2025-10-24T19:04:22.549Z" },+ { url = "https://files.pythonhosted.org/packages/4e/64/48fffbd67fb418ab07451e4ce641a70de1c40c10a13e25325e24858ebe5a/hf_xet-1.2.0-cp313-cp313t-win_amd64.whl", hash = "sha256:293a7a3787e5c95d7be1857358a9130694a9c6021de3f27fa233f37267174382", size = 2900866, upload-time = "2025-10-24T19:04:33.461Z" },+ { url = "https://files.pythonhosted.org/packages/e2/51/f7e2caae42f80af886db414d4e9885fac959330509089f97cccb339c6b87/hf_xet-1.2.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:10bfab528b968c70e062607f663e21e34e2bba349e8038db546646875495179e", size = 2861861, upload-time = "2025-10-24T19:04:19.01Z" },+ { url = "https://files.pythonhosted.org/packages/6e/1d/a641a88b69994f9371bd347f1dd35e5d1e2e2460a2e350c8d5165fc62005/hf_xet-1.2.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2a212e842647b02eb6a911187dc878e79c4aa0aa397e88dd3b26761676e8c1f8", size = 2717699, upload-time = "2025-10-24T19:04:17.306Z" },+ { url = "https://files.pythonhosted.org/packages/df/e0/e5e9bba7d15f0318955f7ec3f4af13f92e773fbb368c0b8008a5acbcb12f/hf_xet-1.2.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:30e06daccb3a7d4c065f34fc26c14c74f4653069bb2b194e7f18f17cbe9939c0", size = 3314885, upload-time = "2025-10-24T19:04:07.642Z" },+ { url = "https://files.pythonhosted.org/packages/21/90/b7fe5ff6f2b7b8cbdf1bd56145f863c90a5807d9758a549bf3d916aa4dec/hf_xet-1.2.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:29c8fc913a529ec0a91867ce3d119ac1aac966e098cf49501800c870328cc090", size = 3221550, upload-time = "2025-10-24T19:04:05.55Z" },+ { url = "https://files.pythonhosted.org/packages/6f/cb/73f276f0a7ce46cc6a6ec7d6c7d61cbfe5f2e107123d9bbd0193c355f106/hf_xet-1.2.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e159cbfcfbb29f920db2c09ed8b660eb894640d284f102ada929b6e3dc410a", size = 3408010, upload-time = "2025-10-24T19:04:28.598Z" },+ { url = "https://files.pythonhosted.org/packages/b8/1e/d642a12caa78171f4be64f7cd9c40e3ca5279d055d0873188a58c0f5fbb9/hf_xet-1.2.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:9c91d5ae931510107f148874e9e2de8a16052b6f1b3ca3c1b12f15ccb491390f", size = 3503264, upload-time = "2025-10-24T19:04:30.397Z" },+ { url = "https://files.pythonhosted.org/packages/17/b5/33764714923fa1ff922770f7ed18c2daae034d21ae6e10dbf4347c854154/hf_xet-1.2.0-cp314-cp314t-win_amd64.whl", hash = "sha256:210d577732b519ac6ede149d2f2f34049d44e8622bf14eb3d63bbcd2d4b332dc", size = 2901071, upload-time = "2025-10-24T19:04:37.463Z" },+ { url = "https://files.pythonhosted.org/packages/96/2d/22338486473df5923a9ab7107d375dbef9173c338ebef5098ef593d2b560/hf_xet-1.2.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:46740d4ac024a7ca9b22bebf77460ff43332868b661186a8e46c227fdae01848", size = 2866099, upload-time = "2025-10-24T19:04:15.366Z" },+ { url = "https://files.pythonhosted.org/packages/7f/8c/c5becfa53234299bc2210ba314eaaae36c2875e0045809b82e40a9544f0c/hf_xet-1.2.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:27df617a076420d8845bea087f59303da8be17ed7ec0cd7ee3b9b9f579dff0e4", size = 2722178, upload-time = "2025-10-24T19:04:13.695Z" },+ { url = "https://files.pythonhosted.org/packages/9a/92/cf3ab0b652b082e66876d08da57fcc6fa2f0e6c70dfbbafbd470bb73eb47/hf_xet-1.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3651fd5bfe0281951b988c0facbe726aa5e347b103a675f49a3fa8144c7968fd", size = 3320214, upload-time = "2025-10-24T19:04:03.596Z" },+ { url = "https://files.pythonhosted.org/packages/46/92/3f7ec4a1b6a65bf45b059b6d4a5d38988f63e193056de2f420137e3c3244/hf_xet-1.2.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:d06fa97c8562fb3ee7a378dd9b51e343bc5bc8190254202c9771029152f5e08c", size = 3229054, upload-time = "2025-10-24T19:04:01.949Z" },+ { url = "https://files.pythonhosted.org/packages/0b/dd/7ac658d54b9fb7999a0ccb07ad863b413cbaf5cf172f48ebcd9497ec7263/hf_xet-1.2.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:4c1428c9ae73ec0939410ec73023c4f842927f39db09b063b9482dac5a3bb737", size = 3413812, upload-time = "2025-10-24T19:04:24.585Z" },+ { url = "https://files.pythonhosted.org/packages/92/68/89ac4e5b12a9ff6286a12174c8538a5930e2ed662091dd2572bbe0a18c8a/hf_xet-1.2.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a55558084c16b09b5ed32ab9ed38421e2d87cf3f1f89815764d1177081b99865", size = 3508920, upload-time = "2025-10-24T19:04:26.927Z" },+ { url = "https://files.pythonhosted.org/packages/cb/44/870d44b30e1dcfb6a65932e3e1506c103a8a5aea9103c337e7a53180322c/hf_xet-1.2.0-cp37-abi3-win_amd64.whl", hash = "sha256:e6584a52253f72c9f52f9e549d5895ca7a471608495c4ecaa6cc73dba2b24d69", size = 2905735, upload-time = "2025-10-24T19:04:35.928Z" },+]++[[package]]+name = "httpcore"+version = "1.0.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" },+]++[[package]]+name = "httpx"+version = "0.28.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "certifi" },+ { name = "httpcore" },+ { name = "idna" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },+]++[[package]]+name = "httpx-sse"+version = "0.4.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0f/4c/751061ffa58615a32c31b2d82e8482be8dd4a89154f003147acee90f2be9/httpx_sse-0.4.3.tar.gz", hash = "sha256:9b1ed0127459a66014aec3c56bebd93da3c1bc8bb6618c8082039a44889a755d", size = 15943, upload-time = "2025-10-10T21:48:22.271Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d2/fd/6668e5aec43ab844de6fc74927e155a3b37bf40d7c3790e49fc0406b6578/httpx_sse-0.4.3-py3-none-any.whl", hash = "sha256:0ac1c9fe3c0afad2e0ebb25a934a59f4c7823b60792691f779fad2c5568830fc", size = 8960, upload-time = "2025-10-10T21:48:21.158Z" },+]++[[package]]+name = "huggingface-hub"+version = "1.4.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "filelock" },+ { name = "fsspec" },+ { name = "hf-xet", marker = "platform_machine == 'AMD64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'" },+ { name = "httpx" },+ { name = "packaging" },+ { name = "pyyaml" },+ { name = "shellingham" },+ { name = "tqdm" },+ { name = "typer-slim" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c4/fc/eb9bc06130e8bbda6a616e1b80a7aa127681c448d6b49806f61db2670b61/huggingface_hub-1.4.1.tar.gz", hash = "sha256:b41131ec35e631e7383ab26d6146b8d8972abc8b6309b963b306fbcca87f5ed5", size = 642156, upload-time = "2026-02-06T09:20:03.013Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d5/ae/2f6d96b4e6c5478d87d606a1934b5d436c4a2bce6bb7c6fdece891c128e3/huggingface_hub-1.4.1-py3-none-any.whl", hash = "sha256:9931d075fb7a79af5abc487106414ec5fba2c0ae86104c0c62fd6cae38873d18", size = 553326, upload-time = "2026-02-06T09:20:00.728Z" },+]++[[package]]+name = "identify"+version = "2.6.16"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/5b/8d/e8b97e6bd3fb6fb271346f7981362f1e04d6a7463abd0de79e1fda17c067/identify-2.6.16.tar.gz", hash = "sha256:846857203b5511bbe94d5a352a48ef2359532bc8f6727b5544077a0dcfb24980", size = 99360, upload-time = "2026-01-12T18:58:58.201Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b8/58/40fbbcefeda82364720eba5cf2270f98496bdfa19ea75b4cccae79c698e6/identify-2.6.16-py2.py3-none-any.whl", hash = "sha256:391ee4d77741d994189522896270b787aed8670389bfd60f326d677d64a6dfb0", size = 99202, upload-time = "2026-01-12T18:58:56.627Z" },+]++[[package]]+name = "idna"+version = "3.11"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" },+]++[[package]]+name = "importlib-metadata"+version = "8.7.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "zipp" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f3/49/3b30cad09e7771a4982d9975a8cbf64f00d4a1ececb53297f1d9a7be1b10/importlib_metadata-8.7.1.tar.gz", hash = "sha256:49fef1ae6440c182052f407c8d34a68f72efc36db9ca90dc0113398f2fdde8bb", size = 57107, upload-time = "2025-12-21T10:00:19.278Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fa/5e/f8e9a1d23b9c20a551a8a02ea3637b4642e22c2626e3a13a9a29cdea99eb/importlib_metadata-8.7.1-py3-none-any.whl", hash = "sha256:5a1f80bf1daa489495071efbb095d75a634cf28a8bc299581244063b53176151", size = 27865, upload-time = "2025-12-21T10:00:18.329Z" },+]++[[package]]+name = "iniconfig"+version = "2.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },+]++[[package]]+name = "jaraco-classes"+version = "3.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "more-itertools" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/c0/ed4a27bc5571b99e3cff68f8a9fa5b56ff7df1c2251cc715a652ddd26402/jaraco.classes-3.4.0.tar.gz", hash = "sha256:47a024b51d0239c0dd8c8540c6c7f484be3b8fcf0b2d85c13825780d3b3f3acd", size = 11780, upload-time = "2024-03-31T07:27:36.643Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7f/66/b15ce62552d84bbfcec9a4873ab79d993a1dd4edb922cbfccae192bd5b5f/jaraco.classes-3.4.0-py3-none-any.whl", hash = "sha256:f662826b6bed8cace05e7ff873ce0f9283b5c924470fe664fff1c2f00f581790", size = 6777, upload-time = "2024-03-31T07:27:34.792Z" },+]++[[package]]+name = "jaraco-context"+version = "6.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/cb/9c/a788f5bb29c61e456b8ee52ce76dbdd32fd72cd73dd67bc95f42c7a8d13c/jaraco_context-6.1.0.tar.gz", hash = "sha256:129a341b0a85a7db7879e22acd66902fda67882db771754574338898b2d5d86f", size = 15850, upload-time = "2026-01-13T02:53:53.847Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8d/48/aa685dbf1024c7bd82bede569e3a85f82c32fd3d79ba5fea578f0159571a/jaraco_context-6.1.0-py3-none-any.whl", hash = "sha256:a43b5ed85815223d0d3cfdb6d7ca0d2bc8946f28f30b6f3216bda070f68badda", size = 7065, upload-time = "2026-01-13T02:53:53.031Z" },+]++[[package]]+name = "jaraco-functools"+version = "4.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "more-itertools" },+]+sdist = { url = "https://files.pythonhosted.org/packages/0f/27/056e0638a86749374d6f57d0b0db39f29509cce9313cf91bdc0ac4d91084/jaraco_functools-4.4.0.tar.gz", hash = "sha256:da21933b0417b89515562656547a77b4931f98176eb173644c0d35032a33d6bb", size = 19943, upload-time = "2025-12-21T09:29:43.6Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fd/c4/813bb09f0985cb21e959f21f2464169eca882656849adf727ac7bb7e1767/jaraco_functools-4.4.0-py3-none-any.whl", hash = "sha256:9eec1e36f45c818d9bf307c8948eb03b2b56cd44087b3cdc989abca1f20b9176", size = 10481, upload-time = "2025-12-21T09:29:42.27Z" },+]++[[package]]+name = "jeepney"+version = "0.9.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/7b/6f/357efd7602486741aa73ffc0617fb310a29b588ed0fd69c2399acbb85b0c/jeepney-0.9.0.tar.gz", hash = "sha256:cf0e9e845622b81e4a28df94c40345400256ec608d0e55bb8a3feaa9163f5732", size = 106758, upload-time = "2025-02-27T18:51:01.684Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b2/a3/e137168c9c44d18eff0376253da9f1e9234d0239e0ee230d2fee6cea8e55/jeepney-0.9.0-py3-none-any.whl", hash = "sha256:97e5714520c16fc0a45695e5365a2e11b81ea79bba796e26f9f1d178cb182683", size = 49010, upload-time = "2025-02-27T18:51:00.104Z" },+]++[[package]]+name = "jiter"+version = "0.13.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0d/5e/4ec91646aee381d01cdb9974e30882c9cd3b8c5d1079d6b5ff4af522439a/jiter-0.13.0.tar.gz", hash = "sha256:f2839f9c2c7e2dffc1bc5929a510e14ce0a946be9365fd1219e7ef342dae14f4", size = 164847, upload-time = "2026-02-02T12:37:56.441Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/91/9c/7ee5a6ff4b9991e1a45263bfc46731634c4a2bde27dfda6c8251df2d958c/jiter-0.13.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:1f8a55b848cbabf97d861495cd65f1e5c590246fabca8b48e1747c4dfc8f85bf", size = 306897, upload-time = "2026-02-02T12:36:16.748Z" },+ { url = "https://files.pythonhosted.org/packages/7c/02/be5b870d1d2be5dd6a91bdfb90f248fbb7dcbd21338f092c6b89817c3dbf/jiter-0.13.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f556aa591c00f2c45eb1b89f68f52441a016034d18b65da60e2d2875bbbf344a", size = 317507, upload-time = "2026-02-02T12:36:18.351Z" },+ { url = "https://files.pythonhosted.org/packages/da/92/b25d2ec333615f5f284f3a4024f7ce68cfa0604c322c6808b2344c7f5d2b/jiter-0.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f7e1d61da332ec412350463891923f960c3073cf1aae93b538f0bb4c8cd46efb", size = 350560, upload-time = "2026-02-02T12:36:19.746Z" },+ { url = "https://files.pythonhosted.org/packages/be/ec/74dcb99fef0aca9fbe56b303bf79f6bd839010cb18ad41000bf6cc71eec0/jiter-0.13.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3097d665a27bc96fd9bbf7f86178037db139f319f785e4757ce7ccbf390db6c2", size = 363232, upload-time = "2026-02-02T12:36:21.243Z" },+ { url = "https://files.pythonhosted.org/packages/1b/37/f17375e0bb2f6a812d4dd92d7616e41917f740f3e71343627da9db2824ce/jiter-0.13.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9d01ecc3a8cbdb6f25a37bd500510550b64ddf9f7d64a107d92f3ccb25035d0f", size = 483727, upload-time = "2026-02-02T12:36:22.688Z" },+ { url = "https://files.pythonhosted.org/packages/77/d2/a71160a5ae1a1e66c1395b37ef77da67513b0adba73b993a27fbe47eb048/jiter-0.13.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ed9bbc30f5d60a3bdf63ae76beb3f9db280d7f195dfcfa61af792d6ce912d159", size = 370799, upload-time = "2026-02-02T12:36:24.106Z" },+ { url = "https://files.pythonhosted.org/packages/01/99/ed5e478ff0eb4e8aa5fd998f9d69603c9fd3f32de3bd16c2b1194f68361c/jiter-0.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:98fbafb6e88256f4454de33c1f40203d09fc33ed19162a68b3b257b29ca7f663", size = 359120, upload-time = "2026-02-02T12:36:25.519Z" },+ { url = "https://files.pythonhosted.org/packages/16/be/7ffd08203277a813f732ba897352797fa9493faf8dc7995b31f3d9cb9488/jiter-0.13.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5467696f6b827f1116556cb0db620440380434591e93ecee7fd14d1a491b6daa", size = 390664, upload-time = "2026-02-02T12:36:26.866Z" },+ { url = "https://files.pythonhosted.org/packages/d1/84/e0787856196d6d346264d6dcccb01f741e5f0bd014c1d9a2ebe149caf4f3/jiter-0.13.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:2d08c9475d48b92892583df9da592a0e2ac49bcd41fae1fec4f39ba6cf107820", size = 513543, upload-time = "2026-02-02T12:36:28.217Z" },+ { url = "https://files.pythonhosted.org/packages/65/50/ecbd258181c4313cf79bca6c88fb63207d04d5bf5e4f65174114d072aa55/jiter-0.13.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:aed40e099404721d7fcaf5b89bd3b4568a4666358bcac7b6b15c09fb6252ab68", size = 547262, upload-time = "2026-02-02T12:36:29.678Z" },+ { url = "https://files.pythonhosted.org/packages/27/da/68f38d12e7111d2016cd198161b36e1f042bd115c169255bcb7ec823a3bf/jiter-0.13.0-cp313-cp313-win32.whl", hash = "sha256:36ebfbcffafb146d0e6ffb3e74d51e03d9c35ce7c625c8066cdbfc7b953bdc72", size = 200630, upload-time = "2026-02-02T12:36:31.808Z" },+ { url = "https://files.pythonhosted.org/packages/25/65/3bd1a972c9a08ecd22eb3b08a95d1941ebe6938aea620c246cf426ae09c2/jiter-0.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:8d76029f077379374cf0dbc78dbe45b38dec4a2eb78b08b5194ce836b2517afc", size = 202602, upload-time = "2026-02-02T12:36:33.679Z" },+ { url = "https://files.pythonhosted.org/packages/15/fe/13bd3678a311aa67686bb303654792c48206a112068f8b0b21426eb6851e/jiter-0.13.0-cp313-cp313-win_arm64.whl", hash = "sha256:bb7613e1a427cfcb6ea4544f9ac566b93d5bf67e0d48c787eca673ff9c9dff2b", size = 185939, upload-time = "2026-02-02T12:36:35.065Z" },+ { url = "https://files.pythonhosted.org/packages/49/19/a929ec002ad3228bc97ca01dbb14f7632fffdc84a95ec92ceaf4145688ae/jiter-0.13.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:fa476ab5dd49f3bf3a168e05f89358c75a17608dbabb080ef65f96b27c19ab10", size = 316616, upload-time = "2026-02-02T12:36:36.579Z" },+ { url = "https://files.pythonhosted.org/packages/52/56/d19a9a194afa37c1728831e5fb81b7722c3de18a3109e8f282bfc23e587a/jiter-0.13.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ade8cb6ff5632a62b7dbd4757d8c5573f7a2e9ae285d6b5b841707d8363205ef", size = 346850, upload-time = "2026-02-02T12:36:38.058Z" },+ { url = "https://files.pythonhosted.org/packages/36/4a/94e831c6bf287754a8a019cb966ed39ff8be6ab78cadecf08df3bb02d505/jiter-0.13.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9950290340acc1adaded363edd94baebcee7dabdfa8bee4790794cd5cfad2af6", size = 358551, upload-time = "2026-02-02T12:36:39.417Z" },+ { url = "https://files.pythonhosted.org/packages/a2/ec/a4c72c822695fa80e55d2b4142b73f0012035d9fcf90eccc56bc060db37c/jiter-0.13.0-cp313-cp313t-win_amd64.whl", hash = "sha256:2b4972c6df33731aac0742b64fd0d18e0a69bc7d6e03108ce7d40c85fd9e3e6d", size = 201950, upload-time = "2026-02-02T12:36:40.791Z" },+ { url = "https://files.pythonhosted.org/packages/b6/00/393553ec27b824fbc29047e9c7cd4a3951d7fbe4a76743f17e44034fa4e4/jiter-0.13.0-cp313-cp313t-win_arm64.whl", hash = "sha256:701a1e77d1e593c1b435315ff625fd071f0998c5f02792038a5ca98899261b7d", size = 185852, upload-time = "2026-02-02T12:36:42.077Z" },+ { url = "https://files.pythonhosted.org/packages/6e/f5/f1997e987211f6f9bd71b8083047b316208b4aca0b529bb5f8c96c89ef3e/jiter-0.13.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:cc5223ab19fe25e2f0bf2643204ad7318896fe3729bf12fde41b77bfc4fafff0", size = 308804, upload-time = "2026-02-02T12:36:43.496Z" },+ { url = "https://files.pythonhosted.org/packages/cd/8f/5482a7677731fd44881f0204981ce2d7175db271f82cba2085dd2212e095/jiter-0.13.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9776ebe51713acf438fd9b4405fcd86893ae5d03487546dae7f34993217f8a91", size = 318787, upload-time = "2026-02-02T12:36:45.071Z" },+ { url = "https://files.pythonhosted.org/packages/f3/b9/7257ac59778f1cd025b26a23c5520a36a424f7f1b068f2442a5b499b7464/jiter-0.13.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:879e768938e7b49b5e90b7e3fecc0dbec01b8cb89595861fb39a8967c5220d09", size = 353880, upload-time = "2026-02-02T12:36:47.365Z" },+ { url = "https://files.pythonhosted.org/packages/c3/87/719eec4a3f0841dad99e3d3604ee4cba36af4419a76f3cb0b8e2e691ad67/jiter-0.13.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:682161a67adea11e3aae9038c06c8b4a9a71023228767477d683f69903ebc607", size = 366702, upload-time = "2026-02-02T12:36:48.871Z" },+ { url = "https://files.pythonhosted.org/packages/d2/65/415f0a75cf6921e43365a1bc227c565cb949caca8b7532776e430cbaa530/jiter-0.13.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a13b68cd1cd8cc9de8f244ebae18ccb3e4067ad205220ef324c39181e23bbf66", size = 486319, upload-time = "2026-02-02T12:36:53.006Z" },+ { url = "https://files.pythonhosted.org/packages/54/a2/9e12b48e82c6bbc6081fd81abf915e1443add1b13d8fc586e1d90bb02bb8/jiter-0.13.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:87ce0f14c6c08892b610686ae8be350bf368467b6acd5085a5b65441e2bf36d2", size = 372289, upload-time = "2026-02-02T12:36:54.593Z" },+ { url = "https://files.pythonhosted.org/packages/4e/c1/e4693f107a1789a239c759a432e9afc592366f04e901470c2af89cfd28e1/jiter-0.13.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c365005b05505a90d1c47856420980d0237adf82f70c4aff7aebd3c1cc143ad", size = 360165, upload-time = "2026-02-02T12:36:56.112Z" },+ { url = "https://files.pythonhosted.org/packages/17/08/91b9ea976c1c758240614bd88442681a87672eebc3d9a6dde476874e706b/jiter-0.13.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1317fdffd16f5873e46ce27d0e0f7f4f90f0cdf1d86bf6abeaea9f63ca2c401d", size = 389634, upload-time = "2026-02-02T12:36:57.495Z" },+ { url = "https://files.pythonhosted.org/packages/18/23/58325ef99390d6d40427ed6005bf1ad54f2577866594bcf13ce55675f87d/jiter-0.13.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:c05b450d37ba0c9e21c77fef1f205f56bcee2330bddca68d344baebfc55ae0df", size = 514933, upload-time = "2026-02-02T12:36:58.909Z" },+ { url = "https://files.pythonhosted.org/packages/5b/25/69f1120c7c395fd276c3996bb8adefa9c6b84c12bb7111e5c6ccdcd8526d/jiter-0.13.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:775e10de3849d0631a97c603f996f518159272db00fdda0a780f81752255ee9d", size = 548842, upload-time = "2026-02-02T12:37:00.433Z" },+ { url = "https://files.pythonhosted.org/packages/18/05/981c9669d86850c5fbb0d9e62bba144787f9fba84546ba43d624ee27ef29/jiter-0.13.0-cp314-cp314-win32.whl", hash = "sha256:632bf7c1d28421c00dd8bbb8a3bac5663e1f57d5cd5ed962bce3c73bf62608e6", size = 202108, upload-time = "2026-02-02T12:37:01.718Z" },+ { url = "https://files.pythonhosted.org/packages/8d/96/cdcf54dd0b0341db7d25413229888a346c7130bd20820530905fdb65727b/jiter-0.13.0-cp314-cp314-win_amd64.whl", hash = "sha256:f22ef501c3f87ede88f23f9b11e608581c14f04db59b6a801f354397ae13739f", size = 204027, upload-time = "2026-02-02T12:37:03.075Z" },+ { url = "https://files.pythonhosted.org/packages/fb/f9/724bcaaab7a3cd727031fe4f6995cb86c4bd344909177c186699c8dec51a/jiter-0.13.0-cp314-cp314-win_arm64.whl", hash = "sha256:07b75fe09a4ee8e0c606200622e571e44943f47254f95e2436c8bdcaceb36d7d", size = 187199, upload-time = "2026-02-02T12:37:04.414Z" },+ { url = "https://files.pythonhosted.org/packages/62/92/1661d8b9fd6a3d7a2d89831db26fe3c1509a287d83ad7838831c7b7a5c7e/jiter-0.13.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:964538479359059a35fb400e769295d4b315ae61e4105396d355a12f7fef09f0", size = 318423, upload-time = "2026-02-02T12:37:05.806Z" },+ { url = "https://files.pythonhosted.org/packages/4f/3b/f77d342a54d4ebcd128e520fc58ec2f5b30a423b0fd26acdfc0c6fef8e26/jiter-0.13.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e104da1db1c0991b3eaed391ccd650ae8d947eab1480c733e5a3fb28d4313e40", size = 351438, upload-time = "2026-02-02T12:37:07.189Z" },+ { url = "https://files.pythonhosted.org/packages/76/b3/ba9a69f0e4209bd3331470c723c2f5509e6f0482e416b612431a5061ed71/jiter-0.13.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0e3a5f0cde8ff433b8e88e41aa40131455420fb3649a3c7abdda6145f8cb7202", size = 364774, upload-time = "2026-02-02T12:37:08.579Z" },+ { url = "https://files.pythonhosted.org/packages/b3/16/6cdb31fa342932602458dbb631bfbd47f601e03d2e4950740e0b2100b570/jiter-0.13.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:57aab48f40be1db920a582b30b116fe2435d184f77f0e4226f546794cedd9cf0", size = 487238, upload-time = "2026-02-02T12:37:10.066Z" },+ { url = "https://files.pythonhosted.org/packages/ed/b1/956cc7abaca8d95c13aa8d6c9b3f3797241c246cd6e792934cc4c8b250d2/jiter-0.13.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7772115877c53f62beeb8fd853cab692dbc04374ef623b30f997959a4c0e7e95", size = 372892, upload-time = "2026-02-02T12:37:11.656Z" },+ { url = "https://files.pythonhosted.org/packages/26/c4/97ecde8b1e74f67b8598c57c6fccf6df86ea7861ed29da84629cdbba76c4/jiter-0.13.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1211427574b17b633cfceba5040de8081e5abf114f7a7602f73d2e16f9fdaa59", size = 360309, upload-time = "2026-02-02T12:37:13.244Z" },+ { url = "https://files.pythonhosted.org/packages/4b/d7/eabe3cf46715854ccc80be2cd78dd4c36aedeb30751dbf85a1d08c14373c/jiter-0.13.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:7beae3a3d3b5212d3a55d2961db3c292e02e302feb43fce6a3f7a31b90ea6dfe", size = 389607, upload-time = "2026-02-02T12:37:14.881Z" },+ { url = "https://files.pythonhosted.org/packages/df/2d/03963fc0804e6109b82decfb9974eb92df3797fe7222428cae12f8ccaa0c/jiter-0.13.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:e5562a0f0e90a6223b704163ea28e831bd3a9faa3512a711f031611e6b06c939", size = 514986, upload-time = "2026-02-02T12:37:16.326Z" },+ { url = "https://files.pythonhosted.org/packages/f6/6c/8c83b45eb3eb1c1e18d841fe30b4b5bc5619d781267ca9bc03e005d8fd0a/jiter-0.13.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:6c26a424569a59140fb51160a56df13f438a2b0967365e987889186d5fc2f6f9", size = 548756, upload-time = "2026-02-02T12:37:17.736Z" },+ { url = "https://files.pythonhosted.org/packages/47/66/eea81dfff765ed66c68fd2ed8c96245109e13c896c2a5015c7839c92367e/jiter-0.13.0-cp314-cp314t-win32.whl", hash = "sha256:24dc96eca9f84da4131cdf87a95e6ce36765c3b156fc9ae33280873b1c32d5f6", size = 201196, upload-time = "2026-02-02T12:37:19.101Z" },+ { url = "https://files.pythonhosted.org/packages/ff/32/4ac9c7a76402f8f00d00842a7f6b83b284d0cf7c1e9d4227bc95aa6d17fa/jiter-0.13.0-cp314-cp314t-win_amd64.whl", hash = "sha256:0a8d76c7524087272c8ae913f5d9d608bd839154b62c4322ef65723d2e5bb0b8", size = 204215, upload-time = "2026-02-02T12:37:20.495Z" },+ { url = "https://files.pythonhosted.org/packages/f9/8e/7def204fea9f9be8b3c21a6f2dd6c020cf56c7d5ff753e0e23ed7f9ea57e/jiter-0.13.0-cp314-cp314t-win_arm64.whl", hash = "sha256:2c26cf47e2cad140fa23b6d58d435a7c0161f5c514284802f25e87fddfe11024", size = 187152, upload-time = "2026-02-02T12:37:22.124Z" },+]++[[package]]+name = "json-repair"+version = "0.57.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f8/20/ca8779106afa57878092826efcf8d54929092ef5d9ad9d4b9c33ed2718fc/json_repair-0.57.1.tar.gz", hash = "sha256:6bc8e53226c2cb66cad247f130fe9c6b5d2546d9fe9d7c6cd8c351a9f02e3be6", size = 53575, upload-time = "2026-02-08T10:13:53.509Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cc/3e/3062565ae270bb1bc25b2c2d1b66d92064d74899c54ad9523b56d00ff49c/json_repair-0.57.1-py3-none-any.whl", hash = "sha256:f72ee964e35de7f5aa0a1e2f3a1c9a6941eb79b619cc98b1ec64bbbfe1c98ba6", size = 38760, upload-time = "2026-02-08T10:13:51.988Z" },+]++[[package]]+name = "jsonref"+version = "1.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/aa/0d/c1f3277e90ccdb50d33ed5ba1ec5b3f0a242ed8c1b1a85d3afeb68464dca/jsonref-1.1.0.tar.gz", hash = "sha256:32fe8e1d85af0fdefbebce950af85590b22b60f9e95443176adbde4e1ecea552", size = 8814, upload-time = "2023-01-16T16:10:04.455Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0c/ec/e1db9922bceb168197a558a2b8c03a7963f1afe93517ddd3cf99f202f996/jsonref-1.1.0-py3-none-any.whl", hash = "sha256:590dc7773df6c21cbf948b5dac07a72a251db28b0238ceecce0a2abfa8ec30a9", size = 9425, upload-time = "2023-01-16T16:10:02.255Z" },+]++[[package]]+name = "jsonschema"+version = "4.26.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "attrs" },+ { name = "jsonschema-specifications" },+ { name = "referencing" },+ { name = "rpds-py" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b3/fc/e067678238fa451312d4c62bf6e6cf5ec56375422aee02f9cb5f909b3047/jsonschema-4.26.0.tar.gz", hash = "sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326", size = 366583, upload-time = "2026-01-07T13:41:07.246Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/69/90/f63fb5873511e014207a475e2bb4e8b2e570d655b00ac19a9a0ca0a385ee/jsonschema-4.26.0-py3-none-any.whl", hash = "sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce", size = 90630, upload-time = "2026-01-07T13:41:05.306Z" },+]++[[package]]+name = "jsonschema-path"+version = "0.3.4"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pathable" },+ { name = "pyyaml" },+ { name = "referencing" },+ { name = "requests" },+]+sdist = { url = "https://files.pythonhosted.org/packages/6e/45/41ebc679c2a4fced6a722f624c18d658dee42612b83ea24c1caf7c0eb3a8/jsonschema_path-0.3.4.tar.gz", hash = "sha256:8365356039f16cc65fddffafda5f58766e34bebab7d6d105616ab52bc4297001", size = 11159, upload-time = "2025-01-24T14:33:16.547Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/58/3485da8cb93d2f393bce453adeef16896751f14ba3e2024bc21dc9597646/jsonschema_path-0.3.4-py3-none-any.whl", hash = "sha256:f502191fdc2b22050f9a81c9237be9d27145b9001c55842bece5e94e382e52f8", size = 14810, upload-time = "2025-01-24T14:33:14.652Z" },+]++[[package]]+name = "jsonschema-specifications"+version = "2025.9.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "referencing" },+]+sdist = { url = "https://files.pythonhosted.org/packages/19/74/a633ee74eb36c44aa6d1095e7cc5569bebf04342ee146178e2d36600708b/jsonschema_specifications-2025.9.1.tar.gz", hash = "sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d", size = 32855, upload-time = "2025-09-08T01:34:59.186Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/41/45/1a4ed80516f02155c51f51e8cedb3c1902296743db0bbc66608a0db2814f/jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe", size = 18437, upload-time = "2025-09-08T01:34:57.871Z" },+]++[[package]]+name = "keyring"+version = "25.7.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "jaraco-classes" },+ { name = "jaraco-context" },+ { name = "jaraco-functools" },+ { name = "jeepney", marker = "sys_platform == 'linux'" },+ { name = "pywin32-ctypes", marker = "sys_platform == 'win32'" },+ { name = "secretstorage", marker = "sys_platform == 'linux'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/43/4b/674af6ef2f97d56f0ab5153bf0bfa28ccb6c3ed4d1babf4305449668807b/keyring-25.7.0.tar.gz", hash = "sha256:fe01bd85eb3f8fb3dd0405defdeac9a5b4f6f0439edbb3149577f244a2e8245b", size = 63516, upload-time = "2025-11-16T16:26:09.482Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/81/db/e655086b7f3a705df045bf0933bdd9c2f79bb3c97bfef1384598bb79a217/keyring-25.7.0-py3-none-any.whl", hash = "sha256:be4a0b195f149690c166e850609a477c532ddbfbaed96a404d4e43f8d5e2689f", size = 39160, upload-time = "2025-11-16T16:26:08.402Z" },+]++[[package]]+name = "lupa"+version = "2.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b8/1c/191c3e6ec6502e3dbe25a53e27f69a5daeac3e56de1f73c0138224171ead/lupa-2.6.tar.gz", hash = "sha256:9a770a6e89576be3447668d7ced312cd6fd41d3c13c2462c9dc2c2ab570e45d9", size = 7240282, upload-time = "2025-10-24T07:20:29.738Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/28/1d/21176b682ca5469001199d8b95fa1737e29957a3d185186e7a8b55345f2e/lupa-2.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:663a6e58a0f60e7d212017d6678639ac8df0119bc13c2145029dcba084391310", size = 947232, upload-time = "2025-10-24T07:18:27.878Z" },+ { url = "https://files.pythonhosted.org/packages/ce/4c/d327befb684660ca13cf79cd1f1d604331808f9f1b6fb6bf57832f8edf80/lupa-2.6-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:d1f5afda5c20b1f3217a80e9bc1b77037f8a6eb11612fd3ada19065303c8f380", size = 1908625, upload-time = "2025-10-24T07:18:29.944Z" },+ { url = "https://files.pythonhosted.org/packages/66/8e/ad22b0a19454dfd08662237a84c792d6d420d36b061f239e084f29d1a4f3/lupa-2.6-cp313-cp313-macosx_11_0_x86_64.whl", hash = "sha256:26f2b3c085fe76e9119e48c1013c1cccdc1f51585d456858290475aa38e7089e", size = 981057, upload-time = "2025-10-24T07:18:31.553Z" },+ { url = "https://files.pythonhosted.org/packages/5c/48/74859073ab276bd0566c719f9ca0108b0cfc1956ca0d68678d117d47d155/lupa-2.6-cp313-cp313-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl", hash = "sha256:60d2f902c7b96fb8ab98493dcff315e7bb4d0b44dc9dd76eb37de575025d5685", size = 1156227, upload-time = "2025-10-24T07:18:33.981Z" },+ { url = "https://files.pythonhosted.org/packages/09/6c/0e9ded061916877253c2266074060eb71ed99fb21d73c8c114a76725bce2/lupa-2.6-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a02d25dee3a3250967c36590128d9220ae02f2eda166a24279da0b481519cbff", size = 1035752, upload-time = "2025-10-24T07:18:36.32Z" },+ { url = "https://files.pythonhosted.org/packages/dd/ef/f8c32e454ef9f3fe909f6c7d57a39f950996c37a3deb7b391fec7903dab7/lupa-2.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6eae1ee16b886b8914ff292dbefbf2f48abfbdee94b33a88d1d5475e02423203", size = 2069009, upload-time = "2025-10-24T07:18:38.072Z" },+ { url = "https://files.pythonhosted.org/packages/53/dc/15b80c226a5225815a890ee1c11f07968e0aba7a852df41e8ae6fe285063/lupa-2.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b0edd5073a4ee74ab36f74fe61450148e6044f3952b8d21248581f3c5d1a58be", size = 1056301, upload-time = "2025-10-24T07:18:40.165Z" },+ { url = "https://files.pythonhosted.org/packages/31/14/2086c1425c985acfb30997a67e90c39457122df41324d3c179d6ee2292c6/lupa-2.6-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:0c53ee9f22a8a17e7d4266ad48e86f43771951797042dd51d1494aaa4f5f3f0a", size = 1170673, upload-time = "2025-10-24T07:18:42.426Z" },+ { url = "https://files.pythonhosted.org/packages/10/e5/b216c054cf86576c0191bf9a9f05de6f7e8e07164897d95eea0078dca9b2/lupa-2.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:de7c0f157a9064a400d828789191a96da7f4ce889969a588b87ec80de9b14772", size = 2162227, upload-time = "2025-10-24T07:18:46.112Z" },+ { url = "https://files.pythonhosted.org/packages/59/2f/33ecb5bedf4f3bc297ceacb7f016ff951331d352f58e7e791589609ea306/lupa-2.6-cp313-cp313-win32.whl", hash = "sha256:ee9523941ae0a87b5b703417720c5d78f72d2f5bc23883a2ea80a949a3ed9e75", size = 1419558, upload-time = "2025-10-24T07:18:48.371Z" },+ { url = "https://files.pythonhosted.org/packages/f9/b4/55e885834c847ea610e111d87b9ed4768f0afdaeebc00cd46810f25029f6/lupa-2.6-cp313-cp313-win_amd64.whl", hash = "sha256:b1335a5835b0a25ebdbc75cf0bda195e54d133e4d994877ef025e218c2e59db9", size = 1683424, upload-time = "2025-10-24T07:18:50.976Z" },+ { url = "https://files.pythonhosted.org/packages/66/9d/d9427394e54d22a35d1139ef12e845fd700d4872a67a34db32516170b746/lupa-2.6-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:dcb6d0a3264873e1653bc188499f48c1fb4b41a779e315eba45256cfe7bc33c1", size = 953818, upload-time = "2025-10-24T07:18:53.378Z" },+ { url = "https://files.pythonhosted.org/packages/10/41/27bbe81953fb2f9ecfced5d9c99f85b37964cfaf6aa8453bb11283983721/lupa-2.6-cp314-cp314-macosx_11_0_universal2.whl", hash = "sha256:a37e01f2128f8c36106726cb9d360bac087d58c54b4522b033cc5691c584db18", size = 1915850, upload-time = "2025-10-24T07:18:55.259Z" },+ { url = "https://files.pythonhosted.org/packages/a3/98/f9ff60db84a75ba8725506bbf448fb085bc77868a021998ed2a66d920568/lupa-2.6-cp314-cp314-macosx_11_0_x86_64.whl", hash = "sha256:458bd7e9ff3c150b245b0fcfbb9bd2593d1152ea7f0a7b91c1d185846da033fe", size = 982344, upload-time = "2025-10-24T07:18:57.05Z" },+ { url = "https://files.pythonhosted.org/packages/41/f7/f39e0f1c055c3b887d86b404aaf0ca197b5edfd235a8b81b45b25bac7fc3/lupa-2.6-cp314-cp314-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl", hash = "sha256:052ee82cac5206a02df77119c325339acbc09f5ce66967f66a2e12a0f3211cad", size = 1156543, upload-time = "2025-10-24T07:18:59.251Z" },+ { url = "https://files.pythonhosted.org/packages/9e/9c/59e6cffa0d672d662ae17bd7ac8ecd2c89c9449dee499e3eb13ca9cd10d9/lupa-2.6-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:96594eca3c87dd07938009e95e591e43d554c1dbd0385be03c100367141db5a8", size = 1047974, upload-time = "2025-10-24T07:19:01.449Z" },+ { url = "https://files.pythonhosted.org/packages/23/c6/a04e9cef7c052717fcb28fb63b3824802488f688391895b618e39be0f684/lupa-2.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e8faddd9d198688c8884091173a088a8e920ecc96cda2ffed576a23574c4b3f6", size = 2073458, upload-time = "2025-10-24T07:19:03.369Z" },+ { url = "https://files.pythonhosted.org/packages/e6/10/824173d10f38b51fc77785228f01411b6ca28826ce27404c7c912e0e442c/lupa-2.6-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:daebb3a6b58095c917e76ba727ab37b27477fb926957c825205fbda431552134", size = 1067683, upload-time = "2025-10-24T07:19:06.2Z" },+ { url = "https://files.pythonhosted.org/packages/b6/dc/9692fbcf3c924d9c4ece2d8d2f724451ac2e09af0bd2a782db1cef34e799/lupa-2.6-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:f3154e68972befe0f81564e37d8142b5d5d79931a18309226a04ec92487d4ea3", size = 1171892, upload-time = "2025-10-24T07:19:08.544Z" },+ { url = "https://files.pythonhosted.org/packages/84/ff/e318b628d4643c278c96ab3ddea07fc36b075a57383c837f5b11e537ba9d/lupa-2.6-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e4dadf77b9fedc0bfa53417cc28dc2278a26d4cbd95c29f8927ad4d8fe0a7ef9", size = 2166641, upload-time = "2025-10-24T07:19:10.485Z" },+ { url = "https://files.pythonhosted.org/packages/12/f7/a6f9ec2806cf2d50826980cdb4b3cffc7691dc6f95e13cc728846d5cb793/lupa-2.6-cp314-cp314-win32.whl", hash = "sha256:cb34169c6fa3bab3e8ac58ca21b8a7102f6a94b6a5d08d3636312f3f02fafd8f", size = 1456857, upload-time = "2025-10-24T07:19:37.989Z" },+ { url = "https://files.pythonhosted.org/packages/c5/de/df71896f25bdc18360fdfa3b802cd7d57d7fede41a0e9724a4625b412c85/lupa-2.6-cp314-cp314-win_amd64.whl", hash = "sha256:b74f944fe46c421e25d0f8692aef1e842192f6f7f68034201382ac440ef9ea67", size = 1731191, upload-time = "2025-10-24T07:19:40.281Z" },+ { url = "https://files.pythonhosted.org/packages/47/3c/a1f23b01c54669465f5f4c4083107d496fbe6fb45998771420e9aadcf145/lupa-2.6-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0e21b716408a21ab65723f8841cf7f2f37a844b7a965eeabb785e27fca4099cf", size = 999343, upload-time = "2025-10-24T07:19:12.519Z" },+ { url = "https://files.pythonhosted.org/packages/c5/6d/501994291cb640bfa2ccf7f554be4e6914afa21c4026bd01bff9ca8aac57/lupa-2.6-cp314-cp314t-macosx_11_0_universal2.whl", hash = "sha256:589db872a141bfff828340079bbdf3e9a31f2689f4ca0d88f97d9e8c2eae6142", size = 2000730, upload-time = "2025-10-24T07:19:14.869Z" },+ { url = "https://files.pythonhosted.org/packages/53/a5/457ffb4f3f20469956c2d4c4842a7675e884efc895b2f23d126d23e126cc/lupa-2.6-cp314-cp314t-macosx_11_0_x86_64.whl", hash = "sha256:cd852a91a4a9d4dcbb9a58100f820a75a425703ec3e3f049055f60b8533b7953", size = 1021553, upload-time = "2025-10-24T07:19:17.123Z" },+ { url = "https://files.pythonhosted.org/packages/51/6b/36bb5a5d0960f2a5c7c700e0819abb76fd9bf9c1d8a66e5106416d6e9b14/lupa-2.6-cp314-cp314t-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl", hash = "sha256:0334753be028358922415ca97a64a3048e4ed155413fc4eaf87dd0a7e2752983", size = 1133275, upload-time = "2025-10-24T07:19:20.51Z" },+ { url = "https://files.pythonhosted.org/packages/19/86/202ff4429f663013f37d2229f6176ca9f83678a50257d70f61a0a97281bf/lupa-2.6-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:661d895cd38c87658a34780fac54a690ec036ead743e41b74c3fb81a9e65a6aa", size = 1038441, upload-time = "2025-10-24T07:19:22.509Z" },+ { url = "https://files.pythonhosted.org/packages/a7/42/d8125f8e420714e5b52e9c08d88b5329dfb02dcca731b4f21faaee6cc5b5/lupa-2.6-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6aa58454ccc13878cc177c62529a2056be734da16369e451987ff92784994ca7", size = 2058324, upload-time = "2025-10-24T07:19:24.979Z" },+ { url = "https://files.pythonhosted.org/packages/2b/2c/47bf8b84059876e877a339717ddb595a4a7b0e8740bacae78ba527562e1c/lupa-2.6-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:1425017264e470c98022bba8cff5bd46d054a827f5df6b80274f9cc71dafd24f", size = 1060250, upload-time = "2025-10-24T07:19:27.262Z" },+ { url = "https://files.pythonhosted.org/packages/c2/06/d88add2b6406ca1bdec99d11a429222837ca6d03bea42ca75afa169a78cb/lupa-2.6-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:224af0532d216e3105f0a127410f12320f7c5f1aa0300bdf9646b8d9afb0048c", size = 1151126, upload-time = "2025-10-24T07:19:29.522Z" },+ { url = "https://files.pythonhosted.org/packages/b4/a0/89e6a024c3b4485b89ef86881c9d55e097e7cb0bdb74efb746f2fa6a9a76/lupa-2.6-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:9abb98d5a8fd27c8285302e82199f0e56e463066f88f619d6594a450bf269d80", size = 2153693, upload-time = "2025-10-24T07:19:31.379Z" },+ { url = "https://files.pythonhosted.org/packages/b6/36/a0f007dc58fc1bbf51fb85dcc82fcb1f21b8c4261361de7dab0e3d8521ef/lupa-2.6-cp314-cp314t-win32.whl", hash = "sha256:1849efeba7a8f6fb8aa2c13790bee988fd242ae404bd459509640eeea3d1e291", size = 1590104, upload-time = "2025-10-24T07:19:33.514Z" },+ { url = "https://files.pythonhosted.org/packages/7d/5e/db903ce9cf82c48d6b91bf6d63ae4c8d0d17958939a4e04ba6b9f38b8643/lupa-2.6-cp314-cp314t-win_amd64.whl", hash = "sha256:fc1498d1a4fc028bc521c26d0fad4ca00ed63b952e32fb95949bda76a04bad52", size = 1913818, upload-time = "2025-10-24T07:19:36.039Z" },+]++[[package]]+name = "lxml"+version = "6.0.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/aa/88/262177de60548e5a2bfc46ad28232c9e9cbde697bd94132aeb80364675cb/lxml-6.0.2.tar.gz", hash = "sha256:cd79f3367bd74b317dda655dc8fcfa304d9eb6e4fb06b7168c5cf27f96e0cd62", size = 4073426, upload-time = "2025-09-22T04:04:59.287Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/53/fd/4e8f0540608977aea078bf6d79f128e0e2c2bba8af1acf775c30baa70460/lxml-6.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:9b33d21594afab46f37ae58dfadd06636f154923c4e8a4d754b0127554eb2e77", size = 8648494, upload-time = "2025-09-22T04:01:54.242Z" },+ { url = "https://files.pythonhosted.org/packages/5d/f4/2a94a3d3dfd6c6b433501b8d470a1960a20ecce93245cf2db1706adf6c19/lxml-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:6c8963287d7a4c5c9a432ff487c52e9c5618667179c18a204bdedb27310f022f", size = 4661146, upload-time = "2025-09-22T04:01:56.282Z" },+ { url = "https://files.pythonhosted.org/packages/25/2e/4efa677fa6b322013035d38016f6ae859d06cac67437ca7dc708a6af7028/lxml-6.0.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1941354d92699fb5ffe6ed7b32f9649e43c2feb4b97205f75866f7d21aa91452", size = 4946932, upload-time = "2025-09-22T04:01:58.989Z" },+ { url = "https://files.pythonhosted.org/packages/ce/0f/526e78a6d38d109fdbaa5049c62e1d32fdd70c75fb61c4eadf3045d3d124/lxml-6.0.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bb2f6ca0ae2d983ded09357b84af659c954722bbf04dea98030064996d156048", size = 5100060, upload-time = "2025-09-22T04:02:00.812Z" },+ { url = "https://files.pythonhosted.org/packages/81/76/99de58d81fa702cc0ea7edae4f4640416c2062813a00ff24bd70ac1d9c9b/lxml-6.0.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eb2a12d704f180a902d7fa778c6d71f36ceb7b0d317f34cdc76a5d05aa1dd1df", size = 5019000, upload-time = "2025-09-22T04:02:02.671Z" },+ { url = "https://files.pythonhosted.org/packages/b5/35/9e57d25482bc9a9882cb0037fdb9cc18f4b79d85df94fa9d2a89562f1d25/lxml-6.0.2-cp313-cp313-manylinux_2_26_i686.manylinux_2_28_i686.whl", hash = "sha256:6ec0e3f745021bfed19c456647f0298d60a24c9ff86d9d051f52b509663feeb1", size = 5348496, upload-time = "2025-09-22T04:02:04.904Z" },+ { url = "https://files.pythonhosted.org/packages/a6/8e/cb99bd0b83ccc3e8f0f528e9aa1f7a9965dfec08c617070c5db8d63a87ce/lxml-6.0.2-cp313-cp313-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:846ae9a12d54e368933b9759052d6206a9e8b250291109c48e350c1f1f49d916", size = 5643779, upload-time = "2025-09-22T04:02:06.689Z" },+ { url = "https://files.pythonhosted.org/packages/d0/34/9e591954939276bb679b73773836c6684c22e56d05980e31d52a9a8deb18/lxml-6.0.2-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ef9266d2aa545d7374938fb5c484531ef5a2ec7f2d573e62f8ce722c735685fd", size = 5244072, upload-time = "2025-09-22T04:02:08.587Z" },+ { url = "https://files.pythonhosted.org/packages/8d/27/b29ff065f9aaca443ee377aff699714fcbffb371b4fce5ac4ca759e436d5/lxml-6.0.2-cp313-cp313-manylinux_2_31_armv7l.whl", hash = "sha256:4077b7c79f31755df33b795dc12119cb557a0106bfdab0d2c2d97bd3cf3dffa6", size = 4718675, upload-time = "2025-09-22T04:02:10.783Z" },+ { url = "https://files.pythonhosted.org/packages/2b/9f/f756f9c2cd27caa1a6ef8c32ae47aadea697f5c2c6d07b0dae133c244fbe/lxml-6.0.2-cp313-cp313-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a7c5d5e5f1081955358533be077166ee97ed2571d6a66bdba6ec2f609a715d1a", size = 5255171, upload-time = "2025-09-22T04:02:12.631Z" },+ { url = "https://files.pythonhosted.org/packages/61/46/bb85ea42d2cb1bd8395484fd72f38e3389611aa496ac7772da9205bbda0e/lxml-6.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:8f8d0cbd0674ee89863a523e6994ac25fd5be9c8486acfc3e5ccea679bad2679", size = 5057175, upload-time = "2025-09-22T04:02:14.718Z" },+ { url = "https://files.pythonhosted.org/packages/95/0c/443fc476dcc8e41577f0af70458c50fe299a97bb6b7505bb1ae09aa7f9ac/lxml-6.0.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:2cbcbf6d6e924c28f04a43f3b6f6e272312a090f269eff68a2982e13e5d57659", size = 4785688, upload-time = "2025-09-22T04:02:16.957Z" },+ { url = "https://files.pythonhosted.org/packages/48/78/6ef0b359d45bb9697bc5a626e1992fa5d27aa3f8004b137b2314793b50a0/lxml-6.0.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:dfb874cfa53340009af6bdd7e54ebc0d21012a60a4e65d927c2e477112e63484", size = 5660655, upload-time = "2025-09-22T04:02:18.815Z" },+ { url = "https://files.pythonhosted.org/packages/ff/ea/e1d33808f386bc1339d08c0dcada6e4712d4ed8e93fcad5f057070b7988a/lxml-6.0.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:fb8dae0b6b8b7f9e96c26fdd8121522ce5de9bb5538010870bd538683d30e9a2", size = 5247695, upload-time = "2025-09-22T04:02:20.593Z" },+ { url = "https://files.pythonhosted.org/packages/4f/47/eba75dfd8183673725255247a603b4ad606f4ae657b60c6c145b381697da/lxml-6.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:358d9adae670b63e95bc59747c72f4dc97c9ec58881d4627fe0120da0f90d314", size = 5269841, upload-time = "2025-09-22T04:02:22.489Z" },+ { url = "https://files.pythonhosted.org/packages/76/04/5c5e2b8577bc936e219becb2e98cdb1aca14a4921a12995b9d0c523502ae/lxml-6.0.2-cp313-cp313-win32.whl", hash = "sha256:e8cd2415f372e7e5a789d743d133ae474290a90b9023197fd78f32e2dc6873e2", size = 3610700, upload-time = "2025-09-22T04:02:24.465Z" },+ { url = "https://files.pythonhosted.org/packages/fe/0a/4643ccc6bb8b143e9f9640aa54e38255f9d3b45feb2cbe7ae2ca47e8782e/lxml-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:b30d46379644fbfc3ab81f8f82ae4de55179414651f110a1514f0b1f8f6cb2d7", size = 4010347, upload-time = "2025-09-22T04:02:26.286Z" },+ { url = "https://files.pythonhosted.org/packages/31/ef/dcf1d29c3f530577f61e5fe2f1bd72929acf779953668a8a47a479ae6f26/lxml-6.0.2-cp313-cp313-win_arm64.whl", hash = "sha256:13dcecc9946dca97b11b7c40d29fba63b55ab4170d3c0cf8c0c164343b9bfdcf", size = 3671248, upload-time = "2025-09-22T04:02:27.918Z" },+ { url = "https://files.pythonhosted.org/packages/03/15/d4a377b385ab693ce97b472fe0c77c2b16ec79590e688b3ccc71fba19884/lxml-6.0.2-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:b0c732aa23de8f8aec23f4b580d1e52905ef468afb4abeafd3fec77042abb6fe", size = 8659801, upload-time = "2025-09-22T04:02:30.113Z" },+ { url = "https://files.pythonhosted.org/packages/c8/e8/c128e37589463668794d503afaeb003987373c5f94d667124ffd8078bbd9/lxml-6.0.2-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:4468e3b83e10e0317a89a33d28f7aeba1caa4d1a6fd457d115dd4ffe90c5931d", size = 4659403, upload-time = "2025-09-22T04:02:32.119Z" },+ { url = "https://files.pythonhosted.org/packages/00/ce/74903904339decdf7da7847bb5741fc98a5451b42fc419a86c0c13d26fe2/lxml-6.0.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:abd44571493973bad4598a3be7e1d807ed45aa2adaf7ab92ab7c62609569b17d", size = 4966974, upload-time = "2025-09-22T04:02:34.155Z" },+ { url = "https://files.pythonhosted.org/packages/1f/d3/131dec79ce61c5567fecf82515bd9bc36395df42501b50f7f7f3bd065df0/lxml-6.0.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:370cd78d5855cfbffd57c422851f7d3864e6ae72d0da615fca4dad8c45d375a5", size = 5102953, upload-time = "2025-09-22T04:02:36.054Z" },+ { url = "https://files.pythonhosted.org/packages/3a/ea/a43ba9bb750d4ffdd885f2cd333572f5bb900cd2408b67fdda07e85978a0/lxml-6.0.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:901e3b4219fa04ef766885fb40fa516a71662a4c61b80c94d25336b4934b71c0", size = 5055054, upload-time = "2025-09-22T04:02:38.154Z" },+ { url = "https://files.pythonhosted.org/packages/60/23/6885b451636ae286c34628f70a7ed1fcc759f8d9ad382d132e1c8d3d9bfd/lxml-6.0.2-cp314-cp314-manylinux_2_26_i686.manylinux_2_28_i686.whl", hash = "sha256:a4bf42d2e4cf52c28cc1812d62426b9503cdb0c87a6de81442626aa7d69707ba", size = 5352421, upload-time = "2025-09-22T04:02:40.413Z" },+ { url = "https://files.pythonhosted.org/packages/48/5b/fc2ddfc94ddbe3eebb8e9af6e3fd65e2feba4967f6a4e9683875c394c2d8/lxml-6.0.2-cp314-cp314-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b2c7fdaa4d7c3d886a42534adec7cfac73860b89b4e5298752f60aa5984641a0", size = 5673684, upload-time = "2025-09-22T04:02:42.288Z" },+ { url = "https://files.pythonhosted.org/packages/29/9c/47293c58cc91769130fbf85531280e8cc7868f7fbb6d92f4670071b9cb3e/lxml-6.0.2-cp314-cp314-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:98a5e1660dc7de2200b00d53fa00bcd3c35a3608c305d45a7bbcaf29fa16e83d", size = 5252463, upload-time = "2025-09-22T04:02:44.165Z" },+ { url = "https://files.pythonhosted.org/packages/9b/da/ba6eceb830c762b48e711ded880d7e3e89fc6c7323e587c36540b6b23c6b/lxml-6.0.2-cp314-cp314-manylinux_2_31_armv7l.whl", hash = "sha256:dc051506c30b609238d79eda75ee9cab3e520570ec8219844a72a46020901e37", size = 4698437, upload-time = "2025-09-22T04:02:46.524Z" },+ { url = "https://files.pythonhosted.org/packages/a5/24/7be3f82cb7990b89118d944b619e53c656c97dc89c28cfb143fdb7cd6f4d/lxml-6.0.2-cp314-cp314-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8799481bbdd212470d17513a54d568f44416db01250f49449647b5ab5b5dccb9", size = 5269890, upload-time = "2025-09-22T04:02:48.812Z" },+ { url = "https://files.pythonhosted.org/packages/1b/bd/dcfb9ea1e16c665efd7538fc5d5c34071276ce9220e234217682e7d2c4a5/lxml-6.0.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9261bb77c2dab42f3ecd9103951aeca2c40277701eb7e912c545c1b16e0e4917", size = 5097185, upload-time = "2025-09-22T04:02:50.746Z" },+ { url = "https://files.pythonhosted.org/packages/21/04/a60b0ff9314736316f28316b694bccbbabe100f8483ad83852d77fc7468e/lxml-6.0.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:65ac4a01aba353cfa6d5725b95d7aed6356ddc0a3cd734de00124d285b04b64f", size = 4745895, upload-time = "2025-09-22T04:02:52.968Z" },+ { url = "https://files.pythonhosted.org/packages/d6/bd/7d54bd1846e5a310d9c715921c5faa71cf5c0853372adf78aee70c8d7aa2/lxml-6.0.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:b22a07cbb82fea98f8a2fd814f3d1811ff9ed76d0fc6abc84eb21527596e7cc8", size = 5695246, upload-time = "2025-09-22T04:02:54.798Z" },+ { url = "https://files.pythonhosted.org/packages/fd/32/5643d6ab947bc371da21323acb2a6e603cedbe71cb4c99c8254289ab6f4e/lxml-6.0.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:d759cdd7f3e055d6bc8d9bec3ad905227b2e4c785dc16c372eb5b5e83123f48a", size = 5260797, upload-time = "2025-09-22T04:02:57.058Z" },+ { url = "https://files.pythonhosted.org/packages/33/da/34c1ec4cff1eea7d0b4cd44af8411806ed943141804ac9c5d565302afb78/lxml-6.0.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:945da35a48d193d27c188037a05fec5492937f66fb1958c24fc761fb9d40d43c", size = 5277404, upload-time = "2025-09-22T04:02:58.966Z" },+ { url = "https://files.pythonhosted.org/packages/82/57/4eca3e31e54dc89e2c3507e1cd411074a17565fa5ffc437c4ae0a00d439e/lxml-6.0.2-cp314-cp314-win32.whl", hash = "sha256:be3aaa60da67e6153eb15715cc2e19091af5dc75faef8b8a585aea372507384b", size = 3670072, upload-time = "2025-09-22T04:03:38.05Z" },+ { url = "https://files.pythonhosted.org/packages/e3/e0/c96cf13eccd20c9421ba910304dae0f619724dcf1702864fd59dd386404d/lxml-6.0.2-cp314-cp314-win_amd64.whl", hash = "sha256:fa25afbadead523f7001caf0c2382afd272c315a033a7b06336da2637d92d6ed", size = 4080617, upload-time = "2025-09-22T04:03:39.835Z" },+ { url = "https://files.pythonhosted.org/packages/d5/5d/b3f03e22b3d38d6f188ef044900a9b29b2fe0aebb94625ce9fe244011d34/lxml-6.0.2-cp314-cp314-win_arm64.whl", hash = "sha256:063eccf89df5b24e361b123e257e437f9e9878f425ee9aae3144c77faf6da6d8", size = 3754930, upload-time = "2025-09-22T04:03:41.565Z" },+ { url = "https://files.pythonhosted.org/packages/5e/5c/42c2c4c03554580708fc738d13414801f340c04c3eff90d8d2d227145275/lxml-6.0.2-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:6162a86d86893d63084faaf4ff937b3daea233e3682fb4474db07395794fa80d", size = 8910380, upload-time = "2025-09-22T04:03:01.645Z" },+ { url = "https://files.pythonhosted.org/packages/bf/4f/12df843e3e10d18d468a7557058f8d3733e8b6e12401f30b1ef29360740f/lxml-6.0.2-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:414aaa94e974e23a3e92e7ca5b97d10c0cf37b6481f50911032c69eeb3991bba", size = 4775632, upload-time = "2025-09-22T04:03:03.814Z" },+ { url = "https://files.pythonhosted.org/packages/e4/0c/9dc31e6c2d0d418483cbcb469d1f5a582a1cd00a1f4081953d44051f3c50/lxml-6.0.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:48461bd21625458dd01e14e2c38dd0aea69addc3c4f960c30d9f59d7f93be601", size = 4975171, upload-time = "2025-09-22T04:03:05.651Z" },+ { url = "https://files.pythonhosted.org/packages/e7/2b/9b870c6ca24c841bdd887504808f0417aa9d8d564114689266f19ddf29c8/lxml-6.0.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:25fcc59afc57d527cfc78a58f40ab4c9b8fd096a9a3f964d2781ffb6eb33f4ed", size = 5110109, upload-time = "2025-09-22T04:03:07.452Z" },+ { url = "https://files.pythonhosted.org/packages/bf/0c/4f5f2a4dd319a178912751564471355d9019e220c20d7db3fb8307ed8582/lxml-6.0.2-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5179c60288204e6ddde3f774a93350177e08876eaf3ab78aa3a3649d43eb7d37", size = 5041061, upload-time = "2025-09-22T04:03:09.297Z" },+ { url = "https://files.pythonhosted.org/packages/12/64/554eed290365267671fe001a20d72d14f468ae4e6acef1e179b039436967/lxml-6.0.2-cp314-cp314t-manylinux_2_26_i686.manylinux_2_28_i686.whl", hash = "sha256:967aab75434de148ec80597b75062d8123cadf2943fb4281f385141e18b21338", size = 5306233, upload-time = "2025-09-22T04:03:11.651Z" },+ { url = "https://files.pythonhosted.org/packages/7a/31/1d748aa275e71802ad9722df32a7a35034246b42c0ecdd8235412c3396ef/lxml-6.0.2-cp314-cp314t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:d100fcc8930d697c6561156c6810ab4a508fb264c8b6779e6e61e2ed5e7558f9", size = 5604739, upload-time = "2025-09-22T04:03:13.592Z" },+ { url = "https://files.pythonhosted.org/packages/8f/41/2c11916bcac09ed561adccacceaedd2bf0e0b25b297ea92aab99fd03d0fa/lxml-6.0.2-cp314-cp314t-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2ca59e7e13e5981175b8b3e4ab84d7da57993eeff53c07764dcebda0d0e64ecd", size = 5225119, upload-time = "2025-09-22T04:03:15.408Z" },+ { url = "https://files.pythonhosted.org/packages/99/05/4e5c2873d8f17aa018e6afde417c80cc5d0c33be4854cce3ef5670c49367/lxml-6.0.2-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:957448ac63a42e2e49531b9d6c0fa449a1970dbc32467aaad46f11545be9af1d", size = 4633665, upload-time = "2025-09-22T04:03:17.262Z" },+ { url = "https://files.pythonhosted.org/packages/0f/c9/dcc2da1bebd6275cdc723b515f93edf548b82f36a5458cca3578bc899332/lxml-6.0.2-cp314-cp314t-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b7fc49c37f1786284b12af63152fe1d0990722497e2d5817acfe7a877522f9a9", size = 5234997, upload-time = "2025-09-22T04:03:19.14Z" },+ { url = "https://files.pythonhosted.org/packages/9c/e2/5172e4e7468afca64a37b81dba152fc5d90e30f9c83c7c3213d6a02a5ce4/lxml-6.0.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e19e0643cc936a22e837f79d01a550678da8377d7d801a14487c10c34ee49c7e", size = 5090957, upload-time = "2025-09-22T04:03:21.436Z" },+ { url = "https://files.pythonhosted.org/packages/a5/b3/15461fd3e5cd4ddcb7938b87fc20b14ab113b92312fc97afe65cd7c85de1/lxml-6.0.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:1db01e5cf14345628e0cbe71067204db658e2fb8e51e7f33631f5f4735fefd8d", size = 4764372, upload-time = "2025-09-22T04:03:23.27Z" },+ { url = "https://files.pythonhosted.org/packages/05/33/f310b987c8bf9e61c4dd8e8035c416bd3230098f5e3cfa69fc4232de7059/lxml-6.0.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:875c6b5ab39ad5291588aed6925fac99d0097af0dd62f33c7b43736043d4a2ec", size = 5634653, upload-time = "2025-09-22T04:03:25.767Z" },+ { url = "https://files.pythonhosted.org/packages/70/ff/51c80e75e0bc9382158133bdcf4e339b5886c6ee2418b5199b3f1a61ed6d/lxml-6.0.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:cdcbed9ad19da81c480dfd6dd161886db6096083c9938ead313d94b30aadf272", size = 5233795, upload-time = "2025-09-22T04:03:27.62Z" },+ { url = "https://files.pythonhosted.org/packages/56/4d/4856e897df0d588789dd844dbed9d91782c4ef0b327f96ce53c807e13128/lxml-6.0.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:80dadc234ebc532e09be1975ff538d154a7fa61ea5031c03d25178855544728f", size = 5257023, upload-time = "2025-09-22T04:03:30.056Z" },+ { url = "https://files.pythonhosted.org/packages/0f/85/86766dfebfa87bea0ab78e9ff7a4b4b45225df4b4d3b8cc3c03c5cd68464/lxml-6.0.2-cp314-cp314t-win32.whl", hash = "sha256:da08e7bb297b04e893d91087df19638dc7a6bb858a954b0cc2b9f5053c922312", size = 3911420, upload-time = "2025-09-22T04:03:32.198Z" },+ { url = "https://files.pythonhosted.org/packages/fe/1a/b248b355834c8e32614650b8008c69ffeb0ceb149c793961dd8c0b991bb3/lxml-6.0.2-cp314-cp314t-win_amd64.whl", hash = "sha256:252a22982dca42f6155125ac76d3432e548a7625d56f5a273ee78a5057216eca", size = 4406837, upload-time = "2025-09-22T04:03:34.027Z" },+ { url = "https://files.pythonhosted.org/packages/92/aa/df863bcc39c5e0946263454aba394de8a9084dbaff8ad143846b0d844739/lxml-6.0.2-cp314-cp314t-win_arm64.whl", hash = "sha256:bb4c1847b303835d89d785a18801a883436cdfd5dc3d62947f9c49e24f0f5a2c", size = 3822205, upload-time = "2025-09-22T04:03:36.249Z" },+]++[[package]]+name = "markdown-it-py"+version = "4.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mdurl" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5b/f5/4ec618ed16cc4f8fb3b701563655a69816155e79e24a17b651541804721d/markdown_it_py-4.0.0.tar.gz", hash = "sha256:cb0a2b4aa34f932c007117b194e945bd74e0ec24133ceb5bac59009cda1cb9f3", size = 73070, upload-time = "2025-08-11T12:57:52.854Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/94/54/e7d793b573f298e1c9013b8c4dade17d481164aa517d1d7148619c2cedbf/markdown_it_py-4.0.0-py3-none-any.whl", hash = "sha256:87327c59b172c5011896038353a81343b6754500a08cd7a4973bb48c6d578147", size = 87321, upload-time = "2025-08-11T12:57:51.923Z" },+]++[[package]]+name = "mcp"+version = "1.26.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "httpx" },+ { name = "httpx-sse" },+ { name = "jsonschema" },+ { name = "pydantic" },+ { name = "pydantic-settings" },+ { name = "pyjwt", extra = ["crypto"] },+ { name = "python-multipart" },+ { name = "pywin32", marker = "sys_platform == 'win32'" },+ { name = "sse-starlette" },+ { name = "starlette" },+ { name = "typing-extensions" },+ { name = "typing-inspection" },+ { name = "uvicorn", marker = "sys_platform != 'emscripten'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/fc/6d/62e76bbb8144d6ed86e202b5edd8a4cb631e7c8130f3f4893c3f90262b10/mcp-1.26.0.tar.gz", hash = "sha256:db6e2ef491eecc1a0d93711a76f28dec2e05999f93afd48795da1c1137142c66", size = 608005, upload-time = "2026-01-24T19:40:32.468Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fd/d9/eaa1f80170d2b7c5ba23f3b59f766f3a0bb41155fbc32a69adfa1adaaef9/mcp-1.26.0-py3-none-any.whl", hash = "sha256:904a21c33c25aa98ddbeb47273033c435e595bbacfdb177f4bd87f6dceebe1ca", size = 233615, upload-time = "2026-01-24T19:40:30.652Z" },+]++[[package]]+name = "mdurl"+version = "0.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" },+]++[[package]]+name = "mermaid-py"+version = "0.8.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "codecov" },+ { name = "coverage" },+ { name = "pre-commit" },+ { name = "pytest" },+ { name = "pytest-cov" },+ { name = "requests" },+ { name = "ruff" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f2/ce/a72e42ffdbff8b8b054dd54490fd850b9ade515502841994dea1ac493a5e/mermaid_py-0.8.3.tar.gz", hash = "sha256:6b4263aa10121d80dab8cb0094ae1206897a968e419ad2fdd698a6cc55c40882", size = 34048, upload-time = "2026-01-30T17:11:21.696Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/29/4f/c7e58a870f7525c0cbf967b4510f6bac09ce675f85898cf65c737ed4550f/mermaid_py-0.8.3-py3-none-any.whl", hash = "sha256:e2710b7b605aa96798c8e556e37fff2153a73a491daa5d8ba0a33d8f5b7aedd1", size = 32077, upload-time = "2026-01-30T17:11:20.217Z" },+]++[[package]]+name = "more-itertools"+version = "10.8.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ea/5d/38b681d3fce7a266dd9ab73c66959406d565b3e85f21d5e66e1181d93721/more_itertools-10.8.0.tar.gz", hash = "sha256:f638ddf8a1a0d134181275fb5d58b086ead7c6a72429ad725c67503f13ba30bd", size = 137431, upload-time = "2025-09-02T15:23:11.018Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a4/8e/469e5a4a2f5855992e425f3cb33804cc07bf18d48f2db061aec61ce50270/more_itertools-10.8.0-py3-none-any.whl", hash = "sha256:52d4362373dcf7c52546bc4af9a86ee7c4579df9a8dc268be0a2f949d376cc9b", size = 69667, upload-time = "2025-09-02T15:23:09.635Z" },+]++[[package]]+name = "multidict"+version = "6.7.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1a/c2/c2d94cbe6ac1753f3fc980da97b3d930efe1da3af3c9f5125354436c073d/multidict-6.7.1.tar.gz", hash = "sha256:ec6652a1bee61c53a3e5776b6049172c53b6aaba34f18c9ad04f82712bac623d", size = 102010, upload-time = "2026-01-26T02:46:45.979Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f2/22/929c141d6c0dba87d3e1d38fbdf1ba8baba86b7776469f2bc2d3227a1e67/multidict-6.7.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2b41f5fed0ed563624f1c17630cb9941cf2309d4df00e494b551b5f3e3d67a23", size = 76174, upload-time = "2026-01-26T02:44:18.509Z" },+ { url = "https://files.pythonhosted.org/packages/c7/75/bc704ae15fee974f8fccd871305e254754167dce5f9e42d88a2def741a1d/multidict-6.7.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:84e61e3af5463c19b67ced91f6c634effb89ef8bfc5ca0267f954451ed4bb6a2", size = 45116, upload-time = "2026-01-26T02:44:19.745Z" },+ { url = "https://files.pythonhosted.org/packages/79/76/55cd7186f498ed080a18440c9013011eb548f77ae1b297206d030eb1180a/multidict-6.7.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:935434b9853c7c112eee7ac891bc4cb86455aa631269ae35442cb316790c1445", size = 43524, upload-time = "2026-01-26T02:44:21.571Z" },+ { url = "https://files.pythonhosted.org/packages/e9/3c/414842ef8d5a1628d68edee29ba0e5bcf235dbfb3ccd3ea303a7fe8c72ff/multidict-6.7.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:432feb25a1cb67fe82a9680b4d65fb542e4635cb3166cd9c01560651ad60f177", size = 249368, upload-time = "2026-01-26T02:44:22.803Z" },+ { url = "https://files.pythonhosted.org/packages/f6/32/befed7f74c458b4a525e60519fe8d87eef72bb1e99924fa2b0f9d97a221e/multidict-6.7.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e82d14e3c948952a1a85503817e038cba5905a3352de76b9a465075d072fba23", size = 256952, upload-time = "2026-01-26T02:44:24.306Z" },+ { url = "https://files.pythonhosted.org/packages/03/d6/c878a44ba877f366630c860fdf74bfb203c33778f12b6ac274936853c451/multidict-6.7.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4cfb48c6ea66c83bcaaf7e4dfa7ec1b6bbcf751b7db85a328902796dfde4c060", size = 240317, upload-time = "2026-01-26T02:44:25.772Z" },+ { url = "https://files.pythonhosted.org/packages/68/49/57421b4d7ad2e9e60e25922b08ceb37e077b90444bde6ead629095327a6f/multidict-6.7.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1d540e51b7e8e170174555edecddbd5538105443754539193e3e1061864d444d", size = 267132, upload-time = "2026-01-26T02:44:27.648Z" },+ { url = "https://files.pythonhosted.org/packages/b7/fe/ec0edd52ddbcea2a2e89e174f0206444a61440b40f39704e64dc807a70bd/multidict-6.7.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:273d23f4b40f3dce4d6c8a821c741a86dec62cded82e1175ba3d99be128147ed", size = 268140, upload-time = "2026-01-26T02:44:29.588Z" },+ { url = "https://files.pythonhosted.org/packages/b0/73/6e1b01cbeb458807aa0831742232dbdd1fa92bfa33f52a3f176b4ff3dc11/multidict-6.7.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d624335fd4fa1c08a53f8b4be7676ebde19cd092b3895c421045ca87895b429", size = 254277, upload-time = "2026-01-26T02:44:30.902Z" },+ { url = "https://files.pythonhosted.org/packages/6a/b2/5fb8c124d7561a4974c342bc8c778b471ebbeb3cc17df696f034a7e9afe7/multidict-6.7.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:12fad252f8b267cc75b66e8fc51b3079604e8d43a75428ffe193cd9e2195dfd6", size = 252291, upload-time = "2026-01-26T02:44:32.31Z" },+ { url = "https://files.pythonhosted.org/packages/5a/96/51d4e4e06bcce92577fcd488e22600bd38e4fd59c20cb49434d054903bd2/multidict-6.7.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:03ede2a6ffbe8ef936b92cb4529f27f42be7f56afcdab5ab739cd5f27fb1cbf9", size = 250156, upload-time = "2026-01-26T02:44:33.734Z" },+ { url = "https://files.pythonhosted.org/packages/db/6b/420e173eec5fba721a50e2a9f89eda89d9c98fded1124f8d5c675f7a0c0f/multidict-6.7.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:90efbcf47dbe33dcf643a1e400d67d59abeac5db07dc3f27d6bdeae497a2198c", size = 249742, upload-time = "2026-01-26T02:44:35.222Z" },+ { url = "https://files.pythonhosted.org/packages/44/a3/ec5b5bd98f306bc2aa297b8c6f11a46714a56b1e6ef5ebda50a4f5d7c5fb/multidict-6.7.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:5c4b9bfc148f5a91be9244d6264c53035c8a0dcd2f51f1c3c6e30e30ebaa1c84", size = 262221, upload-time = "2026-01-26T02:44:36.604Z" },+ { url = "https://files.pythonhosted.org/packages/cd/f7/e8c0d0da0cd1e28d10e624604e1a36bcc3353aaebdfdc3a43c72bc683a12/multidict-6.7.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:401c5a650f3add2472d1d288c26deebc540f99e2fb83e9525007a74cd2116f1d", size = 258664, upload-time = "2026-01-26T02:44:38.008Z" },+ { url = "https://files.pythonhosted.org/packages/52/da/151a44e8016dd33feed44f730bd856a66257c1ee7aed4f44b649fb7edeb3/multidict-6.7.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:97891f3b1b3ffbded884e2916cacf3c6fc87b66bb0dde46f7357404750559f33", size = 249490, upload-time = "2026-01-26T02:44:39.386Z" },+ { url = "https://files.pythonhosted.org/packages/87/af/a3b86bf9630b732897f6fc3f4c4714b90aa4361983ccbdcd6c0339b21b0c/multidict-6.7.1-cp313-cp313-win32.whl", hash = "sha256:e1c5988359516095535c4301af38d8a8838534158f649c05dd1050222321bcb3", size = 41695, upload-time = "2026-01-26T02:44:41.318Z" },+ { url = "https://files.pythonhosted.org/packages/b2/35/e994121b0e90e46134673422dd564623f93304614f5d11886b1b3e06f503/multidict-6.7.1-cp313-cp313-win_amd64.whl", hash = "sha256:960c83bf01a95b12b08fd54324a4eb1d5b52c88932b5cba5d6e712bb3ed12eb5", size = 45884, upload-time = "2026-01-26T02:44:42.488Z" },+ { url = "https://files.pythonhosted.org/packages/ca/61/42d3e5dbf661242a69c97ea363f2d7b46c567da8eadef8890022be6e2ab0/multidict-6.7.1-cp313-cp313-win_arm64.whl", hash = "sha256:563fe25c678aaba333d5399408f5ec3c383ca5b663e7f774dd179a520b8144df", size = 43122, upload-time = "2026-01-26T02:44:43.664Z" },+ { url = "https://files.pythonhosted.org/packages/6d/b3/e6b21c6c4f314bb956016b0b3ef2162590a529b84cb831c257519e7fde44/multidict-6.7.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:c76c4bec1538375dad9d452d246ca5368ad6e1c9039dadcf007ae59c70619ea1", size = 83175, upload-time = "2026-01-26T02:44:44.894Z" },+ { url = "https://files.pythonhosted.org/packages/fb/76/23ecd2abfe0957b234f6c960f4ade497f55f2c16aeb684d4ecdbf1c95791/multidict-6.7.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:57b46b24b5d5ebcc978da4ec23a819a9402b4228b8a90d9c656422b4bdd8a963", size = 48460, upload-time = "2026-01-26T02:44:46.106Z" },+ { url = "https://files.pythonhosted.org/packages/c4/57/a0ed92b23f3a042c36bc4227b72b97eca803f5f1801c1ab77c8a212d455e/multidict-6.7.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e954b24433c768ce78ab7929e84ccf3422e46deb45a4dc9f93438f8217fa2d34", size = 46930, upload-time = "2026-01-26T02:44:47.278Z" },+ { url = "https://files.pythonhosted.org/packages/b5/66/02ec7ace29162e447f6382c495dc95826bf931d3818799bbef11e8f7df1a/multidict-6.7.1-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3bd231490fa7217cc832528e1cd8752a96f0125ddd2b5749390f7c3ec8721b65", size = 242582, upload-time = "2026-01-26T02:44:48.604Z" },+ { url = "https://files.pythonhosted.org/packages/58/18/64f5a795e7677670e872673aca234162514696274597b3708b2c0d276cce/multidict-6.7.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:253282d70d67885a15c8a7716f3a73edf2d635793ceda8173b9ecc21f2fb8292", size = 250031, upload-time = "2026-01-26T02:44:50.544Z" },+ { url = "https://files.pythonhosted.org/packages/c8/ed/e192291dbbe51a8290c5686f482084d31bcd9d09af24f63358c3d42fd284/multidict-6.7.1-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0b4c48648d7649c9335cf1927a8b87fa692de3dcb15faa676c6a6f1f1aabda43", size = 228596, upload-time = "2026-01-26T02:44:51.951Z" },+ { url = "https://files.pythonhosted.org/packages/1e/7e/3562a15a60cf747397e7f2180b0a11dc0c38d9175a650e75fa1b4d325e15/multidict-6.7.1-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:98bc624954ec4d2c7cb074b8eefc2b5d0ce7d482e410df446414355d158fe4ca", size = 257492, upload-time = "2026-01-26T02:44:53.902Z" },+ { url = "https://files.pythonhosted.org/packages/24/02/7d0f9eae92b5249bb50ac1595b295f10e263dd0078ebb55115c31e0eaccd/multidict-6.7.1-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1b99af4d9eec0b49927b4402bcbb58dea89d3e0db8806a4086117019939ad3dd", size = 255899, upload-time = "2026-01-26T02:44:55.316Z" },+ { url = "https://files.pythonhosted.org/packages/00/e3/9b60ed9e23e64c73a5cde95269ef1330678e9c6e34dd4eb6b431b85b5a10/multidict-6.7.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6aac4f16b472d5b7dc6f66a0d49dd57b0e0902090be16594dc9ebfd3d17c47e7", size = 247970, upload-time = "2026-01-26T02:44:56.783Z" },+ { url = "https://files.pythonhosted.org/packages/3e/06/538e58a63ed5cfb0bd4517e346b91da32fde409d839720f664e9a4ae4f9d/multidict-6.7.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:21f830fe223215dffd51f538e78c172ed7c7f60c9b96a2bf05c4848ad49921c3", size = 245060, upload-time = "2026-01-26T02:44:58.195Z" },+ { url = "https://files.pythonhosted.org/packages/b2/2f/d743a3045a97c895d401e9bd29aaa09b94f5cbdf1bd561609e5a6c431c70/multidict-6.7.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:f5dd81c45b05518b9aa4da4aa74e1c93d715efa234fd3e8a179df611cc85e5f4", size = 235888, upload-time = "2026-01-26T02:44:59.57Z" },+ { url = "https://files.pythonhosted.org/packages/38/83/5a325cac191ab28b63c52f14f1131f3b0a55ba3b9aa65a6d0bf2a9b921a0/multidict-6.7.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:eb304767bca2bb92fb9c5bd33cedc95baee5bb5f6c88e63706533a1c06ad08c8", size = 243554, upload-time = "2026-01-26T02:45:01.054Z" },+ { url = "https://files.pythonhosted.org/packages/20/1f/9d2327086bd15da2725ef6aae624208e2ef828ed99892b17f60c344e57ed/multidict-6.7.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:c9035dde0f916702850ef66460bc4239d89d08df4d02023a5926e7446724212c", size = 252341, upload-time = "2026-01-26T02:45:02.484Z" },+ { url = "https://files.pythonhosted.org/packages/e8/2c/2a1aa0280cf579d0f6eed8ee5211c4f1730bd7e06c636ba2ee6aafda302e/multidict-6.7.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:af959b9beeb66c822380f222f0e0a1889331597e81f1ded7f374f3ecb0fd6c52", size = 246391, upload-time = "2026-01-26T02:45:03.862Z" },+ { url = "https://files.pythonhosted.org/packages/e5/03/7ca022ffc36c5a3f6e03b179a5ceb829be9da5783e6fe395f347c0794680/multidict-6.7.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:41f2952231456154ee479651491e94118229844dd7226541788be783be2b5108", size = 243422, upload-time = "2026-01-26T02:45:05.296Z" },+ { url = "https://files.pythonhosted.org/packages/dc/1d/b31650eab6c5778aceed46ba735bd97f7c7d2f54b319fa916c0f96e7805b/multidict-6.7.1-cp313-cp313t-win32.whl", hash = "sha256:df9f19c28adcb40b6aae30bbaa1478c389efd50c28d541d76760199fc1037c32", size = 47770, upload-time = "2026-01-26T02:45:06.754Z" },+ { url = "https://files.pythonhosted.org/packages/ac/5b/2d2d1d522e51285bd61b1e20df8f47ae1a9d80839db0b24ea783b3832832/multidict-6.7.1-cp313-cp313t-win_amd64.whl", hash = "sha256:d54ecf9f301853f2c5e802da559604b3e95bb7a3b01a9c295c6ee591b9882de8", size = 53109, upload-time = "2026-01-26T02:45:08.044Z" },+ { url = "https://files.pythonhosted.org/packages/3d/a3/cc409ba012c83ca024a308516703cf339bdc4b696195644a7215a5164a24/multidict-6.7.1-cp313-cp313t-win_arm64.whl", hash = "sha256:5a37ca18e360377cfda1d62f5f382ff41f2b8c4ccb329ed974cc2e1643440118", size = 45573, upload-time = "2026-01-26T02:45:09.349Z" },+ { url = "https://files.pythonhosted.org/packages/91/cc/db74228a8be41884a567e88a62fd589a913708fcf180d029898c17a9a371/multidict-6.7.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:8f333ec9c5eb1b7105e3b84b53141e66ca05a19a605368c55450b6ba208cb9ee", size = 75190, upload-time = "2026-01-26T02:45:10.651Z" },+ { url = "https://files.pythonhosted.org/packages/d5/22/492f2246bb5b534abd44804292e81eeaf835388901f0c574bac4eeec73c5/multidict-6.7.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a407f13c188f804c759fc6a9f88286a565c242a76b27626594c133b82883b5c2", size = 44486, upload-time = "2026-01-26T02:45:11.938Z" },+ { url = "https://files.pythonhosted.org/packages/f1/4f/733c48f270565d78b4544f2baddc2fb2a245e5a8640254b12c36ac7ac68e/multidict-6.7.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:0e161ddf326db5577c3a4cc2d8648f81456e8a20d40415541587a71620d7a7d1", size = 43219, upload-time = "2026-01-26T02:45:14.346Z" },+ { url = "https://files.pythonhosted.org/packages/24/bb/2c0c2287963f4259c85e8bcbba9182ced8d7fca65c780c38e99e61629d11/multidict-6.7.1-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1e3a8bb24342a8201d178c3b4984c26ba81a577c80d4d525727427460a50c22d", size = 245132, upload-time = "2026-01-26T02:45:15.712Z" },+ { url = "https://files.pythonhosted.org/packages/a7/f9/44d4b3064c65079d2467888794dea218d1601898ac50222ab8a9a8094460/multidict-6.7.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:97231140a50f5d447d3164f994b86a0bed7cd016e2682f8650d6a9158e14fd31", size = 252420, upload-time = "2026-01-26T02:45:17.293Z" },+ { url = "https://files.pythonhosted.org/packages/8b/13/78f7275e73fa17b24c9a51b0bd9d73ba64bb32d0ed51b02a746eb876abe7/multidict-6.7.1-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:6b10359683bd8806a200fd2909e7c8ca3a7b24ec1d8132e483d58e791d881048", size = 233510, upload-time = "2026-01-26T02:45:19.356Z" },+ { url = "https://files.pythonhosted.org/packages/4b/25/8167187f62ae3cbd52da7893f58cb036b47ea3fb67138787c76800158982/multidict-6.7.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:283ddac99f7ac25a4acadbf004cb5ae34480bbeb063520f70ce397b281859362", size = 264094, upload-time = "2026-01-26T02:45:20.834Z" },+ { url = "https://files.pythonhosted.org/packages/a1/e7/69a3a83b7b030cf283fb06ce074a05a02322359783424d7edf0f15fe5022/multidict-6.7.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:538cec1e18c067d0e6103aa9a74f9e832904c957adc260e61cd9d8cf0c3b3d37", size = 260786, upload-time = "2026-01-26T02:45:22.818Z" },+ { url = "https://files.pythonhosted.org/packages/fe/3b/8ec5074bcfc450fe84273713b4b0a0dd47c0249358f5d82eb8104ffe2520/multidict-6.7.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7eee46ccb30ff48a1e35bb818cc90846c6be2b68240e42a78599166722cea709", size = 248483, upload-time = "2026-01-26T02:45:24.368Z" },+ { url = "https://files.pythonhosted.org/packages/48/5a/d5a99e3acbca0e29c5d9cba8f92ceb15dce78bab963b308ae692981e3a5d/multidict-6.7.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:fa263a02f4f2dd2d11a7b1bb4362aa7cb1049f84a9235d31adf63f30143469a0", size = 248403, upload-time = "2026-01-26T02:45:25.982Z" },+ { url = "https://files.pythonhosted.org/packages/35/48/e58cd31f6c7d5102f2a4bf89f96b9cf7e00b6c6f3d04ecc44417c00a5a3c/multidict-6.7.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:2e1425e2f99ec5bd36c15a01b690a1a2456209c5deed58f95469ffb46039ccbb", size = 240315, upload-time = "2026-01-26T02:45:27.487Z" },+ { url = "https://files.pythonhosted.org/packages/94/33/1cd210229559cb90b6786c30676bb0c58249ff42f942765f88793b41fdce/multidict-6.7.1-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:497394b3239fc6f0e13a78a3e1b61296e72bf1c5f94b4c4eb80b265c37a131cd", size = 245528, upload-time = "2026-01-26T02:45:28.991Z" },+ { url = "https://files.pythonhosted.org/packages/64/f2/6e1107d226278c876c783056b7db43d800bb64c6131cec9c8dfb6903698e/multidict-6.7.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:233b398c29d3f1b9676b4b6f75c518a06fcb2ea0b925119fb2c1bc35c05e1601", size = 258784, upload-time = "2026-01-26T02:45:30.503Z" },+ { url = "https://files.pythonhosted.org/packages/4d/c1/11f664f14d525e4a1b5327a82d4de61a1db604ab34c6603bb3c2cc63ad34/multidict-6.7.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:93b1818e4a6e0930454f0f2af7dfce69307ca03cdcfb3739bf4d91241967b6c1", size = 251980, upload-time = "2026-01-26T02:45:32.603Z" },+ { url = "https://files.pythonhosted.org/packages/e1/9f/75a9ac888121d0c5bbd4ecf4eead45668b1766f6baabfb3b7f66a410e231/multidict-6.7.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f33dc2a3abe9249ea5d8360f969ec7f4142e7ac45ee7014d8f8d5acddf178b7b", size = 243602, upload-time = "2026-01-26T02:45:34.043Z" },+ { url = "https://files.pythonhosted.org/packages/9a/e7/50bf7b004cc8525d80dbbbedfdc7aed3e4c323810890be4413e589074032/multidict-6.7.1-cp314-cp314-win32.whl", hash = "sha256:3ab8b9d8b75aef9df299595d5388b14530839f6422333357af1339443cff777d", size = 40930, upload-time = "2026-01-26T02:45:36.278Z" },+ { url = "https://files.pythonhosted.org/packages/e0/bf/52f25716bbe93745595800f36fb17b73711f14da59ed0bb2eba141bc9f0f/multidict-6.7.1-cp314-cp314-win_amd64.whl", hash = "sha256:5e01429a929600e7dab7b166062d9bb54a5eed752384c7384c968c2afab8f50f", size = 45074, upload-time = "2026-01-26T02:45:37.546Z" },+ { url = "https://files.pythonhosted.org/packages/97/ab/22803b03285fa3a525f48217963da3a65ae40f6a1b6f6cf2768879e208f9/multidict-6.7.1-cp314-cp314-win_arm64.whl", hash = "sha256:4885cb0e817aef5d00a2e8451d4665c1808378dc27c2705f1bf4ef8505c0d2e5", size = 42471, upload-time = "2026-01-26T02:45:38.889Z" },+ { url = "https://files.pythonhosted.org/packages/e0/6d/f9293baa6146ba9507e360ea0292b6422b016907c393e2f63fc40ab7b7b5/multidict-6.7.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:0458c978acd8e6ea53c81eefaddbbee9c6c5e591f41b3f5e8e194780fe026581", size = 82401, upload-time = "2026-01-26T02:45:40.254Z" },+ { url = "https://files.pythonhosted.org/packages/7a/68/53b5494738d83558d87c3c71a486504d8373421c3e0dbb6d0db48ad42ee0/multidict-6.7.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:c0abd12629b0af3cf590982c0b413b1e7395cd4ec026f30986818ab95bfaa94a", size = 48143, upload-time = "2026-01-26T02:45:41.635Z" },+ { url = "https://files.pythonhosted.org/packages/37/e8/5284c53310dcdc99ce5d66563f6e5773531a9b9fe9ec7a615e9bc306b05f/multidict-6.7.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:14525a5f61d7d0c94b368a42cff4c9a4e7ba2d52e2672a7b23d84dc86fb02b0c", size = 46507, upload-time = "2026-01-26T02:45:42.99Z" },+ { url = "https://files.pythonhosted.org/packages/e4/fc/6800d0e5b3875568b4083ecf5f310dcf91d86d52573160834fb4bfcf5e4f/multidict-6.7.1-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:17307b22c217b4cf05033dabefe68255a534d637c6c9b0cc8382718f87be4262", size = 239358, upload-time = "2026-01-26T02:45:44.376Z" },+ { url = "https://files.pythonhosted.org/packages/41/75/4ad0973179361cdf3a113905e6e088173198349131be2b390f9fa4da5fc6/multidict-6.7.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7a7e590ff876a3eaf1c02a4dfe0724b6e69a9e9de6d8f556816f29c496046e59", size = 246884, upload-time = "2026-01-26T02:45:47.167Z" },+ { url = "https://files.pythonhosted.org/packages/c3/9c/095bb28b5da139bd41fb9a5d5caff412584f377914bd8787c2aa98717130/multidict-6.7.1-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5fa6a95dfee63893d80a34758cd0e0c118a30b8dcb46372bf75106c591b77889", size = 225878, upload-time = "2026-01-26T02:45:48.698Z" },+ { url = "https://files.pythonhosted.org/packages/07/d0/c0a72000243756e8f5a277b6b514fa005f2c73d481b7d9e47cd4568aa2e4/multidict-6.7.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a0543217a6a017692aa6ae5cc39adb75e587af0f3a82288b1492eb73dd6cc2a4", size = 253542, upload-time = "2026-01-26T02:45:50.164Z" },+ { url = "https://files.pythonhosted.org/packages/c0/6b/f69da15289e384ecf2a68837ec8b5ad8c33e973aa18b266f50fe55f24b8c/multidict-6.7.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f99fe611c312b3c1c0ace793f92464d8cd263cc3b26b5721950d977b006b6c4d", size = 252403, upload-time = "2026-01-26T02:45:51.779Z" },+ { url = "https://files.pythonhosted.org/packages/a2/76/b9669547afa5a1a25cd93eaca91c0da1c095b06b6d2d8ec25b713588d3a1/multidict-6.7.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9004d8386d133b7e6135679424c91b0b854d2d164af6ea3f289f8f2761064609", size = 244889, upload-time = "2026-01-26T02:45:53.27Z" },+ { url = "https://files.pythonhosted.org/packages/7e/a9/a50d2669e506dad33cfc45b5d574a205587b7b8a5f426f2fbb2e90882588/multidict-6.7.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e628ef0e6859ffd8273c69412a2465c4be4a9517d07261b33334b5ec6f3c7489", size = 241982, upload-time = "2026-01-26T02:45:54.919Z" },+ { url = "https://files.pythonhosted.org/packages/c5/bb/1609558ad8b456b4827d3c5a5b775c93b87878fd3117ed3db3423dfbce1b/multidict-6.7.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:841189848ba629c3552035a6a7f5bf3b02eb304e9fea7492ca220a8eda6b0e5c", size = 232415, upload-time = "2026-01-26T02:45:56.981Z" },+ { url = "https://files.pythonhosted.org/packages/d8/59/6f61039d2aa9261871e03ab9dc058a550d240f25859b05b67fd70f80d4b3/multidict-6.7.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:ce1bbd7d780bb5a0da032e095c951f7014d6b0a205f8318308140f1a6aba159e", size = 240337, upload-time = "2026-01-26T02:45:58.698Z" },+ { url = "https://files.pythonhosted.org/packages/a1/29/fdc6a43c203890dc2ae9249971ecd0c41deaedfe00d25cb6564b2edd99eb/multidict-6.7.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b26684587228afed0d50cf804cc71062cc9c1cdf55051c4c6345d372947b268c", size = 248788, upload-time = "2026-01-26T02:46:00.862Z" },+ { url = "https://files.pythonhosted.org/packages/a9/14/a153a06101323e4cf086ecee3faadba52ff71633d471f9685c42e3736163/multidict-6.7.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:9f9af11306994335398293f9958071019e3ab95e9a707dc1383a35613f6abcb9", size = 242842, upload-time = "2026-01-26T02:46:02.824Z" },+ { url = "https://files.pythonhosted.org/packages/41/5f/604ae839e64a4a6efc80db94465348d3b328ee955e37acb24badbcd24d83/multidict-6.7.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:b4938326284c4f1224178a560987b6cf8b4d38458b113d9b8c1db1a836e640a2", size = 240237, upload-time = "2026-01-26T02:46:05.898Z" },+ { url = "https://files.pythonhosted.org/packages/5f/60/c3a5187bf66f6fb546ff4ab8fb5a077cbdd832d7b1908d4365c7f74a1917/multidict-6.7.1-cp314-cp314t-win32.whl", hash = "sha256:98655c737850c064a65e006a3df7c997cd3b220be4ec8fe26215760b9697d4d7", size = 48008, upload-time = "2026-01-26T02:46:07.468Z" },+ { url = "https://files.pythonhosted.org/packages/0c/f7/addf1087b860ac60e6f382240f64fb99f8bfb532bb06f7c542b83c29ca61/multidict-6.7.1-cp314-cp314t-win_amd64.whl", hash = "sha256:497bde6223c212ba11d462853cfa4f0ae6ef97465033e7dc9940cdb3ab5b48e5", size = 53542, upload-time = "2026-01-26T02:46:08.809Z" },+ { url = "https://files.pythonhosted.org/packages/4c/81/4629d0aa32302ef7b2ec65c75a728cc5ff4fa410c50096174c1632e70b3e/multidict-6.7.1-cp314-cp314t-win_arm64.whl", hash = "sha256:2bbd113e0d4af5db41d5ebfe9ccaff89de2120578164f86a5d17d5a576d1e5b2", size = 44719, upload-time = "2026-01-26T02:46:11.146Z" },+ { url = "https://files.pythonhosted.org/packages/81/08/7036c080d7117f28a4af526d794aab6a84463126db031b007717c1a6676e/multidict-6.7.1-py3-none-any.whl", hash = "sha256:55d97cc6dae627efa6a6e548885712d4864b81110ac76fa4e534c03819fa4a56", size = 12319, upload-time = "2026-01-26T02:46:44.004Z" },+]++[[package]]+name = "nodeenv"+version = "1.10.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/24/bf/d1bda4f6168e0b2e9e5958945e01910052158313224ada5ce1fb2e1113b8/nodeenv-1.10.0.tar.gz", hash = "sha256:996c191ad80897d076bdfba80a41994c2b47c68e224c542b48feba42ba00f8bb", size = 55611, upload-time = "2025-12-20T14:08:54.006Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/88/b2/d0896bdcdc8d28a7fc5717c305f1a861c26e18c05047949fb371034d98bd/nodeenv-1.10.0-py2.py3-none-any.whl", hash = "sha256:5bb13e3eed2923615535339b3c620e76779af4cb4c6a90deccc9e36b274d3827", size = 23438, upload-time = "2025-12-20T14:08:52.782Z" },+]++[[package]]+name = "numpy"+version = "2.4.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/57/fd/0005efbd0af48e55eb3c7208af93f2862d4b1a56cd78e84309a2d959208d/numpy-2.4.2.tar.gz", hash = "sha256:659a6107e31a83c4e33f763942275fd278b21d095094044eb35569e86a21ddae", size = 20723651, upload-time = "2026-01-31T23:13:10.135Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a1/22/815b9fe25d1d7ae7d492152adbc7226d3eff731dffc38fe970589fcaaa38/numpy-2.4.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:25f2059807faea4b077a2b6837391b5d830864b3543627f381821c646f31a63c", size = 16663696, upload-time = "2026-01-31T23:11:17.516Z" },+ { url = "https://files.pythonhosted.org/packages/09/f0/817d03a03f93ba9c6c8993de509277d84e69f9453601915e4a69554102a1/numpy-2.4.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bd3a7a9f5847d2fb8c2c6d1c862fa109c31a9abeca1a3c2bd5a64572955b2979", size = 14688322, upload-time = "2026-01-31T23:11:19.883Z" },+ { url = "https://files.pythonhosted.org/packages/da/b4/f805ab79293c728b9a99438775ce51885fd4f31b76178767cfc718701a39/numpy-2.4.2-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:8e4549f8a3c6d13d55041925e912bfd834285ef1dd64d6bc7d542583355e2e98", size = 5198157, upload-time = "2026-01-31T23:11:22.375Z" },+ { url = "https://files.pythonhosted.org/packages/74/09/826e4289844eccdcd64aac27d13b0fd3f32039915dd5b9ba01baae1f436c/numpy-2.4.2-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:aea4f66ff44dfddf8c2cffd66ba6538c5ec67d389285292fe428cb2c738c8aef", size = 6546330, upload-time = "2026-01-31T23:11:23.958Z" },+ { url = "https://files.pythonhosted.org/packages/19/fb/cbfdbfa3057a10aea5422c558ac57538e6acc87ec1669e666d32ac198da7/numpy-2.4.2-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c3cd545784805de05aafe1dde61752ea49a359ccba9760c1e5d1c88a93bbf2b7", size = 15660968, upload-time = "2026-01-31T23:11:25.713Z" },+ { url = "https://files.pythonhosted.org/packages/04/dc/46066ce18d01645541f0186877377b9371b8fa8017fa8262002b4ef22612/numpy-2.4.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d0d9b7c93578baafcbc5f0b83eaf17b79d345c6f36917ba0c67f45226911d499", size = 16607311, upload-time = "2026-01-31T23:11:28.117Z" },+ { url = "https://files.pythonhosted.org/packages/14/d9/4b5adfc39a43fa6bf918c6d544bc60c05236cc2f6339847fc5b35e6cb5b0/numpy-2.4.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f74f0f7779cc7ae07d1810aab8ac6b1464c3eafb9e283a40da7309d5e6e48fbb", size = 17012850, upload-time = "2026-01-31T23:11:30.888Z" },+ { url = "https://files.pythonhosted.org/packages/b7/20/adb6e6adde6d0130046e6fdfb7675cc62bc2f6b7b02239a09eb58435753d/numpy-2.4.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:c7ac672d699bf36275c035e16b65539931347d68b70667d28984c9fb34e07fa7", size = 18334210, upload-time = "2026-01-31T23:11:33.214Z" },+ { url = "https://files.pythonhosted.org/packages/78/0e/0a73b3dff26803a8c02baa76398015ea2a5434d9b8265a7898a6028c1591/numpy-2.4.2-cp313-cp313-win32.whl", hash = "sha256:8e9afaeb0beff068b4d9cd20d322ba0ee1cecfb0b08db145e4ab4dd44a6b5110", size = 5958199, upload-time = "2026-01-31T23:11:35.385Z" },+ { url = "https://files.pythonhosted.org/packages/43/bc/6352f343522fcb2c04dbaf94cb30cca6fd32c1a750c06ad6231b4293708c/numpy-2.4.2-cp313-cp313-win_amd64.whl", hash = "sha256:7df2de1e4fba69a51c06c28f5a3de36731eb9639feb8e1cf7e4a7b0daf4cf622", size = 12310848, upload-time = "2026-01-31T23:11:38.001Z" },+ { url = "https://files.pythonhosted.org/packages/6e/8d/6da186483e308da5da1cc6918ce913dcfe14ffde98e710bfeff2a6158d4e/numpy-2.4.2-cp313-cp313-win_arm64.whl", hash = "sha256:0fece1d1f0a89c16b03442eae5c56dc0be0c7883b5d388e0c03f53019a4bfd71", size = 10221082, upload-time = "2026-01-31T23:11:40.392Z" },+ { url = "https://files.pythonhosted.org/packages/25/a1/9510aa43555b44781968935c7548a8926274f815de42ad3997e9e83680dd/numpy-2.4.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5633c0da313330fd20c484c78cdd3f9b175b55e1a766c4a174230c6b70ad8262", size = 14815866, upload-time = "2026-01-31T23:11:42.495Z" },+ { url = "https://files.pythonhosted.org/packages/36/30/6bbb5e76631a5ae46e7923dd16ca9d3f1c93cfa8d4ed79a129814a9d8db3/numpy-2.4.2-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:d9f64d786b3b1dd742c946c42d15b07497ed14af1a1f3ce840cce27daa0ce913", size = 5325631, upload-time = "2026-01-31T23:11:44.7Z" },+ { url = "https://files.pythonhosted.org/packages/46/00/3a490938800c1923b567b3a15cd17896e68052e2145d8662aaf3e1ffc58f/numpy-2.4.2-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:b21041e8cb6a1eb5312dd1d2f80a94d91efffb7a06b70597d44f1bd2dfc315ab", size = 6646254, upload-time = "2026-01-31T23:11:46.341Z" },+ { url = "https://files.pythonhosted.org/packages/d3/e9/fac0890149898a9b609caa5af7455a948b544746e4b8fe7c212c8edd71f8/numpy-2.4.2-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:00ab83c56211a1d7c07c25e3217ea6695e50a3e2f255053686b081dc0b091a82", size = 15720138, upload-time = "2026-01-31T23:11:48.082Z" },+ { url = "https://files.pythonhosted.org/packages/ea/5c/08887c54e68e1e28df53709f1893ce92932cc6f01f7c3d4dc952f61ffd4e/numpy-2.4.2-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2fb882da679409066b4603579619341c6d6898fc83a8995199d5249f986e8e8f", size = 16655398, upload-time = "2026-01-31T23:11:50.293Z" },+ { url = "https://files.pythonhosted.org/packages/4d/89/253db0fa0e66e9129c745e4ef25631dc37d5f1314dad2b53e907b8538e6d/numpy-2.4.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:66cb9422236317f9d44b67b4d18f44efe6e9c7f8794ac0462978513359461554", size = 17079064, upload-time = "2026-01-31T23:11:52.927Z" },+ { url = "https://files.pythonhosted.org/packages/2a/d5/cbade46ce97c59c6c3da525e8d95b7abe8a42974a1dc5c1d489c10433e88/numpy-2.4.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:0f01dcf33e73d80bd8dc0f20a71303abbafa26a19e23f6b68d1aa9990af90257", size = 18379680, upload-time = "2026-01-31T23:11:55.22Z" },+ { url = "https://files.pythonhosted.org/packages/40/62/48f99ae172a4b63d981babe683685030e8a3df4f246c893ea5c6ef99f018/numpy-2.4.2-cp313-cp313t-win32.whl", hash = "sha256:52b913ec40ff7ae845687b0b34d8d93b60cb66dcee06996dd5c99f2fc9328657", size = 6082433, upload-time = "2026-01-31T23:11:58.096Z" },+ { url = "https://files.pythonhosted.org/packages/07/38/e054a61cfe48ad9f1ed0d188e78b7e26859d0b60ef21cd9de4897cdb5326/numpy-2.4.2-cp313-cp313t-win_amd64.whl", hash = "sha256:5eea80d908b2c1f91486eb95b3fb6fab187e569ec9752ab7d9333d2e66bf2d6b", size = 12451181, upload-time = "2026-01-31T23:11:59.782Z" },+ { url = "https://files.pythonhosted.org/packages/6e/a4/a05c3a6418575e185dd84d0b9680b6bb2e2dc3e4202f036b7b4e22d6e9dc/numpy-2.4.2-cp313-cp313t-win_arm64.whl", hash = "sha256:fd49860271d52127d61197bb50b64f58454e9f578cb4b2c001a6de8b1f50b0b1", size = 10290756, upload-time = "2026-01-31T23:12:02.438Z" },+ { url = "https://files.pythonhosted.org/packages/18/88/b7df6050bf18fdcfb7046286c6535cabbdd2064a3440fca3f069d319c16e/numpy-2.4.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:444be170853f1f9d528428eceb55f12918e4fda5d8805480f36a002f1415e09b", size = 16663092, upload-time = "2026-01-31T23:12:04.521Z" },+ { url = "https://files.pythonhosted.org/packages/25/7a/1fee4329abc705a469a4afe6e69b1ef7e915117747886327104a8493a955/numpy-2.4.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:d1240d50adff70c2a88217698ca844723068533f3f5c5fa6ee2e3220e3bdb000", size = 14698770, upload-time = "2026-01-31T23:12:06.96Z" },+ { url = "https://files.pythonhosted.org/packages/fb/0b/f9e49ba6c923678ad5bc38181c08ac5e53b7a5754dbca8e581aa1a56b1ff/numpy-2.4.2-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:7cdde6de52fb6664b00b056341265441192d1291c130e99183ec0d4b110ff8b1", size = 5208562, upload-time = "2026-01-31T23:12:09.632Z" },+ { url = "https://files.pythonhosted.org/packages/7d/12/d7de8f6f53f9bb76997e5e4c069eda2051e3fe134e9181671c4391677bb2/numpy-2.4.2-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:cda077c2e5b780200b6b3e09d0b42205a3d1c68f30c6dceb90401c13bff8fe74", size = 6543710, upload-time = "2026-01-31T23:12:11.969Z" },+ { url = "https://files.pythonhosted.org/packages/09/63/c66418c2e0268a31a4cf8a8b512685748200f8e8e8ec6c507ce14e773529/numpy-2.4.2-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d30291931c915b2ab5717c2974bb95ee891a1cf22ebc16a8006bd59cd210d40a", size = 15677205, upload-time = "2026-01-31T23:12:14.33Z" },+ { url = "https://files.pythonhosted.org/packages/5d/6c/7f237821c9642fb2a04d2f1e88b4295677144ca93285fd76eff3bcba858d/numpy-2.4.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bba37bc29d4d85761deed3954a1bc62be7cf462b9510b51d367b769a8c8df325", size = 16611738, upload-time = "2026-01-31T23:12:16.525Z" },+ { url = "https://files.pythonhosted.org/packages/c2/a7/39c4cdda9f019b609b5c473899d87abff092fc908cfe4d1ecb2fcff453b0/numpy-2.4.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b2f0073ed0868db1dcd86e052d37279eef185b9c8db5bf61f30f46adac63c909", size = 17028888, upload-time = "2026-01-31T23:12:19.306Z" },+ { url = "https://files.pythonhosted.org/packages/da/b3/e84bb64bdfea967cc10950d71090ec2d84b49bc691df0025dddb7c26e8e3/numpy-2.4.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7f54844851cdb630ceb623dcec4db3240d1ac13d4990532446761baede94996a", size = 18339556, upload-time = "2026-01-31T23:12:21.816Z" },+ { url = "https://files.pythonhosted.org/packages/88/f5/954a291bc1192a27081706862ac62bb5920fbecfbaa302f64682aa90beed/numpy-2.4.2-cp314-cp314-win32.whl", hash = "sha256:12e26134a0331d8dbd9351620f037ec470b7c75929cb8a1537f6bfe411152a1a", size = 6006899, upload-time = "2026-01-31T23:12:24.14Z" },+ { url = "https://files.pythonhosted.org/packages/05/cb/eff72a91b2efdd1bc98b3b8759f6a1654aa87612fc86e3d87d6fe4f948c4/numpy-2.4.2-cp314-cp314-win_amd64.whl", hash = "sha256:068cdb2d0d644cdb45670810894f6a0600797a69c05f1ac478e8d31670b8ee75", size = 12443072, upload-time = "2026-01-31T23:12:26.33Z" },+ { url = "https://files.pythonhosted.org/packages/37/75/62726948db36a56428fce4ba80a115716dc4fad6a3a4352487f8bb950966/numpy-2.4.2-cp314-cp314-win_arm64.whl", hash = "sha256:6ed0be1ee58eef41231a5c943d7d1375f093142702d5723ca2eb07db9b934b05", size = 10494886, upload-time = "2026-01-31T23:12:28.488Z" },+ { url = "https://files.pythonhosted.org/packages/36/2f/ee93744f1e0661dc267e4b21940870cabfae187c092e1433b77b09b50ac4/numpy-2.4.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:98f16a80e917003a12c0580f97b5f875853ebc33e2eaa4bccfc8201ac6869308", size = 14818567, upload-time = "2026-01-31T23:12:30.709Z" },+ { url = "https://files.pythonhosted.org/packages/a7/24/6535212add7d76ff938d8bdc654f53f88d35cddedf807a599e180dcb8e66/numpy-2.4.2-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:20abd069b9cda45874498b245c8015b18ace6de8546bf50dfa8cea1696ed06ef", size = 5328372, upload-time = "2026-01-31T23:12:32.962Z" },+ { url = "https://files.pythonhosted.org/packages/5e/9d/c48f0a035725f925634bf6b8994253b43f2047f6778a54147d7e213bc5a7/numpy-2.4.2-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:e98c97502435b53741540a5717a6749ac2ada901056c7db951d33e11c885cc7d", size = 6649306, upload-time = "2026-01-31T23:12:34.797Z" },+ { url = "https://files.pythonhosted.org/packages/81/05/7c73a9574cd4a53a25907bad38b59ac83919c0ddc8234ec157f344d57d9a/numpy-2.4.2-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:da6cad4e82cb893db4b69105c604d805e0c3ce11501a55b5e9f9083b47d2ffe8", size = 15722394, upload-time = "2026-01-31T23:12:36.565Z" },+ { url = "https://files.pythonhosted.org/packages/35/fa/4de10089f21fc7d18442c4a767ab156b25c2a6eaf187c0db6d9ecdaeb43f/numpy-2.4.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9e4424677ce4b47fe73c8b5556d876571f7c6945d264201180db2dc34f676ab5", size = 16653343, upload-time = "2026-01-31T23:12:39.188Z" },+ { url = "https://files.pythonhosted.org/packages/b8/f9/d33e4ffc857f3763a57aa85650f2e82486832d7492280ac21ba9efda80da/numpy-2.4.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:2b8f157c8a6f20eb657e240f8985cc135598b2b46985c5bccbde7616dc9c6b1e", size = 17078045, upload-time = "2026-01-31T23:12:42.041Z" },+ { url = "https://files.pythonhosted.org/packages/c8/b8/54bdb43b6225badbea6389fa038c4ef868c44f5890f95dd530a218706da3/numpy-2.4.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5daf6f3914a733336dab21a05cdec343144600e964d2fcdabaac0c0269874b2a", size = 18380024, upload-time = "2026-01-31T23:12:44.331Z" },+ { url = "https://files.pythonhosted.org/packages/a5/55/6e1a61ded7af8df04016d81b5b02daa59f2ea9252ee0397cb9f631efe9e5/numpy-2.4.2-cp314-cp314t-win32.whl", hash = "sha256:8c50dd1fc8826f5b26a5ee4d77ca55d88a895f4e4819c7ecc2a9f5905047a443", size = 6153937, upload-time = "2026-01-31T23:12:47.229Z" },+ { url = "https://files.pythonhosted.org/packages/45/aa/fa6118d1ed6d776b0983f3ceac9b1a5558e80df9365b1c3aa6d42bf9eee4/numpy-2.4.2-cp314-cp314t-win_amd64.whl", hash = "sha256:fcf92bee92742edd401ba41135185866f7026c502617f422eb432cfeca4fe236", size = 12631844, upload-time = "2026-01-31T23:12:48.997Z" },+ { url = "https://files.pythonhosted.org/packages/32/0a/2ec5deea6dcd158f254a7b372fb09cfba5719419c8d66343bab35237b3fb/numpy-2.4.2-cp314-cp314t-win_arm64.whl", hash = "sha256:1f92f53998a17265194018d1cc321b2e96e900ca52d54c7c77837b71b9465181", size = 10565379, upload-time = "2026-01-31T23:12:51.345Z" },+]++[[package]]+name = "oauthlib"+version = "3.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0b/5f/19930f824ffeb0ad4372da4812c50edbd1434f678c90c2733e1188edfc63/oauthlib-3.3.1.tar.gz", hash = "sha256:0f0f8aa759826a193cf66c12ea1af1637f87b9b4622d46e866952bb022e538c9", size = 185918, upload-time = "2025-06-19T22:48:08.269Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/be/9c/92789c596b8df838baa98fa71844d84283302f7604ed565dafe5a6b5041a/oauthlib-3.3.1-py3-none-any.whl", hash = "sha256:88119c938d2b8fb88561af5f6ee0eec8cc8d552b7bb1f712743136eb7523b7a1", size = 160065, upload-time = "2025-06-19T22:48:06.508Z" },+]++[[package]]+name = "openai"+version = "2.20.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "distro" },+ { name = "httpx" },+ { name = "jiter" },+ { name = "pydantic" },+ { name = "sniffio" },+ { name = "tqdm" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/6e/5a/f495777c02625bfa18212b6e3b73f1893094f2bf660976eb4bc6f43a1ca2/openai-2.20.0.tar.gz", hash = "sha256:2654a689208cd0bf1098bb9462e8d722af5cbe961e6bba54e6f19fb843d88db1", size = 642355, upload-time = "2026-02-10T19:02:54.145Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b5/a0/cf4297aa51bbc21e83ef0ac018947fa06aea8f2364aad7c96cbf148590e6/openai-2.20.0-py3-none-any.whl", hash = "sha256:38d989c4b1075cd1f76abc68364059d822327cf1a932531d429795f4fc18be99", size = 1098479, upload-time = "2026-02-10T19:02:52.157Z" },+]++[[package]]+name = "openapi-pydantic"+version = "0.5.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pydantic" },+]+sdist = { url = "https://files.pythonhosted.org/packages/02/2e/58d83848dd1a79cb92ed8e63f6ba901ca282c5f09d04af9423ec26c56fd7/openapi_pydantic-0.5.1.tar.gz", hash = "sha256:ff6835af6bde7a459fb93eb93bb92b8749b754fc6e51b2f1590a19dc3005ee0d", size = 60892, upload-time = "2025-01-08T19:29:27.083Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/12/cf/03675d8bd8ecbf4445504d8071adab19f5f993676795708e36402ab38263/openapi_pydantic-0.5.1-py3-none-any.whl", hash = "sha256:a3a09ef4586f5bd760a8df7f43028b60cafb6d9f61de2acba9574766255ab146", size = 96381, upload-time = "2025-01-08T19:29:25.275Z" },+]++[[package]]+name = "openjiuwen"+version = "0.1.6"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiofiles" },+ { name = "aiohttp" },+ { name = "cacheout" },+ { name = "charset-normalizer" },+ { name = "dashscope" },+ { name = "docx2txt" },+ { name = "fastmcp" },+ { name = "filelock" },+ { name = "json-repair" },+ { name = "mermaid-py" },+ { name = "numpy" },+ { name = "oauthlib" },+ { name = "openai" },+ { name = "pdfplumber" },+ { name = "portalocker" },+ { name = "pycryptodome" },+ { name = "pymilvus" },+ { name = "pysbd" },+ { name = "python-dateutil" },+ { name = "python-docx" },+ { name = "requests" },+ { name = "sqlalchemy" },+ { name = "tenacity" },+ { name = "tiktoken" },+ { name = "transformers" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e2/18/6a555ee7a2d0909551ca19c2507f78518b54709838ce28c0c7c747ae4f44/openjiuwen-0.1.6.tar.gz", hash = "sha256:d179adb3752ff0ec9a2f25812fab341b6a9a4afcd5aeb9cd76e813569f941d11", size = 756297, upload-time = "2026-02-13T09:03:57.525Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bb/95/078d37bd2240e707153e388db2e77431972dcb0a9c64aea7f62d47473c75/openjiuwen-0.1.6-py3-none-any.whl", hash = "sha256:1177b97e2f940730cb94618759d844ea6f26d0f6172cdd8d17e247c96dfa8505", size = 1067721, upload-time = "2026-02-13T09:03:55.55Z" },+]++[[package]]+name = "opentelemetry-api"+version = "1.39.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "importlib-metadata" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/97/b9/3161be15bb8e3ad01be8be5a968a9237c3027c5be504362ff800fca3e442/opentelemetry_api-1.39.1.tar.gz", hash = "sha256:fbde8c80e1b937a2c61f20347e91c0c18a1940cecf012d62e65a7caf08967c9c", size = 65767, upload-time = "2025-12-11T13:32:39.182Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cf/df/d3f1ddf4bb4cb50ed9b1139cc7b1c54c34a1e7ce8fd1b9a37c0d1551a6bd/opentelemetry_api-1.39.1-py3-none-any.whl", hash = "sha256:2edd8463432a7f8443edce90972169b195e7d6a05500cd29e6d13898187c9950", size = 66356, upload-time = "2025-12-11T13:32:17.304Z" },+]++[[package]]+name = "orjson"+version = "3.11.7"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/53/45/b268004f745ede84e5798b48ee12b05129d19235d0e15267aa57dcdb400b/orjson-3.11.7.tar.gz", hash = "sha256:9b1a67243945819ce55d24a30b59d6a168e86220452d2c96f4d1f093e71c0c49", size = 6144992, upload-time = "2026-02-02T15:38:49.29Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/89/25/6e0e52cac5aab51d7b6dcd257e855e1dec1c2060f6b28566c509b4665f62/orjson-3.11.7-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:1d98b30cc1313d52d4af17d9c3d307b08389752ec5f2e5febdfada70b0f8c733", size = 228390, upload-time = "2026-02-02T15:38:06.8Z" },+ { url = "https://files.pythonhosted.org/packages/a5/29/a77f48d2fc8a05bbc529e5ff481fb43d914f9e383ea2469d4f3d51df3d00/orjson-3.11.7-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:d897e81f8d0cbd2abb82226d1860ad2e1ab3ff16d7b08c96ca00df9d45409ef4", size = 125189, upload-time = "2026-02-02T15:38:08.181Z" },+ { url = "https://files.pythonhosted.org/packages/89/25/0a16e0729a0e6a1504f9d1a13cdd365f030068aab64cec6958396b9969d7/orjson-3.11.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:814be4b49b228cfc0b3c565acf642dd7d13538f966e3ccde61f4f55be3e20785", size = 128106, upload-time = "2026-02-02T15:38:09.41Z" },+ { url = "https://files.pythonhosted.org/packages/66/da/a2e505469d60666a05ab373f1a6322eb671cb2ba3a0ccfc7d4bc97196787/orjson-3.11.7-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d06e5c5fed5caedd2e540d62e5b1c25e8c82431b9e577c33537e5fa4aa909539", size = 123363, upload-time = "2026-02-02T15:38:10.73Z" },+ { url = "https://files.pythonhosted.org/packages/23/bf/ed73f88396ea35c71b38961734ea4a4746f7ca0768bf28fd551d37e48dd0/orjson-3.11.7-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:31c80ce534ac4ea3739c5ee751270646cbc46e45aea7576a38ffec040b4029a1", size = 129007, upload-time = "2026-02-02T15:38:12.138Z" },+ { url = "https://files.pythonhosted.org/packages/73/3c/b05d80716f0225fc9008fbf8ab22841dcc268a626aa550561743714ce3bf/orjson-3.11.7-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f50979824bde13d32b4320eedd513431c921102796d86be3eee0b58e58a3ecd1", size = 141667, upload-time = "2026-02-02T15:38:13.398Z" },+ { url = "https://files.pythonhosted.org/packages/61/e8/0be9b0addd9bf86abfc938e97441dcd0375d494594b1c8ad10fe57479617/orjson-3.11.7-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9e54f3808e2b6b945078c41aa8d9b5834b28c50843846e97807e5adb75fa9705", size = 130832, upload-time = "2026-02-02T15:38:14.698Z" },+ { url = "https://files.pythonhosted.org/packages/c9/ec/c68e3b9021a31d9ec15a94931db1410136af862955854ed5dd7e7e4f5bff/orjson-3.11.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a12b80df61aab7b98b490fe9e4879925ba666fccdfcd175252ce4d9035865ace", size = 133373, upload-time = "2026-02-02T15:38:16.109Z" },+ { url = "https://files.pythonhosted.org/packages/d2/45/f3466739aaafa570cc8e77c6dbb853c48bf56e3b43738020e2661e08b0ac/orjson-3.11.7-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:996b65230271f1a97026fd0e6a753f51fbc0c335d2ad0c6201f711b0da32693b", size = 138307, upload-time = "2026-02-02T15:38:17.453Z" },+ { url = "https://files.pythonhosted.org/packages/e1/84/9f7f02288da1ffb31405c1be07657afd1eecbcb4b64ee2817b6fe0f785fa/orjson-3.11.7-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:ab49d4b2a6a1d415ddb9f37a21e02e0d5dbfe10b7870b21bf779fc21e9156157", size = 408695, upload-time = "2026-02-02T15:38:18.831Z" },+ { url = "https://files.pythonhosted.org/packages/18/07/9dd2f0c0104f1a0295ffbe912bc8d63307a539b900dd9e2c48ef7810d971/orjson-3.11.7-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:390a1dce0c055ddf8adb6aa94a73b45a4a7d7177b5c584b8d1c1947f2ba60fb3", size = 144099, upload-time = "2026-02-02T15:38:20.28Z" },+ { url = "https://files.pythonhosted.org/packages/a5/66/857a8e4a3292e1f7b1b202883bcdeb43a91566cf59a93f97c53b44bd6801/orjson-3.11.7-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1eb80451a9c351a71dfaf5b7ccc13ad065405217726b59fdbeadbcc544f9d223", size = 134806, upload-time = "2026-02-02T15:38:22.186Z" },+ { url = "https://files.pythonhosted.org/packages/0a/5b/6ebcf3defc1aab3a338ca777214966851e92efb1f30dc7fc8285216e6d1b/orjson-3.11.7-cp313-cp313-win32.whl", hash = "sha256:7477aa6a6ec6139c5cb1cc7b214643592169a5494d200397c7fc95d740d5fcf3", size = 127914, upload-time = "2026-02-02T15:38:23.511Z" },+ { url = "https://files.pythonhosted.org/packages/00/04/c6f72daca5092e3117840a1b1e88dfc809cc1470cf0734890d0366b684a1/orjson-3.11.7-cp313-cp313-win_amd64.whl", hash = "sha256:b9f95dcdea9d4f805daa9ddf02617a89e484c6985fa03055459f90e87d7a0757", size = 124986, upload-time = "2026-02-02T15:38:24.836Z" },+ { url = "https://files.pythonhosted.org/packages/03/ba/077a0f6f1085d6b806937246860fafbd5b17f3919c70ee3f3d8d9c713f38/orjson-3.11.7-cp313-cp313-win_arm64.whl", hash = "sha256:800988273a014a0541483dc81021247d7eacb0c845a9d1a34a422bc718f41539", size = 126045, upload-time = "2026-02-02T15:38:26.216Z" },+ { url = "https://files.pythonhosted.org/packages/e9/1e/745565dca749813db9a093c5ebc4bac1a9475c64d54b95654336ac3ed961/orjson-3.11.7-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:de0a37f21d0d364954ad5de1970491d7fbd0fb1ef7417d4d56a36dc01ba0c0a0", size = 228391, upload-time = "2026-02-02T15:38:27.757Z" },+ { url = "https://files.pythonhosted.org/packages/46/19/e40f6225da4d3aa0c8dc6e5219c5e87c2063a560fe0d72a88deb59776794/orjson-3.11.7-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:c2428d358d85e8da9d37cba18b8c4047c55222007a84f97156a5b22028dfbfc0", size = 125188, upload-time = "2026-02-02T15:38:29.241Z" },+ { url = "https://files.pythonhosted.org/packages/9d/7e/c4de2babef2c0817fd1f048fd176aa48c37bec8aef53d2fa932983032cce/orjson-3.11.7-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3c4bc6c6ac52cdaa267552544c73e486fecbd710b7ac09bc024d5a78555a22f6", size = 128097, upload-time = "2026-02-02T15:38:30.618Z" },+ { url = "https://files.pythonhosted.org/packages/eb/74/233d360632bafd2197f217eee7fb9c9d0229eac0c18128aee5b35b0014fe/orjson-3.11.7-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bd0d68edd7dfca1b2eca9361a44ac9f24b078de3481003159929a0573f21a6bf", size = 123364, upload-time = "2026-02-02T15:38:32.363Z" },+ { url = "https://files.pythonhosted.org/packages/79/51/af79504981dd31efe20a9e360eb49c15f06df2b40e7f25a0a52d9ae888e8/orjson-3.11.7-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:623ad1b9548ef63886319c16fa317848e465a21513b31a6ad7b57443c3e0dcf5", size = 129076, upload-time = "2026-02-02T15:38:33.68Z" },+ { url = "https://files.pythonhosted.org/packages/67/e2/da898eb68b72304f8de05ca6715870d09d603ee98d30a27e8a9629abc64b/orjson-3.11.7-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6e776b998ac37c0396093d10290e60283f59cfe0fc3fccbd0ccc4bd04dd19892", size = 141705, upload-time = "2026-02-02T15:38:34.989Z" },+ { url = "https://files.pythonhosted.org/packages/c5/89/15364d92acb3d903b029e28d834edb8780c2b97404cbf7929aa6b9abdb24/orjson-3.11.7-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:652c6c3af76716f4a9c290371ba2e390ede06f6603edb277b481daf37f6f464e", size = 130855, upload-time = "2026-02-02T15:38:36.379Z" },+ { url = "https://files.pythonhosted.org/packages/c2/8b/ecdad52d0b38d4b8f514be603e69ccd5eacf4e7241f972e37e79792212ec/orjson-3.11.7-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a56df3239294ea5964adf074c54bcc4f0ccd21636049a2cf3ca9cf03b5d03cf1", size = 133386, upload-time = "2026-02-02T15:38:37.704Z" },+ { url = "https://files.pythonhosted.org/packages/b9/0e/45e1dcf10e17d0924b7c9162f87ec7b4ca79e28a0548acf6a71788d3e108/orjson-3.11.7-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:bda117c4148e81f746655d5a3239ae9bd00cb7bc3ca178b5fc5a5997e9744183", size = 138295, upload-time = "2026-02-02T15:38:39.096Z" },+ { url = "https://files.pythonhosted.org/packages/63/d7/4d2e8b03561257af0450f2845b91fbd111d7e526ccdf737267108075e0ba/orjson-3.11.7-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:23d6c20517a97a9daf1d48b580fcdc6f0516c6f4b5038823426033690b4d2650", size = 408720, upload-time = "2026-02-02T15:38:40.634Z" },+ { url = "https://files.pythonhosted.org/packages/78/cf/d45343518282108b29c12a65892445fc51f9319dc3c552ceb51bb5905ed2/orjson-3.11.7-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:8ff206156006da5b847c9304b6308a01e8cdbc8cce824e2779a5ba71c3def141", size = 144152, upload-time = "2026-02-02T15:38:42.262Z" },+ { url = "https://files.pythonhosted.org/packages/a9/3a/d6001f51a7275aacd342e77b735c71fa04125a3f93c36fee4526bc8c654e/orjson-3.11.7-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:962d046ee1765f74a1da723f4b33e3b228fe3a48bd307acce5021dfefe0e29b2", size = 134814, upload-time = "2026-02-02T15:38:43.627Z" },+ { url = "https://files.pythonhosted.org/packages/1d/d3/f19b47ce16820cc2c480f7f1723e17f6d411b3a295c60c8ad3aa9ff1c96a/orjson-3.11.7-cp314-cp314-win32.whl", hash = "sha256:89e13dd3f89f1c38a9c9eba5fbf7cdc2d1feca82f5f290864b4b7a6aac704576", size = 127997, upload-time = "2026-02-02T15:38:45.06Z" },+ { url = "https://files.pythonhosted.org/packages/12/df/172771902943af54bf661a8d102bdf2e7f932127968080632bda6054b62c/orjson-3.11.7-cp314-cp314-win_amd64.whl", hash = "sha256:845c3e0d8ded9c9271cd79596b9b552448b885b97110f628fb687aee2eed11c1", size = 124985, upload-time = "2026-02-02T15:38:46.388Z" },+ { url = "https://files.pythonhosted.org/packages/6f/1c/f2a8d8a1b17514660a614ce5f7aac74b934e69f5abc2700cc7ced882a009/orjson-3.11.7-cp314-cp314-win_arm64.whl", hash = "sha256:4a2e9c5be347b937a2e0203866f12bba36082e89b402ddb9e927d5822e43088d", size = 126038, upload-time = "2026-02-02T15:38:47.703Z" },+]++[[package]]+name = "packaging"+version = "26.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416, upload-time = "2026-01-21T20:50:39.064Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" },+]++[[package]]+name = "pandas"+version = "3.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy" },+ { name = "python-dateutil" },+ { name = "tzdata", marker = "sys_platform == 'emscripten' or sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/de/da/b1dc0481ab8d55d0f46e343cfe67d4551a0e14fcee52bd38ca1bd73258d8/pandas-3.0.0.tar.gz", hash = "sha256:0facf7e87d38f721f0af46fe70d97373a37701b1c09f7ed7aeeb292ade5c050f", size = 4633005, upload-time = "2026-01-21T15:52:04.726Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6f/fa/7f0ac4ca8877c57537aaff2a842f8760e630d8e824b730eb2e859ffe96ca/pandas-3.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b78d646249b9a2bc191040988c7bb524c92fa8534fb0898a0741d7e6f2ffafa6", size = 10307129, upload-time = "2026-01-21T15:50:52.877Z" },+ { url = "https://files.pythonhosted.org/packages/6f/11/28a221815dcea4c0c9414dfc845e34a84a6a7dabc6da3194498ed5ba4361/pandas-3.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bc9cba7b355cb4162442a88ce495e01cb605f17ac1e27d6596ac963504e0305f", size = 9850201, upload-time = "2026-01-21T15:50:54.807Z" },+ { url = "https://files.pythonhosted.org/packages/ba/da/53bbc8c5363b7e5bd10f9ae59ab250fc7a382ea6ba08e4d06d8694370354/pandas-3.0.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3c9a1a149aed3b6c9bf246033ff91e1b02d529546c5d6fb6b74a28fea0cf4c70", size = 10354031, upload-time = "2026-01-21T15:50:57.463Z" },+ { url = "https://files.pythonhosted.org/packages/f7/a3/51e02ebc2a14974170d51e2410dfdab58870ea9bcd37cda15bd553d24dc4/pandas-3.0.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:95683af6175d884ee89471842acfca29172a85031fccdabc35e50c0984470a0e", size = 10861165, upload-time = "2026-01-21T15:50:59.32Z" },+ { url = "https://files.pythonhosted.org/packages/a5/fe/05a51e3cac11d161472b8297bd41723ea98013384dd6d76d115ce3482f9b/pandas-3.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1fbbb5a7288719e36b76b4f18d46ede46e7f916b6c8d9915b756b0a6c3f792b3", size = 11359359, upload-time = "2026-01-21T15:51:02.014Z" },+ { url = "https://files.pythonhosted.org/packages/ee/56/ba620583225f9b85a4d3e69c01df3e3870659cc525f67929b60e9f21dcd1/pandas-3.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8e8b9808590fa364416b49b2a35c1f4cf2785a6c156935879e57f826df22038e", size = 11912907, upload-time = "2026-01-21T15:51:05.175Z" },+ { url = "https://files.pythonhosted.org/packages/c9/8c/c6638d9f67e45e07656b3826405c5cc5f57f6fd07c8b2572ade328c86e22/pandas-3.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:98212a38a709feb90ae658cb6227ea3657c22ba8157d4b8f913cd4c950de5e7e", size = 9732138, upload-time = "2026-01-21T15:51:07.569Z" },+ { url = "https://files.pythonhosted.org/packages/7b/bf/bd1335c3bf1770b6d8fed2799993b11c4971af93bb1b729b9ebbc02ca2ec/pandas-3.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:177d9df10b3f43b70307a149d7ec49a1229a653f907aa60a48f1877d0e6be3be", size = 9033568, upload-time = "2026-01-21T15:51:09.484Z" },+ { url = "https://files.pythonhosted.org/packages/8e/c6/f5e2171914d5e29b9171d495344097d54e3ffe41d2d85d8115baba4dc483/pandas-3.0.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2713810ad3806767b89ad3b7b69ba153e1c6ff6d9c20f9c2140379b2a98b6c98", size = 10741936, upload-time = "2026-01-21T15:51:11.693Z" },+ { url = "https://files.pythonhosted.org/packages/51/88/9a0164f99510a1acb9f548691f022c756c2314aad0d8330a24616c14c462/pandas-3.0.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:15d59f885ee5011daf8335dff47dcb8a912a27b4ad7826dc6cbe809fd145d327", size = 10393884, upload-time = "2026-01-21T15:51:14.197Z" },+ { url = "https://files.pythonhosted.org/packages/e0/53/b34d78084d88d8ae2b848591229da8826d1e65aacf00b3abe34023467648/pandas-3.0.0-cp313-cp313t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:24e6547fb64d2c92665dd2adbfa4e85fa4fd70a9c070e7cfb03b629a0bbab5eb", size = 10310740, upload-time = "2026-01-21T15:51:16.093Z" },+ { url = "https://files.pythonhosted.org/packages/5b/d3/bee792e7c3d6930b74468d990604325701412e55d7aaf47460a22311d1a5/pandas-3.0.0-cp313-cp313t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:48ee04b90e2505c693d3f8e8f524dab8cb8aaf7ddcab52c92afa535e717c4812", size = 10700014, upload-time = "2026-01-21T15:51:18.818Z" },+ { url = "https://files.pythonhosted.org/packages/55/db/2570bc40fb13aaed1cbc3fbd725c3a60ee162477982123c3adc8971e7ac1/pandas-3.0.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:66f72fb172959af42a459e27a8d8d2c7e311ff4c1f7db6deb3b643dbc382ae08", size = 11323737, upload-time = "2026-01-21T15:51:20.784Z" },+ { url = "https://files.pythonhosted.org/packages/bc/2e/297ac7f21c8181b62a4cccebad0a70caf679adf3ae5e83cb676194c8acc3/pandas-3.0.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4a4a400ca18230976724a5066f20878af785f36c6756e498e94c2a5e5d57779c", size = 11771558, upload-time = "2026-01-21T15:51:22.977Z" },+ { url = "https://files.pythonhosted.org/packages/0a/46/e1c6876d71c14332be70239acce9ad435975a80541086e5ffba2f249bcf6/pandas-3.0.0-cp313-cp313t-win_amd64.whl", hash = "sha256:940eebffe55528074341a5a36515f3e4c5e25e958ebbc764c9502cfc35ba3faa", size = 10473771, upload-time = "2026-01-21T15:51:25.285Z" },+ { url = "https://files.pythonhosted.org/packages/c0/db/0270ad9d13c344b7a36fa77f5f8344a46501abf413803e885d22864d10bf/pandas-3.0.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:597c08fb9fef0edf1e4fa2f9828dd27f3d78f9b8c9b4a748d435ffc55732310b", size = 10312075, upload-time = "2026-01-21T15:51:28.5Z" },+ { url = "https://files.pythonhosted.org/packages/09/9f/c176f5e9717f7c91becfe0f55a52ae445d3f7326b4a2cf355978c51b7913/pandas-3.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:447b2d68ac5edcbf94655fe909113a6dba6ef09ad7f9f60c80477825b6c489fe", size = 9900213, upload-time = "2026-01-21T15:51:30.955Z" },+ { url = "https://files.pythonhosted.org/packages/d9/e7/63ad4cc10b257b143e0a5ebb04304ad806b4e1a61c5da25f55896d2ca0f4/pandas-3.0.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:debb95c77ff3ed3ba0d9aa20c3a2f19165cc7956362f9873fce1ba0a53819d70", size = 10428768, upload-time = "2026-01-21T15:51:33.018Z" },+ { url = "https://files.pythonhosted.org/packages/9e/0e/4e4c2d8210f20149fd2248ef3fff26623604922bd564d915f935a06dd63d/pandas-3.0.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fedabf175e7cd82b69b74c30adbaa616de301291a5231138d7242596fc296a8d", size = 10882954, upload-time = "2026-01-21T15:51:35.287Z" },+ { url = "https://files.pythonhosted.org/packages/c6/60/c9de8ac906ba1f4d2250f8a951abe5135b404227a55858a75ad26f84db47/pandas-3.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:412d1a89aab46889f3033a386912efcdfa0f1131c5705ff5b668dda88305e986", size = 11430293, upload-time = "2026-01-21T15:51:37.57Z" },+ { url = "https://files.pythonhosted.org/packages/a1/69/806e6637c70920e5787a6d6896fd707f8134c2c55cd761e7249a97b7dc5a/pandas-3.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e979d22316f9350c516479dd3a92252be2937a9531ed3a26ec324198a99cdd49", size = 11952452, upload-time = "2026-01-21T15:51:39.618Z" },+ { url = "https://files.pythonhosted.org/packages/cb/de/918621e46af55164c400ab0ef389c9d969ab85a43d59ad1207d4ddbe30a5/pandas-3.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:083b11415b9970b6e7888800c43c82e81a06cd6b06755d84804444f0007d6bb7", size = 9851081, upload-time = "2026-01-21T15:51:41.758Z" },+ { url = "https://files.pythonhosted.org/packages/91/a1/3562a18dd0bd8c73344bfa26ff90c53c72f827df119d6d6b1dacc84d13e3/pandas-3.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:5db1e62cb99e739fa78a28047e861b256d17f88463c76b8dafc7c1338086dca8", size = 9174610, upload-time = "2026-01-21T15:51:44.312Z" },+ { url = "https://files.pythonhosted.org/packages/ce/26/430d91257eaf366f1737d7a1c158677caaf6267f338ec74e3a1ec444111c/pandas-3.0.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:697b8f7d346c68274b1b93a170a70974cdc7d7354429894d5927c1effdcccd73", size = 10761999, upload-time = "2026-01-21T15:51:46.899Z" },+ { url = "https://files.pythonhosted.org/packages/ec/1a/954eb47736c2b7f7fe6a9d56b0cb6987773c00faa3c6451a43db4beb3254/pandas-3.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:8cb3120f0d9467ed95e77f67a75e030b67545bcfa08964e349252d674171def2", size = 10410279, upload-time = "2026-01-21T15:51:48.89Z" },+ { url = "https://files.pythonhosted.org/packages/20/fc/b96f3a5a28b250cd1b366eb0108df2501c0f38314a00847242abab71bb3a/pandas-3.0.0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:33fd3e6baa72899746b820c31e4b9688c8e1b7864d7aec2de7ab5035c285277a", size = 10330198, upload-time = "2026-01-21T15:51:51.015Z" },+ { url = "https://files.pythonhosted.org/packages/90/b3/d0e2952f103b4fbef1ef22d0c2e314e74fc9064b51cee30890b5e3286ee6/pandas-3.0.0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8942e333dc67ceda1095227ad0febb05a3b36535e520154085db632c40ad084", size = 10728513, upload-time = "2026-01-21T15:51:53.387Z" },+ { url = "https://files.pythonhosted.org/packages/76/81/832894f286df828993dc5fd61c63b231b0fb73377e99f6c6c369174cf97e/pandas-3.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:783ac35c4d0fe0effdb0d67161859078618b1b6587a1af15928137525217a721", size = 11345550, upload-time = "2026-01-21T15:51:55.329Z" },+ { url = "https://files.pythonhosted.org/packages/34/a0/ed160a00fb4f37d806406bc0a79a8b62fe67f29d00950f8d16203ff3409b/pandas-3.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:125eb901e233f155b268bbef9abd9afb5819db74f0e677e89a61b246228c71ac", size = 11799386, upload-time = "2026-01-21T15:51:57.457Z" },+ { url = "https://files.pythonhosted.org/packages/36/c8/2ac00d7255252c5e3cf61b35ca92ca25704b0188f7454ca4aec08a33cece/pandas-3.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b86d113b6c109df3ce0ad5abbc259fe86a1bd4adfd4a31a89da42f84f65509bb", size = 10873041, upload-time = "2026-01-21T15:52:00.034Z" },+ { url = "https://files.pythonhosted.org/packages/e6/3f/a80ac00acbc6b35166b42850e98a4f466e2c0d9c64054161ba9620f95680/pandas-3.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:1c39eab3ad38f2d7a249095f0a3d8f8c22cc0f847e98ccf5bbe732b272e2d9fa", size = 9441003, upload-time = "2026-01-21T15:52:02.281Z" },+]++[[package]]+name = "pathable"+version = "0.4.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/67/93/8f2c2075b180c12c1e9f6a09d1a985bc2036906b13dff1d8917e395f2048/pathable-0.4.4.tar.gz", hash = "sha256:6905a3cd17804edfac7875b5f6c9142a218c7caef78693c2dbbbfbac186d88b2", size = 8124, upload-time = "2025-01-10T18:43:13.247Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7d/eb/b6260b31b1a96386c0a880edebe26f89669098acea8e0318bff6adb378fd/pathable-0.4.4-py3-none-any.whl", hash = "sha256:5ae9e94793b6ef5a4cbe0a7ce9dbbefc1eec38df253763fd0aeeacf2762dbbc2", size = 9592, upload-time = "2025-01-10T18:43:11.88Z" },+]++[[package]]+name = "pathvalidate"+version = "3.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/fa/2a/52a8da6fe965dea6192eb716b357558e103aea0a1e9a8352ad575a8406ca/pathvalidate-3.3.1.tar.gz", hash = "sha256:b18c07212bfead624345bb8e1d6141cdcf15a39736994ea0b94035ad2b1ba177", size = 63262, upload-time = "2025-06-15T09:07:20.736Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9a/70/875f4a23bfc4731703a5835487d0d2fb999031bd415e7d17c0ae615c18b7/pathvalidate-3.3.1-py3-none-any.whl", hash = "sha256:5263baab691f8e1af96092fa5137ee17df5bdfbd6cff1fcac4d6ef4bc2e1735f", size = 24305, upload-time = "2025-06-15T09:07:19.117Z" },+]++[[package]]+name = "pdfminer-six"+version = "20251230"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "charset-normalizer" },+ { name = "cryptography" },+]+sdist = { url = "https://files.pythonhosted.org/packages/46/9a/d79d8fa6d47a0338846bb558b39b9963b8eb2dfedec61867c138c1b17eeb/pdfminer_six-20251230.tar.gz", hash = "sha256:e8f68a14c57e00c2d7276d26519ea64be1b48f91db1cdc776faa80528ca06c1e", size = 8511285, upload-time = "2025-12-30T15:49:13.104Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/65/d7/b288ea32deb752a09aab73c75e1e7572ab2a2b56c3124a5d1eb24c62ceb3/pdfminer_six-20251230-py3-none-any.whl", hash = "sha256:9ff2e3466a7dfc6de6fd779478850b6b7c2d9e9405aa2a5869376a822771f485", size = 6591909, upload-time = "2025-12-30T15:49:10.76Z" },+]++[[package]]+name = "pdfplumber"+version = "0.11.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pdfminer-six" },+ { name = "pillow" },+ { name = "pypdfium2" },+]+sdist = { url = "https://files.pythonhosted.org/packages/38/37/9ca3519e92a8434eb93be570b131476cc0a4e840bb39c62ddb7813a39d53/pdfplumber-0.11.9.tar.gz", hash = "sha256:481224b678b2bbdbf376e2c39bf914144eef7c3d301b4a28eebf0f7f6109d6dc", size = 102768, upload-time = "2026-01-05T08:10:29.072Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8b/c8/cdbc975f5b634e249cfa6597e37c50f3078412474f21c015e508bfbfe3c3/pdfplumber-0.11.9-py3-none-any.whl", hash = "sha256:33ec5580959ba524e9100138746e090879504c42955df1b8a997604dd326c443", size = 60045, upload-time = "2026-01-05T08:10:27.512Z" },+]++[[package]]+name = "pillow"+version = "12.1.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1f/42/5c74462b4fd957fcd7b13b04fb3205ff8349236ea74c7c375766d6c82288/pillow-12.1.1.tar.gz", hash = "sha256:9ad8fa5937ab05218e2b6a4cff30295ad35afd2f83ac592e68c0d871bb0fdbc4", size = 46980264, upload-time = "2026-02-11T04:23:07.146Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d5/11/6db24d4bd7685583caeae54b7009584e38da3c3d4488ed4cd25b439de486/pillow-12.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d242e8ac078781f1de88bf823d70c1a9b3c7950a44cdf4b7c012e22ccbcd8e4e", size = 4062689, upload-time = "2026-02-11T04:21:06.804Z" },+ { url = "https://files.pythonhosted.org/packages/33/c0/ce6d3b1fe190f0021203e0d9b5b99e57843e345f15f9ef22fcd43842fd21/pillow-12.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:02f84dfad02693676692746df05b89cf25597560db2857363a208e393429f5e9", size = 4138535, upload-time = "2026-02-11T04:21:08.452Z" },+ { url = "https://files.pythonhosted.org/packages/a0/c6/d5eb6a4fb32a3f9c21a8c7613ec706534ea1cf9f4b3663e99f0d83f6fca8/pillow-12.1.1-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:e65498daf4b583091ccbb2556c7000abf0f3349fcd57ef7adc9a84a394ed29f6", size = 3601364, upload-time = "2026-02-11T04:21:10.194Z" },+ { url = "https://files.pythonhosted.org/packages/14/a1/16c4b823838ba4c9c52c0e6bbda903a3fe5a1bdbf1b8eb4fff7156f3e318/pillow-12.1.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:6c6db3b84c87d48d0088943bf33440e0c42370b99b1c2a7989216f7b42eede60", size = 5262561, upload-time = "2026-02-11T04:21:11.742Z" },+ { url = "https://files.pythonhosted.org/packages/bb/ad/ad9dc98ff24f485008aa5cdedaf1a219876f6f6c42a4626c08bc4e80b120/pillow-12.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8b7e5304e34942bf62e15184219a7b5ad4ff7f3bb5cca4d984f37df1a0e1aee2", size = 4657460, upload-time = "2026-02-11T04:21:13.786Z" },+ { url = "https://files.pythonhosted.org/packages/9e/1b/f1a4ea9a895b5732152789326202a82464d5254759fbacae4deea3069334/pillow-12.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:18e5bddd742a44b7e6b1e773ab5db102bd7a94c32555ba656e76d319d19c3850", size = 6232698, upload-time = "2026-02-11T04:21:15.949Z" },+ { url = "https://files.pythonhosted.org/packages/95/f4/86f51b8745070daf21fd2e5b1fe0eb35d4db9ca26e6d58366562fb56a743/pillow-12.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fc44ef1f3de4f45b50ccf9136999d71abb99dca7706bc75d222ed350b9fd2289", size = 8041706, upload-time = "2026-02-11T04:21:17.723Z" },+ { url = "https://files.pythonhosted.org/packages/29/9b/d6ecd956bb1266dd1045e995cce9b8d77759e740953a1c9aad9502a0461e/pillow-12.1.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5a8eb7ed8d4198bccbd07058416eeec51686b498e784eda166395a23eb99138e", size = 6346621, upload-time = "2026-02-11T04:21:19.547Z" },+ { url = "https://files.pythonhosted.org/packages/71/24/538bff45bde96535d7d998c6fed1a751c75ac7c53c37c90dc2601b243893/pillow-12.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:47b94983da0c642de92ced1702c5b6c292a84bd3a8e1d1702ff923f183594717", size = 7038069, upload-time = "2026-02-11T04:21:21.378Z" },+ { url = "https://files.pythonhosted.org/packages/94/0e/58cb1a6bc48f746bc4cb3adb8cabff73e2742c92b3bf7a220b7cf69b9177/pillow-12.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:518a48c2aab7ce596d3bf79d0e275661b846e86e4d0e7dec34712c30fe07f02a", size = 6460040, upload-time = "2026-02-11T04:21:23.148Z" },+ { url = "https://files.pythonhosted.org/packages/6c/57/9045cb3ff11eeb6c1adce3b2d60d7d299d7b273a2e6c8381a524abfdc474/pillow-12.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a550ae29b95c6dc13cf69e2c9dc5747f814c54eeb2e32d683e5e93af56caa029", size = 7164523, upload-time = "2026-02-11T04:21:25.01Z" },+ { url = "https://files.pythonhosted.org/packages/73/f2/9be9cb99f2175f0d4dbadd6616ce1bf068ee54a28277ea1bf1fbf729c250/pillow-12.1.1-cp313-cp313-win32.whl", hash = "sha256:a003d7422449f6d1e3a34e3dd4110c22148336918ddbfc6a32581cd54b2e0b2b", size = 6332552, upload-time = "2026-02-11T04:21:27.238Z" },+ { url = "https://files.pythonhosted.org/packages/3f/eb/b0834ad8b583d7d9d42b80becff092082a1c3c156bb582590fcc973f1c7c/pillow-12.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:344cf1e3dab3be4b1fa08e449323d98a2a3f819ad20f4b22e77a0ede31f0faa1", size = 7040108, upload-time = "2026-02-11T04:21:29.462Z" },+ { url = "https://files.pythonhosted.org/packages/d5/7d/fc09634e2aabdd0feabaff4a32f4a7d97789223e7c2042fd805ea4b4d2c2/pillow-12.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:5c0dd1636633e7e6a0afe7bf6a51a14992b7f8e60de5789018ebbdfae55b040a", size = 2453712, upload-time = "2026-02-11T04:21:31.072Z" },+ { url = "https://files.pythonhosted.org/packages/19/2a/b9d62794fc8a0dd14c1943df68347badbd5511103e0d04c035ffe5cf2255/pillow-12.1.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0330d233c1a0ead844fc097a7d16c0abff4c12e856c0b325f231820fee1f39da", size = 5264880, upload-time = "2026-02-11T04:21:32.865Z" },+ { url = "https://files.pythonhosted.org/packages/26/9d/e03d857d1347fa5ed9247e123fcd2a97b6220e15e9cb73ca0a8d91702c6e/pillow-12.1.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5dae5f21afb91322f2ff791895ddd8889e5e947ff59f71b46041c8ce6db790bc", size = 4660616, upload-time = "2026-02-11T04:21:34.97Z" },+ { url = "https://files.pythonhosted.org/packages/f7/ec/8a6d22afd02570d30954e043f09c32772bfe143ba9285e2fdb11284952cd/pillow-12.1.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2e0c664be47252947d870ac0d327fea7e63985a08794758aa8af5b6cb6ec0c9c", size = 6269008, upload-time = "2026-02-11T04:21:36.623Z" },+ { url = "https://files.pythonhosted.org/packages/3d/1d/6d875422c9f28a4a361f495a5f68d9de4a66941dc2c619103ca335fa6446/pillow-12.1.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:691ab2ac363b8217f7d31b3497108fb1f50faab2f75dfb03284ec2f217e87bf8", size = 8073226, upload-time = "2026-02-11T04:21:38.585Z" },+ { url = "https://files.pythonhosted.org/packages/a1/cd/134b0b6ee5eda6dc09e25e24b40fdafe11a520bc725c1d0bbaa5e00bf95b/pillow-12.1.1-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e9e8064fb1cc019296958595f6db671fba95209e3ceb0c4734c9baf97de04b20", size = 6380136, upload-time = "2026-02-11T04:21:40.562Z" },+ { url = "https://files.pythonhosted.org/packages/7a/a9/7628f013f18f001c1b98d8fffe3452f306a70dc6aba7d931019e0492f45e/pillow-12.1.1-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:472a8d7ded663e6162dafdf20015c486a7009483ca671cece7a9279b512fcb13", size = 7067129, upload-time = "2026-02-11T04:21:42.521Z" },+ { url = "https://files.pythonhosted.org/packages/1e/f8/66ab30a2193b277785601e82ee2d49f68ea575d9637e5e234faaa98efa4c/pillow-12.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:89b54027a766529136a06cfebeecb3a04900397a3590fd252160b888479517bf", size = 6491807, upload-time = "2026-02-11T04:21:44.22Z" },+ { url = "https://files.pythonhosted.org/packages/da/0b/a877a6627dc8318fdb84e357c5e1a758c0941ab1ddffdafd231983788579/pillow-12.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:86172b0831b82ce4f7877f280055892b31179e1576aa00d0df3bb1bbf8c3e524", size = 7190954, upload-time = "2026-02-11T04:21:46.114Z" },+ { url = "https://files.pythonhosted.org/packages/83/43/6f732ff85743cf746b1361b91665d9f5155e1483817f693f8d57ea93147f/pillow-12.1.1-cp313-cp313t-win32.whl", hash = "sha256:44ce27545b6efcf0fdbdceb31c9a5bdea9333e664cda58a7e674bb74608b3986", size = 6336441, upload-time = "2026-02-11T04:21:48.22Z" },+ { url = "https://files.pythonhosted.org/packages/3b/44/e865ef3986611bb75bfabdf94a590016ea327833f434558801122979cd0e/pillow-12.1.1-cp313-cp313t-win_amd64.whl", hash = "sha256:a285e3eb7a5a45a2ff504e31f4a8d1b12ef62e84e5411c6804a42197c1cf586c", size = 7045383, upload-time = "2026-02-11T04:21:50.015Z" },+ { url = "https://files.pythonhosted.org/packages/a8/c6/f4fb24268d0c6908b9f04143697ea18b0379490cb74ba9e8d41b898bd005/pillow-12.1.1-cp313-cp313t-win_arm64.whl", hash = "sha256:cc7d296b5ea4d29e6570dabeaed58d31c3fea35a633a69679fb03d7664f43fb3", size = 2456104, upload-time = "2026-02-11T04:21:51.633Z" },+ { url = "https://files.pythonhosted.org/packages/03/d0/bebb3ffbf31c5a8e97241476c4cf8b9828954693ce6744b4a2326af3e16b/pillow-12.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:417423db963cb4be8bac3fc1204fe61610f6abeed1580a7a2cbb2fbda20f12af", size = 4062652, upload-time = "2026-02-11T04:21:53.19Z" },+ { url = "https://files.pythonhosted.org/packages/2d/c0/0e16fb0addda4851445c28f8350d8c512f09de27bbb0d6d0bbf8b6709605/pillow-12.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:b957b71c6b2387610f556a7eb0828afbe40b4a98036fc0d2acfa5a44a0c2036f", size = 4138823, upload-time = "2026-02-11T04:22:03.088Z" },+ { url = "https://files.pythonhosted.org/packages/6b/fb/6170ec655d6f6bb6630a013dd7cf7bc218423d7b5fa9071bf63dc32175ae/pillow-12.1.1-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:097690ba1f2efdeb165a20469d59d8bb03c55fb6621eb2041a060ae8ea3e9642", size = 3601143, upload-time = "2026-02-11T04:22:04.909Z" },+ { url = "https://files.pythonhosted.org/packages/59/04/dc5c3f297510ba9a6837cbb318b87dd2b8f73eb41a43cc63767f65cb599c/pillow-12.1.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:2815a87ab27848db0321fb78c7f0b2c8649dee134b7f2b80c6a45c6831d75ccd", size = 5266254, upload-time = "2026-02-11T04:22:07.656Z" },+ { url = "https://files.pythonhosted.org/packages/05/30/5db1236b0d6313f03ebf97f5e17cda9ca060f524b2fcc875149a8360b21c/pillow-12.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:f7ed2c6543bad5a7d5530eb9e78c53132f93dfa44a28492db88b41cdab885202", size = 4657499, upload-time = "2026-02-11T04:22:09.613Z" },+ { url = "https://files.pythonhosted.org/packages/6f/18/008d2ca0eb612e81968e8be0bbae5051efba24d52debf930126d7eaacbba/pillow-12.1.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:652a2c9ccfb556235b2b501a3a7cf3742148cd22e04b5625c5fe057ea3e3191f", size = 6232137, upload-time = "2026-02-11T04:22:11.434Z" },+ { url = "https://files.pythonhosted.org/packages/70/f1/f14d5b8eeb4b2cd62b9f9f847eb6605f103df89ef619ac68f92f748614ea/pillow-12.1.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d6e4571eedf43af33d0fc233a382a76e849badbccdf1ac438841308652a08e1f", size = 8042721, upload-time = "2026-02-11T04:22:13.321Z" },+ { url = "https://files.pythonhosted.org/packages/5a/d6/17824509146e4babbdabf04d8171491fa9d776f7061ff6e727522df9bd03/pillow-12.1.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b574c51cf7d5d62e9be37ba446224b59a2da26dc4c1bb2ecbe936a4fb1a7cb7f", size = 6347798, upload-time = "2026-02-11T04:22:15.449Z" },+ { url = "https://files.pythonhosted.org/packages/d1/ee/c85a38a9ab92037a75615aba572c85ea51e605265036e00c5b67dfafbfe2/pillow-12.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a37691702ed687799de29a518d63d4682d9016932db66d4e90c345831b02fb4e", size = 7039315, upload-time = "2026-02-11T04:22:17.24Z" },+ { url = "https://files.pythonhosted.org/packages/ec/f3/bc8ccc6e08a148290d7523bde4d9a0d6c981db34631390dc6e6ec34cacf6/pillow-12.1.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:f95c00d5d6700b2b890479664a06e754974848afaae5e21beb4d83c106923fd0", size = 6462360, upload-time = "2026-02-11T04:22:19.111Z" },+ { url = "https://files.pythonhosted.org/packages/f6/ab/69a42656adb1d0665ab051eec58a41f169ad295cf81ad45406963105408f/pillow-12.1.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:559b38da23606e68681337ad74622c4dbba02254fc9cb4488a305dd5975c7eeb", size = 7165438, upload-time = "2026-02-11T04:22:21.041Z" },+ { url = "https://files.pythonhosted.org/packages/02/46/81f7aa8941873f0f01d4b55cc543b0a3d03ec2ee30d617a0448bf6bd6dec/pillow-12.1.1-cp314-cp314-win32.whl", hash = "sha256:03edcc34d688572014ff223c125a3f77fb08091e4607e7745002fc214070b35f", size = 6431503, upload-time = "2026-02-11T04:22:22.833Z" },+ { url = "https://files.pythonhosted.org/packages/40/72/4c245f7d1044b67affc7f134a09ea619d4895333d35322b775b928180044/pillow-12.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:50480dcd74fa63b8e78235957d302d98d98d82ccbfac4c7e12108ba9ecbdba15", size = 7176748, upload-time = "2026-02-11T04:22:24.64Z" },+ { url = "https://files.pythonhosted.org/packages/e4/ad/8a87bdbe038c5c698736e3348af5c2194ffb872ea52f11894c95f9305435/pillow-12.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:5cb1785d97b0c3d1d1a16bc1d710c4a0049daefc4935f3a8f31f827f4d3d2e7f", size = 2544314, upload-time = "2026-02-11T04:22:26.685Z" },+ { url = "https://files.pythonhosted.org/packages/6c/9d/efd18493f9de13b87ede7c47e69184b9e859e4427225ea962e32e56a49bc/pillow-12.1.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:1f90cff8aa76835cba5769f0b3121a22bd4eb9e6884cfe338216e557a9a548b8", size = 5268612, upload-time = "2026-02-11T04:22:29.884Z" },+ { url = "https://files.pythonhosted.org/packages/f8/f1/4f42eb2b388eb2ffc660dcb7f7b556c1015c53ebd5f7f754965ef997585b/pillow-12.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1f1be78ce9466a7ee64bfda57bdba0f7cc499d9794d518b854816c41bf0aa4e9", size = 4660567, upload-time = "2026-02-11T04:22:31.799Z" },+ { url = "https://files.pythonhosted.org/packages/01/54/df6ef130fa43e4b82e32624a7b821a2be1c5653a5fdad8469687a7db4e00/pillow-12.1.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:42fc1f4677106188ad9a55562bbade416f8b55456f522430fadab3cef7cd4e60", size = 6269951, upload-time = "2026-02-11T04:22:33.921Z" },+ { url = "https://files.pythonhosted.org/packages/a9/48/618752d06cc44bb4aae8ce0cd4e6426871929ed7b46215638088270d9b34/pillow-12.1.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:98edb152429ab62a1818039744d8fbb3ccab98a7c29fc3d5fcef158f3f1f68b7", size = 8074769, upload-time = "2026-02-11T04:22:35.877Z" },+ { url = "https://files.pythonhosted.org/packages/c3/bd/f1d71eb39a72fa088d938655afba3e00b38018d052752f435838961127d8/pillow-12.1.1-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d470ab1178551dd17fdba0fef463359c41aaa613cdcd7ff8373f54be629f9f8f", size = 6381358, upload-time = "2026-02-11T04:22:37.698Z" },+ { url = "https://files.pythonhosted.org/packages/64/ef/c784e20b96674ed36a5af839305f55616f8b4f8aa8eeccf8531a6e312243/pillow-12.1.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6408a7b064595afcab0a49393a413732a35788f2a5092fdc6266952ed67de586", size = 7068558, upload-time = "2026-02-11T04:22:39.597Z" },+ { url = "https://files.pythonhosted.org/packages/73/cb/8059688b74422ae61278202c4e1ad992e8a2e7375227be0a21c6b87ca8d5/pillow-12.1.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5d8c41325b382c07799a3682c1c258469ea2ff97103c53717b7893862d0c98ce", size = 6493028, upload-time = "2026-02-11T04:22:42.73Z" },+ { url = "https://files.pythonhosted.org/packages/c6/da/e3c008ed7d2dd1f905b15949325934510b9d1931e5df999bb15972756818/pillow-12.1.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:c7697918b5be27424e9ce568193efd13d925c4481dd364e43f5dff72d33e10f8", size = 7191940, upload-time = "2026-02-11T04:22:44.543Z" },+ { url = "https://files.pythonhosted.org/packages/01/4a/9202e8d11714c1fc5951f2e1ef362f2d7fbc595e1f6717971d5dd750e969/pillow-12.1.1-cp314-cp314t-win32.whl", hash = "sha256:d2912fd8114fc5545aa3a4b5576512f64c55a03f3ebcca4c10194d593d43ea36", size = 6438736, upload-time = "2026-02-11T04:22:46.347Z" },+ { url = "https://files.pythonhosted.org/packages/f3/ca/cbce2327eb9885476b3957b2e82eb12c866a8b16ad77392864ad601022ce/pillow-12.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:4ceb838d4bd9dab43e06c363cab2eebf63846d6a4aeaea283bbdfd8f1a8ed58b", size = 7182894, upload-time = "2026-02-11T04:22:48.114Z" },+ { url = "https://files.pythonhosted.org/packages/ec/d2/de599c95ba0a973b94410477f8bf0b6f0b5e67360eb89bcb1ad365258beb/pillow-12.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:7b03048319bfc6170e93bd60728a1af51d3dd7704935feb228c4d4faab35d334", size = 2546446, upload-time = "2026-02-11T04:22:50.342Z" },+]++[[package]]+name = "platformdirs"+version = "4.5.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/cf/86/0248f086a84f01b37aaec0fa567b397df1a119f73c16f6c7a9aac73ea309/platformdirs-4.5.1.tar.gz", hash = "sha256:61d5cdcc6065745cdd94f0f878977f8de9437be93de97c1c12f853c9c0cdcbda", size = 21715, upload-time = "2025-12-05T13:52:58.638Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/28/3bfe2fa5a7b9c46fe7e13c97bda14c895fb10fa2ebf1d0abb90e0cea7ee1/platformdirs-4.5.1-py3-none-any.whl", hash = "sha256:d03afa3963c806a9bed9d5125c8f4cb2fdaf74a55ab60e5d59b3fde758104d31", size = 18731, upload-time = "2025-12-05T13:52:56.823Z" },+]++[[package]]+name = "pluggy"+version = "1.6.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },+]++[[package]]+name = "portalocker"+version = "3.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pywin32", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5e/77/65b857a69ed876e1951e88aaba60f5ce6120c33703f7cb61a3c894b8c1b6/portalocker-3.2.0.tar.gz", hash = "sha256:1f3002956a54a8c3730586c5c77bf18fae4149e07eaf1c29fc3faf4d5a3f89ac", size = 95644, upload-time = "2025-06-14T13:20:40.03Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4b/a6/38c8e2f318bf67d338f4d629e93b0b4b9af331f455f0390ea8ce4a099b26/portalocker-3.2.0-py3-none-any.whl", hash = "sha256:3cdc5f565312224bc570c49337bd21428bba0ef363bbcf58b9ef4a9f11779968", size = 22424, upload-time = "2025-06-14T13:20:38.083Z" },+]++[[package]]+name = "pre-commit"+version = "4.5.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cfgv" },+ { name = "identify" },+ { name = "nodeenv" },+ { name = "pyyaml" },+ { name = "virtualenv" },+]+sdist = { url = "https://files.pythonhosted.org/packages/40/f1/6d86a29246dfd2e9b6237f0b5823717f60cad94d47ddc26afa916d21f525/pre_commit-4.5.1.tar.gz", hash = "sha256:eb545fcff725875197837263e977ea257a402056661f09dae08e4b149b030a61", size = 198232, upload-time = "2025-12-16T21:14:33.552Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5d/19/fd3ef348460c80af7bb4669ea7926651d1f95c23ff2df18b9d24bab4f3fa/pre_commit-4.5.1-py2.py3-none-any.whl", hash = "sha256:3b3afd891e97337708c1674210f8eba659b52a38ea5f822ff142d10786221f77", size = 226437, upload-time = "2025-12-16T21:14:32.409Z" },+]++[[package]]+name = "prometheus-client"+version = "0.24.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f0/58/a794d23feb6b00fc0c72787d7e87d872a6730dd9ed7c7b3e954637d8f280/prometheus_client-0.24.1.tar.gz", hash = "sha256:7e0ced7fbbd40f7b84962d5d2ab6f17ef88a72504dcf7c0b40737b43b2a461f9", size = 85616, upload-time = "2026-01-14T15:26:26.965Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/74/c3/24a2f845e3917201628ecaba4f18bab4d18a337834c1df2a159ee9d22a42/prometheus_client-0.24.1-py3-none-any.whl", hash = "sha256:150db128af71a5c2482b36e588fc8a6b95e498750da4b17065947c16070f4055", size = 64057, upload-time = "2026-01-14T15:26:24.42Z" },+]++[[package]]+name = "propcache"+version = "0.4.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/9e/da/e9fc233cf63743258bff22b3dfa7ea5baef7b5bc324af47a0ad89b8ffc6f/propcache-0.4.1.tar.gz", hash = "sha256:f48107a8c637e80362555f37ecf49abe20370e557cc4ab374f04ec4423c97c3d", size = 46442, upload-time = "2025-10-08T19:49:02.291Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bf/df/6d9c1b6ac12b003837dde8a10231a7344512186e87b36e855bef32241942/propcache-0.4.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:43eedf29202c08550aac1d14e0ee619b0430aaef78f85864c1a892294fbc28cf", size = 77750, upload-time = "2025-10-08T19:47:07.648Z" },+ { url = "https://files.pythonhosted.org/packages/8b/e8/677a0025e8a2acf07d3418a2e7ba529c9c33caf09d3c1f25513023c1db56/propcache-0.4.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d62cdfcfd89ccb8de04e0eda998535c406bf5e060ffd56be6c586cbcc05b3311", size = 44780, upload-time = "2025-10-08T19:47:08.851Z" },+ { url = "https://files.pythonhosted.org/packages/89/a4/92380f7ca60f99ebae761936bc48a72a639e8a47b29050615eef757cb2a7/propcache-0.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cae65ad55793da34db5f54e4029b89d3b9b9490d8abe1b4c7ab5d4b8ec7ebf74", size = 46308, upload-time = "2025-10-08T19:47:09.982Z" },+ { url = "https://files.pythonhosted.org/packages/2d/48/c5ac64dee5262044348d1d78a5f85dd1a57464a60d30daee946699963eb3/propcache-0.4.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:333ddb9031d2704a301ee3e506dc46b1fe5f294ec198ed6435ad5b6a085facfe", size = 208182, upload-time = "2025-10-08T19:47:11.319Z" },+ { url = "https://files.pythonhosted.org/packages/c6/0c/cd762dd011a9287389a6a3eb43aa30207bde253610cca06824aeabfe9653/propcache-0.4.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fd0858c20f078a32cf55f7e81473d96dcf3b93fd2ccdb3d40fdf54b8573df3af", size = 211215, upload-time = "2025-10-08T19:47:13.146Z" },+ { url = "https://files.pythonhosted.org/packages/30/3e/49861e90233ba36890ae0ca4c660e95df565b2cd15d4a68556ab5865974e/propcache-0.4.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:678ae89ebc632c5c204c794f8dab2837c5f159aeb59e6ed0539500400577298c", size = 218112, upload-time = "2025-10-08T19:47:14.913Z" },+ { url = "https://files.pythonhosted.org/packages/f1/8b/544bc867e24e1bd48f3118cecd3b05c694e160a168478fa28770f22fd094/propcache-0.4.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d472aeb4fbf9865e0c6d622d7f4d54a4e101a89715d8904282bb5f9a2f476c3f", size = 204442, upload-time = "2025-10-08T19:47:16.277Z" },+ { url = "https://files.pythonhosted.org/packages/50/a6/4282772fd016a76d3e5c0df58380a5ea64900afd836cec2c2f662d1b9bb3/propcache-0.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4d3df5fa7e36b3225954fba85589da77a0fe6a53e3976de39caf04a0db4c36f1", size = 199398, upload-time = "2025-10-08T19:47:17.962Z" },+ { url = "https://files.pythonhosted.org/packages/3e/ec/d8a7cd406ee1ddb705db2139f8a10a8a427100347bd698e7014351c7af09/propcache-0.4.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:ee17f18d2498f2673e432faaa71698032b0127ebf23ae5974eeaf806c279df24", size = 196920, upload-time = "2025-10-08T19:47:19.355Z" },+ { url = "https://files.pythonhosted.org/packages/f6/6c/f38ab64af3764f431e359f8baf9e0a21013e24329e8b85d2da32e8ed07ca/propcache-0.4.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:580e97762b950f993ae618e167e7be9256b8353c2dcd8b99ec100eb50f5286aa", size = 203748, upload-time = "2025-10-08T19:47:21.338Z" },+ { url = "https://files.pythonhosted.org/packages/d6/e3/fa846bd70f6534d647886621388f0a265254d30e3ce47e5c8e6e27dbf153/propcache-0.4.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:501d20b891688eb8e7aa903021f0b72d5a55db40ffaab27edefd1027caaafa61", size = 205877, upload-time = "2025-10-08T19:47:23.059Z" },+ { url = "https://files.pythonhosted.org/packages/e2/39/8163fc6f3133fea7b5f2827e8eba2029a0277ab2c5beee6c1db7b10fc23d/propcache-0.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a0bd56e5b100aef69bd8562b74b46254e7c8812918d3baa700c8a8009b0af66", size = 199437, upload-time = "2025-10-08T19:47:24.445Z" },+ { url = "https://files.pythonhosted.org/packages/93/89/caa9089970ca49c7c01662bd0eeedfe85494e863e8043565aeb6472ce8fe/propcache-0.4.1-cp313-cp313-win32.whl", hash = "sha256:bcc9aaa5d80322bc2fb24bb7accb4a30f81e90ab8d6ba187aec0744bc302ad81", size = 37586, upload-time = "2025-10-08T19:47:25.736Z" },+ { url = "https://files.pythonhosted.org/packages/f5/ab/f76ec3c3627c883215b5c8080debb4394ef5a7a29be811f786415fc1e6fd/propcache-0.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:381914df18634f5494334d201e98245c0596067504b9372d8cf93f4bb23e025e", size = 40790, upload-time = "2025-10-08T19:47:26.847Z" },+ { url = "https://files.pythonhosted.org/packages/59/1b/e71ae98235f8e2ba5004d8cb19765a74877abf189bc53fc0c80d799e56c3/propcache-0.4.1-cp313-cp313-win_arm64.whl", hash = "sha256:8873eb4460fd55333ea49b7d189749ecf6e55bf85080f11b1c4530ed3034cba1", size = 37158, upload-time = "2025-10-08T19:47:27.961Z" },+ { url = "https://files.pythonhosted.org/packages/83/ce/a31bbdfc24ee0dcbba458c8175ed26089cf109a55bbe7b7640ed2470cfe9/propcache-0.4.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:92d1935ee1f8d7442da9c0c4fa7ac20d07e94064184811b685f5c4fada64553b", size = 81451, upload-time = "2025-10-08T19:47:29.445Z" },+ { url = "https://files.pythonhosted.org/packages/25/9c/442a45a470a68456e710d96cacd3573ef26a1d0a60067e6a7d5e655621ed/propcache-0.4.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:473c61b39e1460d386479b9b2f337da492042447c9b685f28be4f74d3529e566", size = 46374, upload-time = "2025-10-08T19:47:30.579Z" },+ { url = "https://files.pythonhosted.org/packages/f4/bf/b1d5e21dbc3b2e889ea4327044fb16312a736d97640fb8b6aa3f9c7b3b65/propcache-0.4.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:c0ef0aaafc66fbd87842a3fe3902fd889825646bc21149eafe47be6072725835", size = 48396, upload-time = "2025-10-08T19:47:31.79Z" },+ { url = "https://files.pythonhosted.org/packages/f4/04/5b4c54a103d480e978d3c8a76073502b18db0c4bc17ab91b3cb5092ad949/propcache-0.4.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f95393b4d66bfae908c3ca8d169d5f79cd65636ae15b5e7a4f6e67af675adb0e", size = 275950, upload-time = "2025-10-08T19:47:33.481Z" },+ { url = "https://files.pythonhosted.org/packages/b4/c1/86f846827fb969c4b78b0af79bba1d1ea2156492e1b83dea8b8a6ae27395/propcache-0.4.1-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c07fda85708bc48578467e85099645167a955ba093be0a2dcba962195676e859", size = 273856, upload-time = "2025-10-08T19:47:34.906Z" },+ { url = "https://files.pythonhosted.org/packages/36/1d/fc272a63c8d3bbad6878c336c7a7dea15e8f2d23a544bda43205dfa83ada/propcache-0.4.1-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:af223b406d6d000830c6f65f1e6431783fc3f713ba3e6cc8c024d5ee96170a4b", size = 280420, upload-time = "2025-10-08T19:47:36.338Z" },+ { url = "https://files.pythonhosted.org/packages/07/0c/01f2219d39f7e53d52e5173bcb09c976609ba30209912a0680adfb8c593a/propcache-0.4.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a78372c932c90ee474559c5ddfffd718238e8673c340dc21fe45c5b8b54559a0", size = 263254, upload-time = "2025-10-08T19:47:37.692Z" },+ { url = "https://files.pythonhosted.org/packages/2d/18/cd28081658ce597898f0c4d174d4d0f3c5b6d4dc27ffafeef835c95eb359/propcache-0.4.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:564d9f0d4d9509e1a870c920a89b2fec951b44bf5ba7d537a9e7c1ccec2c18af", size = 261205, upload-time = "2025-10-08T19:47:39.659Z" },+ { url = "https://files.pythonhosted.org/packages/7a/71/1f9e22eb8b8316701c2a19fa1f388c8a3185082607da8e406a803c9b954e/propcache-0.4.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:17612831fda0138059cc5546f4d12a2aacfb9e47068c06af35c400ba58ba7393", size = 247873, upload-time = "2025-10-08T19:47:41.084Z" },+ { url = "https://files.pythonhosted.org/packages/4a/65/3d4b61f36af2b4eddba9def857959f1016a51066b4f1ce348e0cf7881f58/propcache-0.4.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:41a89040cb10bd345b3c1a873b2bf36413d48da1def52f268a055f7398514874", size = 262739, upload-time = "2025-10-08T19:47:42.51Z" },+ { url = "https://files.pythonhosted.org/packages/2a/42/26746ab087faa77c1c68079b228810436ccd9a5ce9ac85e2b7307195fd06/propcache-0.4.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:e35b88984e7fa64aacecea39236cee32dd9bd8c55f57ba8a75cf2399553f9bd7", size = 263514, upload-time = "2025-10-08T19:47:43.927Z" },+ { url = "https://files.pythonhosted.org/packages/94/13/630690fe201f5502d2403dd3cfd451ed8858fe3c738ee88d095ad2ff407b/propcache-0.4.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6f8b465489f927b0df505cbe26ffbeed4d6d8a2bbc61ce90eb074ff129ef0ab1", size = 257781, upload-time = "2025-10-08T19:47:45.448Z" },+ { url = "https://files.pythonhosted.org/packages/92/f7/1d4ec5841505f423469efbfc381d64b7b467438cd5a4bbcbb063f3b73d27/propcache-0.4.1-cp313-cp313t-win32.whl", hash = "sha256:2ad890caa1d928c7c2965b48f3a3815c853180831d0e5503d35cf00c472f4717", size = 41396, upload-time = "2025-10-08T19:47:47.202Z" },+ { url = "https://files.pythonhosted.org/packages/48/f0/615c30622316496d2cbbc29f5985f7777d3ada70f23370608c1d3e081c1f/propcache-0.4.1-cp313-cp313t-win_amd64.whl", hash = "sha256:f7ee0e597f495cf415bcbd3da3caa3bd7e816b74d0d52b8145954c5e6fd3ff37", size = 44897, upload-time = "2025-10-08T19:47:48.336Z" },+ { url = "https://files.pythonhosted.org/packages/fd/ca/6002e46eccbe0e33dcd4069ef32f7f1c9e243736e07adca37ae8c4830ec3/propcache-0.4.1-cp313-cp313t-win_arm64.whl", hash = "sha256:929d7cbe1f01bb7baffb33dc14eb5691c95831450a26354cd210a8155170c93a", size = 39789, upload-time = "2025-10-08T19:47:49.876Z" },+ { url = "https://files.pythonhosted.org/packages/8e/5c/bca52d654a896f831b8256683457ceddd490ec18d9ec50e97dfd8fc726a8/propcache-0.4.1-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:3f7124c9d820ba5548d431afb4632301acf965db49e666aa21c305cbe8c6de12", size = 78152, upload-time = "2025-10-08T19:47:51.051Z" },+ { url = "https://files.pythonhosted.org/packages/65/9b/03b04e7d82a5f54fb16113d839f5ea1ede58a61e90edf515f6577c66fa8f/propcache-0.4.1-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:c0d4b719b7da33599dfe3b22d3db1ef789210a0597bc650b7cee9c77c2be8c5c", size = 44869, upload-time = "2025-10-08T19:47:52.594Z" },+ { url = "https://files.pythonhosted.org/packages/b2/fa/89a8ef0468d5833a23fff277b143d0573897cf75bd56670a6d28126c7d68/propcache-0.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9f302f4783709a78240ebc311b793f123328716a60911d667e0c036bc5dcbded", size = 46596, upload-time = "2025-10-08T19:47:54.073Z" },+ { url = "https://files.pythonhosted.org/packages/86/bd/47816020d337f4a746edc42fe8d53669965138f39ee117414c7d7a340cfe/propcache-0.4.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c80ee5802e3fb9ea37938e7eecc307fb984837091d5fd262bb37238b1ae97641", size = 206981, upload-time = "2025-10-08T19:47:55.715Z" },+ { url = "https://files.pythonhosted.org/packages/df/f6/c5fa1357cc9748510ee55f37173eb31bfde6d94e98ccd9e6f033f2fc06e1/propcache-0.4.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ed5a841e8bb29a55fb8159ed526b26adc5bdd7e8bd7bf793ce647cb08656cdf4", size = 211490, upload-time = "2025-10-08T19:47:57.499Z" },+ { url = "https://files.pythonhosted.org/packages/80/1e/e5889652a7c4a3846683401a48f0f2e5083ce0ec1a8a5221d8058fbd1adf/propcache-0.4.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:55c72fd6ea2da4c318e74ffdf93c4fe4e926051133657459131a95c846d16d44", size = 215371, upload-time = "2025-10-08T19:47:59.317Z" },+ { url = "https://files.pythonhosted.org/packages/b2/f2/889ad4b2408f72fe1a4f6a19491177b30ea7bf1a0fd5f17050ca08cfc882/propcache-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8326e144341460402713f91df60ade3c999d601e7eb5ff8f6f7862d54de0610d", size = 201424, upload-time = "2025-10-08T19:48:00.67Z" },+ { url = "https://files.pythonhosted.org/packages/27/73/033d63069b57b0812c8bd19f311faebeceb6ba31b8f32b73432d12a0b826/propcache-0.4.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:060b16ae65bc098da7f6d25bf359f1f31f688384858204fe5d652979e0015e5b", size = 197566, upload-time = "2025-10-08T19:48:02.604Z" },+ { url = "https://files.pythonhosted.org/packages/dc/89/ce24f3dc182630b4e07aa6d15f0ff4b14ed4b9955fae95a0b54c58d66c05/propcache-0.4.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:89eb3fa9524f7bec9de6e83cf3faed9d79bffa560672c118a96a171a6f55831e", size = 193130, upload-time = "2025-10-08T19:48:04.499Z" },+ { url = "https://files.pythonhosted.org/packages/a9/24/ef0d5fd1a811fb5c609278d0209c9f10c35f20581fcc16f818da959fc5b4/propcache-0.4.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:dee69d7015dc235f526fe80a9c90d65eb0039103fe565776250881731f06349f", size = 202625, upload-time = "2025-10-08T19:48:06.213Z" },+ { url = "https://files.pythonhosted.org/packages/f5/02/98ec20ff5546f68d673df2f7a69e8c0d076b5abd05ca882dc7ee3a83653d/propcache-0.4.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5558992a00dfd54ccbc64a32726a3357ec93825a418a401f5cc67df0ac5d9e49", size = 204209, upload-time = "2025-10-08T19:48:08.432Z" },+ { url = "https://files.pythonhosted.org/packages/a0/87/492694f76759b15f0467a2a93ab68d32859672b646aa8a04ce4864e7932d/propcache-0.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:c9b822a577f560fbd9554812526831712c1436d2c046cedee4c3796d3543b144", size = 197797, upload-time = "2025-10-08T19:48:09.968Z" },+ { url = "https://files.pythonhosted.org/packages/ee/36/66367de3575db1d2d3f3d177432bd14ee577a39d3f5d1b3d5df8afe3b6e2/propcache-0.4.1-cp314-cp314-win32.whl", hash = "sha256:ab4c29b49d560fe48b696cdcb127dd36e0bc2472548f3bf56cc5cb3da2b2984f", size = 38140, upload-time = "2025-10-08T19:48:11.232Z" },+ { url = "https://files.pythonhosted.org/packages/0c/2a/a758b47de253636e1b8aef181c0b4f4f204bf0dd964914fb2af90a95b49b/propcache-0.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:5a103c3eb905fcea0ab98be99c3a9a5ab2de60228aa5aceedc614c0281cf6153", size = 41257, upload-time = "2025-10-08T19:48:12.707Z" },+ { url = "https://files.pythonhosted.org/packages/34/5e/63bd5896c3fec12edcbd6f12508d4890d23c265df28c74b175e1ef9f4f3b/propcache-0.4.1-cp314-cp314-win_arm64.whl", hash = "sha256:74c1fb26515153e482e00177a1ad654721bf9207da8a494a0c05e797ad27b992", size = 38097, upload-time = "2025-10-08T19:48:13.923Z" },+ { url = "https://files.pythonhosted.org/packages/99/85/9ff785d787ccf9bbb3f3106f79884a130951436f58392000231b4c737c80/propcache-0.4.1-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:824e908bce90fb2743bd6b59db36eb4f45cd350a39637c9f73b1c1ea66f5b75f", size = 81455, upload-time = "2025-10-08T19:48:15.16Z" },+ { url = "https://files.pythonhosted.org/packages/90/85/2431c10c8e7ddb1445c1f7c4b54d886e8ad20e3c6307e7218f05922cad67/propcache-0.4.1-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:c2b5e7db5328427c57c8e8831abda175421b709672f6cfc3d630c3b7e2146393", size = 46372, upload-time = "2025-10-08T19:48:16.424Z" },+ { url = "https://files.pythonhosted.org/packages/01/20/b0972d902472da9bcb683fa595099911f4d2e86e5683bcc45de60dd05dc3/propcache-0.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6f6ff873ed40292cd4969ef5310179afd5db59fdf055897e282485043fc80ad0", size = 48411, upload-time = "2025-10-08T19:48:17.577Z" },+ { url = "https://files.pythonhosted.org/packages/e2/e3/7dc89f4f21e8f99bad3d5ddb3a3389afcf9da4ac69e3deb2dcdc96e74169/propcache-0.4.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49a2dc67c154db2c1463013594c458881a069fcf98940e61a0569016a583020a", size = 275712, upload-time = "2025-10-08T19:48:18.901Z" },+ { url = "https://files.pythonhosted.org/packages/20/67/89800c8352489b21a8047c773067644e3897f02ecbbd610f4d46b7f08612/propcache-0.4.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:005f08e6a0529984491e37d8dbc3dd86f84bd78a8ceb5fa9a021f4c48d4984be", size = 273557, upload-time = "2025-10-08T19:48:20.762Z" },+ { url = "https://files.pythonhosted.org/packages/e2/a1/b52b055c766a54ce6d9c16d9aca0cad8059acd9637cdf8aa0222f4a026ef/propcache-0.4.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5c3310452e0d31390da9035c348633b43d7e7feb2e37be252be6da45abd1abcc", size = 280015, upload-time = "2025-10-08T19:48:22.592Z" },+ { url = "https://files.pythonhosted.org/packages/48/c8/33cee30bd890672c63743049f3c9e4be087e6780906bfc3ec58528be59c1/propcache-0.4.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4c3c70630930447f9ef1caac7728c8ad1c56bc5015338b20fed0d08ea2480b3a", size = 262880, upload-time = "2025-10-08T19:48:23.947Z" },+ { url = "https://files.pythonhosted.org/packages/0c/b1/8f08a143b204b418285c88b83d00edbd61afbc2c6415ffafc8905da7038b/propcache-0.4.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8e57061305815dfc910a3634dcf584f08168a8836e6999983569f51a8544cd89", size = 260938, upload-time = "2025-10-08T19:48:25.656Z" },+ { url = "https://files.pythonhosted.org/packages/cf/12/96e4664c82ca2f31e1c8dff86afb867348979eb78d3cb8546a680287a1e9/propcache-0.4.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:521a463429ef54143092c11a77e04056dd00636f72e8c45b70aaa3140d639726", size = 247641, upload-time = "2025-10-08T19:48:27.207Z" },+ { url = "https://files.pythonhosted.org/packages/18/ed/e7a9cfca28133386ba52278136d42209d3125db08d0a6395f0cba0c0285c/propcache-0.4.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:120c964da3fdc75e3731aa392527136d4ad35868cc556fd09bb6d09172d9a367", size = 262510, upload-time = "2025-10-08T19:48:28.65Z" },+ { url = "https://files.pythonhosted.org/packages/f5/76/16d8bf65e8845dd62b4e2b57444ab81f07f40caa5652b8969b87ddcf2ef6/propcache-0.4.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:d8f353eb14ee3441ee844ade4277d560cdd68288838673273b978e3d6d2c8f36", size = 263161, upload-time = "2025-10-08T19:48:30.133Z" },+ { url = "https://files.pythonhosted.org/packages/e7/70/c99e9edb5d91d5ad8a49fa3c1e8285ba64f1476782fed10ab251ff413ba1/propcache-0.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ab2943be7c652f09638800905ee1bab2c544e537edb57d527997a24c13dc1455", size = 257393, upload-time = "2025-10-08T19:48:31.567Z" },+ { url = "https://files.pythonhosted.org/packages/08/02/87b25304249a35c0915d236575bc3574a323f60b47939a2262b77632a3ee/propcache-0.4.1-cp314-cp314t-win32.whl", hash = "sha256:05674a162469f31358c30bcaa8883cb7829fa3110bf9c0991fe27d7896c42d85", size = 42546, upload-time = "2025-10-08T19:48:32.872Z" },+ { url = "https://files.pythonhosted.org/packages/cb/ef/3c6ecf8b317aa982f309835e8f96987466123c6e596646d4e6a1dfcd080f/propcache-0.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:990f6b3e2a27d683cb7602ed6c86f15ee6b43b1194736f9baaeb93d0016633b1", size = 46259, upload-time = "2025-10-08T19:48:34.226Z" },+ { url = "https://files.pythonhosted.org/packages/c4/2d/346e946d4951f37eca1e4f55be0f0174c52cd70720f84029b02f296f4a38/propcache-0.4.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ecef2343af4cc68e05131e45024ba34f6095821988a9d0a02aa7c73fcc448aa9", size = 40428, upload-time = "2025-10-08T19:48:35.441Z" },+ { url = "https://files.pythonhosted.org/packages/5b/5a/bc7b4a4ef808fa59a816c17b20c4bef6884daebbdf627ff2a161da67da19/propcache-0.4.1-py3-none-any.whl", hash = "sha256:af2a6052aeb6cf17d3e46ee169099044fd8224cbaf75c76a2ef596e8163e2237", size = 13305, upload-time = "2025-10-08T19:49:00.792Z" },+]++[[package]]+name = "protobuf"+version = "6.33.5"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ba/25/7c72c307aafc96fa87062aa6291d9f7c94836e43214d43722e86037aac02/protobuf-6.33.5.tar.gz", hash = "sha256:6ddcac2a081f8b7b9642c09406bc6a4290128fce5f471cddd165960bb9119e5c", size = 444465, upload-time = "2026-01-29T21:51:33.494Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b1/79/af92d0a8369732b027e6d6084251dd8e782c685c72da161bd4a2e00fbabb/protobuf-6.33.5-cp310-abi3-win32.whl", hash = "sha256:d71b040839446bac0f4d162e758bea99c8251161dae9d0983a3b88dee345153b", size = 425769, upload-time = "2026-01-29T21:51:21.751Z" },+ { url = "https://files.pythonhosted.org/packages/55/75/bb9bc917d10e9ee13dee8607eb9ab963b7cf8be607c46e7862c748aa2af7/protobuf-6.33.5-cp310-abi3-win_amd64.whl", hash = "sha256:3093804752167bcab3998bec9f1048baae6e29505adaf1afd14a37bddede533c", size = 437118, upload-time = "2026-01-29T21:51:24.022Z" },+ { url = "https://files.pythonhosted.org/packages/a2/6b/e48dfc1191bc5b52950246275bf4089773e91cb5ba3592621723cdddca62/protobuf-6.33.5-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:a5cb85982d95d906df1e2210e58f8e4f1e3cdc088e52c921a041f9c9a0386de5", size = 427766, upload-time = "2026-01-29T21:51:25.413Z" },+ { url = "https://files.pythonhosted.org/packages/4e/b1/c79468184310de09d75095ed1314b839eb2f72df71097db9d1404a1b2717/protobuf-6.33.5-cp39-abi3-manylinux2014_aarch64.whl", hash = "sha256:9b71e0281f36f179d00cbcb119cb19dec4d14a81393e5ea220f64b286173e190", size = 324638, upload-time = "2026-01-29T21:51:26.423Z" },+ { url = "https://files.pythonhosted.org/packages/c5/f5/65d838092fd01c44d16037953fd4c2cc851e783de9b8f02b27ec4ffd906f/protobuf-6.33.5-cp39-abi3-manylinux2014_s390x.whl", hash = "sha256:8afa18e1d6d20af15b417e728e9f60f3aa108ee76f23c3b2c07a2c3b546d3afd", size = 339411, upload-time = "2026-01-29T21:51:27.446Z" },+ { url = "https://files.pythonhosted.org/packages/9b/53/a9443aa3ca9ba8724fdfa02dd1887c1bcd8e89556b715cfbacca6b63dbec/protobuf-6.33.5-cp39-abi3-manylinux2014_x86_64.whl", hash = "sha256:cbf16ba3350fb7b889fca858fb215967792dc125b35c7976ca4818bee3521cf0", size = 323465, upload-time = "2026-01-29T21:51:28.925Z" },+ { url = "https://files.pythonhosted.org/packages/57/bf/2086963c69bdac3d7cff1cc7ff79b8ce5ea0bec6797a017e1be338a46248/protobuf-6.33.5-py3-none-any.whl", hash = "sha256:69915a973dd0f60f31a08b8318b73eab2bd6a392c79184b3612226b0a3f8ec02", size = 170687, upload-time = "2026-01-29T21:51:32.557Z" },+]++[[package]]+name = "py-key-value-aio"+version = "0.3.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "beartype" },+ { name = "py-key-value-shared" },+]+sdist = { url = "https://files.pythonhosted.org/packages/93/ce/3136b771dddf5ac905cc193b461eb67967cf3979688c6696e1f2cdcde7ea/py_key_value_aio-0.3.0.tar.gz", hash = "sha256:858e852fcf6d696d231266da66042d3355a7f9871650415feef9fca7a6cd4155", size = 50801, upload-time = "2025-11-17T16:50:04.711Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/99/10/72f6f213b8f0bce36eff21fda0a13271834e9eeff7f9609b01afdc253c79/py_key_value_aio-0.3.0-py3-none-any.whl", hash = "sha256:1c781915766078bfd608daa769fefb97e65d1d73746a3dfb640460e322071b64", size = 96342, upload-time = "2025-11-17T16:50:03.801Z" },+]++[package.optional-dependencies]+disk = [+ { name = "diskcache" },+ { name = "pathvalidate" },+]+keyring = [+ { name = "keyring" },+]+memory = [+ { name = "cachetools" },+]+redis = [+ { name = "redis" },+]++[[package]]+name = "py-key-value-shared"+version = "0.3.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "beartype" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/7b/e4/1971dfc4620a3a15b4579fe99e024f5edd6e0967a71154771a059daff4db/py_key_value_shared-0.3.0.tar.gz", hash = "sha256:8fdd786cf96c3e900102945f92aa1473138ebe960ef49da1c833790160c28a4b", size = 11666, upload-time = "2025-11-17T16:50:06.849Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/51/e4/b8b0a03ece72f47dce2307d36e1c34725b7223d209fc679315ffe6a4e2c3/py_key_value_shared-0.3.0-py3-none-any.whl", hash = "sha256:5b0efba7ebca08bb158b1e93afc2f07d30b8f40c2fc12ce24a4c0d84f42f9298", size = 19560, upload-time = "2025-11-17T16:50:05.954Z" },+]++[[package]]+name = "pycparser"+version = "3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492, upload-time = "2026-01-21T14:26:51.89Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" },+]++[[package]]+name = "pycryptodome"+version = "3.23.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8e/a6/8452177684d5e906854776276ddd34eca30d1b1e15aa1ee9cefc289a33f5/pycryptodome-3.23.0.tar.gz", hash = "sha256:447700a657182d60338bab09fdb27518f8856aecd80ae4c6bdddb67ff5da44ef", size = 4921276, upload-time = "2025-05-17T17:21:45.242Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/04/5d/bdb09489b63cd34a976cc9e2a8d938114f7a53a74d3dd4f125ffa49dce82/pycryptodome-3.23.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:0011f7f00cdb74879142011f95133274741778abba114ceca229adbf8e62c3e4", size = 2495152, upload-time = "2025-05-17T17:20:20.833Z" },+ { url = "https://files.pythonhosted.org/packages/a7/ce/7840250ed4cc0039c433cd41715536f926d6e86ce84e904068eb3244b6a6/pycryptodome-3.23.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:90460fc9e088ce095f9ee8356722d4f10f86e5be06e2354230a9880b9c549aae", size = 1639348, upload-time = "2025-05-17T17:20:23.171Z" },+ { url = "https://files.pythonhosted.org/packages/ee/f0/991da24c55c1f688d6a3b5a11940567353f74590734ee4a64294834ae472/pycryptodome-3.23.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4764e64b269fc83b00f682c47443c2e6e85b18273712b98aa43bcb77f8570477", size = 2184033, upload-time = "2025-05-17T17:20:25.424Z" },+ { url = "https://files.pythonhosted.org/packages/54/16/0e11882deddf00f68b68dd4e8e442ddc30641f31afeb2bc25588124ac8de/pycryptodome-3.23.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eb8f24adb74984aa0e5d07a2368ad95276cf38051fe2dc6605cbcf482e04f2a7", size = 2270142, upload-time = "2025-05-17T17:20:27.808Z" },+ { url = "https://files.pythonhosted.org/packages/d5/fc/4347fea23a3f95ffb931f383ff28b3f7b1fe868739182cb76718c0da86a1/pycryptodome-3.23.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d97618c9c6684a97ef7637ba43bdf6663a2e2e77efe0f863cce97a76af396446", size = 2309384, upload-time = "2025-05-17T17:20:30.765Z" },+ { url = "https://files.pythonhosted.org/packages/6e/d9/c5261780b69ce66d8cfab25d2797bd6e82ba0241804694cd48be41add5eb/pycryptodome-3.23.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9a53a4fe5cb075075d515797d6ce2f56772ea7e6a1e5e4b96cf78a14bac3d265", size = 2183237, upload-time = "2025-05-17T17:20:33.736Z" },+ { url = "https://files.pythonhosted.org/packages/5a/6f/3af2ffedd5cfa08c631f89452c6648c4d779e7772dfc388c77c920ca6bbf/pycryptodome-3.23.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:763d1d74f56f031788e5d307029caef067febf890cd1f8bf61183ae142f1a77b", size = 2343898, upload-time = "2025-05-17T17:20:36.086Z" },+ { url = "https://files.pythonhosted.org/packages/9a/dc/9060d807039ee5de6e2f260f72f3d70ac213993a804f5e67e0a73a56dd2f/pycryptodome-3.23.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:954af0e2bd7cea83ce72243b14e4fb518b18f0c1649b576d114973e2073b273d", size = 2269197, upload-time = "2025-05-17T17:20:38.414Z" },+ { url = "https://files.pythonhosted.org/packages/f9/34/e6c8ca177cb29dcc4967fef73f5de445912f93bd0343c9c33c8e5bf8cde8/pycryptodome-3.23.0-cp313-cp313t-win32.whl", hash = "sha256:257bb3572c63ad8ba40b89f6fc9d63a2a628e9f9708d31ee26560925ebe0210a", size = 1768600, upload-time = "2025-05-17T17:20:40.688Z" },+ { url = "https://files.pythonhosted.org/packages/e4/1d/89756b8d7ff623ad0160f4539da571d1f594d21ee6d68be130a6eccb39a4/pycryptodome-3.23.0-cp313-cp313t-win_amd64.whl", hash = "sha256:6501790c5b62a29fcb227bd6b62012181d886a767ce9ed03b303d1f22eb5c625", size = 1799740, upload-time = "2025-05-17T17:20:42.413Z" },+ { url = "https://files.pythonhosted.org/packages/5d/61/35a64f0feaea9fd07f0d91209e7be91726eb48c0f1bfc6720647194071e4/pycryptodome-3.23.0-cp313-cp313t-win_arm64.whl", hash = "sha256:9a77627a330ab23ca43b48b130e202582e91cc69619947840ea4d2d1be21eb39", size = 1703685, upload-time = "2025-05-17T17:20:44.388Z" },+ { url = "https://files.pythonhosted.org/packages/db/6c/a1f71542c969912bb0e106f64f60a56cc1f0fabecf9396f45accbe63fa68/pycryptodome-3.23.0-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:187058ab80b3281b1de11c2e6842a357a1f71b42cb1e15bce373f3d238135c27", size = 2495627, upload-time = "2025-05-17T17:20:47.139Z" },+ { url = "https://files.pythonhosted.org/packages/6e/4e/a066527e079fc5002390c8acdd3aca431e6ea0a50ffd7201551175b47323/pycryptodome-3.23.0-cp37-abi3-macosx_10_9_x86_64.whl", hash = "sha256:cfb5cd445280c5b0a4e6187a7ce8de5a07b5f3f897f235caa11f1f435f182843", size = 1640362, upload-time = "2025-05-17T17:20:50.392Z" },+ { url = "https://files.pythonhosted.org/packages/50/52/adaf4c8c100a8c49d2bd058e5b551f73dfd8cb89eb4911e25a0c469b6b4e/pycryptodome-3.23.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:67bd81fcbe34f43ad9422ee8fd4843c8e7198dd88dd3d40e6de42ee65fbe1490", size = 2182625, upload-time = "2025-05-17T17:20:52.866Z" },+ { url = "https://files.pythonhosted.org/packages/5f/e9/a09476d436d0ff1402ac3867d933c61805ec2326c6ea557aeeac3825604e/pycryptodome-3.23.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c8987bd3307a39bc03df5c8e0e3d8be0c4c3518b7f044b0f4c15d1aa78f52575", size = 2268954, upload-time = "2025-05-17T17:20:55.027Z" },+ { url = "https://files.pythonhosted.org/packages/f9/c5/ffe6474e0c551d54cab931918127c46d70cab8f114e0c2b5a3c071c2f484/pycryptodome-3.23.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:aa0698f65e5b570426fc31b8162ed4603b0c2841cbb9088e2b01641e3065915b", size = 2308534, upload-time = "2025-05-17T17:20:57.279Z" },+ { url = "https://files.pythonhosted.org/packages/18/28/e199677fc15ecf43010f2463fde4c1a53015d1fe95fb03bca2890836603a/pycryptodome-3.23.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:53ecbafc2b55353edcebd64bf5da94a2a2cdf5090a6915bcca6eca6cc452585a", size = 2181853, upload-time = "2025-05-17T17:20:59.322Z" },+ { url = "https://files.pythonhosted.org/packages/ce/ea/4fdb09f2165ce1365c9eaefef36625583371ee514db58dc9b65d3a255c4c/pycryptodome-3.23.0-cp37-abi3-musllinux_1_2_i686.whl", hash = "sha256:156df9667ad9f2ad26255926524e1c136d6664b741547deb0a86a9acf5ea631f", size = 2342465, upload-time = "2025-05-17T17:21:03.83Z" },+ { url = "https://files.pythonhosted.org/packages/22/82/6edc3fc42fe9284aead511394bac167693fb2b0e0395b28b8bedaa07ef04/pycryptodome-3.23.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:dea827b4d55ee390dc89b2afe5927d4308a8b538ae91d9c6f7a5090f397af1aa", size = 2267414, upload-time = "2025-05-17T17:21:06.72Z" },+ { url = "https://files.pythonhosted.org/packages/59/fe/aae679b64363eb78326c7fdc9d06ec3de18bac68be4b612fc1fe8902693c/pycryptodome-3.23.0-cp37-abi3-win32.whl", hash = "sha256:507dbead45474b62b2bbe318eb1c4c8ee641077532067fec9c1aa82c31f84886", size = 1768484, upload-time = "2025-05-17T17:21:08.535Z" },+ { url = "https://files.pythonhosted.org/packages/54/2f/e97a1b8294db0daaa87012c24a7bb714147c7ade7656973fd6c736b484ff/pycryptodome-3.23.0-cp37-abi3-win_amd64.whl", hash = "sha256:c75b52aacc6c0c260f204cbdd834f76edc9fb0d8e0da9fbf8352ef58202564e2", size = 1799636, upload-time = "2025-05-17T17:21:10.393Z" },+ { url = "https://files.pythonhosted.org/packages/18/3d/f9441a0d798bf2b1e645adc3265e55706aead1255ccdad3856dbdcffec14/pycryptodome-3.23.0-cp37-abi3-win_arm64.whl", hash = "sha256:11eeeb6917903876f134b56ba11abe95c0b0fd5e3330def218083c7d98bbcb3c", size = 1703675, upload-time = "2025-05-17T17:21:13.146Z" },+]++[[package]]+name = "pydantic"+version = "2.12.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "annotated-types" },+ { name = "pydantic-core" },+ { name = "typing-extensions" },+ { name = "typing-inspection" },+]+sdist = { url = "https://files.pythonhosted.org/packages/69/44/36f1a6e523abc58ae5f928898e4aca2e0ea509b5aa6f6f392a5d882be928/pydantic-2.12.5.tar.gz", hash = "sha256:4d351024c75c0f085a9febbb665ce8c0c6ec5d30e903bdb6394b7ede26aebb49", size = 821591, upload-time = "2025-11-26T15:11:46.471Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5a/87/b70ad306ebb6f9b585f114d0ac2137d792b48be34d732d60e597c2f8465a/pydantic-2.12.5-py3-none-any.whl", hash = "sha256:e561593fccf61e8a20fc46dfc2dfe075b8be7d0188df33f221ad1f0139180f9d", size = 463580, upload-time = "2025-11-26T15:11:44.605Z" },+]++[package.optional-dependencies]+email = [+ { name = "email-validator" },+]++[[package]]+name = "pydantic-core"+version = "2.41.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/71/70/23b021c950c2addd24ec408e9ab05d59b035b39d97cdc1130e1bce647bb6/pydantic_core-2.41.5.tar.gz", hash = "sha256:08daa51ea16ad373ffd5e7606252cc32f07bc72b28284b6bc9c6df804816476e", size = 460952, upload-time = "2025-11-04T13:43:49.098Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/87/06/8806241ff1f70d9939f9af039c6c35f2360cf16e93c2ca76f184e76b1564/pydantic_core-2.41.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:941103c9be18ac8daf7b7adca8228f8ed6bb7a1849020f643b3a14d15b1924d9", size = 2120403, upload-time = "2025-11-04T13:40:25.248Z" },+ { url = "https://files.pythonhosted.org/packages/94/02/abfa0e0bda67faa65fef1c84971c7e45928e108fe24333c81f3bfe35d5f5/pydantic_core-2.41.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:112e305c3314f40c93998e567879e887a3160bb8689ef3d2c04b6cc62c33ac34", size = 1896206, upload-time = "2025-11-04T13:40:27.099Z" },+ { url = "https://files.pythonhosted.org/packages/15/df/a4c740c0943e93e6500f9eb23f4ca7ec9bf71b19e608ae5b579678c8d02f/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbaad15cb0c90aa221d43c00e77bb33c93e8d36e0bf74760cd00e732d10a6a0", size = 1919307, upload-time = "2025-11-04T13:40:29.806Z" },+ { url = "https://files.pythonhosted.org/packages/9a/e3/6324802931ae1d123528988e0e86587c2072ac2e5394b4bc2bc34b61ff6e/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:03ca43e12fab6023fc79d28ca6b39b05f794ad08ec2feccc59a339b02f2b3d33", size = 2063258, upload-time = "2025-11-04T13:40:33.544Z" },+ { url = "https://files.pythonhosted.org/packages/c9/d4/2230d7151d4957dd79c3044ea26346c148c98fbf0ee6ebd41056f2d62ab5/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dc799088c08fa04e43144b164feb0c13f9a0bc40503f8df3e9fde58a3c0c101e", size = 2214917, upload-time = "2025-11-04T13:40:35.479Z" },+ { url = "https://files.pythonhosted.org/packages/e6/9f/eaac5df17a3672fef0081b6c1bb0b82b33ee89aa5cec0d7b05f52fd4a1fa/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:97aeba56665b4c3235a0e52b2c2f5ae9cd071b8a8310ad27bddb3f7fb30e9aa2", size = 2332186, upload-time = "2025-11-04T13:40:37.436Z" },+ { url = "https://files.pythonhosted.org/packages/cf/4e/35a80cae583a37cf15604b44240e45c05e04e86f9cfd766623149297e971/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:406bf18d345822d6c21366031003612b9c77b3e29ffdb0f612367352aab7d586", size = 2073164, upload-time = "2025-11-04T13:40:40.289Z" },+ { url = "https://files.pythonhosted.org/packages/bf/e3/f6e262673c6140dd3305d144d032f7bd5f7497d3871c1428521f19f9efa2/pydantic_core-2.41.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b93590ae81f7010dbe380cdeab6f515902ebcbefe0b9327cc4804d74e93ae69d", size = 2179146, upload-time = "2025-11-04T13:40:42.809Z" },+ { url = "https://files.pythonhosted.org/packages/75/c7/20bd7fc05f0c6ea2056a4565c6f36f8968c0924f19b7d97bbfea55780e73/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:01a3d0ab748ee531f4ea6c3e48ad9dac84ddba4b0d82291f87248f2f9de8d740", size = 2137788, upload-time = "2025-11-04T13:40:44.752Z" },+ { url = "https://files.pythonhosted.org/packages/3a/8d/34318ef985c45196e004bc46c6eab2eda437e744c124ef0dbe1ff2c9d06b/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:6561e94ba9dacc9c61bce40e2d6bdc3bfaa0259d3ff36ace3b1e6901936d2e3e", size = 2340133, upload-time = "2025-11-04T13:40:46.66Z" },+ { url = "https://files.pythonhosted.org/packages/9c/59/013626bf8c78a5a5d9350d12e7697d3d4de951a75565496abd40ccd46bee/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:915c3d10f81bec3a74fbd4faebe8391013ba61e5a1a8d48c4455b923bdda7858", size = 2324852, upload-time = "2025-11-04T13:40:48.575Z" },+ { url = "https://files.pythonhosted.org/packages/1a/d9/c248c103856f807ef70c18a4f986693a46a8ffe1602e5d361485da502d20/pydantic_core-2.41.5-cp313-cp313-win32.whl", hash = "sha256:650ae77860b45cfa6e2cdafc42618ceafab3a2d9a3811fcfbd3bbf8ac3c40d36", size = 1994679, upload-time = "2025-11-04T13:40:50.619Z" },+ { url = "https://files.pythonhosted.org/packages/9e/8b/341991b158ddab181cff136acd2552c9f35bd30380422a639c0671e99a91/pydantic_core-2.41.5-cp313-cp313-win_amd64.whl", hash = "sha256:79ec52ec461e99e13791ec6508c722742ad745571f234ea6255bed38c6480f11", size = 2019766, upload-time = "2025-11-04T13:40:52.631Z" },+ { url = "https://files.pythonhosted.org/packages/73/7d/f2f9db34af103bea3e09735bb40b021788a5e834c81eedb541991badf8f5/pydantic_core-2.41.5-cp313-cp313-win_arm64.whl", hash = "sha256:3f84d5c1b4ab906093bdc1ff10484838aca54ef08de4afa9de0f5f14d69639cd", size = 1981005, upload-time = "2025-11-04T13:40:54.734Z" },+ { url = "https://files.pythonhosted.org/packages/ea/28/46b7c5c9635ae96ea0fbb779e271a38129df2550f763937659ee6c5dbc65/pydantic_core-2.41.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:3f37a19d7ebcdd20b96485056ba9e8b304e27d9904d233d7b1015db320e51f0a", size = 2119622, upload-time = "2025-11-04T13:40:56.68Z" },+ { url = "https://files.pythonhosted.org/packages/74/1a/145646e5687e8d9a1e8d09acb278c8535ebe9e972e1f162ed338a622f193/pydantic_core-2.41.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1d1d9764366c73f996edd17abb6d9d7649a7eb690006ab6adbda117717099b14", size = 1891725, upload-time = "2025-11-04T13:40:58.807Z" },+ { url = "https://files.pythonhosted.org/packages/23/04/e89c29e267b8060b40dca97bfc64a19b2a3cf99018167ea1677d96368273/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25e1c2af0fce638d5f1988b686f3b3ea8cd7de5f244ca147c777769e798a9cd1", size = 1915040, upload-time = "2025-11-04T13:41:00.853Z" },+ { url = "https://files.pythonhosted.org/packages/84/a3/15a82ac7bd97992a82257f777b3583d3e84bdb06ba6858f745daa2ec8a85/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:506d766a8727beef16b7adaeb8ee6217c64fc813646b424d0804d67c16eddb66", size = 2063691, upload-time = "2025-11-04T13:41:03.504Z" },+ { url = "https://files.pythonhosted.org/packages/74/9b/0046701313c6ef08c0c1cf0e028c67c770a4e1275ca73131563c5f2a310a/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4819fa52133c9aa3c387b3328f25c1facc356491e6135b459f1de698ff64d869", size = 2213897, upload-time = "2025-11-04T13:41:05.804Z" },+ { url = "https://files.pythonhosted.org/packages/8a/cd/6bac76ecd1b27e75a95ca3a9a559c643b3afcd2dd62086d4b7a32a18b169/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2b761d210c9ea91feda40d25b4efe82a1707da2ef62901466a42492c028553a2", size = 2333302, upload-time = "2025-11-04T13:41:07.809Z" },+ { url = "https://files.pythonhosted.org/packages/4c/d2/ef2074dc020dd6e109611a8be4449b98cd25e1b9b8a303c2f0fca2f2bcf7/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:22f0fb8c1c583a3b6f24df2470833b40207e907b90c928cc8d3594b76f874375", size = 2064877, upload-time = "2025-11-04T13:41:09.827Z" },+ { url = "https://files.pythonhosted.org/packages/18/66/e9db17a9a763d72f03de903883c057b2592c09509ccfe468187f2a2eef29/pydantic_core-2.41.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2782c870e99878c634505236d81e5443092fba820f0373997ff75f90f68cd553", size = 2180680, upload-time = "2025-11-04T13:41:12.379Z" },+ { url = "https://files.pythonhosted.org/packages/d3/9e/3ce66cebb929f3ced22be85d4c2399b8e85b622db77dad36b73c5387f8f8/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:0177272f88ab8312479336e1d777f6b124537d47f2123f89cb37e0accea97f90", size = 2138960, upload-time = "2025-11-04T13:41:14.627Z" },+ { url = "https://files.pythonhosted.org/packages/a6/62/205a998f4327d2079326b01abee48e502ea739d174f0a89295c481a2272e/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:63510af5e38f8955b8ee5687740d6ebf7c2a0886d15a6d65c32814613681bc07", size = 2339102, upload-time = "2025-11-04T13:41:16.868Z" },+ { url = "https://files.pythonhosted.org/packages/3c/0d/f05e79471e889d74d3d88f5bd20d0ed189ad94c2423d81ff8d0000aab4ff/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:e56ba91f47764cc14f1daacd723e3e82d1a89d783f0f5afe9c364b8bb491ccdb", size = 2326039, upload-time = "2025-11-04T13:41:18.934Z" },+ { url = "https://files.pythonhosted.org/packages/ec/e1/e08a6208bb100da7e0c4b288eed624a703f4d129bde2da475721a80cab32/pydantic_core-2.41.5-cp314-cp314-win32.whl", hash = "sha256:aec5cf2fd867b4ff45b9959f8b20ea3993fc93e63c7363fe6851424c8a7e7c23", size = 1995126, upload-time = "2025-11-04T13:41:21.418Z" },+ { url = "https://files.pythonhosted.org/packages/48/5d/56ba7b24e9557f99c9237e29f5c09913c81eeb2f3217e40e922353668092/pydantic_core-2.41.5-cp314-cp314-win_amd64.whl", hash = "sha256:8e7c86f27c585ef37c35e56a96363ab8de4e549a95512445b85c96d3e2f7c1bf", size = 2015489, upload-time = "2025-11-04T13:41:24.076Z" },+ { url = "https://files.pythonhosted.org/packages/4e/bb/f7a190991ec9e3e0ba22e4993d8755bbc4a32925c0b5b42775c03e8148f9/pydantic_core-2.41.5-cp314-cp314-win_arm64.whl", hash = "sha256:e672ba74fbc2dc8eea59fb6d4aed6845e6905fc2a8afe93175d94a83ba2a01a0", size = 1977288, upload-time = "2025-11-04T13:41:26.33Z" },+ { url = "https://files.pythonhosted.org/packages/92/ed/77542d0c51538e32e15afe7899d79efce4b81eee631d99850edc2f5e9349/pydantic_core-2.41.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8566def80554c3faa0e65ac30ab0932b9e3a5cd7f8323764303d468e5c37595a", size = 2120255, upload-time = "2025-11-04T13:41:28.569Z" },+ { url = "https://files.pythonhosted.org/packages/bb/3d/6913dde84d5be21e284439676168b28d8bbba5600d838b9dca99de0fad71/pydantic_core-2.41.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b80aa5095cd3109962a298ce14110ae16b8c1aece8b72f9dafe81cf597ad80b3", size = 1863760, upload-time = "2025-11-04T13:41:31.055Z" },+ { url = "https://files.pythonhosted.org/packages/5a/f0/e5e6b99d4191da102f2b0eb9687aaa7f5bea5d9964071a84effc3e40f997/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3006c3dd9ba34b0c094c544c6006cc79e87d8612999f1a5d43b769b89181f23c", size = 1878092, upload-time = "2025-11-04T13:41:33.21Z" },+ { url = "https://files.pythonhosted.org/packages/71/48/36fb760642d568925953bcc8116455513d6e34c4beaa37544118c36aba6d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:72f6c8b11857a856bcfa48c86f5368439f74453563f951e473514579d44aa612", size = 2053385, upload-time = "2025-11-04T13:41:35.508Z" },+ { url = "https://files.pythonhosted.org/packages/20/25/92dc684dd8eb75a234bc1c764b4210cf2646479d54b47bf46061657292a8/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cb1b2f9742240e4bb26b652a5aeb840aa4b417c7748b6f8387927bc6e45e40d", size = 2218832, upload-time = "2025-11-04T13:41:37.732Z" },+ { url = "https://files.pythonhosted.org/packages/e2/09/f53e0b05023d3e30357d82eb35835d0f6340ca344720a4599cd663dca599/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bd3d54f38609ff308209bd43acea66061494157703364ae40c951f83ba99a1a9", size = 2327585, upload-time = "2025-11-04T13:41:40Z" },+ { url = "https://files.pythonhosted.org/packages/aa/4e/2ae1aa85d6af35a39b236b1b1641de73f5a6ac4d5a7509f77b814885760c/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ff4321e56e879ee8d2a879501c8e469414d948f4aba74a2d4593184eb326660", size = 2041078, upload-time = "2025-11-04T13:41:42.323Z" },+ { url = "https://files.pythonhosted.org/packages/cd/13/2e215f17f0ef326fc72afe94776edb77525142c693767fc347ed6288728d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d0d2568a8c11bf8225044aa94409e21da0cb09dcdafe9ecd10250b2baad531a9", size = 2173914, upload-time = "2025-11-04T13:41:45.221Z" },+ { url = "https://files.pythonhosted.org/packages/02/7a/f999a6dcbcd0e5660bc348a3991c8915ce6599f4f2c6ac22f01d7a10816c/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:a39455728aabd58ceabb03c90e12f71fd30fa69615760a075b9fec596456ccc3", size = 2129560, upload-time = "2025-11-04T13:41:47.474Z" },+ { url = "https://files.pythonhosted.org/packages/3a/b1/6c990ac65e3b4c079a4fb9f5b05f5b013afa0f4ed6780a3dd236d2cbdc64/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:239edca560d05757817c13dc17c50766136d21f7cd0fac50295499ae24f90fdf", size = 2329244, upload-time = "2025-11-04T13:41:49.992Z" },+ { url = "https://files.pythonhosted.org/packages/d9/02/3c562f3a51afd4d88fff8dffb1771b30cfdfd79befd9883ee094f5b6c0d8/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:2a5e06546e19f24c6a96a129142a75cee553cc018ffee48a460059b1185f4470", size = 2331955, upload-time = "2025-11-04T13:41:54.079Z" },+ { url = "https://files.pythonhosted.org/packages/5c/96/5fb7d8c3c17bc8c62fdb031c47d77a1af698f1d7a406b0f79aaa1338f9ad/pydantic_core-2.41.5-cp314-cp314t-win32.whl", hash = "sha256:b4ececa40ac28afa90871c2cc2b9ffd2ff0bf749380fbdf57d165fd23da353aa", size = 1988906, upload-time = "2025-11-04T13:41:56.606Z" },+ { url = "https://files.pythonhosted.org/packages/22/ed/182129d83032702912c2e2d8bbe33c036f342cc735737064668585dac28f/pydantic_core-2.41.5-cp314-cp314t-win_amd64.whl", hash = "sha256:80aa89cad80b32a912a65332f64a4450ed00966111b6615ca6816153d3585a8c", size = 1981607, upload-time = "2025-11-04T13:41:58.889Z" },+ { url = "https://files.pythonhosted.org/packages/9f/ed/068e41660b832bb0b1aa5b58011dea2a3fe0ba7861ff38c4d4904c1c1a99/pydantic_core-2.41.5-cp314-cp314t-win_arm64.whl", hash = "sha256:35b44f37a3199f771c3eaa53051bc8a70cd7b54f333531c59e29fd4db5d15008", size = 1974769, upload-time = "2025-11-04T13:42:01.186Z" },+]++[[package]]+name = "pydantic-settings"+version = "2.12.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pydantic" },+ { name = "python-dotenv" },+ { name = "typing-inspection" },+]+sdist = { url = "https://files.pythonhosted.org/packages/43/4b/ac7e0aae12027748076d72a8764ff1c9d82ca75a7a52622e67ed3f765c54/pydantic_settings-2.12.0.tar.gz", hash = "sha256:005538ef951e3c2a68e1c08b292b5f2e71490def8589d4221b95dab00dafcfd0", size = 194184, upload-time = "2025-11-10T14:25:47.013Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c1/60/5d4751ba3f4a40a6891f24eec885f51afd78d208498268c734e256fb13c4/pydantic_settings-2.12.0-py3-none-any.whl", hash = "sha256:fddb9fd99a5b18da837b29710391e945b1e30c135477f484084ee513adb93809", size = 51880, upload-time = "2025-11-10T14:25:45.546Z" },+]++[[package]]+name = "pydocket"+version = "0.17.7"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cloudpickle" },+ { name = "croniter" },+ { name = "fakeredis", extra = ["lua"] },+ { name = "opentelemetry-api" },+ { name = "prometheus-client" },+ { name = "py-key-value-aio", extra = ["memory", "redis"] },+ { name = "python-json-logger" },+ { name = "redis" },+ { name = "rich" },+ { name = "typer" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/cd/b2/5e12dbe2acf59e4499285e8eee66e8e81b6ba2f553696d2f4ccca0a7978c/pydocket-0.17.7.tar.gz", hash = "sha256:5c77ec6731a167cdcb44174abf793fe63e7b6c1c1c8a799cc6ec7502b361ee77", size = 347071, upload-time = "2026-02-11T21:01:31.744Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c9/c7/68f2553819965326f968375f02597d49efe71b309ba9d8fef539aeb51c48/pydocket-0.17.7-py3-none-any.whl", hash = "sha256:d1e0921ac02026c4a0140fc72a3848545f3e91e6e74c6e32c588489017c130b2", size = 94608, upload-time = "2026-02-11T21:01:30.111Z" },+]++[[package]]+name = "pygments"+version = "2.19.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" },+]++[[package]]+name = "pyjwt"+version = "2.11.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/5c/5a/b46fa56bf322901eee5b0454a34343cdbdae202cd421775a8ee4e42fd519/pyjwt-2.11.0.tar.gz", hash = "sha256:35f95c1f0fbe5d5ba6e43f00271c275f7a1a4db1dab27bf708073b75318ea623", size = 98019, upload-time = "2026-01-30T19:59:55.694Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6f/01/c26ce75ba460d5cd503da9e13b21a33804d38c2165dec7b716d06b13010c/pyjwt-2.11.0-py3-none-any.whl", hash = "sha256:94a6bde30eb5c8e04fee991062b534071fd1439ef58d2adc9ccb823e7bcd0469", size = 28224, upload-time = "2026-01-30T19:59:54.539Z" },+]++[package.optional-dependencies]+crypto = [+ { name = "cryptography" },+]++[[package]]+name = "pymilvus"+version = "2.6.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cachetools" },+ { name = "grpcio" },+ { name = "orjson" },+ { name = "pandas" },+ { name = "protobuf" },+ { name = "python-dotenv" },+ { name = "setuptools" },+]+sdist = { url = "https://files.pythonhosted.org/packages/94/0c/92adff800a04cd3e9b3f17c06fa972c8d590846b1e0bac0ccf39e054b596/pymilvus-2.6.9.tar.gz", hash = "sha256:c53a3d84ff15814e251be13edda70a98a1c8a6090d7597a908387cbb94a9504a", size = 1493560, upload-time = "2026-02-10T11:01:27.415Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6a/56/ab7f0a5aba6fc06dc210a059d6f6d2ee1f3371d40e2b4366a409576554b8/pymilvus-2.6.9-py3-none-any.whl", hash = "sha256:3e14e8072f6429dcd79d52a24dc021c594cb80841ddd76cb974bc539d1f4cdda", size = 301225, upload-time = "2026-02-10T11:01:25.796Z" },+]++[[package]]+name = "pypdfium2"+version = "5.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/99/23/b3979a1d4f536fabce02e3d9f332e8aeeed064d9df9391f2a77160f4ab36/pypdfium2-5.4.0.tar.gz", hash = "sha256:7219e55048fb3999fc8adcaea467088507207df4676ff9e521a3ae15a67d99c4", size = 269136, upload-time = "2026-02-08T16:54:08.383Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4b/c0/3d707bff5e973272b5412556d19e8c6889ce859a235465f0049cc8d35bc3/pypdfium2-5.4.0-py3-none-android_23_arm64_v8a.whl", hash = "sha256:8bc51a12a8c8eabbdbd7499d3e5ec47bcf56ba18e07b52bdd07d321cc1252c90", size = 2759769, upload-time = "2026-02-08T16:53:32.985Z" },+ { url = "https://files.pythonhosted.org/packages/1b/6b/306cafcb0b18d5fab41687d9ed76eabea86a9ff78bc568bee1bfa34e526d/pypdfium2-5.4.0-py3-none-android_23_armeabi_v7a.whl", hash = "sha256:a414ef5b685824cc6c7acbe19b7dbc735de2023cf473321a8ebfe8d7f5d8a41f", size = 2301913, upload-time = "2026-02-08T16:53:35.026Z" },+ { url = "https://files.pythonhosted.org/packages/7a/37/3d737c7eb84fb22939ab0a643aa0183dbc0745c309e962b4d61eeff8211b/pypdfium2-5.4.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:0e83657db8da5971434ff5683bf3faa007ee1f3a56b61f245b8aa5b60442c23a", size = 2814181, upload-time = "2026-02-08T16:53:36.481Z" },+ { url = "https://files.pythonhosted.org/packages/96/d7/0895737ec3d95ad607ade42e98fa8868b91e35b1170ec39b8c1b5fdb124c/pypdfium2-5.4.0-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:e42b1d14db642e96bb3a57167f620b4247e9c843d22b9fb569b16a7c35a18f47", size = 2943476, upload-time = "2026-02-08T16:53:37.992Z" },+ { url = "https://files.pythonhosted.org/packages/9a/53/f8ab449997d3efa52737b8e6c494f1c3f09dc0642161fadc934f16a57cf0/pypdfium2-5.4.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0698c9a002f839127e74ec0185147e08b64e47a1e6caeaee95df434c05b26e8c", size = 2976675, upload-time = "2026-02-08T16:53:39.923Z" },+ { url = "https://files.pythonhosted.org/packages/c6/28/b8a4d4c1557019101bb722c88ba532ec9c14640117ab1c272c80774d83d7/pypdfium2-5.4.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:22e9d4c73fc48b18b022977ea6fe78df43adf95440e1135020ed35fea9595017", size = 2762396, upload-time = "2026-02-08T16:53:41.958Z" },+ { url = "https://files.pythonhosted.org/packages/0b/4a/6c765f6e0b69d792e2d4c7ef2359301896c82df265d60f9a56e87618ec50/pypdfium2-5.4.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4f0619f8a8ae3eb71b2cdc1fbd2a8f5d43f0fc6bee66d1b3aac2c9c23e44a3bf", size = 3068559, upload-time = "2026-02-08T16:53:43.974Z" },+ { url = "https://files.pythonhosted.org/packages/1c/17/4464e4ab6dd98ac3783c10eb799d8da49cb551a769c987eb9c6ba72a5ccf/pypdfium2-5.4.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:50124415d815c41de8ce7e21cee5450f74f6f1240a140573bb71ccac804d5e5f", size = 3419384, upload-time = "2026-02-08T16:53:46.041Z" },+ { url = "https://files.pythonhosted.org/packages/92/08/fa315a2ab353b41501b7088be72dc6cf8ad2bd4f1ebdfdb90c41b7f29155/pypdfium2-5.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ce482d76e5447e745d761307401eaa366616ca44032b86cf7fbe6be918ade64e", size = 2998123, upload-time = "2026-02-08T16:53:47.705Z" },+ { url = "https://files.pythonhosted.org/packages/02/7a/a171d313d54a028d9437dea2c5d07fc9e1592f4daf5c39cbf514fca75242/pypdfium2-5.4.0-py3-none-manylinux_2_27_s390x.manylinux_2_28_s390x.whl", hash = "sha256:16b9c6b07f3dbe7eda209bf7aaf131ca9614e1dae527e9764180dd58bcbaf411", size = 3673594, upload-time = "2026-02-08T16:53:49.139Z" },+ { url = "https://files.pythonhosted.org/packages/0b/c0/60416f011f7e5a4ca29f40ae94907f34975239f3c6dd7fcb51f99e110f3b/pypdfium2-5.4.0-py3-none-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3b08d48b7cca3b51aefaad7855bc0e9e251432a6eef1356d532ff438be84855e", size = 2965025, upload-time = "2026-02-08T16:53:50.553Z" },+ { url = "https://files.pythonhosted.org/packages/75/e2/8e36144b5e933c707b6aeab7dc6638eee8208697925b48b5b78ef68fb52a/pypdfium2-5.4.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:0a1526e2a2bde7f2f13bec0f471d9fd475f7bbac2c0c860d48c35af8394d5931", size = 4130551, upload-time = "2026-02-08T16:53:52.71Z" },+ { url = "https://files.pythonhosted.org/packages/a0/64/8cda96259a8fdecd457f5d14a9d650315d7bdf496f96055d1d55900b3881/pypdfium2-5.4.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:40cea0bceb1e60a71b3855e2b04d175d2199b7da06212bb80f0c78067d065810", size = 3746587, upload-time = "2026-02-08T16:53:54.219Z" },+ { url = "https://files.pythonhosted.org/packages/33/6b/7764491269f188a922bd6b254359d718899fc3092c90f0f68c2f6e451921/pypdfium2-5.4.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:7a116f8fbeae7aa3a18ff2d1fa331ac647831cc16b589d4fbbbb66d64ecc8793", size = 4336703, upload-time = "2026-02-08T16:53:56.18Z" },+ { url = "https://files.pythonhosted.org/packages/87/b0/2484bd3c20ead51ecea2082deaf94a3e91bad709fa14f049ca7fb598dc9a/pypdfium2-5.4.0-py3-none-musllinux_1_2_ppc64le.whl", hash = "sha256:55c7fc894718db5fa2981d46dee45fe3a4fcd60d26f5095ad8f7779600fa8b6f", size = 4375051, upload-time = "2026-02-08T16:53:57.804Z" },+ { url = "https://files.pythonhosted.org/packages/c0/ac/5f0536be885c3cadc09422de0324a193a21c165488a574029d9d2db92ecb/pypdfium2-5.4.0-py3-none-musllinux_1_2_riscv64.whl", hash = "sha256:dfc1c0c7e6e7ba258ebb338aaf664eb933bff1854cda76e4ee530886ea39b31a", size = 3928935, upload-time = "2026-02-08T16:53:59.265Z" },+ { url = "https://files.pythonhosted.org/packages/13/b9/693b665df0939555491bece0777cafda1270e208734e925006de313abb5b/pypdfium2-5.4.0-py3-none-musllinux_1_2_s390x.whl", hash = "sha256:4c0a48ede7180f804c029c509c2b6ea0c66813a3fde9eb9afc390183f947164d", size = 4997642, upload-time = "2026-02-08T16:54:00.809Z" },+ { url = "https://files.pythonhosted.org/packages/fb/ea/ba585acdfbefe309ee2fe5ebfeb097e36abe1d33c2a5108828c493c070bb/pypdfium2-5.4.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:dea22d15c44a275702fd95ad664ba6eaa3c493d53d58b4d69272a04bdfb0df70", size = 4179914, upload-time = "2026-02-08T16:54:02.264Z" },+ { url = "https://files.pythonhosted.org/packages/97/47/238383e89081a0ed1ca2bf4ef44f7e512fa0c72ffc51adc7df83bfcfd9b9/pypdfium2-5.4.0-py3-none-win32.whl", hash = "sha256:35c643827ed0f4dae9cedf3caf836f94cba5b31bd2c115b80a7c85f004636de9", size = 2995844, upload-time = "2026-02-08T16:54:03.692Z" },+ { url = "https://files.pythonhosted.org/packages/08/37/f1338a0600c6c6e31759f8f80d7ab20aa0bc43b11594da67091300e051d4/pypdfium2-5.4.0-py3-none-win_amd64.whl", hash = "sha256:f9d9ce3c6901294d6984004d4a797dea110f8248b1bde33a823d25b45d3c2685", size = 3104198, upload-time = "2026-02-08T16:54:05.304Z" },+ { url = "https://files.pythonhosted.org/packages/65/17/18ad82f070da18ab970928f730fbd44d9b05aafcb52a2ebb6470eaae53f9/pypdfium2-5.4.0-py3-none-win_arm64.whl", hash = "sha256:2b78ea216fb92e7709b61c46241ebf2cc0c60cf18ad2fb4633af665d7b4e21e6", size = 2938727, upload-time = "2026-02-08T16:54:06.814Z" },+]++[[package]]+name = "pyperclip"+version = "1.11.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e8/52/d87eba7cb129b81563019d1679026e7a112ef76855d6159d24754dbd2a51/pyperclip-1.11.0.tar.gz", hash = "sha256:244035963e4428530d9e3a6101a1ef97209c6825edab1567beac148ccc1db1b6", size = 12185, upload-time = "2025-09-26T14:40:37.245Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/df/80/fc9d01d5ed37ba4c42ca2b55b4339ae6e200b456be3a1aaddf4a9fa99b8c/pyperclip-1.11.0-py3-none-any.whl", hash = "sha256:299403e9ff44581cb9ba2ffeed69c7aa96a008622ad0c46cb575ca75b5b84273", size = 11063, upload-time = "2025-09-26T14:40:36.069Z" },+]++[[package]]+name = "pysbd"+version = "0.3.4"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/48/0a/c99fb7d7e176f8b176ef19704a32e6a9c6aafdf19ef75a187f701fc15801/pysbd-0.3.4-py3-none-any.whl", hash = "sha256:cd838939b7b0b185fcf86b0baf6636667dfb6e474743beeff878e9f42e022953", size = 71082, upload-time = "2021-02-11T16:36:33.351Z" },+]++[[package]]+name = "pytest"+version = "9.0.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "iniconfig" },+ { name = "packaging" },+ { name = "pluggy" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/d1/db/7ef3487e0fb0049ddb5ce41d3a49c235bf9ad299b6a25d5780a89f19230f/pytest-9.0.2.tar.gz", hash = "sha256:75186651a92bd89611d1d9fc20f0b4345fd827c41ccd5c299a868a05d70edf11", size = 1568901, upload-time = "2025-12-06T21:30:51.014Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3b/ab/b3226f0bd7cdcf710fbede2b3548584366da3b19b5021e74f5bde2a8fa3f/pytest-9.0.2-py3-none-any.whl", hash = "sha256:711ffd45bf766d5264d487b917733b453d917afd2b0ad65223959f59089f875b", size = 374801, upload-time = "2025-12-06T21:30:49.154Z" },+]++[[package]]+name = "pytest-cov"+version = "7.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "coverage" },+ { name = "pluggy" },+ { name = "pytest" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5e/f7/c933acc76f5208b3b00089573cf6a2bc26dc80a8aece8f52bb7d6b1855ca/pytest_cov-7.0.0.tar.gz", hash = "sha256:33c97eda2e049a0c5298e91f519302a1334c26ac65c1a483d6206fd458361af1", size = 54328, upload-time = "2025-09-09T10:57:02.113Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ee/49/1377b49de7d0c1ce41292161ea0f721913fa8722c19fb9c1e3aa0367eecb/pytest_cov-7.0.0-py3-none-any.whl", hash = "sha256:3b8e9558b16cc1479da72058bdecf8073661c7f57f7d3c5f22a1c23507f2d861", size = 22424, upload-time = "2025-09-09T10:57:00.695Z" },+]++[[package]]+name = "python-dateutil"+version = "2.9.0.post0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "six" },+]+sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" },+]++[[package]]+name = "python-docx"+version = "1.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "lxml" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/a9/f7/eddfe33871520adab45aaa1a71f0402a2252050c14c7e3009446c8f4701c/python_docx-1.2.0.tar.gz", hash = "sha256:7bc9d7b7d8a69c9c02ca09216118c86552704edc23bac179283f2e38f86220ce", size = 5723256, upload-time = "2025-06-16T20:46:27.921Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d0/00/1e03a4989fa5795da308cd774f05b704ace555a70f9bf9d3be057b680bcf/python_docx-1.2.0-py3-none-any.whl", hash = "sha256:3fd478f3250fbbbfd3b94fe1e985955737c145627498896a8a6bf81f4baf66c7", size = 252987, upload-time = "2025-06-16T20:46:22.506Z" },+]++[[package]]+name = "python-dotenv"+version = "1.2.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f0/26/19cadc79a718c5edbec86fd4919a6b6d3f681039a2f6d66d14be94e75fb9/python_dotenv-1.2.1.tar.gz", hash = "sha256:42667e897e16ab0d66954af0e60a9caa94f0fd4ecf3aaf6d2d260eec1aa36ad6", size = 44221, upload-time = "2025-10-26T15:12:10.434Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/14/1b/a298b06749107c305e1fe0f814c6c74aea7b2f1e10989cb30f544a1b3253/python_dotenv-1.2.1-py3-none-any.whl", hash = "sha256:b81ee9561e9ca4004139c6cbba3a238c32b03e4894671e181b671e8cb8425d61", size = 21230, upload-time = "2025-10-26T15:12:09.109Z" },+]++[[package]]+name = "python-json-logger"+version = "4.0.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/29/bf/eca6a3d43db1dae7070f70e160ab20b807627ba953663ba07928cdd3dc58/python_json_logger-4.0.0.tar.gz", hash = "sha256:f58e68eb46e1faed27e0f574a55a0455eecd7b8a5b88b85a784519ba3cff047f", size = 17683, upload-time = "2025-10-06T04:15:18.984Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/51/e5/fecf13f06e5e5f67e8837d777d1bc43fac0ed2b77a676804df5c34744727/python_json_logger-4.0.0-py3-none-any.whl", hash = "sha256:af09c9daf6a813aa4cc7180395f50f2a9e5fa056034c9953aec92e381c5ba1e2", size = 15548, upload-time = "2025-10-06T04:15:17.553Z" },+]++[[package]]+name = "python-multipart"+version = "0.0.22"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/94/01/979e98d542a70714b0cb2b6728ed0b7c46792b695e3eaec3e20711271ca3/python_multipart-0.0.22.tar.gz", hash = "sha256:7340bef99a7e0032613f56dc36027b959fd3b30a787ed62d310e951f7c3a3a58", size = 37612, upload-time = "2026-01-25T10:15:56.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1b/d0/397f9626e711ff749a95d96b7af99b9c566a9bb5129b8e4c10fc4d100304/python_multipart-0.0.22-py3-none-any.whl", hash = "sha256:2b2cd894c83d21bf49d702499531c7bafd057d730c201782048f7945d82de155", size = 24579, upload-time = "2026-01-25T10:15:54.811Z" },+]++[[package]]+name = "pytz"+version = "2025.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f8/bf/abbd3cdfb8fbc7fb3d4d38d320f2441b1e7cbe29be4f23797b4a2b5d8aac/pytz-2025.2.tar.gz", hash = "sha256:360b9e3dbb49a209c21ad61809c7fb453643e048b38924c765813546746e81c3", size = 320884, upload-time = "2025-03-25T02:25:00.538Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl", hash = "sha256:5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00", size = 509225, upload-time = "2025-03-25T02:24:58.468Z" },+]++[[package]]+name = "pywin32"+version = "311"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a5/be/3fd5de0979fcb3994bfee0d65ed8ca9506a8a1260651b86174f6a86f52b3/pywin32-311-cp313-cp313-win32.whl", hash = "sha256:f95ba5a847cba10dd8c4d8fefa9f2a6cf283b8b88ed6178fa8a6c1ab16054d0d", size = 8705700, upload-time = "2025-07-14T20:13:26.471Z" },+ { url = "https://files.pythonhosted.org/packages/e3/28/e0a1909523c6890208295a29e05c2adb2126364e289826c0a8bc7297bd5c/pywin32-311-cp313-cp313-win_amd64.whl", hash = "sha256:718a38f7e5b058e76aee1c56ddd06908116d35147e133427e59a3983f703a20d", size = 9494700, upload-time = "2025-07-14T20:13:28.243Z" },+ { url = "https://files.pythonhosted.org/packages/04/bf/90339ac0f55726dce7d794e6d79a18a91265bdf3aa70b6b9ca52f35e022a/pywin32-311-cp313-cp313-win_arm64.whl", hash = "sha256:7b4075d959648406202d92a2310cb990fea19b535c7f4a78d3f5e10b926eeb8a", size = 8709318, upload-time = "2025-07-14T20:13:30.348Z" },+ { url = "https://files.pythonhosted.org/packages/c9/31/097f2e132c4f16d99a22bfb777e0fd88bd8e1c634304e102f313af69ace5/pywin32-311-cp314-cp314-win32.whl", hash = "sha256:b7a2c10b93f8986666d0c803ee19b5990885872a7de910fc460f9b0c2fbf92ee", size = 8840714, upload-time = "2025-07-14T20:13:32.449Z" },+ { url = "https://files.pythonhosted.org/packages/90/4b/07c77d8ba0e01349358082713400435347df8426208171ce297da32c313d/pywin32-311-cp314-cp314-win_amd64.whl", hash = "sha256:3aca44c046bd2ed8c90de9cb8427f581c479e594e99b5c0bb19b29c10fd6cb87", size = 9656800, upload-time = "2025-07-14T20:13:34.312Z" },+ { url = "https://files.pythonhosted.org/packages/c0/d2/21af5c535501a7233e734b8af901574572da66fcc254cb35d0609c9080dd/pywin32-311-cp314-cp314-win_arm64.whl", hash = "sha256:a508e2d9025764a8270f93111a970e1d0fbfc33f4153b388bb649b7eec4f9b42", size = 8932540, upload-time = "2025-07-14T20:13:36.379Z" },+]++[[package]]+name = "pywin32-ctypes"+version = "0.2.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/85/9f/01a1a99704853cb63f253eea009390c88e7131c67e66a0a02099a8c917cb/pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755", size = 29471, upload-time = "2024-08-14T10:15:34.626Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/de/3d/8161f7711c017e01ac9f008dfddd9410dff3674334c233bde66e7ba65bbf/pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8", size = 30756, upload-time = "2024-08-14T10:15:33.187Z" },+]++[[package]]+name = "pyyaml"+version = "6.0.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" },+ { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" },+ { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" },+ { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" },+ { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" },+ { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" },+ { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" },+ { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" },+ { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" },+ { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },+ { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" },+ { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" },+ { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" },+ { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" },+ { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" },+ { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" },+ { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" },+ { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" },+ { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" },+ { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" },+ { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" },+ { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" },+ { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" },+ { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" },+ { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" },+ { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" },+ { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" },+ { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },+]++[[package]]+name = "redis"+version = "7.1.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f7/80/2971931d27651affa88a44c0ad7b8c4a19dc29c998abb20b23868d319b59/redis-7.1.1.tar.gz", hash = "sha256:a2814b2bda15b39dad11391cc48edac4697214a8a5a4bd10abe936ab4892eb43", size = 4800064, upload-time = "2026-02-09T18:39:40.292Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/29/55/1de1d812ba1481fa4b37fb03b4eec0fcb71b6a0d44c04ea3482eb017600f/redis-7.1.1-py3-none-any.whl", hash = "sha256:f77817f16071c2950492c67d40b771fa493eb3fccc630a424a10976dbb794b7a", size = 356057, upload-time = "2026-02-09T18:39:38.602Z" },+]++[[package]]+name = "referencing"+version = "0.36.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "attrs" },+ { name = "rpds-py" },+]+sdist = { url = "https://files.pythonhosted.org/packages/2f/db/98b5c277be99dd18bfd91dd04e1b759cad18d1a338188c936e92f921c7e2/referencing-0.36.2.tar.gz", hash = "sha256:df2e89862cd09deabbdba16944cc3f10feb6b3e6f18e902f7cc25609a34775aa", size = 74744, upload-time = "2025-01-25T08:48:16.138Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c1/b1/3baf80dc6d2b7bc27a95a67752d0208e410351e3feb4eb78de5f77454d8d/referencing-0.36.2-py3-none-any.whl", hash = "sha256:e8699adbbf8b5c7de96d8ffa0eb5c158b3beafce084968e2ea8bb08c6794dcd0", size = 26775, upload-time = "2025-01-25T08:48:14.241Z" },+]++[[package]]+name = "regex"+version = "2026.1.15"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0b/86/07d5056945f9ec4590b518171c4254a5925832eb727b56d3c38a7476f316/regex-2026.1.15.tar.gz", hash = "sha256:164759aa25575cbc0651bef59a0b18353e54300d79ace8084c818ad8ac72b7d5", size = 414811, upload-time = "2026-01-14T23:18:02.775Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f8/2e/6870bb16e982669b674cce3ee9ff2d1d46ab80528ee6bcc20fb2292efb60/regex-2026.1.15-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e69d0deeb977ffe7ed3d2e4439360089f9c3f217ada608f0f88ebd67afb6385e", size = 489164, upload-time = "2026-01-14T23:15:13.962Z" },+ { url = "https://files.pythonhosted.org/packages/dc/67/9774542e203849b0286badf67199970a44ebdb0cc5fb739f06e47ada72f8/regex-2026.1.15-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:3601ffb5375de85a16f407854d11cca8fe3f5febbe3ac78fb2866bb220c74d10", size = 291218, upload-time = "2026-01-14T23:15:15.647Z" },+ { url = "https://files.pythonhosted.org/packages/b2/87/b0cda79f22b8dee05f774922a214da109f9a4c0eca5da2c9d72d77ea062c/regex-2026.1.15-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4c5ef43b5c2d4114eb8ea424bb8c9cec01d5d17f242af88b2448f5ee81caadbc", size = 288895, upload-time = "2026-01-14T23:15:17.788Z" },+ { url = "https://files.pythonhosted.org/packages/3b/6a/0041f0a2170d32be01ab981d6346c83a8934277d82c780d60b127331f264/regex-2026.1.15-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:968c14d4f03e10b2fd960f1d5168c1f0ac969381d3c1fcc973bc45fb06346599", size = 798680, upload-time = "2026-01-14T23:15:19.342Z" },+ { url = "https://files.pythonhosted.org/packages/58/de/30e1cfcdbe3e891324aa7568b7c968771f82190df5524fabc1138cb2d45a/regex-2026.1.15-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:56a5595d0f892f214609c9f76b41b7428bed439d98dc961efafdd1354d42baae", size = 864210, upload-time = "2026-01-14T23:15:22.005Z" },+ { url = "https://files.pythonhosted.org/packages/64/44/4db2f5c5ca0ccd40ff052ae7b1e9731352fcdad946c2b812285a7505ca75/regex-2026.1.15-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0bf650f26087363434c4e560011f8e4e738f6f3e029b85d4904c50135b86cfa5", size = 912358, upload-time = "2026-01-14T23:15:24.569Z" },+ { url = "https://files.pythonhosted.org/packages/79/b6/e6a5665d43a7c42467138c8a2549be432bad22cbd206f5ec87162de74bd7/regex-2026.1.15-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:18388a62989c72ac24de75f1449d0fb0b04dfccd0a1a7c1c43af5eb503d890f6", size = 803583, upload-time = "2026-01-14T23:15:26.526Z" },+ { url = "https://files.pythonhosted.org/packages/e7/53/7cd478222169d85d74d7437e74750005e993f52f335f7c04ff7adfda3310/regex-2026.1.15-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6d220a2517f5893f55daac983bfa9fe998a7dbcaee4f5d27a88500f8b7873788", size = 775782, upload-time = "2026-01-14T23:15:29.352Z" },+ { url = "https://files.pythonhosted.org/packages/ca/b5/75f9a9ee4b03a7c009fe60500fe550b45df94f0955ca29af16333ef557c5/regex-2026.1.15-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:c9c08c2fbc6120e70abff5d7f28ffb4d969e14294fb2143b4b5c7d20e46d1714", size = 787978, upload-time = "2026-01-14T23:15:31.295Z" },+ { url = "https://files.pythonhosted.org/packages/72/b3/79821c826245bbe9ccbb54f6eadb7879c722fd3e0248c17bfc90bf54e123/regex-2026.1.15-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:7ef7d5d4bd49ec7364315167a4134a015f61e8266c6d446fc116a9ac4456e10d", size = 858550, upload-time = "2026-01-14T23:15:33.558Z" },+ { url = "https://files.pythonhosted.org/packages/4a/85/2ab5f77a1c465745bfbfcb3ad63178a58337ae8d5274315e2cc623a822fa/regex-2026.1.15-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:6e42844ad64194fa08d5ccb75fe6a459b9b08e6d7296bd704460168d58a388f3", size = 763747, upload-time = "2026-01-14T23:15:35.206Z" },+ { url = "https://files.pythonhosted.org/packages/6d/84/c27df502d4bfe2873a3e3a7cf1bdb2b9cc10284d1a44797cf38bed790470/regex-2026.1.15-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:cfecdaa4b19f9ca534746eb3b55a5195d5c95b88cac32a205e981ec0a22b7d31", size = 850615, upload-time = "2026-01-14T23:15:37.523Z" },+ { url = "https://files.pythonhosted.org/packages/7d/b7/658a9782fb253680aa8ecb5ccbb51f69e088ed48142c46d9f0c99b46c575/regex-2026.1.15-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:08df9722d9b87834a3d701f3fca570b2be115654dbfd30179f30ab2f39d606d3", size = 789951, upload-time = "2026-01-14T23:15:39.582Z" },+ { url = "https://files.pythonhosted.org/packages/fc/2a/5928af114441e059f15b2f63e188bd00c6529b3051c974ade7444b85fcda/regex-2026.1.15-cp313-cp313-win32.whl", hash = "sha256:d426616dae0967ca225ab12c22274eb816558f2f99ccb4a1d52ca92e8baf180f", size = 266275, upload-time = "2026-01-14T23:15:42.108Z" },+ { url = "https://files.pythonhosted.org/packages/4f/16/5bfbb89e435897bff28cf0352a992ca719d9e55ebf8b629203c96b6ce4f7/regex-2026.1.15-cp313-cp313-win_amd64.whl", hash = "sha256:febd38857b09867d3ed3f4f1af7d241c5c50362e25ef43034995b77a50df494e", size = 277145, upload-time = "2026-01-14T23:15:44.244Z" },+ { url = "https://files.pythonhosted.org/packages/56/c1/a09ff7392ef4233296e821aec5f78c51be5e91ffde0d163059e50fd75835/regex-2026.1.15-cp313-cp313-win_arm64.whl", hash = "sha256:8e32f7896f83774f91499d239e24cebfadbc07639c1494bb7213983842348337", size = 270411, upload-time = "2026-01-14T23:15:45.858Z" },+ { url = "https://files.pythonhosted.org/packages/3c/38/0cfd5a78e5c6db00e6782fdae70458f89850ce95baa5e8694ab91d89744f/regex-2026.1.15-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:ec94c04149b6a7b8120f9f44565722c7ae31b7a6d2275569d2eefa76b83da3be", size = 492068, upload-time = "2026-01-14T23:15:47.616Z" },+ { url = "https://files.pythonhosted.org/packages/50/72/6c86acff16cb7c959c4355826bbf06aad670682d07c8f3998d9ef4fee7cd/regex-2026.1.15-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:40c86d8046915bb9aeb15d3f3f15b6fd500b8ea4485b30e1bbc799dab3fe29f8", size = 292756, upload-time = "2026-01-14T23:15:49.307Z" },+ { url = "https://files.pythonhosted.org/packages/4e/58/df7fb69eadfe76526ddfce28abdc0af09ffe65f20c2c90932e89d705153f/regex-2026.1.15-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:726ea4e727aba21643205edad8f2187ec682d3305d790f73b7a51c7587b64bdd", size = 291114, upload-time = "2026-01-14T23:15:51.484Z" },+ { url = "https://files.pythonhosted.org/packages/ed/6c/a4011cd1cf96b90d2cdc7e156f91efbd26531e822a7fbb82a43c1016678e/regex-2026.1.15-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1cb740d044aff31898804e7bf1181cc72c03d11dfd19932b9911ffc19a79070a", size = 807524, upload-time = "2026-01-14T23:15:53.102Z" },+ { url = "https://files.pythonhosted.org/packages/1d/25/a53ffb73183f69c3e9f4355c4922b76d2840aee160af6af5fac229b6201d/regex-2026.1.15-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:05d75a668e9ea16f832390d22131fe1e8acc8389a694c8febc3e340b0f810b93", size = 873455, upload-time = "2026-01-14T23:15:54.956Z" },+ { url = "https://files.pythonhosted.org/packages/66/0b/8b47fc2e8f97d9b4a851736f3890a5f786443aa8901061c55f24c955f45b/regex-2026.1.15-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d991483606f3dbec93287b9f35596f41aa2e92b7c2ebbb935b63f409e243c9af", size = 915007, upload-time = "2026-01-14T23:15:57.041Z" },+ { url = "https://files.pythonhosted.org/packages/c2/fa/97de0d681e6d26fabe71968dbee06dd52819e9a22fdce5dac7256c31ed84/regex-2026.1.15-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:194312a14819d3e44628a44ed6fea6898fdbecb0550089d84c403475138d0a09", size = 812794, upload-time = "2026-01-14T23:15:58.916Z" },+ { url = "https://files.pythonhosted.org/packages/22/38/e752f94e860d429654aa2b1c51880bff8dfe8f084268258adf9151cf1f53/regex-2026.1.15-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fe2fda4110a3d0bc163c2e0664be44657431440722c5c5315c65155cab92f9e5", size = 781159, upload-time = "2026-01-14T23:16:00.817Z" },+ { url = "https://files.pythonhosted.org/packages/e9/a7/d739ffaef33c378fc888302a018d7f81080393d96c476b058b8c64fd2b0d/regex-2026.1.15-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:124dc36c85d34ef2d9164da41a53c1c8c122cfb1f6e1ec377a1f27ee81deb794", size = 795558, upload-time = "2026-01-14T23:16:03.267Z" },+ { url = "https://files.pythonhosted.org/packages/3e/c4/542876f9a0ac576100fc73e9c75b779f5c31e3527576cfc9cb3009dcc58a/regex-2026.1.15-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:a1774cd1981cd212506a23a14dba7fdeaee259f5deba2df6229966d9911e767a", size = 868427, upload-time = "2026-01-14T23:16:05.646Z" },+ { url = "https://files.pythonhosted.org/packages/fc/0f/d5655bea5b22069e32ae85a947aa564912f23758e112cdb74212848a1a1b/regex-2026.1.15-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:b5f7d8d2867152cdb625e72a530d2ccb48a3d199159144cbdd63870882fb6f80", size = 769939, upload-time = "2026-01-14T23:16:07.542Z" },+ { url = "https://files.pythonhosted.org/packages/20/06/7e18a4fa9d326daeda46d471a44ef94201c46eaa26dbbb780b5d92cbfdda/regex-2026.1.15-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:492534a0ab925d1db998defc3c302dae3616a2fc3fe2e08db1472348f096ddf2", size = 854753, upload-time = "2026-01-14T23:16:10.395Z" },+ { url = "https://files.pythonhosted.org/packages/3b/67/dc8946ef3965e166f558ef3b47f492bc364e96a265eb4a2bb3ca765c8e46/regex-2026.1.15-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c661fc820cfb33e166bf2450d3dadbda47c8d8981898adb9b6fe24e5e582ba60", size = 799559, upload-time = "2026-01-14T23:16:12.347Z" },+ { url = "https://files.pythonhosted.org/packages/a5/61/1bba81ff6d50c86c65d9fd84ce9699dd106438ee4cdb105bf60374ee8412/regex-2026.1.15-cp313-cp313t-win32.whl", hash = "sha256:99ad739c3686085e614bf77a508e26954ff1b8f14da0e3765ff7abbf7799f952", size = 268879, upload-time = "2026-01-14T23:16:14.049Z" },+ { url = "https://files.pythonhosted.org/packages/e9/5e/cef7d4c5fb0ea3ac5c775fd37db5747f7378b29526cc83f572198924ff47/regex-2026.1.15-cp313-cp313t-win_amd64.whl", hash = "sha256:32655d17905e7ff8ba5c764c43cb124e34a9245e45b83c22e81041e1071aee10", size = 280317, upload-time = "2026-01-14T23:16:15.718Z" },+ { url = "https://files.pythonhosted.org/packages/b4/52/4317f7a5988544e34ab57b4bde0f04944c4786128c933fb09825924d3e82/regex-2026.1.15-cp313-cp313t-win_arm64.whl", hash = "sha256:b2a13dd6a95e95a489ca242319d18fc02e07ceb28fa9ad146385194d95b3c829", size = 271551, upload-time = "2026-01-14T23:16:17.533Z" },+ { url = "https://files.pythonhosted.org/packages/52/0a/47fa888ec7cbbc7d62c5f2a6a888878e76169170ead271a35239edd8f0e8/regex-2026.1.15-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:d920392a6b1f353f4aa54328c867fec3320fa50657e25f64abf17af054fc97ac", size = 489170, upload-time = "2026-01-14T23:16:19.835Z" },+ { url = "https://files.pythonhosted.org/packages/ac/c4/d000e9b7296c15737c9301708e9e7fbdea009f8e93541b6b43bdb8219646/regex-2026.1.15-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:b5a28980a926fa810dbbed059547b02783952e2efd9c636412345232ddb87ff6", size = 291146, upload-time = "2026-01-14T23:16:21.541Z" },+ { url = "https://files.pythonhosted.org/packages/f9/b6/921cc61982e538682bdf3bdf5b2c6ab6b34368da1f8e98a6c1ddc503c9cf/regex-2026.1.15-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:621f73a07595d83f28952d7bd1e91e9d1ed7625fb7af0064d3516674ec93a2a2", size = 288986, upload-time = "2026-01-14T23:16:23.381Z" },+ { url = "https://files.pythonhosted.org/packages/ca/33/eb7383dde0bbc93f4fb9d03453aab97e18ad4024ac7e26cef8d1f0a2cff0/regex-2026.1.15-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3d7d92495f47567a9b1669c51fc8d6d809821849063d168121ef801bbc213846", size = 799098, upload-time = "2026-01-14T23:16:25.088Z" },+ { url = "https://files.pythonhosted.org/packages/27/56/b664dccae898fc8d8b4c23accd853f723bde0f026c747b6f6262b688029c/regex-2026.1.15-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8dd16fba2758db7a3780a051f245539c4451ca20910f5a5e6ea1c08d06d4a76b", size = 864980, upload-time = "2026-01-14T23:16:27.297Z" },+ { url = "https://files.pythonhosted.org/packages/16/40/0999e064a170eddd237bae9ccfcd8f28b3aa98a38bf727a086425542a4fc/regex-2026.1.15-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1e1808471fbe44c1a63e5f577a1d5f02fe5d66031dcbdf12f093ffc1305a858e", size = 911607, upload-time = "2026-01-14T23:16:29.235Z" },+ { url = "https://files.pythonhosted.org/packages/07/78/c77f644b68ab054e5a674fb4da40ff7bffb2c88df58afa82dbf86573092d/regex-2026.1.15-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0751a26ad39d4f2ade8fe16c59b2bf5cb19eb3d2cd543e709e583d559bd9efde", size = 803358, upload-time = "2026-01-14T23:16:31.369Z" },+ { url = "https://files.pythonhosted.org/packages/27/31/d4292ea8566eaa551fafc07797961c5963cf5235c797cc2ae19b85dfd04d/regex-2026.1.15-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0f0c7684c7f9ca241344ff95a1de964f257a5251968484270e91c25a755532c5", size = 775833, upload-time = "2026-01-14T23:16:33.141Z" },+ { url = "https://files.pythonhosted.org/packages/ce/b2/cff3bf2fea4133aa6fb0d1e370b37544d18c8350a2fa118c7e11d1db0e14/regex-2026.1.15-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:74f45d170a21df41508cb67165456538425185baaf686281fa210d7e729abc34", size = 788045, upload-time = "2026-01-14T23:16:35.005Z" },+ { url = "https://files.pythonhosted.org/packages/8d/99/2cb9b69045372ec877b6f5124bda4eb4253bc58b8fe5848c973f752bc52c/regex-2026.1.15-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:f1862739a1ffb50615c0fde6bae6569b5efbe08d98e59ce009f68a336f64da75", size = 859374, upload-time = "2026-01-14T23:16:36.919Z" },+ { url = "https://files.pythonhosted.org/packages/09/16/710b0a5abe8e077b1729a562d2f297224ad079f3a66dce46844c193416c8/regex-2026.1.15-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:453078802f1b9e2b7303fb79222c054cb18e76f7bdc220f7530fdc85d319f99e", size = 763940, upload-time = "2026-01-14T23:16:38.685Z" },+ { url = "https://files.pythonhosted.org/packages/dd/d1/7585c8e744e40eb3d32f119191969b91de04c073fca98ec14299041f6e7e/regex-2026.1.15-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:a30a68e89e5a218b8b23a52292924c1f4b245cb0c68d1cce9aec9bbda6e2c160", size = 850112, upload-time = "2026-01-14T23:16:40.646Z" },+ { url = "https://files.pythonhosted.org/packages/af/d6/43e1dd85df86c49a347aa57c1f69d12c652c7b60e37ec162e3096194a278/regex-2026.1.15-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9479cae874c81bf610d72b85bb681a94c95722c127b55445285fb0e2c82db8e1", size = 789586, upload-time = "2026-01-14T23:16:42.799Z" },+ { url = "https://files.pythonhosted.org/packages/93/38/77142422f631e013f316aaae83234c629555729a9fbc952b8a63ac91462a/regex-2026.1.15-cp314-cp314-win32.whl", hash = "sha256:d639a750223132afbfb8f429c60d9d318aeba03281a5f1ab49f877456448dcf1", size = 271691, upload-time = "2026-01-14T23:16:44.671Z" },+ { url = "https://files.pythonhosted.org/packages/4a/a9/ab16b4649524ca9e05213c1cdbb7faa85cc2aa90a0230d2f796cbaf22736/regex-2026.1.15-cp314-cp314-win_amd64.whl", hash = "sha256:4161d87f85fa831e31469bfd82c186923070fc970b9de75339b68f0c75b51903", size = 280422, upload-time = "2026-01-14T23:16:46.607Z" },+ { url = "https://files.pythonhosted.org/packages/be/2a/20fd057bf3521cb4791f69f869635f73e0aaf2b9ad2d260f728144f9047c/regex-2026.1.15-cp314-cp314-win_arm64.whl", hash = "sha256:91c5036ebb62663a6b3999bdd2e559fd8456d17e2b485bf509784cd31a8b1705", size = 273467, upload-time = "2026-01-14T23:16:48.967Z" },+ { url = "https://files.pythonhosted.org/packages/ad/77/0b1e81857060b92b9cad239104c46507dd481b3ff1fa79f8e7f865aae38a/regex-2026.1.15-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:ee6854c9000a10938c79238de2379bea30c82e4925a371711af45387df35cab8", size = 492073, upload-time = "2026-01-14T23:16:51.154Z" },+ { url = "https://files.pythonhosted.org/packages/70/f3/f8302b0c208b22c1e4f423147e1913fd475ddd6230565b299925353de644/regex-2026.1.15-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:2c2b80399a422348ce5de4fe40c418d6299a0fa2803dd61dc0b1a2f28e280fcf", size = 292757, upload-time = "2026-01-14T23:16:53.08Z" },+ { url = "https://files.pythonhosted.org/packages/bf/f0/ef55de2460f3b4a6da9d9e7daacd0cb79d4ef75c64a2af316e68447f0df0/regex-2026.1.15-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:dca3582bca82596609959ac39e12b7dad98385b4fefccb1151b937383cec547d", size = 291122, upload-time = "2026-01-14T23:16:55.383Z" },+ { url = "https://files.pythonhosted.org/packages/cf/55/bb8ccbacabbc3a11d863ee62a9f18b160a83084ea95cdfc5d207bfc3dd75/regex-2026.1.15-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ef71d476caa6692eea743ae5ea23cde3260677f70122c4d258ca952e5c2d4e84", size = 807761, upload-time = "2026-01-14T23:16:57.251Z" },+ { url = "https://files.pythonhosted.org/packages/8f/84/f75d937f17f81e55679a0509e86176e29caa7298c38bd1db7ce9c0bf6075/regex-2026.1.15-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c243da3436354f4af6c3058a3f81a97d47ea52c9bd874b52fd30274853a1d5df", size = 873538, upload-time = "2026-01-14T23:16:59.349Z" },+ { url = "https://files.pythonhosted.org/packages/b8/d9/0da86327df70349aa8d86390da91171bd3ca4f0e7c1d1d453a9c10344da3/regex-2026.1.15-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8355ad842a7c7e9e5e55653eade3b7d1885ba86f124dd8ab1f722f9be6627434", size = 915066, upload-time = "2026-01-14T23:17:01.607Z" },+ { url = "https://files.pythonhosted.org/packages/2a/5e/f660fb23fc77baa2a61aa1f1fe3a4eea2bbb8a286ddec148030672e18834/regex-2026.1.15-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f192a831d9575271a22d804ff1a5355355723f94f31d9eef25f0d45a152fdc1a", size = 812938, upload-time = "2026-01-14T23:17:04.366Z" },+ { url = "https://files.pythonhosted.org/packages/69/33/a47a29bfecebbbfd1e5cd3f26b28020a97e4820f1c5148e66e3b7d4b4992/regex-2026.1.15-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:166551807ec20d47ceaeec380081f843e88c8949780cd42c40f18d16168bed10", size = 781314, upload-time = "2026-01-14T23:17:06.378Z" },+ { url = "https://files.pythonhosted.org/packages/65/ec/7ec2bbfd4c3f4e494a24dec4c6943a668e2030426b1b8b949a6462d2c17b/regex-2026.1.15-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:f9ca1cbdc0fbfe5e6e6f8221ef2309988db5bcede52443aeaee9a4ad555e0dac", size = 795652, upload-time = "2026-01-14T23:17:08.521Z" },+ { url = "https://files.pythonhosted.org/packages/46/79/a5d8651ae131fe27d7c521ad300aa7f1c7be1dbeee4d446498af5411b8a9/regex-2026.1.15-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b30bcbd1e1221783c721483953d9e4f3ab9c5d165aa709693d3f3946747b1aea", size = 868550, upload-time = "2026-01-14T23:17:10.573Z" },+ { url = "https://files.pythonhosted.org/packages/06/b7/25635d2809664b79f183070786a5552dd4e627e5aedb0065f4e3cf8ee37d/regex-2026.1.15-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:2a8d7b50c34578d0d3bf7ad58cde9652b7d683691876f83aedc002862a35dc5e", size = 769981, upload-time = "2026-01-14T23:17:12.871Z" },+ { url = "https://files.pythonhosted.org/packages/16/8b/fc3fcbb2393dcfa4a6c5ffad92dc498e842df4581ea9d14309fcd3c55fb9/regex-2026.1.15-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:9d787e3310c6a6425eb346be4ff2ccf6eece63017916fd77fe8328c57be83521", size = 854780, upload-time = "2026-01-14T23:17:14.837Z" },+ { url = "https://files.pythonhosted.org/packages/d0/38/dde117c76c624713c8a2842530be9c93ca8b606c0f6102d86e8cd1ce8bea/regex-2026.1.15-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:619843841e220adca114118533a574a9cd183ed8a28b85627d2844c500a2b0db", size = 799778, upload-time = "2026-01-14T23:17:17.369Z" },+ { url = "https://files.pythonhosted.org/packages/e3/0d/3a6cfa9ae99606afb612d8fb7a66b245a9d5ff0f29bb347c8a30b6ad561b/regex-2026.1.15-cp314-cp314t-win32.whl", hash = "sha256:e90b8db97f6f2c97eb045b51a6b2c5ed69cedd8392459e0642d4199b94fabd7e", size = 274667, upload-time = "2026-01-14T23:17:19.301Z" },+ { url = "https://files.pythonhosted.org/packages/5b/b2/297293bb0742fd06b8d8e2572db41a855cdf1cae0bf009b1cb74fe07e196/regex-2026.1.15-cp314-cp314t-win_amd64.whl", hash = "sha256:5ef19071f4ac9f0834793af85bd04a920b4407715624e40cb7a0631a11137cdf", size = 284386, upload-time = "2026-01-14T23:17:21.231Z" },+ { url = "https://files.pythonhosted.org/packages/95/e4/a3b9480c78cf8ee86626cb06f8d931d74d775897d44201ccb813097ae697/regex-2026.1.15-cp314-cp314t-win_arm64.whl", hash = "sha256:ca89c5e596fc05b015f27561b3793dc2fa0917ea0d7507eebb448efd35274a70", size = 274837, upload-time = "2026-01-14T23:17:23.146Z" },+]++[[package]]+name = "requests"+version = "2.32.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "charset-normalizer" },+ { name = "idna" },+ { name = "urllib3" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf", size = 134517, upload-time = "2025-08-18T20:46:02.573Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1e/db/4254e3eabe8020b458f1a747140d32277ec7a271daf1d235b70dc0b4e6e3/requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6", size = 64738, upload-time = "2025-08-18T20:46:00.542Z" },+]++[[package]]+name = "rich"+version = "14.3.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markdown-it-py" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/74/99/a4cab2acbb884f80e558b0771e97e21e939c5dfb460f488d19df485e8298/rich-14.3.2.tar.gz", hash = "sha256:e712f11c1a562a11843306f5ed999475f09ac31ffb64281f73ab29ffdda8b3b8", size = 230143, upload-time = "2026-02-01T16:20:47.908Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ef/45/615f5babd880b4bd7d405cc0dc348234c5ffb6ed1ea33e152ede08b2072d/rich-14.3.2-py3-none-any.whl", hash = "sha256:08e67c3e90884651da3239ea668222d19bea7b589149d8014a21c633420dbb69", size = 309963, upload-time = "2026-02-01T16:20:46.078Z" },+]++[[package]]+name = "rich-rst"+version = "1.3.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "docutils" },+ { name = "rich" },+]+sdist = { url = "https://files.pythonhosted.org/packages/bc/6d/a506aaa4a9eaa945ed8ab2b7347859f53593864289853c5d6d62b77246e0/rich_rst-1.3.2.tar.gz", hash = "sha256:a1196fdddf1e364b02ec68a05e8ff8f6914fee10fbca2e6b6735f166bb0da8d4", size = 14936, upload-time = "2025-10-14T16:49:45.332Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/13/2f/b4530fbf948867702d0a3f27de4a6aab1d156f406d72852ab902c4d04de9/rich_rst-1.3.2-py3-none-any.whl", hash = "sha256:a99b4907cbe118cf9d18b0b44de272efa61f15117c61e39ebdc431baf5df722a", size = 12567, upload-time = "2025-10-14T16:49:42.953Z" },+]++[[package]]+name = "rpds-py"+version = "0.30.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/20/af/3f2f423103f1113b36230496629986e0ef7e199d2aa8392452b484b38ced/rpds_py-0.30.0.tar.gz", hash = "sha256:dd8ff7cf90014af0c0f787eea34794ebf6415242ee1d6fa91eaba725cc441e84", size = 69469, upload-time = "2025-11-30T20:24:38.837Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ed/dc/d61221eb88ff410de3c49143407f6f3147acf2538c86f2ab7ce65ae7d5f9/rpds_py-0.30.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:f83424d738204d9770830d35290ff3273fbb02b41f919870479fab14b9d303b2", size = 374887, upload-time = "2025-11-30T20:22:41.812Z" },+ { url = "https://files.pythonhosted.org/packages/fd/32/55fb50ae104061dbc564ef15cc43c013dc4a9f4527a1f4d99baddf56fe5f/rpds_py-0.30.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e7536cd91353c5273434b4e003cbda89034d67e7710eab8761fd918ec6c69cf8", size = 358904, upload-time = "2025-11-30T20:22:43.479Z" },+ { url = "https://files.pythonhosted.org/packages/58/70/faed8186300e3b9bdd138d0273109784eea2396c68458ed580f885dfe7ad/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2771c6c15973347f50fece41fc447c054b7ac2ae0502388ce3b6738cd366e3d4", size = 389945, upload-time = "2025-11-30T20:22:44.819Z" },+ { url = "https://files.pythonhosted.org/packages/bd/a8/073cac3ed2c6387df38f71296d002ab43496a96b92c823e76f46b8af0543/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0a59119fc6e3f460315fe9d08149f8102aa322299deaa5cab5b40092345c2136", size = 407783, upload-time = "2025-11-30T20:22:46.103Z" },+ { url = "https://files.pythonhosted.org/packages/77/57/5999eb8c58671f1c11eba084115e77a8899d6e694d2a18f69f0ba471ec8b/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:76fec018282b4ead0364022e3c54b60bf368b9d926877957a8624b58419169b7", size = 515021, upload-time = "2025-11-30T20:22:47.458Z" },+ { url = "https://files.pythonhosted.org/packages/e0/af/5ab4833eadc36c0a8ed2bc5c0de0493c04f6c06de223170bd0798ff98ced/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:692bef75a5525db97318e8cd061542b5a79812d711ea03dbc1f6f8dbb0c5f0d2", size = 414589, upload-time = "2025-11-30T20:22:48.872Z" },+ { url = "https://files.pythonhosted.org/packages/b7/de/f7192e12b21b9e9a68a6d0f249b4af3fdcdff8418be0767a627564afa1f1/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9027da1ce107104c50c81383cae773ef5c24d296dd11c99e2629dbd7967a20c6", size = 394025, upload-time = "2025-11-30T20:22:50.196Z" },+ { url = "https://files.pythonhosted.org/packages/91/c4/fc70cd0249496493500e7cc2de87504f5aa6509de1e88623431fec76d4b6/rpds_py-0.30.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:9cf69cdda1f5968a30a359aba2f7f9aa648a9ce4b580d6826437f2b291cfc86e", size = 408895, upload-time = "2025-11-30T20:22:51.87Z" },+ { url = "https://files.pythonhosted.org/packages/58/95/d9275b05ab96556fefff73a385813eb66032e4c99f411d0795372d9abcea/rpds_py-0.30.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a4796a717bf12b9da9d3ad002519a86063dcac8988b030e405704ef7d74d2d9d", size = 422799, upload-time = "2025-11-30T20:22:53.341Z" },+ { url = "https://files.pythonhosted.org/packages/06/c1/3088fc04b6624eb12a57eb814f0d4997a44b0d208d6cace713033ff1a6ba/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5d4c2aa7c50ad4728a094ebd5eb46c452e9cb7edbfdb18f9e1221f597a73e1e7", size = 572731, upload-time = "2025-11-30T20:22:54.778Z" },+ { url = "https://files.pythonhosted.org/packages/d8/42/c612a833183b39774e8ac8fecae81263a68b9583ee343db33ab571a7ce55/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ba81a9203d07805435eb06f536d95a266c21e5b2dfbf6517748ca40c98d19e31", size = 599027, upload-time = "2025-11-30T20:22:56.212Z" },+ { url = "https://files.pythonhosted.org/packages/5f/60/525a50f45b01d70005403ae0e25f43c0384369ad24ffe46e8d9068b50086/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:945dccface01af02675628334f7cf49c2af4c1c904748efc5cf7bbdf0b579f95", size = 563020, upload-time = "2025-11-30T20:22:58.2Z" },+ { url = "https://files.pythonhosted.org/packages/0b/5d/47c4655e9bcd5ca907148535c10e7d489044243cc9941c16ed7cd53be91d/rpds_py-0.30.0-cp313-cp313-win32.whl", hash = "sha256:b40fb160a2db369a194cb27943582b38f79fc4887291417685f3ad693c5a1d5d", size = 223139, upload-time = "2025-11-30T20:23:00.209Z" },+ { url = "https://files.pythonhosted.org/packages/f2/e1/485132437d20aa4d3e1d8b3fb5a5e65aa8139f1e097080c2a8443201742c/rpds_py-0.30.0-cp313-cp313-win_amd64.whl", hash = "sha256:806f36b1b605e2d6a72716f321f20036b9489d29c51c91f4dd29a3e3afb73b15", size = 240224, upload-time = "2025-11-30T20:23:02.008Z" },+ { url = "https://files.pythonhosted.org/packages/24/95/ffd128ed1146a153d928617b0ef673960130be0009c77d8fbf0abe306713/rpds_py-0.30.0-cp313-cp313-win_arm64.whl", hash = "sha256:d96c2086587c7c30d44f31f42eae4eac89b60dabbac18c7669be3700f13c3ce1", size = 230645, upload-time = "2025-11-30T20:23:03.43Z" },+ { url = "https://files.pythonhosted.org/packages/ff/1b/b10de890a0def2a319a2626334a7f0ae388215eb60914dbac8a3bae54435/rpds_py-0.30.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:eb0b93f2e5c2189ee831ee43f156ed34e2a89a78a66b98cadad955972548be5a", size = 364443, upload-time = "2025-11-30T20:23:04.878Z" },+ { url = "https://files.pythonhosted.org/packages/0d/bf/27e39f5971dc4f305a4fb9c672ca06f290f7c4e261c568f3dea16a410d47/rpds_py-0.30.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:922e10f31f303c7c920da8981051ff6d8c1a56207dbdf330d9047f6d30b70e5e", size = 353375, upload-time = "2025-11-30T20:23:06.342Z" },+ { url = "https://files.pythonhosted.org/packages/40/58/442ada3bba6e8e6615fc00483135c14a7538d2ffac30e2d933ccf6852232/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cdc62c8286ba9bf7f47befdcea13ea0e26bf294bda99758fd90535cbaf408000", size = 383850, upload-time = "2025-11-30T20:23:07.825Z" },+ { url = "https://files.pythonhosted.org/packages/14/14/f59b0127409a33c6ef6f5c1ebd5ad8e32d7861c9c7adfa9a624fc3889f6c/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:47f9a91efc418b54fb8190a6b4aa7813a23fb79c51f4bb84e418f5476c38b8db", size = 392812, upload-time = "2025-11-30T20:23:09.228Z" },+ { url = "https://files.pythonhosted.org/packages/b3/66/e0be3e162ac299b3a22527e8913767d869e6cc75c46bd844aa43fb81ab62/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1f3587eb9b17f3789ad50824084fa6f81921bbf9a795826570bda82cb3ed91f2", size = 517841, upload-time = "2025-11-30T20:23:11.186Z" },+ { url = "https://files.pythonhosted.org/packages/3d/55/fa3b9cf31d0c963ecf1ba777f7cf4b2a2c976795ac430d24a1f43d25a6ba/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:39c02563fc592411c2c61d26b6c5fe1e51eaa44a75aa2c8735ca88b0d9599daa", size = 408149, upload-time = "2025-11-30T20:23:12.864Z" },+ { url = "https://files.pythonhosted.org/packages/60/ca/780cf3b1a32b18c0f05c441958d3758f02544f1d613abf9488cd78876378/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:51a1234d8febafdfd33a42d97da7a43f5dcb120c1060e352a3fbc0c6d36e2083", size = 383843, upload-time = "2025-11-30T20:23:14.638Z" },+ { url = "https://files.pythonhosted.org/packages/82/86/d5f2e04f2aa6247c613da0c1dd87fcd08fa17107e858193566048a1e2f0a/rpds_py-0.30.0-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:eb2c4071ab598733724c08221091e8d80e89064cd472819285a9ab0f24bcedb9", size = 396507, upload-time = "2025-11-30T20:23:16.105Z" },+ { url = "https://files.pythonhosted.org/packages/4b/9a/453255d2f769fe44e07ea9785c8347edaf867f7026872e76c1ad9f7bed92/rpds_py-0.30.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6bdfdb946967d816e6adf9a3d8201bfad269c67efe6cefd7093ef959683c8de0", size = 414949, upload-time = "2025-11-30T20:23:17.539Z" },+ { url = "https://files.pythonhosted.org/packages/a3/31/622a86cdc0c45d6df0e9ccb6becdba5074735e7033c20e401a6d9d0e2ca0/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c77afbd5f5250bf27bf516c7c4a016813eb2d3e116139aed0096940c5982da94", size = 565790, upload-time = "2025-11-30T20:23:19.029Z" },+ { url = "https://files.pythonhosted.org/packages/1c/5d/15bbf0fb4a3f58a3b1c67855ec1efcc4ceaef4e86644665fff03e1b66d8d/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:61046904275472a76c8c90c9ccee9013d70a6d0f73eecefd38c1ae7c39045a08", size = 590217, upload-time = "2025-11-30T20:23:20.885Z" },+ { url = "https://files.pythonhosted.org/packages/6d/61/21b8c41f68e60c8cc3b2e25644f0e3681926020f11d06ab0b78e3c6bbff1/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c5f36a861bc4b7da6516dbdf302c55313afa09b81931e8280361a4f6c9a2d27", size = 555806, upload-time = "2025-11-30T20:23:22.488Z" },+ { url = "https://files.pythonhosted.org/packages/f9/39/7e067bb06c31de48de3eb200f9fc7c58982a4d3db44b07e73963e10d3be9/rpds_py-0.30.0-cp313-cp313t-win32.whl", hash = "sha256:3d4a69de7a3e50ffc214ae16d79d8fbb0922972da0356dcf4d0fdca2878559c6", size = 211341, upload-time = "2025-11-30T20:23:24.449Z" },+ { url = "https://files.pythonhosted.org/packages/0a/4d/222ef0b46443cf4cf46764d9c630f3fe4abaa7245be9417e56e9f52b8f65/rpds_py-0.30.0-cp313-cp313t-win_amd64.whl", hash = "sha256:f14fc5df50a716f7ece6a80b6c78bb35ea2ca47c499e422aa4463455dd96d56d", size = 225768, upload-time = "2025-11-30T20:23:25.908Z" },+ { url = "https://files.pythonhosted.org/packages/86/81/dad16382ebbd3d0e0328776d8fd7ca94220e4fa0798d1dc5e7da48cb3201/rpds_py-0.30.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:68f19c879420aa08f61203801423f6cd5ac5f0ac4ac82a2368a9fcd6a9a075e0", size = 362099, upload-time = "2025-11-30T20:23:27.316Z" },+ { url = "https://files.pythonhosted.org/packages/2b/60/19f7884db5d5603edf3c6bce35408f45ad3e97e10007df0e17dd57af18f8/rpds_py-0.30.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ec7c4490c672c1a0389d319b3a9cfcd098dcdc4783991553c332a15acf7249be", size = 353192, upload-time = "2025-11-30T20:23:29.151Z" },+ { url = "https://files.pythonhosted.org/packages/bf/c4/76eb0e1e72d1a9c4703c69607cec123c29028bff28ce41588792417098ac/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f251c812357a3fed308d684a5079ddfb9d933860fc6de89f2b7ab00da481e65f", size = 384080, upload-time = "2025-11-30T20:23:30.785Z" },+ { url = "https://files.pythonhosted.org/packages/72/87/87ea665e92f3298d1b26d78814721dc39ed8d2c74b86e83348d6b48a6f31/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ac98b175585ecf4c0348fd7b29c3864bda53b805c773cbf7bfdaffc8070c976f", size = 394841, upload-time = "2025-11-30T20:23:32.209Z" },+ { url = "https://files.pythonhosted.org/packages/77/ad/7783a89ca0587c15dcbf139b4a8364a872a25f861bdb88ed99f9b0dec985/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3e62880792319dbeb7eb866547f2e35973289e7d5696c6e295476448f5b63c87", size = 516670, upload-time = "2025-11-30T20:23:33.742Z" },+ { url = "https://files.pythonhosted.org/packages/5b/3c/2882bdac942bd2172f3da574eab16f309ae10a3925644e969536553cb4ee/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4e7fc54e0900ab35d041b0601431b0a0eb495f0851a0639b6ef90f7741b39a18", size = 408005, upload-time = "2025-11-30T20:23:35.253Z" },+ { url = "https://files.pythonhosted.org/packages/ce/81/9a91c0111ce1758c92516a3e44776920b579d9a7c09b2b06b642d4de3f0f/rpds_py-0.30.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47e77dc9822d3ad616c3d5759ea5631a75e5809d5a28707744ef79d7a1bcfcad", size = 382112, upload-time = "2025-11-30T20:23:36.842Z" },+ { url = "https://files.pythonhosted.org/packages/cf/8e/1da49d4a107027e5fbc64daeab96a0706361a2918da10cb41769244b805d/rpds_py-0.30.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:b4dc1a6ff022ff85ecafef7979a2c6eb423430e05f1165d6688234e62ba99a07", size = 399049, upload-time = "2025-11-30T20:23:38.343Z" },+ { url = "https://files.pythonhosted.org/packages/df/5a/7ee239b1aa48a127570ec03becbb29c9d5a9eb092febbd1699d567cae859/rpds_py-0.30.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4559c972db3a360808309e06a74628b95eaccbf961c335c8fe0d590cf587456f", size = 415661, upload-time = "2025-11-30T20:23:40.263Z" },+ { url = "https://files.pythonhosted.org/packages/70/ea/caa143cf6b772f823bc7929a45da1fa83569ee49b11d18d0ada7f5ee6fd6/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:0ed177ed9bded28f8deb6ab40c183cd1192aa0de40c12f38be4d59cd33cb5c65", size = 565606, upload-time = "2025-11-30T20:23:42.186Z" },+ { url = "https://files.pythonhosted.org/packages/64/91/ac20ba2d69303f961ad8cf55bf7dbdb4763f627291ba3d0d7d67333cced9/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ad1fa8db769b76ea911cb4e10f049d80bf518c104f15b3edb2371cc65375c46f", size = 591126, upload-time = "2025-11-30T20:23:44.086Z" },+ { url = "https://files.pythonhosted.org/packages/21/20/7ff5f3c8b00c8a95f75985128c26ba44503fb35b8e0259d812766ea966c7/rpds_py-0.30.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:46e83c697b1f1c72b50e5ee5adb4353eef7406fb3f2043d64c33f20ad1c2fc53", size = 553371, upload-time = "2025-11-30T20:23:46.004Z" },+ { url = "https://files.pythonhosted.org/packages/72/c7/81dadd7b27c8ee391c132a6b192111ca58d866577ce2d9b0ca157552cce0/rpds_py-0.30.0-cp314-cp314-win32.whl", hash = "sha256:ee454b2a007d57363c2dfd5b6ca4a5d7e2c518938f8ed3b706e37e5d470801ed", size = 215298, upload-time = "2025-11-30T20:23:47.696Z" },+ { url = "https://files.pythonhosted.org/packages/3e/d2/1aaac33287e8cfb07aab2e6b8ac1deca62f6f65411344f1433c55e6f3eb8/rpds_py-0.30.0-cp314-cp314-win_amd64.whl", hash = "sha256:95f0802447ac2d10bcc69f6dc28fe95fdf17940367b21d34e34c737870758950", size = 228604, upload-time = "2025-11-30T20:23:49.501Z" },+ { url = "https://files.pythonhosted.org/packages/e8/95/ab005315818cc519ad074cb7784dae60d939163108bd2b394e60dc7b5461/rpds_py-0.30.0-cp314-cp314-win_arm64.whl", hash = "sha256:613aa4771c99f03346e54c3f038e4cc574ac09a3ddfb0e8878487335e96dead6", size = 222391, upload-time = "2025-11-30T20:23:50.96Z" },+ { url = "https://files.pythonhosted.org/packages/9e/68/154fe0194d83b973cdedcdcc88947a2752411165930182ae41d983dcefa6/rpds_py-0.30.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:7e6ecfcb62edfd632e56983964e6884851786443739dbfe3582947e87274f7cb", size = 364868, upload-time = "2025-11-30T20:23:52.494Z" },+ { url = "https://files.pythonhosted.org/packages/83/69/8bbc8b07ec854d92a8b75668c24d2abcb1719ebf890f5604c61c9369a16f/rpds_py-0.30.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a1d0bc22a7cdc173fedebb73ef81e07faef93692b8c1ad3733b67e31e1b6e1b8", size = 353747, upload-time = "2025-11-30T20:23:54.036Z" },+ { url = "https://files.pythonhosted.org/packages/ab/00/ba2e50183dbd9abcce9497fa5149c62b4ff3e22d338a30d690f9af970561/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d08f00679177226c4cb8c5265012eea897c8ca3b93f429e546600c971bcbae7", size = 383795, upload-time = "2025-11-30T20:23:55.556Z" },+ { url = "https://files.pythonhosted.org/packages/05/6f/86f0272b84926bcb0e4c972262f54223e8ecc556b3224d281e6598fc9268/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5965af57d5848192c13534f90f9dd16464f3c37aaf166cc1da1cae1fd5a34898", size = 393330, upload-time = "2025-11-30T20:23:57.033Z" },+ { url = "https://files.pythonhosted.org/packages/cb/e9/0e02bb2e6dc63d212641da45df2b0bf29699d01715913e0d0f017ee29438/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9a4e86e34e9ab6b667c27f3211ca48f73dba7cd3d90f8d5b11be56e5dbc3fb4e", size = 518194, upload-time = "2025-11-30T20:23:58.637Z" },+ { url = "https://files.pythonhosted.org/packages/ee/ca/be7bca14cf21513bdf9c0606aba17d1f389ea2b6987035eb4f62bd923f25/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5d3e6b26f2c785d65cc25ef1e5267ccbe1b069c5c21b8cc724efee290554419", size = 408340, upload-time = "2025-11-30T20:24:00.2Z" },+ { url = "https://files.pythonhosted.org/packages/c2/c7/736e00ebf39ed81d75544c0da6ef7b0998f8201b369acf842f9a90dc8fce/rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:626a7433c34566535b6e56a1b39a7b17ba961e97ce3b80ec62e6f1312c025551", size = 383765, upload-time = "2025-11-30T20:24:01.759Z" },+ { url = "https://files.pythonhosted.org/packages/4a/3f/da50dfde9956aaf365c4adc9533b100008ed31aea635f2b8d7b627e25b49/rpds_py-0.30.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:acd7eb3f4471577b9b5a41baf02a978e8bdeb08b4b355273994f8b87032000a8", size = 396834, upload-time = "2025-11-30T20:24:03.687Z" },+ { url = "https://files.pythonhosted.org/packages/4e/00/34bcc2565b6020eab2623349efbdec810676ad571995911f1abdae62a3a0/rpds_py-0.30.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe5fa731a1fa8a0a56b0977413f8cacac1768dad38d16b3a296712709476fbd5", size = 415470, upload-time = "2025-11-30T20:24:05.232Z" },+ { url = "https://files.pythonhosted.org/packages/8c/28/882e72b5b3e6f718d5453bd4d0d9cf8df36fddeb4ddbbab17869d5868616/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:74a3243a411126362712ee1524dfc90c650a503502f135d54d1b352bd01f2404", size = 565630, upload-time = "2025-11-30T20:24:06.878Z" },+ { url = "https://files.pythonhosted.org/packages/3b/97/04a65539c17692de5b85c6e293520fd01317fd878ea1995f0367d4532fb1/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:3e8eeb0544f2eb0d2581774be4c3410356eba189529a6b3e36bbbf9696175856", size = 591148, upload-time = "2025-11-30T20:24:08.445Z" },+ { url = "https://files.pythonhosted.org/packages/85/70/92482ccffb96f5441aab93e26c4d66489eb599efdcf96fad90c14bbfb976/rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:dbd936cde57abfee19ab3213cf9c26be06d60750e60a8e4dd85d1ab12c8b1f40", size = 556030, upload-time = "2025-11-30T20:24:10.956Z" },+ { url = "https://files.pythonhosted.org/packages/20/53/7c7e784abfa500a2b6b583b147ee4bb5a2b3747a9166bab52fec4b5b5e7d/rpds_py-0.30.0-cp314-cp314t-win32.whl", hash = "sha256:dc824125c72246d924f7f796b4f63c1e9dc810c7d9e2355864b3c3a73d59ade0", size = 211570, upload-time = "2025-11-30T20:24:12.735Z" },+ { url = "https://files.pythonhosted.org/packages/d0/02/fa464cdfbe6b26e0600b62c528b72d8608f5cc49f96b8d6e38c95d60c676/rpds_py-0.30.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27f4b0e92de5bfbc6f86e43959e6edd1425c33b5e69aab0984a72047f2bcf1e3", size = 226532, upload-time = "2025-11-30T20:24:14.634Z" },+]++[[package]]+name = "ruff"+version = "0.15.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c8/39/5cee96809fbca590abea6b46c6d1c586b49663d1d2830a751cc8fc42c666/ruff-0.15.0.tar.gz", hash = "sha256:6bdea47cdbea30d40f8f8d7d69c0854ba7c15420ec75a26f463290949d7f7e9a", size = 4524893, upload-time = "2026-02-03T17:53:35.357Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bc/88/3fd1b0aa4b6330d6aaa63a285bc96c9f71970351579152d231ed90914586/ruff-0.15.0-py3-none-linux_armv6l.whl", hash = "sha256:aac4ebaa612a82b23d45964586f24ae9bc23ca101919f5590bdb368d74ad5455", size = 10354332, upload-time = "2026-02-03T17:52:54.892Z" },+ { url = "https://files.pythonhosted.org/packages/72/f6/62e173fbb7eb75cc29fe2576a1e20f0a46f671a2587b5f604bfb0eaf5f6f/ruff-0.15.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:dcd4be7cc75cfbbca24a98d04d0b9b36a270d0833241f776b788d59f4142b14d", size = 10767189, upload-time = "2026-02-03T17:53:19.778Z" },+ { url = "https://files.pythonhosted.org/packages/99/e4/968ae17b676d1d2ff101d56dc69cf333e3a4c985e1ec23803df84fc7bf9e/ruff-0.15.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d747e3319b2bce179c7c1eaad3d884dc0a199b5f4d5187620530adf9105268ce", size = 10075384, upload-time = "2026-02-03T17:53:29.241Z" },+ { url = "https://files.pythonhosted.org/packages/a2/bf/9843c6044ab9e20af879c751487e61333ca79a2c8c3058b15722386b8cae/ruff-0.15.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:650bd9c56ae03102c51a5e4b554d74d825ff3abe4db22b90fd32d816c2e90621", size = 10481363, upload-time = "2026-02-03T17:52:43.332Z" },+ { url = "https://files.pythonhosted.org/packages/55/d9/4ada5ccf4cd1f532db1c8d44b6f664f2208d3d93acbeec18f82315e15193/ruff-0.15.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a6664b7eac559e3048223a2da77769c2f92b43a6dfd4720cef42654299a599c9", size = 10187736, upload-time = "2026-02-03T17:53:00.522Z" },+ { url = "https://files.pythonhosted.org/packages/86/e2/f25eaecd446af7bb132af0a1d5b135a62971a41f5366ff41d06d25e77a91/ruff-0.15.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f811f97b0f092b35320d1556f3353bf238763420ade5d9e62ebd2b73f2ff179", size = 10968415, upload-time = "2026-02-03T17:53:15.705Z" },+ { url = "https://files.pythonhosted.org/packages/e7/dc/f06a8558d06333bf79b497d29a50c3a673d9251214e0d7ec78f90b30aa79/ruff-0.15.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:761ec0a66680fab6454236635a39abaf14198818c8cdf691e036f4bc0f406b2d", size = 11809643, upload-time = "2026-02-03T17:53:23.031Z" },+ { url = "https://files.pythonhosted.org/packages/dd/45/0ece8db2c474ad7df13af3a6d50f76e22a09d078af63078f005057ca59eb/ruff-0.15.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:940f11c2604d317e797b289f4f9f3fa5555ffe4fb574b55ed006c3d9b6f0eb78", size = 11234787, upload-time = "2026-02-03T17:52:46.432Z" },+ { url = "https://files.pythonhosted.org/packages/8a/d9/0e3a81467a120fd265658d127db648e4d3acfe3e4f6f5d4ea79fac47e587/ruff-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bcbca3d40558789126da91d7ef9a7c87772ee107033db7191edefa34e2c7f1b4", size = 11112797, upload-time = "2026-02-03T17:52:49.274Z" },+ { url = "https://files.pythonhosted.org/packages/b2/cb/8c0b3b0c692683f8ff31351dfb6241047fa873a4481a76df4335a8bff716/ruff-0.15.0-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:9a121a96db1d75fa3eb39c4539e607f628920dd72ff1f7c5ee4f1b768ac62d6e", size = 11033133, upload-time = "2026-02-03T17:53:33.105Z" },+ { url = "https://files.pythonhosted.org/packages/f8/5e/23b87370cf0f9081a8c89a753e69a4e8778805b8802ccfe175cc410e50b9/ruff-0.15.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:5298d518e493061f2eabd4abd067c7e4fb89e2f63291c94332e35631c07c3662", size = 10442646, upload-time = "2026-02-03T17:53:06.278Z" },+ { url = "https://files.pythonhosted.org/packages/e1/9a/3c94de5ce642830167e6d00b5c75aacd73e6347b4c7fc6828699b150a5ee/ruff-0.15.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:afb6e603d6375ff0d6b0cee563fa21ab570fd15e65c852cb24922cef25050cf1", size = 10195750, upload-time = "2026-02-03T17:53:26.084Z" },+ { url = "https://files.pythonhosted.org/packages/30/15/e396325080d600b436acc970848d69df9c13977942fb62bb8722d729bee8/ruff-0.15.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:77e515f6b15f828b94dc17d2b4ace334c9ddb7d9468c54b2f9ed2b9c1593ef16", size = 10676120, upload-time = "2026-02-03T17:53:09.363Z" },+ { url = "https://files.pythonhosted.org/packages/8d/c9/229a23d52a2983de1ad0fb0ee37d36e0257e6f28bfd6b498ee2c76361874/ruff-0.15.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:6f6e80850a01eb13b3e42ee0ebdf6e4497151b48c35051aab51c101266d187a3", size = 11201636, upload-time = "2026-02-03T17:52:57.281Z" },+ { url = "https://files.pythonhosted.org/packages/6f/b0/69adf22f4e24f3677208adb715c578266842e6e6a3cc77483f48dd999ede/ruff-0.15.0-py3-none-win32.whl", hash = "sha256:238a717ef803e501b6d51e0bdd0d2c6e8513fe9eec14002445134d3907cd46c3", size = 10465945, upload-time = "2026-02-03T17:53:12.591Z" },+ { url = "https://files.pythonhosted.org/packages/51/ad/f813b6e2c97e9b4598be25e94a9147b9af7e60523b0cb5d94d307c15229d/ruff-0.15.0-py3-none-win_amd64.whl", hash = "sha256:dd5e4d3301dc01de614da3cdffc33d4b1b96fb89e45721f1598e5532ccf78b18", size = 11564657, upload-time = "2026-02-03T17:52:51.893Z" },+ { url = "https://files.pythonhosted.org/packages/f6/b0/2d823f6e77ebe560f4e397d078487e8d52c1516b331e3521bc75db4272ca/ruff-0.15.0-py3-none-win_arm64.whl", hash = "sha256:c480d632cc0ca3f0727acac8b7d053542d9e114a462a145d0b00e7cd658c515a", size = 10865753, upload-time = "2026-02-03T17:53:03.014Z" },+]++[[package]]+name = "safetensors"+version = "0.7.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/29/9c/6e74567782559a63bd040a236edca26fd71bc7ba88de2ef35d75df3bca5e/safetensors-0.7.0.tar.gz", hash = "sha256:07663963b67e8bd9f0b8ad15bb9163606cd27cc5a1b96235a50d8369803b96b0", size = 200878, upload-time = "2025-11-19T15:18:43.199Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fa/47/aef6c06649039accf914afef490268e1067ed82be62bcfa5b7e886ad15e8/safetensors-0.7.0-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:c82f4d474cf725255d9e6acf17252991c3c8aac038d6ef363a4bf8be2f6db517", size = 467781, upload-time = "2025-11-19T15:18:35.84Z" },+ { url = "https://files.pythonhosted.org/packages/e8/00/374c0c068e30cd31f1e1b46b4b5738168ec79e7689ca82ee93ddfea05109/safetensors-0.7.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:94fd4858284736bb67a897a41608b5b0c2496c9bdb3bf2af1fa3409127f20d57", size = 447058, upload-time = "2025-11-19T15:18:34.416Z" },+ { url = "https://files.pythonhosted.org/packages/f1/06/578ffed52c2296f93d7fd2d844cabfa92be51a587c38c8afbb8ae449ca89/safetensors-0.7.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e07d91d0c92a31200f25351f4acb2bc6aff7f48094e13ebb1d0fb995b54b6542", size = 491748, upload-time = "2025-11-19T15:18:09.79Z" },+ { url = "https://files.pythonhosted.org/packages/ae/33/1debbbb70e4791dde185edb9413d1fe01619255abb64b300157d7f15dddd/safetensors-0.7.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8469155f4cb518bafb4acf4865e8bb9d6804110d2d9bdcaa78564b9fd841e104", size = 503881, upload-time = "2025-11-19T15:18:16.145Z" },+ { url = "https://files.pythonhosted.org/packages/8e/1c/40c2ca924d60792c3be509833df711b553c60effbd91da6f5284a83f7122/safetensors-0.7.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:54bef08bf00a2bff599982f6b08e8770e09cc012d7bba00783fc7ea38f1fb37d", size = 623463, upload-time = "2025-11-19T15:18:21.11Z" },+ { url = "https://files.pythonhosted.org/packages/9b/3a/13784a9364bd43b0d61eef4bea2845039bc2030458b16594a1bd787ae26e/safetensors-0.7.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:42cb091236206bb2016d245c377ed383aa7f78691748f3bb6ee1bfa51ae2ce6a", size = 532855, upload-time = "2025-11-19T15:18:25.719Z" },+ { url = "https://files.pythonhosted.org/packages/a0/60/429e9b1cb3fc651937727befe258ea24122d9663e4d5709a48c9cbfceecb/safetensors-0.7.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dac7252938f0696ddea46f5e855dd3138444e82236e3be475f54929f0c510d48", size = 507152, upload-time = "2025-11-19T15:18:33.023Z" },+ { url = "https://files.pythonhosted.org/packages/3c/a8/4b45e4e059270d17af60359713ffd83f97900d45a6afa73aaa0d737d48b6/safetensors-0.7.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1d060c70284127fa805085d8f10fbd0962792aed71879d00864acda69dbab981", size = 541856, upload-time = "2025-11-19T15:18:31.075Z" },+ { url = "https://files.pythonhosted.org/packages/06/87/d26d8407c44175d8ae164a95b5a62707fcc445f3c0c56108e37d98070a3d/safetensors-0.7.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:cdab83a366799fa730f90a4ebb563e494f28e9e92c4819e556152ad55e43591b", size = 674060, upload-time = "2025-11-19T15:18:37.211Z" },+ { url = "https://files.pythonhosted.org/packages/11/f5/57644a2ff08dc6325816ba7217e5095f17269dada2554b658442c66aed51/safetensors-0.7.0-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:672132907fcad9f2aedcb705b2d7b3b93354a2aec1b2f706c4db852abe338f85", size = 771715, upload-time = "2025-11-19T15:18:38.689Z" },+ { url = "https://files.pythonhosted.org/packages/86/31/17883e13a814bd278ae6e266b13282a01049b0c81341da7fd0e3e71a80a3/safetensors-0.7.0-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:5d72abdb8a4d56d4020713724ba81dac065fedb7f3667151c4a637f1d3fb26c0", size = 714377, upload-time = "2025-11-19T15:18:40.162Z" },+ { url = "https://files.pythonhosted.org/packages/4a/d8/0c8a7dc9b41dcac53c4cbf9df2b9c83e0e0097203de8b37a712b345c0be5/safetensors-0.7.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b0f6d66c1c538d5a94a73aa9ddca8ccc4227e6c9ff555322ea40bdd142391dd4", size = 677368, upload-time = "2025-11-19T15:18:41.627Z" },+ { url = "https://files.pythonhosted.org/packages/05/e5/cb4b713c8a93469e3c5be7c3f8d77d307e65fe89673e731f5c2bfd0a9237/safetensors-0.7.0-cp38-abi3-win32.whl", hash = "sha256:c74af94bf3ac15ac4d0f2a7c7b4663a15f8c2ab15ed0fc7531ca61d0835eccba", size = 326423, upload-time = "2025-11-19T15:18:45.74Z" },+ { url = "https://files.pythonhosted.org/packages/5d/e6/ec8471c8072382cb91233ba7267fd931219753bb43814cbc71757bfd4dab/safetensors-0.7.0-cp38-abi3-win_amd64.whl", hash = "sha256:d1239932053f56f3456f32eb9625590cc7582e905021f94636202a864d470755", size = 341380, upload-time = "2025-11-19T15:18:44.427Z" },+]++[[package]]+name = "secretstorage"+version = "3.5.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cryptography", marker = "sys_platform != 'emscripten' and sys_platform != 'win32'" },+ { name = "jeepney", marker = "sys_platform != 'emscripten' and sys_platform != 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz", hash = "sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size = 19884, upload-time = "2025-11-23T19:02:53.191Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/46/f5af3402b579fd5e11573ce652019a67074317e18c1935cc0b4ba9b35552/secretstorage-3.5.0-py3-none-any.whl", hash = "sha256:0ce65888c0725fcb2c5bc0fdb8e5438eece02c523557ea40ce0703c266248137", size = 15554, upload-time = "2025-11-23T19:02:51.545Z" },+]++[[package]]+name = "setuptools"+version = "82.0.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/82/f3/748f4d6f65d1756b9ae577f329c951cda23fb900e4de9f70900ced962085/setuptools-82.0.0.tar.gz", hash = "sha256:22e0a2d69474c6ae4feb01951cb69d515ed23728cf96d05513d36e42b62b37cb", size = 1144893, upload-time = "2026-02-08T15:08:40.206Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e1/c6/76dc613121b793286a3f91621d7b75a2b493e0390ddca50f11993eadf192/setuptools-82.0.0-py3-none-any.whl", hash = "sha256:70b18734b607bd1da571d097d236cfcfacaf01de45717d59e6e04b96877532e0", size = 1003468, upload-time = "2026-02-08T15:08:38.723Z" },+]++[[package]]+name = "shellingham"+version = "1.5.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310, upload-time = "2023-10-24T04:13:40.426Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" },+]++[[package]]+name = "six"+version = "1.17.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" },+]++[[package]]+name = "sniffio"+version = "1.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a2/87/a6771e1546d97e7e041b6ae58d80074f81b7d5121207425c964ddf5cfdbd/sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc", size = 20372, upload-time = "2024-02-25T23:20:04.057Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40/sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", size = 10235, upload-time = "2024-02-25T23:20:01.196Z" },+]++[[package]]+name = "sortedcontainers"+version = "2.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e8/c4/ba2f8066cceb6f23394729afe52f3bf7adec04bf9ed2c820b39e19299111/sortedcontainers-2.4.0.tar.gz", hash = "sha256:25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88", size = 30594, upload-time = "2021-05-16T22:03:42.897Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl", hash = "sha256:a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0", size = 29575, upload-time = "2021-05-16T22:03:41.177Z" },+]++[[package]]+name = "sqlalchemy"+version = "2.0.46"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "greenlet", marker = "platform_machine == 'AMD64' or platform_machine == 'WIN32' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'ppc64le' or platform_machine == 'win32' or platform_machine == 'x86_64'" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/aa/9ce0f3e7a9829ead5c8ce549392f33a12c4555a6c0609bb27d882e9c7ddf/sqlalchemy-2.0.46.tar.gz", hash = "sha256:cf36851ee7219c170bb0793dbc3da3e80c582e04a5437bc601bfe8c85c9216d7", size = 9865393, upload-time = "2026-01-21T18:03:45.119Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b3/4b/fa7838fe20bb752810feed60e45625a9a8b0102c0c09971e2d1d95362992/sqlalchemy-2.0.46-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:93a12da97cca70cea10d4b4fc602589c4511f96c1f8f6c11817620c021d21d00", size = 2150268, upload-time = "2026-01-21T19:05:56.621Z" },+ { url = "https://files.pythonhosted.org/packages/46/c1/b34dccd712e8ea846edf396e00973dda82d598cb93762e55e43e6835eba9/sqlalchemy-2.0.46-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:af865c18752d416798dae13f83f38927c52f085c52e2f32b8ab0fef46fdd02c2", size = 3276511, upload-time = "2026-01-21T18:46:49.022Z" },+ { url = "https://files.pythonhosted.org/packages/96/48/a04d9c94753e5d5d096c628c82a98c4793b9c08ca0e7155c3eb7d7db9f24/sqlalchemy-2.0.46-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8d679b5f318423eacb61f933a9a0f75535bfca7056daeadbf6bd5bcee6183aee", size = 3292881, upload-time = "2026-01-21T18:40:13.089Z" },+ { url = "https://files.pythonhosted.org/packages/be/f4/06eda6e91476f90a7d8058f74311cb65a2fb68d988171aced81707189131/sqlalchemy-2.0.46-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:64901e08c33462acc9ec3bad27fc7a5c2b6491665f2aa57564e57a4f5d7c52ad", size = 3224559, upload-time = "2026-01-21T18:46:50.974Z" },+ { url = "https://files.pythonhosted.org/packages/ab/a2/d2af04095412ca6345ac22b33b89fe8d6f32a481e613ffcb2377d931d8d0/sqlalchemy-2.0.46-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e8ac45e8f4eaac0f9f8043ea0e224158855c6a4329fd4ee37c45c61e3beb518e", size = 3262728, upload-time = "2026-01-21T18:40:14.883Z" },+ { url = "https://files.pythonhosted.org/packages/31/48/1980c7caa5978a3b8225b4d230e69a2a6538a3562b8b31cea679b6933c83/sqlalchemy-2.0.46-cp313-cp313-win32.whl", hash = "sha256:8d3b44b3d0ab2f1319d71d9863d76eeb46766f8cf9e921ac293511804d39813f", size = 2111295, upload-time = "2026-01-21T18:42:52.366Z" },+ { url = "https://files.pythonhosted.org/packages/2d/54/f8d65bbde3d877617c4720f3c9f60e99bb7266df0d5d78b6e25e7c149f35/sqlalchemy-2.0.46-cp313-cp313-win_amd64.whl", hash = "sha256:77f8071d8fbcbb2dd11b7fd40dedd04e8ebe2eb80497916efedba844298065ef", size = 2137076, upload-time = "2026-01-21T18:42:53.924Z" },+ { url = "https://files.pythonhosted.org/packages/56/ba/9be4f97c7eb2b9d5544f2624adfc2853e796ed51d2bb8aec90bc94b7137e/sqlalchemy-2.0.46-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a1e8cc6cc01da346dc92d9509a63033b9b1bda4fed7a7a7807ed385c7dccdc10", size = 3556533, upload-time = "2026-01-21T18:33:06.636Z" },+ { url = "https://files.pythonhosted.org/packages/20/a6/b1fc6634564dbb4415b7ed6419cdfeaadefd2c39cdab1e3aa07a5f2474c2/sqlalchemy-2.0.46-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:96c7cca1a4babaaf3bfff3e4e606e38578856917e52f0384635a95b226c87764", size = 3523208, upload-time = "2026-01-21T18:45:08.436Z" },+ { url = "https://files.pythonhosted.org/packages/a1/d8/41e0bdfc0f930ff236f86fccd12962d8fa03713f17ed57332d38af6a3782/sqlalchemy-2.0.46-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b2a9f9aee38039cf4755891a1e50e1effcc42ea6ba053743f452c372c3152b1b", size = 3464292, upload-time = "2026-01-21T18:33:08.208Z" },+ { url = "https://files.pythonhosted.org/packages/f0/8b/9dcbec62d95bea85f5ecad9b8d65b78cc30fb0ffceeb3597961f3712549b/sqlalchemy-2.0.46-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:db23b1bf8cfe1f7fda19018e7207b20cdb5168f83c437ff7e95d19e39289c447", size = 3473497, upload-time = "2026-01-21T18:45:10.552Z" },+ { url = "https://files.pythonhosted.org/packages/e9/f8/5ecdfc73383ec496de038ed1614de9e740a82db9ad67e6e4514ebc0708a3/sqlalchemy-2.0.46-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:56bdd261bfd0895452006d5316cbf35739c53b9bb71a170a331fa0ea560b2ada", size = 2152079, upload-time = "2026-01-21T19:05:58.477Z" },+ { url = "https://files.pythonhosted.org/packages/e5/bf/eba3036be7663ce4d9c050bc3d63794dc29fbe01691f2bf5ccb64e048d20/sqlalchemy-2.0.46-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:33e462154edb9493f6c3ad2125931e273bbd0be8ae53f3ecd1c161ea9a1dd366", size = 3272216, upload-time = "2026-01-21T18:46:52.634Z" },+ { url = "https://files.pythonhosted.org/packages/05/45/1256fb597bb83b58a01ddb600c59fe6fdf0e5afe333f0456ed75c0f8d7bd/sqlalchemy-2.0.46-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9bcdce05f056622a632f1d44bb47dbdb677f58cad393612280406ce37530eb6d", size = 3277208, upload-time = "2026-01-21T18:40:16.38Z" },+ { url = "https://files.pythonhosted.org/packages/d9/a0/2053b39e4e63b5d7ceb3372cface0859a067c1ddbd575ea7e9985716f771/sqlalchemy-2.0.46-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8e84b09a9b0f19accedcbeff5c2caf36e0dd537341a33aad8d680336152dc34e", size = 3221994, upload-time = "2026-01-21T18:46:54.622Z" },+ { url = "https://files.pythonhosted.org/packages/1e/87/97713497d9502553c68f105a1cb62786ba1ee91dea3852ae4067ed956a50/sqlalchemy-2.0.46-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4f52f7291a92381e9b4de9050b0a65ce5d6a763333406861e33906b8aa4906bf", size = 3243990, upload-time = "2026-01-21T18:40:18.253Z" },+ { url = "https://files.pythonhosted.org/packages/a8/87/5d1b23548f420ff823c236f8bea36b1a997250fd2f892e44a3838ca424f4/sqlalchemy-2.0.46-cp314-cp314-win32.whl", hash = "sha256:70ed2830b169a9960193f4d4322d22be5c0925357d82cbf485b3369893350908", size = 2114215, upload-time = "2026-01-21T18:42:55.232Z" },+ { url = "https://files.pythonhosted.org/packages/3a/20/555f39cbcf0c10cf452988b6a93c2a12495035f68b3dbd1a408531049d31/sqlalchemy-2.0.46-cp314-cp314-win_amd64.whl", hash = "sha256:3c32e993bc57be6d177f7d5d31edb93f30726d798ad86ff9066d75d9bf2e0b6b", size = 2139867, upload-time = "2026-01-21T18:42:56.474Z" },+ { url = "https://files.pythonhosted.org/packages/3e/f0/f96c8057c982d9d8a7a68f45d69c674bc6f78cad401099692fe16521640a/sqlalchemy-2.0.46-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4dafb537740eef640c4d6a7c254611dca2df87eaf6d14d6a5fca9d1f4c3fc0fa", size = 3561202, upload-time = "2026-01-21T18:33:10.337Z" },+ { url = "https://files.pythonhosted.org/packages/d7/53/3b37dda0a5b137f21ef608d8dfc77b08477bab0fe2ac9d3e0a66eaeab6fc/sqlalchemy-2.0.46-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:42a1643dc5427b69aca967dae540a90b0fbf57eaf248f13a90ea5930e0966863", size = 3526296, upload-time = "2026-01-21T18:45:12.657Z" },+ { url = "https://files.pythonhosted.org/packages/33/75/f28622ba6dde79cd545055ea7bd4062dc934e0621f7b3be2891f8563f8de/sqlalchemy-2.0.46-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ff33c6e6ad006bbc0f34f5faf941cfc62c45841c64c0a058ac38c799f15b5ede", size = 3470008, upload-time = "2026-01-21T18:33:11.725Z" },+ { url = "https://files.pythonhosted.org/packages/a9/42/4afecbbc38d5e99b18acef446453c76eec6fbd03db0a457a12a056836e22/sqlalchemy-2.0.46-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:82ec52100ec1e6ec671563bbd02d7c7c8d0b9e71a0723c72f22ecf52d1755330", size = 3476137, upload-time = "2026-01-21T18:45:15.001Z" },+ { url = "https://files.pythonhosted.org/packages/fc/a1/9c4efa03300926601c19c18582531b45aededfb961ab3c3585f1e24f120b/sqlalchemy-2.0.46-py3-none-any.whl", hash = "sha256:f9c11766e7e7c0a2767dda5acb006a118640c9fc0a4104214b96269bfb78399e", size = 1937882, upload-time = "2026-01-21T18:22:10.456Z" },+]++[[package]]+name = "sse-starlette"+version = "3.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "starlette" },+]+sdist = { url = "https://files.pythonhosted.org/packages/8b/8d/00d280c03ffd39aaee0e86ec81e2d3b9253036a0f93f51d10503adef0e65/sse_starlette-3.2.0.tar.gz", hash = "sha256:8127594edfb51abe44eac9c49e59b0b01f1039d0c7461c6fd91d4e03b70da422", size = 27253, upload-time = "2026-01-17T13:11:05.62Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/96/7f/832f015020844a8b8f7a9cbc103dd76ba8e3875004c41e08440ea3a2b41a/sse_starlette-3.2.0-py3-none-any.whl", hash = "sha256:5876954bd51920fc2cd51baee47a080eb88a37b5b784e615abb0b283f801cdbf", size = 12763, upload-time = "2026-01-17T13:11:03.775Z" },+]++[[package]]+name = "starlette"+version = "0.52.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c4/68/79977123bb7be889ad680d79a40f339082c1978b5cfcf62c2d8d196873ac/starlette-0.52.1.tar.gz", hash = "sha256:834edd1b0a23167694292e94f597773bc3f89f362be6effee198165a35d62933", size = 2653702, upload-time = "2026-01-18T13:34:11.062Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/81/0d/13d1d239a25cbfb19e740db83143e95c772a1fe10202dda4b76792b114dd/starlette-0.52.1-py3-none-any.whl", hash = "sha256:0029d43eb3d273bc4f83a08720b4912ea4b071087a3b48db01b7c839f7954d74", size = 74272, upload-time = "2026-01-18T13:34:09.188Z" },+]++[[package]]+name = "tenacity"+version = "9.1.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/47/c6/ee486fd809e357697ee8a44d3d69222b344920433d3b6666ccd9b374630c/tenacity-9.1.4.tar.gz", hash = "sha256:adb31d4c263f2bd041081ab33b498309a57c77f9acf2db65aadf0898179cf93a", size = 49413, upload-time = "2026-02-07T10:45:33.841Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d7/c1/eb8f9debc45d3b7918a32ab756658a0904732f75e555402972246b0b8e71/tenacity-9.1.4-py3-none-any.whl", hash = "sha256:6095a360c919085f28c6527de529e76a06ad89b23659fa881ae0649b867a9d55", size = 28926, upload-time = "2026-02-07T10:45:32.24Z" },+]++[[package]]+name = "tiktoken"+version = "0.12.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "regex" },+ { name = "requests" },+]+sdist = { url = "https://files.pythonhosted.org/packages/7d/ab/4d017d0f76ec3171d469d80fc03dfbb4e48a4bcaddaa831b31d526f05edc/tiktoken-0.12.0.tar.gz", hash = "sha256:b18ba7ee2b093863978fcb14f74b3707cdc8d4d4d3836853ce7ec60772139931", size = 37806, upload-time = "2025-10-06T20:22:45.419Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/00/61/441588ee21e6b5cdf59d6870f86beb9789e532ee9718c251b391b70c68d6/tiktoken-0.12.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:775c2c55de2310cc1bc9a3ad8826761cbdc87770e586fd7b6da7d4589e13dab3", size = 1050802, upload-time = "2025-10-06T20:22:00.96Z" },+ { url = "https://files.pythonhosted.org/packages/1f/05/dcf94486d5c5c8d34496abe271ac76c5b785507c8eae71b3708f1ad9b45a/tiktoken-0.12.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a01b12f69052fbe4b080a2cfb867c4de12c704b56178edf1d1d7b273561db160", size = 993995, upload-time = "2025-10-06T20:22:02.788Z" },+ { url = "https://files.pythonhosted.org/packages/a0/70/5163fe5359b943f8db9946b62f19be2305de8c3d78a16f629d4165e2f40e/tiktoken-0.12.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:01d99484dc93b129cd0964f9d34eee953f2737301f18b3c7257bf368d7615baa", size = 1128948, upload-time = "2025-10-06T20:22:03.814Z" },+ { url = "https://files.pythonhosted.org/packages/0c/da/c028aa0babf77315e1cef357d4d768800c5f8a6de04d0eac0f377cb619fa/tiktoken-0.12.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:4a1a4fcd021f022bfc81904a911d3df0f6543b9e7627b51411da75ff2fe7a1be", size = 1151986, upload-time = "2025-10-06T20:22:05.173Z" },+ { url = "https://files.pythonhosted.org/packages/a0/5a/886b108b766aa53e295f7216b509be95eb7d60b166049ce2c58416b25f2a/tiktoken-0.12.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:981a81e39812d57031efdc9ec59fa32b2a5a5524d20d4776574c4b4bd2e9014a", size = 1194222, upload-time = "2025-10-06T20:22:06.265Z" },+ { url = "https://files.pythonhosted.org/packages/f4/f8/4db272048397636ac7a078d22773dd2795b1becee7bc4922fe6207288d57/tiktoken-0.12.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9baf52f84a3f42eef3ff4e754a0db79a13a27921b457ca9832cf944c6be4f8f3", size = 1255097, upload-time = "2025-10-06T20:22:07.403Z" },+ { url = "https://files.pythonhosted.org/packages/8e/32/45d02e2e0ea2be3a9ed22afc47d93741247e75018aac967b713b2941f8ea/tiktoken-0.12.0-cp313-cp313-win_amd64.whl", hash = "sha256:b8a0cd0c789a61f31bf44851defbd609e8dd1e2c8589c614cc1060940ef1f697", size = 879117, upload-time = "2025-10-06T20:22:08.418Z" },+ { url = "https://files.pythonhosted.org/packages/ce/76/994fc868f88e016e6d05b0da5ac24582a14c47893f4474c3e9744283f1d5/tiktoken-0.12.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:d5f89ea5680066b68bcb797ae85219c72916c922ef0fcdd3480c7d2315ffff16", size = 1050309, upload-time = "2025-10-06T20:22:10.939Z" },+ { url = "https://files.pythonhosted.org/packages/f6/b8/57ef1456504c43a849821920d582a738a461b76a047f352f18c0b26c6516/tiktoken-0.12.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:b4e7ed1c6a7a8a60a3230965bdedba8cc58f68926b835e519341413370e0399a", size = 993712, upload-time = "2025-10-06T20:22:12.115Z" },+ { url = "https://files.pythonhosted.org/packages/72/90/13da56f664286ffbae9dbcfadcc625439142675845baa62715e49b87b68b/tiktoken-0.12.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:fc530a28591a2d74bce821d10b418b26a094bf33839e69042a6e86ddb7a7fb27", size = 1128725, upload-time = "2025-10-06T20:22:13.541Z" },+ { url = "https://files.pythonhosted.org/packages/05/df/4f80030d44682235bdaecd7346c90f67ae87ec8f3df4a3442cb53834f7e4/tiktoken-0.12.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:06a9f4f49884139013b138920a4c393aa6556b2f8f536345f11819389c703ebb", size = 1151875, upload-time = "2025-10-06T20:22:14.559Z" },+ { url = "https://files.pythonhosted.org/packages/22/1f/ae535223a8c4ef4c0c1192e3f9b82da660be9eb66b9279e95c99288e9dab/tiktoken-0.12.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:04f0e6a985d95913cabc96a741c5ffec525a2c72e9df086ff17ebe35985c800e", size = 1194451, upload-time = "2025-10-06T20:22:15.545Z" },+ { url = "https://files.pythonhosted.org/packages/78/a7/f8ead382fce0243cb625c4f266e66c27f65ae65ee9e77f59ea1653b6d730/tiktoken-0.12.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:0ee8f9ae00c41770b5f9b0bb1235474768884ae157de3beb5439ca0fd70f3e25", size = 1253794, upload-time = "2025-10-06T20:22:16.624Z" },+ { url = "https://files.pythonhosted.org/packages/93/e0/6cc82a562bc6365785a3ff0af27a2a092d57c47d7a81d9e2295d8c36f011/tiktoken-0.12.0-cp313-cp313t-win_amd64.whl", hash = "sha256:dc2dd125a62cb2b3d858484d6c614d136b5b848976794edfb63688d539b8b93f", size = 878777, upload-time = "2025-10-06T20:22:18.036Z" },+ { url = "https://files.pythonhosted.org/packages/72/05/3abc1db5d2c9aadc4d2c76fa5640134e475e58d9fbb82b5c535dc0de9b01/tiktoken-0.12.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:a90388128df3b3abeb2bfd1895b0681412a8d7dc644142519e6f0a97c2111646", size = 1050188, upload-time = "2025-10-06T20:22:19.563Z" },+ { url = "https://files.pythonhosted.org/packages/e3/7b/50c2f060412202d6c95f32b20755c7a6273543b125c0985d6fa9465105af/tiktoken-0.12.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:da900aa0ad52247d8794e307d6446bd3cdea8e192769b56276695d34d2c9aa88", size = 993978, upload-time = "2025-10-06T20:22:20.702Z" },+ { url = "https://files.pythonhosted.org/packages/14/27/bf795595a2b897e271771cd31cb847d479073497344c637966bdf2853da1/tiktoken-0.12.0-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:285ba9d73ea0d6171e7f9407039a290ca77efcdb026be7769dccc01d2c8d7fff", size = 1129271, upload-time = "2025-10-06T20:22:22.06Z" },+ { url = "https://files.pythonhosted.org/packages/f5/de/9341a6d7a8f1b448573bbf3425fa57669ac58258a667eb48a25dfe916d70/tiktoken-0.12.0-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:d186a5c60c6a0213f04a7a802264083dea1bbde92a2d4c7069e1a56630aef830", size = 1151216, upload-time = "2025-10-06T20:22:23.085Z" },+ { url = "https://files.pythonhosted.org/packages/75/0d/881866647b8d1be4d67cb24e50d0c26f9f807f994aa1510cb9ba2fe5f612/tiktoken-0.12.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:604831189bd05480f2b885ecd2d1986dc7686f609de48208ebbbddeea071fc0b", size = 1194860, upload-time = "2025-10-06T20:22:24.602Z" },+ { url = "https://files.pythonhosted.org/packages/b3/1e/b651ec3059474dab649b8d5b69f5c65cd8fcd8918568c1935bd4136c9392/tiktoken-0.12.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:8f317e8530bb3a222547b85a58583238c8f74fd7a7408305f9f63246d1a0958b", size = 1254567, upload-time = "2025-10-06T20:22:25.671Z" },+ { url = "https://files.pythonhosted.org/packages/80/57/ce64fd16ac390fafde001268c364d559447ba09b509181b2808622420eec/tiktoken-0.12.0-cp314-cp314-win_amd64.whl", hash = "sha256:399c3dd672a6406719d84442299a490420b458c44d3ae65516302a99675888f3", size = 921067, upload-time = "2025-10-06T20:22:26.753Z" },+ { url = "https://files.pythonhosted.org/packages/ac/a4/72eed53e8976a099539cdd5eb36f241987212c29629d0a52c305173e0a68/tiktoken-0.12.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:c2c714c72bc00a38ca969dae79e8266ddec999c7ceccd603cc4f0d04ccd76365", size = 1050473, upload-time = "2025-10-06T20:22:27.775Z" },+ { url = "https://files.pythonhosted.org/packages/e6/d7/0110b8f54c008466b19672c615f2168896b83706a6611ba6e47313dbc6e9/tiktoken-0.12.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:cbb9a3ba275165a2cb0f9a83f5d7025afe6b9d0ab01a22b50f0e74fee2ad253e", size = 993855, upload-time = "2025-10-06T20:22:28.799Z" },+ { url = "https://files.pythonhosted.org/packages/5f/77/4f268c41a3957c418b084dd576ea2fad2e95da0d8e1ab705372892c2ca22/tiktoken-0.12.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:dfdfaa5ffff8993a3af94d1125870b1d27aed7cb97aa7eb8c1cefdbc87dbee63", size = 1129022, upload-time = "2025-10-06T20:22:29.981Z" },+ { url = "https://files.pythonhosted.org/packages/4e/2b/fc46c90fe5028bd094cd6ee25a7db321cb91d45dc87531e2bdbb26b4867a/tiktoken-0.12.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:584c3ad3d0c74f5269906eb8a659c8bfc6144a52895d9261cdaf90a0ae5f4de0", size = 1150736, upload-time = "2025-10-06T20:22:30.996Z" },+ { url = "https://files.pythonhosted.org/packages/28/c0/3c7a39ff68022ddfd7d93f3337ad90389a342f761c4d71de99a3ccc57857/tiktoken-0.12.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:54c891b416a0e36b8e2045b12b33dd66fb34a4fe7965565f1b482da50da3e86a", size = 1194908, upload-time = "2025-10-06T20:22:32.073Z" },+ { url = "https://files.pythonhosted.org/packages/ab/0d/c1ad6f4016a3968c048545f5d9b8ffebf577774b2ede3e2e352553b685fe/tiktoken-0.12.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5edb8743b88d5be814b1a8a8854494719080c28faaa1ccbef02e87354fe71ef0", size = 1253706, upload-time = "2025-10-06T20:22:33.385Z" },+ { url = "https://files.pythonhosted.org/packages/af/df/c7891ef9d2712ad774777271d39fdef63941ffba0a9d59b7ad1fd2765e57/tiktoken-0.12.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f61c0aea5565ac82e2ec50a05e02a6c44734e91b51c10510b084ea1b8e633a71", size = 920667, upload-time = "2025-10-06T20:22:34.444Z" },+]++[[package]]+name = "tokenizers"+version = "0.22.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "huggingface-hub" },+]+sdist = { url = "https://files.pythonhosted.org/packages/73/6f/f80cfef4a312e1fb34baf7d85c72d4411afde10978d4657f8cdd811d3ccc/tokenizers-0.22.2.tar.gz", hash = "sha256:473b83b915e547aa366d1eee11806deaf419e17be16310ac0a14077f1e28f917", size = 372115, upload-time = "2026-01-05T10:45:15.988Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/92/97/5dbfabf04c7e348e655e907ed27913e03db0923abb5dfdd120d7b25630e1/tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:544dd704ae7238755d790de45ba8da072e9af3eea688f698b137915ae959281c", size = 3100275, upload-time = "2026-01-05T10:41:02.158Z" },+ { url = "https://files.pythonhosted.org/packages/2e/47/174dca0502ef88b28f1c9e06b73ce33500eedfac7a7692108aec220464e7/tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:1e418a55456beedca4621dbab65a318981467a2b188e982a23e117f115ce5001", size = 2981472, upload-time = "2026-01-05T10:41:00.276Z" },+ { url = "https://files.pythonhosted.org/packages/d6/84/7990e799f1309a8b87af6b948f31edaa12a3ed22d11b352eaf4f4b2e5753/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7", size = 3290736, upload-time = "2026-01-05T10:40:32.165Z" },+ { url = "https://files.pythonhosted.org/packages/78/59/09d0d9ba94dcd5f4f1368d4858d24546b4bdc0231c2354aa31d6199f0399/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:25b85325d0815e86e0bac263506dd114578953b7b53d7de09a6485e4a160a7dd", size = 3168835, upload-time = "2026-01-05T10:40:38.847Z" },+ { url = "https://files.pythonhosted.org/packages/47/50/b3ebb4243e7160bda8d34b731e54dd8ab8b133e50775872e7a434e524c28/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bfb88f22a209ff7b40a576d5324bf8286b519d7358663db21d6246fb17eea2d5", size = 3521673, upload-time = "2026-01-05T10:40:56.614Z" },+ { url = "https://files.pythonhosted.org/packages/e0/fa/89f4cb9e08df770b57adb96f8cbb7e22695a4cb6c2bd5f0c4f0ebcf33b66/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1c774b1276f71e1ef716e5486f21e76333464f47bece56bbd554485982a9e03e", size = 3724818, upload-time = "2026-01-05T10:40:44.507Z" },+ { url = "https://files.pythonhosted.org/packages/64/04/ca2363f0bfbe3b3d36e95bf67e56a4c88c8e3362b658e616d1ac185d47f2/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:df6c4265b289083bf710dff49bc51ef252f9d5be33a45ee2bed151114a56207b", size = 3379195, upload-time = "2026-01-05T10:40:51.139Z" },+ { url = "https://files.pythonhosted.org/packages/2e/76/932be4b50ef6ccedf9d3c6639b056a967a86258c6d9200643f01269211ca/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67", size = 3274982, upload-time = "2026-01-05T10:40:58.331Z" },+ { url = "https://files.pythonhosted.org/packages/1d/28/5f9f5a4cc211b69e89420980e483831bcc29dade307955cc9dc858a40f01/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:29c30b83d8dcd061078b05ae0cb94d3c710555fbb44861139f9f83dcca3dc3e4", size = 9478245, upload-time = "2026-01-05T10:41:04.053Z" },+ { url = "https://files.pythonhosted.org/packages/6c/fb/66e2da4704d6aadebf8cb39f1d6d1957df667ab24cff2326b77cda0dcb85/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:37ae80a28c1d3265bb1f22464c856bd23c02a05bb211e56d0c5301a435be6c1a", size = 9560069, upload-time = "2026-01-05T10:45:10.673Z" },+ { url = "https://files.pythonhosted.org/packages/16/04/fed398b05caa87ce9b1a1bb5166645e38196081b225059a6edaff6440fac/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:791135ee325f2336f498590eb2f11dc5c295232f288e75c99a36c5dbce63088a", size = 9899263, upload-time = "2026-01-05T10:45:12.559Z" },+ { url = "https://files.pythonhosted.org/packages/05/a1/d62dfe7376beaaf1394917e0f8e93ee5f67fea8fcf4107501db35996586b/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:38337540fbbddff8e999d59970f3c6f35a82de10053206a7562f1ea02d046fa5", size = 10033429, upload-time = "2026-01-05T10:45:14.333Z" },+ { url = "https://files.pythonhosted.org/packages/fd/18/a545c4ea42af3df6effd7d13d250ba77a0a86fb20393143bbb9a92e434d4/tokenizers-0.22.2-cp39-abi3-win32.whl", hash = "sha256:a6bf3f88c554a2b653af81f3204491c818ae2ac6fbc09e76ef4773351292bc92", size = 2502363, upload-time = "2026-01-05T10:45:20.593Z" },+ { url = "https://files.pythonhosted.org/packages/65/71/0670843133a43d43070abeb1949abfdef12a86d490bea9cd9e18e37c5ff7/tokenizers-0.22.2-cp39-abi3-win_amd64.whl", hash = "sha256:c9ea31edff2968b44a88f97d784c2f16dc0729b8b143ed004699ebca91f05c48", size = 2747786, upload-time = "2026-01-05T10:45:18.411Z" },+ { url = "https://files.pythonhosted.org/packages/72/f4/0de46cfa12cdcbcd464cc59fde36912af405696f687e53a091fb432f694c/tokenizers-0.22.2-cp39-abi3-win_arm64.whl", hash = "sha256:9ce725d22864a1e965217204946f830c37876eee3b2ba6fc6255e8e903d5fcbc", size = 2612133, upload-time = "2026-01-05T10:45:17.232Z" },+]++[[package]]+name = "tqdm"+version = "4.67.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/09/a9/6ba95a270c6f1fbcd8dac228323f2777d886cb206987444e4bce66338dd4/tqdm-4.67.3.tar.gz", hash = "sha256:7d825f03f89244ef73f1d4ce193cb1774a8179fd96f31d7e1dcde62092b960bb", size = 169598, upload-time = "2026-02-03T17:35:53.048Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/16/e1/3079a9ff9b8e11b846c6ac5c8b5bfb7ff225eee721825310c91b3b50304f/tqdm-4.67.3-py3-none-any.whl", hash = "sha256:ee1e4c0e59148062281c49d80b25b67771a127c85fc9676d3be5f243206826bf", size = 78374, upload-time = "2026-02-03T17:35:50.982Z" },+]++[[package]]+name = "transformers"+version = "5.1.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "huggingface-hub" },+ { name = "numpy" },+ { name = "packaging" },+ { name = "pyyaml" },+ { name = "regex" },+ { name = "safetensors" },+ { name = "tokenizers" },+ { name = "tqdm" },+ { name = "typer-slim" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c9/1d/a7d91500a6c02ec76058bc9e65fcdec1bdb8882854dec8e4adf12d0aa8b0/transformers-5.1.0.tar.gz", hash = "sha256:c60d6180e5845ea1b4eed38d7d1b06fcc4cc341c6b7fa5c1dc767d7e25fe0139", size = 8531810, upload-time = "2026-02-05T15:41:42.932Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/66/57042d4b0f1ede8046d7ae6409bf3640df996e9cbc3fe20467aa29badc54/transformers-5.1.0-py3-none-any.whl", hash = "sha256:de534b50c9b2ce6217fc56421075a1734241fb40704fdc90f50f6a08fc533d59", size = 10276537, upload-time = "2026-02-05T15:41:40.358Z" },+]++[[package]]+name = "typer"+version = "0.23.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "annotated-doc" },+ { name = "click" },+ { name = "rich" },+ { name = "shellingham" },+]+sdist = { url = "https://files.pythonhosted.org/packages/7e/e6/44e073787aa57cd71c151f44855232feb0f748428fd5242d7366e3c4ae8b/typer-0.23.0.tar.gz", hash = "sha256:d8378833e47ada5d3d093fa20c4c63427cc4e27127f6b349a6c359463087d8cc", size = 120181, upload-time = "2026-02-11T15:22:18.637Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7a/ed/d6fca788b51d0d4640c4bc82d0e85bad4b49809bca36bf4af01b4dcb66a7/typer-0.23.0-py3-none-any.whl", hash = "sha256:79f4bc262b6c37872091072a3cb7cb6d7d79ee98c0c658b4364bdcde3c42c913", size = 56668, upload-time = "2026-02-11T15:22:21.075Z" },+]++[[package]]+name = "typer-slim"+version = "0.23.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typer" },+]+sdist = { url = "https://files.pythonhosted.org/packages/1f/8a/881cfd399a119db89619dc1b93d36e2fb6720ddb112bceff41203f1abd72/typer_slim-0.23.0.tar.gz", hash = "sha256:be8b60243df27cfee444c6db1b10a85f4f3e54d940574f31a996f78aa35a8254", size = 4773, upload-time = "2026-02-11T15:22:19.106Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/07/3e/ba3a222c80ee070d9497ece3e1fe77253c142925dd4c90f04278aac0a9eb/typer_slim-0.23.0-py3-none-any.whl", hash = "sha256:1d693daf22d998a7b1edab8413cdcb8af07254154ce3956c1664dc11b01e2f8b", size = 3399, upload-time = "2026-02-11T15:22:17.792Z" },+]++[[package]]+name = "typing-extensions"+version = "4.15.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" },+]++[[package]]+name = "typing-inspection"+version = "0.4.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" },+]++[[package]]+name = "tzdata"+version = "2025.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/5e/a7/c202b344c5ca7daf398f3b8a477eeb205cf3b6f32e7ec3a6bac0629ca975/tzdata-2025.3.tar.gz", hash = "sha256:de39c2ca5dc7b0344f2eba86f49d614019d29f060fc4ebc8a417896a620b56a7", size = 196772, upload-time = "2025-12-13T17:45:35.667Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c7/b0/003792df09decd6849a5e39c28b513c06e84436a54440380862b5aeff25d/tzdata-2025.3-py2.py3-none-any.whl", hash = "sha256:06a47e5700f3081aab02b2e513160914ff0694bce9947d6b76ebd6bf57cfc5d1", size = 348521, upload-time = "2025-12-13T17:45:33.889Z" },+]++[[package]]+name = "urllib3"+version = "2.6.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556, upload-time = "2026-01-07T16:24:43.925Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584, upload-time = "2026-01-07T16:24:42.685Z" },+]++[[package]]+name = "uvicorn"+version = "0.40.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "click" },+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c3/d1/8f3c683c9561a4e6689dd3b1d345c815f10f86acd044ee1fb9a4dcd0b8c5/uvicorn-0.40.0.tar.gz", hash = "sha256:839676675e87e73694518b5574fd0f24c9d97b46bea16df7b8c05ea1a51071ea", size = 81761, upload-time = "2025-12-21T14:16:22.45Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3d/d8/2083a1daa7439a66f3a48589a57d576aa117726762618f6bb09fe3798796/uvicorn-0.40.0-py3-none-any.whl", hash = "sha256:c6c8f55bc8bf13eb6fa9ff87ad62308bbbc33d0b67f84293151efe87e0d5f2ee", size = 68502, upload-time = "2025-12-21T14:16:21.041Z" },+]++[[package]]+name = "virtualenv"+version = "20.36.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "distlib" },+ { name = "filelock" },+ { name = "platformdirs" },+]+sdist = { url = "https://files.pythonhosted.org/packages/aa/a3/4d310fa5f00863544e1d0f4de93bddec248499ccf97d4791bc3122c9d4f3/virtualenv-20.36.1.tar.gz", hash = "sha256:8befb5c81842c641f8ee658481e42641c68b5eab3521d8e092d18320902466ba", size = 6032239, upload-time = "2026-01-09T18:21:01.296Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6a/2a/dc2228b2888f51192c7dc766106cd475f1b768c10caaf9727659726f7391/virtualenv-20.36.1-py3-none-any.whl", hash = "sha256:575a8d6b124ef88f6f51d56d656132389f961062a9177016a50e4f507bbcc19f", size = 6008258, upload-time = "2026-01-09T18:20:59.425Z" },+]++[[package]]+name = "websocket-client"+version = "1.9.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/2c/41/aa4bf9664e4cda14c3b39865b12251e8e7d239f4cd0e3cc1b6c2ccde25c1/websocket_client-1.9.0.tar.gz", hash = "sha256:9e813624b6eb619999a97dc7958469217c3176312b3a16a4bd1bc7e08a46ec98", size = 70576, upload-time = "2025-10-07T21:16:36.495Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/34/db/b10e48aa8fff7407e67470363eac595018441cf32d5e1001567a7aeba5d2/websocket_client-1.9.0-py3-none-any.whl", hash = "sha256:af248a825037ef591efbf6ed20cc5faa03d3b47b9e5a2230a529eeee1c1fc3ef", size = 82616, upload-time = "2025-10-07T21:16:34.951Z" },+]++[[package]]+name = "websockets"+version = "16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/04/24/4b2031d72e840ce4c1ccb255f693b15c334757fc50023e4db9537080b8c4/websockets-16.0.tar.gz", hash = "sha256:5f6261a5e56e8d5c42a4497b364ea24d94d9563e8fbd44e78ac40879c60179b5", size = 179346, upload-time = "2026-01-10T09:23:47.181Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cc/9c/baa8456050d1c1b08dd0ec7346026668cbc6f145ab4e314d707bb845bf0d/websockets-16.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:878b336ac47938b474c8f982ac2f7266a540adc3fa4ad74ae96fea9823a02cc9", size = 177364, upload-time = "2026-01-10T09:22:59.333Z" },+ { url = "https://files.pythonhosted.org/packages/7e/0c/8811fc53e9bcff68fe7de2bcbe75116a8d959ac699a3200f4847a8925210/websockets-16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:52a0fec0e6c8d9a784c2c78276a48a2bdf099e4ccc2a4cad53b27718dbfd0230", size = 175039, upload-time = "2026-01-10T09:23:01.171Z" },+ { url = "https://files.pythonhosted.org/packages/aa/82/39a5f910cb99ec0b59e482971238c845af9220d3ab9fa76dd9162cda9d62/websockets-16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e6578ed5b6981005df1860a56e3617f14a6c307e6a71b4fff8c48fdc50f3ed2c", size = 175323, upload-time = "2026-01-10T09:23:02.341Z" },+ { url = "https://files.pythonhosted.org/packages/bd/28/0a25ee5342eb5d5f297d992a77e56892ecb65e7854c7898fb7d35e9b33bd/websockets-16.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:95724e638f0f9c350bb1c2b0a7ad0e83d9cc0c9259f3ea94e40d7b02a2179ae5", size = 184975, upload-time = "2026-01-10T09:23:03.756Z" },+ { url = "https://files.pythonhosted.org/packages/f9/66/27ea52741752f5107c2e41fda05e8395a682a1e11c4e592a809a90c6a506/websockets-16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c0204dc62a89dc9d50d682412c10b3542d748260d743500a85c13cd1ee4bde82", size = 186203, upload-time = "2026-01-10T09:23:05.01Z" },+ { url = "https://files.pythonhosted.org/packages/37/e5/8e32857371406a757816a2b471939d51c463509be73fa538216ea52b792a/websockets-16.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:52ac480f44d32970d66763115edea932f1c5b1312de36df06d6b219f6741eed8", size = 185653, upload-time = "2026-01-10T09:23:06.301Z" },+ { url = "https://files.pythonhosted.org/packages/9b/67/f926bac29882894669368dc73f4da900fcdf47955d0a0185d60103df5737/websockets-16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6e5a82b677f8f6f59e8dfc34ec06ca6b5b48bc4fcda346acd093694cc2c24d8f", size = 184920, upload-time = "2026-01-10T09:23:07.492Z" },+ { url = "https://files.pythonhosted.org/packages/3c/a1/3d6ccdcd125b0a42a311bcd15a7f705d688f73b2a22d8cf1c0875d35d34a/websockets-16.0-cp313-cp313-win32.whl", hash = "sha256:abf050a199613f64c886ea10f38b47770a65154dc37181bfaff70c160f45315a", size = 178255, upload-time = "2026-01-10T09:23:09.245Z" },+ { url = "https://files.pythonhosted.org/packages/6b/ae/90366304d7c2ce80f9b826096a9e9048b4bb760e44d3b873bb272cba696b/websockets-16.0-cp313-cp313-win_amd64.whl", hash = "sha256:3425ac5cf448801335d6fdc7ae1eb22072055417a96cc6b31b3861f455fbc156", size = 178689, upload-time = "2026-01-10T09:23:10.483Z" },+ { url = "https://files.pythonhosted.org/packages/f3/1d/e88022630271f5bd349ed82417136281931e558d628dd52c4d8621b4a0b2/websockets-16.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:8cc451a50f2aee53042ac52d2d053d08bf89bcb31ae799cb4487587661c038a0", size = 177406, upload-time = "2026-01-10T09:23:12.178Z" },+ { url = "https://files.pythonhosted.org/packages/f2/78/e63be1bf0724eeb4616efb1ae1c9044f7c3953b7957799abb5915bffd38e/websockets-16.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:daa3b6ff70a9241cf6c7fc9e949d41232d9d7d26fd3522b1ad2b4d62487e9904", size = 175085, upload-time = "2026-01-10T09:23:13.511Z" },+ { url = "https://files.pythonhosted.org/packages/bb/f4/d3c9220d818ee955ae390cf319a7c7a467beceb24f05ee7aaaa2414345ba/websockets-16.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:fd3cb4adb94a2a6e2b7c0d8d05cb94e6f1c81a0cf9dc2694fb65c7e8d94c42e4", size = 175328, upload-time = "2026-01-10T09:23:14.727Z" },+ { url = "https://files.pythonhosted.org/packages/63/bc/d3e208028de777087e6fb2b122051a6ff7bbcca0d6df9d9c2bf1dd869ae9/websockets-16.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:781caf5e8eee67f663126490c2f96f40906594cb86b408a703630f95550a8c3e", size = 185044, upload-time = "2026-01-10T09:23:15.939Z" },+ { url = "https://files.pythonhosted.org/packages/ad/6e/9a0927ac24bd33a0a9af834d89e0abc7cfd8e13bed17a86407a66773cc0e/websockets-16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:caab51a72c51973ca21fa8a18bd8165e1a0183f1ac7066a182ff27107b71e1a4", size = 186279, upload-time = "2026-01-10T09:23:17.148Z" },+ { url = "https://files.pythonhosted.org/packages/b9/ca/bf1c68440d7a868180e11be653c85959502efd3a709323230314fda6e0b3/websockets-16.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:19c4dc84098e523fd63711e563077d39e90ec6702aff4b5d9e344a60cb3c0cb1", size = 185711, upload-time = "2026-01-10T09:23:18.372Z" },+ { url = "https://files.pythonhosted.org/packages/c4/f8/fdc34643a989561f217bb477cbc47a3a07212cbda91c0e4389c43c296ebf/websockets-16.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a5e18a238a2b2249c9a9235466b90e96ae4795672598a58772dd806edc7ac6d3", size = 184982, upload-time = "2026-01-10T09:23:19.652Z" },+ { url = "https://files.pythonhosted.org/packages/dd/d1/574fa27e233764dbac9c52730d63fcf2823b16f0856b3329fc6268d6ae4f/websockets-16.0-cp314-cp314-win32.whl", hash = "sha256:a069d734c4a043182729edd3e9f247c3b2a4035415a9172fd0f1b71658a320a8", size = 177915, upload-time = "2026-01-10T09:23:21.458Z" },+ { url = "https://files.pythonhosted.org/packages/8a/f1/ae6b937bf3126b5134ce1f482365fde31a357c784ac51852978768b5eff4/websockets-16.0-cp314-cp314-win_amd64.whl", hash = "sha256:c0ee0e63f23914732c6d7e0cce24915c48f3f1512ec1d079ed01fc629dab269d", size = 178381, upload-time = "2026-01-10T09:23:22.715Z" },+ { url = "https://files.pythonhosted.org/packages/06/9b/f791d1db48403e1f0a27577a6beb37afae94254a8c6f08be4a23e4930bc0/websockets-16.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:a35539cacc3febb22b8f4d4a99cc79b104226a756aa7400adc722e83b0d03244", size = 177737, upload-time = "2026-01-10T09:23:24.523Z" },+ { url = "https://files.pythonhosted.org/packages/bd/40/53ad02341fa33b3ce489023f635367a4ac98b73570102ad2cdd770dacc9a/websockets-16.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:b784ca5de850f4ce93ec85d3269d24d4c82f22b7212023c974c401d4980ebc5e", size = 175268, upload-time = "2026-01-10T09:23:25.781Z" },+ { url = "https://files.pythonhosted.org/packages/74/9b/6158d4e459b984f949dcbbb0c5d270154c7618e11c01029b9bbd1bb4c4f9/websockets-16.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:569d01a4e7fba956c5ae4fc988f0d4e187900f5497ce46339c996dbf24f17641", size = 175486, upload-time = "2026-01-10T09:23:27.033Z" },+ { url = "https://files.pythonhosted.org/packages/e5/2d/7583b30208b639c8090206f95073646c2c9ffd66f44df967981a64f849ad/websockets-16.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:50f23cdd8343b984957e4077839841146f67a3d31ab0d00e6b824e74c5b2f6e8", size = 185331, upload-time = "2026-01-10T09:23:28.259Z" },+ { url = "https://files.pythonhosted.org/packages/45/b0/cce3784eb519b7b5ad680d14b9673a31ab8dcb7aad8b64d81709d2430aa8/websockets-16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:152284a83a00c59b759697b7f9e9cddf4e3c7861dd0d964b472b70f78f89e80e", size = 186501, upload-time = "2026-01-10T09:23:29.449Z" },+ { url = "https://files.pythonhosted.org/packages/19/60/b8ebe4c7e89fb5f6cdf080623c9d92789a53636950f7abacfc33fe2b3135/websockets-16.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:bc59589ab64b0022385f429b94697348a6a234e8ce22544e3681b2e9331b5944", size = 186062, upload-time = "2026-01-10T09:23:31.368Z" },+ { url = "https://files.pythonhosted.org/packages/88/a8/a080593f89b0138b6cba1b28f8df5673b5506f72879322288b031337c0b8/websockets-16.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:32da954ffa2814258030e5a57bc73a3635463238e797c7375dc8091327434206", size = 185356, upload-time = "2026-01-10T09:23:32.627Z" },+ { url = "https://files.pythonhosted.org/packages/c2/b6/b9afed2afadddaf5ebb2afa801abf4b0868f42f8539bfe4b071b5266c9fe/websockets-16.0-cp314-cp314t-win32.whl", hash = "sha256:5a4b4cc550cb665dd8a47f868c8d04c8230f857363ad3c9caf7a0c3bf8c61ca6", size = 178085, upload-time = "2026-01-10T09:23:33.816Z" },+ { url = "https://files.pythonhosted.org/packages/9f/3e/28135a24e384493fa804216b79a6a6759a38cc4ff59118787b9fb693df93/websockets-16.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b14dc141ed6d2dde437cddb216004bcac6a1df0935d79656387bd41632ba0bbd", size = 178531, upload-time = "2026-01-10T09:23:35.016Z" },+ { url = "https://files.pythonhosted.org/packages/6f/28/258ebab549c2bf3e64d2b0217b973467394a9cea8c42f70418ca2c5d0d2e/websockets-16.0-py3-none-any.whl", hash = "sha256:1637db62fad1dc833276dded54215f2c7fa46912301a24bd94d45d46a011ceec", size = 171598, upload-time = "2026-01-10T09:23:45.395Z" },+]++[[package]]+name = "yarl"+version = "1.22.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "idna" },+ { name = "multidict" },+ { name = "propcache" },+]+sdist = { url = "https://files.pythonhosted.org/packages/57/63/0c6ebca57330cd313f6102b16dd57ffaf3ec4c83403dcb45dbd15c6f3ea1/yarl-1.22.0.tar.gz", hash = "sha256:bebf8557577d4401ba8bd9ff33906f1376c877aa78d1fe216ad01b4d6745af71", size = 187169, upload-time = "2025-10-06T14:12:55.963Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ea/f3/d67de7260456ee105dc1d162d43a019ecad6b91e2f51809d6cddaa56690e/yarl-1.22.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8dee9c25c74997f6a750cd317b8ca63545169c098faee42c84aa5e506c819b53", size = 139980, upload-time = "2025-10-06T14:10:14.601Z" },+ { url = "https://files.pythonhosted.org/packages/01/88/04d98af0b47e0ef42597b9b28863b9060bb515524da0a65d5f4db160b2d5/yarl-1.22.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:01e73b85a5434f89fc4fe27dcda2aff08ddf35e4d47bbbea3bdcd25321af538a", size = 93424, upload-time = "2025-10-06T14:10:16.115Z" },+ { url = "https://files.pythonhosted.org/packages/18/91/3274b215fd8442a03975ce6bee5fe6aa57a8326b29b9d3d56234a1dca244/yarl-1.22.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:22965c2af250d20c873cdbee8ff958fb809940aeb2e74ba5f20aaf6b7ac8c70c", size = 93821, upload-time = "2025-10-06T14:10:17.993Z" },+ { url = "https://files.pythonhosted.org/packages/61/3a/caf4e25036db0f2da4ca22a353dfeb3c9d3c95d2761ebe9b14df8fc16eb0/yarl-1.22.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b4f15793aa49793ec8d1c708ab7f9eded1aa72edc5174cae703651555ed1b601", size = 373243, upload-time = "2025-10-06T14:10:19.44Z" },+ { url = "https://files.pythonhosted.org/packages/6e/9e/51a77ac7516e8e7803b06e01f74e78649c24ee1021eca3d6a739cb6ea49c/yarl-1.22.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e5542339dcf2747135c5c85f68680353d5cb9ffd741c0f2e8d832d054d41f35a", size = 342361, upload-time = "2025-10-06T14:10:21.124Z" },+ { url = "https://files.pythonhosted.org/packages/d4/f8/33b92454789dde8407f156c00303e9a891f1f51a0330b0fad7c909f87692/yarl-1.22.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5c401e05ad47a75869c3ab3e35137f8468b846770587e70d71e11de797d113df", size = 387036, upload-time = "2025-10-06T14:10:22.902Z" },+ { url = "https://files.pythonhosted.org/packages/d9/9a/c5db84ea024f76838220280f732970aa4ee154015d7f5c1bfb60a267af6f/yarl-1.22.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:243dda95d901c733f5b59214d28b0120893d91777cb8aa043e6ef059d3cddfe2", size = 397671, upload-time = "2025-10-06T14:10:24.523Z" },+ { url = "https://files.pythonhosted.org/packages/11/c9/cd8538dc2e7727095e0c1d867bad1e40c98f37763e6d995c1939f5fdc7b1/yarl-1.22.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bec03d0d388060058f5d291a813f21c011041938a441c593374da6077fe21b1b", size = 377059, upload-time = "2025-10-06T14:10:26.406Z" },+ { url = "https://files.pythonhosted.org/packages/a1/b9/ab437b261702ced75122ed78a876a6dec0a1b0f5e17a4ac7a9a2482d8abe/yarl-1.22.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b0748275abb8c1e1e09301ee3cf90c8a99678a4e92e4373705f2a2570d581273", size = 365356, upload-time = "2025-10-06T14:10:28.461Z" },+ { url = "https://files.pythonhosted.org/packages/b2/9d/8e1ae6d1d008a9567877b08f0ce4077a29974c04c062dabdb923ed98e6fe/yarl-1.22.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:47fdb18187e2a4e18fda2c25c05d8251a9e4a521edaed757fef033e7d8498d9a", size = 361331, upload-time = "2025-10-06T14:10:30.541Z" },+ { url = "https://files.pythonhosted.org/packages/ca/5a/09b7be3905962f145b73beb468cdd53db8aa171cf18c80400a54c5b82846/yarl-1.22.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c7044802eec4524fde550afc28edda0dd5784c4c45f0be151a2d3ba017daca7d", size = 382590, upload-time = "2025-10-06T14:10:33.352Z" },+ { url = "https://files.pythonhosted.org/packages/aa/7f/59ec509abf90eda5048b0bc3e2d7b5099dffdb3e6b127019895ab9d5ef44/yarl-1.22.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:139718f35149ff544caba20fce6e8a2f71f1e39b92c700d8438a0b1d2a631a02", size = 385316, upload-time = "2025-10-06T14:10:35.034Z" },+ { url = "https://files.pythonhosted.org/packages/e5/84/891158426bc8036bfdfd862fabd0e0fa25df4176ec793e447f4b85cf1be4/yarl-1.22.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e1b51bebd221006d3d2f95fbe124b22b247136647ae5dcc8c7acafba66e5ee67", size = 374431, upload-time = "2025-10-06T14:10:37.76Z" },+ { url = "https://files.pythonhosted.org/packages/bb/49/03da1580665baa8bef5e8ed34c6df2c2aca0a2f28bf397ed238cc1bbc6f2/yarl-1.22.0-cp313-cp313-win32.whl", hash = "sha256:d3e32536234a95f513bd374e93d717cf6b2231a791758de6c509e3653f234c95", size = 81555, upload-time = "2025-10-06T14:10:39.649Z" },+ { url = "https://files.pythonhosted.org/packages/9a/ee/450914ae11b419eadd067c6183ae08381cfdfcb9798b90b2b713bbebddda/yarl-1.22.0-cp313-cp313-win_amd64.whl", hash = "sha256:47743b82b76d89a1d20b83e60d5c20314cbd5ba2befc9cda8f28300c4a08ed4d", size = 86965, upload-time = "2025-10-06T14:10:41.313Z" },+ { url = "https://files.pythonhosted.org/packages/98/4d/264a01eae03b6cf629ad69bae94e3b0e5344741e929073678e84bf7a3e3b/yarl-1.22.0-cp313-cp313-win_arm64.whl", hash = "sha256:5d0fcda9608875f7d052eff120c7a5da474a6796fe4d83e152e0e4d42f6d1a9b", size = 81205, upload-time = "2025-10-06T14:10:43.167Z" },+ { url = "https://files.pythonhosted.org/packages/88/fc/6908f062a2f77b5f9f6d69cecb1747260831ff206adcbc5b510aff88df91/yarl-1.22.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:719ae08b6972befcba4310e49edb1161a88cdd331e3a694b84466bd938a6ab10", size = 146209, upload-time = "2025-10-06T14:10:44.643Z" },+ { url = "https://files.pythonhosted.org/packages/65/47/76594ae8eab26210b4867be6f49129861ad33da1f1ebdf7051e98492bf62/yarl-1.22.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:47d8a5c446df1c4db9d21b49619ffdba90e77c89ec6e283f453856c74b50b9e3", size = 95966, upload-time = "2025-10-06T14:10:46.554Z" },+ { url = "https://files.pythonhosted.org/packages/ab/ce/05e9828a49271ba6b5b038b15b3934e996980dd78abdfeb52a04cfb9467e/yarl-1.22.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:cfebc0ac8333520d2d0423cbbe43ae43c8838862ddb898f5ca68565e395516e9", size = 97312, upload-time = "2025-10-06T14:10:48.007Z" },+ { url = "https://files.pythonhosted.org/packages/d1/c5/7dffad5e4f2265b29c9d7ec869c369e4223166e4f9206fc2243ee9eea727/yarl-1.22.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4398557cbf484207df000309235979c79c4356518fd5c99158c7d38203c4da4f", size = 361967, upload-time = "2025-10-06T14:10:49.997Z" },+ { url = "https://files.pythonhosted.org/packages/50/b2/375b933c93a54bff7fc041e1a6ad2c0f6f733ffb0c6e642ce56ee3b39970/yarl-1.22.0-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2ca6fd72a8cd803be290d42f2dec5cdcd5299eeb93c2d929bf060ad9efaf5de0", size = 323949, upload-time = "2025-10-06T14:10:52.004Z" },+ { url = "https://files.pythonhosted.org/packages/66/50/bfc2a29a1d78644c5a7220ce2f304f38248dc94124a326794e677634b6cf/yarl-1.22.0-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ca1f59c4e1ab6e72f0a23c13fca5430f889634166be85dbf1013683e49e3278e", size = 361818, upload-time = "2025-10-06T14:10:54.078Z" },+ { url = "https://files.pythonhosted.org/packages/46/96/f3941a46af7d5d0f0498f86d71275696800ddcdd20426298e572b19b91ff/yarl-1.22.0-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6c5010a52015e7c70f86eb967db0f37f3c8bd503a695a49f8d45700144667708", size = 372626, upload-time = "2025-10-06T14:10:55.767Z" },+ { url = "https://files.pythonhosted.org/packages/c1/42/8b27c83bb875cd89448e42cd627e0fb971fa1675c9ec546393d18826cb50/yarl-1.22.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d7672ecf7557476642c88497c2f8d8542f8e36596e928e9bcba0e42e1e7d71f", size = 341129, upload-time = "2025-10-06T14:10:57.985Z" },+ { url = "https://files.pythonhosted.org/packages/49/36/99ca3122201b382a3cf7cc937b95235b0ac944f7e9f2d5331d50821ed352/yarl-1.22.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:3b7c88eeef021579d600e50363e0b6ee4f7f6f728cd3486b9d0f3ee7b946398d", size = 346776, upload-time = "2025-10-06T14:10:59.633Z" },+ { url = "https://files.pythonhosted.org/packages/85/b4/47328bf996acd01a4c16ef9dcd2f59c969f495073616586f78cd5f2efb99/yarl-1.22.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:f4afb5c34f2c6fecdcc182dfcfc6af6cccf1aa923eed4d6a12e9d96904e1a0d8", size = 334879, upload-time = "2025-10-06T14:11:01.454Z" },+ { url = "https://files.pythonhosted.org/packages/c2/ad/b77d7b3f14a4283bffb8e92c6026496f6de49751c2f97d4352242bba3990/yarl-1.22.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:59c189e3e99a59cf8d83cbb31d4db02d66cda5a1a4374e8a012b51255341abf5", size = 350996, upload-time = "2025-10-06T14:11:03.452Z" },+ { url = "https://files.pythonhosted.org/packages/81/c8/06e1d69295792ba54d556f06686cbd6a7ce39c22307100e3fb4a2c0b0a1d/yarl-1.22.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:5a3bf7f62a289fa90f1990422dc8dff5a458469ea71d1624585ec3a4c8d6960f", size = 356047, upload-time = "2025-10-06T14:11:05.115Z" },+ { url = "https://files.pythonhosted.org/packages/4b/b8/4c0e9e9f597074b208d18cef227d83aac36184bfbc6eab204ea55783dbc5/yarl-1.22.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:de6b9a04c606978fdfe72666fa216ffcf2d1a9f6a381058d4378f8d7b1e5de62", size = 342947, upload-time = "2025-10-06T14:11:08.137Z" },+ { url = "https://files.pythonhosted.org/packages/e0/e5/11f140a58bf4c6ad7aca69a892bff0ee638c31bea4206748fc0df4ebcb3a/yarl-1.22.0-cp313-cp313t-win32.whl", hash = "sha256:1834bb90991cc2999f10f97f5f01317f99b143284766d197e43cd5b45eb18d03", size = 86943, upload-time = "2025-10-06T14:11:10.284Z" },+ { url = "https://files.pythonhosted.org/packages/31/74/8b74bae38ed7fe6793d0c15a0c8207bbb819cf287788459e5ed230996cdd/yarl-1.22.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ff86011bd159a9d2dfc89c34cfd8aff12875980e3bd6a39ff097887520e60249", size = 93715, upload-time = "2025-10-06T14:11:11.739Z" },+ { url = "https://files.pythonhosted.org/packages/69/66/991858aa4b5892d57aef7ee1ba6b4d01ec3b7eb3060795d34090a3ca3278/yarl-1.22.0-cp313-cp313t-win_arm64.whl", hash = "sha256:7861058d0582b847bc4e3a4a4c46828a410bca738673f35a29ba3ca5db0b473b", size = 83857, upload-time = "2025-10-06T14:11:13.586Z" },+ { url = "https://files.pythonhosted.org/packages/46/b3/e20ef504049f1a1c54a814b4b9bed96d1ac0e0610c3b4da178f87209db05/yarl-1.22.0-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:34b36c2c57124530884d89d50ed2c1478697ad7473efd59cfd479945c95650e4", size = 140520, upload-time = "2025-10-06T14:11:15.465Z" },+ { url = "https://files.pythonhosted.org/packages/e4/04/3532d990fdbab02e5ede063676b5c4260e7f3abea2151099c2aa745acc4c/yarl-1.22.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:0dd9a702591ca2e543631c2a017e4a547e38a5c0f29eece37d9097e04a7ac683", size = 93504, upload-time = "2025-10-06T14:11:17.106Z" },+ { url = "https://files.pythonhosted.org/packages/11/63/ff458113c5c2dac9a9719ac68ee7c947cb621432bcf28c9972b1c0e83938/yarl-1.22.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:594fcab1032e2d2cc3321bb2e51271e7cd2b516c7d9aee780ece81b07ff8244b", size = 94282, upload-time = "2025-10-06T14:11:19.064Z" },+ { url = "https://files.pythonhosted.org/packages/a7/bc/315a56aca762d44a6aaaf7ad253f04d996cb6b27bad34410f82d76ea8038/yarl-1.22.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f3d7a87a78d46a2e3d5b72587ac14b4c16952dd0887dbb051451eceac774411e", size = 372080, upload-time = "2025-10-06T14:11:20.996Z" },+ { url = "https://files.pythonhosted.org/packages/3f/3f/08e9b826ec2e099ea6e7c69a61272f4f6da62cb5b1b63590bb80ca2e4a40/yarl-1.22.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:852863707010316c973162e703bddabec35e8757e67fcb8ad58829de1ebc8590", size = 338696, upload-time = "2025-10-06T14:11:22.847Z" },+ { url = "https://files.pythonhosted.org/packages/e3/9f/90360108e3b32bd76789088e99538febfea24a102380ae73827f62073543/yarl-1.22.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:131a085a53bfe839a477c0845acf21efc77457ba2bcf5899618136d64f3303a2", size = 387121, upload-time = "2025-10-06T14:11:24.889Z" },+ { url = "https://files.pythonhosted.org/packages/98/92/ab8d4657bd5b46a38094cfaea498f18bb70ce6b63508fd7e909bd1f93066/yarl-1.22.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:078a8aefd263f4d4f923a9677b942b445a2be970ca24548a8102689a3a8ab8da", size = 394080, upload-time = "2025-10-06T14:11:27.307Z" },+ { url = "https://files.pythonhosted.org/packages/f5/e7/d8c5a7752fef68205296201f8ec2bf718f5c805a7a7e9880576c67600658/yarl-1.22.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bca03b91c323036913993ff5c738d0842fc9c60c4648e5c8d98331526df89784", size = 372661, upload-time = "2025-10-06T14:11:29.387Z" },+ { url = "https://files.pythonhosted.org/packages/b6/2e/f4d26183c8db0bb82d491b072f3127fb8c381a6206a3a56332714b79b751/yarl-1.22.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:68986a61557d37bb90d3051a45b91fa3d5c516d177dfc6dd6f2f436a07ff2b6b", size = 364645, upload-time = "2025-10-06T14:11:31.423Z" },+ { url = "https://files.pythonhosted.org/packages/80/7c/428e5812e6b87cd00ee8e898328a62c95825bf37c7fa87f0b6bb2ad31304/yarl-1.22.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:4792b262d585ff0dff6bcb787f8492e40698443ec982a3568c2096433660c694", size = 355361, upload-time = "2025-10-06T14:11:33.055Z" },+ { url = "https://files.pythonhosted.org/packages/ec/2a/249405fd26776f8b13c067378ef4d7dd49c9098d1b6457cdd152a99e96a9/yarl-1.22.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:ebd4549b108d732dba1d4ace67614b9545b21ece30937a63a65dd34efa19732d", size = 381451, upload-time = "2025-10-06T14:11:35.136Z" },+ { url = "https://files.pythonhosted.org/packages/67/a8/fb6b1adbe98cf1e2dd9fad71003d3a63a1bc22459c6e15f5714eb9323b93/yarl-1.22.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:f87ac53513d22240c7d59203f25cc3beac1e574c6cd681bbfd321987b69f95fd", size = 383814, upload-time = "2025-10-06T14:11:37.094Z" },+ { url = "https://files.pythonhosted.org/packages/d9/f9/3aa2c0e480fb73e872ae2814c43bc1e734740bb0d54e8cb2a95925f98131/yarl-1.22.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:22b029f2881599e2f1b06f8f1db2ee63bd309e2293ba2d566e008ba12778b8da", size = 370799, upload-time = "2025-10-06T14:11:38.83Z" },+ { url = "https://files.pythonhosted.org/packages/50/3c/af9dba3b8b5eeb302f36f16f92791f3ea62e3f47763406abf6d5a4a3333b/yarl-1.22.0-cp314-cp314-win32.whl", hash = "sha256:6a635ea45ba4ea8238463b4f7d0e721bad669f80878b7bfd1f89266e2ae63da2", size = 82990, upload-time = "2025-10-06T14:11:40.624Z" },+ { url = "https://files.pythonhosted.org/packages/ac/30/ac3a0c5bdc1d6efd1b41fa24d4897a4329b3b1e98de9449679dd327af4f0/yarl-1.22.0-cp314-cp314-win_amd64.whl", hash = "sha256:0d6e6885777af0f110b0e5d7e5dda8b704efed3894da26220b7f3d887b839a79", size = 88292, upload-time = "2025-10-06T14:11:42.578Z" },+ { url = "https://files.pythonhosted.org/packages/df/0a/227ab4ff5b998a1b7410abc7b46c9b7a26b0ca9e86c34ba4b8d8bc7c63d5/yarl-1.22.0-cp314-cp314-win_arm64.whl", hash = "sha256:8218f4e98d3c10d683584cb40f0424f4b9fd6e95610232dd75e13743b070ee33", size = 82888, upload-time = "2025-10-06T14:11:44.863Z" },+ { url = "https://files.pythonhosted.org/packages/06/5e/a15eb13db90abd87dfbefb9760c0f3f257ac42a5cac7e75dbc23bed97a9f/yarl-1.22.0-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:45c2842ff0e0d1b35a6bf1cd6c690939dacb617a70827f715232b2e0494d55d1", size = 146223, upload-time = "2025-10-06T14:11:46.796Z" },+ { url = "https://files.pythonhosted.org/packages/18/82/9665c61910d4d84f41a5bf6837597c89e665fa88aa4941080704645932a9/yarl-1.22.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:d947071e6ebcf2e2bee8fce76e10faca8f7a14808ca36a910263acaacef08eca", size = 95981, upload-time = "2025-10-06T14:11:48.845Z" },+ { url = "https://files.pythonhosted.org/packages/5d/9a/2f65743589809af4d0a6d3aa749343c4b5f4c380cc24a8e94a3c6625a808/yarl-1.22.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:334b8721303e61b00019474cc103bdac3d7b1f65e91f0bfedeec2d56dfe74b53", size = 97303, upload-time = "2025-10-06T14:11:50.897Z" },+ { url = "https://files.pythonhosted.org/packages/b0/ab/5b13d3e157505c43c3b43b5a776cbf7b24a02bc4cccc40314771197e3508/yarl-1.22.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1e7ce67c34138a058fd092f67d07a72b8e31ff0c9236e751957465a24b28910c", size = 361820, upload-time = "2025-10-06T14:11:52.549Z" },+ { url = "https://files.pythonhosted.org/packages/fb/76/242a5ef4677615cf95330cfc1b4610e78184400699bdda0acb897ef5e49a/yarl-1.22.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d77e1b2c6d04711478cb1c4ab90db07f1609ccf06a287d5607fcd90dc9863acf", size = 323203, upload-time = "2025-10-06T14:11:54.225Z" },+ { url = "https://files.pythonhosted.org/packages/8c/96/475509110d3f0153b43d06164cf4195c64d16999e0c7e2d8a099adcd6907/yarl-1.22.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c4647674b6150d2cae088fc07de2738a84b8bcedebef29802cf0b0a82ab6face", size = 363173, upload-time = "2025-10-06T14:11:56.069Z" },+ { url = "https://files.pythonhosted.org/packages/c9/66/59db471aecfbd559a1fd48aedd954435558cd98c7d0da8b03cc6c140a32c/yarl-1.22.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:efb07073be061c8f79d03d04139a80ba33cbd390ca8f0297aae9cce6411e4c6b", size = 373562, upload-time = "2025-10-06T14:11:58.783Z" },+ { url = "https://files.pythonhosted.org/packages/03/1f/c5d94abc91557384719da10ff166b916107c1b45e4d0423a88457071dd88/yarl-1.22.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e51ac5435758ba97ad69617e13233da53908beccc6cfcd6c34bbed8dcbede486", size = 339828, upload-time = "2025-10-06T14:12:00.686Z" },+ { url = "https://files.pythonhosted.org/packages/5f/97/aa6a143d3afba17b6465733681c70cf175af89f76ec8d9286e08437a7454/yarl-1.22.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:33e32a0dd0c8205efa8e83d04fc9f19313772b78522d1bdc7d9aed706bfd6138", size = 347551, upload-time = "2025-10-06T14:12:02.628Z" },+ { url = "https://files.pythonhosted.org/packages/43/3c/45a2b6d80195959239a7b2a8810506d4eea5487dce61c2a3393e7fc3c52e/yarl-1.22.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:bf4a21e58b9cde0e401e683ebd00f6ed30a06d14e93f7c8fd059f8b6e8f87b6a", size = 334512, upload-time = "2025-10-06T14:12:04.871Z" },+ { url = "https://files.pythonhosted.org/packages/86/a0/c2ab48d74599c7c84cb104ebd799c5813de252bea0f360ffc29d270c2caa/yarl-1.22.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:e4b582bab49ac33c8deb97e058cd67c2c50dac0dd134874106d9c774fd272529", size = 352400, upload-time = "2025-10-06T14:12:06.624Z" },+ { url = "https://files.pythonhosted.org/packages/32/75/f8919b2eafc929567d3d8411f72bdb1a2109c01caaab4ebfa5f8ffadc15b/yarl-1.22.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:0b5bcc1a9c4839e7e30b7b30dd47fe5e7e44fb7054ec29b5bb8d526aa1041093", size = 357140, upload-time = "2025-10-06T14:12:08.362Z" },+ { url = "https://files.pythonhosted.org/packages/cf/72/6a85bba382f22cf78add705d8c3731748397d986e197e53ecc7835e76de7/yarl-1.22.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:c0232bce2170103ec23c454e54a57008a9a72b5d1c3105dc2496750da8cfa47c", size = 341473, upload-time = "2025-10-06T14:12:10.994Z" },+ { url = "https://files.pythonhosted.org/packages/35/18/55e6011f7c044dc80b98893060773cefcfdbf60dfefb8cb2f58b9bacbd83/yarl-1.22.0-cp314-cp314t-win32.whl", hash = "sha256:8009b3173bcd637be650922ac455946197d858b3630b6d8787aa9e5c4564533e", size = 89056, upload-time = "2025-10-06T14:12:13.317Z" },+ { url = "https://files.pythonhosted.org/packages/f9/86/0f0dccb6e59a9e7f122c5afd43568b1d31b8ab7dda5f1b01fb5c7025c9a9/yarl-1.22.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9fb17ea16e972c63d25d4a97f016d235c78dd2344820eb35bc034bc32012ee27", size = 96292, upload-time = "2025-10-06T14:12:15.398Z" },+ { url = "https://files.pythonhosted.org/packages/48/b7/503c98092fb3b344a179579f55814b613c1fbb1c23b3ec14a7b008a66a6e/yarl-1.22.0-cp314-cp314t-win_arm64.whl", hash = "sha256:9f6d73c1436b934e3f01df1e1b21ff765cd1d28c77dfb9ace207f746d4610ee1", size = 85171, upload-time = "2025-10-06T14:12:16.935Z" },+ { url = "https://files.pythonhosted.org/packages/73/ae/b48f95715333080afb75a4504487cbe142cae1268afc482d06692d605ae6/yarl-1.22.0-py3-none-any.whl", hash = "sha256:1380560bdba02b6b6c90de54133c81c9f2a453dee9912fe58c1dcced1edb7cff", size = 46814, upload-time = "2025-10-06T14:12:53.872Z" },+]++[[package]]+name = "zipp"+version = "3.23.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e3/02/0f2892c661036d50ede074e376733dca2ae7c6eb617489437771209d4180/zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166", size = 25547, upload-time = "2025-06-08T17:06:39.4Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2e/54/647ade08bf0db230bfea292f893923872fd20be6ac6f53b2b936ba839d75/zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e", size = 10276, upload-time = "2025-06-08T17:06:38.034Z" },+]diff --git a/jiuwenclaw/agentserver/tools/browser_start_client.py b/jiuwenclaw/agentserver/tools/browser_start_client.pynew file mode 100644index 0000000000..614790a465--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser_start_client.py@@ -0,0 +1,240 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Start Chrome/Chromium with remote debugging enabled (cross-platform).++Reads browser settings from `config/config.yaml`:++browser:+ chrome_path: "<path or command>"+ remote_debugging_address: "127.0.0.1"+ remote_debugging_port: 9222+ user_data_dir: ""+ profile_directory: "Default"++`chrome_path` can also be a map by OS:++browser:+ chrome_path:+ windows: "C:\\path\\to\\chrome.exe"+ macos: "/Applications/Google Chrome.app"+ linux: "/usr/bin/google-chrome"+"""++from __future__ import annotations++import argparse+import os+import platform+import shutil+import subprocess+from pathlib import Path+from typing import Any++import yaml+++def _repo_root() -> Path:+ return Path(__file__).resolve().parents[3]+++def _config_path(custom_path: str = "") -> Path:+ if custom_path:+ return Path(custom_path).expanduser().resolve()+ return _repo_root() / "config" / "config.yaml"+++def _load_browser_config(config_file: str = "") -> dict[str, Any]:+ cfg_file = _config_path(config_file)+ if not cfg_file.exists():+ return {}+ with cfg_file.open("r", encoding="utf-8") as f:+ data = yaml.safe_load(f) or {}+ browser_cfg = data.get("browser")+ return browser_cfg if isinstance(browser_cfg, dict) else {}+++def _os_key() -> str:+ system = platform.system().lower()+ if system.startswith("win"):+ return "windows"+ if system == "darwin":+ return "macos"+ return "linux"+++def _resolve_chrome_path(raw_value: Any, os_name: str) -> str:+ if isinstance(raw_value, dict):+ for key in (os_name, "default"):+ value = raw_value.get(key)+ if isinstance(value, str) and value.strip():+ return value.strip()+ return ""+ if isinstance(raw_value, str):+ return raw_value.strip()+ return ""+++def _default_chrome_candidates(os_name: str) -> list[str]:+ if os_name == "windows":+ local_app_data = os.getenv("LOCALAPPDATA", "")+ program_files = os.getenv("PROGRAMFILES", "C:\\Program Files")+ program_files_x86 = os.getenv("PROGRAMFILES(X86)", "C:\\Program Files (x86)")+ return [+ str(Path(local_app_data) / "Google" / "Chrome" / "Application" / "chrome.exe"),+ str(Path(program_files) / "Google" / "Chrome" / "Application" / "chrome.exe"),+ str(Path(program_files_x86) / "Google" / "Chrome" / "Application" / "chrome.exe"),+ "chrome.exe",+ ]+ if os_name == "macos":+ return [+ "/Applications/Google Chrome.app",+ "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",+ "Google Chrome",+ "google-chrome",+ "chromium",+ ]+ return [+ "google-chrome",+ "google-chrome-stable",+ "chromium-browser",+ "chromium",+ ]+++def _normalize_chrome_executable(path_or_cmd: str, os_name: str) -> str:+ if not path_or_cmd:+ return ""++ expanded = os.path.expandvars(os.path.expanduser(path_or_cmd))+ path = Path(expanded)++ if os_name == "macos" and expanded.endswith(".app"):+ candidate = path / "Contents" / "MacOS" / "Google Chrome"+ if candidate.exists():+ return str(candidate)++ if path.exists():+ return str(path)++ resolved = shutil.which(expanded)+ if resolved:+ return resolved++ return ""+++def _resolve_user_data_dir(raw_value: Any, os_name: str) -> str:+ if isinstance(raw_value, str) and raw_value.strip():+ return os.path.expandvars(os.path.expanduser(raw_value.strip()))++ if os_name == "windows":+ local_app_data = os.getenv("LOCALAPPDATA", "")+ return str(Path(local_app_data) / "ChromeCDPProfile")++ return str(Path.home() / "chrome-cdp-profile")+++def _parse_cdp_from_env(default_host: str, default_port: int) -> tuple[str, int]:+ raw = (os.getenv("PLAYWRIGHT_CDP_URL") or "").strip()+ if not raw:+ return default_host, default_port++ # format: http://host:port+ try:+ no_scheme = raw.split("://", 1)[-1]+ host_port = no_scheme.split("/", 1)[0]+ host, port_text = host_port.rsplit(":", 1)+ return host, int(port_text)+ except Exception:+ return default_host, default_port+++def _creation_flags_for_windows() -> int:+ flags = 0+ flags |= getattr(subprocess, "DETACHED_PROCESS", 0)+ flags |= getattr(subprocess, "CREATE_NEW_PROCESS_GROUP", 0)+ return flags+++def start_browser(*, dry_run: bool = False, config_file: str = "") -> int:+ browser_cfg = _load_browser_config(config_file)+ os_name = _os_key()++ chrome_cfg = _resolve_chrome_path(browser_cfg.get("chrome_path"), os_name)+ if not chrome_cfg:+ chrome_cfg = os.getenv("CHROME_PATH", "").strip()++ candidates = [chrome_cfg] if chrome_cfg else []+ candidates.extend(_default_chrome_candidates(os_name))++ chrome_exec = ""+ for candidate in candidates:+ chrome_exec = _normalize_chrome_executable(candidate, os_name)+ if chrome_exec:+ break++ if not chrome_exec:+ raise FileNotFoundError(+ "Cannot locate Chrome executable. Set browser.chrome_path in config/config.yaml "+ "or CHROME_PATH env."+ )++ host = str(browser_cfg.get("remote_debugging_address") or "127.0.0.1").strip()+ port = int(browser_cfg.get("remote_debugging_port") or 9222)+ host, port = _parse_cdp_from_env(host, port)++ user_data_dir = _resolve_user_data_dir(browser_cfg.get("user_data_dir"), os_name)+ profile_directory = str(browser_cfg.get("profile_directory") or "Default").strip()++ args = [+ chrome_exec,+ f"--remote-debugging-address={host}",+ f"--remote-debugging-port={port}",+ f"--user-data-dir={user_data_dir}",+ ]+ if profile_directory:+ args.append(f"--profile-directory={profile_directory}")++ kwargs: dict[str, Any] = {+ "stdout": subprocess.DEVNULL,+ "stderr": subprocess.DEVNULL,+ }+ if os_name == "windows":+ kwargs["creationflags"] = _creation_flags_for_windows()+ else:+ kwargs["start_new_session"] = True++ if dry_run:+ print("Dry run: browser launch command prepared.")+ print(" ".join(args))+ return 0++ proc = subprocess.Popen(args, **kwargs)+ print(f"Chrome started (pid={proc.pid}) at {host}:{port}")+ print(f"Executable: {chrome_exec}")+ print(f"Profile dir: {user_data_dir}")+ return 0+++def main() -> int:+ parser = argparse.ArgumentParser(description="Start Chrome with CDP enabled.")+ parser.add_argument(+ "--dry-run",+ action="store_true",+ help="Print resolved launch command without starting Chrome.",+ )+ parser.add_argument(+ "--config",+ default="",+ help="Optional path to config yaml (default: config/config.yaml).",+ )+ args = parser.parse_args()+ try:+ return start_browser(dry_run=args.dry_run, config_file=args.config)+ except Exception as exc:+ print(f"Failed to start Chrome: {exc}")+ return 1+++if __name__ == "__main__":+ raise SystemExit(main())diff --git a/jiuwenclaw/agentserver/tools/browser_tools.py b/jiuwenclaw/agentserver/tools/browser_tools.pynew file mode 100644index 0000000000..af83ad0e0a--- /dev/null+++ b/jiuwenclaw/agentserver/tools/browser_tools.py@@ -0,0 +1,533 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Browser MCP integration helpers for JiuWenClaw."""++from __future__ import annotations++import json+import os+import shlex+import socket+import subprocess+import sys+import time+import importlib.util+from pathlib import Path+from typing import Any++from openjiuwen.core.foundation.tool import McpServerConfig+from openjiuwen.core.runner import Runner++_BROWSER_MCP_DEFAULT_ID = "playwright_runtime_wrapper"+_BROWSER_MCP_DEFAULT_NAME = "playwright-runtime-wrapper"+_SUPPORTED_CLIENT_TYPES = {"stdio", "sse", "streamable-http", "streamable_http", "http"}+_AUTO_SSE_FALLBACK = "BROWSER_RUNTIME_MCP_AUTO_SSE_FALLBACK"+_AUTO_RUNTIME_HOST = "BROWSER_RUNTIME_MCP_HOST"+_AUTO_RUNTIME_PORT = "BROWSER_RUNTIME_MCP_PORT"+_AUTO_RUNTIME_PATH = "BROWSER_RUNTIME_MCP_PATH"+_AUTO_SSE_HOST = "BROWSER_RUNTIME_MCP_SSE_HOST"+_AUTO_SSE_PORT = "BROWSER_RUNTIME_MCP_SSE_PORT"+_AUTO_SSE_PATH = "BROWSER_RUNTIME_MCP_SSE_PATH"+_PROXY_BLOCKLIST = {"http://127.0.0.1:9", "http://localhost:9"}+_BROWSER_RUNTIME_PROCESS: subprocess.Popen[str] | None = None+_BROWSER_RUNTIME_SERVER_URL: str | None = None+_BROWSER_MOVE_CLIENT_PATCHED = False+++def _env_bool(name: str, default: bool = False) -> bool:+ value = (os.getenv(name) or "").strip().lower()+ if not value:+ return default+ return value in {"1", "true", "yes", "on"}+++def _parse_args(raw: str) -> list[str]:+ raw = (raw or "").strip()+ if not raw:+ return []+ if raw.startswith("["):+ try:+ parsed = json.loads(raw)+ if isinstance(parsed, list):+ return [str(x) for x in parsed]+ except Exception:+ pass+ try:+ return shlex.split(raw, posix=(os.name != "nt"))+ except Exception:+ return raw.split()+++def _repo_root() -> Path:+ return Path(__file__).resolve().parents[3]+++def _browser_move_server_script() -> Path:+ return _repo_root() / "jiuwenclaw" / "agentserver" / "tools" / "browser-move" / "src" / "playwright_runtime_mcp_server.py"+++def _browser_move_src_root() -> Path:+ return _repo_root() / "jiuwenclaw" / "agentserver" / "tools" / "browser-move" / "src"+++def _normalize_client_type(client_type: str) -> str:+ value = (client_type or "").strip().lower()+ if value in {"http", "streamable_http"}:+ return "streamable-http"+ return value+++def _ensure_browser_move_client_patch() -> None:+ global _BROWSER_MOVE_CLIENT_PATCHED+ if _BROWSER_MOVE_CLIENT_PATCHED:+ return++ src_root = _browser_move_src_root()+ if not src_root.exists():+ raise FileNotFoundError(f"browser runtime src root not found: {src_root}")++ # Only add runtime src path. Do not prepend browser-move repo root, otherwise+ # a copied local openjiuwen package may shadow installed openjiuwen.+ src_root_str = str(src_root)+ if src_root_str not in sys.path:+ sys.path.insert(0, src_root_str)++ def _load_class(module_file: Path, module_name: str, class_name: str) -> Any:+ spec = importlib.util.spec_from_file_location(module_name, str(module_file))+ if spec is None or spec.loader is None:+ raise RuntimeError(f"failed to load module spec from {module_file}")+ module = importlib.util.module_from_spec(spec)+ spec.loader.exec_module(module)+ return getattr(module, class_name)++ stdio_cls = _load_class(+ src_root / "playwright_runtime" / "clients" / "stdio_client.py",+ "browser_move_stdio_client",+ "BrowserMoveStdioClient",+ )+ sse_module_file = src_root / "playwright_runtime" / "clients" / "sse_client.py"+ sse_cls = None+ if sse_module_file.exists():+ sse_cls = _load_class(+ sse_module_file,+ "browser_move_sse_client",+ "BrowserMoveSseClient",+ )+ streamable_http_cls = _load_class(+ src_root / "playwright_runtime" / "clients" / "streamable_http_client.py",+ "browser_move_streamable_http_client",+ "BrowserMoveStreamableHttpClient",+ )+ apply_patch_fn = _load_class(+ src_root / "playwright_runtime" / "openjiuwen_monkeypatch.py",+ "browser_move_openjiuwen_monkeypatch",+ "apply_openjiuwen_monkeypatch",+ )+ apply_patch_fn()++ import openjiuwen.core.runner.resources_manager.tool_manager as tool_mgr++ original_create_client = tool_mgr.ToolMgr._create_client++ def _patched_create_client(config: McpServerConfig):+ normalized = _normalize_client_type(getattr(config, "client_type", ""))+ if normalized == "sse":+ if sse_cls is not None:+ return sse_cls(config.server_path, config.server_name, config.auth_headers, config.auth_query_params)+ return original_create_client(config)+ if normalized == "streamable-http":+ return streamable_http_cls(+ config.server_path,+ config.server_name,+ config.auth_headers,+ config.auth_query_params,+ )+ if normalized == "stdio":+ return stdio_cls(config.server_path, config.server_name, config.params)+ return original_create_client(config)++ tool_mgr.StdioClient = stdio_cls+ if sse_cls is not None:+ tool_mgr.SseClient = sse_cls+ tool_mgr.StreamableHttpClient = streamable_http_cls+ tool_mgr.ToolMgr._create_client = staticmethod(_patched_create_client)+ _BROWSER_MOVE_CLIENT_PATCHED = True+++def _build_browser_runtime_subprocess_env() -> dict[str, str]:+ # Keep full system env on Windows, then override/add the keys we need.+ env: dict[str, str] = dict(os.environ)+ passthrough_keys = [+ "MODEL_NAME",+ "MODEL_PROVIDER",+ "API_KEY",+ "API_BASE",+ "OPENROUTER_API_KEY",+ "OPENROUTER_BASE_URL",+ "OPENAI_API_KEY",+ "OPENAI_BASE_URL",+ "PLAYWRIGHT_MCP_COMMAND",+ "PLAYWRIGHT_MCP_ARGS",+ "PLAYWRIGHT_CDP_URL",+ "PLAYWRIGHT_CDP_HEADERS",+ "PLAYWRIGHT_MCP_CDP_ENDPOINT",+ "PLAYWRIGHT_MCP_CDP_TIMEOUT",+ "PLAYWRIGHT_MCP_BROWSER",+ "PLAYWRIGHT_MCP_DEVICE",+ "PLAYWRIGHT_BROWSERS_PATH",+ "PLAYWRIGHT_TOOL_TIMEOUT_S",+ "BROWSER_TIMEOUT_S",+ "HTTP_PROXY",+ "HTTPS_PROXY",+ "NO_PROXY",+ ]+ for key in passthrough_keys:+ value = os.getenv(key)+ if value:+ env[key] = value++ api_key = (os.getenv("API_KEY") or "").strip()+ api_base = (os.getenv("API_BASE") or "").strip()+ model_provider = (os.getenv("MODEL_PROVIDER") or "").strip().lower()++ # 把本项目的 API_* 透传给浏览器运行时+ if api_key and not env.get("OPENROUTER_API_KEY") and "openrouter.ai" in api_base:+ env["OPENROUTER_API_KEY"] = api_key+ if api_base and not env.get("OPENROUTER_BASE_URL") and "openrouter.ai" in api_base:+ env["OPENROUTER_BASE_URL"] = api_base++ if api_key and not env.get("OPENAI_API_KEY") and "openrouter.ai" not in api_base:+ env["OPENAI_API_KEY"] = api_key+ if api_base and not env.get("OPENAI_BASE_URL") and "openrouter.ai" not in api_base:+ env["OPENAI_BASE_URL"] = api_base++ if model_provider == "openrouter":+ env["MODEL_PROVIDER"] = "openrouter"+ elif model_provider in {"openai", "siliconflow"}:+ env["MODEL_PROVIDER"] = model_provider++ # Remove clearly invalid deny-proxy values that can break child processes.+ for proxy_key in ("HTTP_PROXY", "HTTPS_PROXY", "ALL_PROXY"):+ proxy_val = (env.get(proxy_key) or "").strip().lower()+ if proxy_val in _PROXY_BLOCKLIST:+ env.pop(proxy_key, None)++ return env+++def _runtime_host() -> str:+ return (+ os.getenv(_AUTO_RUNTIME_HOST)+ or os.getenv(_AUTO_SSE_HOST)+ or "127.0.0.1"+ ).strip()+++def _runtime_port() -> str:+ return (+ os.getenv(_AUTO_RUNTIME_PORT)+ or os.getenv(_AUTO_SSE_PORT)+ or "8940"+ ).strip()+++def _runtime_path(transport: str) -> str:+ env_path = os.getenv(_AUTO_RUNTIME_PATH)+ if not env_path and transport == "sse":+ env_path = os.getenv(_AUTO_SSE_PATH)+ default_path = "/mcp" if _normalize_client_type(transport) == "streamable-http" else "/sse"+ path = (env_path or default_path).strip() or default_path+ if not path.startswith("/"):+ path = f"/{path}"+ return path+++def _build_server_url(transport: str) -> str:+ host = _runtime_host()+ port = _runtime_port()+ path = _runtime_path(transport)+ return f"http://{host}:{port}{path}"+++def _is_port_available(host: str, port: int) -> bool:+ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:+ sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)+ try:+ sock.bind((host, port))+ except OSError:+ return False+ return True+++def _pick_available_port(host: str, preferred_port: int, max_attempts: int = 25) -> int:+ if preferred_port > 0 and _is_port_available(host, preferred_port):+ return preferred_port+ for port in range(preferred_port + 1, preferred_port + max_attempts + 1):+ if _is_port_available(host, port):+ return port+ raise RuntimeError("No available port for browser runtime SSE server.")+++def _wait_port_open(host: str, port: int, timeout_s: float = 8.0) -> None:+ deadline = time.time() + timeout_s+ while time.time() < deadline:+ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:+ sock.settimeout(0.8)+ if sock.connect_ex((host, port)) == 0:+ return+ time.sleep(0.2)+ raise RuntimeError(f"SSE server did not start in time: {host}:{port}")+++def _ensure_local_server_started(transport: str) -> str:+ global _BROWSER_RUNTIME_PROCESS+ global _BROWSER_RUNTIME_SERVER_URL+ normalized = _normalize_client_type(transport)+ if normalized not in {"sse", "streamable-http"}:+ raise ValueError(f"Unsupported auto-start transport: {transport}")+ if (+ _BROWSER_RUNTIME_PROCESS is not None+ and _BROWSER_RUNTIME_PROCESS.poll() is None+ and _BROWSER_RUNTIME_SERVER_URL+ ):+ return _BROWSER_RUNTIME_SERVER_URL++ server_script = _browser_move_server_script()+ if not server_script.exists():+ raise FileNotFoundError(f"browser runtime server script not found: {server_script}")++ host = _runtime_host()+ preferred_port_raw = _runtime_port()+ path = _runtime_path(normalized)+ preferred_port = int(preferred_port_raw)+ port = _pick_available_port(host, preferred_port)+ command = (os.getenv("BROWSER_RUNTIME_MCP_COMMAND") or sys.executable).strip()+ env = _build_browser_runtime_subprocess_env()++ cmd = [+ command,+ str(server_script),+ "--transport",+ normalized,+ "--host",+ host,+ "--port",+ str(port),+ "--path",+ path,+ "--no-banner",+ ]+ _BROWSER_RUNTIME_PROCESS = subprocess.Popen(+ cmd,+ cwd=str(_repo_root()),+ env=env,+ stdout=subprocess.DEVNULL,+ stderr=subprocess.DEVNULL,+ text=True,+ )+ _wait_port_open(host, port)+ _BROWSER_RUNTIME_SERVER_URL = f"http://{host}:{port}{path}"+ return _BROWSER_RUNTIME_SERVER_URL+++def _build_sse_fallback_config(base_cfg: McpServerConfig, server_url: str | None = None) -> McpServerConfig:+ return McpServerConfig(+ server_id=f"{base_cfg.server_id}_sse",+ server_name=base_cfg.server_name,+ server_path=server_url or _build_server_url("sse"),+ client_type="sse",+ )+++def _build_sse_retry_config(base_cfg: McpServerConfig, server_url: str) -> McpServerConfig:+ return McpServerConfig(+ server_id=base_cfg.server_id,+ server_name=base_cfg.server_name,+ server_path=server_url,+ client_type="sse",+ )+++def _build_streamable_http_config(base_cfg: McpServerConfig, server_url: str | None = None) -> McpServerConfig:+ return McpServerConfig(+ server_id=base_cfg.server_id,+ server_name=base_cfg.server_name,+ server_path=server_url or _build_server_url("streamable-http"),+ client_type="streamable-http",+ )+++def _result_is_ok(result: Any) -> bool:+ if result is None:+ return True+ is_ok = getattr(result, "is_ok", None)+ if callable(is_ok):+ try:+ return bool(is_ok())+ except Exception:+ return False+ return False+++def _result_error_text(result: Any) -> str:+ if result is None:+ return ""+ for attr in ("error", "msg"):+ fn = getattr(result, attr, None)+ if callable(fn):+ try:+ value = fn()+ if value is not None:+ return str(value)+ except Exception:+ pass+ value = getattr(result, "_error", None)+ if value is not None:+ return str(value)+ return str(result)+++def build_browser_runtime_mcp_config() -> McpServerConfig | None:+ """Build MCP server config for browser runtime wrapper.++ Env flags:+ - BROWSER_RUNTIME_MCP_ENABLED: 1/0+ - BROWSER_RUNTIME_MCP_CLIENT_TYPE: stdio|sse|streamable-http+ - BROWSER_RUNTIME_MCP_SERVER_PATH: remote MCP endpoint URL+ - BROWSER_RUNTIME_MCP_COMMAND / BROWSER_RUNTIME_MCP_ARGS: stdio command override+ """+ if not _env_bool("BROWSER_RUNTIME_MCP_ENABLED", default=False):+ return None++ server_id = (os.getenv("BROWSER_RUNTIME_MCP_SERVER_ID") or _BROWSER_MCP_DEFAULT_ID).strip()+ server_name = (os.getenv("BROWSER_RUNTIME_MCP_SERVER_NAME") or _BROWSER_MCP_DEFAULT_NAME).strip()+ client_type = _normalize_client_type(os.getenv("BROWSER_RUNTIME_MCP_CLIENT_TYPE") or "streamable-http")++ if client_type not in _SUPPORTED_CLIENT_TYPES:+ raise ValueError(+ "BROWSER_RUNTIME_MCP_CLIENT_TYPE must be one of stdio|sse|streamable-http."+ )++ if client_type == "sse":+ server_path = (os.getenv("BROWSER_RUNTIME_MCP_SERVER_PATH") or _build_server_url("sse")).strip()+ return McpServerConfig(+ server_id=server_id,+ server_name=server_name,+ server_path=server_path,+ client_type="sse",+ )++ if client_type == "streamable-http":+ server_path = (os.getenv("BROWSER_RUNTIME_MCP_SERVER_PATH") or _build_server_url("streamable-http")).strip()+ return McpServerConfig(+ server_id=server_id,+ server_name=server_name,+ server_path=server_path,+ client_type="streamable-http",+ )++ # stdio mode: auto-spawn browser runtime MCP server process.+ server_script = _browser_move_server_script()+ if not server_script.exists():+ raise FileNotFoundError(f"browser runtime server script not found: {server_script}")++ command = (os.getenv("BROWSER_RUNTIME_MCP_COMMAND") or sys.executable).strip()+ args_raw = os.getenv("BROWSER_RUNTIME_MCP_ARGS", "")+ if args_raw.strip():+ args = _parse_args(args_raw)+ else:+ args = [str(server_script), "--transport", "stdio", "--no-banner", "--log-level", "ERROR"]++ params: dict[str, Any] = {+ "command": command,+ "args": args,+ "cwd": str(_repo_root()),+ }+ timeout_raw = (os.getenv("BROWSER_RUNTIME_MCP_TIMEOUT_S") or "300").strip()+ try:+ timeout_s = int(timeout_raw)+ if timeout_s > 0:+ params["timeout_s"] = timeout_s+ except ValueError:+ pass++ subprocess_env = _build_browser_runtime_subprocess_env()+ if subprocess_env:+ params["env"] = subprocess_env++ return McpServerConfig(+ server_id=server_id,+ server_name=server_name,+ server_path=(os.getenv("BROWSER_RUNTIME_MCP_SERVER_PATH") or "stdio://playwright-runtime-wrapper").strip(),+ client_type="stdio",+ params=params,+ )+++async def register_browser_runtime_mcp_server(agent: Any, *, tag: str = "agent.main") -> bool:+ """Register browser runtime MCP server and add to agent abilities."""+ _ensure_browser_move_client_patch()+ cfg = build_browser_runtime_mcp_config()+ if cfg is None:+ return False++ async def _register_once(target_cfg: McpServerConfig) -> tuple[bool, str]:+ result = await Runner.resource_mgr.add_mcp_server(target_cfg, tag=tag)+ if _result_is_ok(result):+ agent.ability_manager.add(target_cfg)+ return True, ""++ error_text = _result_error_text(result)+ if "already exist" in error_text.lower():+ agent.ability_manager.add(target_cfg)+ return True, error_text+ return False, error_text++ # Prefer SSE first when stdio fallback is enabled to avoid JSON-RPC corruption+ # from stdout logs in child processes.+ if cfg.client_type == "stdio" and _env_bool(_AUTO_SSE_FALLBACK, default=True):+ sse_cfg = _build_sse_fallback_config(cfg)+ ok, sse_err = await _register_once(sse_cfg)+ if ok:+ return True++ try:+ auto_url = _ensure_local_server_started("sse")+ sse_cfg = _build_sse_fallback_config(cfg, server_url=auto_url)+ ok, auto_sse_err = await _register_once(sse_cfg)+ if ok:+ return True+ sse_err = f"{sse_err} | {auto_sse_err}".strip(" |")+ except Exception as exc:+ sse_err = f"{sse_err} | {exc}".strip(" |")+ else:+ sse_err = ""++ ok, error_text = await _register_once(cfg)+ if ok:+ return True++ if cfg.client_type == "sse":+ try:+ auto_url = _ensure_local_server_started("sse")+ retry_cfg = _build_sse_retry_config(cfg, auto_url)+ ok, retry_err = await _register_once(retry_cfg)+ if ok:+ return True+ error_text = f"{error_text} | {retry_err}".strip(" |")+ except Exception as exc:+ error_text = f"{error_text} | {exc}".strip(" |")+ elif _normalize_client_type(cfg.client_type) == "streamable-http":+ try:+ auto_url = _ensure_local_server_started("streamable-http")+ retry_cfg = _build_streamable_http_config(cfg, auto_url)+ ok, retry_err = await _register_once(retry_cfg)+ if ok:+ return True+ error_text = f"{error_text} | {retry_err}".strip(" |")+ except Exception as exc:+ error_text = f"{error_text} | {exc}".strip(" |")++ if sse_err:+ error_text = f"{error_text} | sse={sse_err}".strip(" |")+ raise RuntimeError(f"Failed to register browser MCP server: {error_text}")diff --git a/jiuwenclaw/agentserver/tools/command_tools.py b/jiuwenclaw/agentserver/tools/command_tools.pynew file mode 100644index 0000000000..5a5da5b993--- /dev/null+++ b/jiuwenclaw/agentserver/tools/command_tools.py@@ -0,0 +1,229 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Command execution tools implemented with openjiuwen @tool style."""++from __future__ import annotations++import asyncio+import json+import os+import re+import shutil+import subprocess+from pathlib import Path+from typing import Sequence++from openjiuwen.core.foundation.tool import tool++_DANGEROUS_COMMAND_PATTERNS: list[tuple[re.Pattern[str], str]] = [+ (re.compile(r"\brm\s+-rf\b", re.IGNORECASE), "blocked pattern: rm -rf"),+ (re.compile(r"\bdel\s+/[a-z]*[fsq][a-z]*\b", re.IGNORECASE), "blocked pattern: del /f /s /q"),+ (re.compile(r"\brd\s+/s\s+/q\b", re.IGNORECASE), "blocked pattern: rd /s /q"),+ (re.compile(r"\bformat\s+[a-z]:", re.IGNORECASE), "blocked pattern: format drive"),+ (re.compile(r"\bshutdown\b", re.IGNORECASE), "blocked pattern: shutdown"),+ (re.compile(r"\breboot\b", re.IGNORECASE), "blocked pattern: reboot"),+ (re.compile(r"\bdiskpart\b", re.IGNORECASE), "blocked pattern: diskpart"),+ (re.compile(r"\bmkfs\b", re.IGNORECASE), "blocked pattern: mkfs"),+ (re.compile(r"\breg\s+delete\b", re.IGNORECASE), "blocked pattern: reg delete"),+ (+ re.compile(r"\bremove-item\b[^\n\r]*-recurse[^\n\r]*-force", re.IGNORECASE),+ "blocked pattern: Remove-Item -Recurse -Force",+ ),+]++_POWERSHELL_TOKENS = (+ "powershell ",+ "powershell.exe ",+ "pwsh ",+ "pwsh.exe ",+ "get-childitem",+ "set-location",+ "remove-item",+ "test-path",+ "join-path",+ "select-object",+ "where-object",+ "foreach-object",+ "invoke-webrequest",+ "invoke-restmethod",+ "out-file",+ "start-process",+ "$env:",+ "$psversiontable",+ "$null",+ "$true",+ "$false",+)++_VALID_SHELL_TYPES = {"auto", "cmd", "powershell", "bash", "sh"}+++def _clip_text(value: str, max_chars: int) -> str:+ if len(value) <= max_chars:+ return value+ return f"{value[:max_chars]}\n...[truncated]"+++def _check_command_safety(command: str) -> str | None:+ for pattern, message in _DANGEROUS_COMMAND_PATTERNS:+ if pattern.search(command):+ return message+ return None+++def _resolve_command_workdir(workdir: str) -> Path:+ project_root = Path(__file__).resolve().parents[3]+ candidate = Path(workdir) if workdir else project_root+ if not candidate.is_absolute():+ candidate = project_root / candidate+ candidate = candidate.resolve()+ candidate.relative_to(project_root)+ return candidate+++def _normalize_shell_type(shell_type: str) -> str:+ value = (shell_type or "auto").strip().lower()+ return value if value in _VALID_SHELL_TYPES else "auto"+++def _looks_like_powershell(command: str) -> bool:+ lowered = (command or "").strip().lower()+ if not lowered:+ return False+ if any(token in lowered for token in _POWERSHELL_TOKENS):+ return True+ if "@'" in command or '@"' in command:+ return True+ if re.search(r"(^|[\s;(])\$[A-Za-z_][A-Za-z0-9_]*", command):+ return True+ return False+++def _available_powershell() -> str:+ for candidate in ("pwsh", "powershell", "powershell.exe"):+ resolved = shutil.which(candidate)+ if resolved:+ return resolved+ return "powershell"+++def _available_unix_shell(prefer_bash: bool) -> Sequence[str]:+ if prefer_bash:+ bash = shutil.which("bash")+ if bash:+ return [bash, "-lc"]+ sh = shutil.which("sh") or "/bin/sh"+ return [sh, "-lc" if prefer_bash else "-c"]+++def _resolve_execution_plan(command: str, shell_type: str) -> tuple[list[str] | str, bool, str]:+ normalized = _normalize_shell_type(shell_type)+ is_windows = os.name == "nt"++ if is_windows:+ if normalized == "auto":+ normalized = "powershell" if _looks_like_powershell(command) else "cmd"+ if normalized == "powershell":+ exe = _available_powershell()+ return [exe, "-NoProfile", "-NonInteractive", "-Command", command], False, "powershell"+ if normalized == "cmd":+ return command, True, "cmd"+ if normalized in {"bash", "sh"}:+ exe = shutil.which("bash") if normalized == "bash" else shutil.which("sh")+ if not exe:+ raise RuntimeError(f"Requested shell '{normalized}' is not available on this system.")+ flag = "-lc" if normalized == "bash" else "-c"+ return [exe, flag, command], False, normalized+ raise RuntimeError(f"Unsupported shell_type for Windows: {normalized}")++ if normalized == "auto":+ normalized = "bash" if shutil.which("bash") else "sh"+ if normalized == "powershell":+ exe = shutil.which("pwsh") or shutil.which("powershell")+ if not exe:+ raise RuntimeError("Requested shell 'powershell' is not available on this system.")+ return [exe, "-NoProfile", "-NonInteractive", "-Command", command], False, "powershell"+ if normalized == "cmd":+ raise RuntimeError("shell_type 'cmd' is only supported on Windows.")+ if normalized == "bash":+ exe, flag = _available_unix_shell(prefer_bash=True)+ return [exe, flag, command], False, "bash"+ if normalized == "sh":+ exe, flag = _available_unix_shell(prefer_bash=False)+ return [exe, flag, command], False, "sh"+ raise RuntimeError(f"Unsupported shell_type: {normalized}")+++def _run_command_sync(+ command: str,+ timeout_seconds: int,+ workdir: Path,+ shell_type: str,+) -> tuple[subprocess.CompletedProcess[str], str]:+ plan, use_shell, resolved_shell = _resolve_execution_plan(command, shell_type)+ result = subprocess.run(+ plan,+ shell=use_shell,+ cwd=str(workdir),+ text=True,+ capture_output=True,+ timeout=timeout_seconds,+ )+ return result, resolved_shell+++@tool(+ name="mcp_exec_command",+ description=(+ "Execute simple cross-platform command-line command in project workspace. "+ "Supports Windows cmd/PowerShell and macOS/Linux bash/sh. "+ "Optional shell_type=auto|cmd|powershell|bash|sh. Returns JSON: exit_code/stdout/stderr."+ ),+)+async def mcp_exec_command(+ command: str,+ timeout_seconds: int = 15,+ workdir: str = ".",+ max_output_chars: int = 8000,+ shell_type: str = "auto",+) -> str:+ command = (command or "").strip()+ if not command:+ return "[ERROR]: command cannot be empty."++ blocked_reason = _check_command_safety(command)+ if blocked_reason:+ return f"[ERROR]: command rejected for safety ({blocked_reason})."++ try:+ resolved_workdir = _resolve_command_workdir(workdir)+ except Exception:+ return "[ERROR]: workdir is outside project workspace."++ timeout_seconds = max(1, min(timeout_seconds, 60))+ max_output_chars = max(200, min(max_output_chars, 20000))+ normalized_shell_type = _normalize_shell_type(shell_type)++ try:+ result, resolved_shell = await asyncio.to_thread(+ _run_command_sync,+ command,+ timeout_seconds,+ resolved_workdir,+ normalized_shell_type,+ )+ except subprocess.TimeoutExpired:+ return f"[ERROR]: command timed out after {timeout_seconds}s."+ except Exception as exc:+ return f"[ERROR]: command execution failed: {exc}"++ payload = {+ "command": command,+ "cwd": str(resolved_workdir),+ "shell_type": normalized_shell_type,+ "resolved_shell": resolved_shell,+ "exit_code": result.returncode,+ "stdout": _clip_text(result.stdout or "", max_output_chars),+ "stderr": _clip_text(result.stderr or "", max_output_chars),+ }+ return json.dumps(payload, ensure_ascii=False, indent=2)diff --git a/jiuwenclaw/agentserver/tools/mcp_toolkits.py b/jiuwenclaw/agentserver/tools/mcp_toolkits.pynew file mode 100644index 0000000000..fece9112de--- /dev/null+++ b/jiuwenclaw/agentserver/tools/mcp_toolkits.py@@ -0,0 +1,25 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""MCP toolkit aggregator for openjiuwen tools."""++from __future__ import annotations++from openjiuwen.core.foundation.tool import Tool++from jiuwenclaw.agentserver.tools.command_tools import mcp_exec_command+from jiuwenclaw.agentserver.tools.search_tools import mcp_free_search, mcp_paid_search+from jiuwenclaw.agentserver.tools.web_fetch_tools import mcp_fetch_webpage+++def get_mcp_tools() -> list[Tool]:+ """Return all MCP toolkit tools for registration in Runner."""+ return [mcp_free_search, mcp_paid_search, mcp_fetch_webpage, mcp_exec_command]+++__all__ = [+ "mcp_free_search",+ "mcp_paid_search",+ "mcp_fetch_webpage",+ "mcp_exec_command",+ "get_mcp_tools",+]diff --git a/jiuwenclaw/agentserver/tools/memory_tools.py b/jiuwenclaw/agentserver/tools/memory_tools.pynew file mode 100644index 0000000000..7b939f1a6c--- /dev/null+++ b/jiuwenclaw/agentserver/tools/memory_tools.py@@ -0,0 +1,457 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Memory tools for JiuWenClaw - Using @tool decorator for openjiuwen."""++import os+import logging+from typing import Optional, Dict, Any, List++from openjiuwen.core.foundation.tool.tool import tool++from ..memory import (+ MemoryIndexManager,+ MemorySettings,+ create_memory_settings,+ is_memory_enabled,+)++logger = logging.getLogger(__name__)++_global_manager: Optional[MemoryIndexManager] = None+_global_workspace_dir: str = "."+_global_settings: Optional[MemorySettings] = None+_global_agent_id: str = "default"+++def _resolve_memory_path(path: str) -> str:+ """Resolve memory file path. Maps USER.md and MEMORY.md to memory/ subdirectory."""+ # If path already starts with memory/, return as-is+ if path.startswith("memory/"):+ return path+ # Map USER.md and MEMORY.md to memory/ subdirectory+ if path in ("USER.md", "MEMORY.md"):+ return f"memory/{path}"+ return path+++def set_global_memory_manager(+ manager: Optional[MemoryIndexManager],+ workspace_dir: str = ".",+ settings: Optional[MemorySettings] = None,+ agent_id: str = "default"+):+ """Set global memory manager for tool functions."""+ global _global_manager, _global_workspace_dir, _global_settings, _global_agent_id+ _global_manager = manager+ _global_workspace_dir = workspace_dir+ _global_settings = settings+ _global_agent_id = agent_id+++async def init_memory_manager_async(+ workspace_dir: str = ".",+ agent_id: str = "default"+) -> Optional[MemoryIndexManager]:+ """初始化记忆管理器(带文件监控).++ Args:+ workspace_dir: 工作区目录+ agent_id: Agent ID++ Returns:+ MemoryIndexManager 实例,如果 memory 未启用则返回 None+ """+ global _global_manager, _global_workspace_dir, _global_settings, _global_agent_id++ if not is_memory_enabled():+ logger.info("Memory system is disabled")+ return None++ if _global_manager is not None and _global_workspace_dir == workspace_dir:+ return _global_manager++ settings = create_memory_settings(workspace_dir)++ _global_workspace_dir = workspace_dir+ _global_settings = settings+ _global_agent_id = agent_id++ try:+ _global_manager = await MemoryIndexManager.get(+ agent_id=agent_id,+ workspace_dir=workspace_dir,+ settings=settings+ )++ if _global_manager:+ logger.info(f"Memory manager initialized for: {workspace_dir}")++ return _global_manager++ except Exception as e:+ logger.error(f"Failed to initialize memory manager: {e}")+ return None+++async def _ensure_global_manager() -> bool:+ """Ensure global memory manager is initialized."""+ global _global_manager, _global_settings, _global_workspace_dir, _global_agent_id++ if _global_manager is not None:+ return True++ try:+ _global_settings = _global_settings or MemorySettings()+ _global_manager = await MemoryIndexManager.get(+ agent_id=_global_agent_id,+ workspace_dir=_global_workspace_dir,+ settings=_global_settings+ )+ return True+ except Exception as e:+ logger.error(f"Failed to initialize global memory manager: {e}")+ return False+++@tool(+ name="memory_search",+ description="在长期记忆系统中搜索用户的记忆信息。在回答关于之前的工作内容、决策、日期、人物、偏好或待办事项的问题之前,必须先调用此工具。",+)+async def memory_search(+ query: str,+ maxResults: Optional[int] = None,+ minScore: Optional[float] = None,+ sessionKey: Optional[str] = None+) -> Dict[str, Any]:+ """在长期记忆系统中搜索用户的记忆信息。在回答关于之前的工作内容、决策、日期、人物、偏好或待办事项的问题之前,必须先调用此工具。++ Args:+ query: 搜索查询内容+ maxResults: 最大返回结果数量 (1-50)+ minScore: 最小相关性分数 (0-1)+ sessionKey: 可选的会话键++ Returns:+ 搜索结果字典,包含 results 列表+ """+ if not await _ensure_global_manager():+ return {+ "results": [],+ "disabled": True,+ "error": "Memory manager not available"+ }++ if not _global_manager:+ return {+ "results": [],+ "disabled": True,+ "error": "Memory manager not initialized"+ }++ try:+ opts = {}+ if maxResults is not None:+ opts["maxResults"] = maxResults+ if minScore is not None:+ opts["minScore"] = minScore+ if sessionKey is not None:+ opts["sessionKey"] = sessionKey++ results = await _global_manager.search(query, opts=opts if opts else None)++ for r in results:+ if r["startLine"] == r["endLine"]:+ r["citation"] = f"{r['path']}#L{r['startLine']}"+ else:+ r["citation"] = f"{r['path']}#L{r['startLine']}-L{r['endLine']}"++ status = _global_manager.status()++ return {+ "results": results,+ "provider": status.get("provider"),+ "model": status.get("model"),+ "disabled": False+ }++ except Exception as e:+ logger.error(f"Memory search failed: {e}")+ return {+ "results": [],+ "disabled": True,+ "error": str(e)+ }+++@tool+async def memory_get(+ path: str,+ from_line: Optional[int] = None,+ lines: Optional[int] = None+) -> Dict[str, Any]:+ """安全地读取 memory/*.md 文件的指定行。在 memory_search 之后使用,只读取需要的行,保持上下文简洁。++ Args:+ path: 文件路径 (相对于工作区)+ from_line: 起始行号 (从1开始)+ lines: 读取的行数++ Returns:+ 文件内容字典+ """+ if not await _ensure_global_manager():+ return {+ "path": path,+ "text": "",+ "disabled": True,+ "error": "Memory manager not available"+ }++ if not _global_manager:+ return {+ "path": path,+ "text": "",+ "disabled": True,+ "error": "Memory manager not initialized"+ }++ try:+ result = await _global_manager.read_file(+ rel_path=path,+ from_line=from_line,+ lines=lines+ )+ return {+ **result,+ "disabled": False+ }++ except Exception as e:+ logger.error(f"Memory get failed: {e}")+ return {+ "path": path,+ "text": "",+ "disabled": True,+ "error": str(e)+ }+++@tool+async def write_memory(+ path: str,+ content: str,+ append: bool = False+) -> Dict[str, Any]:+ """创建新文件或覆盖现有文件。可用于创建新的记忆文件、保存重要信息、生成代码文件。+ 主要用于新建memory/*.md文件,以及更新USER.md和MEMORY.md文件++ Args:+ path: 文件路径 (相对于工作区)+ content: 要写入的内容+ append: 是否追加模式 (默认覆盖)++ Returns:+ 操作结果字典+ """+ try:+ resolved_path = _resolve_memory_path(path)+ full_path = os.path.join(_global_workspace_dir, resolved_path)++ if ".." in path or path.startswith("/"):+ return {+ "success": False,+ "path": path,+ "error": "Invalid path: directory traversal not allowed"+ }++ parent_dir = os.path.dirname(full_path)+ if parent_dir:+ os.makedirs(parent_dir, exist_ok=True)++ file_existed = os.path.exists(full_path)++ mode = "a" if append else "w"+ with open(full_path, mode, encoding="utf-8") as f:+ f.write(content)++ logger.info(f"{'Appended to' if append else 'Wrote'} file: {resolved_path}")++ return {+ "success": True,+ "path": resolved_path,+ "fullPath": full_path,+ "appended": append,+ "fileExisted": file_existed+ }++ except Exception as e:+ logger.error(f"Write failed: {e}")+ return {+ "success": False,+ "path": path,+ "error": str(e)+ }+++@tool+async def edit_memory(+ path: str,+ oldText: str,+ newText: str+) -> Dict[str, Any]:+ """精确编辑文件内容。oldText 必须完全匹配文件中的内容。如果 oldText 出现多次,需要更具体地指定。+ 主要用于更新USER.md和MEMORY.md文件++ Args:+ path: 文件路径 (相对于工作区)+ oldText: 要查找的文本 (必须完全匹配)+ newText: 替换的文本++ Returns:+ 操作结果字典+ """+ try:+ resolved_path = _resolve_memory_path(path)+ full_path = os.path.join(_global_workspace_dir, resolved_path)++ if ".." in path or path.startswith("/"):+ return {+ "success": False,+ "path": path,+ "error": "Invalid path: directory traversal not allowed"+ }++ if not os.path.exists(full_path):+ return {+ "success": False,+ "path": path,+ "error": f"File not found: {path}"+ }++ with open(full_path, "r", encoding="utf-8") as f:+ content = f.read()++ if oldText not in content:+ return {+ "success": False,+ "path": path,+ "error": "oldText not found in file. Use read_memory tool to check exact content."+ }++ occurrences = content.count(oldText)+ if occurrences > 1:+ return {+ "success": False,+ "path": path,+ "error": f"oldText appears {occurrences} times in file. Be more specific."+ }++ new_content = content.replace(oldText, newText, 1)++ with open(full_path, "w", encoding="utf-8") as f:+ f.write(new_content)++ logger.info(f"Edited file: {resolved_path}")++ return {+ "success": True,+ "path": resolved_path,+ "replaced": oldText,+ "with": newText+ }++ except Exception as e:+ logger.error(f"Edit failed: {e}")+ return {+ "success": False,+ "path": path,+ "error": str(e)+ }+++@tool+async def read_memory(+ path: str,+ offset: Optional[int] = None,+ limit: Optional[int] = None+) -> Dict[str, Any]:+ """读取文件内容。可以读取整个文件或指定行范围。+ 主要用于更新USER.md和MEMORY.md前的文件读取++ Args:+ path: 文件路径 (相对于工作区)+ offset: 起始行号 (从1开始)+ limit: 读取的行数++ Returns:+ 文件内容字典+ """+ try:+ resolved_path = _resolve_memory_path(path)+ full_path = os.path.join(_global_workspace_dir, resolved_path)++ if ".." in path or path.startswith("/"):+ return {+ "success": False,+ "path": path,+ "content": "",+ "error": "Invalid path: directory traversal not allowed"+ }++ if not os.path.exists(full_path):+ return {+ "success": False,+ "path": path,+ "content": "",+ "error": f"File not found: {path}"+ }++ if not os.path.isfile(full_path):+ return {+ "success": False,+ "path": path,+ "content": "",+ "error": f"Not a file: {path}"+ }++ with open(full_path, "r", encoding="utf-8", errors="replace") as f:+ lines = f.readlines()++ total_lines = len(lines)++ if offset is not None:+ start = max(0, offset - 1)+ else:+ start = 0++ if limit is not None:+ end = min(start + limit, total_lines)+ else:+ end = total_lines++ selected_lines = lines[start:end]+ content = "".join(selected_lines)++ return {+ "success": True,+ "path": resolved_path,+ "content": content,+ "totalLines": total_lines,+ "startLine": start + 1,+ "endLine": end,+ "truncated": limit is not None and end < total_lines+ }++ except Exception as e:+ logger.error(f"Read failed: {e}")+ return {+ "success": False,+ "path": path,+ "content": "",+ "error": str(e)+ }+++def get_decorated_tools() -> List:+ """获取使用 @tool 装饰器的工具列表"""+ return [memory_search, memory_get, write_memory, edit_memory, read_memory]diff --git a/jiuwenclaw/agentserver/tools/search_tools.py b/jiuwenclaw/agentserver/tools/search_tools.pynew file mode 100644index 0000000000..016c31eb9a--- /dev/null+++ b/jiuwenclaw/agentserver/tools/search_tools.py@@ -0,0 +1,426 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Search tools implemented with openjiuwen @tool style."""++from __future__ import annotations++import asyncio+import base64+import os+import re+from html import unescape+from typing import Any+from urllib.parse import parse_qs, quote_plus, unquote, urlparse++import requests+from openjiuwen.core.foundation.tool import tool++_USER_AGENT = (+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "+ "AppleWebKit/537.36 (KHTML, like Gecko) "+ "Chrome/124.0.0.0 Safari/537.36"+)+_REQUEST_HEADERS = {"User-Agent": _USER_AGENT}+++def _http_request(method: str, url: str, **kwargs) -> requests.Response:+ """Try normal request first; retry without env proxies on ProxyError."""+ method_up = method.upper()+ try:+ if method_up == "GET":+ return requests.get(url, **kwargs)+ if method_up == "POST":+ return requests.post(url, **kwargs)+ return requests.request(method_up, url, **kwargs)+ except requests.exceptions.ProxyError:+ with requests.Session() as session:+ session.trust_env = False+ return session.request(method_up, url, **kwargs)+++def _strip_tags(value: str) -> str:+ value = re.sub(r"<[^>]+>", " ", value)+ return unescape(re.sub(r"\s+", " ", value)).strip()+++def _decode_ddg_redirect(url: str) -> str:+ parsed = urlparse(url)+ if parsed.path != "/l/":+ return url+ query = parse_qs(parsed.query)+ target = query.get("uddg")+ if not target:+ return url+ return unquote(target[0])+++def _decode_bing_redirect(url: str) -> str:+ parsed = urlparse(url)+ if "bing.com" not in parsed.netloc.lower() or parsed.path != "/ck/a":+ return url++ query = parse_qs(parsed.query)+ values = query.get("u")+ if not values:+ return url+ encoded = values[0]+ if not encoded:+ return url++ if encoded.startswith("a1"):+ payload = encoded[2:]+ padding = "=" * (-len(payload) % 4)+ try:+ decoded = base64.urlsafe_b64decode((payload + padding).encode("utf-8")).decode(+ "utf-8", errors="ignore"+ )+ if decoded.startswith(("http://", "https://")):+ return decoded+ except Exception:+ return url+ elif encoded.startswith(("http://", "https://")):+ return encoded++ return url+++def _is_ddg_challenge_page(status_code: int, html: str) -> bool:+ if status_code in {202, 418, 429, 503}:+ return True+ text = (html or "").lower()+ markers = [+ "/anomaly.js",+ "challenge-form",+ "duckduckgo.com/anomaly.js",+ ]+ return any(marker in text for marker in markers)+++def _search_duckduckgo_sync(query: str, max_results: int, timeout_seconds: int) -> list[dict[str, str]]:+ url = f"https://duckduckgo.com/html/?q={quote_plus(query)}"+ response = _http_request("GET", url, headers=_REQUEST_HEADERS, timeout=timeout_seconds)+ if _is_ddg_challenge_page(response.status_code, response.text):+ raise RuntimeError("DuckDuckGo anti-bot challenge page returned")+ if response.status_code != 200:+ raise RuntimeError(f"DuckDuckGo returned non-200 status: {response.status_code}")+ response.raise_for_status()+ html = response.text++ links = re.findall(+ r'<a[^>]+class="result__a"[^>]+href="([^"]+)"[^>]*>(.*?)</a>',+ html,+ flags=re.IGNORECASE | re.DOTALL,+ )+ snippets = re.findall(+ r'<a[^>]+class="result__snippet"[^>]*>(.*?)</a>|<div[^>]+class="result__snippet"[^>]*>(.*?)</div>',+ html,+ flags=re.IGNORECASE | re.DOTALL,+ )++ rows: list[dict[str, str]] = []+ for index, (href, title_raw) in enumerate(links[:max_results]):+ snippet_raw = ""+ if index < len(snippets):+ snippet_raw = snippets[index][0] or snippets[index][1] or ""+ rows.append(+ {+ "title": _strip_tags(title_raw) or f"Result {index + 1}",+ "url": _decode_ddg_redirect(href),+ "snippet": _strip_tags(snippet_raw),+ }+ )+ return rows+++def _search_duckduckgo_via_jina_sync(+ query: str, max_results: int, timeout_seconds: int+) -> list[dict[str, str]]:+ url = f"https://r.jina.ai/http://duckduckgo.com/html/?q={quote_plus(query)}"+ response = _http_request("GET", url, headers=_REQUEST_HEADERS, timeout=timeout_seconds)+ response.raise_for_status()+ text = response.text or ""++ # Parse markdown links rendered by r.jina.ai.+ matches = re.findall(r"\[([^\]\n]+)\]\((https?://[^\s)]+)\)", text, flags=re.IGNORECASE)++ rows: list[dict[str, str]] = []+ seen: set[str] = set()+ for title_raw, href in matches:+ title = _strip_tags(title_raw)+ if not title or title.startswith("Image "):+ continue+ decoded = _decode_ddg_redirect(href)+ parsed = urlparse(decoded)+ if not parsed.scheme.startswith("http"):+ continue+ # Drop DuckDuckGo navigation/self links.+ if "duckduckgo.com" in parsed.netloc.lower():+ continue+ if decoded in seen:+ continue+ seen.add(decoded)+ rows.append({"title": title, "url": decoded, "snippet": ""})+ if len(rows) >= max_results:+ break+ return rows+++def _search_bing_sync(query: str, max_results: int, timeout_seconds: int) -> list[dict[str, str]]:+ url = f"https://www.bing.com/search?q={quote_plus(query)}"+ response = _http_request("GET", url, headers=_REQUEST_HEADERS, timeout=timeout_seconds)+ response.raise_for_status()+ html = response.text++ blocks = re.findall(+ r'<li[^>]+class="[^"]*\bb_algo\b[^"]*"[^>]*>(.*?)</li>',+ html,+ flags=re.IGNORECASE | re.DOTALL,+ )+ rows: list[dict[str, str]] = []+ seen: set[str] = set()++ for block in blocks:+ title_match = re.search(+ r'<h2[^>]*>\s*<a[^>]+href="([^"]+)"[^>]*>(.*?)</a>',+ block,+ flags=re.IGNORECASE | re.DOTALL,+ )+ if not title_match:+ continue+ href_raw = unescape(title_match.group(1))+ href = _decode_bing_redirect(href_raw)+ title = _strip_tags(title_match.group(2))+ if not href or href in seen:+ continue+ seen.add(href)+ snippet_match = re.search(r"<p>(.*?)</p>", block, flags=re.IGNORECASE | re.DOTALL)+ snippet = _strip_tags(snippet_match.group(1)) if snippet_match else ""+ rows.append({"title": title or f"Result {len(rows) + 1}", "url": href, "snippet": snippet})+ if len(rows) >= max_results:+ break++ return rows+++def _search_free_sync(+ query: str, max_results: int, timeout_seconds: int+) -> tuple[str, list[dict[str, str]]]:+ errors: list[str] = []+ engines = [+ ("duckduckgo", _search_duckduckgo_sync),+ ("duckduckgo-jina", _search_duckduckgo_via_jina_sync),+ ("bing", _search_bing_sync),+ ]+ for engine_name, runner in engines:+ try:+ rows = runner(query, max_results, timeout_seconds)+ except Exception as exc:+ errors.append(f"{engine_name}: {exc}")+ continue+ if rows:+ return engine_name, rows+ errors.append(f"{engine_name}: empty result")+ raise RuntimeError(" | ".join(errors))+++def _engine_display_name(engine: str) -> str:+ mapping = {+ "duckduckgo": "DuckDuckGo",+ "duckduckgo-jina": "DuckDuckGo (via jina.ai)",+ "bing": "Bing",+ }+ return mapping.get(engine, engine)+++def _parse_perplexity_citations(data: dict[str, Any]) -> list[str]:+ for key in ("citations", "search_results", "web_search_results", "sources"):+ entries = data.get(key)+ if not isinstance(entries, list):+ continue+ urls: list[str] = []+ for item in entries:+ if isinstance(item, str):+ urls.append(item)+ elif isinstance(item, dict):+ maybe_url = item.get("url") or item.get("link") or item.get("source_url")+ if maybe_url:+ urls.append(str(maybe_url))+ if urls:+ return urls+ return []+++def _perplexity_search_sync(query: str, max_results: int, timeout_seconds: int) -> dict[str, Any]:+ perplexity_key = os.environ.get("PERPLEXITY_API_KEY", "")+ if not perplexity_key:+ raise ValueError("PERPLEXITY_API_KEY is not set")++ payload = {+ "model": os.environ.get("PPLX_MODEL", "sonar-pro"),+ "messages": [+ {"role": "system", "content": "Provide concise answer and include citations."},+ {"role": "user", "content": query},+ ],+ "max_tokens": 1024,+ "temperature": 0.2,+ "stream": False,+ }+ response = _http_request(+ "POST",+ os.environ.get("PPLX_API_URL", "https://api.perplexity.ai/chat/completions"),+ headers={"Authorization": f"Bearer {perplexity_key}", "Content-Type": "application/json"},+ json=payload,+ timeout=timeout_seconds,+ )+ response.raise_for_status()+ data = response.json()++ answer = ""+ choices = data.get("choices")+ if isinstance(choices, list) and choices and isinstance(choices[0], dict):+ answer = choices[0].get("message", {}).get("content", "")++ return {+ "provider": "perplexity",+ "answer": (answer or "").strip(),+ "urls": _parse_perplexity_citations(data)[:max_results],+ }+++def _serper_search_sync(query: str, max_results: int, timeout_seconds: int) -> dict[str, Any]:+ serper_key = os.environ.get("SERPER_API_KEY", "")+ if not serper_key:+ raise ValueError("SERPER_API_KEY is not set")++ response = _http_request(+ "POST",+ "https://google.serper.dev/search",+ headers={"X-API-KEY": serper_key, "Content-Type": "application/json"},+ json={"q": query, "num": max_results},+ timeout=timeout_seconds,+ )+ response.raise_for_status()+ data = response.json()+ urls: list[str] = []+ organic = data.get("organic", [])+ if isinstance(organic, list):+ for item in organic[:max_results]:+ if isinstance(item, dict) and item.get("link"):+ urls.append(str(item["link"]))+ return {"provider": "serper", "answer": "", "urls": urls}+++def _jina_search_sync(query: str, timeout_seconds: int) -> dict[str, Any]:+ jina_key = os.environ.get("JINA_API_KEY", "")+ if not jina_key:+ raise ValueError("JINA_API_KEY is not set")++ payload = {+ "model": "jina-deepsearch-v1",+ "messages": [{"role": "user", "content": query}],+ "stream": False,+ "reasoning_effort": "low",+ }+ response = _http_request(+ "POST",+ "https://deepsearch.jina.ai/v1/chat/completions",+ headers={"Authorization": f"Bearer {jina_key}", "Content-Type": "application/json"},+ json=payload,+ timeout=timeout_seconds,+ )+ response.raise_for_status()+ data = response.json()++ answer = ""+ choices = data.get("choices")+ if isinstance(choices, list) and choices and isinstance(choices[0], dict):+ answer = choices[0].get("message", {}).get("content", "")+ urls = re.findall(r"https?://[^\s)\]>\"']+", answer or "")+ return {"provider": "jina", "answer": (answer or "").strip(), "urls": urls}+++@tool(+ name="mcp_free_search",+ description="Free search via DuckDuckGo. Input query and return ranked URLs with snippets.",+)+async def mcp_free_search(query: str, max_results: int = 8, timeout_seconds: int = 20) -> str:+ query = (query or "").strip()+ if not query:+ return "[ERROR]: query cannot be empty."++ max_results = max(1, min(max_results, 20))+ timeout_seconds = max(5, min(timeout_seconds, 60))+ try:+ engine_used, rows = await asyncio.to_thread(+ _search_free_sync, query, max_results, timeout_seconds+ )+ except Exception as exc:+ return f"[ERROR]: free search failed: {exc}"++ if not rows:+ return f"No search results for: {query}"++ lines = [f"Free search results ({_engine_display_name(engine_used)}) for: {query}"]+ for idx, row in enumerate(rows, 1):+ lines.append(f"{idx}. {row['title']}")+ lines.append(f" URL: {row['url']}")+ if row.get("snippet"):+ lines.append(f" Snippet: {row['snippet']}")+ return "\n".join(lines)+++@tool(+ name="mcp_paid_search",+ description="Paid search via Perplexity/SERPER/JINA. Support provider=auto|perplexity|serper|jina.",+)+async def mcp_paid_search(+ query: str,+ provider: str = "auto",+ max_results: int = 8,+ timeout_seconds: int = 45,+) -> str:+ query = (query or "").strip()+ if not query:+ return "[ERROR]: query cannot be empty."++ provider = (provider or "auto").strip().lower()+ if provider not in {"auto", "jina", "serper", "perplexity"}:+ return "[ERROR]: provider must be one of auto|jina|serper|perplexity."++ timeout_seconds = max(10, min(timeout_seconds, 120))+ max_results = max(1, min(max_results, 20))++ runners = {+ "jina": lambda: _jina_search_sync(query=query, timeout_seconds=timeout_seconds),+ "serper": lambda: _serper_search_sync(+ query=query, max_results=max_results, timeout_seconds=timeout_seconds+ ),+ "perplexity": lambda: _perplexity_search_sync(+ query=query, max_results=max_results, timeout_seconds=timeout_seconds+ ),+ }+ order = [provider] if provider != "auto" else ["perplexity", "serper", "jina"]++ errors: list[str] = []+ for name in order:+ try:+ result = await asyncio.to_thread(runners[name])+ except Exception as exc:+ errors.append(f"{name}: {exc}")+ continue++ answer = str(result.get("answer", "") or "").strip()+ urls = [str(u) for u in (result.get("urls", []) or []) if u][:max_results]+ lines = [f"Paid search provider: {name}"]+ if answer:+ lines.append("Answer:")+ lines.append(answer)+ if urls:+ lines.append("URLs:")+ for idx, url in enumerate(urls, 1):+ lines.append(f"{idx}. {url}")+ if not answer and not urls:+ lines.append("No usable result payload.")+ return "\n".join(lines)++ return "[ERROR]: paid search failed. " + " | ".join(errors)diff --git a/jiuwenclaw/agentserver/tools/todo_toolkits.py b/jiuwenclaw/agentserver/tools/todo_toolkits.pynew file mode 100644index 0000000000..a2c31bdedc--- /dev/null+++ b/jiuwenclaw/agentserver/tools/todo_toolkits.py@@ -0,0 +1,369 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Todo toolkit for agent task tracking.++Provides todo_create, todo_complete, todo_insert, todo_remove tools that persist+tasks to a markdown file under the predefined session directory. Tools can be+registered in the openJiuwen Runner via TodoToolkit.get_tools().+"""++from __future__ import annotations++import os+import threading+from enum import Enum+from pathlib import Path+from typing import ClassVar, Dict, List++from pydantic import BaseModel++from openjiuwen.core.foundation.tool import LocalFunction, Tool, ToolCard++from jiuwenclaw.paths import get_workspace_dir+++class TaskStatus(str, Enum):+ WAITING = "waiting"+ RUNNING = "running"+ COMPLETED = "completed"+ CANCELLED = "cancelled"+++class TodoTask(BaseModel):+ idx: int+ tasks: str+ status: TaskStatus+ result: str = ""+++class TodoToolkit:+ """Toolkit for agent todo task tracking. Persists tasks to markdown under session dir."""++ TODO_FILENAME = "todo.md"++ # Markdown line format: - [ ] 1. task | status or - [x] 1. task | status | result+ # parts[0]=task, parts[1]=status, parts[2]=result (optional)+ PARTS_MIN_COUNT_WITH_RESULT = 3 # 至少 3 段才有 result+ PARTS_INDEX_RESULT = 2 # result 在 split("|") 后的索引++ # 按 session_id 分组的文件锁,防止并发任务对同一 todo.md 进行 read-modify-write 时丢失更新+ _session_locks: ClassVar[Dict[str, threading.Lock]] = {}+ _meta_lock: ClassVar[threading.Lock] = threading.Lock()++ @classmethod+ def _get_session_lock(cls, session_id: str) -> threading.Lock:+ """获取指定 session 的文件操作锁(线程安全)."""+ with cls._meta_lock:+ if session_id not in cls._session_locks:+ cls._session_locks[session_id] = threading.Lock()+ return cls._session_locks[session_id]++ def __init__(self, session_id: str, todo_dir: Path | None = None):+ """Initialize TodoToolkit for a session.++ Args:+ session_id: Session/conversation identifier for scoping todo files.+ todo_dir: Optional custom directory. Defaults to workspace/session/{session_id}/.+ """+ self.session_id = session_id+ self.todo_dir = todo_dir or (+ get_workspace_dir() / "session" / session_id+ )+ self.todo_dir.mkdir(parents=True, exist_ok=True)+ self._todo_path = self.todo_dir / self.TODO_FILENAME++ def _load_tasks(self) -> List[TodoTask]:+ """Load tasks from markdown file."""+ if not self._todo_path.exists():+ return []+ tasks: List[TodoTask] = []+ with open(self._todo_path, "r", encoding="utf-8") as f:+ for line in f:+ line = line.strip()+ if not line or line.startswith("#"):+ continue+ # Format: - [ ] 1. task | status or - [x] 1. task | status | result+ if "[-]" in line:+ status = TaskStatus.CANCELLED+ checked = False+ else:+ checked = "[x]" in line.lower() or "[√]" in line+ status = TaskStatus.COMPLETED if checked else TaskStatus.WAITING+ result = ""+ parts = [p.strip() for p in line.split("|")]+ if len(parts) >= self.PARTS_MIN_COUNT_WITH_RESULT:+ result = parts[self.PARTS_INDEX_RESULT]+ # 解析行:"- [ ] 1. xxx" / "- [x] 1. xxx"+ rest = line.replace("- [x]", "").replace("- [-]", "").replace("- [ ]", "").strip()+ if "." in rest:+ idx_str, _, task_text = rest.partition(".")+ task_text = task_text.split("|")[0].strip() # drop | status | result+ try:+ idx = int(idx_str.strip())+ tasks.append(+ TodoTask(idx=idx, tasks=task_text, status=status, result=result)+ )+ except ValueError:+ pass+ return sorted(tasks, key=lambda t: t.idx)++ def _save_tasks(self, tasks: List[TodoTask]) -> None:+ """Save tasks to markdown file."""+ lines = ["# Todo List", ""]+ for t in sorted(tasks, key=lambda x: x.idx):+ if t.status == TaskStatus.COMPLETED:+ checkbox = "[x]"+ elif t.status == TaskStatus.CANCELLED:+ checkbox = "[-]"+ else:+ checkbox = "[ ]"+ if t.result:+ lines.append(f"- {checkbox} {t.idx}. {t.tasks} | {t.status.value} | {t.result}")+ else:+ lines.append(f"- {checkbox} {t.idx}. {t.tasks} | {t.status.value}")+ self.todo_dir.mkdir(parents=True, exist_ok=True)+ with open(self._todo_path, "w", encoding="utf-8") as f:+ f.write("\n".join(lines) + "\n")++ def _append_todo_list(self, message: str) -> str:+ """Append current todo list to a status message."""+ current = self.todo_list()+ return f"{message}\n\nCurrent todo list:\n{current}"++ def todo_create(self, tasks: List[str]) -> str:+ """Create a list of todo tasks. Fails if a todo list already exists.++ Args:+ tasks: List of task descriptions to create.++ Returns:+ Status message (success or error) and current todo list.+ """+ with self._get_session_lock(self.session_id):+ if self._todo_path.exists():+ return self._append_todo_list(+ f"Error: A todo list for session {self.session_id} already exists. Use todo_insert to add more tasks."+ )+ todo_tasks = [+ TodoTask(idx=i + 1, tasks=t, status=TaskStatus.WAITING, result="")+ for i, t in enumerate(tasks)+ ]+ self._save_tasks(todo_tasks)+ return self._append_todo_list(f"Created {len(todo_tasks)} todo tasks.")++ def todo_complete(self, idx: int, result: str = "") -> str:+ """Mark a task as completed and save a brief result.++ Args:+ idx: 1-based index of the task.+ result: Brief result or outcome of the task.++ Returns:+ Status message and current todo list.+ """+ with self._get_session_lock(self.session_id):+ todo_tasks = self._load_tasks()+ for t in todo_tasks:+ if t.idx == idx:+ t.status = TaskStatus.COMPLETED+ t.result = result or "done"+ self._save_tasks(todo_tasks)+ return self._append_todo_list(f"Task {idx} marked as completed.")+ return self._append_todo_list(f"Error: Task {idx} not found.")++ def todo_insert(self, idx: int, tasks: List[str]) -> str:+ """Insert new tasks at the given index. Existing tasks are shifted.++ Args:+ idx: 1-based index where to insert (tasks will start at this index).+ tasks: New task descriptions to insert.++ Returns:+ Status message and current todo list.+ """+ with self._get_session_lock(self.session_id):+ todo_tasks = self._load_tasks()+ if not self._todo_path.exists():+ # 锁内直接创建,避免释放锁后被其他线程抢先+ new_tasks = [+ TodoTask(idx=i + 1, tasks=t, status=TaskStatus.WAITING, result="")+ for i, t in enumerate(tasks)+ ]+ self._save_tasks(new_tasks)+ return self._append_todo_list(f"Created {len(new_tasks)} todo tasks.")+ new_tasks = [+ TodoTask(idx=i + idx, tasks=t, status=TaskStatus.WAITING, result="")+ for i, t in enumerate(tasks)+ ]+ # Shift existing tasks at or after idx+ for t in todo_tasks:+ if t.idx >= idx:+ t.idx += len(tasks)+ todo_tasks.extend(new_tasks)+ todo_tasks.sort(key=lambda x: x.idx)+ self._save_tasks(todo_tasks)+ return self._append_todo_list(f"Inserted {len(tasks)} task(s) at index {idx}.")++ def todo_remove(self, idx: int) -> str:+ """Remove a task and renumber remaining tasks.++ Args:+ idx: 1-based index of the task to remove.++ Returns:+ Status message and current todo list.+ """+ with self._get_session_lock(self.session_id):+ todo_tasks = self._load_tasks()+ found = [t for t in todo_tasks if t.idx == idx]+ if not found:+ return self._append_todo_list(f"Error: Task {idx} not found.")+ todo_tasks = [t for t in todo_tasks if t.idx != idx]+ # Renumber+ for i, t in enumerate(todo_tasks, 1):+ t.idx = i+ self._save_tasks(todo_tasks)+ return self._append_todo_list(f"Removed task {idx}.")++ def todo_list(self) -> str:+ """List all current todo tasks.++ Returns:+ Formatted string of tasks.+ """+ todo_tasks = self._load_tasks()+ if not todo_tasks:+ return "No todo tasks."+ lines = []+ for t in todo_tasks:+ status_icon = "[x]" if t.status == TaskStatus.COMPLETED else "[ ]"+ suffix = f" | {t.result}" if t.result else ""+ lines.append(f"{status_icon} {t.idx}. {t.tasks}{suffix}")+ return "\n".join(lines)++ def get_tools(self) -> List[Tool]:+ """Return all todo tools for registration in the openJiuwen Runner.++ Usage:+ toolkit = TodoToolkit(session_id="abc123")+ tools = toolkit.get_tools()+ Runner.resource_mgr.add_tool(tools)+ for t in tools:+ agent.ability_manager.add(t.card)++ Returns:+ List of Tool instances (LocalFunction) ready for Runner/agent registration.+ """+ session_id = self.session_id++ def make_tool(+ name: str,+ description: str,+ input_params: dict,+ func,+ ) -> Tool:+ card = ToolCard(+ id=f"{name}_{session_id}",+ name=name,+ description=description,+ input_params=input_params,+ )+ return LocalFunction(card=card, func=func)++ def todo_create_wrapper(tasks: List[str]) -> str:+ return self.todo_create(tasks)++ def todo_complete_wrapper(idx: int, result: str = "") -> str:+ return self.todo_complete(idx, result)++ def todo_insert_wrapper(idx: int, tasks: List[str]) -> str:+ return self.todo_insert(idx, tasks)++ def todo_remove_wrapper(idx: int) -> str:+ return self.todo_remove(idx)++ def todo_list_wrapper() -> str:+ return self.todo_list()++ return [+ make_tool(+ name="todo_create",+ description=(+ "Create a list of todo tasks. Cannot be called when a todo list already exists. "+ "Use this to plan and track work. Pass a list of task descriptions."+ ),+ input_params={+ "type": "object",+ "properties": {+ "tasks": {+ "type": "array",+ "items": {"type": "string"},+ "description": "List of task descriptions to create",+ }+ },+ "required": ["tasks"],+ },+ func=todo_create_wrapper,+ ),+ make_tool(+ name="todo_complete",+ description="Mark a task as completed and save a brief result.",+ input_params={+ "type": "object",+ "properties": {+ "idx": {+ "type": "integer",+ "description": "1-based index of the task to complete",+ },+ "result": {+ "type": "string",+ "description": "Brief result or outcome",+ "default": "",+ },+ },+ "required": ["idx"],+ },+ func=todo_complete_wrapper,+ ),+ make_tool(+ name="todo_insert",+ description="Insert new tasks at the given index. Existing tasks are shifted.",+ input_params={+ "type": "object",+ "properties": {+ "idx": {+ "type": "integer",+ "description": "1-based index where to insert",+ },+ "tasks": {+ "type": "array",+ "items": {"type": "string"},+ "description": "New task descriptions to insert",+ },+ },+ "required": ["idx", "tasks"],+ },+ func=todo_insert_wrapper,+ ),+ make_tool(+ name="todo_remove",+ description="Remove a task by index. Remaining tasks are renumbered.",+ input_params={+ "type": "object",+ "properties": {+ "idx": {+ "type": "integer",+ "description": "1-based index of the task to remove",+ },+ },+ "required": ["idx"],+ },+ func=todo_remove_wrapper,+ ),+ make_tool(+ name="todo_list",+ description="List all current todo tasks with their status.",+ input_params={"type": "object", "properties": {}},+ func=todo_list_wrapper,+ ),+ ]diff --git a/jiuwenclaw/agentserver/tools/web_fetch_tools.py b/jiuwenclaw/agentserver/tools/web_fetch_tools.pynew file mode 100644index 0000000000..5a399f164a--- /dev/null+++ b/jiuwenclaw/agentserver/tools/web_fetch_tools.py@@ -0,0 +1,191 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Web fetch tools implemented with openjiuwen @tool style."""++from __future__ import annotations++import asyncio+import re+from html import unescape+from urllib.parse import parse_qs, unquote, urlparse++import requests+from openjiuwen.core.foundation.tool import tool++_USER_AGENT = (+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "+ "AppleWebKit/537.36 (KHTML, like Gecko) "+ "Chrome/124.0.0.0 Safari/537.36"+)+_REQUEST_HEADERS = {"User-Agent": _USER_AGENT}+_CHARSET_HEADER_RE = re.compile(r"charset=([^\s;]+)", flags=re.IGNORECASE)+_CHARSET_META_RE = re.compile(+ br"""<meta[^>]+charset=["']?\s*([A-Za-z0-9._-]+)""",+ flags=re.IGNORECASE,+)+++def _extract_declared_charset(response: requests.Response) -> str:+ content_type = response.headers.get("Content-Type", "") or ""+ header_match = _CHARSET_HEADER_RE.search(content_type)+ if header_match:+ return header_match.group(1).strip().strip("\"'")++ head_bytes = (response.content or b"")[:4096]+ meta_match = _CHARSET_META_RE.search(head_bytes)+ if meta_match:+ try:+ return meta_match.group(1).decode("ascii", errors="ignore").strip()+ except Exception:+ return ""+ return ""+++def _decode_response_text(response: requests.Response) -> str:+ raw = response.content or b""+ if not raw:+ return ""++ declared = (_extract_declared_charset(response) or "").lower()+ response_encoding = (response.encoding or "").strip().lower()+ apparent = (response.apparent_encoding or "").strip().lower()++ # Prefer explicit non-latin declaration first; then utf-8; then heuristics.+ candidates: list[str] = []+ if declared and declared not in {"iso-8859-1", "latin-1", "latin1"}:+ candidates.append(declared)++ candidates.extend(+ [+ "utf-8",+ apparent,+ response_encoding,+ "gb18030",+ "big5",+ "shift_jis",+ "cp1252",+ "iso-8859-1",+ ]+ )++ seen: set[str] = set()+ for enc in candidates:+ enc = (enc or "").strip().lower()+ if not enc or enc in seen:+ continue+ seen.add(enc)+ try:+ return raw.decode(enc, errors="strict")+ except Exception:+ continue++ # Last-resort fallback.+ return raw.decode("utf-8", errors="replace")+++def _http_get(url: str, **kwargs) -> requests.Response:+ """Try normal requests first; retry without env proxies on ProxyError."""+ try:+ return requests.get(url, **kwargs)+ except requests.exceptions.ProxyError:+ with requests.Session() as session:+ session.trust_env = False+ return session.get(url, **kwargs)+++def _clip_text(value: str, max_chars: int) -> str:+ if len(value) <= max_chars:+ return value+ return f"{value[:max_chars]}\n...[truncated]"+++def _strip_tags(value: str) -> str:+ value = re.sub(r"<[^>]+>", " ", value)+ return unescape(re.sub(r"\s+", " ", value)).strip()+++def _decode_ddg_redirect(url: str) -> str:+ parsed = urlparse(url)+ if parsed.path != "/l/":+ return url+ query = parse_qs(parsed.query)+ target = query.get("uddg")+ if not target:+ return url+ return unquote(target[0])+++def _normalize_url(url: str) -> str:+ raw = (url or "").strip()+ if not raw:+ return raw+ decoded = _decode_ddg_redirect(raw)+ if decoded.startswith(("http://", "https://")):+ return decoded+ return f"https://{decoded}"+++def _fetch_via_jina_reader_sync(url: str, timeout_seconds: int) -> dict[str, str | int]:+ reader_url = f"https://r.jina.ai/{url}"+ response = _http_get(reader_url, headers=_REQUEST_HEADERS, timeout=timeout_seconds)+ response.raise_for_status()+ return {+ "url": url,+ "status_code": response.status_code,+ "title": "",+ "content": _decode_response_text(response).strip(),+ }+++def _fetch_webpage_sync(url: str, timeout_seconds: int) -> dict[str, str | int]:+ response = _http_get(url, headers=_REQUEST_HEADERS, timeout=timeout_seconds)+ if response.status_code in {401, 403, 429}:+ return _fetch_via_jina_reader_sync(url, timeout_seconds)+ response.raise_for_status()++ text = _decode_response_text(response)+ content_type = response.headers.get("Content-Type", "")+ title_match = re.search(r"<title[^>]*>(.*?)</title>", text, flags=re.IGNORECASE | re.DOTALL)+ title = _strip_tags(title_match.group(1)) if title_match else ""++ if "html" in content_type.lower():+ text = re.sub(r"<script[^>]*>.*?</script>", " ", text, flags=re.IGNORECASE | re.DOTALL)+ text = re.sub(r"<style[^>]*>.*?</style>", " ", text, flags=re.IGNORECASE | re.DOTALL)+ text = _strip_tags(text)+ else:+ text = re.sub(r"\s+", " ", text).strip()++ return {+ "url": response.url,+ "status_code": response.status_code,+ "title": title,+ "content": text,+ }+++@tool(+ name="mcp_fetch_webpage",+ description="Fetch webpage text content from URL. Returns status/title/plain text content.",+)+async def mcp_fetch_webpage(url: str, max_chars: int = 12000, timeout_seconds: int = 30) -> str:+ url = _normalize_url(url)+ if not url:+ return "[ERROR]: url cannot be empty."++ max_chars = max(500, min(max_chars, 50000))+ timeout_seconds = max(5, min(timeout_seconds, 120))++ try:+ data = await asyncio.to_thread(_fetch_webpage_sync, url, timeout_seconds)+ except Exception as exc:+ return f"[ERROR]: failed to fetch webpage: {exc}"++ lines = [+ f"URL: {data.get('url', url)}",+ f"Status: {data.get('status_code', '')}",+ ]+ if data.get("title"):+ lines.append(f"Title: {data['title']}")+ lines.append("Content:")+ lines.append(_clip_text(str(data.get("content", "") or ""), max_chars) or "[empty]")+ return "\n".join(lines)diff --git a/jiuwenclaw/app.py b/jiuwenclaw/app.pynew file mode 100644index 0000000000..d67c75e5b8--- /dev/null+++ b/jiuwenclaw/app.py@@ -0,0 +1,1057 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.+# 启动入口:WebChannel + FeishuChannel 共用一个 ChannelManager,端到端联调 JiuWenClaw。+# 环境变量从 .env 加载。++from __future__ import annotations++import asyncio+import logging+import os+import secrets+import shutil+import sys+import time+import re+import subprocess+++from pathlib import Path+from dotenv import load_dotenv+from typing import Any+import psutil++logging.basicConfig(+ level=logging.INFO,+ format="%(asctime)s.%(msecs)03d %(name)s %(levelname)s: %(message)s",+ datefmt="%Y-%m-%d %H:%M:%S",+)+logger = logging.getLogger(__name__)++# 项目根目录,用于查找 workspace、agentserver 等目录+from jiuwenclaw.paths import get_root_dir, get_config_dir, is_package_installation++_PROJECT_ROOT = get_root_dir()+_ENV_FILE = _PROJECT_ROOT / ".env"+load_dotenv(dotenv_path=_ENV_FILE)+++def _get_package_dir() -> Path:+ """Get the jiuwenclaw package directory (for accessing package-internal files)."""+ if is_package_installation():+ # In package mode, app.py is at site-packages/jiuwenclaw/app.py+ # So parent is site-packages/jiuwenclaw/+ return Path(__file__).resolve().parent+ else:+ # In source mode, app.py is at project root+ # So parent.parent is project root/jiuwenclaw/+ return Path(__file__).resolve().parent.parent / "jiuwenclaw"+++# 在导入 config 模块前,将其路径添加到 sys.path+_config_dir = get_config_dir()+os.environ["JIUWENCLAW_CONFIG_DIR"] = str(_config_dir)+if str(_config_dir) not in sys.path:+ sys.path.insert(0, str(_config_dir))++# 动态导入 config 模块+def _load_config_module():+ """Dynamically load config module from correct location."""+ import importlib.util+ config_dir = get_config_dir()+ config_path = config_dir / "config.py"+ spec = importlib.util.spec_from_file_location("config_module", str(config_path))+ if spec and spec.loader:+ module = importlib.util.module_from_spec(spec)+ sys.modules["config_module"] = module+ spec.loader.exec_module(module)+ return module+ raise ImportError(f"Cannot load config module from {config_path}")++_config_module = _load_config_module()+get_config = _config_module.get_config+set_config = _config_module.set_config+update_heartbeat_in_config = _config_module.update_heartbeat_in_config+update_channel_in_config = _config_module.update_channel_in_config+update_browser_in_config = _config_module.update_browser_in_config+++# 仅满足 Channel 构造所需,不入队、不路由;仅用 channel_manager + message_handler 做入站/出站+class _DummyBus:+ async def publish_user_messages(self, msg): # noqa: ANN001, ARG002+ pass++ async def route_incoming_message(self, msg): # noqa: ANN001, ARG002+ pass++ async def route_user_message(self, msg):+ pass+++# 仅转发到 Agent 的 Web method+_FORWARD_REQ_METHODS = frozenset({+ "chat.send",+ "chat.interrupt",+ "chat.resume",+ "chat.user_answer",+ # "tts.synthesize",+ "skills.marketplace.list",+ "skills.list",+ "skills.installed",+ "skills.get",+ "skills.install",+ "skills.import_local",+ "skills.marketplace.add",+ "skills.marketplace.remove",+ "skills.marketplace.toggle",+ "skills.uninstall",+})++_FORWARD_NO_LOCAL_HANDLER_METHODS = frozenset({+ "skills.marketplace.list",+ "skills.list",+ "skills.installed",+ "skills.get",+ "skills.install",+ "skills.import_local",+ "skills.marketplace.add",+ "skills.marketplace.remove",+ "skills.marketplace.toggle",+ "skills.uninstall",+})++# 配置信息:config.get 返回、config.set 可修改的键(前端 param 名 -> 环境变量名)+_CONFIG_SET_ENV_MAP = {+ "model_provider": "MODEL_PROVIDER",+ "model": "MODEL_NAME",+ "api_base": "API_BASE",+ "api_key": "API_KEY",+ "email_address": "EMAIL_ADDRESS",+ "email_token": "EMAIL_TOKEN",+ "embed_api_key": "EMBED_API_KEY",+ "embed_api_base": "EMBED_API_BASE",+ "embed_model": "EMBED_MODEL",+ "jina_api_key": "JINA_API_KEY",+ "serper_api_key": "SERPER_API_KEY",+ "perplexity_api_key": "PERPLEXITY_API_KEY",+ "evolution_auto_scan": "EVOLUTION_AUTO_SCAN",+}+# 配置项键名列表,用于日志等说明+CONFIG_KEYS = tuple(_CONFIG_SET_ENV_MAP.keys())+++def _clear_agent_config_cache() -> None:+ """写回 config.yaml 后清除 agent 侧配置缓存,使下次读取时得到最新文件内容。"""+ try:+ from jiuwenclaw.agentserver.memory.config import clear_config_cache+ clear_config_cache()+ except Exception: # noqa: BLE001+ pass+++def _make_session_id() -> str:+ # 与前端 generateSessionId 保持一致:毫秒时间戳(16进制) + 6位随机16进制+ ts = format(int(time.time() * 1000), "x")+ suffix = secrets.token_hex(3)+ return f"sess_{ts}_{suffix}"+++def _register_web_handlers(+ channel,+ agent_client=None,+ message_handler=None,+ channel_manager=None,+ on_config_saved=None,+ heartbeat_service=None,+):+ """注册 Web 前端需要的 method 与 on_connect。+ on_config_saved: 可选,config.set 写回 .env 后调用的回调;返回 True 表示已热更新未重启,False 表示已安排进程重启。+ heartbeat_service: 可选,GatewayHeartbeatService 实例,用于处理 heartbeat.get_conf / heartbeat.set_conf。+ """+ from jiuwenclaw.schema.message import Message, EventType++ def _resolve(ref, key="value"):+ """若为 ref 字典则取 key(无则返回 None),否则返回自身。"""+ if isinstance(ref, dict):+ return ref.get(key)+ return ref++ def _resolve_env_vars(value: Any) -> Any:+ """Recursively resolve environment variables in config values."""+ if isinstance(value, str):+ pattern = r'\$\{([^:}]+)(?::-([^}]*))?\}'++ def replace_env(match):+ var_name = match.group(1)+ default = match.group(2) if match.group(2) is not None else ""+ return os.getenv(var_name, default)++ return re.sub(pattern, replace_env, value)+ elif isinstance(value, dict):+ return {k: _resolve_env_vars(v) for k, v in value.items()}+ elif isinstance(value, list):+ return [_resolve_env_vars(item) for item in value]+ else:+ return value++ async def _on_connect(ws):+ ac = _resolve(agent_client)+ if ac is None or not getattr(ac, "server_ready", False):+ logger.debug("[_on_connect] Agent 未就绪,跳过 connection.ack")+ return+ sid = _make_session_id()+ ack_msg = Message(+ id=f"ack-{sid}",+ type="event",+ channel_id=channel.channel_id,+ session_id=sid,+ params={},+ timestamp=time.time(),+ ok=True,+ event_type=EventType.CONNECTION_ACK,+ payload={+ "session_id": sid,+ "mode": "BUILD",+ "tools": [],+ "protocol_version": "1.0",+ },+ )+ mh = _resolve(message_handler)+ if mh:+ await mh.publish_robot_messages(ack_msg)+ else:+ await channel.send(ack_msg)++ channel.on_connect(_on_connect)++ async def _config_get(ws, req_id, params, session_id):+ # 返回 _CONFIG_SET_ENV_MAP 里所有键对应的环境变量当前值+ payload = {+ param_key: (os.getenv(env_key) or "")+ for param_key, env_key in _CONFIG_SET_ENV_MAP.items()+ }+ await channel.send_response(ws, req_id, ok=True, payload=payload)++ def _persist_env_updates(updates: dict[str, str]) -> None:+ """把已更新的环境变量写回 .env(仅覆盖或追加对应 KEY=value 行)。"""+ env_path = _ENV_FILE+ if not updates:+ return+ try:+ lines: list[str] = []+ if env_path.is_file():+ with open(env_path, "r", encoding="utf-8") as f:+ lines = f.readlines()+ updated_keys = set(updates.keys())+ new_lines: list[str] = []+ for line in lines:+ stripped = line.strip()+ found = False+ for env_key, value in updates.items():+ if stripped.startswith(env_key + "="):+ new_lines.append(f'{env_key}="{value}"\n' if value else f"{env_key}=\n")+ found = True+ break+ if not found:+ new_lines.append(line)+ for env_key, value in updates.items():+ if not any(s.strip().startswith(env_key + "=") for s in new_lines):+ new_lines.append(f'{env_key}="{value}"\n' if value else f"{env_key}=\n")+ env_path.parent.mkdir(parents=True, exist_ok=True)+ with open(env_path, "w", encoding="utf-8") as f:+ f.writelines(new_lines)+ except OSError as e:+ logger.warning("[config.set] 写回 .env 失败: %s", e)++ async def _config_set(ws, req_id, params, session_id):+ """根据前端消息内容更新配置(仅允许 _CONFIG_SET_ENV_MAP 中的键),并写回 .env。"""+ if not isinstance(params, dict):+ await channel.send_response(ws, req_id, ok=False, error="params must be object", code="BAD_REQUEST")+ return+ updates: dict[str, str] = {}+ for param_key, env_key in _CONFIG_SET_ENV_MAP.items():+ if param_key not in params:+ continue+ val = params[param_key]+ if val is None:+ updates[env_key] = ""+ else:+ updates[env_key] = str(val).strip()+ for env_key, value in updates.items():+ os.environ[env_key] = value+ applied_without_restart = True+ if updates:+ _persist_env_updates(updates)+ logger.info("[config.set] 已更新: %s", list(updates.keys()))+ if on_config_saved:+ applied_without_restart = bool(on_config_saved())+ updated_param_keys = [k for k, e in _CONFIG_SET_ENV_MAP.items() if e in updates]+ await channel.send_response(+ ws, req_id, ok=True,+ payload={"updated": updated_param_keys, "applied_without_restart": applied_without_restart},+ )++ async def _channel_get(ws, req_id, params, session_id):+ """返回已注册的 channel 列表."""+ cm = _resolve(channel_manager)+ if cm is not None:+ channels = [{"channel_id": cid} for cid in cm.enabled_channels]+ else:+ channels = []+ await channel.send_response(ws, req_id, ok=True, payload={"channels": channels})++ async def _session_list(ws, req_id, params, session_id):+ """返回 workspace/session 下的 session_id 列表(子目录名)。"""+ limit = 20+ if isinstance(params, dict):+ raw_limit = params.get("limit")+ if isinstance(raw_limit, int):+ limit = raw_limit+ elif isinstance(raw_limit, str) and raw_limit.strip().isdigit():+ limit = int(raw_limit.strip())+ limit = max(1, min(limit, 200))++ workspace_session_dir = _PROJECT_ROOT / "workspace" / "session"+ if not workspace_session_dir.exists() or not workspace_session_dir.is_dir():+ sessions = []+ else:+ sessions = sorted(+ [d.name for d in workspace_session_dir.iterdir() if d.is_dir()],+ reverse=True,+ )+ sessions = sessions[:limit]+ await channel.send_response(ws, req_id, ok=True, payload={"sessions": sessions})++ async def _session_create(ws, req_id, params, session_id):+ """创建一个新 session(在 workspace/session 下创建一个新目录)。"""+ if not isinstance(params, dict):+ await channel.send_response(+ ws, req_id, ok=False, error="params must be object", code="BAD_REQUEST",+ )+ return+ session_id_to_create = params.get("session_id")+ if not isinstance(session_id_to_create, str) or not session_id_to_create.strip():+ await channel.send_response(+ ws, req_id, ok=False, error="session_id is required", code="BAD_REQUEST",+ )+ return+ session_id_to_create = session_id_to_create.strip()++ workspace_session_dir = _PROJECT_ROOT / "workspace" / "session"+ if not workspace_session_dir.exists():+ workspace_session_dir.mkdir(parents=True)+ session_dir = workspace_session_dir / session_id_to_create+ if session_dir.exists():+ await channel.send_response(+ ws, req_id, ok=False, error="session already exists", code="ALREADY_EXISTS",+ )+ return+ session_dir.mkdir()+ await channel.send_response(ws, req_id, ok=True, payload={"session_id": session_id_to_create})++ async def _session_delete(ws, req_id, params, session_id):+ """删除一个 session(在 workspace/session 下删除一个目录)。"""+ if not isinstance(params, dict):+ await channel.send_response(+ ws, req_id, ok=False, error="params must be object", code="BAD_REQUEST",+ )+ return+ session_id_to_delete = params.get("session_id")+ if not isinstance(session_id_to_delete, str) or not session_id_to_delete.strip():+ await channel.send_response(+ ws, req_id, ok=False, error="session_id is required", code="BAD_REQUEST",+ )+ return+ session_id_to_delete = session_id_to_delete.strip()++ workspace_session_dir = _PROJECT_ROOT / "workspace" / "session"+ session_dir = workspace_session_dir / session_id_to_delete+ if not session_dir.exists():+ await channel.send_response(+ ws, req_id, ok=False, error="session not found", code="NOT_FOUND",+ )+ return+ if not session_dir.is_dir():+ await channel.send_response(+ ws, req_id, ok=False, error="session is not a directory", code="BAD_REQUEST",+ )+ return+ shutil.rmtree(session_dir)+ await channel.send_response(ws, req_id, ok=True, payload={"session_id": session_id_to_delete})++ async def _path_get(ws, req_id, params, session_id):+ """读 browser.chrome_path 并返回给前端(会解析环境变量)。"""+ try:+ config_base = get_config()+ except FileNotFoundError:+ await channel.send_response(+ ws,+ req_id,+ ok=True,+ payload={"chrome_path": ""},+ )+ return++ if not isinstance(config_base, dict):+ config_base = {}++ config = _resolve_env_vars(config_base)+ browser_cfg = config.get("browser", {}) if isinstance(config, dict) else {}+ chrome_path = ""+ if isinstance(browser_cfg, dict):+ value = browser_cfg.get("chrome_path", "")+ if isinstance(value, str):+ chrome_path = value++ await channel.send_response(ws, req_id, ok=True, payload={"chrome_path": chrome_path})++ async def _path_set(ws, req_id, params, session_id):+ """更新 browser.chrome_path 并写回 config。"""+ if not isinstance(params, dict):+ await channel.send_response(ws, req_id, ok=False, error="params must be object", code="BAD_REQUEST")+ return++ chrome_path = params.get("chrome_path")+ if not isinstance(chrome_path, str) or not chrome_path.strip():+ await channel.send_response(ws, req_id, ok=False, error="chrome_path is required", code="BAD_REQUEST")+ return+ chrome_path = chrome_path.strip()++ try:+ update_browser_in_config({"chrome_path": chrome_path})+ _clear_agent_config_cache()+ except Exception as e: # noqa: BLE001+ logger.warning("[path.set] 写回 config.yaml 失败: %s", e)+ await channel.send_response(ws, req_id, ok=False, error=str(e), code="INTERNAL_ERROR")+ return++ await channel.send_response(ws, req_id, ok=True, payload={"chrome_path": chrome_path})++ async def _browser_start(ws, req_id, params, session_id):+ """收到 browser.start 请求时,启动浏览器客户端脚本。"""+ try:+ package_dir = _get_package_dir()+ script_path = package_dir / "agentserver" / "tools" / "browser_start_client.py"+ if not script_path.exists():+ # 可编辑安装时 package_dir 可能在 site-packages,脚本在源码树里+ script_path = _PROJECT_ROOT / "jiuwenclaw" / "agentserver" / "tools" / "browser_start_client.py"+ if not script_path.exists():+ await channel.send_response(+ ws,+ req_id,+ ok=False,+ error="browser_start_client.py not found",+ code="NOT_FOUND",+ )+ return++ # 异步启动浏览器+ # proc = await asyncio.create_subprocess_exec(+ # sys.executable,+ # str(script_path),+ # stdout=asyncio.subprocess.DEVNULL,+ # stderr=asyncio.subprocess.DEVNULL,+ # )+ # returncode = await proc.wait()++ # await channel.send_response(+ # ws,+ # req_id,+ # ok=True,+ # payload={"started": returncode == 0, "returncode": returncode},+ # )++ result = subprocess.run(+ [sys.executable, str(script_path)],+ stdout=subprocess.DEVNULL,+ stderr=subprocess.DEVNULL,+ )+ await channel.send_response(+ ws,+ req_id,+ ok=result.returncode == 0,+ payload={"returncode": result.returncode},+ )++ except Exception as e: # noqa: BLE001+ logger.exception("[browser.start] failed: %s", e)+ await channel.send_response(+ ws,+ req_id,+ ok=False,+ error=str(e),+ code="INTERNAL_ERROR",+ )++ async def _memory_compute(ws, req_id, params, session_id):++ process = psutil.Process()+ rss_bytes = process.memory_info().rss # 物理内存+ rss_mb = rss_bytes / (1024 * 1024)++ mem = psutil.virtual_memory()+ total_mb = mem.total / (1024 * 1024)+ available_mb = mem.available / (1024 * 1024)+ used_percent = mem.percent++ await channel.send_response(ws, req_id, ok=True,+ payload={"rss_mb": rss_mb, "total_mb": total_mb,+ "available_mb": available_mb})++++ async def _chat_send(ws, req_id, params, session_id):+ await channel.send_response(+ ws,+ req_id,+ ok=True,+ payload={"accepted": True, "session_id": session_id},+ )++ async def _chat_resume(ws, req_id, params, session_id):+ await channel.send_response(+ ws,+ req_id,+ ok=True,+ payload={"accepted": True, "session_id": session_id},+ )++ async def _chat_interrupt(ws, req_id, params, session_id):+ intent = params.get("intent") if isinstance(params, dict) else None+ payload = {"accepted": True, "session_id": session_id}+ if isinstance(intent, str) and intent:+ payload["intent"] = intent+ await channel.send_response(ws, req_id, ok=True, payload=payload)++ async def _chat_user_answer(ws, req_id, params, session_id):+ payload = {"accepted": True, "session_id": session_id}+ request_id = params.get("request_id") if isinstance(params, dict) else None+ if isinstance(request_id, str) and request_id:+ payload["request_id"] = request_id+ await channel.send_response(ws, req_id, ok=True, payload=payload)++ async def _heartbeat_get_conf(ws, req_id, params, session_id):+ """返回当前心跳配置(every / target / active_hours)。"""+ hb = _resolve(heartbeat_service)+ if hb is None:+ await channel.send_response(ws, req_id, ok=False, error="heartbeat service not available",+ code="SERVICE_UNAVAILABLE")+ return+ try:+ payload = dict(hb.get_heartbeat_conf())+ await channel.send_response(ws, req_id, ok=True, payload=payload)+ except Exception as e:+ logger.exception("[heartbeat.get_conf] %s", e)+ await channel.send_response(ws, req_id, ok=False, error=str(e), code="INTERNAL_ERROR")++ async def _heartbeat_set_conf(ws, req_id, params, session_id):+ """更新心跳配置并重启心跳服务;params 可含 every、target、active_hours。"""+ hb = _resolve(heartbeat_service)+ if hb is None:+ await channel.send_response(ws, req_id, ok=False, error="heartbeat service not available",+ code="SERVICE_UNAVAILABLE")+ return+ if not isinstance(params, dict):+ await channel.send_response(ws, req_id, ok=False, error="params must be object", code="BAD_REQUEST")+ return+ try:+ every = params.get("every")+ target = params.get("target")+ active_hours = params.get("active_hours")+ if every is not None:+ every = float(every)+ if target is not None:+ target = str(target)+ if active_hours is not None:+ if not isinstance(active_hours, dict):+ active_hours = None+ elif active_hours and ("start" not in active_hours or "end" not in active_hours):+ # 必须同时包含 start/end,否则视为清除时间段(始终生效)+ active_hours = None+ await hb.set_heartbeat_conf(every=every, target=target, active_hours=active_hours)+ payload = dict(hb.get_heartbeat_conf())+ try:+ update_heartbeat_in_config(payload)+ _clear_agent_config_cache()+ except Exception as e: # noqa: BLE001+ logger.warning("[heartbeat.set_conf] 写回 config.yaml 失败: %s", e)+ await channel.send_response(ws, req_id, ok=True, payload=payload)+ except ValueError as e:+ await channel.send_response(ws, req_id, ok=False, error=str(e), code="BAD_REQUEST")+ except Exception as e:+ logger.exception("[heartbeat.set_conf] %s", e)+ await channel.send_response(ws, req_id, ok=False, error=str(e), code="INTERNAL_ERROR")++ async def _channel_feishu_get_conf(ws, req_id, params, session_id):+ """返回 FeishuChannel 的当前配置(由 ChannelManager 管理)。"""+ cm = _resolve(channel_manager)+ if cm is None:+ await channel.send_response(+ ws,+ req_id,+ ok=False,+ error="channel manager not available",+ code="SERVICE_UNAVAILABLE",+ )+ return+ try:+ conf = cm.get_conf("feishu")+ await channel.send_response(ws, req_id, ok=True, payload={"config": conf})+ except Exception as e: # noqa: BLE001+ logger.exception("[channel.feishu.get_conf] %s", e)+ await channel.send_response(ws, req_id, ok=False, error=str(e), code="INTERNAL_ERROR")++ async def _channel_feishu_set_conf(ws, req_id, params, session_id):+ """更新 FeishuChannel 的配置,并按新配置重新实例化通道。"""+ cm = _resolve(channel_manager)+ if cm is None:+ await channel.send_response(+ ws,+ req_id,+ ok=False,+ error="channel manager not available",+ code="SERVICE_UNAVAILABLE",+ )+ return+ if not isinstance(params, dict):+ await channel.send_response(+ ws,+ req_id,+ ok=False,+ error="params must be object",+ code="BAD_REQUEST",+ )+ return+ try:+ await cm.set_conf("feishu", params)+ conf = cm.get_conf("feishu")+ try:+ update_channel_in_config("feishu", conf)+ _clear_agent_config_cache()+ except Exception as e: # noqa: BLE001+ logger.warning("[channel.feishu.set_conf] 写回 config.yaml 失败: %s", e)+ await channel.send_response(ws, req_id, ok=True, payload={"config": conf})+ except Exception as e: # noqa: BLE001+ logger.exception("[channel.feishu.set_conf] %s", e)+ await channel.send_response(ws, req_id, ok=False, error=str(e), code="INTERNAL_ERROR")++ async def _channel_xiaoyi_get_conf(ws, req_id, params, session_id):+ """返回 XiaoyiChannel 的当前配置(由 ChannelManager 管理)。"""+ cm = _resolve(channel_manager)+ if cm is None:+ await channel.send_response(+ ws,+ req_id,+ ok=False,+ error="channel manager not available",+ code="SERVICE_UNAVAILABLE",+ )+ return+ try:+ conf = cm.get_conf("xiaoyi")+ await channel.send_response(ws, req_id, ok=True, payload={"config": conf})+ except Exception as e: # noqa: BLE001+ logger.exception("[channel.xiaoyi.get_conf] %s", e)+ await channel.send_response(ws, req_id, ok=False, error=str(e), code="INTERNAL_ERROR")++ async def _channel_xiaoyi_set_conf(ws, req_id, params, session_id):+ """更新 XiaoyiChannel 的配置,并按新配置重新实例化通道。"""+ cm = _resolve(channel_manager)+ if cm is None:+ await channel.send_response(+ ws,+ req_id,+ ok=False,+ error="channel manager not available",+ code="SERVICE_UNAVAILABLE",+ )+ return+ if not isinstance(params, dict):+ await channel.send_response(+ ws,+ req_id,+ ok=False,+ error="params must be object",+ code="BAD_REQUEST",+ )+ return+ try:+ await cm.set_conf("xiaoyi", params)+ conf = cm.get_conf("xiaoyi")+ try:+ update_channel_in_config("xiaoyi", conf)+ _clear_agent_config_cache()+ except Exception as e: # noqa: BLE001+ logger.warning("[channel.xiaoyi.set_conf] 写回 config.yaml 失败: %s", e)+ await channel.send_response(ws, req_id, ok=True, payload={"config": conf})+ except Exception as e: # noqa: BLE001+ logger.exception("[channel.xiaoyi.set_conf] %s", e)+ await channel.send_response(ws, req_id, ok=False, error=str(e), code="INTERNAL_ERROR")++ channel.register_method("config.get", _config_get)+ channel.register_method("config.set", _config_set)+ channel.register_method("channel.get", _channel_get)++ channel.register_method("session.list", _session_list)+ channel.register_method("session.create", _session_create)+ channel.register_method("session.delete", _session_delete)++ channel.register_method("path.get", _path_get)+ channel.register_method("path.set", _path_set)+ channel.register_method("browser.start", _browser_start)++ channel.register_method("memory.compute", _memory_compute)++ channel.register_method("chat.send", _chat_send)+ channel.register_method("chat.resume", _chat_resume)+ channel.register_method("chat.interrupt", _chat_interrupt)+ channel.register_method("chat.user_answer", _chat_user_answer)+ channel.register_method("heartbeat.get_conf", _heartbeat_get_conf)+ channel.register_method("heartbeat.set_conf", _heartbeat_set_conf)+ channel.register_method("channel.feishu.get_conf", _channel_feishu_get_conf)+ channel.register_method("channel.feishu.set_conf", _channel_feishu_set_conf)+ channel.register_method("channel.xiaoyi.get_conf", _channel_xiaoyi_get_conf)+ channel.register_method("channel.xiaoyi.set_conf", _channel_xiaoyi_set_conf)+++async def _run() -> None:+ from jiuwenclaw.agentserver.interface import JiuWenClaw+ from jiuwenclaw.channel.feishu import FeishuChannel, FeishuConfig+ from jiuwenclaw.channel.web_channel import WebChannel, WebChannelConfig+ from jiuwenclaw.channel.xiaoyi_channel import XiaoyiChannel, XiaoyiChannelConfig+ from jiuwenclaw.gateway import (+ AgentWebSocketServer,+ GatewayHeartbeatService,+ HeartbeatConfig,+ WebSocketAgentServerClient,+ )+ from jiuwenclaw.gateway.channel_manager import ChannelManager+ from jiuwenclaw.gateway.message_handler import MessageHandler+ from jiuwenclaw.schema.message import Message, EventType, ReqMethod+ from jiuwenclaw.agentserver.memory.config import _load_config as _load_agent_config++ agent_port = int(os.getenv("AGENT_PORT", "18092"))+ web_host = os.getenv("WEB_HOST", "127.0.0.1")+ web_port = int(os.getenv("WEB_PORT", "19000"))+ web_path = os.getenv("WEB_PATH", "/ws")++ def _do_restart() -> None:+ """重新执行当前进程以加载新 .env(配置修改后重启服务)。"""+ logger.info("[App] 配置已写回 .env,正在重启服务…")+ os.execv(sys.executable, [sys.executable, *sys.argv])++ def _schedule_restart() -> None:+ """延迟 2 秒后重启,便于先返回 config.set 的响应。"""+ try:+ loop = asyncio.get_running_loop()+ loop.call_later(2.0, _do_restart)+ except RuntimeError:+ _do_restart()++ # ---------- 一次启动所有服务 ----------+ agent = JiuWenClaw()+ await agent.create_instance()+ server = AgentWebSocketServer(+ agent, host="127.0.0.1", port=agent_port,+ ping_interval=20.0, ping_timeout=20.0,+ )+ await server.start()+ await asyncio.sleep(0.3)+ uri = f"ws://127.0.0.1:{agent_port}"++ client = WebSocketAgentServerClient(ping_interval=20.0, ping_timeout=20.0)+ await client.connect(uri)+ message_handler = MessageHandler(client)+ await message_handler.start_forwarding()++ # 探活:周期性向 AgentServer 发送心跳,便于检测连接与 Agent 可用性+ # 优先从 config/config.yaml 的 heartbeat 段读取配置,其次回退到环境变量/默认值+ heartbeat_cfg: dict | None = None+ channels_cfg: dict | None = None+ try:+ full_cfg = _load_agent_config()+ heartbeat_cfg = full_cfg.get("heartbeat") if isinstance(full_cfg, dict) else None+ channels_cfg = full_cfg.get("channels") if isinstance(full_cfg, dict) else None+ except Exception as e: # noqa: BLE001+ logger.warning("[App] 读取 config.yaml heartbeat 配置失败,将使用默认值: %s", e)+ heartbeat_cfg = None+ channels_cfg = None++ if isinstance(heartbeat_cfg, dict):+ cfg_every = heartbeat_cfg.get("every")+ cfg_target = heartbeat_cfg.get("target")+ cfg_active_hours = heartbeat_cfg.get("active_hours")+ else:+ cfg_every = None+ cfg_target = None+ cfg_active_hours = None++ # interval_seconds:环境变量优先,其次 heartbeat.every,最后默认 60+ heartbeat_interval = float(+ os.getenv("HEARTBEAT_INTERVAL")+ or (str(cfg_every) if cfg_every is not None else "60")+ )+ # timeout_seconds 依旧仅由环境变量控制,保持兼容+ heartbeat_timeout = float(os.getenv("HEARTBEAT_TIMEOUT", "30")) if os.getenv("HEARTBEAT_TIMEOUT") else None+ # relay_channel_id:环境变量优先,其次 heartbeat.target,最后默认 "web"+ heartbeat_relay_channel = os.getenv("HEARTBEAT_RELAY_CHANNEL_ID") or (+ str(cfg_target) if cfg_target is not None else "web"+ )++ heartbeat_config = HeartbeatConfig(+ interval_seconds=heartbeat_interval,+ timeout_seconds=heartbeat_timeout,+ relay_channel_id=heartbeat_relay_channel,+ active_hours=cfg_active_hours if isinstance(cfg_active_hours, dict) else None,+ )+ heartbeat_service = GatewayHeartbeatService(client, heartbeat_config, message_handler=message_handler)+ await heartbeat_service.start()++ # 初始 Channel 配置(来自 config.yaml 的 channels 段,若不存在则为空)+ initial_channels_conf: dict = channels_cfg if isinstance(channels_cfg, dict) else {}++ channel_manager = ChannelManager(message_handler, config=initial_channels_conf)++ def _on_config_saved() -> bool:+ """先尝试热更新,失败则安排延迟重启。返回 True 表示已热更新未重启,False 表示已安排重启。"""+ try:+ agent.reload_agent_config()+ return True+ except Exception as e: # noqa: BLE001+ logger.warning("[App] 配置热更新失败,将延迟重启: %s", e)+ _schedule_restart()+ return False++ web_config = WebChannelConfig(+ enabled=True, host=web_host, port=web_port, path=web_path,+ )+ web_channel = WebChannel(web_config, _DummyBus())+ _register_web_handlers(+ web_channel,+ agent_client=client,+ message_handler=message_handler,+ channel_manager=channel_manager,+ on_config_saved=_on_config_saved,+ heartbeat_service=heartbeat_service,+ )++ def _norm_and_forward(msg: Message) -> bool:+ method_val = getattr(getattr(msg, "req_method", None), "value", None) or ""+ if method_val not in _FORWARD_REQ_METHODS:+ return False+ is_stream = bool(msg.is_stream or method_val == ReqMethod.CHAT_SEND.value)+ params = dict(msg.params or {})+ if "query" not in params and "content" in params:+ params["query"] = params["content"]+ normalized = Message(+ id=msg.id,+ type=msg.type,+ channel_id=msg.channel_id,+ session_id=msg.session_id,+ params=params,+ timestamp=msg.timestamp,+ ok=msg.ok,+ req_method=getattr(msg, "req_method", None) or ReqMethod.CHAT_SEND,+ mode=msg.mode,+ is_stream=is_stream,+ stream_seq=msg.stream_seq,+ stream_id=msg.stream_id,+ metadata=msg.metadata,+ )+ channel_manager._message_handler.handle_message(normalized)+ logger.info("[App] Web 入站 -> MessageHandler: id=%s channel_id=%s", msg.id, msg.channel_id)+ # 对仅转发、无本地处理器的方法,标记为“已处理”,避免 WebChannel 再返回 METHOD_NOT_FOUND。+ if method_val in _FORWARD_NO_LOCAL_HANDLER_METHODS:+ return True+ return False++ web_channel.on_message(_norm_and_forward)+ channel_manager._channels[web_channel.channel_id] = web_channel++ # ---------- 按配置管理 FeishuChannel / XiaoyiChannel(配置来源:config/config.yaml -> channels.*) ----------+ feishu_channel = None+ feishu_task = None+ xiaoyi_channel = None+ xiaoyi_task = None++ async def _apply_channel_config(conf: dict) -> None:+ """根据最新 Channel 配置重新实例化各 Channel,目前管理 FeishuChannel 与 XiaoyiChannel.++ FeishuChannel 的启用规则:+ - 若配置中包含 enabled 字段,则以其布尔值为准;+ - 否则,当 app_id 和 app_secret 均非空时视为启用。++ XiaoyiChannel 的启用规则:+ - 若配置中包含 enabled 字段,则以其布尔值为准;+ - 否则,当 ak / sk / agent_id 均非空时视为启用。+ """+ nonlocal feishu_channel, feishu_task, xiaoyi_channel, xiaoyi_task++ # ----- FeishuChannel -----++ feishu_conf = conf.get("feishu") if isinstance(conf, dict) else None++ # 先清理已存在的 FeishuChannel+ if feishu_task is not None:+ feishu_task.cancel()+ try:+ await feishu_task+ except asyncio.CancelledError:+ pass+ feishu_task = None+ if feishu_channel is not None:+ try:+ await feishu_channel.stop()+ except Exception as e: # noqa: BLE001+ logger.warning("[App] 停止旧 FeishuChannel 失败: %s", e)+ channel_manager.unregister_channel(feishu_channel.channel_id)+ feishu_channel = None++ # 再根据新配置决定是否创建新的 FeishuChannel+ if isinstance(feishu_conf, dict):+ app_id = str(feishu_conf.get("app_id") or "").strip()+ app_secret = str(feishu_conf.get("app_secret") or "").strip()+ encrypt_key = str(feishu_conf.get("encrypt_key") or "").strip()+ verification_token = str(feishu_conf.get("verification_token") or "").strip()+ allow_from = feishu_conf.get("allow_from") or []++ enabled_raw = feishu_conf.get("enabled", None)+ if enabled_raw is None:+ enabled = bool(app_id and app_secret)+ else:+ enabled = bool(enabled_raw)++ if not enabled:+ logger.info("[App] channels.feishu.enabled = false,FeishuChannel 未启用")+ elif not (app_id and app_secret):+ logger.info("[App] channels.feishu 缺少 app_id/app_secret,FeishuChannel 未启用")+ else:+ feishu_config = FeishuConfig(+ enabled=True,+ app_id=app_id,+ app_secret=app_secret,+ encrypt_key=encrypt_key,+ verification_token=verification_token,+ allow_from=allow_from,+ )+ feishu_channel = FeishuChannel(feishu_config, _DummyBus())+ channel_manager.register_channel(feishu_channel)+ feishu_task = asyncio.create_task(feishu_channel.start(), name="feishu")+ logger.info("[App] 已按 config.yaml.channels.feishu 注册 FeishuChannel")+ else:+ logger.info("[App] channels.feishu 未配置或格式错误,FeishuChannel 不启用")++ # ----- XiaoyiChannel -----++ xiaoyi_conf = conf.get("xiaoyi") if isinstance(conf, dict) else None++ # 先清理已存在的 XiaoyiChannel+ if xiaoyi_task is not None:+ xiaoyi_task.cancel()+ try:+ await xiaoyi_task+ except asyncio.CancelledError:+ pass+ xiaoyi_task = None+ if xiaoyi_channel is not None:+ try:+ await xiaoyi_channel.stop()+ except Exception as e: # noqa: BLE001+ logger.warning("[App] 停止旧 XiaoyiChannel 失败: %s", e)+ channel_manager.unregister_channel(xiaoyi_channel.channel_id)+ xiaoyi_channel = None++ # 再根据新配置决定是否创建新的 XiaoyiChannel+ if isinstance(xiaoyi_conf, dict):+ ak = str(xiaoyi_conf.get("ak") or "").strip()+ sk = str(xiaoyi_conf.get("sk") or "").strip()+ agent_id = str(xiaoyi_conf.get("agent_id") or "").strip()+ ws_url1 = str(xiaoyi_conf.get("ws_url1") or "").strip()+ ws_url2 = str(xiaoyi_conf.get("ws_url2") or "").strip()+ enable_streaming_raw = xiaoyi_conf.get("enable_streaming", True)+ enable_streaming = bool(enable_streaming_raw)++ enabled_raw = xiaoyi_conf.get("enabled", None)+ if enabled_raw is None:+ enabled = bool(ak and sk and agent_id)+ else:+ enabled = bool(enabled_raw)++ if not enabled:+ logger.info("[App] channels.xiaoyi.enabled = false,XiaoyiChannel 未启用")+ elif not (ak and sk and agent_id):+ logger.info("[App] channels.xiaoyi 缺少 ak/sk/agent_id,XiaoyiChannel 未启用")+ else:+ xiaoyi_config = XiaoyiChannelConfig(+ enabled=True,+ ak=ak,+ sk=sk,+ agent_id=agent_id,+ ws_url1=ws_url1,+ ws_url2=ws_url2,+ enable_streaming=enable_streaming,+ )+ xiaoyi_channel = XiaoyiChannel(xiaoyi_config, _DummyBus())+ channel_manager.register_channel(xiaoyi_channel)+ xiaoyi_task = asyncio.create_task(xiaoyi_channel.start(), name="xiaoyi")+ logger.info("[App] 已按 config.yaml.channels.xiaoyi 注册 XiaoyiChannel")+ else:+ logger.info("[App] channels.xiaoyi 未配置或格式错误,XiaoyiChannel 不启用")++ # 将「配置更新时如何重新实例化 Channel」逻辑注册到 ChannelManager+ channel_manager.set_config_callback(_apply_channel_config)+ # 使用初始配置实例化一次(启动时,针对 feishu / xiaoyi)+ await channel_manager.set_config(initial_channels_conf)++ await channel_manager.start_dispatch()+ web_task = asyncio.create_task(web_channel.start(), name="web-channel")+ logger.info(+ "[App] 已启动: Web ws://%s:%s%s 修改配置后将自动重启服务。Ctrl+C 退出。",+ web_host, web_port, web_path,+ )++ try:+ tasks = [web_task]+ if feishu_task is not None:+ tasks.append(feishu_task)+ if xiaoyi_task is not None:+ tasks.append(xiaoyi_task)+ await asyncio.gather(*tasks)+ except KeyboardInterrupt:+ logger.info("收到 Ctrl+C,正在退出…")+ except asyncio.CancelledError:+ pass+ finally:+ web_task.cancel()+ try:+ await web_task+ except asyncio.CancelledError:+ pass+ await web_channel.stop()+ if feishu_channel is not None and feishu_task is not None:+ feishu_task.cancel()+ try:+ await feishu_task+ except asyncio.CancelledError:+ pass+ await feishu_channel.stop()+ if xiaoyi_channel is not None and xiaoyi_task is not None:+ xiaoyi_task.cancel()+ try:+ await xiaoyi_task+ except asyncio.CancelledError:+ pass+ await xiaoyi_channel.stop()+ await channel_manager.stop_dispatch()+ await heartbeat_service.stop()+ await message_handler.stop_forwarding()+ await client.disconnect()+ await server.stop()+ logger.info("[App] E2E 已停止")+++def main() -> None:+ asyncio.run(_run())+++if __name__ == "__main__":+ main()diff --git a/jiuwenclaw/app_web.py b/jiuwenclaw/app_web.pynew file mode 100644index 0000000000..d62562ae4f--- /dev/null+++ b/jiuwenclaw/app_web.py@@ -0,0 +1,812 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Serve built frontend static files with optional reverse proxy."""++from __future__ import annotations++import argparse+import http.client+import json+import logging+import os+import select+import socket+import ssl+from functools import partial+from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer+from pathlib import Path+from typing import Any+from urllib.parse import unquote, urlparse++from jiuwenclaw.paths import get_root_dir, is_package_installation+++def _get_package_dir() -> Path:+ """Get the jiuwenclaw package directory (for package-internal files)."""+ if is_package_installation():+ # In package mode, app_web.py is at site-packages/jiuwenclaw/app_web.py+ # So parent is site-packages/jiuwenclaw/+ return Path(__file__).resolve().parent+ else:+ # In source mode, app_web.py is at <repo>/jiuwenclaw/app_web.py+ # So parent is <repo>/jiuwenclaw/+ return Path(__file__).resolve().parent+++def _default_dist_dir() -> Path:+ """Return default dist directory for local repo layout."""+ root = get_root_dir()+ # Try user workspace web/dist first (if copied from package)+ if (root / "web" / "dist").exists():+ return root / "web" / "dist"+ # Try package internal web/dist (package installation)+ package_dir = _get_package_dir()+ if (package_dir / "web" / "dist").exists():+ return package_dir / "web" / "dist"+ # Fallback+ return root / "web" / "dist"+++def _generate_agent_data(project_root: Path) -> None:+ """Generate workspace/agent-data.json from workspace/agent tree."""+ workspace_root = (project_root / "workspace").resolve()+ agent_root = (workspace_root / "agent").resolve()+ output_path = (workspace_root / "agent-data.json").resolve()+ root_folder_key = "__root__"++ if not agent_root.exists():+ raise FileNotFoundError("workspace/agent 目录不存在")+ if not agent_root.is_dir():+ raise NotADirectoryError("workspace/agent 不是目录")++ folder_data: dict[str, list[dict[str, str | bool]]] = {}+ for entry in sorted(agent_root.rglob("*")):+ if not entry.is_file():+ continue+ relative_file_path = entry.relative_to(agent_root).as_posix()+ relative_folder_path = entry.parent.relative_to(agent_root).as_posix()+ folder_key = root_folder_key if relative_folder_path == "." else relative_folder_path+ folder_data.setdefault(folder_key, []).append(+ {+ "name": entry.name,+ "path": f"workspace/agent/{relative_file_path}",+ "isMarkdown": entry.suffix.lower() in {".md", ".mdx"},+ }+ )++ sorted_folder_data = {+ folder_key: sorted(files, key=lambda item: item["path"])+ for folder_key, files in sorted(folder_data.items(), key=lambda item: item[0])+ }++ output_path.parent.mkdir(parents=True, exist_ok=True)+ output_path.write_text(+ json.dumps(sorted_folder_data, ensure_ascii=False, indent=2),+ encoding="utf-8",+ )+++class _SpaStaticHandler(SimpleHTTPRequestHandler):+ """Static file handler with SPA fallback to index.html."""++ api_target = ""+ ws_target = ""+ ws_disable_compress = False+ project_root = Path(".").resolve()+ workspace_root = Path(".").resolve()+ logs_root = Path(".").resolve()+ logger = logging.getLogger("jiuwenclaw.web.static")++ _HOP_BY_HOP_HEADERS = {+ "connection",+ "keep-alive",+ "proxy-authenticate",+ "proxy-authorization",+ "te",+ "trailers",+ "transfer-encoding",+ "upgrade",+ }+ _WS_LOG_MAX_CHARS = 2000++ class _WsTextFrameParser:+ """Parse websocket text frames from a byte stream."""++ def __init__(self) -> None:+ self._buffer = bytearray()+ self._fragmented_text = bytearray()+ self._awaiting_continuation = False++ def feed(self, data: bytes) -> list[str]:+ self._buffer.extend(data)+ messages: list[str] = []+ while True:+ if len(self._buffer) < 2:+ break++ first = self._buffer[0]+ second = self._buffer[1]+ fin = bool(first & 0x80)+ rsv = first & 0x70+ opcode = first & 0x0F+ masked = bool(second & 0x80)+ payload_len = second & 0x7F+ idx = 2++ if payload_len == 126:+ if len(self._buffer) < idx + 2:+ break+ payload_len = int.from_bytes(self._buffer[idx : idx + 2], "big")+ idx += 2+ elif payload_len == 127:+ if len(self._buffer) < idx + 8:+ break+ payload_len = int.from_bytes(self._buffer[idx : idx + 8], "big")+ idx += 8++ mask_key = b""+ if masked:+ if len(self._buffer) < idx + 4:+ break+ mask_key = bytes(self._buffer[idx : idx + 4])+ idx += 4++ frame_end = idx + payload_len+ if len(self._buffer) < frame_end:+ break++ payload = bytes(self._buffer[idx:frame_end])+ del self._buffer[:frame_end]++ if masked:+ payload = bytes(+ b ^ mask_key[i % 4]+ for i, b in enumerate(payload)+ )++ if rsv:+ continue++ if opcode in (0x8, 0x9, 0xA):+ continue++ if opcode == 0x1:+ if fin:+ messages.append(payload.decode("utf-8", errors="replace"))+ else:+ self._fragmented_text = bytearray(payload)+ self._awaiting_continuation = True+ continue++ if opcode == 0x0 and self._awaiting_continuation:+ self._fragmented_text.extend(payload)+ if fin:+ messages.append(+ bytes(self._fragmented_text).decode("utf-8", errors="replace")+ )+ self._fragmented_text.clear()+ self._awaiting_continuation = False+ continue++ if opcode == 0x2:+ self._fragmented_text.clear()+ self._awaiting_continuation = False+ continue++ self._fragmented_text.clear()+ self._awaiting_continuation = False++ return messages++ @classmethod+ def _truncate_for_ws_log(cls, text: str) -> str:+ if len(text) <= cls._WS_LOG_MAX_CHARS:+ return text+ return f"{text[:cls._WS_LOG_MAX_CHARS]}...<truncated:{len(text) - cls._WS_LOG_MAX_CHARS}>"++ @classmethod+ def _format_ws_part(cls, value: Any) -> str:+ if isinstance(value, str):+ return cls._truncate_for_ws_log(value)+ try:+ text = json.dumps(value, ensure_ascii=False, separators=(",", ":"))+ except TypeError:+ text = str(value)+ return cls._truncate_for_ws_log(text)++ def _log_ws_business_message(self, direction: str, raw_message: str) -> None:+ try:+ payload = json.loads(raw_message)+ except json.JSONDecodeError:+ return+ if not isinstance(payload, dict):+ return++ msg_type = payload.get("type")+ if msg_type == "req":+ self.logger.info(+ "[ws][%s][req] id=%s method=%s params=%s",+ direction,+ self._format_ws_part(payload.get("id")),+ self._format_ws_part(payload.get("method")),+ self._format_ws_part(payload.get("params")),+ )+ return+ if msg_type == "res":+ self.logger.info(+ "[ws][%s][res] id=%s ok=%s payload=%s error=%s code=%s",+ direction,+ self._format_ws_part(payload.get("id")),+ self._format_ws_part(payload.get("ok")),+ self._format_ws_part(payload.get("payload")),+ self._format_ws_part(payload.get("error")),+ self._format_ws_part(payload.get("code")),+ )+ return+ if msg_type == "event":+ self.logger.info(+ "[ws][%s][event] event=%s seq=%s stream_id=%s payload=%s",+ direction,+ self._format_ws_part(payload.get("event")),+ self._format_ws_part(payload.get("seq")),+ self._format_ws_part(payload.get("stream_id")),+ self._format_ws_part(payload.get("payload")),+ )++ def _is_api_route(self) -> bool:+ return urlparse(self.path).path.startswith("/api")++ def _is_ws_route(self) -> bool:+ return urlparse(self.path).path.startswith("/ws")++ def _is_file_api_route(self) -> bool:+ return urlparse(self.path).path.startswith("/file-api/")++ def _is_websocket_upgrade(self) -> bool:+ upgrade = self.headers.get("Upgrade", "")+ connection = self.headers.get("Connection", "")+ return "websocket" in upgrade.lower() and "upgrade" in connection.lower()++ def _proxy_http(self) -> None:+ parsed = urlparse(self.api_target)+ if parsed.scheme == "https":+ conn: http.client.HTTPConnection = http.client.HTTPSConnection(+ parsed.hostname,+ parsed.port or 443,+ timeout=30,+ )+ else:+ conn = http.client.HTTPConnection(+ parsed.hostname,+ parsed.port or 80,+ timeout=30,+ )++ try:+ body = b""+ if self.command not in ("GET", "HEAD"):+ length = int(self.headers.get("Content-Length", "0") or "0")+ body = self.rfile.read(length) if length > 0 else b""++ forward_headers: dict[str, str] = {}+ for key, value in self.headers.items():+ if key.lower() in self._HOP_BY_HOP_HEADERS:+ continue+ if key.lower() == "host":+ continue+ forward_headers[key] = value+ forward_headers["Host"] = parsed.netloc++ conn.request(self.command, self.path, body=body, headers=forward_headers)+ resp = conn.getresponse()+ resp_body = resp.read()++ self.send_response(resp.status, resp.reason)+ for key, value in resp.getheaders():+ if key.lower() in self._HOP_BY_HOP_HEADERS:+ continue+ self.send_header(key, value)+ self.end_headers()+ if self.command != "HEAD":+ self.wfile.write(resp_body)+ except Exception as exc: # noqa: BLE001+ self.log_error("proxy http error: %s", exc)+ self.send_error(502, "proxy http error")+ finally:+ conn.close()++ def _proxy_websocket_tunnel(self) -> None:+ parsed = urlparse(self.ws_target)+ if parsed.scheme not in ("ws", "wss", "http", "https"):+ self.send_error(500, "ws proxy target must be ws/wss/http/https")+ return++ upstream_host = parsed.hostname or "127.0.0.1"+ upstream_port = parsed.port or (443 if parsed.scheme in ("wss", "https") else 80)++ try:+ upstream = socket.create_connection((upstream_host, upstream_port), timeout=10)+ if parsed.scheme in ("wss", "https"):+ ctx = ssl.create_default_context()+ upstream = ctx.wrap_socket(upstream, server_hostname=upstream_host)+ except OSError as exc:+ self.log_error("proxy ws connect failed: %s", exc)+ self.send_error(502, "proxy ws connect failed")+ return++ try:+ request_lines = [f"{self.command} {self.path} HTTP/1.1"]+ for key, value in self.headers.items():+ # Optional debug mode: disable websocket compression so frames stay+ # plain text and can be parsed for req/res/event logging.+ if self.ws_disable_compress and key.lower() == "sec-websocket-extensions":+ continue+ if key.lower() == "host":+ request_lines.append(f"Host: {upstream_host}:{upstream_port}")+ else:+ request_lines.append(f"{key}: {value}")+ if not any(line.lower().startswith("host:") for line in request_lines[1:]):+ request_lines.append(f"Host: {upstream_host}:{upstream_port}")+ raw_req = ("\r\n".join(request_lines) + "\r\n\r\n").encode("utf-8")+ upstream.sendall(raw_req)++ response_head = b""+ while b"\r\n\r\n" not in response_head:+ chunk = upstream.recv(4096)+ if not chunk:+ break+ response_head += chunk+ if len(response_head) > 65536:+ break+ if not response_head:+ self.send_error(502, "proxy ws handshake failed: empty response")+ return++ self.connection.sendall(response_head)++ if b" 101 " not in response_head.split(b"\r\n", 1)[0]:+ self.logger.info("[ws][handshake] upstream returned non-101, tunnel closed")+ return++ self.logger.info("[ws][handshake] tunnel established %s <-> %s:%s", self.client_address[0], upstream_host, upstream_port)+ self.connection.setblocking(False)+ upstream.setblocking(False)+ sockets = [self.connection, upstream]+ client_parser = self._WsTextFrameParser()+ server_parser = self._WsTextFrameParser()+ while True:+ readable, _, errored = select.select(sockets, [], sockets, 60)+ if errored:+ break+ if not readable:+ continue+ for sock in readable:+ try:+ data = sock.recv(65536)+ except OSError:+ data = b""+ if not data:+ return+ if sock is self.connection:+ for text_message in client_parser.feed(data):+ self._log_ws_business_message("frontend->backend", text_message)+ upstream.sendall(data)+ else:+ for text_message in server_parser.feed(data):+ self._log_ws_business_message("backend->frontend", text_message)+ self.connection.sendall(data)+ except Exception as exc: # noqa: BLE001+ self.log_error("proxy ws error: %s", exc)+ try:+ self.send_error(502, "proxy ws error")+ except Exception: # noqa: BLE001+ pass+ finally:+ try:+ upstream.close()+ except Exception: # noqa: BLE001+ pass++ def _dispatch_proxy(self) -> bool:+ if self._is_api_route():+ self._proxy_http()+ return True+ if self._is_ws_route():+ if self._is_websocket_upgrade():+ self._proxy_websocket_tunnel()+ else:+ self.send_error(400, "expected websocket upgrade")+ return True+ return False++ @staticmethod+ def _is_markdown(path_obj: Path) -> bool:+ ext = path_obj.suffix.lower()+ return ext in {".md", ".mdx"}++ @classmethod+ def _is_path_under_allowed_root(cls, target: Path) -> bool:+ target_resolved = target.resolve()+ try:+ in_workspace = os.path.commonpath([str(cls.workspace_root), str(target_resolved)]) == str(cls.workspace_root)+ in_logs = os.path.commonpath([str(cls.logs_root), str(target_resolved)]) == str(cls.logs_root)+ return in_workspace or in_logs+ except ValueError:+ return False++ def _write_json(self, status: int, payload: dict) -> None:+ data = json.dumps(payload, ensure_ascii=False).encode("utf-8")+ self.send_response(status)+ self.send_header("Content-Type", "application/json; charset=utf-8")+ self.send_header("Content-Length", str(len(data)))+ self.end_headers()+ if self.command != "HEAD":+ self.wfile.write(data)++ def _handle_file_api_get(self, parsed) -> None:+ path = parsed.path+ query = {}+ if parsed.query:+ for pair in parsed.query.split("&"):+ if "=" in pair:+ k, v = pair.split("=", 1)+ else:+ k, v = pair, ""+ query[unquote(k)] = unquote(v)++ if path == "/file-api/list-markdown":+ dir_arg = query.get("dir", "")+ if not dir_arg:+ self._write_json(400, {"error": "missing_dir"})+ return+ full_dir = (self.project_root / dir_arg).resolve()+ if not self._is_path_under_allowed_root(full_dir):+ self._write_json(403, {"error": "forbidden_dir"})+ return+ if not full_dir.exists() or not full_dir.is_dir():+ self._write_json(200, {"files": []})+ return+ files = []+ for entry in sorted(full_dir.iterdir(), key=lambda p: p.name.lower()):+ if not entry.is_file() or not self._is_markdown(entry):+ continue+ files.append(+ {+ "name": entry.name,+ "path": str(entry.relative_to(self.project_root)),+ }+ )+ self._write_json(200, {"files": files})+ return++ if path == "/file-api/list-files":+ dir_arg = query.get("dir", "")+ if not dir_arg:+ self._write_json(400, {"error": "missing_dir"})+ return+ full_dir = (self.project_root / dir_arg).resolve()+ if not self._is_path_under_allowed_root(full_dir):+ self._write_json(403, {"error": "forbidden_dir"})+ return+ if not full_dir.exists() or not full_dir.is_dir():+ self._write_json(200, {"files": []})+ return+ files = []+ entries = sorted(+ full_dir.iterdir(),+ key=lambda p: (not p.is_dir(), p.name.lower()),+ )+ for entry in entries:+ files.append(+ {+ "name": entry.name,+ "path": str(entry.relative_to(self.project_root)),+ "isMarkdown": self._is_markdown(entry) if entry.is_file() else False,+ "isDirectory": entry.is_dir(),+ }+ )+ self._write_json(200, {"files": files})+ return++ if path == "/file-api/file-content":+ file_arg = query.get("path", "")+ if not file_arg:+ self._write_json(400, {"error": "缺少文件路径"})+ return+ full_path = (self.project_root / file_arg).resolve()+ if not self._is_path_under_allowed_root(full_path):+ self._write_json(403, {"error": "forbidden_path"})+ return+ if not full_path.exists():+ self._write_json(404, {"error": "文件不存在", "fullPath": str(full_path)})+ return+ try:+ data = full_path.read_text(encoding="utf-8")+ except OSError as exc:+ self._write_json(500, {"error": str(exc)})+ return+ body = data.encode("utf-8")+ self.send_response(200)+ self.send_header("Content-Type", "text/plain; charset=utf-8")+ self.send_header("Content-Length", str(len(body)))+ self.end_headers()+ if self.command != "HEAD":+ self.wfile.write(body)+ return++ if path == "/file-api/ws-debug-config":+ self._write_json(+ 200,+ {+ "wsDisableCompress": bool(type(self).ws_disable_compress),+ },+ )+ return++ self._write_json(404, {"error": "not_found"})++ def _handle_file_api_post(self, parsed) -> None:+ if parsed.path == "/file-api/rebuild-agent-data":+ try:+ _generate_agent_data(self.project_root)+ except Exception as exc: # noqa: BLE001+ self._write_json(500, {"error": "rebuild_failed", "detail": str(exc)})+ return++ self._write_json(200, {"ok": True})+ return++ if parsed.path == "/file-api/file-content":+ length = int(self.headers.get("Content-Length", "0") or "0")+ raw = self.rfile.read(length) if length > 0 else b""+ try:+ payload = json.loads(raw.decode("utf-8") if raw else "{}")+ except json.JSONDecodeError:+ self._write_json(400, {"error": "invalid_json"})+ return++ request_path = payload.get("path")+ request_content = payload.get("content")+ if not isinstance(request_path, str) or not request_path.strip():+ self._write_json(400, {"error": "缺少文件路径"})+ return+ if not isinstance(request_content, str):+ self._write_json(400, {"error": "缺少文件内容"})+ return++ full_path = (self.project_root / request_path).resolve()+ if not self._is_path_under_allowed_root(full_path):+ self._write_json(403, {"error": "forbidden_path"})+ return+ if not self._is_markdown(full_path):+ self._write_json(400, {"error": "仅支持保存 Markdown 文件"})+ return+ if not full_path.exists():+ self._write_json(404, {"error": "文件不存在"})+ return++ try:+ full_path.write_text(request_content, encoding="utf-8")+ except OSError as exc:+ self._write_json(500, {"error": str(exc)})+ return+ self._write_json(200, {"ok": True})+ return++ if parsed.path == "/file-api/ws-debug-config":+ length = int(self.headers.get("Content-Length", "0") or "0")+ raw = self.rfile.read(length) if length > 0 else b""+ try:+ payload = json.loads(raw.decode("utf-8") if raw else "{}")+ except json.JSONDecodeError:+ self._write_json(400, {"error": "invalid_json"})+ return++ ws_disable_compress = payload.get("wsDisableCompress")+ if not isinstance(ws_disable_compress, bool):+ self._write_json(400, {"error": "invalid_ws_disable_compress"})+ return++ type(self).ws_disable_compress = ws_disable_compress+ self.logger.info(+ "[jiuwenclaw-web] ws disable compress updated: %s",+ ws_disable_compress,+ )+ self._write_json(200, {"ok": True, "wsDisableCompress": ws_disable_compress})+ return++ self._write_json(404, {"error": "not_found"})++ def do_GET(self) -> None: # noqa: N802+ parsed = urlparse(self.path)+ if self._is_file_api_route():+ self._handle_file_api_get(parsed)+ return+ if self._dispatch_proxy():+ return+ super().do_GET()++ def do_POST(self) -> None: # noqa: N802+ parsed = urlparse(self.path)+ if self._is_file_api_route():+ self._handle_file_api_post(parsed)+ return+ if self._dispatch_proxy():+ return+ self.send_error(405, "method not allowed")++ def do_PUT(self) -> None: # noqa: N802+ if self._dispatch_proxy():+ return+ self.send_error(405, "method not allowed")++ def do_PATCH(self) -> None: # noqa: N802+ if self._dispatch_proxy():+ return+ self.send_error(405, "method not allowed")++ def do_DELETE(self) -> None: # noqa: N802+ if self._dispatch_proxy():+ return+ self.send_error(405, "method not allowed")++ def do_OPTIONS(self) -> None: # noqa: N802+ if self._dispatch_proxy():+ return+ self.send_error(405, "method not allowed")++ def do_HEAD(self) -> None: # noqa: N802+ if self._dispatch_proxy():+ return+ super().do_HEAD()++ def log_message(self, format: str, *args) -> None: # noqa: A002+ self.logger.info("%s - %s", self.address_string(), format % args)++ def log_error(self, format: str, *args) -> None: # noqa: A002+ self.logger.error("%s - %s", self.address_string(), format % args)++ def send_head(self):+ parsed = urlparse(self.path)+ req_path = unquote(parsed.path)+ rel_path = req_path.lstrip("/") or "index.html"++ base_dir = Path(self.directory or os.getcwd()).resolve()+ target = (base_dir / rel_path).resolve()+ in_base = os.path.commonpath([str(base_dir), str(target)]) == str(base_dir)++ if in_base and target.exists():+ return super().send_head()++ self.path = "/index.html"+ return super().send_head()+++def _normalize_api_target(value: str) -> str:+ parsed = urlparse(value)+ if parsed.scheme not in ("http", "https"):+ raise ValueError(f"api target must be http/https: {value}")+ return value.rstrip("/")+++def _normalize_ws_target(value: str) -> str:+ parsed = urlparse(value)+ if parsed.scheme in ("http", "https"):+ value = value.replace("http://", "ws://", 1).replace("https://", "wss://", 1)+ parsed = urlparse(value)+ if parsed.scheme not in ("ws", "wss"):+ raise ValueError(f"ws target must be ws/wss/http/https: {value}")+ return value.rstrip("/")+++def _setup_logger(logs_root: Path, log_level: str) -> logging.Logger:+ logs_root.mkdir(parents=True, exist_ok=True)+ logger = logging.getLogger("jiuwenclaw.web.static")+ logger.setLevel(getattr(logging, log_level.upper(), logging.INFO))+ logger.propagate = False+ logger.handlers.clear()++ formatter = logging.Formatter(+ fmt="%(asctime)s.%(msecs)03d %(levelname)s %(name)s: %(message)s",+ datefmt="%Y-%m-%d %H:%M:%S",+ )++ stream_handler = logging.StreamHandler()+ stream_handler.setFormatter(formatter)++ file_handler = logging.FileHandler(logs_root / "ws-dev.log", mode="w", encoding="utf-8")+ file_handler.setFormatter(formatter)++ logger.addHandler(stream_handler)+ logger.addHandler(file_handler)+ return logger+++def main() -> None:+ parser = argparse.ArgumentParser(description="Serve JiuwenClaw frontend static files.")+ parser.add_argument("--host", default="localhost", help="Host to bind.")+ parser.add_argument("--port", type=int, default=5173, help="Port to bind.")+ parser.add_argument(+ "--dist",+ default=str(_default_dist_dir()),+ help="Path to frontend dist directory.",+ )+ parser.add_argument(+ "--proxy-target",+ default="http://127.0.0.1:19000",+ help="Backend base URL for proxy (used as default for api/ws).",+ )+ parser.add_argument(+ "--api-target",+ default="",+ help="Override backend target for /api (http/https).",+ )+ parser.add_argument(+ "--ws-target",+ default="",+ help="Override backend target for /ws (ws/wss/http/https).",+ )+ parser.add_argument(+ "--log-level",+ default="INFO",+ help="Log level for static web server. e.g. DEBUG/INFO/WARNING/ERROR",+ )+ parser.add_argument(+ "--ws-disable-compress",+ action="store_true",+ help="Disable websocket compression for easier ws req/res/event debug logging.",+ )+ args = parser.parse_args()++ dist_dir = Path(args.dist).expanduser().resolve()+ if not dist_dir.exists():+ raise SystemExit(f"dist directory not found: {dist_dir}")+ if not dist_dir.is_dir():+ raise SystemExit(f"dist path is not a directory: {dist_dir}")++ try:+ proxy_target = args.proxy_target.strip()+ api_target = _normalize_api_target(args.api_target.strip() or proxy_target)+ ws_target = _normalize_ws_target(args.ws_target.strip() or proxy_target)+ except ValueError as exc:+ raise SystemExit(str(exc)) from exc++ # default_project_root should be the user workspace root (~/.jiuwenclaw in package mode)+ # get_root_dir() already handles this correctly+ default_project_root = get_root_dir()++ project_root = default_project_root+ workspace_root = (project_root / "workspace").resolve()+ logs_root = (project_root / "logs").resolve()+ logger = _setup_logger(logs_root, args.log_level)++ class _ConfiguredHandler(_SpaStaticHandler):+ pass++ _ConfiguredHandler.api_target = api_target+ _ConfiguredHandler.ws_target = ws_target+ _ConfiguredHandler.ws_disable_compress = args.ws_disable_compress+ _ConfiguredHandler.project_root = project_root+ _ConfiguredHandler.workspace_root = workspace_root+ _ConfiguredHandler.logs_root = logs_root+ _ConfiguredHandler.logger = logger+ handler = partial(_ConfiguredHandler, directory=str(dist_dir))+ server = ThreadingHTTPServer((args.host, args.port), handler)++ logger.info("[jiuwenclaw-web] serving %s", dist_dir)+ logger.info("[jiuwenclaw-web] http://%s:%s", args.host, args.port)+ logger.info("[jiuwenclaw-web] /api -> %s", api_target)+ logger.info("[jiuwenclaw-web] /ws -> %s", ws_target)+ logger.info("[jiuwenclaw-web] ws disable compress: %s", args.ws_disable_compress)+ logger.info("[jiuwenclaw-web] /file-api roots -> %s, %s", workspace_root, logs_root)+ try:+ server.serve_forever()+ except KeyboardInterrupt:+ pass+ finally:+ server.server_close()+ logger.info("[jiuwenclaw-web] server closed")+++if __name__ == "__main__":+ main()diff --git a/jiuwenclaw/browser_timeout_policy.py b/jiuwenclaw/browser_timeout_policy.pynew file mode 100644index 0000000000..abf767c105--- /dev/null+++ b/jiuwenclaw/browser_timeout_policy.py@@ -0,0 +1,36 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Timeout policy helpers for browser runtime calls."""++from __future__ import annotations++import os+from typing import Optional+++def allow_short_timeout_override() -> bool:+ value = (os.getenv("BROWSER_ALLOW_SHORT_TIMEOUT_OVERRIDE") or "").strip().lower()+ return value in {"1", "true", "yes", "on"}+++def resolve_browser_task_timeout(+ requested_timeout_s: Optional[int],+ default_timeout_s: int,+) -> int:+ effective_default = max(1, int(default_timeout_s))+ parsed_timeout: Optional[int] = None+ if requested_timeout_s is not None:+ try:+ candidate = int(requested_timeout_s)+ if candidate > 0:+ parsed_timeout = candidate+ except (TypeError, ValueError):+ parsed_timeout = None++ if parsed_timeout is None:+ return effective_default++ if allow_short_timeout_override():+ return parsed_timeout++ return max(parsed_timeout, effective_default)diff --git a/jiuwenclaw/channel/__init__.py b/jiuwenclaw/channel/__init__.pynew file mode 100644index 0000000000..7cee727177--- /dev/null+++ b/jiuwenclaw/channel/__init__.py@@ -0,0 +1,15 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Channel 模块 - 客户端连接抽象."""++from jiuwenclaw.channel.base import BaseChannel, ChannelMetadata+from jiuwenclaw.channel.web_channel import WebChannel+from jiuwenclaw.channel.xiaoyi_channel import XiaoyiChannel, XiaoyiChannelConfig++__all__ = [+ "BaseChannel",+ "ChannelMetadata",+ "WebChannel",+ "XiaoyiChannel",+ "XiaoyiChannelConfig",+]diff --git a/jiuwenclaw/channel/base.py b/jiuwenclaw/channel/base.pynew file mode 100644index 0000000000..67204251a7--- /dev/null+++ b/jiuwenclaw/channel/base.py@@ -0,0 +1,178 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import asyncio+import time+from abc import ABC, abstractmethod+from dataclasses import dataclass+from typing import TYPE_CHECKING, Any, Callable, Awaitable++from loguru import logger++from jiuwenclaw.schema.message import Message++if TYPE_CHECKING:+ pass+++@dataclass+class ChannelMetadata:+ """Channel 元数据."""++ channel_id: str+ source: str+ user_id: str | None = None+ extra: dict[str, Any] | None = None+++class RobotMessageRouter:+ """管理整个系统的入站(从通道到机器人)和出站(从机器人到通道)消息队列,并提供出站消息的订阅/分发机制。"""+ def __init__(self):+ self._user_messages: asyncio.Queue[Message] = asyncio.Queue()+ self._robot_messages: asyncio.Queue[Message] = asyncio.Queue()+ self._channel_subscriptions: dict[str, list[Callable[[Message], Awaitable[None]]]] = {}+ self._is_active = False++ async def route_user_message(self, msg: Message) -> None:+ """将接收到的消息放入user_messages队列,等待机器人处理。"""+ await self._user_messages.put(msg)++ async def wait_for_user_message(self) -> Message:+ """阻塞地从user_messages队列中取出一条消息进行处理。"""+ return await self._user_messages.get()++ async def queue_robot_message(self, msg: Message) -> None:+ """将生成的回复消息放入robot_messages队列。"""+ await self._robot_messages.put(msg)++ async def wait_for_robot_message(self) -> Message:+ """阻塞地从robot_messages队列取消息,主要用于调试或直接消费(但框架通常使用订阅分发机制)。"""+ return await self._robot_messages.get()++ def register_channel_subscription(+ self,+ channel: str,+ callback: Callable[[Message], Awaitable[None]]+ ) -> None:+ """允许通道(或其他组件)注册一个异步回调函数,专门接收目标为特定通道ID的出站消息。"""+ if channel not in self._channel_subscriptions:+ self._channel_subscriptions[channel] = []+ self._channel_subscriptions[channel].append(callback)++ async def dispatch_robot_messages(self) -> None:+ """+ 持续监听robot_messages队列,将每条消息分发给对应通道的订阅回调。+ """+ self._is_active = True+ while self._is_active:+ try:+ msg = await asyncio.wait_for(self._robot_messages.get(), timeout=1.0)+ subscribers = self._channel_subscriptions.get(msg.channel_id, [])+ for callback in subscribers:+ try:+ await callback(msg)+ except Exception as e:+ logger.error(f"Error dispatching to {msg.channel_id}: {e}")+ except asyncio.TimeoutError:+ continue++ def stop(self) -> None:+ """Stop the dispatcher loop."""+ self._is_active = False++ @property+ def pending_incoming_count(self) -> int:+ """待处理的入站消息数量"""+ return self._user_messages.qsize()++ @property+ def pending_outgoing_count(self) -> int:+ """待发送的出站消息数量"""+ return self._robot_messages.qsize()+++class BaseChannel(ABC):+ """+ Channel实现的抽象基类。++ 每个Channel都应该实现这个接口+ 以集成到纳米机器人消息总线中。+ """++ name: str = "base"++ def __init__(self, config: Any, router: RobotMessageRouter):+ """+ 初始化Channel+ """+ self.config = config+ self.bus = router+ self._running = False++ @abstractmethod+ async def start(self) -> None:+ """+ 启动Channel并开始监听消息++ 一个长期运行的异步任务,需要:+ 1. 连接到聊天平台+ 2. 监听传入消息+ 3. 通过_handle_message()将消息转发到总线+ """+ pass++ @abstractmethod+ async def stop(self) -> None:+ """停止Channel并清理资源"""+ pass++ @abstractmethod+ async def send(self, msg: Message) -> None:+ """+ 通过Channel发送消息+ """+ pass++ def is_allowed(self, sender_id: str) -> bool:+ """+ 检查发送者是否被允许使用此机器人+ """+ allow_list = getattr(self.config, "allow_from", [])++ # If no allow list, allow everyone+ if not allow_list:+ return True++ sender_str = str(sender_id)+ if sender_str in allow_list:+ return True+ if "|" in sender_str:+ for part in sender_str.split("|"):+ if part and part in allow_list:+ return True+ return False++ async def _handle_message(+ self,+ chat_id: str,+ content: str,+ metadata: dict[str, Any] | None = None+ ) -> None:++ msg = Message(+ id=chat_id,+ type="req",+ channel_id=self.name,+ session_id=str(chat_id),+ params={'content': content},+ timestamp=time.time(),+ ok=True,+ metadata=metadata+ )++ await self.bus.route_user_message(msg)++ @property+ def is_running(self) -> bool:+ """Check if the channel_id is running."""+ return self._running+diff --git a/jiuwenclaw/channel/feishu.py b/jiuwenclaw/channel/feishu.pynew file mode 100644index 0000000000..4f3a4716cd--- /dev/null+++ b/jiuwenclaw/channel/feishu.py@@ -0,0 +1,389 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++import asyncio+import json+import re+import threading+import time+from collections import OrderedDict+from typing import Any, Callable++from loguru import logger+from pydantic import BaseModel, Field++from jiuwenclaw.channel.base import RobotMessageRouter, BaseChannel+from jiuwenclaw.schema.message import Message, ReqMethod+++class FeishuConfig(BaseModel):+ """使用WebSocket长连接的飞书/飞书通道配置。"""+ enabled: bool = False+ app_id: str = "" # 来自飞书开放平台的应用ID+ app_secret: str = "" # 来自飞书开放平台的应用密钥+ encrypt_key: str = "" # 事件订阅的加密密钥(可选)+ verification_token: str = "" # 事件订阅的验证令牌(可选)+ allow_from: list[str] = Field(default_factory=list) # 允许的用户的open_ids+++try:+ import lark_oapi as lark+ from lark_oapi.api.im.v1 import (+ CreateMessageRequest,+ CreateMessageRequestBody,+ CreateMessageReactionRequest,+ CreateMessageReactionRequestBody,+ Emoji,+ P2ImMessageReceiveV1,+ )++ FEISHU_AVAILABLE = True+except ImportError:+ FEISHU_AVAILABLE = False+ lark = None+ Emoji = None++# Message type display mapping+MSG_TYPE_MAP = {+ "image": "[image]",+ "audio": "[audio]",+ "file": "[file]",+ "sticker": "[sticker]",+}+++class FeishuChannel(BaseChannel):+ """+ 使用WebSocket长连接的飞书/飞书通道。+ 使用WebSocket接收事件 - 不需要公网IP或webhook。+ 需要:+ - 来自飞书开放平台的应用ID和应用密钥+ - 启用机器人功能+ - 启用事件订阅(im.message.receive_v1)+ """++ name = "feishu"++ def __init__(self, config: FeishuConfig, router: RobotMessageRouter):+ super().__init__(config, router)+ self.config: FeishuConfig = config+ self._client: Any = None+ self._ws_client: Any = None+ self._ws_thread: threading.Thread | None = None+ self._processed_message_ids: OrderedDict[str, None] = OrderedDict() # Ordered dedup cache+ self._loop: asyncio.AbstractEventLoop | None = None+ self._ws_loop: asyncio.AbstractEventLoop | None = None # 子线程内 WebSocket 用,避免与主线程 loop 冲突+ self._gateway_callback: Callable[[Message], None] | None = None++ @property+ def channel_id(self) -> str:+ """ChannelManager 按 channel_id 注册与派发."""+ return self.name++ def on_message(self, callback: Callable[[Message], None]) -> None:+ """ChannelManager 注册:收到消息时调用 callback,不再写 router(Gateway 路径)."""+ self._gateway_callback = callback++ async def _handle_message(+ self,+ chat_id: str,+ content: str,+ metadata: dict[str, Any] | None = None,+ ) -> None:+ """若已通过 on_message 注册网关回调,则直接回调;否则走 router.publish_user_messages(如 demo_feishu)."""+ msg = Message(+ id=chat_id,+ type="req",+ channel_id=self.name,+ session_id=str(chat_id),+ params={"content": content, "query": content},+ timestamp=time.time(),+ ok=True,+ req_method=ReqMethod.CHAT_SEND,+ metadata=metadata,+ )+ if self._gateway_callback:+ self._gateway_callback(msg)+ else:+ await self.bus.route_user_message(msg)++ async def start(self) -> None:+ """使用WebSocket长连接启动飞书机器人"""+ if not FEISHU_AVAILABLE:+ logger.error("Feishu SDK not installed. Run: pip install lark-oapi")+ return++ if not self.config.app_id or not self.config.app_secret:+ logger.error("Feishu app_id and app_secret not configured")+ return++ self._running = True+ self._loop = asyncio.get_running_loop()++ # 创建用于发送消息的Lark客户端+ self._client = lark.Client.builder() \+ .app_id(self.config.app_id) \+ .app_secret(self.config.app_secret) \+ .log_level(lark.LogLevel.INFO) \+ .build()++ # 在子线程内创建并启动 WebSocket Client,避免 lark 内部 asyncio 绑定主线程 loop("This event loop is already running")+ app_id = self.config.app_id+ app_secret = self.config.app_secret+ encrypt_key = self.config.encrypt_key or ""+ verification_token = self.config.verification_token or ""+ on_message_sync = self._on_message_sync++ def run_ws():+ loop = asyncio.new_event_loop()+ asyncio.set_event_loop(loop)+ self._ws_loop = loop+ # lark_oapi.ws.client 使用模块级全局 loop,start() 里 run_until_complete(_connect/_disconnect) 会报 "already running"+ # 且 _connect/_disconnect 未被 await 会触发 RuntimeWarning;在子线程内临时替换为该线程的 loop+ import lark_oapi.ws.client as _ws_client_mod+ _saved_loop = getattr(_ws_client_mod, "loop", None)+ _ws_client_mod.loop = loop+ ws_client = None+ try:+ event_handler = lark.EventDispatcherHandler.builder(+ encrypt_key,+ verification_token,+ ).register_p2_im_message_receive_v1(on_message_sync).build()+ ws_client = lark.ws.Client(+ app_id,+ app_secret,+ event_handler=event_handler,+ log_level=lark.LogLevel.INFO,+ )+ self._ws_client = ws_client+ ws_client.start()+ except Exception as e:+ logger.error("Feishu WebSocket error: %s", e)+ finally:+ if _saved_loop is not None:+ _ws_client_mod.loop = _saved_loop+ if ws_client is None:+ self._ws_client = None+ try:+ loop.run_until_complete(asyncio.sleep(0.25))+ except Exception:+ pass+ try:+ loop.close()+ except Exception:+ pass+ self._ws_loop = None++ self._ws_client = None+ self._ws_thread = threading.Thread(target=run_ws, daemon=True)+ self._ws_thread.start()+ # 等子线程完成 Client 创建再继续,避免 stop() 时 _ws_client 仍为 None+ for _ in range(50):+ if self._ws_client is not None:+ break+ await asyncio.sleep(0.1)++ logger.info("Feishu bot started with WebSocket long connection")+ logger.info("No public IP required - using WebSocket to receive events")++ # 持续运行直到停止+ while self._running:+ await asyncio.sleep(1)++ async def stop(self) -> None:+ """停止飞书机器人"""+ self._running = False+ if self._ws_client:+ try:+ self._ws_client.stop()+ except Exception as e:+ logger.warning("Error stopping WebSocket client: %s", e)+ if self._ws_loop and self._ws_loop.is_running():+ self._ws_loop.call_soon_threadsafe(self._ws_loop.stop)+ logger.info("Feishu bot stopped")++ def _add_reaction_sync(self, message_id: str, emoji_type: str) -> None:+ """添加反应的同步助手(在线程池中运行)"""+ try:+ request = CreateMessageReactionRequest.builder() \+ .message_id(message_id) \+ .request_body(+ CreateMessageReactionRequestBody.builder()+ .reaction_type(Emoji.builder().emoji_type(emoji_type).build())+ .build()+ ).build()++ response = self._client.im.v1.message_reaction.create(request)++ if not response.success():+ logger.warning(f"Failed to add reaction: code={response.code}, msg={response.msg}")+ else:+ logger.debug(f"Added {emoji_type} reaction to message {message_id}")+ except Exception as e:+ logger.warning(f"Error adding reaction: {e}")++ async def _add_reaction(self, message_id: str, emoji_type: str = "THUMBSUP") -> None:+ """+ 为消息添加反应表情符号(非阻塞)。+ 常见表情符号类型:THUMBSUP、OK、EYES、DONE、OnIt、HEART+ """+ if not self._client or not Emoji:+ return++ loop = asyncio.get_running_loop()+ await loop.run_in_executor(None, self._add_reaction_sync, message_id, emoji_type)++ # 匹配markdown表格的正则表达式(标题+分隔符+数据行)+ _TABLE_RE = re.compile(+ r"((?:^[ \t]*\|.+\|[ \t]*\n)(?:^[ \t]*\|[-:\s|]+\|[ \t]*\n)(?:^[ \t]*\|.+\|[ \t]*\n?)+)",+ re.MULTILINE,+ )++ @staticmethod+ def _parse_md_table(table_text: str) -> dict | None:+ """将markdown表格解析为飞书表格元素"""+ lines = [l.strip() for l in table_text.strip().split("\n") if l.strip()]+ if len(lines) < 3:+ return None+ split = lambda l: [c.strip() for c in l.strip("|").split("|")]+ headers = split(lines[0])+ rows = [split(l) for l in lines[2:]]+ columns = [{"tag": "column", "name": f"c{i}", "display_name": h, "width": "auto"}+ for i, h in enumerate(headers)]+ return {+ "tag": "table",+ "page_size": len(rows) + 1,+ "columns": columns,+ "rows": [{f"c{i}": r[i] if i < len(r) else "" for i in range(len(headers))} for r in rows],+ }++ def _build_card_elements(self, content: str) -> list[dict]:+ """将内容分割为markdown+表格元素用于飞书卡片"""+ elements, last_end = [], 0+ for m in self._TABLE_RE.finditer(content):+ before = content[last_end:m.start()].strip()+ if before:+ elements.append({"tag": "markdown", "content": before})+ elements.append(self._parse_md_table(m.group(1)) or {"tag": "markdown", "content": m.group(1)})+ last_end = m.end()+ remaining = content[last_end:].strip()+ if remaining:+ elements.append({"tag": "markdown", "content": remaining})+ return elements or [{"tag": "markdown", "content": content}]++ async def send(self, msg: Message) -> None:+ """通过飞书发送消息"""+ if not self._client:+ logger.warning("Feishu client not initialized")+ return++ try:+ # receive_id:优先用 session_id(回复对象),否则 id(Gateway 出站可能用 request_id 填 id)+ receive_id = getattr(msg, "session_id", None) or msg.id+ # 飞书 API:群聊 oc_ 用 chat_id,用户 ou_ 用 open_id(用 id 会报 99992402 field validation failed)+ if receive_id.startswith("oc_"):+ receive_id_type = "chat_id"+ else:+ receive_id_type = "open_id"++ # 内容:Gateway/Agent 响应在 payload.content,直接发可能在 params.content+ content_str = (msg.params or {}).get("content") or (getattr(msg, "payload") or {}).get("content") or ""+ #修改九问输出格式,确保内容为字符串+ if isinstance(content_str, dict):+ content_str = content_str.get("output", str(content_str))+ content_str = str(content_str)+ if not content_str.strip():+ logger.warning("Feishu send: content 为空,跳过发送")+ return++ elements = self._build_card_elements(content_str)+ card = {+ "config": {"wide_screen_mode": True},+ "elements": elements,+ }+ content = json.dumps(card, ensure_ascii=False)++ request = CreateMessageRequest.builder() \+ .receive_id_type(receive_id_type) \+ .request_body(+ CreateMessageRequestBody.builder()+ .receive_id(receive_id)+ .msg_type("interactive")+ .content(content)+ .build()+ ).build()++ response = self._client.im.v1.message.create(request)++ if not response.success():+ logger.error(+ f"Failed to send Feishu message: code={response.code}, "+ f"msg={response.msg}, log_id={response.get_log_id()}"+ )+ else:+ logger.debug(f"Feishu message sent to {msg.id}")++ except Exception as e:+ logger.error(f"Error sending Feishu message: {e}")++ def _on_message_sync(self, data: "P2ImMessageReceiveV1") -> None:+ """+ 传入消息的同步处理器(从WebSocket线程调用)。+ 在主事件循环中调度异步处理。+ """+ if self._loop and self._loop.is_running():+ asyncio.run_coroutine_threadsafe(self._on_message(data), self._loop)++ async def _on_message(self, data: "P2ImMessageReceiveV1") -> None:+ """处理来自飞书的传入消息"""+ try:+ event = data.event+ message = event.message+ sender = event.sender+ # Deduplication check+ message_id = message.message_id+ if message_id in self._processed_message_ids:+ return+ self._processed_message_ids[message_id] = None++ # Trim cache: keep most recent 500 when exceeds 1000+ while len(self._processed_message_ids) > 1000:+ self._processed_message_ids.popitem(last=False)++ # Skip bot messages+ sender_type = sender.sender_type+ if sender_type == "bot":+ return++ chat_id = message.chat_id+ chat_type = message.chat_type # "p2p" or "group"+ msg_type = message.message_type++ # 后台加「已读」反应,不阻塞消息处理与回复+ asyncio.create_task(self._add_reaction(message_id, "THUMBSUP"))++ # Parse message content+ if msg_type == "text":+ try:+ content = json.loads(message.content).get("text", "")+ except json.JSONDecodeError:+ content = message.content or ""+ else:+ content = MSG_TYPE_MAP.get(msg_type, f"[{msg_type}]")++ if not content:+ return++ open_id = getattr(getattr(sender, "sender_id", None), "open_id", None) or ""+ await self._handle_message(+ chat_id=chat_id,+ content=content,+ metadata={+ "message_id": message_id,+ "chat_type": chat_type,+ "msg_type": msg_type,+ "open_id": open_id,+ },+ )++ except Exception as e:+ logger.error(f"Error processing Feishu message: {e}")diff --git a/jiuwenclaw/channel/web_channel.py b/jiuwenclaw/channel/web_channel.pynew file mode 100644index 0000000000..34671837d5--- /dev/null+++ b/jiuwenclaw/channel/web_channel.py@@ -0,0 +1,436 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""WebChannel - WebSocket 通道实现.++提供可扩展的方法处理器注册机制 (`register_method`) 和连接钩子 (`on_connect`),+使上层应用可以灵活控制每个 req method 的行为,而无需修改通道本身。+"""++from __future__ import annotations++import asyncio+import inspect+import json+import secrets+import time+from dataclasses import dataclass, field+from typing import Any, Awaitable, Callable+from urllib.parse import parse_qs, urlparse++from loguru import logger++from jiuwenclaw.channel.base import BaseChannel, ChannelMetadata, RobotMessageRouter+from jiuwenclaw.schema.message import Message, Mode, ReqMethod++# ── 类型别名 ──────────────────────────────────────────────+# 方法处理器签名: (ws, req_id, params, session_id) -> None+MethodHandler = Callable[..., Awaitable[None]]+# 连接钩子签名: (ws) -> None | Awaitable[None]+ConnectHook = Callable[..., Any]+++@dataclass+class WebChannelConfig:+ """WebChannel 配置."""++ enabled: bool = False+ host: str = "127.0.0.1"+ port: int = 19000+ path: str = "/ws"+ allow_from: list[str] = field(default_factory=list)+++class WebChannel(BaseChannel):+ """Web 前端 WebSocket 通道.++ 核心职责:+ 1. 管理 WebSocket 连接生命周期+ 2. 解析帧协议 (req / res / event)+ 3. 将入站消息发布到 RobotMessageRouter+ 4. 将方法路由委托给通过 `register_method` 注册的处理器+ """++ name = "web"++ def __init__(self, config: WebChannelConfig, router: RobotMessageRouter):+ super().__init__(config, router)+ self.config: WebChannelConfig = config+ self._server: Any = None+ self._clients: set[Any] = set()+ self._on_message_cb: Callable[[Message], Any] | None = None+ self._method_handlers: dict[str, MethodHandler] = {}+ self._connect_hooks: list[ConnectHook] = []++ # ── 公共属性 ──────────────────────────────────────────++ @property+ def channel_id(self) -> str:+ """返回唯一 Channel 标识."""+ return self.name++ @property+ def clients(self) -> set[Any]:+ """当前活跃的 WebSocket 客户端集合(只读副本)."""+ return set(self._clients)++ # ── 扩展注册 API ──────────────────────────────────────++ def register_method(self, method: str, handler: MethodHandler) -> None:+ """注册 req method 处理器.++ handler 签名: ``async def handler(ws, req_id, params, session_id) -> None``+ handler 应通过 `send_response` / `send_event` 向客户端回复。+ """+ self._method_handlers[method] = handler++ def on_connect(self, callback: ConnectHook) -> None:+ """注册连接建立钩子,新客户端接入时依次调用."""+ self._connect_hooks.append(callback)++ def on_message(self, callback: Callable[[Message], None]) -> None:+ """注册消息接收回调(替代默认的 router.publish_user_messages)。"""+ self._on_message_cb = callback++ # ── 帧发送 API(公开给处理器使用)─────────────────────++ async def send_response(+ self,+ ws: Any,+ req_id: str,+ *,+ ok: bool,+ payload: dict[str, Any] | None = None,+ error: str | None = None,+ code: str | None = None,+ ) -> None:+ """向指定客户端发送 ``res`` 帧."""+ frame: dict[str, Any] = {+ "type": "res",+ "id": req_id,+ "ok": ok,+ "payload": payload or {},+ }+ if not ok:+ frame["error"] = error or "request failed"+ if code:+ frame["code"] = code+ await ws.send(json.dumps(frame, ensure_ascii=False))++ async def send_event(+ self,+ ws: Any,+ event: str,+ payload: dict[str, Any],+ *,+ seq: int | None = None,+ stream_id: str | None = None,+ ) -> None:+ """向指定客户端发送 ``event`` 帧."""+ frame: dict[str, Any] = {"type": "event", "event": event, "payload": payload}+ if seq is not None:+ frame["seq"] = seq+ if stream_id is not None:+ frame["stream_id"] = stream_id+ await ws.send(json.dumps(frame, ensure_ascii=False))++ async def broadcast_event(+ self,+ event: str,+ payload: dict[str, Any],+ *,+ seq: int | None = None,+ stream_id: str | None = None,+ ) -> None:+ """向所有已连接客户端广播 ``event`` 帧."""+ frame: dict[str, Any] = {"type": "event", "event": event, "payload": payload}+ if seq is not None:+ frame["seq"] = seq+ if stream_id is not None:+ frame["stream_id"] = stream_id+ await self._broadcast(frame)++ # ── Channel 生命周期 ──────────────────────────────────++ async def start(self) -> None:+ """启动 WebSocket 服务并监听客户端连接."""+ if self._running:+ logger.warning("WebChannel 已在运行")+ return+ if not self.config.enabled:+ logger.warning("WebChannel 未启用(enabled=False)")+ return++ try:+ from websockets.legacy.server import serve as ws_serve+ except Exception: # pragma: no cover+ import websockets++ ws_serve = websockets.serve++ self._server = await ws_serve(+ self._connection_handler,+ self.config.host,+ self.config.port,+ ping_interval=20,+ ping_timeout=20,+ )+ self._running = True+ logger.info(+ "WebChannel 已启动: ws://{}:{}{}",+ self.config.host,+ self.config.port,+ self.config.path,+ )+ await self._server.wait_closed()++ async def stop(self) -> None:+ """停止 WebSocket 服务并清理连接."""+ self._running = False++ close_tasks = [client.close(code=1001, reason="server shutdown") for client in list(self._clients)]+ if close_tasks:+ await asyncio.gather(*close_tasks, return_exceptions=True)+ self._clients.clear()++ if self._server is not None:+ self._server.close()+ await self._server.wait_closed()+ self._server = None+ logger.info("WebChannel 已停止")++ async def connect(self) -> None:+ """兼容方法:调用 start."""+ await self.start()++ async def disconnect(self) -> None:+ """兼容方法:调用 stop."""+ await self.stop()++ async def send(self, msg: Message) -> None:+ """向客户端发送消息(默认封装为 event 帧广播)."""+ if not self._clients:+ return++ # 响应帧:优先按 res 语义透传,避免误封装为 chat.final+ if msg.type == "res":+ if isinstance(msg.payload, dict):+ res_payload = {**msg.payload}+ elif msg.payload is None:+ res_payload = {}+ else:+ res_payload = {"content": str(msg.payload)}++ frame: dict[str, Any] = {+ "type": "res",+ "id": msg.id,+ "ok": bool(msg.ok),+ "payload": res_payload,+ }+ if not msg.ok:+ error_text = res_payload.get("error")+ if isinstance(error_text, str) and error_text:+ frame["error"] = error_text+ code_text = res_payload.get("code")+ if isinstance(code_text, str) and code_text:+ frame["code"] = code_text+ await self._broadcast(frame)+ return++ # 确定事件名称+ event_name = "chat.final"+ if msg.event_type is not None:+ event_name = msg.event_type.value++ # 根据事件类型构造 payload+ payload = {}++ if isinstance(msg.payload, dict):+ # 对于需要传递完整结构化数据的事件类型+ if event_name in ("connection.ack", "todo.updated", "chat.tool_call", "chat.tool_result",+ "chat.processing_status", "chat.interrupt_result", "chat.error", "heartbeat.relay",+ "context.compressed", "chat.ask_user_question", "chat.subtask_update"):+ # 传递完整 payload,保留所有字段+ payload = {**msg.payload}+ # 确保包含 session_id+ if "session_id" not in payload and msg.session_id:+ payload["session_id"] = msg.session_id+ else:+ # 对于纯文本消息(chat.delta, chat.final, chat.error 等),提取 content+ content = str(msg.payload.get("content", "") or "")+ if not content and not getattr(msg, "ok", True) and msg.payload.get("error"):+ content = str(msg.payload.get("error", ""))+ payload = {+ "session_id": msg.session_id,+ "content": content,+ }+ else:+ # payload 不是 dict,尝试从 params 提取+ content = str((msg.params or {}).get("content", "") or "")+ payload = {+ "session_id": msg.session_id,+ "content": content,+ }++ frame = {+ "type": "event",+ "event": event_name,+ "payload": payload,+ }+ await self._broadcast(frame)++ # interrupt_result 根据 intent 决定 is_processing 状态+ if event_name == "chat.interrupt_result":+ intent = payload.get("intent", "cancel") if isinstance(payload, dict) else "cancel"+ is_processing = intent in ("pause", "supplement", "resume")+ await self._broadcast({+ "type": "event",+ "event": "chat.processing_status",+ "payload": {"session_id": msg.session_id, "is_processing": is_processing},+ })++ def get_metadata(self) -> ChannelMetadata:+ """获取 Channel 元数据."""+ return ChannelMetadata(+ channel_id=self.channel_id,+ source="websocket",+ extra={"host": self.config.host, "port": self.config.port, "path": self.config.path},+ )++ # ── 内部实现 ──────────────────────────────────────────++ async def _connection_handler(self, ws: Any, path: str | None = None) -> None:+ raw_path = path if path is not None else getattr(ws, "path", "")+ parsed = urlparse(raw_path)+ request_path = parsed.path or raw_path+ if request_path != self.config.path:+ await ws.close(code=1008, reason=f"unsupported path: {request_path}")+ return++ query = parse_qs(parsed.query)+ remote = getattr(ws, "remote_address", None)+ self._clients.add(ws)+ logger.info("WebChannel 新连接: remote={} query={}", remote, query)++ # 触发连接钩子(如发送 connection.ack)+ for hook in self._connect_hooks:+ try:+ result = hook(ws)+ if inspect.isawaitable(result):+ await result+ except Exception as e: # pragma: no cover+ logger.warning("WebChannel on_connect hook error: {}", e)++ try:+ async for raw in ws:+ await self._handle_raw_message(ws, raw, query)+ except Exception as e: # pragma: no cover - 连接生命周期容错+ logger.warning("WebChannel 连接异常: {}", e)+ finally:+ self._clients.discard(ws)+ logger.info("WebChannel 连接关闭: remote={}", remote)++ async def _handle_raw_message(self, ws: Any, raw: str, query: dict[str, list[str]]) -> None:+ try:+ data = json.loads(raw)+ except json.JSONDecodeError:+ await self.send_response(ws, "", ok=False, error="invalid json", code="BAD_REQUEST")+ return++ if not isinstance(data, dict):+ await self.send_response(ws, "", ok=False, error="invalid request", code="BAD_REQUEST")+ return++ req_type = data.get("type")+ req_id = data.get("id")+ method = data.get("method")+ params = data.get("params")++ if req_type != "req" or not isinstance(req_id, str) or not isinstance(method, str):+ await self.send_response(+ ws,+ req_id if isinstance(req_id, str) else "",+ ok=False,+ error="invalid request",+ code="BAD_REQUEST",+ )+ return+ if not isinstance(params, dict):+ params = {}++ session_id = params.get("session_id")+ if not isinstance(session_id, str) or not session_id:+ session_id = self._make_session_id()++ user_message = Message(+ id=req_id,+ type="req",+ channel_id=self.channel_id,+ session_id=session_id,+ params=params,+ timestamp=time.time(),+ ok=True,+ req_method=self._parse_req_method(method),+ mode=self._parse_mode(params.get("mode")),+ metadata={"query": query, "method": method},+ )++ # 发布到 route 或回调+ handled_by_callback = False+ if self._on_message_cb is not None:+ result = self._on_message_cb(user_message)+ if inspect.isawaitable(result):+ result = await result+ handled_by_callback = bool(result)+ else:+ await self.bus.publish_user_messages(user_message)++ if handled_by_callback:+ return++ # 路由到已注册的方法处理器+ handler = self._method_handlers.get(method)+ if handler is not None:+ try:+ await handler(ws, req_id, params, session_id)+ except Exception as e:+ logger.error("WebChannel method handler error ({}): {}", method, e)+ await self.send_response(+ ws, req_id, ok=False,+ error=f"handler error: {e}", code="INTERNAL_ERROR",+ )+ else:+ await self.send_response(+ ws, req_id, ok=False,+ error=f"unknown method: {method}", code="METHOD_NOT_FOUND",+ )++ async def _broadcast(self, frame: dict[str, Any]) -> None:+ data = json.dumps(frame, ensure_ascii=False)+ if not self._clients:+ return+ await asyncio.gather(*[client.send(data) for client in list(self._clients)], return_exceptions=True)++ @staticmethod+ def _parse_req_method(method: str) -> ReqMethod | None:+ for item in ReqMethod:+ if item.value == method:+ return item+ return None++ @staticmethod+ def _parse_mode(raw_mode: Any) -> Mode:+ if isinstance(raw_mode, str):+ normalized = raw_mode.strip().lower()+ if normalized:+ try:+ return Mode(normalized)+ except ValueError:+ pass+ return Mode.PLAN++ @staticmethod+ def _make_session_id() -> str:+ # 与前端 generateSessionId 保持一致:毫秒时间戳(16进制) + 6位随机16进制+ ts = format(int(time.time() * 1000), "x")+ suffix = secrets.token_hex(3)+ return f"sess_{ts}_{suffix}"diff --git a/jiuwenclaw/channel/xiaoyi_channel.py b/jiuwenclaw/channel/xiaoyi_channel.pynew file mode 100644index 0000000000..c45ca28d3a--- /dev/null+++ b/jiuwenclaw/channel/xiaoyi_channel.py@@ -0,0 +1,341 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""XiaoyiChannel - 华为小艺 A2A 协议客户端."""++from __future__ import annotations++import asyncio+import base64+import hmac+import hashlib+import inspect+import json+import time+import ssl+from dataclasses import dataclass+from typing import Any, Callable+from urllib.parse import urlparse++from loguru import logger++from jiuwenclaw.channel.base import BaseChannel, ChannelMetadata, RobotMessageRouter+from jiuwenclaw.schema.message import Message, ReqMethod+++@dataclass+class XiaoyiChannelConfig:+ """小艺通道配置(客户端模式)."""++ enabled: bool = False+ ak: str = ""+ sk: str = ""+ agent_id: str = ""+ ws_url1: str = ""+ ws_url2: str = ""+ enable_streaming: bool = True+++def _generate_signature(sk: str, timestamp: str) -> str:+ """生成 HMAC-SHA256 签名(Base64 编码)."""+ h = hmac.new(+ sk.encode("utf-8"),+ timestamp.encode("utf-8"),+ hashlib.sha256,+ )+ return base64.b64encode(h.digest()).decode("utf-8")+++def _generate_auth_headers(ak: str, sk: str, agent_id: str) -> dict[str, str]:+ """生成鉴权 Header."""+ timestamp = str(int(time.time() * 1000))+ signature = _generate_signature(sk, timestamp)+ return {+ "x-access-key": ak,+ "x-sign": signature,+ "x-ts": timestamp,+ "x-agent-id": agent_id,+ }+++class XiaoyiChannel(BaseChannel):+ """小艺通道:作为客户端连接到小艺服务器,实现 A2A 协议."""++ name = "xiaoyi"++ def __init__(self, config: XiaoyiChannelConfig, router: RobotMessageRouter):+ super().__init__(config, router)+ self.config: XiaoyiChannelConfig = config+ self._ws: Any = None+ self._running = False+ self._heartbeat_task: asyncio.Task | None = None+ self._reconnect_task: asyncio.Task | None = None+ self._session_task_map: dict[str, str] = {}+ self._on_message_cb: Callable[[Message], Any] | None = None++ @property+ def channel_id(self) -> str:+ return self.name++ @property+ def clients(self) -> set[Any]:+ return set()++ def on_message(self, callback: Callable[[Message], None]) -> None:+ self._on_message_cb = callback++ async def start(self) -> None:+ if self._running:+ logger.warning("XiaoyiChannel 已在运行")+ return+ if not self.config.enabled:+ logger.warning("XiaoyiChannel 未启用(enabled=False)")+ return+ if not self.config.ak or not self.config.sk or not self.config.agent_id:+ logger.error("XiaoyiChannel 未配置 ak/sk/agent_id")+ return++ self._running = True+ self._reconnect_task = asyncio.create_task(self._reconnect_loop())+ logger.info("XiaoyiChannel 已启动(客户端模式)")++ async def stop(self) -> None:+ self._running = False+ if self._heartbeat_task:+ self._heartbeat_task.cancel()+ self._heartbeat_task = None+ if self._reconnect_task:+ self._reconnect_task.cancel()+ self._reconnect_task = None+ if self._ws:+ await self._ws.close()+ self._ws = None+ logger.info("XiaoyiChannel 已停止")++ async def send(self, msg: Message) -> None:+ """发送消息到小艺服务端(A2A 格式)."""+ if not self._ws:+ return+ session_id = msg.session_id or ""+ task_id = self._session_task_map.get(session_id, session_id)+ logger.info("XiaoyiChannel 发送消息: {}", msg)++ content = ""+ if isinstance(msg.payload, dict):+ content = msg.payload.get("content", "")+ if isinstance(content, dict):+ content = content.get("output", str(content))+ content = str(content)+ elif msg.payload:+ content = str(msg.payload)++ await self._send_text_response(session_id, task_id, content)++ def get_metadata(self) -> ChannelMetadata:+ return ChannelMetadata(+ channel_id=self.channel_id,+ source="websocket",+ extra={+ "mode": "client",+ "ws_url1": self.config.ws_url1,+ "ws_url2": self.config.ws_url2,+ "agent_id": self.config.agent_id,+ },+ )++ async def _reconnect_loop(self) -> None:+ """自动重连循环."""+ urls = [self.config.ws_url1, self.config.ws_url2]+ url_index = 0+ while self._running:+ url = urls[url_index]+ try:+ await self._connect(url)+ url_index = 0+ except Exception as e:+ logger.warning("XiaoyiChannel 连接失败 ({}): {}", url, e)+ url_index = (url_index + 1) % len(urls)+ await asyncio.sleep(5)++ async def _connect(self, url: str) -> None:+ """连接到小艺服务器."""+ import websockets++ headers = _generate_auth_headers(self.config.ak, self.config.sk, self.config.agent_id)+ parsed = urlparse(url)+ is_ip = bool(parsed.hostname and parsed.hostname.replace(".", "").isdigit())++ ssl_context = ssl.create_default_context()+ if is_ip:+ ssl_context.check_hostname = False+ ssl_context.verify_mode = ssl.CERT_NONE++ async with websockets.connect(url, additional_headers=headers, ssl=ssl_context) as ws:+ self._ws = ws+ logger.info("XiaoyiChannel 已连接: {}", url)++ # 发送初始化消息(必须在 heartbeat 之前)+ await self._send_init_message()++ # 启动心跳+ self._heartbeat_task = asyncio.create_task(self._heartbeat_loop())++ try:+ async for raw in ws:+ await self._handle_raw_message(raw)+ except Exception as e:+ logger.warning("XiaoyiChannel 连接异常: {}", e)+ finally:+ if self._heartbeat_task:+ self._heartbeat_task.cancel()+ self._heartbeat_task = None+ self._ws = None+ logger.info("XiaoyiChannel 连接关闭")++ async def _send_init_message(self) -> None:+ """发送初始化消息 (clawd_bot_init)."""+ if not self._ws:+ return+ init_message = {+ "msgType": "clawd_bot_init",+ "agentId": self.config.agent_id,+ }+ try:+ await self._ws.send(json.dumps(init_message))+ logger.info("XiaoyiChannel 已发送初始化消息")+ except Exception as e:+ logger.warning("XiaoyiChannel 发送初始化消息失败: {}", e)+ raise++ async def _heartbeat_loop(self) -> None:+ """应用层心跳循环(20秒间隔)."""+ while self._running and self._ws:+ try:+ heartbeat = {"msgType": "heartbeat", "agentId": self.config.agent_id}+ await self._ws.send(json.dumps(heartbeat))+ except Exception as e:+ logger.warning("XiaoyiChannel 心跳发送失败: {}", e)+ break+ await asyncio.sleep(20)++ async def _handle_raw_message(self, raw: str | bytes) -> None:+ """处理接收到的原始消息,转换为 JiuwenClaw 内部格式."""+ try:+ if isinstance(raw, bytes):+ raw = raw.decode("utf-8")+ message = json.loads(raw)+ except (json.JSONDecodeError, UnicodeDecodeError):+ logger.warning("XiaoyiChannel JSON 解析失败")+ return++ msg_type = message.get("msgType")+ if msg_type == "heartbeat":+ return++ method = message.get("method")+ if method == "message/stream":+ await self._handle_message_stream(message)+ elif method == "clearContext":+ await self._handle_clear_context(message)+ elif method == "tasks/cancel":+ await self._handle_tasks_cancel(message)+ else:+ logger.warning("XiaoyiChannel 未知方法: {}", method)++ async def _handle_message_stream(self, message: dict[str, Any]) -> None:+ """处理 message/stream 消息,转换为 JiuwenClaw Message."""+ session_id = message.get("sessionId") or message.get("params", {}).get("sessionId", "")+ task_id = message.get("params", {}).get("id", "")+ user_message = message.get("params", {}).get("message", {})+ parts = user_message.get("parts", [])++ text = ""+ for part in parts:+ if part.get("kind") == "text":+ text = part.get("text", "")+ break++ self._session_task_map[session_id] = task_id++ user_message = Message(+ id=message.get("id", ""),+ type="req",+ channel_id=self.channel_id,+ session_id=session_id,+ params={"query": text, "task_id": task_id},+ timestamp=time.time(),+ ok=True,+ req_method=ReqMethod.CHAT_SEND,+ metadata={"method": "message/stream"},+ )++ handled = False+ if self._on_message_cb is not None:+ result = self._on_message_cb(user_message)+ if inspect.isawaitable(result):+ result = await result+ handled = bool(result)++ if not handled:+ await self.bus.route_user_message(user_message)++ async def _handle_clear_context(self, message: dict[str, Any]) -> None:+ """处理清空上下文请求."""+ session_id = message.get("sessionId", "")+ logger.info("XiaoyiChannel 清空上下文: {}", session_id)++ self._session_task_map.pop(session_id, None)++ response = {+ "jsonrpc": "2.0",+ "id": message.get("id", ""),+ "result": {"status": {"state": "cleared"}},+ }+ await self._send_agent_response(session_id, session_id, response)++ async def _handle_tasks_cancel(self, message: dict[str, Any]) -> None:+ """处理取消任务请求."""+ session_id = message.get("sessionId", "")+ task_id = message.get("params", {}).get("id") or message.get("taskId", "")+ logger.info("XiaoyiChannel 取消任务: {} {}", session_id, task_id)++ response = {+ "jsonrpc": "2.0",+ "id": message.get("id", ""),+ "result": {"id": message.get("id", ""), "status": {"state": "canceled"}},+ }+ await self._send_agent_response(session_id, task_id, response)++ async def _send_text_response(self, session_id: str, task_id: str, text: str) -> None:+ """发送文本响应(A2A 格式)."""+ response = {+ "jsonrpc": "2.0",+ "id": f"msg_{int(time.time() * 1000)}",+ "result": {+ "taskId": task_id,+ "kind": "artifact-update",+ "append": False,+ "lastChunk": True,+ "final": True,+ "artifact": {+ "artifactId": f"artifact_{int(time.time() * 1000)}",+ "parts": [{"kind": "text", "text": text}],+ },+ },+ }+ await self._send_agent_response(session_id, task_id, response)++ async def _send_agent_response(self, session_id: str, task_id: str, response: dict[str, Any]) -> None:+ """发送 agent_response 包装的消息(A2A 格式)."""+ if not self._ws:+ return+ wrapper = {+ "msgType": "agent_response",+ "agentId": self.config.agent_id,+ "sessionId": session_id,+ "taskId": task_id,+ "msgDetail": json.dumps(response),+ }+ try:+ await self._ws.send(json.dumps(wrapper))+ except Exception as e:+ logger.warning("XiaoyiChannel 发送响应失败: {}", e)diff --git a/jiuwenclaw/evolution/__init__.py b/jiuwenclaw/evolution/__init__.pynew file mode 100644index 0000000000..b7eeeac31e--- /dev/null+++ b/jiuwenclaw/evolution/__init__.py@@ -0,0 +1,33 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""JiuwenClaw Skills Online Self-Evolution Module.++Provides SkillCallOperator, SkillOptimizer, SkillEvolutionManager, SignalDetector and other components,+implementing the complete pipeline from conversation signals to Skill content evolution.++Does not depend on openJiuwen core's agent_evolving framework, runs independently.++Design aligns with openJiuwen v2's Operator/Optimizer interface,+but implemented independently within JiuwenClaw_v2 without modifying core code.+"""+from jiuwenclaw.evolution.schema import (+ EvolutionChange,+ EvolutionEntry,+ EvolutionFile,+ EvolutionSignal,+)+from jiuwenclaw.evolution.signal_detector import SignalDetector+from jiuwenclaw.evolution.manager import SkillEvolutionManager+from jiuwenclaw.evolution.skill_call_operator import SkillCallOperator+from jiuwenclaw.evolution.skill_optimizer import SkillOptimizer++__all__ = [+ "EvolutionChange",+ "EvolutionEntry",+ "EvolutionFile",+ "EvolutionSignal",+ "SignalDetector",+ "SkillEvolutionManager",+ "SkillCallOperator",+ "SkillOptimizer",+]diff --git a/jiuwenclaw/evolution/manager.py b/jiuwenclaw/evolution/manager.pynew file mode 100644index 0000000000..6450a1f83e--- /dev/null+++ b/jiuwenclaw/evolution/manager.py@@ -0,0 +1,400 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""SkillEvolutionManager - Core Manager for skill evolution pipeline."""+from __future__ import annotations++import json+import logging+import re+from datetime import datetime, timezone+from pathlib import Path+from typing import Any, Dict, List, Optional++from jiuwenclaw.evolution.schema import (+ EvolutionChange,+ EvolutionEntry,+ EvolutionFile,+ EvolutionSignal,+ VALID_SECTIONS,+)+from jiuwenclaw.evolution.signal_detector import SignalDetector++logger = logging.getLogger(__name__)++_EVOLUTION_FILENAME = "evolutions.json"++_GENERATE_PROMPT = """你是一个 Skill 优化专家。+根据以下 Skill 内容和对话信号,生成一条演进记录。++## 当前 Skill 内容(摘要)+{skill_content}++## 演进信号+{signals_json}+## 对话片段(作为上下文)+{conversation_snippet}++## 要求+1. 语言必须一致(强制):输出语言必须与 Skill 完全一致。若 Skill 是中文,输出中文;若 Skill 是英文,输出英文。禁止自行决定语言!+2. 标题层级:使用与 Skill 相同的标题层级(##、### 等)+3. 记录格式(强制):只生成 1 条记录!禁止 2 条或更多!输出 JSON 的 content 字段只能有 1 个标题 + 2-3 个分点!+4. 聚焦信号:优先选择与当前任务直接相关的信号,忽略无关噪音+5. 提取通用规则:生成可复用的规则,非临时补丁+ - 好:"遇到 X 类型错误时,先检查 Y 是否正确再执行 Z"+ - 差:"某用户某次提到某问题"+6. 专注单一类型:一次只生成一个 section 类型的改进(Instructions/Examples/Troubleshooting 之一),不混合多类型+7. 分点格式:只使用无序列表(- 或 *),禁止层级(不能有子分点)+8. 精炼语言:内容简洁,避免冗余描述+9. 高质量增量:生成的演进内容必须是 Skill 中未提及的新知识,能指导后续使用并提升 Agent 执行效率。++只输出以下 JSON,不要其他内容:+{{+ "section": "Instructions | Examples | Troubleshooting",+ "action": "append",+ "content": "Markdown 内容,1 个标题 + 2-3 个分点,无层级(只生成 1 条记录,禁止重复内容)"+}}"""+++def build_conversation_snippet(+ messages: List[dict],+ max_messages: int = 30,+ content_preview_chars: int = 300,+) -> str:+ """Build conversation snippet from messages for LLM context."""+ if not messages:+ return ""++ def extract_text(m: dict) -> str:+ content = m.get("content", "")+ if isinstance(content, str):+ return content+ if isinstance(content, list):+ parts = []+ for block in content:+ if isinstance(block, dict):+ parts.append(block.get("text", ""))+ elif isinstance(block, str):+ parts.append(block)+ return "\n".join(parts)+ return str(content)++ lines: List[str] = []++ for msg in messages[-max_messages:]:+ role = msg.get("role", "unknown")+ text = extract_text(msg).strip() or "(无文本)"++ if len(text) > content_preview_chars:+ text = text[:content_preview_chars] + "..."++ tool_calls = msg.get("tool_calls")+ if role == "assistant" and tool_calls:+ names = [tc.get("name", "") for tc in tool_calls if isinstance(tc, dict)]+ prefix = f"[assistant] (tool_calls: {', '.join(names)})\n "+ else:+ prefix = f"[{role}] "++ line = prefix + text+ lines.append(line)++ return "\n".join(lines)+++class SkillEvolutionManager:+ """Manages evolution lifecycle for a Skill directory."""++ def __init__(self, llm: Any, skills_base_dir: str, model: str) -> None:+ self._llm = llm+ self._base = Path(skills_base_dir)+ self._model = model++ def scan(+ self,+ messages: List[dict],+ skill_dir_map: Optional[Dict[str, str]] = None,+ ) -> List[EvolutionSignal]:+ """Stage 1: Extract evolution signals from conversation (no LLM).++ Args:+ messages: Session message list.+ skill_dir_map: { skill_name: SKILL.md path }, for attribution.++ Returns:+ Deduplicated EvolutionSignal list (only the last one).+ """+ signals = SignalDetector(skill_dir_map=skill_dir_map).detect(messages)++ if len(signals) > 1:+ signals = signals[-1:]+ logger.info("[EvolutionManager] scan: keeping only last signal")++ signals_json = json.dumps(+ [s.to_dict() for s in signals],+ ensure_ascii=False,+ indent=2,+ )+ logger.info(+ "[EvolutionManager] scan: found %d signals, signals_json=%s",+ len(signals),+ signals_json,+ )+ return signals++ async def generate(+ self,+ skill_name: str,+ signals: List[EvolutionSignal],+ skill_content: Optional[str] = None,+ conversation_snippet: Optional[str] = None,+ ) -> Optional[EvolutionEntry]:+ """Stage 2: Generate evolution entry via LLM.++ Args:+ skill_name: Skill name.+ signals: Signal list from scan().+ skill_content: Current SKILL.md content (optional, auto-read if not provided).+ conversation_snippet: Summary of recent conversation rounds.++ Returns:+ Generated EvolutionEntry, or None if LLM thinks no changes needed.+ """+ if not signals:+ return None++ if skill_content is None:+ skill_dir = self._base / skill_name+ skill_content = self._read_skill_content(skill_dir)++ signals_json = json.dumps(+ [s.to_dict() for s in signals],+ ensure_ascii=False,+ indent=2,+ )+ if conversation_snippet and conversation_snippet.strip():+ conversation_snippet = conversation_snippet.strip()+ else:+ conversation_snippet = ""++ prompt = _GENERATE_PROMPT.format(+ skill_content=skill_content[:2000],+ signals_json=signals_json,+ conversation_snippet=conversation_snippet,+ )++ logger.info("[EvolutionManager] generate: calling LLM (skill=%s)", skill_name)+ try:+ response = await self._llm.invoke(+ model=self._model,+ messages=[{"role": "user", "content": prompt}],+ )+ raw = response.content if hasattr(response, "content") else str(response)+ except Exception as exc:+ logger.error("[EvolutionManager] generate: LLM call failed: %s", exc)+ return None++ change = self._parse_llm_response(raw)+ if change is None or not change.content.strip():+ logger.info("[EvolutionManager] generate: LLM thinks no changes needed")+ return None++ source = signals[0].type if signals else "unknown"+ context = "; ".join(s.excerpt for s in signals)+ entry = EvolutionEntry.make(source=source, context=context, change=change)+ logger.info(+ "[EvolutionManager] generate entry %s -> [%s]",+ entry.id,+ change.section,+ )+ return entry++ def append_entry(self, skill_name: str, entry: EvolutionEntry) -> None:+ """Stage 3: Append entry to evolutions.json."""+ skill_dir = self._base / skill_name+ evo_file = self._load_evolution_file(skill_dir)+ evo_file.entries.append(entry)+ evo_file.updated_at = datetime.now(tz=timezone.utc).isoformat()+ self._save_evolution_file(skill_dir, evo_file)+ logger.info(+ "[EvolutionManager] append_entry: wrote %s/evolutions.json (id=%s)",+ skill_name,+ entry.id,+ )++ def solidify(self, skill_name: str) -> int:+ """Stage 4: Solidify pending entries into SKILL.md.++ Returns:+ Number of entries solidified.+ """+ skill_dir = self._base / skill_name+ evo_file = self._load_evolution_file(skill_dir)+ pending = evo_file.pending_entries+ if not pending:+ logger.info("[EvolutionManager] solidify: no pending entries (skill=%s)", skill_name)+ return 0++ skill_md_path = self._find_skill_md(skill_dir)+ if skill_md_path is None:+ logger.warning("[EvolutionManager] solidify: SKILL.md not found (skill=%s)", skill_name)+ return 0++ content = skill_md_path.read_text(encoding="utf-8")+ for entry in pending:+ content = self._inject_section(content, entry.change)+ entry.applied = True++ skill_md_path.write_text(content, encoding="utf-8")+ evo_file.updated_at = datetime.now(tz=timezone.utc).isoformat()+ self._save_evolution_file(skill_dir, evo_file)+ logger.info(+ "[EvolutionManager] solidified %d entries (skill=%s)",+ len(pending),+ skill_name,+ )+ return len(pending)++ def load_skill_with_evolution(+ self, skill_name: str, base_content: str+ ) -> str:+ """Merge pending entries in memory, return enhanced content."""+ skill_dir = self._base / skill_name+ evo_file = self._load_evolution_file(skill_dir)+ pending = evo_file.pending_entries+ if not pending:+ return base_content++ content = base_content+ for entry in pending:+ content = self._inject_section(content, entry.change)+ return content++ def get_evolution_summary(self, skill_name: str) -> str:+ """Return pending evolution summary as Markdown."""+ skill_dir = self._base / skill_name+ evo_file = self._load_evolution_file(skill_dir)+ pending = evo_file.pending_entries+ if not pending:+ return ""++ lines = [f"\n\n### Skill '{skill_name}' 演进经验(自动注入,待固化)\n"]+ for entry in pending:+ lines.append(+ f"- **[{entry.change.section}]** {entry.change.content}"+ )+ return "\n".join(lines)++ def list_pending_summary(self, skill_names: List[str]) -> str:+ """Return pending summary for multiple Skills."""+ lines = []+ count = 0+ for name in skill_names:+ skill_dir = self._base / name+ evo_file = self._load_evolution_file(skill_dir)+ pending = evo_file.pending_entries+ if pending:+ count += 1+ lines.append(f"{count}. **{name}** - 共 {len(pending)} 条 pending 经验")+ for e in pending:+ content = e.change.content+ title = content.split('\n')[0] if '\n' in content else content[:50]+ lines.append(f" - **{title}**: ")+ if '\n' in content:+ body_lines = content.split('\n')[1:]+ if body_lines:+ summary = ' '.join(l.strip().lstrip('- ') for l in body_lines if l.strip())+ lines.append(f" {summary[:100].replace('**', '')}")+ lines.append("")++ if not lines:+ return "当前所有 Skill 暂无演进信息。"++ return "\n".join(lines)++ def _load_evolution_file(self, skill_dir: Path) -> EvolutionFile:+ evo_path = skill_dir / _EVOLUTION_FILENAME+ if evo_path.exists():+ try:+ data = json.loads(evo_path.read_text(encoding="utf-8"))+ return EvolutionFile.from_dict(data)+ except Exception as exc:+ logger.warning("[EvolutionManager] read evolutions.json failed: %s", exc)+ return EvolutionFile.empty(skill_id=skill_dir.name)++ def _save_evolution_file(self, skill_dir: Path, evo_file: EvolutionFile) -> None:+ skill_dir.mkdir(parents=True, exist_ok=True)+ evo_path = skill_dir / _EVOLUTION_FILENAME+ try:+ evo_path.write_text(+ json.dumps(evo_file.to_dict(), ensure_ascii=False, indent=2),+ encoding="utf-8",+ )+ except Exception as exc:+ logger.error("[EvolutionManager] write evolutions.json failed: %s", exc)++ @staticmethod+ def _find_skill_md(skill_dir: Path) -> Optional[Path]:+ skill_md = skill_dir / "SKILL.md"+ if skill_md.is_file():+ return skill_md+ md_files = list(skill_dir.glob("*.md"))+ if md_files:+ return md_files[0]+ return None++ @staticmethod+ def _read_skill_content(skill_dir: Path) -> str:+ md = SkillEvolutionManager._find_skill_md(skill_dir)+ if md is None:+ return "(SKILL.md not found)"+ try:+ return md.read_text(encoding="utf-8")+ except Exception:+ return "(failed to read SKILL.md)"++ @staticmethod+ def _inject_section(content: str, change: EvolutionChange) -> str:+ """Append change.content to the corresponding section in SKILL.md."""+ section = change.section+ addition = f"\n{change.content}\n"++ header_pattern = re.compile(+ rf"(## {re.escape(section)}.*?)(\n## |\Z)", re.DOTALL+ )+ m = header_pattern.search(content)+ if m:+ insert_pos = m.start(2)+ content = content[:insert_pos] + addition + content[insert_pos:]+ else:+ content = content.rstrip() + f"\n\n## {section}\n{change.content}\n"+ return content++ @staticmethod+ def _parse_llm_response(raw: str) -> Optional[EvolutionChange]:+ """从 LLM 返回里解析出 EvolutionChange。"""+ raw = raw.strip()+ raw = re.sub(r"^```(?:json)?\s*", "", raw, flags=re.MULTILINE)+ raw = re.sub(r"```\s*$", "", raw, flags=re.MULTILINE)+ raw = raw.strip()++ try:+ data = json.loads(raw)+ except json.JSONDecodeError:+ m = re.search(r"\{.*\}", raw, re.DOTALL)+ if not m:+ logger.warning("[EvolutionManager] cannot parse LLM response as JSON: %s", raw[:200])+ return None+ try:+ data = json.loads(m.group(0))+ except json.JSONDecodeError:+ logger.warning("[EvolutionManager] JSON parse failed")+ return None++ section = data.get("section", "Troubleshooting")+ if section not in VALID_SECTIONS:+ section = "Troubleshooting"++ return EvolutionChange(+ section=section,+ action=data.get("action", "append"),+ content=data.get("content", ""),+ )diff --git a/jiuwenclaw/evolution/schema.py b/jiuwenclaw/evolution/schema.pynew file mode 100644index 0000000000..d0ed4840f3--- /dev/null+++ b/jiuwenclaw/evolution/schema.py@@ -0,0 +1,137 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Data model definitions for skill evolution system."""+from __future__ import annotations++import uuid+from dataclasses import dataclass, field+from datetime import datetime, timezone+from typing import List, Optional++VALID_SECTIONS = {"Instructions", "Examples", "Troubleshooting"}+++@dataclass+class EvolutionChange:+ section: str # "Instructions" | "Examples" | "Troubleshooting"+ action: str # Fixed to "append"+ content: str # Markdown content to append++ def to_dict(self) -> dict:+ return {+ "section": self.section,+ "action": self.action,+ "content": self.content,+ }++ @classmethod+ def from_dict(cls, d: dict) -> "EvolutionChange":+ return cls(+ section=d.get("section", "Troubleshooting"),+ action=d.get("action", "append"),+ content=d.get("content", ""),+ )+++@dataclass+class EvolutionEntry:+ id: str # "ev_xxxxxxxx"+ source: str # "execution_failure" | "user_correction" | "repeated_failure"+ timestamp: str # ISO 8601+ context: str # Signal summary+ change: EvolutionChange+ applied: bool = False # False = pending, True = solidified++ @classmethod+ def make(+ cls,+ source: str,+ context: str,+ change: EvolutionChange,+ ) -> "EvolutionEntry":+ return cls(+ id=f"ev_{uuid.uuid4().hex[:8]}",+ source=source,+ timestamp=datetime.now(tz=timezone.utc).isoformat(),+ context=context,+ change=change,+ )++ def to_dict(self) -> dict:+ return {+ "id": self.id,+ "source": self.source,+ "timestamp": self.timestamp,+ "context": self.context,+ "change": self.change.to_dict(),+ "applied": self.applied,+ }++ @classmethod+ def from_dict(cls, d: dict) -> "EvolutionEntry":+ return cls(+ id=d.get("id", f"ev_{uuid.uuid4().hex[:8]}"),+ source=d.get("source", "unknown"),+ timestamp=d.get("timestamp", ""),+ context=d.get("context", ""),+ change=EvolutionChange.from_dict(d.get("change", {})),+ applied=d.get("applied", False),+ )++ @property+ def is_pending(self) -> bool:+ return not self.applied+++@dataclass+class EvolutionFile:+ skill_id: str+ version: str = "1.0.0"+ updated_at: str = field(+ default_factory=lambda: datetime.now(tz=timezone.utc).isoformat()+ )+ entries: List[EvolutionEntry] = field(default_factory=list)++ @property+ def pending_entries(self) -> List[EvolutionEntry]:+ return [e for e in self.entries if e.is_pending]++ def to_dict(self) -> dict:+ return {+ "skill_id": self.skill_id,+ "version": self.version,+ "updated_at": self.updated_at,+ "entries": [e.to_dict() for e in self.entries],+ }++ @classmethod+ def from_dict(cls, d: dict) -> "EvolutionFile":+ entries = [EvolutionEntry.from_dict(e) for e in d.get("entries", [])]+ return cls(+ skill_id=d.get("skill_id", ""),+ version=d.get("version", "1.0.0"),+ updated_at=d.get("updated_at", ""),+ entries=entries,+ )++ @classmethod+ def empty(cls, skill_id: str) -> "EvolutionFile":+ return cls(skill_id=skill_id)+++@dataclass+class EvolutionSignal:+ type: str # "execution_failure" | "user_correction" | "repeated_failure"+ section: str # Recommended SKILL.md section+ excerpt: str # Original content summary+ tool_name: Optional[str] = None+ skill_name: Optional[str] = None++ def to_dict(self) -> dict:+ return {+ "type": self.type,+ "section": self.section,+ "excerpt": self.excerpt,+ "tool_name": self.tool_name,+ "skill_name": self.skill_name,+ }diff --git a/jiuwenclaw/evolution/signal_detector.py b/jiuwenclaw/evolution/signal_detector.pynew file mode 100644index 0000000000..6ed2e2b849--- /dev/null+++ b/jiuwenclaw/evolution/signal_detector.py@@ -0,0 +1,154 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Signal Detector - Rules-based signal extraction from conversation messages."""+from __future__ import annotations++import re+from collections import defaultdict+from pathlib import Path+from typing import Dict, List, Optional++from jiuwenclaw.evolution.schema import EvolutionSignal+++def _extract_around_match(+ content: str, match: re.Match, before: int = 300, after: int = 300+) -> str:+ """取匹配位置前后一段内容。"""+ start = max(0, match.start() - before)+ end = min(len(content), match.end() + after)+ return content[start:end]+++_FAILURE_KEYWORDS = re.compile(+ r"error|exception|traceback|failed|failure|timeout|timed out"+ r"|errno|connectionerror|oserror|valueerror|typeerror"+ r"|错误|异常|失败|超时"+ r"|no such file|permission denied|access denied"+ r"|command not found|not recognized"+ r"|module not found"+ r"|econnrefused|econnreset|enoent|enotfound"+ r"|npm err!",+ re.IGNORECASE,+)++_CORRECTION_PATTERNS = [+ r"不对[,,。!]?",+ r"不是[这那]",+ r"错[了啦]",+ r"应该(是|用|改|换)",+ r"你搞错[了啦]",+ r"这不对",+ r"重新(来|做|执行|尝试)",+ r"你理解错[了啦]",+ r"纠正一下",+ r"我的意思是",+ r"that('s| is) (wrong|incorrect|not right)",+ r"you'?re wrong",+ r"should (be|use|have)",+ r"actually[,,]",+ r"no[,,] (wait|actually)",+ r"correct(ion)?:",+ r"fix(ed)?:",+]+_CORRECTION_PATTERN = re.compile("|".join(_CORRECTION_PATTERNS), re.IGNORECASE)++_SKILL_MD_PATTERN = re.compile(r"[/\\]+([^/\\]+)[/\\]+SKILL\.md", re.IGNORECASE)+_TOOL_SCHEMA_PATTERN = re.compile(r"^---\nname:\s*\w+\ndescription:", re.MULTILINE)+++class SignalDetector:+ """从会话消息里抽取演进相关信号。"""++ def __init__(+ self,+ skill_dir_map: Optional[Dict[str, str]] = None,+ ) -> None:+ self._skill_dir_map = skill_dir_map or {}++ def detect(self, messages: List[dict]) -> List[EvolutionSignal]:+ """Scan messages, return deduplicated evolution signal list.++ Args:+ messages: Conversation message list.++ Returns:+ List of EvolutionSignal.+ """+ signals: List[EvolutionSignal] = []+ tool_failure_counts: dict[str, int] = defaultdict(int)+ active_skill: Optional[str] = None++ for msg in messages:+ role = msg.get("role", "") if isinstance(msg, dict) else getattr(msg, "role", "")+ content = msg.get("content", "") if isinstance(msg, dict) else getattr(msg, "content", "")+ tool_calls = msg.get("tool_calls", []) if isinstance(msg, dict) else getattr(msg, "tool_calls", [])++ if role == "assistant" and tool_calls:+ active_skill = self._detect_skill_from_tool_calls(+ tool_calls, active_skill+ )++ if role in ("tool", "function"):+ if _FAILURE_KEYWORDS.search(content):+ tool_name = msg.get("name") or msg.get("tool_name")+ if _TOOL_SCHEMA_PATTERN.match(content):+ continue+ tool_failure_counts[tool_name or "unknown"] += 1++ match = _FAILURE_KEYWORDS.search(content)+ excerpt = _extract_around_match(content, match) if match else content[:500]+ sig = EvolutionSignal(+ type="execution_failure",+ section="Troubleshooting",+ excerpt=excerpt,+ tool_name=tool_name,+ skill_name=active_skill,+ )+ signals.append(sig)++ elif role == "user":+ match = _CORRECTION_PATTERN.search(content)+ if match:+ excerpt = _extract_around_match(content, match)+ sig = EvolutionSignal(+ type="user_correction",+ section="Examples",+ excerpt=excerpt,+ tool_name=None,+ skill_name=active_skill,+ )+ signals.append(sig)++ return self._deduplicate(signals)++ def _detect_skill_from_tool_calls(+ self,+ tool_calls: list,+ current_active: Optional[str],+ ) -> Optional[str]:+ """从 tool_calls 里判断是否读过某 SKILL.md。"""+ for tc in tool_calls:+ name = tc.get("name") if isinstance(tc, dict) else getattr(tc, "name", "")+ args = tc.get("arguments") if isinstance(tc, dict) else getattr(tc, "arguments", "")++ if "file" in name.lower() or "read" in name.lower():+ m = _SKILL_MD_PATTERN.search(args)+ if m:+ detected_skill = m.group(1)+ if not self._skill_dir_map or detected_skill in self._skill_dir_map:+ return detected_skill++ return current_active++ @staticmethod+ def _deduplicate(signals: List[EvolutionSignal]) -> List[EvolutionSignal]:+ """Deduplicate signals by (type, excerpt[:100])."""+ seen: set[tuple] = set()+ result: List[EvolutionSignal] = []+ for sig in signals:+ key = (sig.type, sig.excerpt[:100])+ if key not in seen:+ seen.add(key)+ result.append(sig)+ return resultdiff --git a/jiuwenclaw/evolution/skill_call_operator.py b/jiuwenclaw/evolution/skill_call_operator.pynew file mode 100644index 0000000000..634951d1fa--- /dev/null+++ b/jiuwenclaw/evolution/skill_call_operator.py@@ -0,0 +1,240 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""SkillCallOperator — manages all Skills as a single operator."""+from __future__ import annotations++import logging+from pathlib import Path+from typing import Any, Dict, List, Optional++from openjiuwen.core.operator.base import Operator, TunableSpec+from openjiuwen.core.session.agent import Session++logger = logging.getLogger(__name__)+++class SkillCallOperator(Operator):+ """Manages all Skills as a single operator (aligned with ToolCallOperator pattern).++ Inherits from openjiuwen.core.operator.base.Operator++ Args:+ skills_base_dir: Root directory for Skills (each subdir corresponds to a Skill).+ evolution_manager: SkillEvolutionManager instance (optional).+ Required for write path (set_parameter) and read path (get_*) to work.+ """++ # Fixed identifier, unique+ OPERATOR_ID = "skill_call"++ def __init__(+ self,+ skills_base_dir: str,+ evolution_manager: Optional[Any] = None,+ ) -> None:+ self.skills_base_dir = Path(skills_base_dir)+ self.evolution_manager = evolution_manager++ # ------------------------------------------------------------------+ # Operator identity+ # ------------------------------------------------------------------++ @property+ def operator_id(self) -> str:+ return self.OPERATOR_ID++ # ------------------------------------------------------------------+ # Tunable parameters (for SkillOptimizer bind/step)+ # ------------------------------------------------------------------++ def get_tunables(self) -> Dict[str, TunableSpec]:+ """Return tunable parameter descriptions."""+ return {+ "skill_content": TunableSpec(+ name="skill_content",+ kind="prompt",+ path="skill_content",+ ),+ "new_skill": TunableSpec(+ name="new_skill",+ kind="prompt",+ path="new_skill",+ ),+ }++ def set_parameter(self, target: str, value: Any) -> None:+ """Route Optimizer updates to specific Skills (aligned with ToolCallOperator).++ Args:+ target: "skill_content" | "new_skill"+ value:+ skill_content -> Dict[skill_name, EvolutionEntry]+ e.g. {"weather-check": entry}+ new_skill -> Dict[skill_name, content_str]+ e.g. {"search-skill": "# Search Skill\\n..."}+ """+ if not isinstance(value, dict):+ logger.warning(+ "[SkillCallOperator] set_parameter value should be dict, got: %s",+ type(value).__name__,+ )+ return++ if target == "skill_content":+ self._apply_skill_content(value)++ elif target == "new_skill":+ self._apply_new_skill(value)++ else:+ logger.debug("[SkillCallOperator] ignoring unknown target: %s", target)++ # ------------------------------------------------------------------+ # State management (Operator base class interface)+ # ------------------------------------------------------------------++ def get_state(self) -> Dict[str, Any]:+ """Get current state for rollback, snapshot, or version comparison."""+ return {+ "operator_id": self.operator_id,+ "skills_base_dir": str(self.skills_base_dir),+ }++ def load_state(self, state: Dict[str, Any]) -> None:+ """Restore operator state from serialized dict."""+ if "skills_base_dir" in state:+ self.skills_base_dir = Path(state["skills_base_dir"])++ async def invoke(+ self,+ inputs: Dict[str, Any],+ session: Session,+ **kwargs: Any,+ ) -> Any:+ """Execute skill content retrieval (management operator, not execution).++ Returns merged skill content for the skill system.++ Args:+ inputs: Input dict, expects "skill_name" key+ session: Session for tracing+ **kwargs: Additional parameters++ Returns:+ Dict with skill_name, content, and summary+ """+ skill_name = inputs.get("skill_name")+ if not skill_name:+ return {"error": "skill_name required in inputs"}++ self._set_operator_context(session, self.operator_id)+ try:+ content = self.get_merged_content(skill_name)+ return {+ "skill_name": skill_name,+ "content": content,+ "summary": self.get_evolution_summary(skill_name),+ }+ finally:+ self._set_operator_context(session, None)++ # ------------------------------------------------------------------+ # Read path (does not modify files)+ # ------------------------------------------------------------------++ def get_skill_content(self, skill_name: str) -> str:+ """Read SKILL.md raw content (without evolution merge)."""+ skill_dir = self.skills_base_dir / skill_name+ skill_md = skill_dir / "SKILL.md"+ if skill_md.is_file():+ try:+ return skill_md.read_text(encoding="utf-8")+ except Exception as exc:+ logger.warning("[SkillCallOperator] failed to read SKILL.md (%s): %s", skill_name, exc)+ # Fallback: any .md file+ md_files = sorted(skill_dir.glob("*.md"))+ if md_files:+ try:+ return md_files[0].read_text(encoding="utf-8")+ except Exception:+ pass+ return ""++ def get_merged_content(self, skill_name: str) -> str:+ """Return SKILL.md + pending evolution merged content (in-memory, no file change)."""+ base = self.get_skill_content(skill_name)+ if self.evolution_manager is not None:+ return self.evolution_manager.load_skill_with_evolution(skill_name, base)+ return base++ def get_evolution_summary(self, skill_name: str) -> str:+ """Return single Skill's pending evolution summary (Markdown)."""+ if self.evolution_manager is None:+ return ""+ return self.evolution_manager.get_evolution_summary(skill_name)++ def get_all_evolution_summaries(self, skill_names: List[str]) -> str:+ """Aggregate multiple Skills' pending evolution summaries.++ Args:+ skill_names: List of registered Skill names.++ Returns:+ Markdown summary string; returns "" when all Skills have no pending.+ """+ parts: List[str] = []+ for name in skill_names:+ summary = self.get_evolution_summary(name)+ if summary:+ parts.append(summary)+ return "\n".join(parts)++ def skill_exists(self, skill_name: str) -> bool:+ """Check if Skill directory exists."""+ return (self.skills_base_dir / skill_name).is_dir()++ # ------------------------------------------------------------------+ # Write path internal implementation+ # ------------------------------------------------------------------++ def _apply_skill_content(self, value: Dict[str, Any]) -> None:+ """Apply skill_content update: write EvolutionEntry to Skill's evolutions.json."""+ for skill_name, entry in value.items():+ if self.evolution_manager is None:+ logger.warning(+ "[SkillCallOperator] evolution_manager not injected, cannot write (skill=%s)",+ skill_name,+ )+ continue+ self.evolution_manager.append_entry(skill_name, entry)+ logger.info(+ "[SkillCallOperator] wrote evolution entry (skill=%s, section=%s)",+ skill_name,+ entry.change.section if hasattr(entry, "change") else "?",+ )++ def _apply_new_skill(self, value: Dict[str, str]) -> None:+ """Apply new_skill update: create new Skill directory and SKILL.md."""+ for skill_name, content in value.items():+ skill_dir = self.skills_base_dir / skill_name+ skill_md = skill_dir / "SKILL.md"+ try:+ skill_dir.mkdir(parents=True, exist_ok=True)+ if skill_md.exists():+ logger.warning(+ "[SkillCallOperator] SKILL.md already exists, skipping creation (skill=%s)", skill_name+ )+ continue+ skill_md.write_text(content, encoding="utf-8")+ logger.info("[SkillCallOperator] created new Skill: %s", skill_name)+ except Exception as exc:+ logger.error(+ "[SkillCallOperator] failed to create Skill (%s): %s", skill_name, exc+ )++ def __repr__(self) -> str:+ return (+ f"SkillCallOperator(id={self.operator_id!r}, "+ f"base={self.skills_base_dir!r}, "+ f"has_manager={self.evolution_manager is not None})"+ )diff --git a/jiuwenclaw/evolution/skill_optimizer.py b/jiuwenclaw/evolution/skill_optimizer.pynew file mode 100644index 0000000000..5dd3cea106--- /dev/null+++ b/jiuwenclaw/evolution/skill_optimizer.py@@ -0,0 +1,401 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""SkillOptimizer — Optimizer driving Skill online evolution."""+from __future__ import annotations++import asyncio+import logging+from pathlib import Path+from typing import Any, Dict, List, Optional, Tuple++from openjiuwen.agent_evolving.optimizer.base import BaseOptimizer+from openjiuwen.agent_evolving.trajectory.types import Updates as BaseUpdates++from jiuwenclaw.evolution.manager import SkillEvolutionManager, build_conversation_snippet+from jiuwenclaw.evolution.schema import EvolutionSignal++logger = logging.getLogger(__name__)++# Updates type: {(op_id, target): Dict[skill_name, EvolutionEntry]}+Updates = Dict[Tuple[str, str], Dict[str, Any]]+++class SkillOptimizer(BaseOptimizer):+ """Optimizer driving Skill online evolution.++ Inherits from openjiuwen.agent_evolving.optimizer.base.BaseOptimizer++ Args:+ llm: openJiuwen Model instance (used for LLM calls in generate phase).+ skills_base_dir: Skill root directory (e.g. "workspace/agent/skills").+ auto_scan: whether to auto fire-and-forget scan after invoke (default False).+ """++ domain: str = "skill"++ def __init__(+ self,+ llm: Any,+ model: str,+ skills_base_dir: str = "workspace/agent/skills",+ auto_scan: bool = False,+ ) -> None:+ super().__init__()+ self._llm = llm+ self._skills_base_dir = skills_base_dir+ self.auto_scan = auto_scan+ self._model = model+ self._manager = SkillEvolutionManager(llm=llm, skills_base_dir=skills_base_dir, model=model)++ # Operator pipeline internal state (for async flow)+ self._gradient: Dict[str, Any] = {} # Store signals and target Skill list++ # ------------------------------------------------------------------+ # Properties+ # ------------------------------------------------------------------++ @property+ def evolution_manager(self) -> SkillEvolutionManager:+ """Expose internal Manager (for ReActAgentEvolve._get_skill_evolution_manager() access)."""+ return self._manager++ @property+ def skills_base_dir(self) -> str:+ return self._skills_base_dir++ @staticmethod+ def default_targets() -> List[str]:+ return ["skill_content"]++ # ------------------------------------------------------------------+ # Operator pipeline interface (aligned with v2)+ # ------------------------------------------------------------------++ def bind(+ self,+ operators: Optional[Dict[str, Any]] = None,+ targets: Optional[List[str]] = None,+ **config,+ ) -> int:+ """Bind SkillCallOperator, return number of successful binds.++ Args:+ operators: { "skill_call": SkillCallOperator }+ targets: Tunable parameter list, default ["skill_content"]+ **config: Additional config (ignored, for BaseOptimizer compatibility)+ """+ # Use base class bind for filtering and binding+ count = super().bind(operators, targets, **config)+ logger.info("[SkillOptimizer] bind: bound %d operators", count)+ return count++ def signal_backward(+ self,+ signals: List[EvolutionSignal],+ target_skills: Optional[List[str]] = None,+ ) -> None:+ """Store signals to gradient (no LLM, pure storage).++ Args:+ signals: EvolutionSignal list returned by scan().+ target_skills: Target Skill name list for this evolution (explicitly specified).+ When None, auto-infer from signals.skill_name.+ """+ self._gradient["signals"] = list(signals)+ if target_skills:+ self._gradient["target_skills"] = list(target_skills)+ logger.info(+ "[SkillOptimizer] signal_backward: %d signals, target_skills=%s",+ len(signals),+ target_skills,+ )++ async def async_step(self) -> Updates:+ """LLM generates EvolutionEntry, return Updates dict (async, online path).++ Updates format:+ { ("skill_call", "skill_content"): {skill_name: EvolutionEntry} }++ Generate one entry per Skill in target_skills order;+ Return empty {} when no signals or no bound operator.++ Side effects:+ Clears _gradient after call.+ """+ signals: List[EvolutionSignal] = self._gradient.get("signals", [])+ target_skills: List[str] = self._gradient.get("target_skills", [])+ self._gradient.clear()++ if not signals or not self._operators:+ logger.info("[SkillOptimizer] async_step: no signals or no bound operator, skip")+ return {}++ op = self._operators.get("skill_call")+ if op is None:+ logger.warning("[SkillOptimizer] async_step: skill_call operator not found")+ return {}++ # Determine Skill list to evolve+ if target_skills:+ skills_to_evolve = target_skills+ else:+ # Auto-infer from signal attribution (deduplicate, preserve order)+ seen: set = set()+ skills_to_evolve = []+ for s in signals:+ if s.skill_name and s.skill_name not in seen:+ seen.add(s.skill_name)+ skills_to_evolve.append(s.skill_name)++ if not skills_to_evolve:+ logger.info("[SkillOptimizer] async_step: no target Skills, skip")+ return {}++ result_entries: Dict[str, Any] = {} # {skill_name: EvolutionEntry}++ for skill_name in skills_to_evolve:+ # Only process signals with explicit skill attribution+ attributed = [s for s in signals if s.skill_name == skill_name]+ if not attributed:+ continue++ skill_content = op.get_skill_content(skill_name)+ try:+ entry = await self._manager.generate(skill_name, attributed, skill_content)+ except Exception as exc:+ logger.error(+ "[SkillOptimizer] generate failed (skill=%s): %s", skill_name, exc+ )+ continue++ if entry is not None:+ result_entries[skill_name] = entry+ logger.info(+ "[SkillOptimizer] async_step: generated entry %s -> skill=%s [%s]",+ entry.id,+ skill_name,+ entry.change.section,+ )++ if not result_entries:+ return {}++ # Format aligned with ToolCallOperator's value routing pattern+ return {("skill_call", "skill_content"): result_entries}++ # ------------------------------------------------------------------+ # High-level methods (direct call, skip bind/step pipeline)+ # ------------------------------------------------------------------++ async def evolve(self, skill_name: str, messages: List[dict]) -> str:+ """Manually trigger evolution (/evolve high-level interface, skip bind/step pipeline).++ Flow: scan -> generate -> append++ Returns:+ Evolution result description string (display to user).+ """+ signals = self._manager.scan(messages)+ if not signals:+ return (+ f"No clear evolution signals in current conversation (no tool failures, no user corrections).\n"+ f"To manually record experience, describe the issue and I will update Skill '{skill_name}'."+ )++ skill_content = self._read_skill_content(skill_name)+ conversation_snippet = build_conversation_snippet(messages)+ entry = await self._manager.generate(+ skill_name,+ signals,+ skill_content,+ conversation_snippet=conversation_snippet or None,+ )+ logger.info("[SkillOptimizer] evolve: generate entry=%s", entry.id if entry else None)+ if entry is None:+ return (+ f"Evolution signals analyzed, but LLM determined Skill '{skill_name}' "+ f"already contains relevant content."+ )++ self._manager.append_entry(skill_name, entry)+ logger.info("[SkillOptimizer] evolve: appended entry=%s", entry.id)+ return (+ f"Evolution experience recorded to Skill '{skill_name}':\n"+ f" **[{entry.change.section}]** {entry.change.content[:200]}\n\n"+ f"(evolutions.json updated, effective next conversation; "+ f"use `/solidify {skill_name}` to固化 to SKILL.md)"+ )++ async def evolve_generate(+ self, skill_name: str, messages: List[dict]+ ) -> "Optional[Any]":+ """Generate-only version of manual evolution: scan + generate, no write to evolutions.json.++ Returns:+ EvolutionEntry or None (no signals / LLM thinks no changes needed).+ """+ signals = self._manager.scan(messages)+ if not signals:+ return None+ skill_content = self._read_skill_content(skill_name)+ conversation_snippet = build_conversation_snippet(messages)+ return await self._manager.generate(+ skill_name,+ signals,+ skill_content,+ conversation_snippet=conversation_snippet or None,+ )++ async def auto_scan_generate(+ self,+ messages: List[dict],+ operators: Dict[str, Any],+ skill_names: Optional[List[str]] = None,+ ) -> Dict[str, Any]:+ """Generate-only version of auto-scan: returns {skill_name: EvolutionEntry}, no file writes.++ Args:+ messages: Current session message list (dict format).+ operators: { "skill_call": SkillCallOperator }.+ skill_names: Registered Skill name list.++ Returns:+ { skill_name: EvolutionEntry } -- only contains skills that successfully generated entries.+ """+ op = operators.get("skill_call")+ if op is None or not skill_names:+ return {}++ skill_dir_map = {+ name: str(op.skills_base_dir / name / "SKILL.md")+ for name in skill_names+ if op.skill_exists(name)+ }+ signals = self._manager.scan(messages, skill_dir_map=skill_dir_map)+ if not signals:+ logger.debug("[SkillOptimizer] auto_scan_generate: no signals, silent exit")+ return {}++ results: Dict[str, Any] = {}+ for skill_name in skill_names:+ attributed = [s for s in signals if s.skill_name == skill_name]+ if not attributed:+ continue+ try:+ skill_content = op.get_skill_content(skill_name)+ conversation_snippet = build_conversation_snippet(messages)+ entry = await self._manager.generate(+ skill_name,+ attributed,+ skill_content,+ conversation_snippet=conversation_snippet or None,+ )+ if entry is not None:+ results[skill_name] = entry+ logger.info(+ "[SkillOptimizer] auto_scan_generate: generated entry %s -> skill=%s",+ entry.id,+ skill_name,+ )+ except Exception as exc:+ logger.warning(+ "[SkillOptimizer] auto_scan_generate: error processing skill=%s: %s",+ skill_name,+ exc,+ )+ return results++ def solidify(self, skill_name: str) -> str:+ """Solidify pending experience into SKILL.md."""+ count = self._manager.solidify(skill_name)+ if count == 0:+ return f"Skill '{skill_name}' has no pending evolution experience to solidify."+ return f"Solidified {count} evolution experience entries to Skill '{skill_name}' SKILL.md."++ def list_summary(self, skill_names: List[str]) -> str:+ """List all Skill evolution records (for /evolve list command)."""+ return self._manager.list_pending_summary(skill_names)++ # ------------------------------------------------------------------+ # BaseOptimizer abstract method implementations+ # ------------------------------------------------------------------++ def _step(self) -> BaseUpdates:+ """Sync step method implementing BaseOptimizer interface.++ Uses asyncio.run() to call async async_step().+ """+ return asyncio.run(self.async_step())++ def _backward(self, evaluated_cases: List[Any]) -> None:+ """Backward method implementing BaseOptimizer interface.++ Extracts signals from evaluated_cases and stores to gradient.+ Used for offline training scenarios.++ Args:+ evaluated_cases: List of evaluated cases with score and reason+ """+ if not evaluated_cases:+ return++ # Extract signals from failed cases+ signals = []+ target_skills = set()++ for case in evaluated_cases:+ # Only process failed cases (score == 0)+ if hasattr(case, "score") and case.score == 0:+ # Extract signal from reason or answer+ reason = getattr(case, "reason", "") or ""+ answer = getattr(case, "answer", None)++ # Build signal content+ excerpt = reason or str(answer) if answer else ""+ if not excerpt:+ continue++ # Try to extract skill_name from answer+ skill_name = None+ if answer and isinstance(answer, dict):+ skill_name = answer.get("skill_name")++ # Try to extract skill_name from case inputs+ if not skill_name and hasattr(case, "inputs"):+ inputs = case.inputs+ if isinstance(inputs, dict):+ skill_name = inputs.get("skill_name")++ signal = EvolutionSignal(+ type="execution_failure",+ section="troubleshooting",+ excerpt=excerpt[:500], # Limit length+ skill_name=skill_name,+ )+ signals.append(signal)+ if skill_name:+ target_skills.add(skill_name)++ if signals:+ self.signal_backward(+ signals,+ list(target_skills) if target_skills else None,+ )+ logger.info(+ "[SkillOptimizer] _backward: extracted %d signals from %d evaluated cases",+ len(signals),+ len(evaluated_cases),+ )++ # ------------------------------------------------------------------+ # Internal helpers+ # ------------------------------------------------------------------++ def _read_skill_content(self, skill_name: str) -> str:+ skill_md = Path(self._skills_base_dir) / skill_name / "SKILL.md"+ if skill_md.is_file():+ try:+ return skill_md.read_text(encoding="utf-8")+ except Exception:+ pass+ return ""diff --git a/jiuwenclaw/gateway/__init__.py b/jiuwenclaw/gateway/__init__.pynew file mode 100644index 0000000000..d10da0fbc1--- /dev/null+++ b/jiuwenclaw/gateway/__init__.py@@ -0,0 +1,29 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Gateway 模块 - 系统枢纽."""++from jiuwenclaw.gateway.agent_client import AgentServerClient, WebSocketAgentServerClient+from jiuwenclaw.gateway.agent_ws_server import AgentWebSocketServer+from jiuwenclaw.gateway.channel_manager import ChannelManager+from jiuwenclaw.gateway.heartbeat import (+ HEARTBEAT_CHANNEL_ID,+ HEARTBEAT_PROMPT,+ GatewayHeartbeatService,+ HeartbeatConfig,+ IHeartbeat,+)+from jiuwenclaw.gateway.message_handler import MessageHandler++__all__ = [+ "AgentServerClient",+ "AgentWebSocketServer",+ "WebSocketAgentServerClient",+ "ChannelManager",+ "GatewayHeartbeatService",+ "HEARTBEAT_CHANNEL_ID",+ "HEARTBEAT_PROMPT",+ "HEARTBEAT_SESSION_ID",+ "HeartbeatConfig",+ "IHeartbeat",+ "MessageHandler",+]diff --git a/jiuwenclaw/gateway/agent_client.py b/jiuwenclaw/gateway/agent_client.pynew file mode 100644index 0000000000..71b1824627--- /dev/null+++ b/jiuwenclaw/gateway/agent_client.py@@ -0,0 +1,439 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""AgentServerClient - Gateway 与 AgentServer 的 WebSocket 客户端."""++from __future__ import annotations++import asyncio+import json+import logging+from abc import ABC, abstractmethod+from dataclasses import asdict+from logging.handlers import RotatingFileHandler+from pathlib import Path+from typing import Any, AsyncIterator++from jiuwenclaw.schema.agent import AgentRequest, AgentResponse, AgentResponseChunk++logger = logging.getLogger(__name__)+++def _setup_file_logger() -> None:+ """将本模块日志追加到项目 logs/agent_client.log."""+ project_root = Path(__file__).resolve().parents[2]+ log_dir = project_root / "logs"+ log_file = log_dir / "agent_client.log"++ # 避免在重复导入时添加多个相同 handler+ for handler in logger.handlers:+ if getattr(handler, "baseFilename", None) == str(log_file):+ return++ try:+ log_dir.mkdir(parents=True, exist_ok=True)+ file_handler = RotatingFileHandler(+ log_file,+ maxBytes=10 * 1024 * 1024,+ backupCount=5,+ encoding="utf-8",+ )+ file_handler.setLevel(logging.INFO)+ file_handler.setFormatter(logging.Formatter(+ "%(asctime)s.%(msecs)03d %(name)s %(levelname)s: %(message)s",+ datefmt="%Y-%m-%d %H:%M:%S",+ ))+ logger.addHandler(file_handler)+ except Exception:+ logger.exception("[WebSocketAgentServerClient] 初始化文件日志失败: %s", log_file)+++_setup_file_logger()+++def _to_json(data: Any) -> str:+ """将任意对象序列化为日志友好的 JSON 字符串."""+ try:+ return json.dumps(data, ensure_ascii=False, sort_keys=True, default=str)+ except Exception:+ return repr(data)+++class AgentServerClient(ABC):+ """AgentServer WebSocket 客户端接口."""++ @abstractmethod+ async def connect(self, uri: str) -> None:+ """建立与 AgentServer 的 WebSocket 连接."""+ ...++ @abstractmethod+ async def disconnect(self) -> None:+ """断开连接."""+ ...++ @abstractmethod+ async def send_request(self, request: AgentRequest) -> AgentResponse:+ """发送请求,等待完整响应."""+ ...++ @abstractmethod+ async def send_request_stream(+ self, request: AgentRequest+ ) -> AsyncIterator[AgentResponseChunk]:+ """发送请求,流式接收响应."""+ ...+++def _request_to_payload(request: AgentRequest) -> dict[str, Any]:+ """将 AgentRequest 转为 WebSocket 发送的 JSON 载荷."""+ payload = asdict(request)+ # req_method 是 Enum,需要转为字符串值+ if payload.get("req_method") is not None:+ payload["req_method"] = payload["req_method"].value+ return payload+++def _payload_to_response(data: dict[str, Any]) -> AgentResponse:+ """将服务端返回的 JSON 转为 AgentResponse."""+ return AgentResponse(+ request_id=data["request_id"],+ channel_id=data["channel_id"],+ ok=data.get("ok", True),+ payload=data.get("payload"),+ metadata=data.get("metadata"),+ )+++def _payload_to_chunk(data: dict[str, Any]) -> AgentResponseChunk:+ """将服务端返回的 JSON 转为 AgentResponseChunk."""+ return AgentResponseChunk(+ request_id=data["request_id"],+ channel_id=data["channel_id"],+ payload=data.get("payload"),+ is_complete=data.get("is_complete", False),+ )+++class WebSocketAgentServerClient(AgentServerClient):+ """+ 基于 websockets 的 AgentServer WebSocket 客户端实现。++ 协议约定:+ - 发送:JSON 对象,字段为 AgentRequest 的键(含 is_stream)。+ - 接收(非流式):一条 JSON 对象,对应 AgentResponse。+ - 接收(流式):多条 JSON 对象,对应 AgentResponseChunk,最后一条 is_complete=True。+ """++ def __init__(self, *, ping_interval: float | None = 30.0, ping_timeout: float | None = 300.0) -> None:+ self._uri: str | None = None+ self._ws: Any = None+ self._lock = asyncio.Lock()+ self._ping_interval = ping_interval+ self._ping_timeout = ping_timeout+ self._server_ready: bool = False+ # 消息分发机制:根据 request_id 路由到对应队列+ self._message_queues: dict[str, asyncio.Queue] = {}+ self._receiver_task: asyncio.Task | None = None+ self._running = False++ @property+ def server_ready(self) -> bool:+ """AgentServer 是否已发送 connection.ack 确认就绪."""+ return self._server_ready++ async def connect(self, uri: str) -> None:+ if self._ws is not None:+ await self.disconnect()+ logger.info("[WebSocketAgentServerClient] 正在连接: %s", uri)+ self._uri = uri+ self._server_ready = False+ try:+ from websockets.legacy.client import connect as legacy_connect+ connect_fn = legacy_connect+ except ImportError:+ import websockets+ connect_fn = websockets.connect+ self._ws = await connect_fn(+ uri,+ ping_interval=self._ping_interval,+ ping_timeout=self._ping_timeout,+ close_timeout=5.0,+ )+ logger.info("[WebSocketAgentServerClient] 已连接: %s", uri)++ # 读取 AgentServer 的 connection.ack 事件+ try:+ raw = await asyncio.wait_for(self._ws.recv(), timeout=5.0)+ logger.info("[WebSocketAgentServerClient] connect 首帧(raw): %s", raw)+ data = json.loads(raw)+ logger.info("[WebSocketAgentServerClient] connect 首帧(parsed): %s", _to_json(data))+ if data.get("type") == "event" and data.get("event") == "connection.ack":+ self._server_ready = True+ logger.info("[WebSocketAgentServerClient] 收到 connection.ack,AgentServer 已就绪")+ else:+ logger.warning(+ "[WebSocketAgentServerClient] 首帧非 connection.ack: %s",+ data.get("type"),+ )+ except asyncio.TimeoutError:+ logger.warning("[WebSocketAgentServerClient] 等待 connection.ack 超时")+ except Exception as e:+ logger.warning("[WebSocketAgentServerClient] 读取 connection.ack 失败: %s", e)++ # 启动消息接收和分发任务+ self._running = True+ self._receiver_task = asyncio.create_task(self._message_receiver_loop())+ logger.info("[WebSocketAgentServerClient] 消息接收任务已启动")++ async def _message_receiver_loop(self) -> None:+ """后台任务:从 WebSocket 接收消息并根据 request_id 分发到对应队列."""+ try:+ while self._running and self._ws is not None:+ try:+ raw = await self._ws.recv()+ data = json.loads(raw)+ request_id = data.get("request_id")++ if request_id and request_id in self._message_queues:+ # 将消息放入对应的队列+ await self._message_queues[request_id].put(data)+ else:+ # 没有对应的队列,记录警告+ logger.warning(+ "[WebSocketAgentServerClient] 收到无目标队列的消息: request_id=%s",+ request_id+ )+ except asyncio.CancelledError:+ break+ except Exception as e:+ logger.exception("[WebSocketAgentServerClient] 消息接收循环异常: %s", e)+ await asyncio.sleep(0.1) # 避免快速循环+ finally:+ logger.info("[WebSocketAgentServerClient] 消息接收任务已停止")++ async def disconnect(self) -> None:+ # 停止接收任务+ self._running = False+ if self._receiver_task and not self._receiver_task.done():+ self._receiver_task.cancel()+ try:+ await self._receiver_task+ except asyncio.CancelledError:+ pass+ self._receiver_task = None++ # 清理所有队列+ self._message_queues.clear()++ # 关闭 WebSocket+ if self._ws is None:+ return+ try:+ await self._ws.close()+ except Exception as e:+ logger.warning("关闭 AgentServer WebSocket 时异常: %s", e)+ finally:+ self._ws = None+ self._uri = None+ logger.info("[WebSocketAgentServerClient] 已断开")++ def _ensure_connected(self) -> None:+ if self._ws is None:+ raise RuntimeError("未连接 AgentServer,请先调用 connect(uri)")++ async def send_request(self, request: AgentRequest) -> AgentResponse:+ self._ensure_connected()+ logger.info("[WebSocketAgentServerClient] 发送请求(非流式) AgentRequest: %s", _to_json(asdict(request)))++ # 创建该请求的消息队列+ queue = asyncio.Queue()+ self._message_queues[request.request_id] = queue++ try:+ # 发送请求+ async with self._lock:+ payload = _request_to_payload(request)+ logger.info("[WebSocketAgentServerClient] 发送请求(非流式) payload: %s", _to_json(payload))+ await self._ws.send(json.dumps(payload, ensure_ascii=False))++ # 从队列中接收响应+ data = await queue.get()+ logger.info("[WebSocketAgentServerClient] 收到响应(非流式) raw: %s", json.dumps(data, ensure_ascii=False))+ resp = _payload_to_response(data)+ logger.info("[WebSocketAgentServerClient] 收到完整响应 AgentResponse: %s", _to_json(asdict(resp)))+ return resp+ finally:+ # 清理队列+ if request.request_id in self._message_queues:+ del self._message_queues[request.request_id]++ async def send_request_stream(+ self, request: AgentRequest+ ) -> AsyncIterator[AgentResponseChunk]:+ self._ensure_connected()+ request.is_stream = True+ logger.info("[WebSocketAgentServerClient] 发送请求(流式) AgentRequest: %s", _to_json(asdict(request)))++ # 创建该请求的消息队列+ queue = asyncio.Queue()+ self._message_queues[request.request_id] = queue++ try:+ # 发送请求+ async with self._lock:+ payload = _request_to_payload(request)+ logger.info("[WebSocketAgentServerClient] 发送请求(流式) payload: %s", _to_json(payload))+ await self._ws.send(json.dumps(payload, ensure_ascii=False))++ # 从队列中接收流式响应+ chunk_count = 0+ while True:+ data = await queue.get()+ logger.info("[WebSocketAgentServerClient] 收到流式事件 raw: %s", json.dumps(data, ensure_ascii=False))+ chunk = _payload_to_chunk(data)+ chunk_count += 1+ logger.info(+ "[WebSocketAgentServerClient] 收到流式 chunk #%s AgentResponseChunk: %s",+ chunk_count, _to_json(asdict(chunk)),+ )+ yield chunk+ if chunk.is_complete:+ break+ logger.info("[WebSocketAgentServerClient] 流式响应结束: request_id=%s 共 %s 个 chunk", request.request_id, chunk_count)+ except asyncio.CancelledError:+ logger.info("[WebSocketAgentServerClient] 流式接收被取消: request_id=%s", request.request_id)+ raise+ finally:+ # 清理队列+ if request.request_id in self._message_queues:+ del self._message_queues[request.request_id]+++# ---------------------------------------------------------------------------+# Mock AgentServer(协议兼容,供示例或测试使用)+# ---------------------------------------------------------------------------+++async def mock_agent_server_handler(ws: Any) -> None:+ """+ 协议兼容的 Mock AgentServer 处理函数:根据 is_stream 回一条完整响应或多条 chunk;+ 同一连接可处理多请求。可与 websockets.serve(..., host, port) 一起使用。+ """+ import websockets+ try:+ while True:+ raw = await ws.recv()+ data = json.loads(raw)+ req_id = data.get("request_id", "")+ ch_id = data.get("channel_id", "")+ params = data.get("params", {})+ is_stream = data.get("is_stream", False)+ params_str = json.dumps(params, ensure_ascii=False) if isinstance(params, dict) else str(params)++ if is_stream:+ # 流式:发 3 个 chunk,最后 is_complete=True+ for i, part in enumerate(["流式-1 ", "流式-2 ", "流式-3(完)"]):+ chunk = {+ "request_id": req_id,+ "channel_id": ch_id,+ "payload": {"content": part},+ "is_complete": i == 2,+ }+ await ws.send(json.dumps(chunk, ensure_ascii=False))+ else:+ # 非流式:一条完整响应+ resp = {+ "request_id": req_id,+ "channel_id": ch_id,+ "ok": True,+ "payload": {"content": f"Echo: {params_str}"},+ "metadata": data.get("metadata"),+ }+ await ws.send(json.dumps(resp, ensure_ascii=False))+ except websockets.exceptions.ConnectionClosed:+ pass+ except Exception as e:+ logger.exception("[MockAgentServer] 处理异常: %s", e)+++async def run_mock_agent_server(+ host: str = "127.0.0.1",+ port: int = 8000,+) -> Any:+ """+ 启动 Mock AgentServer(使用 mock_agent_server_handler),监听 host:port。+ 返回 Server,调用方需在结束时 server.close(); await server.wait_closed()。+ websockets 14+ 使用 legacy.server.serve,与 legacy 客户端一致,避免 InvalidMessage。+ """+ try:+ from websockets.legacy.server import serve as legacy_serve+ server = await legacy_serve(mock_agent_server_handler, host, port)+ except ImportError:+ import websockets+ server = await websockets.serve(mock_agent_server_handler, host, port)+ logger.info("[MockAgentServer] 已启动: ws://%s:%s", host, port)+ return server+++# ---------------------------------------------------------------------------+# 自验证:内存 Mock 服务端 + main+# ---------------------------------------------------------------------------+++async def _run_verification() -> None:+ """用内存 Mock 服务端验证 WebSocketAgentServerClient 的 connect/send_request/send_request_stream."""+ port = 18765+ uri = f"ws://127.0.0.1:{port}"+ server = await run_mock_agent_server("127.0.0.1", port)+ logger.info("[main] Mock AgentServer 已启动: %s", uri)++ client = WebSocketAgentServerClient()+ try:+ await client.connect(uri)++ # 1. 非流式请求+ req1 = AgentRequest(+ request_id="req-1",+ channel_id="ch-1",+ session_id="sess-1",+ params={"message": "你好"},+ )+ resp1 = await client.send_request(req1)+ assert resp1.request_id == "req-1"+ assert resp1.ok is True+ assert "Echo:" in str(resp1.payload)+ logger.info("[main] 非流式验证通过: payload=%s", resp1.payload)++ # 2. 流式请求+ req2 = AgentRequest(+ request_id="req-2",+ channel_id="ch-1",+ session_id="sess-1",+ params={"message": "流式测试"},+ )+ chunks = []+ async for ch in client.send_request_stream(req2):+ chunks.append(ch)+ assert len(chunks) == 3+ assert chunks[-1].is_complete+ full_content = "".join(c.payload.get("content", "") for c in chunks if c.payload)+ logger.info("[main] 流式验证通过: 共 %s 个 chunk, 拼接内容=%r", len(chunks), full_content)+ finally:+ await client.disconnect()+ server.close()+ await server.wait_closed()+ logger.info("[main] 验证完成,功能正常")+++def main() -> None:+ """入口:配置日志并运行自验证."""+ logging.basicConfig(+ level=logging.INFO,+ format="%(asctime)s.%(msecs)03d %(name)s %(levelname)s: %(message)s",+ datefmt="%Y-%m-%d %H:%M:%S",+ )+ asyncio.run(_run_verification())+++if __name__ == "__main__":+ main()diff --git a/jiuwenclaw/gateway/agent_ws_server.py b/jiuwenclaw/gateway/agent_ws_server.pynew file mode 100644index 0000000000..303f5655a4--- /dev/null+++ b/jiuwenclaw/gateway/agent_ws_server.py@@ -0,0 +1,318 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""AgentWebSocketServer - Gateway 与 AgentServer 之间的 WebSocket 服务端."""++from __future__ import annotations++import asyncio+import json+import logging+from dataclasses import asdict+from typing import Any++from jiuwenclaw.schema.agent import AgentRequest, AgentResponse, AgentResponseChunk++logger = logging.getLogger(__name__)+++def _payload_to_request(data: dict[str, Any]) -> AgentRequest:+ """将 Gateway 发送的 JSON 载荷解析为 AgentRequest."""+ from jiuwenclaw.schema.message import ReqMethod++ req_method = data.get("req_method")+ if req_method is not None and isinstance(req_method, str):+ req_method = ReqMethod(req_method)++ return AgentRequest(+ request_id=data["request_id"],+ channel_id=data.get("channel_id", ""),+ session_id=data.get("session_id"),+ req_method=req_method,+ params=data.get("params", {}),+ is_stream=data.get("is_stream", False),+ timestamp=data.get("timestamp", 0.0),+ metadata=data.get("metadata"),+ )+++def _response_to_payload(resp: AgentResponse) -> dict[str, Any]:+ """将 AgentResponse 转为 JSON 载荷."""+ return asdict(resp)+++def _chunk_to_payload(chunk: AgentResponseChunk) -> dict[str, Any]:+ """将 AgentResponseChunk 转为 JSON 载荷."""+ return asdict(chunk)+++class AgentWebSocketServer:+ """Gateway 与 AgentServer 之间的 WebSocket 服务端.++ 监听来自 Gateway (WebSocketAgentServerClient) 的连接,按协议约定处理请求:+ - 收到 JSON 载荷,字段为 AgentRequest(含 is_stream)+ - is_stream=False:调用 IAgentServer.process_message(),返回一条完整 AgentResponse JSON+ - is_stream=True:调用 IAgentServer.process_message_stream(),逐条返回 AgentResponseChunk JSON+ """++ def __init__(+ self,+ agent,+ host: str = "127.0.0.1",+ port: int = 18000,+ *,+ ping_interval: float | None = 30.0,+ ping_timeout: float | None = 300.0,+ ) -> None:+ self._agent = agent+ self._host = host+ self._port = port+ self._ping_interval = ping_interval+ self._ping_timeout = ping_timeout+ self._server: Any = None++ @property+ def host(self) -> str:+ return self._host++ @property+ def port(self) -> int:+ return self._port++ # ---------- 生命周期 ----------++ async def start(self) -> None:+ """启动 WebSocket 服务端,开始监听连接。优先使用 legacy.server.serve 以与 Gateway 的 legacy client 握手兼容."""+ if self._server is not None:+ logger.warning("[AgentWebSocketServer] 服务端已在运行")+ return++ try:+ from websockets.legacy.server import serve as legacy_serve+ self._server = await legacy_serve(+ self._connection_handler,+ self._host,+ self._port,+ ping_interval=self._ping_interval,+ ping_timeout=self._ping_timeout,+ )+ except ImportError:+ import websockets+ self._server = await websockets.serve(+ self._connection_handler,+ self._host,+ self._port,+ ping_interval=self._ping_interval,+ ping_timeout=self._ping_timeout,+ )+ logger.info(+ "[AgentWebSocketServer] 已启动: ws://%s:%s", self._host, self._port+ )++ async def stop(self) -> None:+ """停止 WebSocket 服务端."""+ if self._server is None:+ return+ self._server.close()+ await self._server.wait_closed()+ self._server = None+ logger.info("[AgentWebSocketServer] 已停止")++ # ---------- 连接处理 ----------++ async def _connection_handler(self, ws: Any) -> None:+ """处理单个 Gateway WebSocket 连接,同一连接可并发处理多个请求."""+ import websockets++ remote = ws.remote_address+ logger.info("[AgentWebSocketServer] 新连接: %s", remote)++ # 发送 connection.ack 事件,通知 Gateway 服务端已就绪+ try:+ ack_frame = {+ "type": "event",+ "event": "connection.ack",+ "payload": {"status": "ready"},+ }+ await ws.send(json.dumps(ack_frame, ensure_ascii=False))+ logger.info("[AgentWebSocketServer] 已发送 connection.ack: %s", remote)+ except Exception as e:+ logger.warning("[AgentWebSocketServer] 发送 connection.ack 失败: %s", e)++ send_lock = asyncio.Lock()+ tasks: set[asyncio.Task] = set()++ try:+ async for raw in ws:+ task = asyncio.create_task(self._handle_message(ws, raw, send_lock))+ tasks.add(task)+ task.add_done_callback(tasks.discard)+ except websockets.exceptions.ConnectionClosed:+ logger.info("[AgentWebSocketServer] 连接关闭: %s", remote)+ except Exception as e:+ logger.exception("[AgentWebSocketServer] 连接处理异常 (%s): %s", remote, e)+ finally:+ if tasks:+ await asyncio.gather(*tasks, return_exceptions=True)++ async def _handle_message(self, ws: Any, raw: str | bytes, send_lock: asyncio.Lock) -> None:+ """解析一条 JSON 请求并分发到 IAgentServer 处理."""+ try:+ data = json.loads(raw)+ except json.JSONDecodeError as e:+ error_payload = {+ "request_id": "",+ "channel_id": "",+ "ok": False,+ "payload": {"error": f"JSON 解析失败: {e}"},+ }+ async with send_lock:+ await ws.send(json.dumps(error_payload, ensure_ascii=False))+ return++ request = _payload_to_request(data)++ logger.info(+ "[AgentWebSocketServer] 收到请求: request_id=%s channel_id=%s is_stream=%s",+ request.request_id,+ request.channel_id,+ request.is_stream,+ )++ try:+ if request.is_stream:+ await self._handle_stream(ws, request, send_lock)+ else:+ await self._handle_unary(ws, request, send_lock)+ except Exception as e:+ logger.exception(+ "[AgentWebSocketServer] 处理请求失败: request_id=%s: %s",+ request.request_id,+ e,+ )+ error_resp = AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=False,+ payload={"error": str(e)},+ )+ async with send_lock:+ await ws.send(+ json.dumps(_response_to_payload(error_resp), ensure_ascii=False)+ )++ async def _handle_unary(self, ws: Any, request: AgentRequest, send_lock: asyncio.Lock) -> None:+ """非流式处理:调用 process_message,返回一条完整 AgentResponse."""+ resp = await self._agent.process_message(request)+ payload = _response_to_payload(resp)+ async with send_lock:+ await ws.send(json.dumps(payload, ensure_ascii=False))+ logger.info(+ "[AgentWebSocketServer] 非流式响应已发送: request_id=%s",+ request.request_id,+ )++ async def _handle_stream(self, ws: Any, request: AgentRequest, send_lock: asyncio.Lock) -> None:+ """流式处理:调用 process_message_stream,逐条发送 AgentResponseChunk."""+ chunk_count = 0+ async for chunk in self._agent.process_message_stream(request):+ chunk_count += 1+ payload = _chunk_to_payload(chunk)+ async with send_lock:+ await ws.send(json.dumps(payload, ensure_ascii=False))+ logger.info(+ "[AgentWebSocketServer] 流式响应已发送: request_id=%s 共 %s 个 chunk",+ request.request_id,+ chunk_count,+ )+++# ---------------------------------------------------------------------------+# 自验证:Mock IAgentServer + 端对端测试+# ---------------------------------------------------------------------------+++class _MockAgentServer:+ """用于自验证的 Mock IAgentServer 实现."""++ async def process_message(self, request: AgentRequest) -> AgentResponse:+ params_str = json.dumps(request.params, ensure_ascii=False)+ return AgentResponse(+ request_id=request.request_id,+ channel_id=request.channel_id,+ ok=True,+ payload={"content": f"Echo: {params_str}"},+ metadata=request.metadata,+ )++ async def process_message_stream(self, request: AgentRequest):+ params_str = json.dumps(request.params, ensure_ascii=False)+ parts = [f"流式-1({params_str}) ", "流式-2 ", "流式-3(完)"]+ for i, part in enumerate(parts):+ yield AgentResponseChunk(+ request_id=request.request_id,+ channel_id=request.channel_id,+ payload={"content": part},+ is_complete=(i == len(parts) - 1),+ )+++async def _run_verification() -> None:+ """端对端验证:AgentWebSocketServer + WebSocketAgentServerClient."""+ from jiuwenclaw.gateway.agent_client import WebSocketAgentServerClient++ agent = _MockAgentServer()+ port = 18765+ server = AgentWebSocketServer(agent, host="127.0.0.1", port=port)+ await server.start()+ logger.info("[验证] AgentWebSocketServer 已启动: ws://127.0.0.1:%s", port)++ client = WebSocketAgentServerClient()+ try:+ await client.connect(f"ws://127.0.0.1:{port}")++ # 非流式请求+ req1 = AgentRequest(+ request_id="req-1",+ channel_id="ch-1",+ session_id="sess-1",+ params={"message": "你好"},+ )+ resp1 = await client.send_request(req1)+ assert resp1.request_id == "req-1"+ assert resp1.ok is True+ assert "Echo:" in str(resp1.payload)+ logger.info("[验证] 非流式通过: payload=%s", resp1.payload)++ # 流式请求+ req2 = AgentRequest(+ request_id="req-2",+ channel_id="ch-1",+ session_id="sess-1",+ params={"message": "测试"},+ )+ chunks = []+ async for chunk in client.send_request_stream(req2):+ chunks.append(chunk)+ assert len(chunks) == 3+ assert chunks[-1].is_complete+ full = "".join(c.payload.get("content", "") for c in chunks if c.payload)+ logger.info("[验证] 流式通过: %s 个 chunk, 内容=%r", len(chunks), full)++ finally:+ await client.disconnect()+ await server.stop()++ logger.info("[验证] 端对端验证完成")+++def main() -> None:+ """入口:配置日志并运行自验证."""+ logging.basicConfig(+ level=logging.INFO,+ format="%(name)s %(levelname)s: %(message)s",+ )+ asyncio.run(_run_verification())+++if __name__ == "__main__":+ main()diff --git a/jiuwenclaw/gateway/channel_manager.py b/jiuwenclaw/gateway/channel_manager.pynew file mode 100644index 0000000000..77452184d7--- /dev/null+++ b/jiuwenclaw/gateway/channel_manager.py@@ -0,0 +1,158 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""ChannelManager - Channel 生命周期管理抽象与实现."""++from __future__ import annotations++import asyncio+import logging+from abc import ABC+from typing import TYPE_CHECKING, Any, Awaitable, Callable++if TYPE_CHECKING:+ from jiuwenclaw.channel.base import BaseChannel+ from jiuwenclaw.gateway.message_handler import MessageHandler+ from jiuwenclaw.schema.message import Message++logger = logging.getLogger(__name__)+++class ChannelManager(ABC):+ """+ 负责:+ 1. Channel 的注册、注销与查找+ 2. 将各 Channel 收到的消息/事件统一通过 MessageHandler.handle_message 转发+ 3. 运行出队派发循环:从 MessageHandler 取出 AgentServer 响应并投递到对应 Channel+ """++ def __init__(+ self,+ message_handler: "MessageHandler",+ config: dict[str, Any] | None = None,+ on_config_updated: Callable[[dict[str, Any]], Awaitable[None]] | None = None,+ ) -> None:+ self._message_handler = message_handler+ self._channels: dict[str, "BaseChannel"] = {}+ self._dispatch_task: asyncio.Task | None = None+ self._running = False+ # 统一管理 Channel 相关配置(例如 FeishuChannel / XiaoyiChannel 等)。+ # 默认仅在网关侧使用;其他简单用法可以忽略该字段。+ self._config: dict[str, Any] = dict(config or {})+ self._on_config_updated = on_config_updated++ def _on_channel_message(self, msg: "Message") -> None:+ """Channel 同步 on_message 回调:交给 MessageHandler 处理(入队并最终发往 AgentServer)."""+ logger.info(+ "[ChannelManager] Channel 消息 -> MessageHandler: id=%s channel_id=%s",+ msg.id, msg.channel_id,+ )+ self._message_handler.handle_message(msg)++ def register_channel(self, channel: "BaseChannel") -> None:+ """注册 Channel,并为其注册「收到消息时转发给 MessageHandler」的回调."""+ cid = channel.channel_id+ self._channels[cid] = channel+ channel.on_message(self._on_channel_message)+ logger.info("[ChannelManager] 已注册 Channel: channel_id=%s, 当前共 %d 个", cid, len(self._channels))++ def unregister_channel(self, channel_id: str) -> None:+ """注销指定 Channel."""+ self._channels.pop(channel_id, None)+ logger.info("[ChannelManager] 已注销 Channel: channel_id=%s", channel_id)++ def get_channel(self, channel_id: str) -> "BaseChannel | None":+ """根据 channel_id 获取 Channel."""+ return self._channels.get(channel_id)++ @property+ def enabled_channels(self) -> list[str]:+ """当前已注册的 Channel 标识列表."""+ return list(self._channels.keys())++ # ----- 配置管理接口 -----++ def get_conf(self, channel_id: str) -> dict[str, Any]:+ """返回指定 channel_id 的配置浅拷贝;不存在则返回空 dict."""+ conf = self._config.get(channel_id)+ return dict(conf) if isinstance(conf, dict) else {}++ async def set_conf(self, channel_id: str, new_conf: dict[str, Any]) -> None:+ """更新指定 channel_id 的配置,并在必要时触发重新实例化回调.++ 内部仍维护完整的 Channel 配置字典,并将其整体传给 on_config_updated,+ 以兼容现有回调实现(如根据 channels.feishu 重建 FeishuChannel)。+ """+ merged = dict(self._config)+ merged[channel_id] = dict(new_conf or {})+ self._config = merged+ cb = self._on_config_updated+ if cb is not None:+ await cb(self._config)++ async def set_config(self, new_conf: dict[str, Any]) -> None:+ """兼容保留:整体替换配置的旧接口(不推荐新调用方使用)."""+ self._config = dict(new_conf or {})+ cb = self._on_config_updated+ if cb is not None:+ await cb(self._config)++ def set_config_callback(+ self,+ callback: Callable[[dict[str, Any]], Awaitable[None]] | None,+ ) -> None:+ """设置在配置更新时触发的回调,用于由外部实现具体的 Channel 重新实例化逻辑."""+ self._on_config_updated = callback++ async def _dispatch_robot_messages(self) -> None:+ """出队派发循环:从 MessageHandler 消费 robot_messages,按 channel_id 投递到对应 Channel."""+ # 仅当 MessageHandler 提供 consume_robot_messages 时才能派发+ consume = getattr(self._message_handler, "consume_robot_messages", None)+ if not callable(consume):+ logger.warning("MessageHandler has no consume_robot_messages, robot_messages dispatch skipped")+ return+ while self._running:+ try:+ msg = await consume(timeout=1.0)+ if msg is None:+ continue+ logger.info(+ "[ChannelManager] 从 robot_messages 取出,准备派发: id=%s channel_id=%s type=%s",+ msg.id, msg.channel_id, msg.type,+ )+ channel = self._channels.get(msg.channel_id)+ if channel:+ try:+ await channel.send(msg)+ logger.info(+ "[ChannelManager] 已派发到 Channel: channel_id=%s id=%s",+ msg.channel_id, msg.id,+ )+ except Exception as e:+ logger.error("send to channel %s: %s", msg.channel_id, e, exc_info=True)+ else:+ logger.warning(+ "[ChannelManager] 未找到 Channel,丢弃 robot_messages: channel_id=%s id=%s",+ msg.channel_id, msg.id,+ )+ except asyncio.CancelledError:+ break++ async def start_dispatch(self) -> None:+ """启动出队派发任务(消费 MessageHandler.robot_messages 并发送到各 Channel)."""+ if self._dispatch_task is not None:+ return+ self._running = True+ self._dispatch_task = asyncio.create_task(self._dispatch_robot_messages())+ logger.info("[ChannelManager] 出队派发循环已启动 (robot_messages -> Channel.send)")++ async def stop_dispatch(self) -> None:+ """停止出队派发任务."""+ self._running = False+ if self._dispatch_task is not None:+ self._dispatch_task.cancel()+ try:+ await self._dispatch_task+ except asyncio.CancelledError:+ pass+ self._dispatch_task = None+ logger.info("[ChannelManager] 出队派发循环已停止")diff --git a/jiuwenclaw/gateway/heartbeat.py b/jiuwenclaw/gateway/heartbeat.pynew file mode 100644index 0000000000..a5224000e0--- /dev/null+++ b/jiuwenclaw/gateway/heartbeat.py@@ -0,0 +1,341 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Heartbeat - Gateway 内周期性向 AgentServer 发送探活请求."""++from __future__ import annotations++import asyncio+import logging+import time+from abc import ABC, abstractmethod+from dataclasses import dataclass+from typing import TYPE_CHECKING++if TYPE_CHECKING:+ from jiuwenclaw.gateway.agent_client import AgentServerClient+ from jiuwenclaw.gateway.message_handler import MessageHandler++# 心跳请求使用的默认标识,AgentServer 可据此识别探活请求+HEARTBEAT_CHANNEL_ID = "__heartbeat__"++HEARTBEAT_OK = "HEARTBEAT_OK"++# 探活请求发送的 content,AgentServer 可识别为心跳+HEARTBEAT_PROMPT = "如果你的workspace目录存在HEARBEAT.md文件, 读取文件内容并且根据文件内容执行任务. 如果没有HEARBEAT.md文件, 仅回复HEARTBEAT_OK"++logger = logging.getLogger(__name__)+++def normalize_active_hours(active_hours: dict[str, str] | None) -> dict[str, str] | None:+ """将 active_hours 的 start/end 规范为 "HH:MM" 字符串。++ YAML 中未加引号的 22:00 会被解析为 1320(60 进制),此处将数字转回 "HH:MM"。+ """+ if not active_hours or not isinstance(active_hours, dict):+ return active_hours+ result: dict[str, str] = {}+ for k, v in active_hours.items():+ if k in ("start", "end") and isinstance(v, (int, float)):+ minutes = int(v)+ h, m = divmod(minutes, 60)+ result[k] = f"{h:02d}:{m:02d}"+ elif isinstance(v, str):+ result[k] = v+ else:+ result[k] = str(v) if v is not None else ""+ return result++__all__ = [+ "HEARTBEAT_CHANNEL_ID",+ "HEARTBEAT_PROMPT",+ "HeartbeatConfig",+ "IHeartbeat",+ "GatewayHeartbeatService",+ "normalize_active_hours",+]+++@dataclass+class HeartbeatConfig:+ """Heartbeat 配置.++ interval_seconds: 心跳间隔(秒),MUST > 0。+ timeout_seconds: 单次心跳请求超时(秒),可选;若提供则 MUST > 0。+ channel_id: 心跳请求使用的 channel_id,默认 __heartbeat__。+ session_id: 心跳请求使用的 session_id,默认 __heartbeat__。+ relay_channel_id: 将心跳响应内容回传的 channel_id(如 "web" 对应 WebChannel),+ 从 .env 的 HEARTBEAT_RELAY_CHANNEL_ID 读取;为 None 则不回传。+ """++ interval_seconds: float+ timeout_seconds: float | None = None+ channel_id: str = HEARTBEAT_CHANNEL_ID+ relay_channel_id: str | None = None+ # 心跳生效时间段,格式为 {"start": "HH:MM", "end": "HH:MM"};为 None 表示始终生效+ active_hours: dict[str, str] | None = None+++class IHeartbeat(ABC):+ """Heartbeat 接口.++ 按配置周期定时向 AgentServer 发送探活请求;+ 不向任何 Channel 下发消息,成功/失败仅用于内部状态或回调。+ """++ @abstractmethod+ async def start(self) -> None:+ """启动周期任务;之后每隔 interval_seconds 执行一次心跳."""+ ...++ @abstractmethod+ async def stop(self) -> None:+ """停止周期任务,不再发送心跳."""+ ...++ @abstractmethod+ def is_running(self) -> bool:+ """返回周期任务是否正在运行."""+ ...+++class GatewayHeartbeatService(IHeartbeat):+ """+ 周期性向 AgentServer 发送探活请求的 IHeartbeat 实现。++ 固定间隔运行循环,每次 _tick 发送一次请求;+ 请求使用 HeartbeatConfig 中的 channel_id/session_id,不向任何 Channel 下发响应。++ 判断是否成功:① 看日志:成功会打 INFO「Gateway heartbeat OK」,失败会打 WARNING;+ ② 代码检查:用 last_tick_ok(True/False/None)、last_tick_at(最近一次执行时间)判断。+ """++ def __init__(+ self,+ agent_client: "AgentServerClient",+ config: HeartbeatConfig,+ message_handler: "MessageHandler | None" = None,+ ) -> None:+ self._agent_client = agent_client+ self._config = config+ self._message_handler = message_handler+ self._running = False+ self._task: asyncio.Task | None = None+ # 最近一次心跳结果,便于调用方判断是否成功+ self._last_tick_ok: bool | None = None+ self._last_tick_at: float | None = None++ async def start(self) -> None:+ """启动周期任务;之后每隔 interval_seconds 执行一次心跳."""+ if self._running:+ return+ self._running = True+ self._task = asyncio.create_task(self._run_loop())+ logger.info(+ "Gateway heartbeat started (every %.1fs)",+ self._config.interval_seconds,+ )++ async def stop(self) -> None:+ """停止周期任务,不再发送心跳."""+ self._running = False+ if self._task is not None:+ self._task.cancel()+ try:+ await self._task+ except asyncio.CancelledError:+ pass+ self._task = None+ logger.info("Gateway heartbeat stopped")++ def is_running(self) -> bool:+ """返回周期任务是否正在运行."""+ return self._running++ async def _run_loop(self) -> None:+ """主循环:每隔 interval_seconds 执行一次 _tick."""+ while self._running:+ try:+ await asyncio.sleep(self._config.interval_seconds)+ if self._running:+ await self._tick()+ except asyncio.CancelledError:+ break+ except Exception as e:+ logger.exception("Gateway heartbeat loop error: %s", e)++ async def _tick(self) -> None:+ """执行一次探活:构造 AgentRequest 发往 AgentServer,不向 Channel 下发."""+ from jiuwenclaw.schema.agent import AgentRequest++ # 若当前时间不在 active_hours 配置范围内,则跳过本次心跳+ if not self._is_active_now():+ logger.debug(+ "Gateway heartbeat skipped due to inactive hours: %r",+ self._config.active_hours,+ )+ return++ request_id = f"heartbeat-{time.monotonic_ns()}"+ session_id = f"heartbeat_{time.monotonic_ns()}"+ request = AgentRequest(+ request_id=request_id,+ channel_id=self._config.channel_id,+ session_id=session_id,+ params={"heartbeat": HEARTBEAT_PROMPT},+ )+ try:+ if self._config.timeout_seconds is not None and self._config.timeout_seconds > 0:+ resp = await asyncio.wait_for(+ self._agent_client.send_request(request),+ timeout=self._config.timeout_seconds,+ )+ else:+ resp = await self._agent_client.send_request(request)+ self._last_tick_at = time.time()+ self._last_tick_ok = True+ payload = resp.payload if isinstance(resp.payload, dict) else {}+ heartbeat_raw = payload.get("heartbeat")+ heartbeat_content = heartbeat_raw if isinstance(heartbeat_raw, str) else ""+ if not heartbeat_content:+ # 兼容 Agent 在执行 HEARTBEAT.md 任务时返回的 chat 结构:+ # payload = {"content": {"output": "...", "result_type": "answer"}}+ content = payload.get("content")+ if isinstance(content, dict):+ output = content.get("output")+ if isinstance(output, str):+ heartbeat_content = output+ elif isinstance(content, str):+ heartbeat_content = content+ logger.info("Gateway heartbeat content: %s", heartbeat_content)+ if HEARTBEAT_OK in (heartbeat_content if isinstance(heartbeat_content, str) else "").upper():+ logger.info("Gateway heartbeat OK: request_id=%s (last_tick_at=%.0f)", request_id, self._last_tick_at)+ else:+ logger.info("Gateway heartbeat complete: request_id=%s (last_tick_at=%.0f)", request_id, self._last_tick_at)++ # 将 resp.payload["heartbeat"] 作为 event 类型 Message 回传到配置的 channel(如 WebChannel)+ if self._config.relay_channel_id and self._message_handler:+ from jiuwenclaw.schema.message import Message, EventType+ relay_msg = Message(+ id=f"heartbeat-relay-{request_id}",+ type="event",+ channel_id=self._config.relay_channel_id,+ session_id=session_id,+ params={},+ timestamp=time.time(),+ ok=True,+ payload={"heartbeat": heartbeat_content},+ event_type=EventType.HEARTBEAT_RELAY,+ )+ await self._message_handler.publish_robot_messages(relay_msg)+ logger.debug("Gateway heartbeat relay to channel %s", self._config.relay_channel_id)++ except asyncio.TimeoutError:+ self._last_tick_ok = False+ self._last_tick_at = time.time()+ logger.warning(+ "Gateway heartbeat timeout (request_id=%s, timeout=%.1fs)",+ request_id,+ self._config.timeout_seconds or 0,+ )+ except Exception as e:+ self._last_tick_ok = False+ self._last_tick_at = time.time()+ logger.warning("Gateway heartbeat request failed: %s", e)++ @property+ def last_tick_ok(self) -> bool | None:+ """最近一次心跳是否成功。None 表示尚未执行过任何一次 tick."""+ return self._last_tick_ok++ @property+ def last_tick_at(self) -> float | None:+ """最近一次心跳执行时间(Unix 时间戳)。None 表示尚未执行过."""+ return self._last_tick_at++ def _is_active_now(self) -> bool:+ """根据 active_hours 判断当前时间心跳是否应当生效."""+ active_hours = normalize_active_hours(self._config.active_hours)+ if not active_hours:+ return True+ try:+ start_str = active_hours.get("start")+ end_str = active_hours.get("end")+ if not (isinstance(start_str, str) and isinstance(end_str, str)):+ return True++ def _parse_hm(s: str) -> int:+ parts = s.split(":", 1)+ if len(parts) != 2:+ raise ValueError(f"invalid time format: {s!r}")+ h = int(parts[0])+ m = int(parts[1])+ return h * 60 + m++ start_minutes = _parse_hm(start_str)+ end_minutes = _parse_hm(end_str)++ now_struct = time.localtime()+ now_minutes = now_struct.tm_hour * 60 + now_struct.tm_min++ if start_minutes <= end_minutes:+ # 普通区间:如 08:00-22:00+ return start_minutes <= now_minutes < end_minutes+ # 跨午夜区间:如 22:00-06:00+ return now_minutes >= start_minutes or now_minutes < end_minutes+ except Exception as e: # noqa: BLE001+ logger.warning("Invalid heartbeat active_hours config %r: %s", active_hours, e)+ # 配置非法时,为避免误停心跳,按“始终生效”处理+ return True++ def get_heartbeat_conf(self) -> dict[str, object]:+ """返回当前心跳配置摘要(every/target/active_hours)。active_hours 的 start/end 统一为 "HH:MM" 字符串。"""+ return {+ "every": self._config.interval_seconds,+ "target": self._config.relay_channel_id,+ "active_hours": normalize_active_hours(self._config.active_hours),+ }++ async def set_heartbeat_conf(+ self,+ *,+ every: float | None = None,+ target: str | None = None,+ active_hours: dict[str, str] | None = None,+ ) -> None:+ """更新心跳配置并在需要时重启 Heartbeat 服务."""+ updated = False++ if every is not None:+ if every <= 0:+ raise ValueError("heartbeat 'every' must be > 0")+ self._config.interval_seconds = float(every)+ updated = True++ if target is not None:+ self._config.relay_channel_id = target+ updated = True++ if active_hours is not None:+ self._config.active_hours = active_hours+ updated = True++ if not updated:+ return++ was_running = self._running+ if was_running:+ await self.stop()++ # 重置最近一次心跳状态+ self._last_tick_ok = None+ self._last_tick_at = None++ if was_running:+ await self.start()++ logger.info(+ "Gateway heartbeat config updated: every=%s, target=%s, active_hours=%s",+ self._config.interval_seconds,+ self._config.relay_channel_id,+ self._config.active_hours,+ )diff --git a/jiuwenclaw/gateway/message_handler.py b/jiuwenclaw/gateway/message_handler.pynew file mode 100644index 0000000000..c7d5cbcd92--- /dev/null+++ b/jiuwenclaw/gateway/message_handler.py@@ -0,0 +1,548 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""MessageHandler - 消息处理抽象与双队列实现(入队经 AgentServerClient 发往 AgentServer)."""++from __future__ import annotations++import asyncio+import logging+import time+from abc import ABC, abstractmethod+from typing import TYPE_CHECKING++if TYPE_CHECKING:+ from jiuwenclaw.gateway.agent_client import AgentServerClient+ from jiuwenclaw.schema.agent import AgentRequest, AgentResponse, AgentResponseChunk+ from jiuwenclaw.schema.message import Message++logger = logging.getLogger(__name__)+++# ---------- 双队列实现:入队经 AgentServerClient 发往 AgentServer ----------+class MessageHandler(ABC):+ """+ 维护两个异步消息队列,入队消息通过 AgentServerClient 发送给 AgentServer:++ - _user_messages:Channel 发来的消息,由内部转发循环消费并调用 agent_client.send_request+ - _robot_messages:AgentServer 的响应,由 ChannelManager 消费并派发到对应 Channel+ """++ def __init__(self, agent_client: "AgentServerClient") -> None:+ self._agent_client = agent_client+ self._user_messages: asyncio.Queue["Message"] = asyncio.Queue()+ self._robot_messages: asyncio.Queue["Message"] = asyncio.Queue()+ self._running = False+ self._forward_task: asyncio.Task | None = None+ self._stream_tasks: dict[str, asyncio.Task] = {} # request_id -> task+ self._stream_sessions: dict[str, str | None] = {} # request_id -> session_id++ def handle_message(self, msg: "Message") -> None:+ """Channel 同步回调:将消息放入 user_messages 队列,由转发循环发给 AgentServer."""+ self._user_messages.put_nowait(msg)+ logger.info(+ "[MessageHandler] _user_messages 入队: id=%s channel_id=%s session_id=%s",+ msg.id, msg.channel_id, msg.session_id,+ )++ # ---------- user_messages ----------++ async def publish_user_messages(self, msg: "Message") -> None:+ """将消息放入 user_messages 队列(异步)."""+ await self._user_messages.put(msg)++ def publish_user_messages_nowait(self, msg: "Message") -> None:+ """将消息放入 user_messages 队列(同步)."""+ self._user_messages.put_nowait(msg)++ async def consume_user_messages(self, timeout: float | None = None) -> "Message | None":+ """消费一条 user_messages;timeout 为 None 则阻塞,否则超时返回 None."""+ if timeout is not None and timeout <= 0:+ try:+ return self._user_messages.get_nowait()+ except asyncio.QueueEmpty:+ return None+ try:+ if timeout is None:+ return await self._user_messages.get()+ return await asyncio.wait_for(self._user_messages.get(), timeout=timeout)+ except asyncio.TimeoutError:+ return None++ # ---------- robot_messages ----------++ async def publish_robot_messages(self, msg: "Message") -> None:+ """将 Agent 响应放入 robot_messages 队列."""+ await self._robot_messages.put(msg)++ def publish_robot_messages_nowait(self, msg: "Message") -> None:+ """将 Agent 响应放入 robot_messages 队列(同步)."""+ self._robot_messages.put_nowait(msg)++ async def consume_robot_messages(self, timeout: float | None = None) -> "Message | None":+ """消费一条 robot_messages;timeout 为 None 则阻塞,否则超时返回 None."""+ if timeout is not None and timeout <= 0:+ try:+ return self._robot_messages.get_nowait()+ except asyncio.QueueEmpty:+ return None+ try:+ if timeout is None:+ return await self._robot_messages.get()+ return await asyncio.wait_for(self._robot_messages.get(), timeout=timeout)+ except asyncio.TimeoutError:+ return None++ @staticmethod+ def _message_to_request(msg: "Message") -> "AgentRequest":+ from jiuwenclaw.schema.agent import AgentRequest++ return AgentRequest(+ request_id=msg.id,+ channel_id=msg.channel_id,+ session_id=msg.session_id,+ req_method=msg.req_method,+ params=msg.params,+ is_stream=msg.is_stream,+ timestamp=msg.timestamp,+ metadata=msg.metadata,+ )+++ @staticmethod+ def _response_to_message(resp: "AgentResponse", session_id: str | None) -> "Message":+ from jiuwenclaw.schema.message import Message, EventType++ # 检查 payload 中是否包含 event_type,如果包含则创建事件消息+ event_type = None+ if resp.payload and isinstance(resp.payload, dict):+ event_type_str = resp.payload.get("event_type")+ if isinstance(event_type_str, str):+ try:+ event_type = EventType(event_type_str)+ # 如果是事件类型,创建事件消息而不是响应消息+ return Message(+ id=resp.request_id,+ type="event",+ channel_id=resp.channel_id,+ session_id=session_id,+ params={},+ timestamp=time.time(),+ ok=True,+ payload=resp.payload,+ event_type=event_type,+ metadata=resp.metadata,+ )+ except ValueError:+ # 不是有效的 EventType,继续作为普通响应处理+ pass++ # 普通响应消息+ return Message(+ id=resp.request_id,+ type="res",+ channel_id=resp.channel_id,+ session_id=session_id,+ params={},+ timestamp=time.time(),+ ok=resp.ok,+ payload=resp.payload,+ metadata=resp.metadata,+ )++ @staticmethod+ def _chunk_to_message(chunk: AgentResponseChunk, session_id: str | None) -> Message:+ """将 AgentResponseChunk 转换为 Message(用于流式处理)."""+ from jiuwenclaw.schema.message import Message, EventType++ # 从 payload 中提取 event_type(如果存在)+ event_type = None+ if chunk.payload and isinstance(chunk.payload, dict):+ event_type_str = chunk.payload.get("event_type")+ if isinstance(event_type_str, str):+ try:+ event_type = EventType(event_type_str)+ except ValueError:+ logger.debug("未知的 event_type: %s", event_type_str)++ return Message(+ id=chunk.request_id,+ type="event",+ channel_id=chunk.channel_id,+ session_id=session_id,+ params={},+ timestamp=time.time(),+ ok=True,+ payload=chunk.payload,+ event_type=event_type,+ metadata=None,+ )++ # ---------- 入队 -> AgentServer -> 出队 转发循环 ----------++ async def _forward_loop(self) -> None:+ """循环:从 user_messages 取消息,经 AgentServerClient 发往 AgentServer,将响应写入 robot_messages.+ 支持流式和非流式两种模式。使用 timeout=None 阻塞等待,保证有消息时第一时间被唤醒处理;+ stop 时 task 被 cancel 会打断 get() 并退出。++ 支持中断机制:当收到 CHAT_CANCEL 请求时,会立即取消正在执行的流式任务。+ """+ from jiuwenclaw.schema.message import ReqMethod++ while self._running:+ try:+ msg = await self.consume_user_messages(timeout=None)+ if msg is None:+ continue++ # 检查是否是中断请求+ if msg.req_method == ReqMethod.CHAT_CANCEL:+ logger.info(+ "[MessageHandler] 收到中断请求: id=%s channel_id=%s",+ msg.id, msg.channel_id,+ )+ new_input = (msg.params or {}).get("new_input")+ has_new_input = isinstance(new_input, str) and new_input.strip()+ intent = (msg.params or {}).get("intent", "cancel")++ if has_new_input:+ # 有新输入:取消旧任务 → 保留 todo → 启动新任务(非并发)++ # 1. 取消 gateway 侧所有运行中的流式任务+ tasks_to_cancel = []+ for rid, task in list(self._stream_tasks.items()):+ if not task.done():+ logger.info(+ "[MessageHandler] supplement: 取消流式任务 request_id=%s", rid,+ )+ task.cancel()+ tasks_to_cancel.append(task)+ if tasks_to_cancel:+ await asyncio.gather(*tasks_to_cancel, return_exceptions=True)++ # 2. 通知前端 supplement(前端据此判断 is_processing 状态)+ await self._send_interrupt_result_notification(+ msg.id, msg.channel_id, msg.session_id, "supplement",+ )++ # 3. 发送 supplement intent 到 AgentServer(取消任务但保留 todo)+ # 用 await 确保 agent 侧先完成取消再启动新任务+ from jiuwenclaw.schema.agent import AgentRequest as _AgentReq+ supplement_req = _AgentReq(+ request_id=f"supplement_{int(time.time() * 1000):x}",+ channel_id=msg.channel_id,+ session_id=msg.session_id,+ req_method=ReqMethod.CHAT_CANCEL,+ params={"intent": "supplement"},+ is_stream=False,+ timestamp=time.time(),+ )+ try:+ await self._send_interrupt_to_agent(supplement_req)+ except Exception:+ pass # 即使失败也继续启动新任务++ # 4. 入队新任务(单一任务,不并发)+ from jiuwenclaw.schema.message import Message++ new_req_id = f"req_{int(time.time() * 1000):x}_{msg.id}"+ new_msg = Message(+ id=new_req_id,+ type="req",+ channel_id=msg.channel_id,+ session_id=msg.session_id,+ params={+ "query": new_input.strip(),+ "session_id": msg.session_id,+ "is_supplement": True,+ },+ timestamp=time.time(),+ ok=True,+ req_method=ReqMethod.CHAT_SEND,+ is_stream=True,+ )+ self._user_messages.put_nowait(new_msg)+ logger.info(+ "[MessageHandler] supplement: 旧任务已取消,新任务已入队: id=%s session_id=%s",+ new_msg.id, msg.session_id,+ )++ elif intent == "cancel":+ # 取消所有运行中的流式任务+ for rid, task in list(self._stream_tasks.items()):+ if not task.done():+ logger.info(+ "[MessageHandler] 取消流式任务: request_id=%s", rid,+ )+ task.cancel()+ sid = self._stream_sessions.get(rid)+ await self._send_interrupt_result_notification(+ rid, msg.channel_id, sid, "cancel",+ )+ # Fire-and-forget: 发送取消请求到 AgentServer+ req = self._message_to_request(msg)+ asyncio.create_task(self._send_interrupt_to_agent(req))++ elif intent in ("pause", "resume"):+ # 暂停/恢复:不取消流式任务,转发给 AgentServer 处理 ReAct 循环+ req = self._message_to_request(msg)+ asyncio.create_task(self._send_interrupt_to_agent(req))+ # 通知前端状态变更+ await self._send_interrupt_result_notification(+ msg.id, msg.channel_id, msg.session_id, intent,+ )++ continue++ logger.info(+ "[MessageHandler] 从 user_messages 取出,发往 AgentServer: id=%s channel_id=%s is_stream=%s",+ msg.id, msg.channel_id, msg.is_stream,+ )+ req = self._message_to_request(msg)+ try:+ if req.is_stream:+ # 流式处理:启动后台任务,支持多任务并发+ # 通知前端新任务开始处理+ await self._send_processing_status(+ req.request_id, msg.session_id, msg.channel_id, is_processing=True,+ )+ task = asyncio.create_task(+ self._process_stream(req, msg.session_id)+ )+ self._stream_tasks[req.request_id] = task+ self._stream_sessions[req.request_id] = msg.session_id+ logger.info(+ "[MessageHandler] Stream 任务已启动(后台运行): request_id=%s channel_id=%s 当前并发=%d",+ req.request_id, req.channel_id, len(self._stream_tasks),+ )+ # 不 await,让流式任务在后台运行,_forward_loop 继续处理下一个消息+ else:+ # 非流式处理:单个响应写入 robot_messages+ resp = await self._agent_client.send_request(req)+ out = self._response_to_message(resp, session_id=msg.session_id)+ await self.publish_robot_messages(out)+ logger.info(+ "[MessageHandler] Agent 响应已写入 robot_messages: request_id=%s channel_id=%s",+ resp.request_id, resp.channel_id,+ )+ except Exception as e:+ logger.exception("AgentServer send_request failed for %s: %s", msg.id, e)+ err_msg = self._build_error_out_message(msg, e)+ await self.publish_robot_messages(err_msg)+ logger.info(+ "[MessageHandler] 错误响应已写入 robot_messages: id=%s channel_id=%s",+ msg.id, msg.channel_id,+ )+ except asyncio.CancelledError:+ break++ async def _process_stream(self, req: "AgentRequest", session_id: str | None) -> None:+ """处理流式请求,逐个 chunk 写入 robot_messages.++ 这个方法被包装为 Task,在后台运行,可以被随时取消。+ """+ cancelled = False+ try:+ async for chunk in self._agent_client.send_request_stream(req):+ # 跳过终止 chunk(仅作为流结束信号,不含实际数据)+ if chunk.is_complete and not chunk.payload:+ logger.debug(+ "[MessageHandler] 跳过终止 chunk: request_id=%s",+ chunk.request_id,+ )+ continue+ out = self._chunk_to_message(chunk, session_id=session_id)+ await self.publish_robot_messages(out)+ logger.debug(+ "[MessageHandler] Stream chunk 已写入 robot_messages: request_id=%s event_type=%s",+ chunk.request_id, out.event_type,+ )+ logger.info(+ "[MessageHandler] Stream 正常完成: request_id=%s",+ req.request_id,+ )+ except asyncio.CancelledError:+ cancelled = True+ logger.info(+ "[MessageHandler] Stream 被取消: request_id=%s",+ req.request_id,+ )+ raise # 重新抛出,让调用者知道任务被取消+ finally:+ # 清理状态+ self._stream_tasks.pop(req.request_id, None)+ self._stream_sessions.pop(req.request_id, None)+ logger.debug(+ "[MessageHandler] Stream 任务状态已清理: request_id=%s",+ req.request_id,+ )+ # 所有流式任务正常结束后,通知前端全部处理完成+ if not cancelled and not self._stream_tasks:+ await self._send_processing_status(+ req.request_id, session_id, req.channel_id, is_processing=False,+ )+ logger.info(+ "[MessageHandler] 所有流式任务已完成,已发送 is_processing=false: session_id=%s",+ session_id,+ )++ async def _send_stream_cancelled_notification(+ self, request_id: str | None, channel_id: str, session_id: str | None+ ) -> None:+ """发送流式任务被取消的通知到客户端."""+ if not request_id:+ return++ from jiuwenclaw.schema.message import Message, EventType++ cancel_msg = Message(+ id=request_id,+ type="event",+ channel_id=channel_id,+ session_id=session_id,+ params={},+ timestamp=time.time(),+ ok=True,+ payload={+ "event_type": "chat.interrupt_result",+ "intent": "pause",+ "success": True,+ "message": "任务已暂停",+ },+ event_type=EventType.CHAT_INTERRUPT_RESULT,+ metadata=None,+ )+ await self.publish_robot_messages(cancel_msg)+ logger.info(+ "[MessageHandler] 已发送流式任务取消通知: request_id=%s",+ request_id,+ )++ async def _send_interrupt_to_agent(self, req: "AgentRequest") -> None:+ """Fire-and-forget: 发送中断请求到 AgentServer,不阻塞转发循环."""+ try:+ resp = await self._agent_client.send_request(req)+ logger.info(+ "[MessageHandler] AgentServer 中断响应(已丢弃): request_id=%s ok=%s",+ resp.request_id, resp.ok,+ )+ except Exception as e:+ logger.warning("[MessageHandler] AgentServer 中断请求失败(忽略): %s", e)++ async def _send_interrupt_result_notification(+ self, request_id: str, channel_id: str, session_id: str | None, intent: str,+ ) -> None:+ """发送 interrupt_result 事件到前端(pause / resume 等)."""+ from jiuwenclaw.schema.message import Message, EventType++ messages_map = {+ "pause": "任务已暂停",+ "resume": "任务已恢复",+ "cancel": "任务已取消",+ "supplement": "任务已切换",+ }+ notify_msg = Message(+ id=request_id,+ type="event",+ channel_id=channel_id,+ session_id=session_id,+ params={},+ timestamp=time.time(),+ ok=True,+ payload={+ "event_type": "chat.interrupt_result",+ "intent": intent,+ "success": True,+ "message": messages_map.get(intent, "任务已中断"),+ },+ event_type=EventType.CHAT_INTERRUPT_RESULT,+ metadata=None,+ )+ await self.publish_robot_messages(notify_msg)+ logger.info(+ "[MessageHandler] 已发送 interrupt_result 通知: intent=%s request_id=%s",+ intent, request_id,+ )++ async def _send_processing_status(+ self, request_id: str, session_id: str | None, channel_id: str, *, is_processing: bool,+ ) -> None:+ """发送 chat.processing_status 事件到客户端."""+ from jiuwenclaw.schema.message import Message, EventType++ status_msg = Message(+ id=request_id,+ type="event",+ channel_id=channel_id,+ session_id=session_id,+ params={},+ timestamp=time.time(),+ ok=True,+ payload={+ "event_type": "chat.processing_status",+ "session_id": session_id,+ "is_processing": is_processing,+ },+ event_type=EventType.CHAT_PROCESSING_STATUS,+ metadata=None,+ )+ await self.publish_robot_messages(status_msg)++ def _build_error_out_message(self, msg: "Message", error: Exception) -> "Message":+ from jiuwenclaw.schema.message import Message++ return Message(+ id=msg.id,+ type="res",+ channel_id=msg.channel_id,+ session_id=msg.session_id,+ params={},+ timestamp=time.time(),+ ok=False,+ payload={"error": str(error)},+ metadata=msg.metadata,+ )++ async def start_forwarding(self) -> None:+ """启动入队 -> AgentServer -> 出队 的转发任务."""+ if self._forward_task is not None:+ return+ self._running = True+ self._forward_task = asyncio.create_task(self._forward_loop())+ logger.info("[MessageHandler] 转发循环已启动 (_user_messages -> AgentServer -> _robot_messages)")++ async def stop_forwarding(self) -> None:+ """停止转发任务."""+ self._running = False++ # 取消所有流式任务+ for rid, task in list(self._stream_tasks.items()):+ if not task.done():+ logger.info("[MessageHandler] 停止时取消流式任务: request_id=%s", rid)+ task.cancel()+ try:+ await task+ except asyncio.CancelledError:+ pass+ self._stream_tasks.clear()+ self._stream_sessions.clear()++ # 取消转发循环+ if self._forward_task is not None:+ self._forward_task.cancel()+ try:+ await self._forward_task+ except asyncio.CancelledError:+ pass+ self._forward_task = None++ logger.info("[MessageHandler] 转发循环已停止")++ # ---------- 状态 ----------++ @property+ def user_messages_size(self) -> int:+ return self._user_messages.qsize()++ @property+ def robot_messages_size(self) -> int:+ return self._robot_messages.qsize()diff --git a/jiuwenclaw/init_workspace.py b/jiuwenclaw/init_workspace.pynew file mode 100644index 0000000000..b54c6ebe6c--- /dev/null+++ b/jiuwenclaw/init_workspace.py@@ -0,0 +1,24 @@+"""CLI for initializing package data into ~/.jiuwenclaw."""++from __future__ import annotations++import logging++from jiuwenclaw.paths import init_user_workspace, is_package_installation+++def main() -> None:+ logging.basicConfig(+ level=logging.INFO,+ format="%(asctime)s %(levelname)s %(name)s: %(message)s",+ )++ if not is_package_installation():+ raise SystemExit("jiuwenclaw-init 仅支持 pip/whl 安装模式")++ target = init_user_workspace(overwrite=True)+ print(f"[jiuwenclaw-init] initialized: {target}")+++if __name__ == "__main__":+ main()diff --git a/jiuwenclaw/package-lock.json b/jiuwenclaw/package-lock.jsonnew file mode 100644index 0000000000..7a634f8697--- /dev/null+++ b/jiuwenclaw/package-lock.json@@ -0,0 +1,6624 @@+{+ "name": "jiuwenclaw",+ "version": "1.0.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "jiuwenclaw",+ "version": "1.0.0",+ "dependencies": {+ "clsx": "^2.1.0",+ "cors": "^2.8.6",+ "express": "^5.2.1",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "react-markdown": "^10.1.0",+ "remark-gfm": "^4.0.1",+ "zustand": "^4.5.0"+ },+ "devDependencies": {+ "@types/node": "^25.3.0",+ "@types/react": "^18.2.0",+ "@types/react-dom": "^18.2.0",+ "@typescript-eslint/eslint-plugin": "^6.0.0",+ "@typescript-eslint/parser": "^6.0.0",+ "@vitejs/plugin-react": "^4.2.0",+ "autoprefixer": "^10.4.0",+ "eslint": "^8.45.0",+ "eslint-plugin-react-hooks": "^4.6.0",+ "eslint-plugin-react-refresh": "^0.4.0",+ "nodemon": "^3.1.14",+ "postcss": "^8.4.0",+ "tailwindcss": "^3.4.0",+ "typescript": "^5.3.0",+ "vite": "^5.0.0"+ }+ },+ "node_modules/@alloc/quick-lru": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",+ "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.28.5",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",+ "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",+ "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-module-transforms": "^7.28.6",+ "@babel/helpers": "^7.28.6",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/traverse": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/core/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.29.1",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",+ "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",+ "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.28.6",+ "@babel/helper-validator-option": "^7.27.1",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/@babel/helper-globals": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",+ "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",+ "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.28.6",+ "@babel/helper-validator-identifier": "^7.28.5",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",+ "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz",+ "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz",+ "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.0"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-self": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",+ "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-source": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",+ "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",+ "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.28.6",+ "@babel/parser": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",+ "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-globals": "^7.28.0",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",+ "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@eslint-community/eslint-utils": {+ "version": "4.9.1",+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",+ "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eslint-visitor-keys": "^3.4.3"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ },+ "peerDependencies": {+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"+ }+ },+ "node_modules/@eslint-community/regexpp": {+ "version": "4.12.2",+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"+ }+ },+ "node_modules/@eslint/eslintrc": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",+ "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ajv": "^6.12.4",+ "debug": "^4.3.2",+ "espree": "^9.6.0",+ "globals": "^13.19.0",+ "ignore": "^5.2.0",+ "import-fresh": "^3.2.1",+ "js-yaml": "^4.1.0",+ "minimatch": "^3.1.2",+ "strip-json-comments": "^3.1.1"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/@eslint/eslintrc/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@eslint/eslintrc/node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/@eslint/eslintrc/node_modules/minimatch": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/@eslint/js": {+ "version": "8.57.1",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",+ "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ }+ },+ "node_modules/@humanwhocodes/config-array": {+ "version": "0.13.0",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",+ "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",+ "deprecated": "Use @eslint/config-array instead",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@humanwhocodes/object-schema": "^2.0.3",+ "debug": "^4.3.1",+ "minimatch": "^3.0.5"+ },+ "engines": {+ "node": ">=10.10.0"+ }+ },+ "node_modules/@humanwhocodes/config-array/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/@humanwhocodes/config-array/node_modules/minimatch": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.22"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@humanwhocodes/object-schema": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",+ "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",+ "deprecated": "Use @eslint/object-schema instead",+ "dev": true,+ "license": "BSD-3-Clause"+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-beta.27",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz",+ "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz",+ "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz",+ "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz",+ "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz",+ "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz",+ "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz",+ "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz",+ "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz",+ "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz",+ "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz",+ "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz",+ "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz",+ "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz",+ "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz",+ "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz",+ "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz",+ "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz",+ "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz",+ "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz",+ "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz",+ "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz",+ "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz",+ "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz",+ "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz",+ "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@types/babel__core": {+ "version": "7.20.5",+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.20.7",+ "@babel/types": "^7.20.7",+ "@types/babel__generator": "*",+ "@types/babel__template": "*",+ "@types/babel__traverse": "*"+ }+ },+ "node_modules/@types/babel__generator": {+ "version": "7.27.0",+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__template": {+ "version": "7.4.4",+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.1.0",+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__traverse": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.28.2"+ }+ },+ "node_modules/@types/debug": {+ "version": "4.1.12",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/debug/-/debug-4.1.12.tgz",+ "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==",+ "license": "MIT",+ "dependencies": {+ "@types/ms": "*"+ }+ },+ "node_modules/@types/estree": {+ "version": "1.0.8",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/estree/-/estree-1.0.8.tgz",+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",+ "license": "MIT"+ },+ "node_modules/@types/estree-jsx": {+ "version": "1.0.5",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/estree-jsx/-/estree-jsx-1.0.5.tgz",+ "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "*"+ }+ },+ "node_modules/@types/hast": {+ "version": "3.0.4",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/hast/-/hast-3.0.4.tgz",+ "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/json-schema": {+ "version": "7.0.15",+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/mdast": {+ "version": "4.0.4",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/mdast/-/mdast-4.0.4.tgz",+ "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/ms": {+ "version": "2.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/ms/-/ms-2.1.0.tgz",+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "25.3.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/node/-/node-25.3.0.tgz",+ "integrity": "sha512-4K3bqJpXpqfg2XKGK9bpDTc6xO/xoUP/RBWS7AtRMug6zZFaRekiLzjVtAoZMquxoAbzBvy5nxQ7veS5eYzf8A==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "undici-types": "~7.18.0"+ }+ },+ "node_modules/@types/prop-types": {+ "version": "15.7.15",+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",+ "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "18.3.28",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.28.tgz",+ "integrity": "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@types/prop-types": "*",+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "18.3.7",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",+ "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^18.0.0"+ }+ },+ "node_modules/@types/semver": {+ "version": "7.7.1",+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.7.1.tgz",+ "integrity": "sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/unist": {+ "version": "3.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/unist/-/unist-3.0.3.tgz",+ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",+ "license": "MIT"+ },+ "node_modules/@typescript-eslint/eslint-plugin": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz",+ "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/regexpp": "^4.5.1",+ "@typescript-eslint/scope-manager": "6.21.0",+ "@typescript-eslint/type-utils": "6.21.0",+ "@typescript-eslint/utils": "6.21.0",+ "@typescript-eslint/visitor-keys": "6.21.0",+ "debug": "^4.3.4",+ "graphemer": "^1.4.0",+ "ignore": "^5.2.4",+ "natural-compare": "^1.4.0",+ "semver": "^7.5.4",+ "ts-api-utils": "^1.0.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha",+ "eslint": "^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/parser": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz",+ "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "peer": true,+ "dependencies": {+ "@typescript-eslint/scope-manager": "6.21.0",+ "@typescript-eslint/types": "6.21.0",+ "@typescript-eslint/typescript-estree": "6.21.0",+ "@typescript-eslint/visitor-keys": "6.21.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/scope-manager": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz",+ "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "6.21.0",+ "@typescript-eslint/visitor-keys": "6.21.0"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/type-utils": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz",+ "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/typescript-estree": "6.21.0",+ "@typescript-eslint/utils": "6.21.0",+ "debug": "^4.3.4",+ "ts-api-utils": "^1.0.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz",+ "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz",+ "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "@typescript-eslint/types": "6.21.0",+ "@typescript-eslint/visitor-keys": "6.21.0",+ "debug": "^4.3.4",+ "globby": "^11.1.0",+ "is-glob": "^4.0.3",+ "minimatch": "9.0.3",+ "semver": "^7.5.4",+ "ts-api-utils": "^1.0.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {+ "version": "9.0.3",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",+ "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@typescript-eslint/utils": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz",+ "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.4.0",+ "@types/json-schema": "^7.0.12",+ "@types/semver": "^7.5.0",+ "@typescript-eslint/scope-manager": "6.21.0",+ "@typescript-eslint/types": "6.21.0",+ "@typescript-eslint/typescript-estree": "6.21.0",+ "semver": "^7.5.4"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz",+ "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "6.21.0",+ "eslint-visitor-keys": "^3.4.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@ungap/structured-clone": {+ "version": "1.3.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",+ "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",+ "license": "ISC"+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.28.0",+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",+ "@rolldown/pluginutils": "1.0.0-beta.27",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.17.0"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"+ }+ },+ "node_modules/accepts": {+ "version": "2.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/accepts/-/accepts-2.0.0.tgz",+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",+ "license": "MIT",+ "dependencies": {+ "mime-types": "^3.0.0",+ "negotiator": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/acorn": {+ "version": "8.16.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",+ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-jsx": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/ajv": {+ "version": "6.14.0",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",+ "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/any-promise": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/anymatch": {+ "version": "3.1.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/arg": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",+ "dev": true,+ "license": "Python-2.0"+ },+ "node_modules/array-union": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/autoprefixer": {+ "version": "10.4.27",+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.27.tgz",+ "integrity": "sha512-NP9APE+tO+LuJGn7/9+cohklunJsXWiaWEfV3si4Gi/XHDwVNgkwr1J3RQYFIvPy76GmJ9/bW8vyoU1LcxwKHA==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.28.1",+ "caniuse-lite": "^1.0.30001774",+ "fraction.js": "^5.3.4",+ "picocolors": "^1.1.1",+ "postcss-value-parser": "^4.2.0"+ },+ "bin": {+ "autoprefixer": "bin/autoprefixer"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/bail": {+ "version": "2.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/bail/-/bail-2.0.2.tgz",+ "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/balanced-match": {+ "version": "4.0.4",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/balanced-match/-/balanced-match-4.0.4.tgz",+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "node_modules/baseline-browser-mapping": {+ "version": "2.10.0",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz",+ "integrity": "sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/binary-extensions": {+ "version": "2.3.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/binary-extensions/-/binary-extensions-2.3.0.tgz",+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/body-parser": {+ "version": "2.2.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/body-parser/-/body-parser-2.2.2.tgz",+ "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "^3.1.2",+ "content-type": "^1.0.5",+ "debug": "^4.4.3",+ "http-errors": "^2.0.0",+ "iconv-lite": "^0.7.0",+ "on-finished": "^2.4.1",+ "qs": "^6.14.1",+ "raw-body": "^3.0.1",+ "type-is": "^2.0.1"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/brace-expansion": {+ "version": "5.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/brace-expansion/-/brace-expansion-5.0.3.tgz",+ "integrity": "sha512-fy6KJm2RawA5RcHkLa1z/ScpBeA762UF9KmZQxwIbDtRJrgLzM10depAiEQ+CXYcoiqW1/m96OAAoke2nE9EeA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^4.0.2"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "node_modules/braces": {+ "version": "3.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/braces/-/braces-3.0.3.tgz",+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/browserslist": {+ "version": "4.28.1",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",+ "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "baseline-browser-mapping": "^2.9.0",+ "caniuse-lite": "^1.0.30001759",+ "electron-to-chromium": "^1.5.263",+ "node-releases": "^2.0.27",+ "update-browserslist-db": "^1.2.0"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/bytes": {+ "version": "3.1.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/bytes/-/bytes-3.1.2.tgz",+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/callsites": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/camelcase-css": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001774",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001774.tgz",+ "integrity": "sha512-DDdwPGz99nmIEv216hKSgLD+D4ikHQHjBC/seF98N9CPqRX4M5mSxT9eTV6oyisnJcuzxtZy4n17yKKQYmYQOA==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/ccount": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/ccount/-/ccount-2.0.1.tgz",+ "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/chalk": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/chalk/node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/chalk/node_modules/supports-color": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/character-entities": {+ "version": "2.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/character-entities/-/character-entities-2.0.2.tgz",+ "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-entities-html4": {+ "version": "2.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/character-entities-html4/-/character-entities-html4-2.1.0.tgz",+ "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-entities-legacy": {+ "version": "3.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",+ "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-reference-invalid": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz",+ "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/chokidar": {+ "version": "3.6.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/chokidar/-/chokidar-3.6.0.tgz",+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/comma-separated-tokens": {+ "version": "2.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",+ "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/commander": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/content-disposition": {+ "version": "1.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/content-disposition/-/content-disposition-1.0.1.tgz",+ "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/content-type": {+ "version": "1.0.5",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/content-type/-/content-type-1.0.5.tgz",+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cookie": {+ "version": "0.7.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/cookie/-/cookie-0.7.2.tgz",+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie-signature": {+ "version": "1.2.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/cookie-signature/-/cookie-signature-1.2.2.tgz",+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",+ "license": "MIT",+ "engines": {+ "node": ">=6.6.0"+ }+ },+ "node_modules/cors": {+ "version": "2.8.6",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/cors/-/cors-2.8.6.tgz",+ "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",+ "license": "MIT",+ "dependencies": {+ "object-assign": "^4",+ "vary": "^1"+ },+ "engines": {+ "node": ">= 0.10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/decode-named-character-reference": {+ "version": "1.3.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",+ "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",+ "license": "MIT",+ "dependencies": {+ "character-entities": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/deep-is": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/depd": {+ "version": "2.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/depd/-/depd-2.0.0.tgz",+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/dequal": {+ "version": "2.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/dequal/-/dequal-2.0.3.tgz",+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/devlop": {+ "version": "1.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/devlop/-/devlop-1.1.0.tgz",+ "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",+ "license": "MIT",+ "dependencies": {+ "dequal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/didyoumean": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/dir-glob": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",+ "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-type": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/dlv": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/doctrine": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",+ "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "esutils": "^2.0.2"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/ee-first": {+ "version": "1.1.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/ee-first/-/ee-first-1.1.1.tgz",+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",+ "license": "MIT"+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.302",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.302.tgz",+ "integrity": "sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/encodeurl": {+ "version": "2.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/encodeurl/-/encodeurl-2.0.0.tgz",+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-object-atoms": {+ "version": "1.1.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/es-object-atoms/-/es-object-atoms-1.1.1.tgz",+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/esbuild": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.21.5",+ "@esbuild/android-arm": "0.21.5",+ "@esbuild/android-arm64": "0.21.5",+ "@esbuild/android-x64": "0.21.5",+ "@esbuild/darwin-arm64": "0.21.5",+ "@esbuild/darwin-x64": "0.21.5",+ "@esbuild/freebsd-arm64": "0.21.5",+ "@esbuild/freebsd-x64": "0.21.5",+ "@esbuild/linux-arm": "0.21.5",+ "@esbuild/linux-arm64": "0.21.5",+ "@esbuild/linux-ia32": "0.21.5",+ "@esbuild/linux-loong64": "0.21.5",+ "@esbuild/linux-mips64el": "0.21.5",+ "@esbuild/linux-ppc64": "0.21.5",+ "@esbuild/linux-riscv64": "0.21.5",+ "@esbuild/linux-s390x": "0.21.5",+ "@esbuild/linux-x64": "0.21.5",+ "@esbuild/netbsd-x64": "0.21.5",+ "@esbuild/openbsd-x64": "0.21.5",+ "@esbuild/sunos-x64": "0.21.5",+ "@esbuild/win32-arm64": "0.21.5",+ "@esbuild/win32-ia32": "0.21.5",+ "@esbuild/win32-x64": "0.21.5"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/escape-html": {+ "version": "1.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",+ "license": "MIT"+ },+ "node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/eslint": {+ "version": "8.57.1",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",+ "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",+ "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.2.0",+ "@eslint-community/regexpp": "^4.6.1",+ "@eslint/eslintrc": "^2.1.4",+ "@eslint/js": "8.57.1",+ "@humanwhocodes/config-array": "^0.13.0",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@nodelib/fs.walk": "^1.2.8",+ "@ungap/structured-clone": "^1.2.0",+ "ajv": "^6.12.4",+ "chalk": "^4.0.0",+ "cross-spawn": "^7.0.2",+ "debug": "^4.3.2",+ "doctrine": "^3.0.0",+ "escape-string-regexp": "^4.0.0",+ "eslint-scope": "^7.2.2",+ "eslint-visitor-keys": "^3.4.3",+ "espree": "^9.6.1",+ "esquery": "^1.4.2",+ "esutils": "^2.0.2",+ "fast-deep-equal": "^3.1.3",+ "file-entry-cache": "^6.0.1",+ "find-up": "^5.0.0",+ "glob-parent": "^6.0.2",+ "globals": "^13.19.0",+ "graphemer": "^1.4.0",+ "ignore": "^5.2.0",+ "imurmurhash": "^0.1.4",+ "is-glob": "^4.0.0",+ "is-path-inside": "^3.0.3",+ "js-yaml": "^4.1.0",+ "json-stable-stringify-without-jsonify": "^1.0.1",+ "levn": "^0.4.1",+ "lodash.merge": "^4.6.2",+ "minimatch": "^3.1.2",+ "natural-compare": "^1.4.0",+ "optionator": "^0.9.3",+ "strip-ansi": "^6.0.1",+ "text-table": "^0.2.0"+ },+ "bin": {+ "eslint": "bin/eslint.js"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint-plugin-react-hooks": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz",+ "integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0"+ }+ },+ "node_modules/eslint-plugin-react-refresh": {+ "version": "0.4.26",+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz",+ "integrity": "sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "eslint": ">=8.40"+ }+ },+ "node_modules/eslint-scope": {+ "version": "7.2.2",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",+ "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint-visitor-keys": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/eslint/node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/eslint/node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/eslint/node_modules/minimatch": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/espree": {+ "version": "9.6.1",+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",+ "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "acorn": "^8.9.0",+ "acorn-jsx": "^5.3.2",+ "eslint-visitor-keys": "^3.4.1"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/esquery": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "estraverse": "^5.1.0"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/esrecurse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estraverse": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estree-util-is-identifier-name": {+ "version": "3.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz",+ "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/esutils": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/etag": {+ "version": "1.8.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/etag/-/etag-1.8.1.tgz",+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/express": {+ "version": "5.2.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/express/-/express-5.2.1.tgz",+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",+ "license": "MIT",+ "dependencies": {+ "accepts": "^2.0.0",+ "body-parser": "^2.2.1",+ "content-disposition": "^1.0.0",+ "content-type": "^1.0.5",+ "cookie": "^0.7.1",+ "cookie-signature": "^1.2.1",+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "finalhandler": "^2.1.0",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.0",+ "merge-descriptors": "^2.0.0",+ "mime-types": "^3.0.0",+ "on-finished": "^2.4.1",+ "once": "^1.4.0",+ "parseurl": "^1.3.3",+ "proxy-addr": "^2.0.7",+ "qs": "^6.14.0",+ "range-parser": "^1.2.1",+ "router": "^2.2.0",+ "send": "^1.1.0",+ "serve-static": "^2.2.0",+ "statuses": "^2.0.1",+ "type-is": "^2.0.1",+ "vary": "^1.1.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/extend": {+ "version": "3.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/extend/-/extend-3.0.2.tgz",+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",+ "license": "MIT"+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-glob": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fast-json-stable-stringify": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-levenshtein": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fastq": {+ "version": "1.20.1",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",+ "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/file-entry-cache": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",+ "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flat-cache": "^3.0.4"+ },+ "engines": {+ "node": "^10.12.0 || >=12.0.0"+ }+ },+ "node_modules/fill-range": {+ "version": "7.1.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/fill-range/-/fill-range-7.1.1.tgz",+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/finalhandler": {+ "version": "2.1.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/finalhandler/-/finalhandler-2.1.1.tgz",+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "on-finished": "^2.4.1",+ "parseurl": "^1.3.3",+ "statuses": "^2.0.1"+ },+ "engines": {+ "node": ">= 18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/find-up": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "locate-path": "^6.0.0",+ "path-exists": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/flat-cache": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",+ "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flatted": "^3.2.9",+ "keyv": "^4.5.3",+ "rimraf": "^3.0.2"+ },+ "engines": {+ "node": "^10.12.0 || >=12.0.0"+ }+ },+ "node_modules/flatted": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",+ "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/forwarded": {+ "version": "0.2.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/forwarded/-/forwarded-0.2.0.tgz",+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/fraction.js": {+ "version": "5.3.4",+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz",+ "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/rawify"+ }+ },+ "node_modules/fresh": {+ "version": "2.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/fresh/-/fresh-2.0.0.tgz",+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/fs.realpath": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",+ "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/glob/node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/glob/node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/glob/node_modules/minimatch": {+ "version": "3.1.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",+ "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/globals": {+ "version": "13.24.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",+ "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "type-fest": "^0.20.2"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/globby": {+ "version": "11.1.0",+ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",+ "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-union": "^2.1.0",+ "dir-glob": "^3.0.1",+ "fast-glob": "^3.2.9",+ "ignore": "^5.2.0",+ "merge2": "^1.4.1",+ "slash": "^3.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/graphemer": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/has-flag": {+ "version": "3.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/has-flag/-/has-flag-3.0.0.tgz",+ "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/hast-util-to-jsx-runtime": {+ "version": "2.3.6",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz",+ "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/unist": "^3.0.0",+ "comma-separated-tokens": "^2.0.0",+ "devlop": "^1.0.0",+ "estree-util-is-identifier-name": "^3.0.0",+ "hast-util-whitespace": "^3.0.0",+ "mdast-util-mdx-expression": "^2.0.0",+ "mdast-util-mdx-jsx": "^3.0.0",+ "mdast-util-mdxjs-esm": "^2.0.0",+ "property-information": "^7.0.0",+ "space-separated-tokens": "^2.0.0",+ "style-to-js": "^1.0.0",+ "unist-util-position": "^5.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-whitespace": {+ "version": "3.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",+ "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/html-url-attributes": {+ "version": "3.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/html-url-attributes/-/html-url-attributes-3.0.1.tgz",+ "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/http-errors": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/http-errors/-/http-errors-2.0.1.tgz",+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",+ "license": "MIT",+ "dependencies": {+ "depd": "~2.0.0",+ "inherits": "~2.0.4",+ "setprototypeof": "~1.2.0",+ "statuses": "~2.0.2",+ "toidentifier": "~1.0.1"+ },+ "engines": {+ "node": ">= 0.8"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/iconv-lite": {+ "version": "0.7.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/iconv-lite/-/iconv-lite-0.7.2.tgz",+ "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/ignore": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/ignore-by-default": {+ "version": "1.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/ignore-by-default/-/ignore-by-default-1.0.1.tgz",+ "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/import-fresh": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "parent-module": "^1.0.0",+ "resolve-from": "^4.0.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"+ },+ "node_modules/inline-style-parser": {+ "version": "0.2.7",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/inline-style-parser/-/inline-style-parser-0.2.7.tgz",+ "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",+ "license": "MIT"+ },+ "node_modules/ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/is-alphabetical": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-alphabetical/-/is-alphabetical-2.0.1.tgz",+ "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-alphanumerical": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz",+ "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==",+ "license": "MIT",+ "dependencies": {+ "is-alphabetical": "^2.0.0",+ "is-decimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.16.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-decimal": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-decimal/-/is-decimal-2.0.1.tgz",+ "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-hexadecimal": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz",+ "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/is-path-inside": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",+ "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-plain-obj": {+ "version": "4.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-plain-obj/-/is-plain-obj-4.1.0.tgz",+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-promise": {+ "version": "4.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/is-promise/-/is-promise-4.0.0.tgz",+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",+ "license": "MIT"+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/jiti": {+ "version": "1.21.7",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",+ "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "bin": {+ "jiti": "bin/jiti.js"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "license": "MIT"+ },+ "node_modules/js-yaml": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-schema-traverse": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-stable-stringify-without-jsonify": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json-buffer": "3.0.1"+ }+ },+ "node_modules/levn": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/lilconfig": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antonk52"+ }+ },+ "node_modules/lines-and-columns": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/locate-path": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-locate": "^5.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/lodash.merge": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/longest-streak": {+ "version": "3.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/longest-streak/-/longest-streak-3.1.0.tgz",+ "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/markdown-table": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz",+ "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/mdast-util-find-and-replace": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz",+ "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "escape-string-regexp": "^5.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz",+ "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/mdast-util-from-markdown": {+ "version": "2.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz",+ "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark": "^4.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz",+ "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==",+ "license": "MIT",+ "dependencies": {+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-gfm-autolink-literal": "^2.0.0",+ "mdast-util-gfm-footnote": "^2.0.0",+ "mdast-util-gfm-strikethrough": "^2.0.0",+ "mdast-util-gfm-table": "^2.0.0",+ "mdast-util-gfm-task-list-item": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-autolink-literal": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz",+ "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.0.0",+ "mdast-util-find-and-replace": "^3.0.0",+ "micromark-util-character": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-footnote": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz",+ "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-strikethrough": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz",+ "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-table": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz",+ "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "markdown-table": "^3.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-task-list-item": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz",+ "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-mdx-expression": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",+ "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-mdx-jsx": {+ "version": "3.2.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz",+ "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "parse-entities": "^4.0.0",+ "stringify-entities": "^4.0.0",+ "unist-util-stringify-position": "^4.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-mdxjs-esm": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz",+ "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-phrasing": {+ "version": "4.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",+ "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-hast": {+ "version": "13.2.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",+ "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@ungap/structured-clone": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "trim-lines": "^3.0.0",+ "unist-util-position": "^5.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-markdown": {+ "version": "2.1.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz",+ "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "longest-streak": "^3.0.0",+ "mdast-util-phrasing": "^4.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "unist-util-visit": "^5.0.0",+ "zwitch": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-string": {+ "version": "4.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",+ "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/media-typer": {+ "version": "1.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/media-typer/-/media-typer-1.1.0.tgz",+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/merge-descriptors": {+ "version": "2.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/merge-descriptors/-/merge-descriptors-2.0.0.tgz",+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromark": {+ "version": "4.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark/-/micromark-4.0.2.tgz",+ "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@types/debug": "^4.0.0",+ "debug": "^4.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-core-commonmark": {+ "version": "2.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz",+ "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-factory-destination": "^2.0.0",+ "micromark-factory-label": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-factory-title": "^2.0.0",+ "micromark-factory-whitespace": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-html-tag-name": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-extension-gfm": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz",+ "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==",+ "license": "MIT",+ "dependencies": {+ "micromark-extension-gfm-autolink-literal": "^2.0.0",+ "micromark-extension-gfm-footnote": "^2.0.0",+ "micromark-extension-gfm-strikethrough": "^2.0.0",+ "micromark-extension-gfm-table": "^2.0.0",+ "micromark-extension-gfm-tagfilter": "^2.0.0",+ "micromark-extension-gfm-task-list-item": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-autolink-literal": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz",+ "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==",+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-footnote": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz",+ "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-strikethrough": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz",+ "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-table": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz",+ "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-tagfilter": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz",+ "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==",+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-task-list-item": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz",+ "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-factory-destination": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",+ "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-label": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",+ "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-space": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz",+ "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-title": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",+ "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-whitespace": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",+ "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-character": {+ "version": "2.1.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-character/-/micromark-util-character-2.1.1.tgz",+ "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-chunked": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",+ "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-classify-character": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",+ "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-combine-extensions": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",+ "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-decode-numeric-character-reference": {+ "version": "2.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",+ "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-decode-string": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",+ "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-encode": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",+ "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-html-tag-name": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",+ "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-normalize-identifier": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",+ "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-resolve-all": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",+ "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-sanitize-uri": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",+ "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-subtokenize": {+ "version": "2.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",+ "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-symbol": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",+ "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-types": {+ "version": "2.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/micromark-util-types/-/micromark-util-types-2.0.2.tgz",+ "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/mime-db": {+ "version": "1.54.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mime-db/-/mime-db-1.54.0.tgz",+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "3.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/mime-types/-/mime-types-3.0.2.tgz",+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "^1.54.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/minimatch": {+ "version": "10.2.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/minimatch/-/minimatch-10.2.3.tgz",+ "integrity": "sha512-Rwi3pnapEqirPSbWbrZaa6N3nmqq4Xer/2XooiOKyV3q12ML06f7MOuc5DVH8ONZIFhwIYQ3yzPH4nt7iWHaTg==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "brace-expansion": "^5.0.2"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"+ },+ "node_modules/mz": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0",+ "object-assign": "^4.0.1",+ "thenify-all": "^1.0.0"+ }+ },+ "node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/natural-compare": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/negotiator": {+ "version": "1.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/negotiator/-/negotiator-1.0.0.tgz",+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/node-releases": {+ "version": "2.0.27",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz",+ "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/nodemon": {+ "version": "3.1.14",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/nodemon/-/nodemon-3.1.14.tgz",+ "integrity": "sha512-jakjZi93UtB3jHMWsXL68FXSAosbLfY0In5gtKq3niLSkrWznrVBzXFNOEMJUfc9+Ke7SHWoAZsiMkNP3vq6Jw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chokidar": "^3.5.2",+ "debug": "^4",+ "ignore-by-default": "^1.0.1",+ "minimatch": "^10.2.1",+ "pstree.remy": "^1.1.8",+ "semver": "^7.5.3",+ "simple-update-notifier": "^2.0.0",+ "supports-color": "^5.5.0",+ "touch": "^3.1.0",+ "undefsafe": "^2.0.5"+ },+ "bin": {+ "nodemon": "bin/nodemon.js"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/nodemon"+ }+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-hash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/object-inspect": {+ "version": "1.13.4",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/object-inspect/-/object-inspect-1.13.4.tgz",+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/on-finished": {+ "version": "2.4.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/on-finished/-/on-finished-2.4.1.tgz",+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",+ "license": "MIT",+ "dependencies": {+ "ee-first": "1.1.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/optionator": {+ "version": "0.9.4",+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "deep-is": "^0.1.3",+ "fast-levenshtein": "^2.0.6",+ "levn": "^0.4.1",+ "prelude-ls": "^1.2.1",+ "type-check": "^0.4.0",+ "word-wrap": "^1.2.5"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "yocto-queue": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-locate": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-limit": "^3.0.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/parent-module": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "callsites": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/parse-entities": {+ "version": "4.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/parse-entities/-/parse-entities-4.0.2.tgz",+ "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^2.0.0",+ "character-entities-legacy": "^3.0.0",+ "character-reference-invalid": "^2.0.0",+ "decode-named-character-reference": "^1.0.0",+ "is-alphanumerical": "^2.0.0",+ "is-decimal": "^2.0.0",+ "is-hexadecimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/parse-entities/node_modules/@types/unist": {+ "version": "2.0.11",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/unist/-/unist-2.0.11.tgz",+ "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",+ "license": "MIT"+ },+ "node_modules/parseurl": {+ "version": "1.3.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/parseurl/-/parseurl-1.3.3.tgz",+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/path-exists": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/path-to-regexp": {+ "version": "8.3.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/path-to-regexp/-/path-to-regexp-8.3.0.tgz",+ "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/path-type": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/pify": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/pirates": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.6",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "nanoid": "^3.3.11",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-import": {+ "version": "15.1.0",+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.0.0",+ "read-cache": "^1.0.0",+ "resolve": "^1.1.7"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "postcss": "^8.0.0"+ }+ },+ "node_modules/postcss-js": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",+ "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "camelcase-css": "^2.0.1"+ },+ "engines": {+ "node": "^12 || ^14 || >= 16"+ },+ "peerDependencies": {+ "postcss": "^8.4.21"+ }+ },+ "node_modules/postcss-load-config": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",+ "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "lilconfig": "^3.1.1"+ },+ "engines": {+ "node": ">= 18"+ },+ "peerDependencies": {+ "jiti": ">=1.21.0",+ "postcss": ">=8.0.9",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "jiti": {+ "optional": true+ },+ "postcss": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/postcss-nested": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",+ "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "^6.1.1"+ },+ "engines": {+ "node": ">=12.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.14"+ }+ },+ "node_modules/postcss-selector-parser": {+ "version": "6.1.2",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",+ "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-value-parser": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/prelude-ls": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/property-information": {+ "version": "7.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/property-information/-/property-information-7.1.0.tgz",+ "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/proxy-addr": {+ "version": "2.0.7",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/proxy-addr/-/proxy-addr-2.0.7.tgz",+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",+ "license": "MIT",+ "dependencies": {+ "forwarded": "0.2.0",+ "ipaddr.js": "1.9.1"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/pstree.remy": {+ "version": "1.1.8",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/pstree.remy/-/pstree.remy-1.1.8.tgz",+ "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/qs": {+ "version": "6.15.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/qs/-/qs-6.15.0.tgz",+ "integrity": "sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/range-parser": {+ "version": "1.2.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/range-parser/-/range-parser-1.2.1.tgz",+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/raw-body": {+ "version": "3.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/raw-body/-/raw-body-3.0.2.tgz",+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "~3.1.2",+ "http-errors": "~2.0.1",+ "iconv-lite": "~0.7.0",+ "unpipe": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/react": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "loose-envify": "^1.1.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0",+ "scheduler": "^0.23.2"+ },+ "peerDependencies": {+ "react": "^18.3.1"+ }+ },+ "node_modules/react-markdown": {+ "version": "10.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/react-markdown/-/react-markdown-10.1.0.tgz",+ "integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "hast-util-to-jsx-runtime": "^2.0.0",+ "html-url-attributes": "^3.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "remark-parse": "^11.0.0",+ "remark-rehype": "^11.0.0",+ "unified": "^11.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ },+ "peerDependencies": {+ "@types/react": ">=18",+ "react": ">=18"+ }+ },+ "node_modules/react-refresh": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/read-cache": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",+ "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pify": "^2.3.0"+ }+ },+ "node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/remark-gfm": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz",+ "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-gfm": "^3.0.0",+ "micromark-extension-gfm": "^3.0.0",+ "remark-parse": "^11.0.0",+ "remark-stringify": "^11.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-parse": {+ "version": "11.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/remark-parse/-/remark-parse-11.0.0.tgz",+ "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-rehype": {+ "version": "11.1.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/remark-rehype/-/remark-rehype-11.1.2.tgz",+ "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "unified": "^11.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-stringify": {+ "version": "11.0.0",+ "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz",+ "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.11",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",+ "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.16.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/resolve-from": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/reusify": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "deprecated": "Rimraf versions prior to v4 are no longer supported",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/rollup": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz",+ "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.8"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.59.0",+ "@rollup/rollup-android-arm64": "4.59.0",+ "@rollup/rollup-darwin-arm64": "4.59.0",+ "@rollup/rollup-darwin-x64": "4.59.0",+ "@rollup/rollup-freebsd-arm64": "4.59.0",+ "@rollup/rollup-freebsd-x64": "4.59.0",+ "@rollup/rollup-linux-arm-gnueabihf": "4.59.0",+ "@rollup/rollup-linux-arm-musleabihf": "4.59.0",+ "@rollup/rollup-linux-arm64-gnu": "4.59.0",+ "@rollup/rollup-linux-arm64-musl": "4.59.0",+ "@rollup/rollup-linux-loong64-gnu": "4.59.0",+ "@rollup/rollup-linux-loong64-musl": "4.59.0",+ "@rollup/rollup-linux-ppc64-gnu": "4.59.0",+ "@rollup/rollup-linux-ppc64-musl": "4.59.0",+ "@rollup/rollup-linux-riscv64-gnu": "4.59.0",+ "@rollup/rollup-linux-riscv64-musl": "4.59.0",+ "@rollup/rollup-linux-s390x-gnu": "4.59.0",+ "@rollup/rollup-linux-x64-gnu": "4.59.0",+ "@rollup/rollup-linux-x64-musl": "4.59.0",+ "@rollup/rollup-openbsd-x64": "4.59.0",+ "@rollup/rollup-openharmony-arm64": "4.59.0",+ "@rollup/rollup-win32-arm64-msvc": "4.59.0",+ "@rollup/rollup-win32-ia32-msvc": "4.59.0",+ "@rollup/rollup-win32-x64-gnu": "4.59.0",+ "@rollup/rollup-win32-x64-msvc": "4.59.0",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/router": {+ "version": "2.2.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/router/-/router-2.2.0.tgz",+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "is-promise": "^4.0.0",+ "parseurl": "^1.3.3",+ "path-to-regexp": "^8.0.0"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "queue-microtask": "^1.2.2"+ }+ },+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "license": "MIT"+ },+ "node_modules/scheduler": {+ "version": "0.23.2",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ }+ },+ "node_modules/semver": {+ "version": "7.7.4",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/semver/-/semver-7.7.4.tgz",+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/send": {+ "version": "1.2.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/send/-/send-1.2.1.tgz",+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.3",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.1",+ "mime-types": "^3.0.2",+ "ms": "^2.1.3",+ "on-finished": "^2.4.1",+ "range-parser": "^1.2.1",+ "statuses": "^2.0.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/serve-static": {+ "version": "2.2.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/serve-static/-/serve-static-2.2.1.tgz",+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",+ "license": "MIT",+ "dependencies": {+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "parseurl": "^1.3.3",+ "send": "^1.2.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/setprototypeof": {+ "version": "1.2.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/setprototypeof/-/setprototypeof-1.2.0.tgz",+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",+ "license": "ISC"+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/side-channel": {+ "version": "1.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/side-channel/-/side-channel-1.1.0.tgz",+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.3",+ "side-channel-list": "^1.0.0",+ "side-channel-map": "^1.0.1",+ "side-channel-weakmap": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-list": {+ "version": "1.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/side-channel-list/-/side-channel-list-1.0.0.tgz",+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-map": {+ "version": "1.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/side-channel-map/-/side-channel-map-1.0.1.tgz",+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-weakmap": {+ "version": "1.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3",+ "side-channel-map": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/simple-update-notifier": {+ "version": "2.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",+ "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^7.5.3"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/slash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/space-separated-tokens": {+ "version": "2.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",+ "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/statuses": {+ "version": "2.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/statuses/-/statuses-2.0.2.tgz",+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/stringify-entities": {+ "version": "4.0.4",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/stringify-entities/-/stringify-entities-4.0.4.tgz",+ "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",+ "license": "MIT",+ "dependencies": {+ "character-entities-html4": "^2.0.0",+ "character-entities-legacy": "^3.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-json-comments": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/style-to-js": {+ "version": "1.1.21",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/style-to-js/-/style-to-js-1.1.21.tgz",+ "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==",+ "license": "MIT",+ "dependencies": {+ "style-to-object": "1.0.14"+ }+ },+ "node_modules/style-to-object": {+ "version": "1.0.14",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/style-to-object/-/style-to-object-1.0.14.tgz",+ "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",+ "license": "MIT",+ "dependencies": {+ "inline-style-parser": "0.2.7"+ }+ },+ "node_modules/sucrase": {+ "version": "3.35.1",+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",+ "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.2",+ "commander": "^4.0.0",+ "lines-and-columns": "^1.1.6",+ "mz": "^2.7.0",+ "pirates": "^4.0.1",+ "tinyglobby": "^0.2.11",+ "ts-interface-checker": "^0.1.9"+ },+ "bin": {+ "sucrase": "bin/sucrase",+ "sucrase-node": "bin/sucrase-node"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/supports-color": {+ "version": "5.5.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/supports-color/-/supports-color-5.5.0.tgz",+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^3.0.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/tailwindcss": {+ "version": "3.4.19",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",+ "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@alloc/quick-lru": "^5.2.0",+ "arg": "^5.0.2",+ "chokidar": "^3.6.0",+ "didyoumean": "^1.2.2",+ "dlv": "^1.1.3",+ "fast-glob": "^3.3.2",+ "glob-parent": "^6.0.2",+ "is-glob": "^4.0.3",+ "jiti": "^1.21.7",+ "lilconfig": "^3.1.3",+ "micromatch": "^4.0.8",+ "normalize-path": "^3.0.0",+ "object-hash": "^3.0.0",+ "picocolors": "^1.1.1",+ "postcss": "^8.4.47",+ "postcss-import": "^15.1.0",+ "postcss-js": "^4.0.1",+ "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",+ "postcss-nested": "^6.2.0",+ "postcss-selector-parser": "^6.1.2",+ "resolve": "^1.22.8",+ "sucrase": "^3.35.0"+ },+ "bin": {+ "tailwind": "lib/cli.js",+ "tailwindcss": "lib/cli.js"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tailwindcss/node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/text-table": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",+ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/thenify": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0"+ }+ },+ "node_modules/thenify-all": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "thenify": ">= 3.1.0 < 4"+ },+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/tinyglobby": {+ "version": "0.2.15",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/tinyglobby/node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/tinyglobby/node_modules/picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/toidentifier": {+ "version": "1.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/toidentifier/-/toidentifier-1.0.1.tgz",+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.6"+ }+ },+ "node_modules/touch": {+ "version": "3.1.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/touch/-/touch-3.1.1.tgz",+ "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "nodetouch": "bin/nodetouch.js"+ }+ },+ "node_modules/trim-lines": {+ "version": "3.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/trim-lines/-/trim-lines-3.0.1.tgz",+ "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/trough": {+ "version": "2.2.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/trough/-/trough-2.2.0.tgz",+ "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/ts-api-utils": {+ "version": "1.4.3",+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz",+ "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=16"+ },+ "peerDependencies": {+ "typescript": ">=4.2.0"+ }+ },+ "node_modules/ts-interface-checker": {+ "version": "0.1.13",+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/type-check": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/type-fest": {+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",+ "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",+ "dev": true,+ "license": "(MIT OR CC0-1.0)",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/type-is": {+ "version": "2.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/type-is/-/type-is-2.0.1.tgz",+ "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",+ "license": "MIT",+ "dependencies": {+ "content-type": "^1.0.5",+ "media-typer": "^1.1.0",+ "mime-types": "^3.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/undefsafe": {+ "version": "2.0.5",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/undefsafe/-/undefsafe-2.0.5.tgz",+ "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/undici-types": {+ "version": "7.18.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/undici-types/-/undici-types-7.18.2.tgz",+ "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/unified": {+ "version": "11.0.5",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/unified/-/unified-11.0.5.tgz",+ "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "bail": "^2.0.0",+ "devlop": "^1.0.0",+ "extend": "^3.0.0",+ "is-plain-obj": "^4.0.0",+ "trough": "^2.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-is": {+ "version": "6.0.1",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/unist-util-is/-/unist-util-is-6.0.1.tgz",+ "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-position": {+ "version": "5.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/unist-util-position/-/unist-util-position-5.0.0.tgz",+ "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-stringify-position": {+ "version": "4.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",+ "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-visit": {+ "version": "5.1.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/unist-util-visit/-/unist-util-visit-5.1.0.tgz",+ "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-visit-parents": {+ "version": "6.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",+ "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unpipe": {+ "version": "1.0.0",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/unpipe/-/unpipe-1.0.0.tgz",+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/update-browserslist-db": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "escalade": "^3.2.0",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "update-browserslist-db": "cli.js"+ },+ "peerDependencies": {+ "browserslist": ">= 4.21.0"+ }+ },+ "node_modules/uri-js": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },+ "node_modules/use-sync-external-store": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vary": {+ "version": "1.1.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/vary/-/vary-1.1.2.tgz",+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/vfile": {+ "version": "6.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/vfile/-/vfile-6.0.3.tgz",+ "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/vfile-message": {+ "version": "4.0.3",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/vfile-message/-/vfile-message-4.0.3.tgz",+ "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/vite": {+ "version": "5.4.21",+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "esbuild": "^0.21.3",+ "postcss": "^8.4.43",+ "rollup": "^4.20.0"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || >=20.0.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.4.0"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ }+ }+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/word-wrap": {+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC"+ },+ "node_modules/yallist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/yocto-queue": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/zustand": {+ "version": "4.5.7",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",+ "license": "MIT",+ "dependencies": {+ "use-sync-external-store": "^1.2.2"+ },+ "engines": {+ "node": ">=12.7.0"+ },+ "peerDependencies": {+ "@types/react": ">=16.8",+ "immer": ">=9.0.6",+ "react": ">=16.8"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ }+ }+ },+ "node_modules/zwitch": {+ "version": "2.0.4",+ "resolved": "https://mirrors.huaweicloud.com/repository/npm/zwitch/-/zwitch-2.0.4.tgz",+ "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ }+ }+}diff --git a/jiuwenclaw/package.json b/jiuwenclaw/package.jsonnew file mode 100644index 0000000000..39246f22c3--- /dev/null+++ b/jiuwenclaw/package.json@@ -0,0 +1,10 @@+{+ "name": "jiuwenclaw",+ "version": "1.0.0",+ "scripts": {+ "predev": "node scripts/generate-agent-folders.js",+ "prebuild": "node scripts/generate-agent-folders.js",+ "dev": "cd web && npm run dev",+ "build": "cd web && npm run build"+ }+}diff --git a/jiuwenclaw/paths.py b/jiuwenclaw/paths.pynew file mode 100644index 0000000000..a62b7a6e22--- /dev/null+++ b/jiuwenclaw/paths.py@@ -0,0 +1,218 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Path management for JiuWenClaw.++Handles path resolution for both source and package installations:+- Source: Use project root directory for config and workspace+- Package (whl): Use user home directory (~/.jiuwenclaw) as runtime data root+"""++import importlib.util+import logging+import shutil+import sys+from pathlib import Path+from typing import Any++logger = logging.getLogger(__name__)++# User home directory+USER_HOME = Path.home()+USER_WORKSPACE_DIR = USER_HOME / ".jiuwenclaw"++# Cache for resolved paths+_config_dir: Path | None = None+_workspace_dir: Path | None = None+_root_dir: Path | None = None+_is_package: bool | None = None+_initialized: bool = False+++def _detect_installation_mode() -> bool:+ """Detect if running from a package installation (whl)."""+ global _is_package+ if _is_package is not None:+ return _is_package++ # Check if module is in site-packages+ module_file = Path(__file__).resolve()++ # Check if module file is in any site-packages directory+ for path in sys.path:+ site_packages = Path(path)+ if "site-packages" in str(site_packages) and site_packages in module_file.parents:+ _is_package = True+ return True++ _is_package = False+ return False+++def _find_source_root() -> Path:+ """Find the source code root directory for development mode."""+ current = Path(__file__).resolve().parent.parent++ # Check if config and workspace exist at this level+ if (current / "config").exists() and (current / "workspace").exists():+ return current++ # Check parent directory+ parent = current.parent+ if (parent / "config").exists() and (parent / "workspace").exists():+ return parent++ return current+++def _find_package_root() -> Path | None:+ """Find the package root directory containing config and workspace."""+ # In package mode (whl), __file__ is at site-packages/jiuwenclaw/paths.py+ # So parent is site-packages/jiuwenclaw/, which contains config and workspace+ current = Path(__file__).resolve().parent++ # Check if config and workspace exist at this level+ if (current / "config").exists() and (current / "workspace").exists():+ return current++ return None+++def init_user_workspace(overwrite: bool = True) -> Path:+ """Initialize ~/.jiuwenclaw from package resources.++ Args:+ overwrite: When True, overwrite existing files with package defaults.++ Returns:+ Path to user workspace root (~/.jiuwenclaw).++ Raises:+ RuntimeError: If not in package mode or package resources are missing.+ """+ if not _detect_installation_mode():+ raise RuntimeError("jiuwenclaw-init is only available in package installation mode")++ package_root = _find_package_root()+ if not package_root:+ raise RuntimeError("package root not found")++ USER_WORKSPACE_DIR.mkdir(parents=True, exist_ok=True)++ config_src = package_root / "config"+ config_dest = USER_WORKSPACE_DIR / "config"+ if not config_src.exists():+ raise RuntimeError(f"config source not found: {config_src}")+ if overwrite:+ shutil.copytree(config_src, config_dest, dirs_exist_ok=True)+ elif not config_dest.exists():+ shutil.copytree(config_src, config_dest)++ workspace_src = package_root / "workspace"+ workspace_dest = USER_WORKSPACE_DIR / "workspace"+ if not workspace_src.exists():+ raise RuntimeError(f"workspace source not found: {workspace_src}")+ if overwrite:+ shutil.copytree(workspace_src, workspace_dest, dirs_exist_ok=True)+ elif not workspace_dest.exists():+ shutil.copytree(workspace_src, workspace_dest)++ env_template_src = package_root / ".env.template"+ env_dest = USER_WORKSPACE_DIR / ".env"+ if not env_template_src.exists():+ raise RuntimeError(f"env template source not found: {env_template_src}")+ if overwrite or not env_dest.exists():+ shutil.copy2(env_template_src, env_dest)++ return USER_WORKSPACE_DIR+++def _resolve_paths() -> None:+ """Resolve and cache all paths."""+ global _initialized, _config_dir, _workspace_dir, _root_dir++ if _initialized:+ return++ if _detect_installation_mode():+ # Package mode+ package_root = _find_package_root()+ if package_root:+ _root_dir = USER_WORKSPACE_DIR+ _config_dir = USER_WORKSPACE_DIR / "config"+ _workspace_dir = USER_WORKSPACE_DIR / "workspace"+ else:+ logger.warning("Could not find package root, falling back to source mode")+ source_root = _find_source_root()+ _root_dir = source_root+ _config_dir = source_root / "config"+ _workspace_dir = source_root / "workspace"+ else:+ # Source mode+ source_root = _find_source_root()+ _root_dir = source_root+ _config_dir = source_root / "config"+ _workspace_dir = source_root / "workspace"++ _initialized = True+++def get_config_dir() -> Path:+ """Get the config directory path."""+ _resolve_paths()+ return _config_dir+++def get_workspace_dir() -> Path:+ """Get the workspace directory path."""+ _resolve_paths()+ return _workspace_dir+++def get_root_dir() -> Path:+ """Get the root directory path."""+ _resolve_paths()+ return _root_dir+++def get_agent_workspace_dir() -> Path:+ """Get the agent workspace directory path (workspace/agent)."""+ return get_workspace_dir() / "agent"+++def get_config_file() -> Path:+ """Get the config.yaml file path."""+ return get_config_dir() / "config.yaml"+++def is_package_installation() -> bool:+ """Check if running from package installation."""+ return _detect_installation_mode()+++def _get_config_module() -> Any:+ """Get config module from correct location.++ This function dynamically loads the config module from either:+ - User workspace: ~/.jiuwenclaw/config+ - Source mode: project root config directory++ Returns:+ The loaded config module with get_config function++ Raises:+ ImportError: If config module cannot be loaded+ """+ # Check for user workspace+ config_dir = Path.home() / ".jiuwenclaw" / "config"+ if not config_dir.exists():+ # Source mode: use relative path+ config_dir = get_config_dir()++ # Import config as a module+ spec = importlib.util.spec_from_file_location("config_module", str(config_dir / "config.py"))+ if spec and spec.loader:+ module = importlib.util.module_from_spec(spec)+ sys.modules["config_module"] = module+ spec.loader.exec_module(module)+ return module+ raise ImportError(f"Cannot load config module from {config_dir}")diff --git a/jiuwenclaw/schema/__init__.py b/jiuwenclaw/schema/__init__.pynew file mode 100644index 0000000000..327248511d--- /dev/null+++ b/jiuwenclaw/schema/__init__.py@@ -0,0 +1,13 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""数据模型."""++from jiuwenclaw.schema.agent import AgentRequest, AgentResponse, AgentResponseChunk+from jiuwenclaw.schema.message import Message++__all__ = [+ "Message",+ "AgentRequest",+ "AgentResponse",+ "AgentResponseChunk",+]diff --git a/jiuwenclaw/schema/agent.py b/jiuwenclaw/schema/agent.pynew file mode 100644index 0000000000..8207637959--- /dev/null+++ b/jiuwenclaw/schema/agent.py@@ -0,0 +1,43 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Agent 请求与响应模型."""++from dataclasses import dataclass, field+from typing import Any++from jiuwenclaw.schema.message import ReqMethod+++@dataclass+class AgentRequest:+ """Agent 请求(Gateway → AgentServer)."""++ request_id: str+ channel_id: str = ""+ session_id: str | None = None+ req_method: ReqMethod | None = None+ params: dict = field(default_factory=dict)+ is_stream: bool = False+ timestamp: float = 0.0+ metadata: dict[str, Any] | None = None+++@dataclass+class AgentResponse:+ """Agent 响应(AgentServer → Gateway,非流式完整响应)."""++ request_id: str+ channel_id: str+ ok: bool = True+ payload: dict | None = None+ metadata: dict[str, Any] | None = None+++@dataclass+class AgentResponseChunk:+ """Agent 响应片段(AgentServer → Gateway,流式)."""++ request_id: str+ channel_id: str+ payload: dict | None = None+ is_complete: bool = Falsediff --git a/jiuwenclaw/schema/message.py b/jiuwenclaw/schema/message.pynew file mode 100644index 0000000000..da595cd750--- /dev/null+++ b/jiuwenclaw/schema/message.py@@ -0,0 +1,95 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""统一消息模型."""++from dataclasses import dataclass+from enum import Enum+from typing import Any, Literal+++class ReqMethod(Enum):+ CHAT_SEND = "chat.send"+ CHAT_RESUME = "chat.resume"+ CHAT_CANCEL = "chat.interrupt"+ CHAT_ANSWER = "chat.user_answer"++ CONFIG_GET = "config.get"+ CONFIG_SET = "config.set"+ CHANNEL_GET = "channel.get"++ SESSION_LIST = "session.list"+ SESSION_CREATE = "session.create"+ SESSION_DELETE = "session.delete"++ PATH_GET = "path.get"+ PATH_SET = "path.set"++ BROWSER_START = "browser.start"++ MEMORY_COMPUTE = "memory.compute"++ FILES_LIST = "files.list"+ FILES_GET = "files.get"+ TTS_SYNTHESIZE = "tts.synthesize"++ SKILLS_MARKETPLACE_LIST = "skills.marketplace.list"+ SKILLS_LIST = "skills.list"+ SKILLS_INSTALLED = "skills.installed"+ SKILLS_GET = "skills.get"+ SKILLS_INSTALL = "skills.install"+ SKILLS_IMPORT_LOCAL = "skills.import_local"+ SKILLS_MARKETPLACE_ADD = "skills.marketplace.add"+ SKILLS_MARKETPLACE_REMOVE = "skills.marketplace.remove"+ SKILLS_MARKETPLACE_TOGGLE = "skills.marketplace.toggle"+ SKILLS_UNINSTALL = "skills.uninstall"++ HEARTBEAT_GET_CONF = "heartbeat.get_conf"+ HEARTBEAT_SET_CONF = "heartbeat.set_conf"++ CHANNEL_FEISHU_GET_CONF = "channel.feishu.get_conf"+ CHANNEL_FEISHU_SET_CONF = "channel.feishu.set_conf"++ CHANNEL_XIAOYI_GET_CONF = "channel.xiaoyi.get_conf"+ CHANNEL_XIAOYI_SET_CONF = "channel.xiaoyi.set_conf"++class EventType(Enum):+ CONNECTION_ACK = "connection.ack"+ HELLO = "hello"+ CHAT_DELTA = "chat.delta"+ CHAT_FINAL = "chat.final"+ CHAT_MEDIA = "chat.media"+ CHAT_TOOL_CALL = "chat.tool_call"+ CHAT_TOOL_RESULT = "chat.tool_result"+ CONTEXT_COMPRESSED = "context.compressed"+ TODO_UPDATED = "todo.updated"+ CHAT_PROCESSING_STATUS = "chat.processing_status"+ CHAT_ERROR = "chat.error"+ CHAT_INTERRUPT_RESULT = "chat.interrupt_result"+ CHAT_SUBTASK_UPDATE = "chat.subtask_update"+ CHAT_ASK_USER_QUESTION = "chat.ask_user_question"+ HEARTBEAT_RELAY = "heartbeat.relay"+++class Mode(Enum):+ AGENT = "agent"+ PLAN = "plan"+++@dataclass+class Message:+ """统一消息结构."""+ id: str+ type: Literal["req", "res", "event"]+ channel_id: str+ session_id: str | None+ params: dict+ timestamp: float+ ok: bool+ payload: dict | None = None+ req_method: ReqMethod | None = None+ event_type: EventType | None = None+ mode: Mode = Mode.PLAN+ is_stream: bool = False+ stream_seq: int | None = None+ stream_id: str | None = None+ metadata: dict[str, Any] | None = Nonediff --git a/jiuwenclaw/scripts/generate-agent-folders.js b/jiuwenclaw/scripts/generate-agent-folders.jsnew file mode 100644index 0000000000..a418c7cfcc--- /dev/null+++ b/jiuwenclaw/scripts/generate-agent-folders.js@@ -0,0 +1,87 @@+const fs = require('fs');+const path = require('path');++const scriptDir = __dirname;+const envRoot = process.env.JIUWENCLAW_ROOT ? path.resolve(process.env.JIUWENCLAW_ROOT) : '';+const workspaceFromEnv = envRoot ? path.join(envRoot, 'workspace') : '';+const legacyWorkspace = path.join(scriptDir, '../../workspace');+const packageWorkspace = path.join(scriptDir, '../workspace');++const workspaceRoot = [workspaceFromEnv, legacyWorkspace, packageWorkspace]+ .filter(Boolean)+ .find((candidate) => fs.existsSync(candidate));++if (!workspaceRoot) {+ console.error('❌ 错误: 无法定位 workspace 目录');+ process.exit(1);+}++const agentPath = path.join(workspaceRoot, 'agent');+const outputPath = path.join(workspaceRoot, 'agent-data.json');++console.log('扫描目录:', agentPath);++try {+ if (!fs.existsSync(agentPath)) {+ console.error('❌ 错误: workspace/agent 目录不存在!');+ process.exit(1);+ }++ const isMarkdownFile = (fileName) => fileName.endsWith('.md') || fileName.endsWith('.mdx');+ const ROOT_FOLDER_KEY = '__root__';+ const folderData = {};++ const upsertFileToFolder = (folderKey, relativeFilePath) => {+ if (!folderData[folderKey]) {+ folderData[folderKey] = [];+ }+ folderData[folderKey].push({+ name: path.basename(relativeFilePath),+ path: `workspace/agent/${relativeFilePath.replace(/\\/g, '/')}`,+ isMarkdown: isMarkdownFile(relativeFilePath)+ });+ };++ const walkDirectory = (absoluteDirPath, relativeDirPath = '') => {+ const entries = fs.readdirSync(absoluteDirPath, { withFileTypes: true });+ entries.forEach((entry) => {+ const absoluteEntryPath = path.join(absoluteDirPath, entry.name);+ const relativeEntryPath = relativeDirPath+ ? path.join(relativeDirPath, entry.name)+ : entry.name;+ if (entry.isDirectory()) {+ walkDirectory(absoluteEntryPath, relativeEntryPath);+ return;+ }+ if (!entry.isFile()) {+ return;+ }+ const relativeFolderPath = path.dirname(relativeEntryPath);+ const folderKey = relativeFolderPath === '.' ? ROOT_FOLDER_KEY : relativeFolderPath.replace(/\\/g, '/');+ upsertFileToFolder(folderKey, relativeEntryPath);+ });+ };++ walkDirectory(agentPath);++ // 为了稳定输出,统一排序文件夹与文件+ const sortedFolderData = Object.keys(folderData)+ .sort((a, b) => a.localeCompare(b))+ .reduce((acc, folder) => {+ const sortedFiles = folderData[folder]+ .slice()+ .sort((a, b) => a.path.localeCompare(b.path));+ acc[folder] = sortedFiles;+ return acc;+ }, {});++ // 确保输出目录存在后写入 JSON 文件+ fs.mkdirSync(path.dirname(outputPath), { recursive: true });+ fs.writeFileSync(outputPath, JSON.stringify(sortedFolderData, null, 2));+ console.log('✅ 成功生成文件结构:', outputPath);+ console.log('📁 找到的文件夹:', Object.keys(sortedFolderData));++} catch (error) {+ console.error('❌ 读取目录失败:', error.message);+ fs.writeFileSync(outputPath, JSON.stringify({}, null, 2));+}\ No newline at end of filediff --git a/jiuwenclaw/scripts/watch-folders.js b/jiuwenclaw/scripts/watch-folders.jsnew file mode 100644index 0000000000..0ce8270bfc--- /dev/null+++ b/jiuwenclaw/scripts/watch-folders.js@@ -0,0 +1,34 @@+const { spawn } = require('child_process');+const path = require('path');++// 运行生成脚本+function generate() {+ console.log('📁 检测到文件变化,重新生成文件夹列表...');+ const child = spawn('node', [path.join(__dirname, 'generate-agent-folders.js')], {+ stdio: 'inherit'+ });++ child.on('close', (code) => {+ if (code === 0) {+ console.log('✅ 文件夹列表已更新\n');+ }+ });+}++// 初始生成+generate();++// 监听 workspace/agent 目录的变化+const chokidar = require('chokidar');+const watcher = chokidar.watch(path.join(__dirname, '../../workspace/agent'), {+ persistent: true,+ ignoreInitial: true+});++watcher+ .on('add', generate)+ .on('addDir', generate)+ .on('unlink', generate)+ .on('unlinkDir', generate);++console.log('👀 正在监听 workspace/agent 目录的变化...');\ No newline at end of filediff --git a/jiuwenclaw/start_services.py b/jiuwenclaw/start_services.pynew file mode 100644index 0000000000..63d371a5ad--- /dev/null+++ b/jiuwenclaw/start_services.py@@ -0,0 +1,122 @@+# Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.++"""Launch JiuwenClaw frontend/backend services with one command."""++from __future__ import annotations++import argparse+import signal+import subprocess+import sys+import time+from pathlib import Path++from jiuwenclaw.paths import get_root_dir, is_package_installation++# Runtime data root:+# - source mode: repository root+# - package mode: ~/.jiuwenclaw+DATA_ROOT = get_root_dir()++# Package source root:+# - source mode: <repo>/jiuwenclaw+# - package mode: <site-packages>/jiuwenclaw+PACKAGE_DIR = Path(__file__).resolve().parent++# Frontend dev project root (contains package.json)+WEB_DEV_DIR = PACKAGE_DIR / "web"+++def _build_commands(mode: str) -> list[tuple[str, list[str], Path]]:+ python_cmd = sys.executable+ commands: list[tuple[str, list[str], Path]] = []++ # Always launch package modules so source/package layouts behave the same.+ if mode in ("all", "app", "dev"):+ commands.append(("app", [python_cmd, "-m", "jiuwenclaw.app"], DATA_ROOT))+ if mode == "all":+ commands.append(("web", [python_cmd, "-m", "jiuwenclaw.app_web"], DATA_ROOT))+ elif mode == "web":+ commands.append(("web", [python_cmd, "-m", "jiuwenclaw.app_web"], DATA_ROOT))+ elif mode == "dev":+ package_json = WEB_DEV_DIR / "package.json"+ if is_package_installation() and not package_json.exists():+ raise RuntimeError(+ "dev mode is unavailable in package installation; "+ "please run app/web mode, or use source checkout for frontend dev."+ )+ commands.append(("web-dev", ["npm", "run", "dev"], WEB_DEV_DIR))+ return commands+++def _start_process(name: str, cmd: list[str], cwd: Path) -> subprocess.Popen[bytes]:+ print(f"[start_services] starting {name}: {' '.join(cmd)} (cwd={cwd})")+ return subprocess.Popen(cmd, cwd=str(cwd))+++def _terminate_processes(processes: dict[str, subprocess.Popen[bytes]]) -> None:+ for name, proc in processes.items():+ if proc.poll() is None:+ print(f"[start_services] terminating {name} (pid={proc.pid})")+ proc.terminate()++ deadline = time.time() + 8+ while time.time() < deadline:+ if all(proc.poll() is not None for proc in processes.values()):+ return+ time.sleep(0.2)++ for name, proc in processes.items():+ if proc.poll() is None:+ print(f"[start_services] killing {name} (pid={proc.pid})")+ proc.kill()+++def _run(mode: str) -> int:+ commands = _build_commands(mode)+ if not commands:+ print(f"[start_services] no commands to run for mode: {mode}")+ return 2++ processes: dict[str, subprocess.Popen[bytes]] = {}+ try:+ for name, cmd, cwd in commands:+ processes[name] = _start_process(name, cmd, cwd)++ while True:+ for name, proc in processes.items():+ code = proc.poll()+ if code is not None:+ print(f"[start_services] {name} exited with code {code}")+ return code+ time.sleep(0.5)+ except KeyboardInterrupt:+ print("\n[start_services] keyboard interrupt received, shutting down...")+ return 130+ finally:+ _terminate_processes(processes)+++def _parse_args() -> argparse.Namespace:+ parser = argparse.ArgumentParser(+ description="Launch JiuwenClaw services (frontend/backend).",+ )+ parser.add_argument(+ "mode",+ nargs="?",+ default="all",+ choices=["all", "web", "app", "dev"],+ help="Start mode: all (default), web, app, or dev.",+ )+ return parser.parse_args()+++def main() -> None:+ signal.signal(signal.SIGTERM, signal.default_int_handler)+ args = _parse_args()+ exit_code = _run(args.mode)+ raise SystemExit(exit_code)+++if __name__ == "__main__":+ main()diff --git a/jiuwenclaw/web/README.md b/jiuwenclaw/web/README.mdnew file mode 100644index 0000000000..95311b2bb9--- /dev/null+++ b/jiuwenclaw/web/README.md@@ -0,0 +1,275 @@+# OpenJiuwen Web 前端++基于 React + TypeScript + Tailwind CSS 构建的 AI 编程助手 Web 界面,设计风格参考 JiuwenClaw。++## 功能特性++### 已实现功能++#### 💬 聊天交互+- **实时对话**:WebSocket 双向通信,支持流式输出+- **Markdown 渲染**:支持代码高亮、列表、链接等格式+- **思考动画**:AI 思考时显示动态指示器+- **消息历史**:显示用户和助手的对话记录++#### 🛠 工具调用+- **工具执行可视化**:显示 AI 调用的工具名称和参数+- **执行结果展示**:显示工具执行成功/失败状态和返回结果+- **可用工具列表**:右侧面板显示当前可用的工具++#### 📋 任务管理+- **Todo 列表**:显示 AI 创建的任务列表+- **状态分组**:按进行中、待处理、已完成分组显示+- **实时更新**:任务状态变化实时同步++#### 📂 会话管理+- **会话列表**:侧边栏显示历史会话+- **会话切换**:点击切换不同会话+- **会话删除**:悬停显示删除按钮,支持删除会话+- **会话持久化**:刷新页面自动恢复上次会话++#### ⚙️ 模式切换+- **BUILD 模式**:默认编码模式+- **PLAN 模式**:规划模式+- **REVIEW 模式**:审查模式++#### 🎨 主题支持+- **浅色主题**:默认,蓝色基调+- **深色主题**:深色背景,优化蓝色可见度+- **系统跟随**:可选跟随系统主题++#### ⏯ 流程控制+- **暂停/继续**:暂停和恢复 AI 处理+- **中断**:中断当前任务,可附加新指令++#### 🎤 语音交互+- **语音输入**:点击麦克风按钮进行语音输入(STT)+- **语音朗读**:鼠标悬停在 AI 回复上显示朗读按钮(TTS)+- **打断演示**:语音输入时可随时打断 AI 处理++## 技术栈++- **框架**:React 18 + TypeScript+- **样式**:Tailwind CSS + CSS Variables+- **状态管理**:Zustand+- **构建工具**:Vite+- **通信**:WebSocket + REST API++## 快速开始++### 环境要求++- Node.js 18++- npm 或 pnpm++### 安装依赖++```bash+cd jiuwenclaw/web+npm install+```++### 配置后端地址++编辑 `vite.config.ts` 中的 proxy 配置:++```typescript+proxy: {+ '/api': {+ target: 'http://127.0.0.1:19000', // 修改为你的后端地址+ changeOrigin: true,+ },+ '/ws': {+ target: 'http://127.0.0.1:19000', // 修改为你的后端地址+ ws: true,+ changeOrigin: true,+ },+}+```++### 启动开发服务器++```bash+npm run dev+```++访问 http://localhost:5173++### 启动后端++```bash+cd jiuwenclaw+PORT=19000 python -m jiuwenclaw.api.app+```++## 后端 API 要求++前端依赖以下后端接口:++### REST API++| 端点 | 方法 | 说明 |+|------|------|------|+| `/api/config` | GET | 获取服务配置(provider, model 等) |+| `/api/sessions` | GET | 获取会话列表 |+| `/api/sessions/:id` | DELETE | 删除会话 |++### WebSocket++连接地址:`/ws`++说明:+- 前端当前通过统一 WS 端点进行 RPC 通信(`req/res/event`)+- `session_id` 通过请求体 `params.session_id` 传递,不在 URL 路径中传递+- `provider` 默认由后端配置决定;仅在需要覆盖后端默认配置时,才通过 query 传递++#### 客户端 → 服务端消息++统一请求帧(示例):++```json+{+ "type": "req",+ "id": "req_xxx",+ "method": "chat.send",+ "params": {+ "session_id": "sess_xxx",+ "content": "hello"+ }+}+```++常用 `method`:++| method | 说明 |+|------|------|+| `chat.send` | 发送聊天消息 |+| `chat.interrupt` | 中断/暂停任务 |+| `chat.resume` | 恢复任务 |+| `chat.user_answer` | 提交用户问答结果 |+| `session.list` | 获取会话列表 |+| `config.get` | 获取服务配置 |++#### 服务端 → 客户端消息++请求响应帧(`res`):++```json+{+ "type": "res",+ "id": "req_xxx",+ "ok": true,+ "payload": {}+}+```++事件推送帧(`event`):++```json+{+ "type": "event",+ "event": "chat.delta",+ "payload": {+ "session_id": "sess_xxx"+ }+}+```++常见事件:+- `connection.ack`+- `chat.delta`+- `chat.final`+- `chat.tool_call`+- `chat.tool_result`+- `todo.updated`+- `chat.processing_status`+- `chat.interrupt_result`+- `chat.subtask_update`+- `chat.ask_user_question`++## Dev 模式 WS 日志++`npm run dev` 时,前端会把 `/ws` 的请求与响应写入本地日志文件,用于排查通信问题:++- 日志文件:`jiuwenclaw/web/logs/ws-dev.log`+- 每行一条 JSON(JSONL)+- 记录方向:+ - `payload.direction = "outgoing"`:前端发送的 `req`+ - `payload.direction = "incoming"`:后端返回的 `res/event`+ - `payload.direction = "lifecycle"`:连接生命周期(open/error/close)++示例:++```json+{"ts":"2026-02-12T08:10:05.120Z","payload":{"direction":"outgoing","messageType":"req","data":{"type":"req","id":"req_xxx","method":"chat.send","params":{"session_id":"sess_001","content":"你好"}},"at":"2026-02-12T08:10:05.119Z"}}+{"ts":"2026-02-12T08:10:05.150Z","payload":{"direction":"incoming","messageType":"res","data":{"type":"res","id":"req_xxx","ok":true,"payload":{"accepted":true}},"at":"2026-02-12T08:10:05.149Z"}}+{"ts":"2026-02-12T08:10:05.300Z","payload":{"direction":"incoming","messageType":"event","data":{"type":"event","event":"chat.delta","payload":{"session_id":"sess_001","content":"..."}},"at":"2026-02-12T08:10:05.299Z"}}+```++若只看到 `lifecycle error/close (code=1006)`,通常表示后端未启动或 WS 端口不可达。++## 项目结构++```+jiuwenclaw/web/+├── public/+│ └── logo.png # 应用 Logo+├── src/+│ ├── components/+│ │ ├── ChatPanel/ # 聊天面板+│ │ ├── SessionSidebar/# 会话侧边栏+│ │ ├── StatusBar/ # 状态栏+│ │ ├── TodoList/ # 任务列表+│ │ └── ToolPanel/ # 工具面板+│ ├── hooks/+│ │ └── useWebSocket.ts# WebSocket Hook+│ ├── stores/+│ │ ├── chatStore.ts # 聊天状态+│ │ ├── sessionStore.ts# 会话状态+│ │ └── todoStore.ts # Todo 状态+│ ├── types/ # TypeScript 类型定义+│ ├── utils/ # 工具函数+│ ├── App.tsx # 主应用组件+│ ├── index.css # 全局样式 + CSS 变量+│ └── main.tsx # 入口文件+├── index.html+├── tailwind.config.js+├── vite.config.ts+└── package.json+```++### 建议优先实现++1. **侧边栏详情面板** - 查看工具调用的完整输出+2. **聊天附件** - 支持上传文件+3. **Config 配置** - 可视化配置编辑+4. **Logs 日志** - 调试和问题排查必备+5. **Exec Approval** - 安全相关,防止危险命令执行++## 自定义配置++### 修改品牌++1. 替换 `public/logo.png`+2. 修改 `index.html` 中的 `<title>`+3. 修改 `src/App.tsx` 中的品牌文字++### 修改主题颜色++编辑 `src/index.css` 中的 CSS 变量:++```css+:root {+ --accent: #60a5fa; /* 深色模式主色 */+ --accent-hover: #93c5fd; /* 悬停色 */+}++:root[data-theme="light"] {+ --accent: #2563eb; /* 浅色模式主色 */+ --accent-hover: #3b82f6; /* 悬停色 */+}+```++## License++MITdiff --git a/jiuwenclaw/web/README_en.md b/jiuwenclaw/web/README_en.mdnew file mode 100644index 0000000000..23e5ec6993--- /dev/null+++ b/jiuwenclaw/web/README_en.md@@ -0,0 +1,267 @@+# OpenJiuwen Web Frontend++AI coding assistant web UI built with React + TypeScript + Tailwind CSS, with design inspired by JiuwenClaw.++## Features++### Implemented++#### 💬 Chat+- **Real-time conversation**: WebSocket bidirectional communication with streaming output+- **Markdown rendering**: Code highlighting, lists, links, etc.+- **Thinking indicator**: Animated indicator while the AI is thinking+- **Message history**: User and assistant conversation history++#### 🛠 Tool Calls+- **Tool execution display**: Shows tool names and parameters invoked by the AI+- **Execution results**: Success/failure status and return values+- **Available tools list**: Right panel lists currently available tools++#### 📋 Task Management+- **Todo list**: Displays tasks created by the AI+- **Status grouping**: Grouped by in progress, pending, completed+- **Live updates**: Task status changes sync in real time++#### 📂 Session Management+- **Session list**: Sidebar shows past sessions+- **Switch sessions**: Click to switch between sessions+- **Delete session**: Hover to show delete button+- **Session persistence**: Last session restored on page refresh++#### ⚙️ Mode Switching+- **BUILD mode**: Default coding mode+- **PLAN mode**: Planning mode+- **REVIEW mode**: Review mode++#### 🎨 Theme+- **Light theme**: Default, blue accent+- **Dark theme**: Dark background, optimized blue visibility+- **System follow**: Optional system theme sync++#### ⏯ Flow Control+- **Pause/Resume**: Pause and resume AI processing+- **Interrupt**: Stop current task, optionally with new instructions++#### 🎤 Voice+- **Voice input**: Click mic button for speech input (STT)+- **Voice read-out**: Hover on AI reply to show read-aloud button (TTS)+- **Barge-in**: Interrupt AI while speaking++## Tech Stack++- **Framework**: React 18 + TypeScript+- **Styling**: Tailwind CSS + CSS Variables+- **State**: Zustand+- **Build**: Vite+- **Communication**: WebSocket + REST API++## Quick Start++### Requirements++- Node.js 18++- npm or pnpm++### Install Dependencies++```bash+cd jiuwenclaw/web+npm install+```++### Configure Backend URL++Edit the proxy in `vite.config.ts`:++```typescript+proxy: {+ '/api': {+ target: 'http://127.0.0.1:19000', // Your backend URL+ changeOrigin: true,+ },+ '/ws': {+ target: 'http://127.0.0.1:19000', // Your backend URL+ ws: true,+ changeOrigin: true,+ },+}+```++### Start Dev Server++```bash+npm run dev+```++Open http://localhost:5173++### Start Backend++```bash+cd jiuwenclaw+PORT=19000 python -m jiuwenclaw.api.app+```++## Backend API Requirements++The frontend expects the following backend APIs:++### REST API++| Endpoint | Method | Description |+|----------|--------|-------------|+| `/api/config` | GET | Get service config (provider, model, etc.) |+| `/api/sessions` | GET | Get session list |+| `/api/sessions/:id` | DELETE | Delete session |++### WebSocket++Endpoint: `/ws`++Notes:+- The frontend uses a single WS endpoint for RPC (`req` / `res` / `event`)+- `session_id` is sent in the request body as `params.session_id`, not in the URL path+- `provider` is determined by backend config by default; pass via query only when overriding++#### Client → Server++Unified request frame (example):++```json+{+ "type": "req",+ "id": "req_xxx",+ "method": "chat.send",+ "params": {+ "session_id": "sess_xxx",+ "content": "hello"+ }+}+```++Common `method` values:++| method | Description |+|--------|-------------|+| `chat.send` | Send chat message |+| `chat.interrupt` | Interrupt/pause task |+| `chat.resume` | Resume task |+| `chat.user_answer` | Submit user Q&A result |+| `session.list` | Get session list |+| `config.get` | Get service config |++#### Server → Client++Response frame (`res`):++```json+{+ "type": "res",+ "id": "req_xxx",+ "ok": true,+ "payload": {}+}+```++Event frame (`event`):++```json+{+ "type": "event",+ "event": "chat.delta",+ "payload": {+ "session_id": "sess_xxx"+ }+}+```++Common events:+- `connection.ack`+- `chat.delta`+- `chat.final`+- `chat.tool_call`+- `chat.tool_result`+- `todo.updated`+- `chat.processing_status`+- `chat.interrupt_result`+- `chat.subtask_update`+- `chat.ask_user_question`++## Dev Mode WS Logging++When running `npm run dev`, the frontend writes `/ws` requests and responses to a local log file for debugging:++- Log file: `jiuwenclaw/web/logs/ws-dev.log`+- One JSON object per line (JSONL)+- Directions:+ - `payload.direction = "outgoing"`: Frontend `req` messages+ - `payload.direction = "incoming"`: Backend `res` / `event` messages+ - `payload.direction = "lifecycle"`: Connection lifecycle (open/error/close)++Example:++```json+{"ts":"2026-02-12T08:10:05.120Z","payload":{"direction":"outgoing","messageType":"req","data":{"type":"req","id":"req_xxx","method":"chat.send","params":{"session_id":"sess_001","content":"你好"}},"at":"2026-02-12T08:10:05.119Z"}}+{"ts":"2026-02-12T08:10:05.150Z","payload":{"direction":"incoming","messageType":"res","data":{"type":"res","id":"req_xxx","ok":true,"payload":{"accepted":true}},"at":"2026-02-12T08:10:05.149Z"}}+{"ts":"2026-02-12T08:10:05.300Z","payload":{"direction":"incoming","messageType":"event","data":{"type":"event","event":"chat.delta","payload":{"session_id":"sess_001","content":"..."}},"at":"2026-02-12T08:10:05.299Z"}}+```++If you only see `lifecycle error/close (code=1006)`, the backend is likely not running or the WS port is unreachable.++## Project Structure++```+jiuwenclaw/web/+├── public/+│ └── logo.png # App logo+├── src/+│ ├── components/+│ │ ├── ChatPanel/ # Chat panel+│ │ ├── SessionSidebar/# Session sidebar+│ │ ├── StatusBar/ # Status bar+│ │ ├── TodoList/ # Todo list+│ │ └── ToolPanel/ # Tool panel+│ ├── hooks/+│ │ └── useWebSocket.ts# WebSocket hook+│ ├── stores/+│ │ ├── chatStore.ts # Chat state+│ │ ├── sessionStore.ts# Session state+│ │ └── todoStore.ts # Todo state+│ ├── types/ # TypeScript types+│ ├── utils/ # Utilities+│ ├── App.tsx # Main app+│ ├── index.css # Global styles + CSS variables+│ └── main.tsx # Entry+├── index.html+├── tailwind.config.js+├── vite.config.ts+└── package.json+```++## Customization++### Branding++1. Replace `public/logo.png`+2. Change `<title>` in `index.html`+3. Change brand text in `src/App.tsx`++### Theme Colors++Edit CSS variables in `src/index.css`:++```css+:root {+ --accent: #60a5fa; /* Dark mode accent */+ --accent-hover: #93c5fd; /* Hover */+}++:root[data-theme="light"] {+ --accent: #2563eb; /* Light mode accent */+ --accent-hover: #3b82f6; /* Hover */+}+```++## License++MITdiff --git a/jiuwenclaw/web/index.html b/jiuwenclaw/web/index.htmlnew file mode 100644index 0000000000..70af2b19a5--- /dev/null+++ b/jiuwenclaw/web/index.html@@ -0,0 +1,25 @@+<!DOCTYPE html>+<html lang="zh-CN">+ <head>+ <meta charset="UTF-8" />+ <link rel="icon" type="image/png" href="/logo.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <meta name="theme-color" content="#fafafa" />+ <title>JiuwenClaw</title>+ <link rel="preconnect" href="https://fonts.googleapis.com" />+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ <script>+ // Theme initialization - default to light+ (function() {+ const theme = localStorage.getItem('theme') || 'light';+ if (theme === 'light') {+ document.documentElement.setAttribute('data-theme', 'light');+ }+ })();+ </script>+ </body>+</html>diff --git a/jiuwenclaw/web/package-lock.json b/jiuwenclaw/web/package-lock.jsonnew file mode 100644index 0000000000..eaae7f29dc--- /dev/null+++ b/jiuwenclaw/web/package-lock.json@@ -0,0 +1,5652 @@+{+ "name": "openjiuwen-web",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "openjiuwen-web",+ "version": "0.1.0",+ "dependencies": {+ "@tailwindcss/typography": "^0.5.19",+ "clsx": "^2.1.0",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "react-markdown": "^10.1.0",+ "remark-gfm": "^4.0.1",+ "zustand": "^4.5.0"+ },+ "devDependencies": {+ "@types/node": "^25.2.3",+ "@types/react": "^18.2.0",+ "@types/react-dom": "^18.2.0",+ "@typescript-eslint/eslint-plugin": "^6.0.0",+ "@typescript-eslint/parser": "^6.0.0",+ "@vitejs/plugin-react": "^4.2.0",+ "autoprefixer": "^10.4.0",+ "eslint": "^8.45.0",+ "eslint-plugin-react-hooks": "^4.6.0",+ "eslint-plugin-react-refresh": "^0.4.0",+ "postcss": "^8.4.0",+ "tailwindcss": "^3.4.0",+ "typescript": "^5.3.0",+ "vite": "^5.0.0"+ }+ },+ "node_modules/@alloc/quick-lru": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@babel/code-frame": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",+ "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.28.5",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/compat-data": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",+ "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/core": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",+ "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-module-transforms": "^7.28.6",+ "@babel/helpers": "^7.28.6",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/traverse": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "node_modules/@babel/core/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/@babel/generator": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.0.tgz",+ "integrity": "sha512-vSH118/wwM/pLR38g/Sgk05sNtro6TlTJKuiMXDaZqPUfjTFcudpCOt00IhOfj+1BFAX+UFAlzCU+6WXr3GLFQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",+ "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.28.6",+ "@babel/helper-validator-option": "^7.27.1",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-compilation-targets/node_modules/semver": {+ "version": "6.3.1",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/@babel/helper-globals": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-imports": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",+ "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-module-transforms": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",+ "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.28.6",+ "@babel/helper-validator-identifier": "^7.28.5",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "node_modules/@babel/helper-plugin-utils": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",+ "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.28.5",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-option": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helpers": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz",+ "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz",+ "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.0"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-self": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",+ "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/plugin-transform-react-jsx-source": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",+ "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "node_modules/@babel/template": {+ "version": "7.28.6",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",+ "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.28.6",+ "@babel/parser": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/traverse": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",+ "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-globals": "^7.28.0",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.29.0",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",+ "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@eslint-community/eslint-utils": {+ "version": "4.9.1",+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",+ "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eslint-visitor-keys": "^3.4.3"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ },+ "peerDependencies": {+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"+ }+ },+ "node_modules/@eslint-community/regexpp": {+ "version": "4.12.2",+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"+ }+ },+ "node_modules/@eslint/eslintrc": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",+ "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ajv": "^6.12.4",+ "debug": "^4.3.2",+ "espree": "^9.6.0",+ "globals": "^13.19.0",+ "ignore": "^5.2.0",+ "import-fresh": "^3.2.1",+ "js-yaml": "^4.1.0",+ "minimatch": "^3.1.2",+ "strip-json-comments": "^3.1.1"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/@eslint/eslintrc/node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/@eslint/eslintrc/node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/@eslint/js": {+ "version": "8.57.1",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",+ "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ }+ },+ "node_modules/@humanwhocodes/config-array": {+ "version": "0.13.0",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",+ "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",+ "deprecated": "Use @eslint/config-array instead",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@humanwhocodes/object-schema": "^2.0.3",+ "debug": "^4.3.1",+ "minimatch": "^3.0.5"+ },+ "engines": {+ "node": ">=10.10.0"+ }+ },+ "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/@humanwhocodes/config-array/node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.22"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@humanwhocodes/object-schema": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",+ "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",+ "deprecated": "Use @eslint/object-schema instead",+ "dev": true,+ "license": "BSD-3-Clause"+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-beta.27",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.57.1.tgz",+ "integrity": "sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.57.1.tgz",+ "integrity": "sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.57.1.tgz",+ "integrity": "sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.57.1.tgz",+ "integrity": "sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.57.1.tgz",+ "integrity": "sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.57.1.tgz",+ "integrity": "sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.57.1.tgz",+ "integrity": "sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.57.1.tgz",+ "integrity": "sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.57.1.tgz",+ "integrity": "sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.57.1.tgz",+ "integrity": "sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.57.1.tgz",+ "integrity": "sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.57.1.tgz",+ "integrity": "sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.57.1.tgz",+ "integrity": "sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.57.1.tgz",+ "integrity": "sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.57.1.tgz",+ "integrity": "sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.57.1.tgz",+ "integrity": "sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.57.1.tgz",+ "integrity": "sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.57.1.tgz",+ "integrity": "sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.57.1.tgz",+ "integrity": "sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.57.1.tgz",+ "integrity": "sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.57.1.tgz",+ "integrity": "sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.57.1.tgz",+ "integrity": "sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.57.1.tgz",+ "integrity": "sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.57.1.tgz",+ "integrity": "sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.57.1.tgz",+ "integrity": "sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@tailwindcss/typography": {+ "version": "0.5.19",+ "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.19.tgz",+ "integrity": "sha512-w31dd8HOx3k9vPtcQh5QHP9GwKcgbMp87j58qi6xgiBnFFtKEAgCWnDw4qUT8aHwkCp8bKvb/KGKWWHedP0AAg==",+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "6.0.10"+ },+ "peerDependencies": {+ "tailwindcss": ">=3.0.0 || insiders || >=4.0.0-alpha.20 || >=4.0.0-beta.1"+ }+ },+ "node_modules/@tailwindcss/typography/node_modules/postcss-selector-parser": {+ "version": "6.0.10",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz",+ "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==",+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/@types/babel__core": {+ "version": "7.20.5",+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.20.7",+ "@babel/types": "^7.20.7",+ "@types/babel__generator": "*",+ "@types/babel__template": "*",+ "@types/babel__traverse": "*"+ }+ },+ "node_modules/@types/babel__generator": {+ "version": "7.27.0",+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__template": {+ "version": "7.4.4",+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.1.0",+ "@babel/types": "^7.0.0"+ }+ },+ "node_modules/@types/babel__traverse": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.28.2"+ }+ },+ "node_modules/@types/debug": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",+ "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==",+ "license": "MIT",+ "dependencies": {+ "@types/ms": "*"+ }+ },+ "node_modules/@types/estree": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",+ "license": "MIT"+ },+ "node_modules/@types/estree-jsx": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz",+ "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "*"+ }+ },+ "node_modules/@types/hast": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",+ "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/json-schema": {+ "version": "7.0.15",+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/mdast": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",+ "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/ms": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "25.2.3",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-25.2.3.tgz",+ "integrity": "sha512-m0jEgYlYz+mDJZ2+F4v8D1AyQb+QzsNqRuI7xg1VQX/KlKS0qT9r1Mo16yo5F/MtifXFgaofIFsdFMox2SxIbQ==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "undici-types": "~7.16.0"+ }+ },+ "node_modules/@types/prop-types": {+ "version": "15.7.15",+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",+ "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "18.3.27",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.27.tgz",+ "integrity": "sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@types/prop-types": "*",+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "18.3.7",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",+ "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "^18.0.0"+ }+ },+ "node_modules/@types/semver": {+ "version": "7.7.1",+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.7.1.tgz",+ "integrity": "sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/unist": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",+ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",+ "license": "MIT"+ },+ "node_modules/@typescript-eslint/eslint-plugin": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz",+ "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/regexpp": "^4.5.1",+ "@typescript-eslint/scope-manager": "6.21.0",+ "@typescript-eslint/type-utils": "6.21.0",+ "@typescript-eslint/utils": "6.21.0",+ "@typescript-eslint/visitor-keys": "6.21.0",+ "debug": "^4.3.4",+ "graphemer": "^1.4.0",+ "ignore": "^5.2.4",+ "natural-compare": "^1.4.0",+ "semver": "^7.5.4",+ "ts-api-utils": "^1.0.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha",+ "eslint": "^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/parser": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz",+ "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "peer": true,+ "dependencies": {+ "@typescript-eslint/scope-manager": "6.21.0",+ "@typescript-eslint/types": "6.21.0",+ "@typescript-eslint/typescript-estree": "6.21.0",+ "@typescript-eslint/visitor-keys": "6.21.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/scope-manager": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz",+ "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "6.21.0",+ "@typescript-eslint/visitor-keys": "6.21.0"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/type-utils": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz",+ "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/typescript-estree": "6.21.0",+ "@typescript-eslint/utils": "6.21.0",+ "debug": "^4.3.4",+ "ts-api-utils": "^1.0.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^7.0.0 || ^8.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz",+ "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz",+ "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "@typescript-eslint/types": "6.21.0",+ "@typescript-eslint/visitor-keys": "6.21.0",+ "debug": "^4.3.4",+ "globby": "^11.1.0",+ "is-glob": "^4.0.3",+ "minimatch": "9.0.3",+ "semver": "^7.5.4",+ "ts-api-utils": "^1.0.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/utils": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz",+ "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.4.0",+ "@types/json-schema": "^7.0.12",+ "@types/semver": "^7.5.0",+ "@typescript-eslint/scope-manager": "6.21.0",+ "@typescript-eslint/types": "6.21.0",+ "@typescript-eslint/typescript-estree": "6.21.0",+ "semver": "^7.5.4"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz",+ "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "6.21.0",+ "eslint-visitor-keys": "^3.4.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@ungap/structured-clone": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",+ "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",+ "license": "ISC"+ },+ "node_modules/@vitejs/plugin-react": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.28.0",+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",+ "@rolldown/pluginutils": "1.0.0-beta.27",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.17.0"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"+ }+ },+ "node_modules/acorn": {+ "version": "8.15.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-jsx": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/ajv": {+ "version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/any-promise": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",+ "license": "MIT"+ },+ "node_modules/anymatch": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "license": "ISC",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/arg": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",+ "license": "MIT"+ },+ "node_modules/argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",+ "dev": true,+ "license": "Python-2.0"+ },+ "node_modules/array-union": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/autoprefixer": {+ "version": "10.4.24",+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.24.tgz",+ "integrity": "sha512-uHZg7N9ULTVbutaIsDRoUkoS8/h3bdsmVJYZ5l3wv8Cp/6UIIoRDm90hZ+BwxUj/hGBEzLxdHNSKuFpn8WOyZw==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.28.1",+ "caniuse-lite": "^1.0.30001766",+ "fraction.js": "^5.3.4",+ "picocolors": "^1.1.1",+ "postcss-value-parser": "^4.2.0"+ },+ "bin": {+ "autoprefixer": "bin/autoprefixer"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "node_modules/bail": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",+ "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/baseline-browser-mapping": {+ "version": "2.9.19",+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz",+ "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.js"+ }+ },+ "node_modules/binary-extensions": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/brace-expansion": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/braces": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/browserslist": {+ "version": "4.28.1",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",+ "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "baseline-browser-mapping": "^2.9.0",+ "caniuse-lite": "^1.0.30001759",+ "electron-to-chromium": "^1.5.263",+ "node-releases": "^2.0.27",+ "update-browserslist-db": "^1.2.0"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "node_modules/callsites": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/camelcase-css": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001767",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001767.tgz",+ "integrity": "sha512-34+zUAMhSH+r+9eKmYG+k2Rpt8XttfE4yXAjoZvkAPs15xcYQhyBYdalJ65BzivAvGRMViEjy6oKr/S91loekQ==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/ccount": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",+ "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/chalk": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/character-entities": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",+ "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-entities-html4": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",+ "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-entities-legacy": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",+ "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-reference-invalid": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz",+ "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/chokidar": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",+ "license": "MIT",+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/chokidar/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/comma-separated-tokens": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",+ "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/commander": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/decode-named-character-reference": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",+ "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",+ "license": "MIT",+ "dependencies": {+ "character-entities": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/deep-is": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/dequal": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/devlop": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",+ "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",+ "license": "MIT",+ "dependencies": {+ "dequal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/didyoumean": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",+ "license": "Apache-2.0"+ },+ "node_modules/dir-glob": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",+ "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-type": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/dlv": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",+ "license": "MIT"+ },+ "node_modules/doctrine": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",+ "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "esutils": "^2.0.2"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/electron-to-chromium": {+ "version": "1.5.283",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.283.tgz",+ "integrity": "sha512-3vifjt1HgrGW/h76UEeny+adYApveS9dH2h3p57JYzBSXJIKUJAvtmIytDKjcSCt9xHfrNCFJ7gts6vkhuq++w==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/esbuild": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.21.5",+ "@esbuild/android-arm": "0.21.5",+ "@esbuild/android-arm64": "0.21.5",+ "@esbuild/android-x64": "0.21.5",+ "@esbuild/darwin-arm64": "0.21.5",+ "@esbuild/darwin-x64": "0.21.5",+ "@esbuild/freebsd-arm64": "0.21.5",+ "@esbuild/freebsd-x64": "0.21.5",+ "@esbuild/linux-arm": "0.21.5",+ "@esbuild/linux-arm64": "0.21.5",+ "@esbuild/linux-ia32": "0.21.5",+ "@esbuild/linux-loong64": "0.21.5",+ "@esbuild/linux-mips64el": "0.21.5",+ "@esbuild/linux-ppc64": "0.21.5",+ "@esbuild/linux-riscv64": "0.21.5",+ "@esbuild/linux-s390x": "0.21.5",+ "@esbuild/linux-x64": "0.21.5",+ "@esbuild/netbsd-x64": "0.21.5",+ "@esbuild/openbsd-x64": "0.21.5",+ "@esbuild/sunos-x64": "0.21.5",+ "@esbuild/win32-arm64": "0.21.5",+ "@esbuild/win32-ia32": "0.21.5",+ "@esbuild/win32-x64": "0.21.5"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/eslint": {+ "version": "8.57.1",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",+ "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",+ "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.2.0",+ "@eslint-community/regexpp": "^4.6.1",+ "@eslint/eslintrc": "^2.1.4",+ "@eslint/js": "8.57.1",+ "@humanwhocodes/config-array": "^0.13.0",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@nodelib/fs.walk": "^1.2.8",+ "@ungap/structured-clone": "^1.2.0",+ "ajv": "^6.12.4",+ "chalk": "^4.0.0",+ "cross-spawn": "^7.0.2",+ "debug": "^4.3.2",+ "doctrine": "^3.0.0",+ "escape-string-regexp": "^4.0.0",+ "eslint-scope": "^7.2.2",+ "eslint-visitor-keys": "^3.4.3",+ "espree": "^9.6.1",+ "esquery": "^1.4.2",+ "esutils": "^2.0.2",+ "fast-deep-equal": "^3.1.3",+ "file-entry-cache": "^6.0.1",+ "find-up": "^5.0.0",+ "glob-parent": "^6.0.2",+ "globals": "^13.19.0",+ "graphemer": "^1.4.0",+ "ignore": "^5.2.0",+ "imurmurhash": "^0.1.4",+ "is-glob": "^4.0.0",+ "is-path-inside": "^3.0.3",+ "js-yaml": "^4.1.0",+ "json-stable-stringify-without-jsonify": "^1.0.1",+ "levn": "^0.4.1",+ "lodash.merge": "^4.6.2",+ "minimatch": "^3.1.2",+ "natural-compare": "^1.4.0",+ "optionator": "^0.9.3",+ "strip-ansi": "^6.0.1",+ "text-table": "^0.2.0"+ },+ "bin": {+ "eslint": "bin/eslint.js"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint-plugin-react-hooks": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz",+ "integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0"+ }+ },+ "node_modules/eslint-plugin-react-refresh": {+ "version": "0.4.26",+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz",+ "integrity": "sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "eslint": ">=8.40"+ }+ },+ "node_modules/eslint-scope": {+ "version": "7.2.2",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",+ "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint-visitor-keys": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint/node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/eslint/node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/espree": {+ "version": "9.6.1",+ "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",+ "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "acorn": "^8.9.0",+ "acorn-jsx": "^5.3.2",+ "eslint-visitor-keys": "^3.4.1"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/esquery": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "estraverse": "^5.1.0"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/esrecurse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estraverse": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estree-util-is-identifier-name": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz",+ "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/esutils": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/extend": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",+ "license": "MIT"+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-glob": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/fast-json-stable-stringify": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-levenshtein": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fastq": {+ "version": "1.20.1",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",+ "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/file-entry-cache": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",+ "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flat-cache": "^3.0.4"+ },+ "engines": {+ "node": "^10.12.0 || >=12.0.0"+ }+ },+ "node_modules/fill-range": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/find-up": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "locate-path": "^6.0.0",+ "path-exists": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/flat-cache": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",+ "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flatted": "^3.2.9",+ "keyv": "^4.5.3",+ "rimraf": "^3.0.2"+ },+ "engines": {+ "node": "^10.12.0 || >=12.0.0"+ }+ },+ "node_modules/flatted": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",+ "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/fraction.js": {+ "version": "5.3.4",+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz",+ "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/rawify"+ }+ },+ "node_modules/fs.realpath": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",+ "deprecated": "Glob versions prior to v9 are no longer supported",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/glob/node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/glob/node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/globals": {+ "version": "13.24.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",+ "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "type-fest": "^0.20.2"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/globby": {+ "version": "11.1.0",+ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",+ "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-union": "^2.1.0",+ "dir-glob": "^3.0.1",+ "fast-glob": "^3.2.9",+ "ignore": "^5.2.0",+ "merge2": "^1.4.1",+ "slash": "^3.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/graphemer": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/hast-util-to-jsx-runtime": {+ "version": "2.3.6",+ "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz",+ "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/unist": "^3.0.0",+ "comma-separated-tokens": "^2.0.0",+ "devlop": "^1.0.0",+ "estree-util-is-identifier-name": "^3.0.0",+ "hast-util-whitespace": "^3.0.0",+ "mdast-util-mdx-expression": "^2.0.0",+ "mdast-util-mdx-jsx": "^3.0.0",+ "mdast-util-mdxjs-esm": "^2.0.0",+ "property-information": "^7.0.0",+ "space-separated-tokens": "^2.0.0",+ "style-to-js": "^1.0.0",+ "unist-util-position": "^5.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-whitespace": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",+ "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/html-url-attributes": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",+ "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/ignore": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/import-fresh": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "parent-module": "^1.0.0",+ "resolve-from": "^4.0.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/inline-style-parser": {+ "version": "0.2.7",+ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",+ "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",+ "license": "MIT"+ },+ "node_modules/is-alphabetical": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz",+ "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-alphanumerical": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz",+ "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==",+ "license": "MIT",+ "dependencies": {+ "is-alphabetical": "^2.0.0",+ "is-decimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "license": "MIT",+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.16.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-decimal": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz",+ "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-hexadecimal": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz",+ "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/is-path-inside": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",+ "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-plain-obj": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/jiti": {+ "version": "1.21.7",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",+ "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",+ "license": "MIT",+ "peer": true,+ "bin": {+ "jiti": "bin/jiti.js"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "license": "MIT"+ },+ "node_modules/js-yaml": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-schema-traverse": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-stable-stringify-without-jsonify": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json-buffer": "3.0.1"+ }+ },+ "node_modules/levn": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/lilconfig": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",+ "license": "MIT",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antonk52"+ }+ },+ "node_modules/lines-and-columns": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",+ "license": "MIT"+ },+ "node_modules/locate-path": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-locate": "^5.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/lodash.merge": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/longest-streak": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",+ "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/markdown-table": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz",+ "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-find-and-replace": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz",+ "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "escape-string-regexp": "^5.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz",+ "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/mdast-util-from-markdown": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz",+ "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark": "^4.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz",+ "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==",+ "license": "MIT",+ "dependencies": {+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-gfm-autolink-literal": "^2.0.0",+ "mdast-util-gfm-footnote": "^2.0.0",+ "mdast-util-gfm-strikethrough": "^2.0.0",+ "mdast-util-gfm-table": "^2.0.0",+ "mdast-util-gfm-task-list-item": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-autolink-literal": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz",+ "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.0.0",+ "mdast-util-find-and-replace": "^3.0.0",+ "micromark-util-character": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-footnote": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz",+ "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-strikethrough": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz",+ "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-table": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz",+ "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "markdown-table": "^3.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-task-list-item": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz",+ "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-mdx-expression": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",+ "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-mdx-jsx": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz",+ "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "parse-entities": "^4.0.0",+ "stringify-entities": "^4.0.0",+ "unist-util-stringify-position": "^4.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-mdxjs-esm": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz",+ "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-phrasing": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",+ "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-hast": {+ "version": "13.2.1",+ "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",+ "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@ungap/structured-clone": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "trim-lines": "^3.0.0",+ "unist-util-position": "^5.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-markdown": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz",+ "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "longest-streak": "^3.0.0",+ "mdast-util-phrasing": "^4.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "unist-util-visit": "^5.0.0",+ "zwitch": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-string": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",+ "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromark": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz",+ "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@types/debug": "^4.0.0",+ "debug": "^4.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-core-commonmark": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz",+ "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-factory-destination": "^2.0.0",+ "micromark-factory-label": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-factory-title": "^2.0.0",+ "micromark-factory-whitespace": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-html-tag-name": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-extension-gfm": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz",+ "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==",+ "license": "MIT",+ "dependencies": {+ "micromark-extension-gfm-autolink-literal": "^2.0.0",+ "micromark-extension-gfm-footnote": "^2.0.0",+ "micromark-extension-gfm-strikethrough": "^2.0.0",+ "micromark-extension-gfm-table": "^2.0.0",+ "micromark-extension-gfm-tagfilter": "^2.0.0",+ "micromark-extension-gfm-task-list-item": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-autolink-literal": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz",+ "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==",+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-footnote": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz",+ "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-strikethrough": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz",+ "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-table": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz",+ "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-tagfilter": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz",+ "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==",+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-task-list-item": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz",+ "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-factory-destination": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",+ "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-label": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",+ "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-space": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz",+ "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-title": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",+ "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-whitespace": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",+ "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-character": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",+ "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-chunked": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",+ "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-classify-character": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",+ "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-combine-extensions": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",+ "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-decode-numeric-character-reference": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",+ "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-decode-string": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",+ "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-encode": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",+ "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-html-tag-name": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",+ "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-normalize-identifier": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",+ "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-resolve-all": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",+ "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-sanitize-uri": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",+ "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-subtokenize": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",+ "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-symbol": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",+ "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-types": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",+ "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/minimatch": {+ "version": "9.0.3",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",+ "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"+ },+ "node_modules/mz": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0",+ "object-assign": "^4.0.1",+ "thenify-all": "^1.0.0"+ }+ },+ "node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/natural-compare": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/node-releases": {+ "version": "2.0.27",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz",+ "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-hash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/optionator": {+ "version": "0.9.4",+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "deep-is": "^0.1.3",+ "fast-levenshtein": "^2.0.6",+ "levn": "^0.4.1",+ "prelude-ls": "^1.2.1",+ "type-check": "^0.4.0",+ "word-wrap": "^1.2.5"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "yocto-queue": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-locate": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-limit": "^3.0.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/parent-module": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "callsites": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/parse-entities": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz",+ "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^2.0.0",+ "character-entities-legacy": "^3.0.0",+ "character-reference-invalid": "^2.0.0",+ "decode-named-character-reference": "^1.0.0",+ "is-alphanumerical": "^2.0.0",+ "is-decimal": "^2.0.0",+ "is-hexadecimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/parse-entities/node_modules/@types/unist": {+ "version": "2.0.11",+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",+ "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",+ "license": "MIT"+ },+ "node_modules/path-exists": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "license": "MIT"+ },+ "node_modules/path-type": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/pify": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/pirates": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.6",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "nanoid": "^3.3.11",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-import": {+ "version": "15.1.0",+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.0.0",+ "read-cache": "^1.0.0",+ "resolve": "^1.1.7"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "postcss": "^8.0.0"+ }+ },+ "node_modules/postcss-js": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",+ "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "camelcase-css": "^2.0.1"+ },+ "engines": {+ "node": "^12 || ^14 || >= 16"+ },+ "peerDependencies": {+ "postcss": "^8.4.21"+ }+ },+ "node_modules/postcss-load-config": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",+ "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "lilconfig": "^3.1.1"+ },+ "engines": {+ "node": ">= 18"+ },+ "peerDependencies": {+ "jiti": ">=1.21.0",+ "postcss": ">=8.0.9",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "jiti": {+ "optional": true+ },+ "postcss": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/postcss-nested": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",+ "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "^6.1.1"+ },+ "engines": {+ "node": ">=12.0"+ },+ "peerDependencies": {+ "postcss": "^8.2.14"+ }+ },+ "node_modules/postcss-selector-parser": {+ "version": "6.1.2",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",+ "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-value-parser": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",+ "license": "MIT"+ },+ "node_modules/prelude-ls": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/property-information": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz",+ "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/react": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "loose-envify": "^1.1.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-dom": {+ "version": "18.3.1",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0",+ "scheduler": "^0.23.2"+ },+ "peerDependencies": {+ "react": "^18.3.1"+ }+ },+ "node_modules/react-markdown": {+ "version": "10.1.0",+ "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",+ "integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "hast-util-to-jsx-runtime": "^2.0.0",+ "html-url-attributes": "^3.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "remark-parse": "^11.0.0",+ "remark-rehype": "^11.0.0",+ "unified": "^11.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ },+ "peerDependencies": {+ "@types/react": ">=18",+ "react": ">=18"+ }+ },+ "node_modules/react-refresh": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/read-cache": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",+ "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",+ "license": "MIT",+ "dependencies": {+ "pify": "^2.3.0"+ }+ },+ "node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "license": "MIT",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/remark-gfm": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz",+ "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-gfm": "^3.0.0",+ "micromark-extension-gfm": "^3.0.0",+ "remark-parse": "^11.0.0",+ "remark-stringify": "^11.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-parse": {+ "version": "11.0.0",+ "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",+ "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-rehype": {+ "version": "11.1.2",+ "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz",+ "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "unified": "^11.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-stringify": {+ "version": "11.0.0",+ "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz",+ "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.11",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",+ "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.16.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/resolve-from": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/reusify": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "deprecated": "Rimraf versions prior to v4 are no longer supported",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/rollup": {+ "version": "4.57.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.57.1.tgz",+ "integrity": "sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.8"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.57.1",+ "@rollup/rollup-android-arm64": "4.57.1",+ "@rollup/rollup-darwin-arm64": "4.57.1",+ "@rollup/rollup-darwin-x64": "4.57.1",+ "@rollup/rollup-freebsd-arm64": "4.57.1",+ "@rollup/rollup-freebsd-x64": "4.57.1",+ "@rollup/rollup-linux-arm-gnueabihf": "4.57.1",+ "@rollup/rollup-linux-arm-musleabihf": "4.57.1",+ "@rollup/rollup-linux-arm64-gnu": "4.57.1",+ "@rollup/rollup-linux-arm64-musl": "4.57.1",+ "@rollup/rollup-linux-loong64-gnu": "4.57.1",+ "@rollup/rollup-linux-loong64-musl": "4.57.1",+ "@rollup/rollup-linux-ppc64-gnu": "4.57.1",+ "@rollup/rollup-linux-ppc64-musl": "4.57.1",+ "@rollup/rollup-linux-riscv64-gnu": "4.57.1",+ "@rollup/rollup-linux-riscv64-musl": "4.57.1",+ "@rollup/rollup-linux-s390x-gnu": "4.57.1",+ "@rollup/rollup-linux-x64-gnu": "4.57.1",+ "@rollup/rollup-linux-x64-musl": "4.57.1",+ "@rollup/rollup-openbsd-x64": "4.57.1",+ "@rollup/rollup-openharmony-arm64": "4.57.1",+ "@rollup/rollup-win32-arm64-msvc": "4.57.1",+ "@rollup/rollup-win32-ia32-msvc": "4.57.1",+ "@rollup/rollup-win32-x64-gnu": "4.57.1",+ "@rollup/rollup-win32-x64-msvc": "4.57.1",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "queue-microtask": "^1.2.2"+ }+ },+ "node_modules/scheduler": {+ "version": "0.23.2",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ }+ },+ "node_modules/semver": {+ "version": "7.7.3",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",+ "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/slash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/space-separated-tokens": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",+ "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/stringify-entities": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",+ "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",+ "license": "MIT",+ "dependencies": {+ "character-entities-html4": "^2.0.0",+ "character-entities-legacy": "^3.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-json-comments": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/style-to-js": {+ "version": "1.1.21",+ "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz",+ "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==",+ "license": "MIT",+ "dependencies": {+ "style-to-object": "1.0.14"+ }+ },+ "node_modules/style-to-object": {+ "version": "1.0.14",+ "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz",+ "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",+ "license": "MIT",+ "dependencies": {+ "inline-style-parser": "0.2.7"+ }+ },+ "node_modules/sucrase": {+ "version": "3.35.1",+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",+ "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.2",+ "commander": "^4.0.0",+ "lines-and-columns": "^1.1.6",+ "mz": "^2.7.0",+ "pirates": "^4.0.1",+ "tinyglobby": "^0.2.11",+ "ts-interface-checker": "^0.1.9"+ },+ "bin": {+ "sucrase": "bin/sucrase",+ "sucrase-node": "bin/sucrase-node"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/supports-color": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/tailwindcss": {+ "version": "3.4.19",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",+ "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@alloc/quick-lru": "^5.2.0",+ "arg": "^5.0.2",+ "chokidar": "^3.6.0",+ "didyoumean": "^1.2.2",+ "dlv": "^1.1.3",+ "fast-glob": "^3.3.2",+ "glob-parent": "^6.0.2",+ "is-glob": "^4.0.3",+ "jiti": "^1.21.7",+ "lilconfig": "^3.1.3",+ "micromatch": "^4.0.8",+ "normalize-path": "^3.0.0",+ "object-hash": "^3.0.0",+ "picocolors": "^1.1.1",+ "postcss": "^8.4.47",+ "postcss-import": "^15.1.0",+ "postcss-js": "^4.0.1",+ "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",+ "postcss-nested": "^6.2.0",+ "postcss-selector-parser": "^6.1.2",+ "resolve": "^1.22.8",+ "sucrase": "^3.35.0"+ },+ "bin": {+ "tailwind": "lib/cli.js",+ "tailwindcss": "lib/cli.js"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/text-table": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",+ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/thenify": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0"+ }+ },+ "node_modules/thenify-all": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",+ "license": "MIT",+ "dependencies": {+ "thenify": ">= 3.1.0 < 4"+ },+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/tinyglobby": {+ "version": "0.2.15",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/tinyglobby/node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/tinyglobby/node_modules/picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/trim-lines": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",+ "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/trough": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz",+ "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/ts-api-utils": {+ "version": "1.4.3",+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz",+ "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=16"+ },+ "peerDependencies": {+ "typescript": ">=4.2.0"+ }+ },+ "node_modules/ts-interface-checker": {+ "version": "0.1.13",+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",+ "license": "Apache-2.0"+ },+ "node_modules/type-check": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/type-fest": {+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",+ "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",+ "dev": true,+ "license": "(MIT OR CC0-1.0)",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/undici-types": {+ "version": "7.16.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",+ "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/unified": {+ "version": "11.0.5",+ "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz",+ "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "bail": "^2.0.0",+ "devlop": "^1.0.0",+ "extend": "^3.0.0",+ "is-plain-obj": "^4.0.0",+ "trough": "^2.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-is": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",+ "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-position": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",+ "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-stringify-position": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",+ "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-visit": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz",+ "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-visit-parents": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",+ "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/update-browserslist-db": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "escalade": "^3.2.0",+ "picocolors": "^1.1.1"+ },+ "bin": {+ "update-browserslist-db": "cli.js"+ },+ "peerDependencies": {+ "browserslist": ">= 4.21.0"+ }+ },+ "node_modules/uri-js": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },+ "node_modules/use-sync-external-store": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "license": "MIT"+ },+ "node_modules/vfile": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",+ "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/vfile-message": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",+ "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/vite": {+ "version": "5.4.21",+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",+ "dev": true,+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "esbuild": "^0.21.3",+ "postcss": "^8.4.43",+ "rollup": "^4.20.0"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || >=20.0.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.4.0"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ }+ }+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/word-wrap": {+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/yallist": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/yocto-queue": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/zustand": {+ "version": "4.5.7",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",+ "license": "MIT",+ "dependencies": {+ "use-sync-external-store": "^1.2.2"+ },+ "engines": {+ "node": ">=12.7.0"+ },+ "peerDependencies": {+ "@types/react": ">=16.8",+ "immer": ">=9.0.6",+ "react": ">=16.8"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ }+ }+ },+ "node_modules/zwitch": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",+ "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ }+ }+}diff --git a/jiuwenclaw/web/package.json b/jiuwenclaw/web/package.jsonnew file mode 100644index 0000000000..bd7444e9e5--- /dev/null+++ b/jiuwenclaw/web/package.json@@ -0,0 +1,39 @@+{+ "name": "openjiuwen-web",+ "private": true,+ "version": "0.1.0",+ "type": "module",+ "scripts": {+ "predev": "cd .. && node scripts/generate-agent-folders.js",+ "prebuild": "cd .. && node scripts/generate-agent-folders.js",+ "dev": "vite",+ "build": "tsc && vite build",+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",+ "preview": "vite preview"+ },+ "dependencies": {+ "@tailwindcss/typography": "^0.5.19",+ "clsx": "^2.1.0",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "react-markdown": "^10.1.0",+ "remark-gfm": "^4.0.1",+ "zustand": "^4.5.0"+ },+ "devDependencies": {+ "@types/node": "^25.2.3",+ "@types/react": "^18.2.0",+ "@types/react-dom": "^18.2.0",+ "@typescript-eslint/eslint-plugin": "^6.0.0",+ "@typescript-eslint/parser": "^6.0.0",+ "@vitejs/plugin-react": "^4.2.0",+ "autoprefixer": "^10.4.0",+ "eslint": "^8.45.0",+ "eslint-plugin-react-hooks": "^4.6.0",+ "eslint-plugin-react-refresh": "^0.4.0",+ "postcss": "^8.4.0",+ "tailwindcss": "^3.4.0",+ "typescript": "^5.3.0",+ "vite": "^5.0.0"+ }+}diff --git a/jiuwenclaw/web/postcss.config.js b/jiuwenclaw/web/postcss.config.jsnew file mode 100644index 0000000000..2e7af2b7f1--- /dev/null+++ b/jiuwenclaw/web/postcss.config.js@@ -0,0 +1,6 @@+export default {+ plugins: {+ tailwindcss: {},+ autoprefixer: {},+ },+}diff --git a/jiuwenclaw/web/public/feishu.webp b/jiuwenclaw/web/public/feishu.webpnew file mode 100644index 0000000000..c07a6476ebBinary files /dev/null and b/jiuwenclaw/web/public/feishu.webp differdiff --git a/jiuwenclaw/web/public/logo.png b/jiuwenclaw/web/public/logo.pngnew file mode 100644index 0000000000..7f39a1dc48Binary files /dev/null and b/jiuwenclaw/web/public/logo.png differdiff --git a/jiuwenclaw/web/public/vite.svg b/jiuwenclaw/web/public/vite.svgnew file mode 100644index 0000000000..ba513daf7f--- /dev/null+++ b/jiuwenclaw/web/public/vite.svg@@ -0,0 +1,10 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">+ <defs>+ <linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">+ <stop offset="0%" style="stop-color:#ff5c5c;stop-opacity:1" />+ <stop offset="100%" style="stop-color:#14b8a6;stop-opacity:1" />+ </linearGradient>+ </defs>+ <rect width="32" height="32" rx="8" fill="url(#grad)"/>+ <text x="16" y="22" font-family="Arial, sans-serif" font-size="14" font-weight="bold" fill="white" text-anchor="middle">JC</text>+</svg>diff --git a/jiuwenclaw/web/public/xiaoyi.webp b/jiuwenclaw/web/public/xiaoyi.webpnew file mode 100644index 0000000000..6b097814a7Binary files /dev/null and b/jiuwenclaw/web/public/xiaoyi.webp differdiff --git a/jiuwenclaw/web/src/App.css b/jiuwenclaw/web/src/App.cssnew file mode 100644index 0000000000..015bfe84cf--- /dev/null+++ b/jiuwenclaw/web/src/App.css@@ -0,0 +1,147 @@+.app-section {+ display: flex;+ flex: 1 1 0%;+ gap: 1rem;+ overflow: hidden;+}++.app-section.is-hidden {+ display: none;+}++.app-toast-wrapper {+ position: fixed;+ left: 50%;+ z-index: 50;+ transform: translateX(-50%);+}++.app-toast-wrapper--bottom {+ bottom: 5rem;+}++.app-toast-wrapper--top {+ top: 4rem;+}++.app-toast-wrapper--top-center {+ top: 4rem;+ left: 0;+ right: 0;+ transform: none;+ display: flex;+ justify-content: center;+}++.app-connection-toast {+ border-radius: 0.5rem;+ background: var(--danger);+ padding: 0.5rem 1rem;+ color: #fff;+ box-shadow: var(--shadow-lg);+}++.app-session-toast {+ border-radius: 0.5rem;+ background: var(--info);+ padding: 0.5rem 1rem;+ color: #fff;+ box-shadow: var(--shadow-lg);+}++.app-heartbeat-toast {+ width: min(88vw, 420px);+ overflow: hidden;+ border: 1px solid var(--border);+ border-radius: 0.75rem;+ background: var(--card);+ box-shadow: var(--shadow-xl);+ backdrop-filter: blur(4px);+}++.app-heartbeat-toast__header {+ display: flex;+ align-items: center;+ justify-content: space-between;+ border-bottom: 1px solid var(--border);+ padding: 0.5rem 0.875rem;+}++.app-heartbeat-toast__title {+ display: flex;+ align-items: center;+ gap: 0.5rem;+}++.app-heartbeat-toast__dot {+ width: 0.5rem;+ height: 0.5rem;+ border-radius: 9999px;+ background: var(--ok);+}++.app-heartbeat-toast__close {+ border: 0;+ border-radius: 0.375rem;+ background: transparent;+ color: var(--muted);+ cursor: pointer;+ padding: 0.125rem;+ transition: background var(--duration-fast) ease, color var(--duration-fast) ease;+}++.app-heartbeat-toast__close:hover {+ background: var(--secondary);+ color: var(--text);+}++.app-heartbeat-toast__content {+ display: block;+ width: 100%;+ border: 0;+ background: transparent;+ color: var(--muted);+ cursor: pointer;+ padding: 0.625rem 0.875rem;+ text-align: left;+ transition: background var(--duration-fast) ease, color var(--duration-fast) ease;+}++.app-heartbeat-toast__content:hover {+ background: color-mix(in oklab, var(--secondary) 60%, transparent);+}++.app-heartbeat-toast__preview {+ display: block;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.app-restart-modal {+ position: fixed;+ inset: 0;+ z-index: 60;+ display: flex;+ align-items: center;+ justify-content: center;+ padding: 1rem;+}++.app-restart-modal__backdrop {+ position: absolute;+ inset: 0;+ background: rgba(0, 0, 0, 0.35);+ backdrop-filter: blur(4px);+}++.app-restart-modal__panel {+ position: relative;+ width: 100%;+ max-width: 24rem;+ border: 1px solid var(--border);+ border-radius: 0.75rem;+ background: var(--card);+ box-shadow: var(--shadow-xl);+ padding: 1.5rem;+}diff --git a/jiuwenclaw/web/src/App.tsx b/jiuwenclaw/web/src/App.tsxnew file mode 100644index 0000000000..7a03df1101--- /dev/null+++ b/jiuwenclaw/web/src/App.tsx@@ -0,0 +1,708 @@+/**+ * App 主组件+ *+ * 应用主布局,整合所有组件+ */++import { useState, useCallback, useEffect, useRef, Component, ReactNode } from 'react';+import { ChatPanel } from './components/ChatPanel';+import { SessionSidebar } from './components/SessionSidebar';+import { SkillPanel } from './components/SkillPanel';+import { AgentPanel } from './components/AgentPanel/index';+import { SessionsPanel } from './components/SessionsPanel';+import { HeartbeatPanel } from './components/HeartbeatPanel';+import { ToolPanel } from './components/ToolPanel';+import { ConfigPanel } from './components/ConfigPanel';+import { LogsPanel } from './components/LogsPanel';+import { ChannelsPanel } from './components/ChannelsPanel';+import { BrowserPanel } from './components/BrowserPanel';+import { StatusBar } from './components/StatusBar';+import { HeartbeatMessageModal } from './features/HeartbeatMessageModal';+import { useWebSocket } from './hooks';+import { AgentMode } from './types';+import { useSessionStore, useChatStore, useTodoStore } from './stores';+import './App.css';++type MainNavKey = 'chat' | 'skills' | 'agents' | 'sessions' | 'heartbeat' | 'channels' | 'configpanel' | 'logspanel' | 'browserpanel';++// 错误边界组件+interface ErrorBoundaryState {+ hasError: boolean;+ error: Error | null;+}++class ErrorBoundary extends Component<+ { children: ReactNode },+ ErrorBoundaryState+> {+ constructor(props: { children: ReactNode }) {+ super(props);+ this.state = { hasError: false, error: null };+ }++ static getDerivedStateFromError(error: Error): ErrorBoundaryState {+ return { hasError: true, error };+ }++ componentDidCatch(error: Error, errorInfo: React.ErrorInfo) {+ console.error('React Error:', error, errorInfo);+ }++ render() {+ if (this.state.hasError) {+ return (+ <div className="flex items-center justify-center h-screen bg-bg text-text p-8">+ <div className="max-w-2xl card">+ <h1 className="text-2xl font-bold text-danger mb-4">+ 应用加载出错+ </h1>+ <p className="text-text-muted mb-4">+ {this.state.error?.message || '未知错误'}+ </p>+ <pre className="bg-secondary p-4 rounded-lg text-sm overflow-auto max-h-64 font-mono">+ {this.state.error?.stack}+ </pre>+ <button+ onClick={() => window.location.reload()}+ className="btn primary mt-4"+ >+ 刷新页面+ </button>+ </div>+ </div>+ );+ }++ return this.props.children;+ }+}++// 主题切换组件+function ThemeToggle() {+ const [theme, setTheme] = useState(() => {+ return localStorage.getItem('theme') || 'light';+ });++ const toggleTheme = (newTheme: string) => {+ setTheme(newTheme);+ localStorage.setItem('theme', newTheme);+ if (newTheme === 'light') {+ document.documentElement.setAttribute('data-theme', 'light');+ } else {+ document.documentElement.removeAttribute('data-theme');+ }+ };++ const themeIndex = theme === 'system' ? 0 : theme === 'dark' ? 1 : 2;++ return (+ <div className="theme-toggle">+ <div className="theme-toggle__track" style={{ '--theme-index': themeIndex } as React.CSSProperties}>+ <div className="theme-toggle__indicator" />+ <button+ className={`theme-toggle__button ${theme === 'system' ? 'active' : ''}`}+ onClick={() => toggleTheme('system')}+ title="跟随系统"+ >+ <svg className="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <rect x="2" y="3" width="20" height="14" rx="2" ry="2" />+ <line x1="8" y1="21" x2="16" y2="21" />+ <line x1="12" y1="17" x2="12" y2="21" />+ </svg>+ </button>+ <button+ className={`theme-toggle__button ${theme === 'dark' ? 'active' : ''}`}+ onClick={() => toggleTheme('dark')}+ title="深色模式"+ >+ <svg className="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />+ </svg>+ </button>+ <button+ className={`theme-toggle__button ${theme === 'light' ? 'active' : ''}`}+ onClick={() => toggleTheme('light')}+ title="浅色模式"+ >+ <svg className="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <circle cx="12" cy="12" r="5" />+ <line x1="12" y1="1" x2="12" y2="3" />+ <line x1="12" y1="21" x2="12" y2="23" />+ <line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />+ <line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />+ <line x1="1" y1="12" x2="3" y2="12" />+ <line x1="21" y1="12" x2="23" y2="12" />+ <line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />+ <line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />+ </svg>+ </button>+ </div>+ </div>+ );+}++// 会话 ID 持久化(使用 sessionStorage:同标签页刷新保留,多标签页隔离)+const SESSION_STORAGE_KEY = 'openjiuwen_current_session';++function generateSessionId(): string {+ const ts = Date.now().toString(16);+ const rand = Math.random().toString(16).slice(2, 8);+ return `sess_${ts}_${rand}`;+}++function getStoredSessionId(): string | null {+ try {+ return sessionStorage.getItem(SESSION_STORAGE_KEY);+ } catch {+ return null;+ }+}++function storeSessionId(sessionId: string | null) {+ try {+ if (sessionId && sessionId !== 'new') {+ sessionStorage.setItem(SESSION_STORAGE_KEY, sessionId);+ } else {+ sessionStorage.removeItem(SESSION_STORAGE_KEY);+ }+ } catch {+ // ignore+ }+}++function AppContent() {+ // 优先使用存储的会话 ID,避免每次刷新创建新会话+ const [sessionId, setSessionId] = useState<string>(() => {+ const stored = getStoredSessionId();+ return stored || 'new';+ });+ const [activeNav, setActiveNav] = useState<MainNavKey>('chat');+ const [serverConfig, setServerConfig] = useState<Record<string, unknown> | null>(null);+ const [configError, setConfigError] = useState<string | null>(null);+ const [initialDataLoaded, setInitialDataLoaded] = useState(false);+ const [restartModalOpen, setRestartModalOpen] = useState(false);+ const [restartSuccess, setRestartSuccess] = useState(false);+ const [restartSeenDisconnect, setRestartSeenDisconnect] = useState(false);+ const [appliedWithoutRestart, setAppliedWithoutRestart] = useState(false);+ const [newSessionToastVisible, setNewSessionToastVisible] = useState(false);+ const [heartbeatToastVisible, setHeartbeatToastVisible] = useState(false);+ const [heartbeatToastMessage, setHeartbeatToastMessage] = useState('');+ const [heartbeatModalOpen, setHeartbeatModalOpen] = useState(false);+ const [hasVisitedSkills, setHasVisitedSkills] = useState(false);+ const [hasVisitedChannels, setHasVisitedChannels] = useState(false);+ const restartAutoCloseTimerRef = useRef<number | null>(null);+ const newSessionToastTimerRef = useRef<number | null>(null);+ const heartbeatToastTimerRef = useRef<number | null>(null);+ const lastHeartbeatToastKeyRef = useRef<string | null>(null);+ const { setCurrentSession, setSessions, heartbeatMessage, heartbeatUpdatedAt } = useSessionStore();+ const { clearMessages, isProcessing } = useChatStore();+ const { clearTodos } = useTodoStore();++ // WebSocket 连接 - provider 由后端配置决定,前端默认不在 URL query 传递+ const {+ isConnected,+ request,+ sendMessage,+ pause,+ cancel,+ supplement,+ resume,+ switchMode,+ sendUserAnswer,+ } = useWebSocket({+ activeSessionId: sessionId,+ onConnect: (payload) => {+ const currentStored = getStoredSessionId();+ if (payload.session_id) {+ // 仅在尚无有效 session 时采纳后端分配的 session_id;+ // 重连时保持已有会话,防止被覆盖+ if (!currentStored) {+ console.log('Adopting backend session:', payload.session_id);+ setSessionId(payload.session_id);+ storeSessionId(payload.session_id);+ } else {+ console.log('Keeping existing session:', currentStored);+ }+ } else if (!currentStored) {+ // 后端未提供 session_id 且本地也无有效 session:兜底生成+ const fallbackSid = generateSessionId();+ console.log('Generated fallback session:', fallbackSid);+ setSessionId(fallbackSid);+ storeSessionId(fallbackSid);+ }+ },+ onDisconnect: () => {+ console.log('Disconnected');+ },+ onError: (error) => {+ console.error('WebSocket error:', error);+ },+ });++ // 获取会话列表+ const fetchSessions = useCallback(async () => {+ try {+ const payload = await request<{ sessions?: unknown[] }>('session.list', {+ limit: 20,+ });+ if (payload?.sessions && Array.isArray(payload.sessions)) {+ setSessions(payload.sessions as Parameters<typeof setSessions>[0]);+ }+ } catch (error) {+ console.error('Failed to fetch sessions:', error);+ }+ }, [request, setSessions]);++ // 获取服务端配置(通过 WS 方法)+ const fetchConfig = useCallback(async () => {+ try {+ const config = await request<Record<string, unknown>>('config.get');+ setServerConfig(config);+ setConfigError(null);+ } catch (error) {+ console.error('Failed to fetch config:', error);+ setServerConfig(null);+ setConfigError('无法通过 WebSocket 获取后端配置,已使用默认配置');+ }+ }, [request]);++ const clearRestartAutoCloseTimer = useCallback(() => {+ if (restartAutoCloseTimerRef.current != null) {+ window.clearTimeout(restartAutoCloseTimerRef.current);+ restartAutoCloseTimerRef.current = null;+ }+ }, []);++ const closeRestartModal = useCallback(() => {+ clearRestartAutoCloseTimer();+ setRestartModalOpen(false);+ setRestartSuccess(false);+ setRestartSeenDisconnect(false);+ setAppliedWithoutRestart(false);+ }, [clearRestartAutoCloseTimer]);++ const clearNewSessionToastTimer = useCallback(() => {+ if (newSessionToastTimerRef.current != null) {+ window.clearTimeout(newSessionToastTimerRef.current);+ newSessionToastTimerRef.current = null;+ }+ }, []);++ const clearHeartbeatToastTimer = useCallback(() => {+ if (heartbeatToastTimerRef.current != null) {+ window.clearTimeout(heartbeatToastTimerRef.current);+ heartbeatToastTimerRef.current = null;+ }+ }, []);++ const saveConfigAndRestart = useCallback(async (updates: Record<string, string>) => {+ const payload = await request<{ updated?: string[]; applied_without_restart?: boolean }>(+ 'config.set',+ updates+ );+ setServerConfig(updates);+ setConfigError(null);+ setRestartModalOpen(true);+ setRestartSuccess(false);+ setRestartSeenDisconnect(false);+ setAppliedWithoutRestart(payload?.applied_without_restart === true);+ clearRestartAutoCloseTimer();+ if (payload?.applied_without_restart === true) {+ setRestartSuccess(true);+ restartAutoCloseTimerRef.current = window.setTimeout(() => {+ closeRestartModal();+ }, 5000);+ }+ }, [clearRestartAutoCloseTimer, closeRestartModal, request]);++ useEffect(() => {+ if (!restartModalOpen || restartSuccess) {+ return;+ }+ if (!isConnected) {+ setRestartSeenDisconnect(true);+ return;+ }+ if (restartSeenDisconnect && isConnected) {+ setRestartSuccess(true);+ clearRestartAutoCloseTimer();+ restartAutoCloseTimerRef.current = window.setTimeout(() => {+ closeRestartModal();+ }, 5000);+ }+ }, [+ clearRestartAutoCloseTimer,+ closeRestartModal,+ isConnected,+ restartModalOpen,+ restartSeenDisconnect,+ restartSuccess,+ ]);++ useEffect(() => {+ return () => {+ clearRestartAutoCloseTimer();+ clearNewSessionToastTimer();+ clearHeartbeatToastTimer();+ };+ }, [clearHeartbeatToastTimer, clearNewSessionToastTimer, clearRestartAutoCloseTimer]);++ useEffect(() => {+ const normalized = heartbeatMessage?.trim();+ if (!normalized) {+ return;+ }+ if (normalized.toUpperCase() === 'HEARTBEAT_OK') {+ return;+ }+ const toastKey = `${heartbeatUpdatedAt ?? ''}::${normalized}`;+ if (lastHeartbeatToastKeyRef.current === toastKey) {+ return;+ }+ lastHeartbeatToastKeyRef.current = toastKey;+ setHeartbeatToastMessage(normalized);+ setHeartbeatToastVisible(true);+ clearHeartbeatToastTimer();+ heartbeatToastTimerRef.current = window.setTimeout(() => {+ setHeartbeatToastVisible(false);+ heartbeatToastTimerRef.current = null;+ }, 15000);+ }, [clearHeartbeatToastTimer, heartbeatMessage, heartbeatUpdatedAt]);++ useEffect(() => {+ if (!isConnected || initialDataLoaded) {+ return;+ }+ void (async () => {+ await fetchConfig();+ await fetchSessions();+ setInitialDataLoaded(true);+ })();+ }, [fetchConfig, fetchSessions, initialDataLoaded, isConnected]);++ // 新建会话:立即生成可用的 session_id,避免停留在 'new' 导致无法发送消息+ const handleNewSession = useCallback(async () => {+ clearMessages();+ clearTodos();+ const newSid = generateSessionId();+ try {+ const payload = await request<{ session_id?: string }>('session.create', {+ session_id: newSid,+ });+ const createdSid =+ typeof payload?.session_id === 'string' && payload.session_id+ ? payload.session_id+ : newSid;+ setSessionId(createdSid);+ setCurrentSession(null);+ storeSessionId(createdSid);+ await fetchSessions();+ } catch (error) {+ console.error('Failed to create session:', error);+ return;+ }+ setNewSessionToastVisible(true);+ clearNewSessionToastTimer();+ newSessionToastTimerRef.current = window.setTimeout(() => {+ setNewSessionToastVisible(false);+ newSessionToastTimerRef.current = null;+ }, 2000);+ }, [+ clearMessages,+ clearNewSessionToastTimer,+ clearTodos,+ fetchSessions,+ request,+ setCurrentSession,+ ]);++ // 切换模式+ const handleSwitchMode = useCallback((mode: AgentMode) => {+ if (!sessionId || sessionId === 'new') return;+ void switchMode(sessionId, mode);+ }, [sessionId, switchMode]);++ const handleSendMessage = useCallback((content: string) => {+ if (!sessionId || sessionId === 'new') return;+ void sendMessage(content, sessionId);+ }, [sendMessage, sessionId]);++ const handleInterrupt = useCallback((newInput?: string) => {+ if (!sessionId || sessionId === 'new') return;+ const trimmed = newInput?.trim();+ if (!trimmed) return;+ void supplement(sessionId, trimmed);+ }, [sessionId, supplement]);++ const handlePause = useCallback(() => {+ if (!sessionId || sessionId === 'new') return;+ void pause(sessionId);+ }, [pause, sessionId]);++ const handleCancel = useCallback(() => {+ if (!sessionId || sessionId === 'new') return;+ void cancel(sessionId);+ }, [cancel, sessionId]);++ const handleResume = useCallback(() => {+ if (!sessionId || sessionId === 'new') return;+ void resume(sessionId);+ }, [resume, sessionId]);++ const handleUserAnswer = useCallback((requestId: string, answers: Parameters<typeof sendUserAnswer>[2]) => {+ if (!sessionId || sessionId === 'new') return;+ void sendUserAnswer(sessionId, requestId, answers);+ }, [sendUserAnswer, sessionId]);++ const handleNavigate = useCallback((nav: MainNavKey) => {+ setActiveNav(nav);+ if (nav === 'skills') setHasVisitedSkills(true);+ if (nav === 'channels') setHasVisitedChannels(true);+ }, []);++ const heartbeatToastPreviewRaw = heartbeatToastMessage.replace(/\s+/g, ' ').trim();+ const heartbeatToastPreview = heartbeatToastPreviewRaw.length > 120+ ? `${heartbeatToastPreviewRaw.slice(0, 120)}...`+ : heartbeatToastPreviewRaw;++ return (+ <div className="shell">+ {/* Topbar */}+ <header className="topbar">+ <div className="flex items-center gap-4">+ <div className="brand">+ <img src="/logo.png" alt="OpenJiuwen" className="brand-logo-img" />+ <div className="brand-text">+ <span className="brand-title">JiuwenClaw</span>+ <span className="brand-sub">AI Assistant</span>+ </div>+ </div>+ </div>++ <div className="flex items-center gap-3">+ {/* 连接状态 */}+ <div className="pill">+ <span className={`statusDot ${isConnected ? 'ok' : ''}`} />+ <span className="mono text-sm">+ {isConnected ? '已连接' : '未连接'}+ </span>+ </div>++ {/* 主题切换 */}+ <ThemeToggle />+ </div>+ </header>++ {/* Navigation Sidebar */}+ <SessionSidebar+ activeNav={activeNav}+ onNavigate={handleNavigate}+ sessionId={sessionId}+ />++ {/* Main Content */}+ <main className="content">+ {configError && (+ <div className="card mb-4">+ <div className="text-sm text-text-muted">+ {configError}。请先启动 E2E 后端(如+ <span className="mono"> python -m tests.web_gateway_jiuwenclaw_integration </span>+ ,默认监听 19000)。若后端不在本机或端口不同,可在+ <span className="mono"> jiuwenclaw/web/.env.local </span>+ 设置 <span className="mono">VITE_API_BASE</span> 和 <span className="mono">VITE_WS_BASE</span>。+ </div>+ </div>+ )}++ {activeNav === 'chat' && (+ <>+ <div className="flex-1 flex overflow-hidden">+ {/* Chat Panel */}+ <div className="flex-1 flex flex-col min-w-0 min-h-0">+ <div className="flex-1 min-h-0">+ <ChatPanel+ onSendMessage={handleSendMessage}+ onInterrupt={handleInterrupt}+ onSwitchMode={handleSwitchMode}+ isProcessing={isProcessing}+ onNewSession={handleNewSession}+ onUserAnswer={handleUserAnswer}+ />+ </div>++ {/* Status Bar */}+ <StatusBar+ onPause={handlePause}+ onCancel={handleCancel}+ onResume={handleResume}+ />+ </div>++ {/* Tool Panel */}+ <ToolPanel />+ </div>+ </>+ )}+ {activeNav === 'agents' && (+ <div className="app-section">+ <AgentPanel sessionId={sessionId} />+ </div>+ )}+ {activeNav === 'sessions' && (+ <div className="app-section">+ <SessionsPanel currentSessionId={sessionId} />+ </div>+ )}+ {activeNav === 'heartbeat' && (+ <div className="app-section">+ <HeartbeatPanel />+ </div>+ )}+ {activeNav === 'configpanel' && (+ <div className="app-section">+ <ConfigPanel+ config={serverConfig}+ isConnected={isConnected}+ onSaveConfig={saveConfigAndRestart}+ />+ </div>+ )}+ {activeNav === 'logspanel' && (+ <div className="app-section">+ <LogsPanel isConnected={isConnected} />+ </div>+ )}+ {activeNav === 'browserpanel' && (+ <div className="app-section">+ <BrowserPanel isConnected={isConnected} request={request} />+ </div>+ )}++ {hasVisitedSkills && (+ <div className={`app-section ${activeNav === 'skills' ? '' : 'is-hidden'}`}>+ <SkillPanel sessionId={sessionId} />+ </div>+ )}+ {hasVisitedChannels && (+ <div className={`app-section ${activeNav === 'channels' ? '' : 'is-hidden'}`}>+ <ChannelsPanel isConnected={isConnected} />+ </div>+ )}+ </main>++ {/* 连接状态提示 */}+ {!isConnected && (+ <div className="app-toast-wrapper app-toast-wrapper--top">+ <div className="app-connection-toast animate-rise">+ {serverConfig ? '正在连接服务器...' : '加载配置中...'}+ </div>+ </div>+ )}++ {/* 新建会话提示 */}+ {newSessionToastVisible && (+ <div className="app-toast-wrapper app-toast-wrapper--top-center">+ <div className="app-session-toast animate-rise">+ 已新建会话+ </div>+ </div>+ )}++ {/* 全局心跳消息提示 */}+ {heartbeatToastVisible && (+ <div className="app-toast-wrapper app-toast-wrapper--top">+ <div className="app-heartbeat-toast animate-rise">+ <div className="app-heartbeat-toast__header">+ <div className="app-heartbeat-toast__title">+ <span className="app-heartbeat-toast__dot animate-pulse" />+ <span className="text-xs font-medium text-text">心跳消息</span>+ </div>+ <button+ type="button"+ onClick={() => {+ setHeartbeatToastVisible(false);+ clearHeartbeatToastTimer();+ }}+ className="app-heartbeat-toast__close"+ aria-label="关闭"+ >+ <svg className="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />+ </svg>+ </button>+ </div>+ <button+ type="button"+ onClick={() => {+ setHeartbeatModalOpen(true);+ setHeartbeatToastVisible(false);+ clearHeartbeatToastTimer();+ }}+ className="app-heartbeat-toast__content text-sm"+ title="点击查看完整心跳消息"+ >+ <span className="app-heartbeat-toast__preview">+ {heartbeatToastPreview}+ </span>+ </button>+ </div>+ </div>+ )}++ {/* 配置保存后重启状态弹窗 */}+ {restartModalOpen && (+ <div className="app-restart-modal">+ <div className="app-restart-modal__backdrop" />+ <div className="app-restart-modal__panel">+ <div className="flex flex-col items-center text-center">+ {!restartSuccess ? (+ <div className="w-12 h-12 rounded-full border-4 border-border border-t-accent animate-spin mb-4" />+ ) : (+ <div className="w-12 h-12 rounded-full bg-ok/15 text-ok flex items-center justify-center mb-4">+ <svg className="w-7 h-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.2">+ <path strokeLinecap="round" strokeLinejoin="round" d="M5 13l4 4L19 7" />+ </svg>+ </div>+ )}+ <h3 className="text-base font-semibold text-text mb-1">+ {!restartSuccess ? '正在重启服务' : appliedWithoutRestart ? '配置已生效' : '重启成功'}+ </h3>+ <p className="text-sm text-text-muted mb-5">+ {!restartSuccess+ ? '正在等待后端重新启动并恢复连接,请稍候...'+ : appliedWithoutRestart+ ? '配置已热更新,窗口将在 5 秒后自动关闭。'+ : '后端已启动成功,窗口将在 5 秒后自动关闭。'}+ </p>+ {restartSuccess && (+ <button+ type="button"+ onClick={closeRestartModal}+ className="btn primary !px-4 !py-2"+ >+ 确定+ </button>+ )}+ </div>+ </div>+ </div>+ )}++ <HeartbeatMessageModal+ open={heartbeatModalOpen}+ message={heartbeatToastMessage}+ onClose={() => setHeartbeatModalOpen(false)}+ />+ </div>+ );+}++function App() {+ return (+ <ErrorBoundary>+ <AppContent />+ </ErrorBoundary>+ );+}++export default App;diff --git a/jiuwenclaw/web/src/components/AgentPanel/FileViewer.tsx b/jiuwenclaw/web/src/components/AgentPanel/FileViewer.tsxnew file mode 100644index 0000000000..02afd0e716--- /dev/null+++ b/jiuwenclaw/web/src/components/AgentPanel/FileViewer.tsx@@ -0,0 +1,199 @@+import { useState, useEffect } from 'react';+import ReactMarkdown from 'react-markdown';++interface FileViewerProps {+ filePath: string;+ fileName: string;+}++export function FileViewer({ filePath, fileName }: FileViewerProps) {+ const [content, setContent] = useState<string>('');+ const [draftContent, setDraftContent] = useState<string>('');+ const [loading, setLoading] = useState(false);+ const [saving, setSaving] = useState(false);+ const [isEditing, setIsEditing] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const [saveError, setSaveError] = useState<string | null>(null);+ const isMarkdown = fileName.toLowerCase().endsWith('.md') || fileName.toLowerCase().endsWith('.mdx');+ const fileNotFound = Boolean(error && error.includes('HTTP 404'));++ useEffect(() => {+ if (!filePath) return;+ if (!isMarkdown) {+ setLoading(false);+ setError(null);+ setSaveError(null);+ setIsEditing(false);+ setSaving(false);+ setContent('');+ setDraftContent('');+ return;+ }++ const loadFile = async () => {+ setLoading(true);+ setError(null);+ setSaveError(null);+ setIsEditing(false);+ setSaving(false);++ try {+ const encodedPath = encodeURIComponent(filePath);+ const url = `/file-api/file-content?path=${encodedPath}`;+ const response = await fetch(url);++ if (!response.ok) {+ const errorData = await response.text();+ throw new Error(`HTTP ${response.status}: ${errorData.substring(0, 100)}`);+ }++ const text = await response.text();+ setContent(text);+ setDraftContent(text);+ } catch (err) {+ console.error('文件加载失败:', err);+ setError(err instanceof Error ? err.message : '未知错误');+ } finally {+ setLoading(false);+ }+ };++ loadFile();+ }, [filePath, fileName, isMarkdown]);++ const handleStartEdit = () => {+ setDraftContent(content);+ setSaveError(null);+ setIsEditing(true);+ };++ const handleCancelEdit = () => {+ setDraftContent(content);+ setSaveError(null);+ setIsEditing(false);+ };++ const handleSave = async () => {+ setSaving(true);+ setSaveError(null);+ try {+ const response = await fetch('/file-api/file-content', {+ method: 'POST',+ headers: {+ 'content-type': 'application/json',+ },+ body: JSON.stringify({+ path: filePath,+ content: draftContent,+ }),+ });++ if (!response.ok) {+ const errorText = await response.text();+ throw new Error(`HTTP ${response.status}: ${errorText.substring(0, 120)}`);+ }++ setContent(draftContent);+ setIsEditing(false);+ } catch (err) {+ console.error('文件保存失败:', err);+ setSaveError(err instanceof Error ? err.message : '未知错误');+ } finally {+ setSaving(false);+ }+ };++ return (+ <div className="h-full min-h-0 flex flex-col overflow-hidden">+ <div className="flex-shrink-0 px-4 py-3 bg-secondary/30 border-b border-border">+ <div className="flex items-start justify-between gap-4">+ <div className="flex items-center gap-3 min-w-0 flex-1">+ <span className="h-9 w-9 rounded-lg border border-border bg-card flex items-center justify-center text-text-muted flex-shrink-0">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.6} className="h-7 w-7">+ <path strokeLinecap="round" strokeLinejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" />+ </svg>+ </span>+ <div className="min-w-0 flex-1">+ <h3 className="text-sm font-medium text-text truncate">{fileName}</h3>+ <p className="text-xs text-text-muted mono truncate mt-1" title={filePath}>+ {filePath}+ </p>+ </div>+ </div>+ {isMarkdown && !loading ? (+ <div className="flex items-center gap-2 flex-shrink-0">+ {isEditing ? (+ <>+ <button+ type="button"+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ onClick={handleCancelEdit}+ disabled={saving}+ >+ 取消+ </button>+ <button+ type="button"+ className="btn primary !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ onClick={handleSave}+ disabled={saving}+ >+ {saving ? '保存中...' : '保存'}+ </button>+ </>+ ) : (+ <button+ type="button"+ className="btn !px-3 !py-1.5"+ onClick={handleStartEdit}+ >+ 编辑+ </button>+ )}+ </div>+ ) : null}+ </div>+ {error ? (+ <div className="mt-2 rounded-md border border-danger/30 bg-danger/10 px-2.5 py-1.5 text-xs text-danger">+ {error}+ </div>+ ) : null}+ {fileNotFound ? (+ <div className="mt-2 rounded-md border border-warning/30 bg-warning/10 px-2.5 py-1.5 text-xs text-warning">+ 文件不存在。请先在 <span className="mono">{filePath}</span> 创建该 Markdown 文件后再编辑。+ </div>+ ) : null}+ {saveError ? (+ <div className="mt-2 rounded-md border border-danger/30 bg-danger/10 px-2.5 py-1.5 text-xs text-danger">+ {saveError}+ </div>+ ) : null}+ </div>++ <div className="flex-1 min-h-0 overflow-auto p-5">+ {loading ? (+ <div className="h-full flex items-center justify-center">+ <div className="w-7 h-7 rounded-full border-4 border-border border-t-accent animate-spin" />+ </div>+ ) : isMarkdown ? (+ isEditing ? (+ <textarea+ className="w-full h-full min-h-[280px] resize-none rounded-lg border border-border bg-card p-3 text-sm text-text outline-none focus:border-accent/50"+ value={draftContent}+ onChange={(event) => setDraftContent(event.target.value)}+ disabled={saving}+ />+ ) : (+ <article className="chat-text max-w-none">+ <ReactMarkdown>{content || ' '}</ReactMarkdown>+ </article>+ )+ ) : (+ <div className="h-full flex items-center justify-center text-text-muted text-sm">+ 该文件无法预览,仅支持 Markdown(.md/.mdx)文件+ </div>+ )}+ </div>+ </div>+ );+}\ No newline at end of filediff --git a/jiuwenclaw/web/src/components/AgentPanel/index.tsx b/jiuwenclaw/web/src/components/AgentPanel/index.tsxnew file mode 100644index 0000000000..5222504de9--- /dev/null+++ b/jiuwenclaw/web/src/components/AgentPanel/index.tsx@@ -0,0 +1,500 @@+import { useEffect, useMemo, useState } from 'react';+import { FileViewer } from './FileViewer';+import { containsIgnoredDirectory } from '../../features/fileTreeFilters';++interface AgentPanelProps {+ sessionId: string;+}++interface FileInfo {+ name: string;+ path: string;+ isMarkdown: boolean;+}++const ROOT_FOLDER_KEY = '__root__';+const AGENT_ROOT_PREFIX = 'workspace/agent/';++interface DirectoryNode {+ key: string;+ label: string;+ isSkillFolder: boolean;+ childDirectoryKeys: string[];+ files: FileInfo[];+}++interface TreeData {+ directoryMap: Map<string, DirectoryNode>;+ rootChildDirectoryKeys: string[];+ rootFiles: FileInfo[];+ rootEntries: Array<+ | { kind: 'directory'; key: string; label: string }+ | { kind: 'file'; file: FileInfo }+ >;+ directoryCount: number;+ totalFileCount: number;+ markdownFileCount: number;+}++const compareByName = (a: string, b: string) => a.localeCompare(b, 'zh-Hans-CN');++const getFolderDisplayName = (folderKey: string) => {+ if (folderKey === ROOT_FOLDER_KEY) return '根目录';+ const segments = folderKey.split('/').filter(Boolean);+ return segments[segments.length - 1] || folderKey;+};++const isSkillFolder = (folderKey: string) =>+ folderKey === 'skills' || folderKey.startsWith('skills/');++const normalizeFolderKey = (folderKey: string) => (folderKey ? folderKey : ROOT_FOLDER_KEY);++const getParentFolderKey = (folderKey: string) => {+ if (folderKey === ROOT_FOLDER_KEY) return null;+ const separatorIndex = folderKey.lastIndexOf('/');+ if (separatorIndex === -1) return ROOT_FOLDER_KEY;+ return folderKey.substring(0, separatorIndex);+};++const getFolderKeyByFilePath = (filePath: string) => {+ if (!filePath.startsWith(AGENT_ROOT_PREFIX)) {+ return ROOT_FOLDER_KEY;+ }+ const relativePath = filePath.slice(AGENT_ROOT_PREFIX.length);+ const separatorIndex = relativePath.lastIndexOf('/');+ if (separatorIndex === -1) {+ return ROOT_FOLDER_KEY;+ }+ return relativePath.substring(0, separatorIndex) || ROOT_FOLDER_KEY;+};++const filterFolderData = (data: Record<string, FileInfo[]>) =>+ Object.fromEntries(+ Object.entries(data)+ .filter(([rawFolderKey]) => !containsIgnoredDirectory(rawFolderKey))+ .map(([rawFolderKey, files]) => [+ rawFolderKey,+ files.filter((file) => !containsIgnoredDirectory(file.path)),+ ]),+ );++const buildTreeData = (data: Record<string, FileInfo[]>): TreeData => {+ const directoryKeys = new Set<string>([ROOT_FOLDER_KEY]);+ const sourceFolderKeys = Object.keys(data);++ sourceFolderKeys.forEach((rawFolderKey) => {+ const folderKey = normalizeFolderKey(rawFolderKey);+ if (folderKey === ROOT_FOLDER_KEY) {+ directoryKeys.add(ROOT_FOLDER_KEY);+ return;+ }++ const parts = folderKey.split('/').filter(Boolean);+ let current = '';+ parts.forEach((part) => {+ current = current ? `${current}/${part}` : part;+ directoryKeys.add(current);+ });+ });++ const directoryMap = new Map<string, DirectoryNode>();+ directoryKeys.forEach((folderKey) => {+ directoryMap.set(folderKey, {+ key: folderKey,+ label: getFolderDisplayName(folderKey),+ isSkillFolder: isSkillFolder(folderKey),+ childDirectoryKeys: [],+ files: [],+ });+ });++ directoryKeys.forEach((folderKey) => {+ if (folderKey === ROOT_FOLDER_KEY) return;+ const parentKey = getParentFolderKey(folderKey);+ if (!parentKey) return;+ const parent = directoryMap.get(parentKey);+ if (parent) {+ parent.childDirectoryKeys.push(folderKey);+ }+ });++ sourceFolderKeys.forEach((rawFolderKey) => {+ const folderKey = normalizeFolderKey(rawFolderKey);+ const node = directoryMap.get(folderKey);+ if (!node) return;+ node.files = (data[rawFolderKey] || [])+ .slice()+ .sort((a, b) => compareByName(a.name, b.name));+ });++ directoryMap.forEach((node) => {+ node.childDirectoryKeys.sort((a, b) => compareByName(getFolderDisplayName(a), getFolderDisplayName(b)));+ });++ const rootNode = directoryMap.get(ROOT_FOLDER_KEY);+ const rootChildDirectoryKeys = rootNode ? rootNode.childDirectoryKeys : [];+ const rootFiles = rootNode ? rootNode.files : [];+ const rootEntries = [+ ...rootChildDirectoryKeys.map((key) => ({+ kind: 'directory' as const,+ key,+ label: getFolderDisplayName(key),+ })),+ ...rootFiles.map((file) => ({+ kind: 'file' as const,+ file,+ })),+ ].sort((a, b) => {+ const aName = a.kind === 'directory' ? a.label : a.file.name;+ const bName = b.kind === 'directory' ? b.label : b.file.name;+ return compareByName(aName, bName);+ });+ const allFiles = sourceFolderKeys.flatMap((folderKey) => data[folderKey] || []);++ return {+ directoryMap,+ rootChildDirectoryKeys,+ rootFiles,+ rootEntries,+ directoryCount: Math.max(directoryMap.size - 1, 0),+ totalFileCount: allFiles.length,+ markdownFileCount: allFiles.filter((file) => file.isMarkdown).length,+ };+};++export function AgentPanel({ sessionId: _sessionId }: AgentPanelProps) {+ const [folderData, setFolderData] = useState<Record<string, FileInfo[]>>({});+ const [loading, setLoading] = useState(true);+ const [refreshing, setRefreshing] = useState(false);+ const [loadError, setLoadError] = useState<string | null>(null);+ const [selectedFile, setSelectedFile] = useState<FileInfo | null>(null);+ const [expandedKeys, setExpandedKeys] = useState<Set<string>>(+ () => new Set<string>([ROOT_FOLDER_KEY]),+ );++ const loadFolderData = async (options?: { rebuildBeforeFetch?: boolean }) => {+ const shouldRebuild = Boolean(options?.rebuildBeforeFetch);+ try {+ if (shouldRebuild) {+ const rebuildResponse = await fetch('/file-api/rebuild-agent-data', {+ method: 'POST',+ });+ if (!rebuildResponse.ok) {+ const rebuildError = await rebuildResponse.text();+ throw new Error(`REBUILD_FAILED:${rebuildError.substring(0, 160)}`);+ }+ }++ const res = await fetch('/file-api/file-content?path=workspace/agent-data.json');+ if (!res.ok) {+ throw new Error('FETCH_FAILED');+ }+ const rawData = await res.text();+ const parsedData = JSON.parse(rawData) as Record<string, FileInfo[]>;+ const data = filterFolderData(parsedData);+ setFolderData(data);+ setLoadError(null);++ const nextTreeData = buildTreeData(data);+ setSelectedFile((prev) => {+ if (!prev) {+ return null;+ }+ const stillExists = Object.values(data).some((files) =>+ files.some((file) => file.path === prev.path),+ );+ return stillExists ? prev : null;+ });+ setExpandedKeys((prev) => {+ const next = new Set<string>([ROOT_FOLDER_KEY]);+ prev.forEach((key) => {+ if (nextTreeData.directoryMap.has(key)) {+ next.add(key);+ }+ });+ return next;+ });+ } catch (err) {+ console.error('读取文件列表失败:', err);+ setFolderData({});+ if (err instanceof Error && err.message.startsWith('REBUILD_FAILED:')) {+ setLoadError('刷新失败:无法重建 agent 文件索引,请检查生成脚本日志。');+ } else {+ setLoadError('无法读取 agent 文件列表,请检查 workspace/agent-data.json 是否已生成。');+ }+ } finally {+ setLoading(false);+ setRefreshing(false);+ }+ };++ useEffect(() => {+ void loadFolderData();+ }, []);++ const handleRefresh = () => {+ setRefreshing(true);+ void loadFolderData({ rebuildBeforeFetch: true });+ };++ const treeData = useMemo(() => buildTreeData(folderData), [folderData]);++ const expandFolderAndAncestors = (folderKey: string) => {+ setExpandedKeys((prev) => {+ const next = new Set(prev);+ let current: string | null = folderKey;+ while (current) {+ next.add(current);+ current = getParentFolderKey(current);+ }+ return next;+ });+ };++ const toggleFolder = (folderKey: string) => {+ setExpandedKeys((prev) => {+ const next = new Set(prev);+ if (next.has(folderKey)) {+ next.delete(folderKey);+ } else {+ next.add(folderKey);+ }+ return next;+ });+ };++ const handleFileClick = (file: FileInfo) => {+ if (!file.isMarkdown) {+ return;+ }+ const folderKey = getFolderKeyByFilePath(file.path);+ expandFolderAndAncestors(folderKey);+ setSelectedFile(file);+ };++ if (loading) {+ return (+ <div className="flex-1 min-h-0">+ <div className="card w-full h-full flex items-center justify-center">+ <div className="w-8 h-8 rounded-full border-4 border-border border-t-accent animate-spin" />+ </div>+ </div>+ );+ }++ const renderTree = (folderKey: string, depth: number): JSX.Element | null => {+ const node = treeData.directoryMap.get(folderKey);+ if (!node) {+ return null;+ }+ const isExpanded = expandedKeys.has(folderKey);+ const hasChildren = node.childDirectoryKeys.length > 0 || node.files.length > 0;++ return (+ <div key={`dir-${folderKey}`}>+ <button+ type="button"+ onClick={() => toggleFolder(folderKey)}+ className="w-full min-h-10 flex items-center gap-2 rounded-lg px-2 py-2 text-left text-[15px] text-text-muted hover:bg-secondary/40 hover:text-text transition-colors"+ style={{ paddingLeft: `${depth * 14 + 8}px` }}+ title={node.label}+ >+ <span className="w-4 h-4 flex items-center justify-center text-text-muted/80">+ {hasChildren ? (+ <svg+ className={`w-3 h-3 transition-transform ${isExpanded ? 'rotate-90' : ''}`}+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ >+ <path strokeLinecap="round" strokeLinejoin="round" d="M9 6l6 6-6 6" />+ </svg>+ ) : null}+ </span>+ <svg className="w-4 h-4 flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8">+ <path strokeLinecap="round" strokeLinejoin="round" d="M3.75 6.75h4.5l1.5 2.25h10.5v8.25A2.25 2.25 0 0118 19.5H6A2.25 2.25 0 013.75 17.25V6.75z" />+ </svg>+ <span className="flex-1 min-w-0 truncate">{node.label}</span>+ {node.isSkillFolder ? (+ <span className="text-[10px] uppercase tracking-wide px-1.5 py-0.5 rounded border border-[var(--border-accent)] bg-accent-subtle text-accent">+ skills+ </span>+ ) : null}+ </button>++ {isExpanded ? (+ <div>+ {node.childDirectoryKeys.map((childKey) => renderTree(childKey, depth + 1))}+ {node.files.map((file) => {+ const selectable = file.isMarkdown;+ const selected = selectedFile?.path === file.path;+ return (+ <button+ key={file.path}+ type="button"+ className={`w-full min-h-10 flex items-center gap-2 rounded-lg px-2 py-2 text-left text-[15px] transition-colors ${+ selected+ ? 'bg-accent-subtle text-text border border-[var(--border-accent)]'+ : selectable+ ? 'text-text-muted hover:bg-secondary/40 hover:text-text border border-transparent'+ : 'text-text-muted/60 border border-transparent cursor-not-allowed'+ }`}+ style={{ paddingLeft: `${(depth + 1) * 14 + 8}px` }}+ onClick={() => handleFileClick(file)}+ disabled={!selectable}+ title={file.name}+ >+ <span className="w-4 h-4 flex items-center justify-center" />+ <svg className="w-4 h-4 flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8">+ {file.isMarkdown ? (+ <path strokeLinecap="round" strokeLinejoin="round" d="M6.75 3.75h7.5l4.5 4.5v12a1.5 1.5 0 01-1.5 1.5h-10.5a1.5 1.5 0 01-1.5-1.5v-15a1.5 1.5 0 011.5-1.5zM9 14.25V9.75l3 3 3-3v4.5" />+ ) : (+ <path strokeLinecap="round" strokeLinejoin="round" d="M6.75 3.75h7.5l4.5 4.5v12a1.5 1.5 0 01-1.5 1.5h-10.5a1.5 1.5 0 01-1.5-1.5v-15a1.5 1.5 0 011.5-1.5zM14.25 3.75v4.5h4.5" />+ )}+ </svg>+ <span className="flex-1 min-w-0 truncate">{file.name}</span>+ {!file.isMarkdown ? (+ <span className="text-[10px] px-1.5 py-0.5 rounded border border-border bg-secondary/40">+ 不可预览+ </span>+ ) : null}+ </button>+ );+ })}+ </div>+ ) : null}+ </div>+ );+ };++ return (+ <div className="flex-1 min-h-0">+ <div className="card w-full h-full flex flex-col">+ <div className="flex items-center justify-between mb-3">+ <div>+ <h2 className="text-lg font-semibold">智能体管理</h2>+ <p className="text-sm text-text-muted mt-1">查看智能体工作区文件与记忆内容</p>+ </div>+ <div className="flex items-center gap-2">+ <div className="flex items-center gap-2 text-xs text-text-muted">+ <span className="mono px-2.5 py-1 rounded-full border border-border bg-secondary/60">+ {treeData.directoryCount} 个目录+ </span>+ <span className="mono px-2.5 py-1 rounded-full border border-border bg-secondary/60">+ {treeData.totalFileCount} 个文件+ </span>+ <span className="mono px-2.5 py-1 rounded-full border border-border bg-secondary/60">+ {treeData.markdownFileCount} 个可预览+ </span>+ </div>+ </div>+ </div>++ {loadError ? (+ <div className="mb-4 rounded-md border border-danger/30 bg-danger/10 px-3 py-2 text-sm text-danger">+ {loadError}+ </div>+ ) : null}++ <div className="flex-1 min-h-0 grid grid-cols-[minmax(0,3fr)_minmax(0,7fr)] gap-4">+ <div className="rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm flex flex-col min-h-0">+ <div className="px-4 py-3 bg-secondary/30 border-b border-border">+ <div className="flex items-start justify-between gap-4">+ <div>+ <h3 className="text-sm font-medium text-text">工作区</h3>+ <p className="text-xs text-text-muted mt-1 mono">+ {treeData.directoryCount} 个目录,{treeData.totalFileCount} 个文件+ </p>+ </div>+ <button+ type="button"+ onClick={handleRefresh}+ disabled={refreshing}+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ title="刷新列表"+ >+ {refreshing ? '刷新中...' : '刷新'}+ </button>+ </div>+ </div>+ <div className="flex-1 overflow-auto p-2">+ {treeData.rootChildDirectoryKeys.length === 0 && treeData.rootFiles.length === 0 ? (+ <div className="h-full flex items-center justify-center text-sm text-text-muted">暂无文件</div>+ ) : (+ <div className="space-y-0.5">+ {treeData.rootEntries.map((entry) => {+ if (entry.kind === 'directory') {+ return renderTree(entry.key, 0);+ }+ const file = entry.file;+ const selectable = file.isMarkdown;+ const selected = selectedFile?.path === file.path;+ return (+ <button+ key={file.path}+ type="button"+ className={`w-full min-h-10 flex items-center gap-2 rounded-lg px-2 py-2 text-left text-[15px] transition-colors ${+ selected+ ? 'bg-accent-subtle text-text border border-[var(--border-accent)]'+ : selectable+ ? 'text-text-muted hover:bg-secondary/40 hover:text-text border border-transparent'+ : 'text-text-muted/60 border border-transparent cursor-not-allowed'+ }`}+ style={{ paddingLeft: '8px' }}+ onClick={() => handleFileClick(file)}+ disabled={!selectable}+ >+ <svg className="w-4 h-4 flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8">+ {file.isMarkdown ? (+ <path strokeLinecap="round" strokeLinejoin="round" d="M6.75 3.75h7.5l4.5 4.5v12a1.5 1.5 0 01-1.5 1.5h-10.5a1.5 1.5 0 01-1.5-1.5v-15a1.5 1.5 0 011.5-1.5zM9 14.25V9.75l3 3 3-3v4.5" />+ ) : (+ <path strokeLinecap="round" strokeLinejoin="round" d="M6.75 3.75h7.5l4.5 4.5v12a1.5 1.5 0 01-1.5 1.5h-10.5a1.5 1.5 0 01-1.5-1.5v-15a1.5 1.5 0 011.5-1.5zM14.25 3.75v4.5h4.5" />+ )}+ </svg>+ <span className="flex-1 min-w-0 truncate">{file.name}</span>+ {!file.isMarkdown ? (+ <span className="text-[10px] px-1.5 py-0.5 rounded border border-border bg-secondary/40">+ 不可预览+ </span>+ ) : null}+ </button>+ );+ })}+ </div>+ )}+ </div>+ </div>++ <div className="rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm flex flex-col min-h-0">+ {selectedFile ? (+ <FileViewer filePath={selectedFile.path} fileName={selectedFile.name} />+ ) : (+ <>+ <div className="px-4 py-3 bg-secondary/30 border-b border-border">+ <div className="flex items-center gap-3">+ <span className="h-9 w-9 rounded-lg border border-border bg-card flex items-center justify-center text-text-muted flex-shrink-0">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.6} className="h-7 w-7">+ <path strokeLinecap="round" strokeLinejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" />+ </svg>+ </span>+ <div>+ <h4 className="text-sm font-medium text-text">内容预览</h4>+ <p className="text-xs text-text-muted mt-1">选择左侧 Markdown 文件查看</p>+ </div>+ </div>+ </div>+ <div className="flex-1 min-h-0 flex items-center justify-center">+ <div className="text-center text-text-muted">+ <div className="mb-2 text-sm">请选择左侧 Markdown 文件查看内容</div>+ <div className="text-xs mono">仅支持 Markdown(.md/.mdx)预览</div>+ </div>+ </div>+ </>+ )}+ </div>+ </div>+ </div>+ </div>+ );+}\ No newline at end of filediff --git a/jiuwenclaw/web/src/components/BrowserPanel/index.tsx b/jiuwenclaw/web/src/components/BrowserPanel/index.tsxnew file mode 100644index 0000000000..143b2c3b1f--- /dev/null+++ b/jiuwenclaw/web/src/components/BrowserPanel/index.tsx@@ -0,0 +1,212 @@+import { useCallback, useEffect, useMemo, useState } from 'react';++interface BrowserPathPayload {+ chrome_path?: unknown;+}++interface BrowserStartPayload {+ returncode?: unknown;+}++interface BrowserPanelProps {+ isConnected: boolean;+ request: <T = unknown>(method: string, params?: Record<string, unknown>) => Promise<T>;+}++function normalizeChromePath(payload: unknown): string {+ if (!payload || typeof payload !== 'object') return '';+ const data = payload as BrowserPathPayload;+ return typeof data.chrome_path === 'string' ? data.chrome_path : '';+}++function normalizeReturnCode(payload: unknown): number | null {+ if (!payload || typeof payload !== 'object') return null;+ const data = payload as BrowserStartPayload;+ const code = Number(data.returncode);+ return Number.isInteger(code) ? code : null;+}++export function BrowserPanel({ isConnected, request }: BrowserPanelProps) {+ const [chromePath, setChromePath] = useState('');+ const [initialPath, setInitialPath] = useState('');+ const [loading, setLoading] = useState(false);+ const [saving, setSaving] = useState(false);+ const [starting, setStarting] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const [success, setSuccess] = useState<string | null>(null);++ const hasChanges = useMemo(() => chromePath !== initialPath, [chromePath, initialPath]);+ const isPathValid = useMemo(() => chromePath.trim().length > 0, [chromePath]);++ const clearFeedback = () => {+ setError(null);+ setSuccess(null);+ };++ const loadPath = useCallback(async () => {+ setLoading(true);+ clearFeedback();+ try {+ const payload = await request<BrowserPathPayload>('path.get');+ const value = normalizeChromePath(payload);+ setChromePath(value);+ setInitialPath(value);+ } catch (loadError) {+ const message = loadError instanceof Error ? loadError.message : '加载 Chrome 路径失败';+ setError(message);+ } finally {+ setLoading(false);+ }+ }, [request]);++ useEffect(() => {+ void loadPath();+ }, [loadPath]);++ useEffect(() => {+ if (!success) return;+ const timer = window.setTimeout(() => {+ setSuccess(null);+ }, 2500);+ return () => {+ window.clearTimeout(timer);+ };+ }, [success]);++ const handleSave = async () => {+ if (saving || !hasChanges || !isPathValid || !isConnected) {+ return;+ }+ setSaving(true);+ clearFeedback();+ try {+ const nextPath = chromePath.trim();+ const payload = await request<BrowserPathPayload>('path.set', { chrome_path: nextPath });+ const savedPath = normalizeChromePath(payload) || nextPath;+ setChromePath(savedPath);+ setInitialPath(savedPath);+ setSuccess('Chrome 路径已保存');+ } catch (saveError) {+ const message = saveError instanceof Error ? saveError.message : '保存 Chrome 路径失败';+ setError(message);+ } finally {+ setSaving(false);+ }+ };++ const handleStart = async () => {+ if (starting || !isConnected) {+ return;+ }+ setStarting(true);+ clearFeedback();+ try {+ const payload = await request<BrowserStartPayload>('browser.start');+ const returncode = normalizeReturnCode(payload);+ if (returncode === null) {+ setSuccess('浏览器服务启动请求已发送');+ } else if (returncode === 0) {+ setSuccess('浏览器服务启动成功');+ } else {+ setError(`浏览器服务启动失败,返回码 ${returncode}`);+ }+ } catch (startError) {+ const message = startError instanceof Error ? startError.message : '启动浏览器服务失败';+ setError(message);+ } finally {+ setStarting(false);+ }+ };++ return (+ <div className="flex-1 min-h-0">+ <div className="card w-full h-full flex flex-col">+ <div className="flex items-center justify-between gap-4 mb-4">+ <div>+ <h2 className="text-lg font-semibold">浏览器服务</h2>+ <p className="text-sm text-text-muted mt-1">+ 配置浏览器路径,启动浏览器服务。+ </p>+ </div>+ <div className="flex items-center gap-2">+ <button+ type="button"+ onClick={() => void loadPath()}+ disabled={saving || starting}+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ {loading ? '刷新中...' : '刷新路径'}+ </button>+ </div>+ </div>++ {error ? (+ <div className="mb-4 rounded-md border border-[var(--border-danger)] bg-danger-subtle px-3 py-2 text-sm text-danger">+ {error}+ </div>+ ) : null}+ {success ? (+ <div className="mb-4 rounded-md border border-[var(--border-ok)] bg-ok-subtle px-3 py-2 text-sm text-ok">+ {success}+ </div>+ ) : null}++ <div className="rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm">+ <div className="px-4 py-3 border-b border-border bg-secondary/30">+ <span className="text-xs text-text-muted uppercase tracking-wider font-medium">Chrome 路径配置</span>+ </div>+ <div className="p-4 space-y-4">+ <label className="block space-y-1.5">+ <span className="text-xs uppercase tracking-wide text-text-muted">chrome_path</span>+ <input+ type="text"+ value={chromePath}+ onChange={(event) => {+ setChromePath(event.target.value);+ if (error) setError(null);+ }}+ placeholder="例如:/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"+ className="w-full rounded-md border border-border bg-bg px-3 py-2 text-[13px] text-text outline-none focus:border-accent"+ disabled={loading || saving || starting}+ />+ </label>++ {!isPathValid ? (+ <div className="text-xs text-danger">Chrome 路径不能为空</div>+ ) : null}++ <div className="flex items-center gap-2">+ <button+ type="button"+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ onClick={() => {+ setChromePath(initialPath);+ clearFeedback();+ }}+ disabled={!hasChanges || saving || starting}+ >+ 取消+ </button>+ <button+ type="button"+ className="btn primary !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ onClick={() => void handleSave()}+ disabled={!isConnected || !hasChanges || !isPathValid || saving || starting || loading}+ >+ {saving ? '保存中...' : '保存路径'}+ </button>+ <button+ type="button"+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ onClick={() => void handleStart()}+ disabled={!isConnected || starting || saving}+ >+ {starting ? '启动中...' : '启动浏览器服务'}+ </button>+ </div>+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ChannelsPanel/ChannelsPanel.css b/jiuwenclaw/web/src/components/ChannelsPanel/ChannelsPanel.cssnew file mode 100644index 0000000000..5c53f4e749--- /dev/null+++ b/jiuwenclaw/web/src/components/ChannelsPanel/ChannelsPanel.css@@ -0,0 +1,20 @@+.channels-panel__visibility-toggle {+ position: absolute;+ inset-block: 0;+ right: 0;+ display: flex;+ width: 2.25rem;+ align-items: center;+ justify-content: center;+ color: var(--text-muted);+ transition: color var(--duration-fast) ease;+}++.channels-panel__visibility-toggle:hover {+ color: var(--text);+}++.channels-panel__icon {+ width: 1rem;+ height: 1rem;+}diff --git a/jiuwenclaw/web/src/components/ChannelsPanel/index.tsx b/jiuwenclaw/web/src/components/ChannelsPanel/index.tsxnew file mode 100644index 0000000000..41cd4ac818--- /dev/null+++ b/jiuwenclaw/web/src/components/ChannelsPanel/index.tsx@@ -0,0 +1,865 @@+import { useCallback, useEffect, useMemo, useState } from 'react';+import { webRequest } from '../../services/webClient';+import './ChannelsPanel.css';++interface ChannelsPanelProps {+ isConnected: boolean;+}++type ChannelItem = {+ channel_id: SupportedChannelId;+ label: string;+ logo_src: string | null;+ enabled: boolean;+};++type LoadState = 'idle' | 'loading' | 'success' | 'error';+type SupportedChannelId = 'web' | 'xiaoyi' | 'feishu';++type FeishuConfig = {+ enabled: boolean;+ app_id: string;+ app_secret: string;+ encrypt_key: string;+ verification_token: string;+ allow_from: string[];+};++type FeishuDraft = {+ enabled: boolean;+ app_id: string;+ app_secret: string;+ encrypt_key: string;+ verification_token: string;+ allow_from: string;+};++type XiaoyiConfig = {+ enabled: boolean;+ ak: string;+ sk: string;+ agent_id: string;+ ws_url1: string;+ ws_url2: string;+ enable_streaming: boolean;+};++type XiaoyiDraft = {+ enabled: boolean;+ ak: string;+ sk: string;+ agent_id: string;+ ws_url1: string;+ ws_url2: string;+ enable_streaming: boolean;+};++const DEFAULT_FEISHU_CONF: FeishuConfig = {+ enabled: false,+ app_id: '',+ app_secret: '',+ encrypt_key: '',+ verification_token: '',+ allow_from: [],+};++const DEFAULT_XIAOYI_CONF: XiaoyiConfig = {+ enabled: false,+ ak: '',+ sk: '',+ agent_id: '',+ ws_url1: '',+ ws_url2: '',+ enable_streaming: true,+};++const SUPPORTED_CHANNELS: Array<{ channel_id: SupportedChannelId; label: string; logo_src: string | null }> = [+ { channel_id: 'web', label: '网页', logo_src: null },+ { channel_id: 'xiaoyi', label: '小艺', logo_src: '/xiaoyi.webp' },+ { channel_id: 'feishu', label: '飞书', logo_src: '/feishu.webp' },+];+++function formatTime(iso: string | null): string {+ if (!iso) return '-';+ const date = new Date(iso);+ if (Number.isNaN(date.getTime())) return '-';+ return date.toLocaleTimeString('zh-CN', { hour12: false });+}++function isSensitiveField(field: keyof FeishuDraft): boolean {+ return field === 'app_secret' || field === 'encrypt_key' || field === 'verification_token';+}++function isSensitiveXiaoyiField(field: keyof XiaoyiDraft): boolean {+ return field === 'ak' || field === 'sk';+}++function isReadonlyXiaoyiField(field: keyof XiaoyiDraft): boolean {+ return field === 'ws_url1' || field === 'ws_url2';+}++function normalizeEnabledChannels(channels: unknown): Set<string> {+ if (!Array.isArray(channels)) {+ return new Set();+ }+ return new Set(+ channels+ .map((item) => {+ if (!item || typeof item !== 'object') {+ return null;+ }+ const channelId = (item as { channel_id?: unknown }).channel_id;+ if (typeof channelId !== 'string' || !channelId.trim()) {+ return null;+ }+ return channelId.trim().toLowerCase();+ })+ .filter((item): item is string => item !== null),+ );+}++function buildChannels(channels: unknown): ChannelItem[] {+ const enabledChannels = normalizeEnabledChannels(channels);+ return SUPPORTED_CHANNELS.map((channel) => ({+ ...channel,+ enabled: enabledChannels.has(channel.channel_id),+ }));+}++function normalizeFeishuConfig(input: unknown): FeishuConfig {+ if (!input || typeof input !== 'object') {+ return DEFAULT_FEISHU_CONF;+ }+ const data = input as Record<string, unknown>;+ const allowFromRaw = Array.isArray(data.allow_from) ? data.allow_from : [];+ const allowFrom = allowFromRaw+ .map((item) => String(item ?? '').trim())+ .filter((item) => item.length > 0);+ return {+ enabled: Boolean(data.enabled),+ app_id: String(data.app_id ?? '').trim(),+ app_secret: String(data.app_secret ?? '').trim(),+ encrypt_key: String(data.encrypt_key ?? '').trim(),+ verification_token: String(data.verification_token ?? '').trim(),+ allow_from: allowFrom,+ };+}++function draftFromFeishuConfig(conf: FeishuConfig): FeishuDraft {+ return {+ enabled: conf.enabled,+ app_id: conf.app_id,+ app_secret: conf.app_secret,+ encrypt_key: conf.encrypt_key,+ verification_token: conf.verification_token,+ allow_from: conf.allow_from.join('\n'),+ };+}++function normalizeAllowFromText(text: string): string[] {+ return text+ .split(/[\n,]/)+ .map((item) => item.trim())+ .filter((item) => item.length > 0);+}++function buildFeishuPayload(draft: FeishuDraft): Record<string, unknown> {+ return {+ enabled: draft.enabled,+ app_id: draft.app_id.trim(),+ app_secret: draft.app_secret.trim(),+ encrypt_key: draft.encrypt_key.trim(),+ verification_token: draft.verification_token.trim(),+ allow_from: normalizeAllowFromText(draft.allow_from),+ };+}++function normalizeXiaoyiConfig(input: unknown): XiaoyiConfig {+ if (!input || typeof input !== 'object') {+ return DEFAULT_XIAOYI_CONF;+ }+ const data = input as Record<string, unknown>;+ return {+ enabled: Boolean(data.enabled),+ ak: String(data.ak ?? '').trim(),+ sk: String(data.sk ?? '').trim(),+ agent_id: String(data.agent_id ?? '').trim(),+ ws_url1: String(data.ws_url1 ?? '').trim(),+ ws_url2: String(data.ws_url2 ?? '').trim(),+ enable_streaming: data.enable_streaming === undefined ? true : Boolean(data.enable_streaming),+ };+}++function draftFromXiaoyiConfig(conf: XiaoyiConfig): XiaoyiDraft {+ return {+ enabled: conf.enabled,+ ak: conf.ak,+ sk: conf.sk,+ agent_id: conf.agent_id,+ ws_url1: conf.ws_url1,+ ws_url2: conf.ws_url2,+ enable_streaming: conf.enable_streaming,+ };+}++function buildXiaoyiPayload(draft: XiaoyiDraft): Record<string, unknown> {+ return {+ enabled: draft.enabled,+ ak: draft.ak.trim(),+ sk: draft.sk.trim(),+ agent_id: draft.agent_id.trim(),+ ws_url1: draft.ws_url1.trim(),+ ws_url2: draft.ws_url2.trim(),+ enable_streaming: draft.enable_streaming,+ };+}++function VisibilityIcon({ visible }: { visible: boolean }) {+ return visible ? (+ <svg className="channels-panel__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M3 3l18 18" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M10.58 10.58A2 2 0 0013.42 13.42" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M9.88 5.09A10.94 10.94 0 0112 4.9c5.05 0 9.27 3.11 10.5 7.5a11.6 11.6 0 01-3.06 4.88" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M6.61 6.61A11.6 11.6 0 001.5 12.4c.53 1.9 1.63 3.56 3.11 4.79" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M14.12 14.12a3 3 0 01-4.24-4.24" />+ </svg>+ ) : (+ <svg className="channels-panel__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M1.5 12s3.75-7.5 10.5-7.5S22.5 12 22.5 12s-3.75 7.5-10.5 7.5S1.5 12 1.5 12z" />+ <circle cx="12" cy="12" r="3" />+ </svg>+ );+}++function ChannelLogo({ channel }: { channel: ChannelItem }) {+ if (channel.logo_src) {+ return (+ <img+ src={channel.logo_src}+ alt={`${channel.label} logo`}+ className="h-6 w-6 rounded-md border border-border object-contain bg-card"+ />+ );+ }+ return (+ <span className="h-6 w-6 rounded-md border border-border bg-card flex items-center justify-center text-text-muted">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.8} className="h-5 w-5">+ <circle cx="12" cy="12" r="9" />+ <path strokeLinecap="round" d="M3 12h18M12 3c2.5 2.2 4 5.5 4 9s-1.5 6.8-4 9m0-18c-2.5 2.2-4 5.5-4 9s1.5 6.8 4 9" />+ </svg>+ </span>+ );+}++function ChannelHeaderLogo({ channelId, label }: { channelId: SupportedChannelId; label: string }) {+ const logoSrc = SUPPORTED_CHANNELS.find((channel) => channel.channel_id === channelId)?.logo_src ?? null;+ if (logoSrc) {+ return (+ <img+ src={logoSrc}+ alt={`${label} logo`}+ className="h-9 w-9 rounded-lg border border-border object-contain bg-card"+ />+ );+ }+ return (+ <span className="h-9 w-9 rounded-lg border border-border bg-card flex items-center justify-center text-text-muted">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.6} className="h-7 w-7">+ <circle cx="12" cy="12" r="9" />+ <path strokeLinecap="round" d="M3 12h18M12 3c2.5 2.2 4 5.5 4 9s-1.5 6.8-4 9m0-18c-2.5 2.2-4 5.5-4 9s1.5 6.8 4 9" />+ </svg>+ </span>+ );+}++export function ChannelsPanel({ isConnected }: ChannelsPanelProps) {+ const [channels, setChannels] = useState<ChannelItem[]>(() => buildChannels([]));+ const [activeChannelId, setActiveChannelId] = useState<SupportedChannelId>('xiaoyi');+ const [loadState, setLoadState] = useState<LoadState>('idle');+ const [error, setError] = useState<string | null>(null);+ const [lastUpdatedAt, setLastUpdatedAt] = useState<string | null>(null);++ const [feishuConfig, setFeishuConfig] = useState<FeishuConfig>(DEFAULT_FEISHU_CONF);+ const [draft, setDraft] = useState<FeishuDraft>(draftFromFeishuConfig(DEFAULT_FEISHU_CONF));+ const [visibleFields, setVisibleFields] = useState<Record<string, boolean>>({});+ const [feishuLoading, setFeishuLoading] = useState(false);+ const [saving, setSaving] = useState(false);+ const [saveError, setSaveError] = useState<string | null>(null);+ const [success, setSuccess] = useState<string | null>(null);+ const [xiaoyiConfig, setXiaoyiConfig] = useState<XiaoyiConfig>(DEFAULT_XIAOYI_CONF);+ const [xiaoyiDraft, setXiaoyiDraft] = useState<XiaoyiDraft>(draftFromXiaoyiConfig(DEFAULT_XIAOYI_CONF));+ const [xiaoyiVisibleFields, setXiaoyiVisibleFields] = useState<Record<string, boolean>>({});+ const [xiaoyiLoading, setXiaoyiLoading] = useState(false);+ const [xiaoyiSaving, setXiaoyiSaving] = useState(false);+ const [xiaoyiSaveError, setXiaoyiSaveError] = useState<string | null>(null);+ const [xiaoyiSuccess, setXiaoyiSuccess] = useState<string | null>(null);++ const fetchChannels = useCallback(async () => {+ setLoadState('loading');+ setError(null);+ try {+ const payload = await webRequest<{ channels?: unknown[] }>('channel.get');+ setChannels(buildChannels(payload?.channels));+ setLoadState('success');+ setLastUpdatedAt(new Date().toISOString());+ } catch (err) {+ setChannels(buildChannels([]));+ setLoadState('error');+ setError(err instanceof Error ? err.message : '获取 channels 失败');+ }+ }, []);++ useEffect(() => {+ void fetchChannels();+ }, [fetchChannels]);++ const fetchFeishuConfig = useCallback(async () => {+ setFeishuLoading(true);+ setSaveError(null);+ setSuccess(null);+ try {+ const payload = await webRequest<{ config?: unknown }>('channel.feishu.get_conf');+ const normalized = normalizeFeishuConfig(payload?.config);+ setFeishuConfig(normalized);+ setDraft(draftFromFeishuConfig(normalized));+ setVisibleFields({});+ } catch (err) {+ setSaveError(err instanceof Error ? err.message : '获取飞书配置失败');+ } finally {+ setFeishuLoading(false);+ }+ }, []);++ const fetchXiaoyiConfig = useCallback(async () => {+ setXiaoyiLoading(true);+ setXiaoyiSaveError(null);+ setXiaoyiSuccess(null);+ try {+ const payload = await webRequest<{ config?: unknown }>('channel.xiaoyi.get_conf');+ const normalized = normalizeXiaoyiConfig(payload?.config);+ setXiaoyiConfig(normalized);+ setXiaoyiDraft(draftFromXiaoyiConfig(normalized));+ setXiaoyiVisibleFields({});+ } catch (err) {+ setXiaoyiSaveError(err instanceof Error ? err.message : '获取小艺配置失败');+ } finally {+ setXiaoyiLoading(false);+ }+ }, []);++ const handleSelectChannel = useCallback(+ (channelId: SupportedChannelId) => {+ setActiveChannelId(channelId);+ },+ [],+ );++ useEffect(() => {+ if (activeChannelId === 'feishu') {+ void fetchFeishuConfig();+ return;+ }+ if (activeChannelId === 'xiaoyi') {+ void fetchXiaoyiConfig();+ }+ }, [activeChannelId, fetchFeishuConfig, fetchXiaoyiConfig]);++ const statusText = useMemo(() => {+ const enabledCount = channels.filter((channel) => channel.enabled).length;+ if (loadState === 'loading') {+ return '加载中...';+ }+ if (loadState === 'error') {+ return '加载失败';+ }+ return `${enabledCount}/${channels.length} 已启用`;+ }, [channels, loadState]);++ const hasConfigChanges = useMemo(() => {+ const baseDraft = draftFromFeishuConfig(feishuConfig);+ return (+ baseDraft.enabled !== draft.enabled ||+ baseDraft.app_id !== draft.app_id ||+ baseDraft.app_secret !== draft.app_secret ||+ baseDraft.encrypt_key !== draft.encrypt_key ||+ baseDraft.verification_token !== draft.verification_token ||+ normalizeAllowFromText(baseDraft.allow_from).join('\n') !== normalizeAllowFromText(draft.allow_from).join('\n')+ );+ }, [draft, feishuConfig]);+ const hasXiaoyiConfigChanges = useMemo(() => {+ const baseDraft = draftFromXiaoyiConfig(xiaoyiConfig);+ return (+ baseDraft.enabled !== xiaoyiDraft.enabled ||+ baseDraft.ak !== xiaoyiDraft.ak ||+ baseDraft.sk !== xiaoyiDraft.sk ||+ baseDraft.agent_id !== xiaoyiDraft.agent_id ||+ baseDraft.ws_url1 !== xiaoyiDraft.ws_url1 ||+ baseDraft.ws_url2 !== xiaoyiDraft.ws_url2 ||+ baseDraft.enable_streaming !== xiaoyiDraft.enable_streaming+ );+ }, [xiaoyiConfig, xiaoyiDraft]);++ const handleFieldChange = <K extends keyof FeishuDraft>(key: K, value: FeishuDraft[K]) => {+ setDraft((prev) => ({ ...prev, [key]: value }));+ if (saveError) {+ setSaveError(null);+ }+ if (success) {+ setSuccess(null);+ }+ };++ const handleCancelConfig = () => {+ if (!hasConfigChanges) return;+ setDraft(draftFromFeishuConfig(feishuConfig));+ setSaveError(null);+ setSuccess(null);+ };++ const toggleFieldVisible = (field: keyof FeishuDraft) => {+ setVisibleFields((prev) => ({ ...prev, [field]: !prev[field] }));+ };++ const handleXiaoyiFieldChange = <K extends keyof XiaoyiDraft>(key: K, value: XiaoyiDraft[K]) => {+ setXiaoyiDraft((prev) => ({ ...prev, [key]: value }));+ if (xiaoyiSaveError) {+ setXiaoyiSaveError(null);+ }+ if (xiaoyiSuccess) {+ setXiaoyiSuccess(null);+ }+ };++ const handleCancelXiaoyiConfig = () => {+ if (!hasXiaoyiConfigChanges) return;+ setXiaoyiDraft(draftFromXiaoyiConfig(xiaoyiConfig));+ setXiaoyiSaveError(null);+ setXiaoyiSuccess(null);+ };++ const toggleXiaoyiFieldVisible = (field: keyof XiaoyiDraft) => {+ setXiaoyiVisibleFields((prev) => ({ ...prev, [field]: !prev[field] }));+ };++ const handleSaveConfig = async () => {+ if (!hasConfigChanges || saving) return;+ setSaving(true);+ setSaveError(null);+ try {+ const payload = buildFeishuPayload(draft);+ const result = await webRequest<{ config?: unknown }>('channel.feishu.set_conf', payload);+ const normalized = normalizeFeishuConfig(result?.config);+ setFeishuConfig(normalized);+ setDraft(draftFromFeishuConfig(normalized));+ setSuccess('飞书配置已保存');+ } catch (saveErr) {+ const message = saveErr instanceof Error ? saveErr.message : '保存失败,请稍后重试';+ setSaveError(message);+ } finally {+ setSaving(false);+ }+ };++ const handleSaveXiaoyiConfig = async () => {+ if (!hasXiaoyiConfigChanges || xiaoyiSaving) return;+ setXiaoyiSaving(true);+ setXiaoyiSaveError(null);+ try {+ const payload = buildXiaoyiPayload(xiaoyiDraft);+ const result = await webRequest<{ config?: unknown }>('channel.xiaoyi.set_conf', payload);+ const normalized = normalizeXiaoyiConfig(result?.config);+ setXiaoyiConfig(normalized);+ setXiaoyiDraft(draftFromXiaoyiConfig(normalized));+ setXiaoyiSuccess('小艺配置已保存');+ } catch (saveErr) {+ const message = saveErr instanceof Error ? saveErr.message : '保存失败,请稍后重试';+ setXiaoyiSaveError(message);+ } finally {+ setXiaoyiSaving(false);+ }+ };++ const isConfigRefreshing = feishuLoading || xiaoyiLoading;+ const configErrorNotice = useMemo(() => {+ return Array.from(new Set([saveError, xiaoyiSaveError].filter((message): message is string => Boolean(message)))).join(';');+ }, [saveError, xiaoyiSaveError]);+ useEffect(() => {+ if (!configErrorNotice) {+ return;+ }+ const timer = window.setTimeout(() => {+ setSaveError(null);+ setXiaoyiSaveError(null);+ }, 2000);+ return () => {+ window.clearTimeout(timer);+ };+ }, [configErrorNotice]);++ return (+ <div className="flex-1 min-h-0 relative">+ <div className="card w-full h-full flex flex-col">+ {configErrorNotice ? (+ <div className="pointer-events-none absolute top-3 left-1/2 -translate-x-1/2 z-20">+ <div className="bg-danger text-white px-4 py-2 rounded-lg shadow-lg animate-rise text-sm">+ {configErrorNotice}+ </div>+ </div>+ ) : null}+ <div className="flex items-center justify-between gap-4 mb-4">+ <div>+ <h2 className="text-lg font-semibold">频道管理</h2>+ <p className="text-sm text-text-muted mt-1">查看并管理频道服务</p>+ </div>+ <div className="flex items-center gap-2" />+ </div>++ {error ? (+ <div className="border border-[var(--border-danger)] bg-danger-subtle rounded-lg p-4 text-sm text-danger flex items-center justify-between">+ <span>获取失败:{error}</span>+ <button onClick={() => void fetchChannels()} className="btn !px-3 !py-1.5">+ 重试+ </button>+ </div>+ ) : (+ <div className="flex-1 min-h-0 grid grid-cols-[minmax(0,3fr)_minmax(0,7fr)] gap-4">+ <section className="min-w-[260px] rounded-xl border border-border bg-card/70 backdrop-blur-sm shadow-sm flex flex-col min-h-0 overflow-hidden">+ <div className="px-4 py-3 bg-secondary/30 border-b border-border">+ <div className="flex items-start justify-between gap-4">+ <div>+ <h3 className="text-sm font-medium text-text">频道列表</h3>+ <p className="text-xs text-text-muted mt-1 mono">+ 频道个数:{statusText},刷新时间:{formatTime(lastUpdatedAt)}+ </p>+ </div>+ <button+ type="button"+ onClick={() => void fetchChannels()}+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ disabled={loadState === 'loading'}+ >+ {loadState === 'loading' ? '刷新中...' : '刷新'}+ </button>+ </div>+ </div>+ <div className="overflow-auto flex-1 min-h-0 p-3">+ {loadState === 'loading' ? (+ <div className="space-y-2">+ <div className="h-10 rounded-lg border border-border bg-secondary/40" />+ <div className="h-10 rounded-lg border border-border bg-secondary/30" />+ </div>+ ) : (+ <div className="space-y-2">+ {channels.map((channel, index) => (+ <button+ type="button"+ key={channel.channel_id}+ onClick={() => handleSelectChannel(channel.channel_id)}+ className={`w-full rounded-xl border px-4 py-3.5 text-left transition-colors ${+ activeChannelId === channel.channel_id+ ? 'border-accent bg-accent-subtle text-text'+ : 'border-border bg-card text-text hover:bg-bg-hover'+ }`}+ >+ <div className="flex items-center justify-between gap-3">+ <div className="flex items-center gap-3 min-w-0">+ <span className="text-xs px-2.5 py-1 rounded-full border border-border bg-secondary text-text-muted font-medium">+ #{index + 1}+ </span>+ <ChannelLogo channel={channel} />+ <span className="text-sm font-medium text-text">{channel.label}</span>+ <span className="mono text-xs px-2.5 py-1 rounded-md border border-border bg-secondary text-text-muted">+ {channel.channel_id}+ </span>+ </div>+ <span+ className={`text-xs px-2.5 py-1 rounded-full border font-medium ${+ channel.enabled+ ? 'text-ok border-ok bg-ok-subtle'+ : 'text-text-muted border-border bg-secondary'+ }`}+ >+ {channel.enabled ? '已启用' : '未启用'}+ </span>+ </div>+ </button>+ ))}+ </div>+ )}+ </div>+ </section>++ <section className="min-h-0 flex">+ {activeChannelId === 'web' ? (+ <div className="w-full h-full rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm flex flex-col">+ <div className="px-4 py-3 bg-secondary/30 border-b border-border">+ <div className="flex items-center gap-3">+ <ChannelHeaderLogo channelId="web" label="网页" />+ <div>+ <h4 className="text-sm font-medium text-text">网页频道参数配置</h4>+ <p className="text-xs text-text-muted mt-1">配置网页频道服务相关参数</p>+ </div>+ </div>+ </div>+ <div className="p-4 text-sm text-text-muted flex-1 overflow-auto flex items-center justify-center text-center">+ 网页频道暂无配置,点击其他频道加载配置。+ </div>+ </div>+ ) : null}++ {activeChannelId === 'xiaoyi' ? (+ <div className="w-full h-full rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm flex flex-col">+ <div className="px-4 py-3 bg-secondary/30 border-b border-border">+ <div className="flex items-center justify-between gap-4">+ <div className="flex items-center gap-3">+ <ChannelHeaderLogo channelId="xiaoyi" label="小艺" />+ <div>+ <h4 className="text-sm font-medium text-text">小艺频道参数配置</h4>+ <p className="text-xs text-text-muted mt-1">配置小艺频道服务相关参数</p>+ </div>+ </div>+ <div className="flex items-center gap-2">+ <button+ type="button"+ onClick={() => void fetchXiaoyiConfig()}+ disabled={xiaoyiSaving || isConfigRefreshing}+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ {xiaoyiLoading ? '刷新中...' : '刷新'}+ </button>+ <button+ type="button"+ onClick={handleCancelXiaoyiConfig}+ disabled={!hasXiaoyiConfigChanges || xiaoyiSaving}+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ 取消+ </button>+ <button+ type="button"+ onClick={() => void handleSaveXiaoyiConfig()}+ disabled={!hasXiaoyiConfigChanges || xiaoyiSaving || !isConnected}+ className="btn primary !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ {xiaoyiSaving ? '保存中...' : '保存'}+ </button>+ </div>+ </div>+ </div>++ {xiaoyiSuccess ? (+ <div className="mx-4 mt-4 rounded-md border border-[var(--border-ok)] bg-ok-subtle px-3 py-2 text-sm text-ok">+ {xiaoyiSuccess}+ </div>+ ) : null}++ <div className="p-4 pt-3 flex-1 overflow-auto">+ {xiaoyiLoading ? (+ <div className="text-sm text-text-muted">正在加载小艺配置...</div>+ ) : (+ <table className="w-full text-sm">+ <tbody>+ <tr className="border-t border-border first:border-t-0 even:bg-secondary/10">+ <td className="px-4 py-2.5 align-middle mono text-xs text-text-muted w-[32%]">enabled</td>+ <td className="px-4 py-2.5 align-middle">+ <button+ type="button"+ role="switch"+ aria-checked={xiaoyiDraft.enabled}+ onClick={() => handleXiaoyiFieldChange('enabled', !xiaoyiDraft.enabled)}+ className={`relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 focus:outline-none ${+ xiaoyiDraft.enabled ? 'bg-ok' : 'bg-secondary'+ }`}+ >+ <span+ className={`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition duration-200 ${+ xiaoyiDraft.enabled ? 'translate-x-4' : 'translate-x-0'+ }`}+ />+ </button>+ </td>+ </tr>+ {(['ak', 'sk', 'agent_id', 'ws_url1', 'ws_url2'] as const).map((field) => (+ <tr key={field} className="border-t border-border first:border-t-0 even:bg-secondary/10">+ <td className="px-4 py-2.5 align-middle mono text-xs text-text-muted w-[32%]">{field}</td>+ <td className="px-4 py-2.5 break-all text-[13px] align-middle">+ <div className="relative">+ <input+ type={isSensitiveXiaoyiField(field) && !xiaoyiVisibleFields[field] ? 'password' : 'text'}+ value={xiaoyiDraft[field]}+ onChange={(e) => handleXiaoyiFieldChange(field, e.target.value)}+ placeholder="请输入配置值"+ className={`w-full rounded-md border border-border bg-bg px-3 py-2 text-[13px] outline-none focus:border-accent ${+ isSensitiveXiaoyiField(field) ? 'pr-10' : ''+ } ${isReadonlyXiaoyiField(field) ? 'bg-secondary/30 text-text-muted focus:border-border' : ''}`}+ readOnly={isReadonlyXiaoyiField(field)}+ />+ {isSensitiveXiaoyiField(field) ? (+ <button+ type="button"+ onClick={() => toggleXiaoyiFieldVisible(field)}+ className="channels-panel__visibility-toggle"+ aria-label={xiaoyiVisibleFields[field] ? '隐藏明文' : '显示明文'}+ title={xiaoyiVisibleFields[field] ? '隐藏明文' : '显示明文'}+ >+ <VisibilityIcon visible={Boolean(xiaoyiVisibleFields[field])} />+ </button>+ ) : null}+ </div>+ </td>+ </tr>+ ))}+ <tr className="border-t border-border first:border-t-0 even:bg-secondary/10">+ <td className="px-4 py-2.5 align-middle mono text-xs text-text-muted w-[32%]">enable_streaming</td>+ <td className="px-4 py-2.5 align-middle">+ <button+ type="button"+ role="switch"+ aria-checked={xiaoyiDraft.enable_streaming}+ onClick={() => handleXiaoyiFieldChange('enable_streaming', !xiaoyiDraft.enable_streaming)}+ className={`relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 focus:outline-none ${+ xiaoyiDraft.enable_streaming ? 'bg-ok' : 'bg-secondary'+ }`}+ >+ <span+ className={`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition duration-200 ${+ xiaoyiDraft.enable_streaming ? 'translate-x-4' : 'translate-x-0'+ }`}+ />+ </button>+ </td>+ </tr>+ </tbody>+ </table>+ )}+ </div>+ </div>+ ) : null}++ {activeChannelId === 'feishu' ? (+ <div className="w-full h-full rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm flex flex-col">+ <div className="px-4 py-3 bg-secondary/30 border-b border-border">+ <div className="flex items-center justify-between gap-4">+ <div className="flex items-center gap-3">+ <ChannelHeaderLogo channelId="feishu" label="飞书" />+ <div>+ <h4 className="text-sm font-medium text-text">飞书频道参数配置</h4>+ <p className="text-xs text-text-muted mt-1">配置飞书频道服务相关参数</p>+ </div>+ </div>+ <div className="flex items-center gap-2">+ <button+ type="button"+ onClick={() => void fetchFeishuConfig()}+ disabled={saving || isConfigRefreshing}+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ {feishuLoading ? '刷新中...' : '刷新'}+ </button>+ <button+ type="button"+ onClick={handleCancelConfig}+ disabled={!hasConfigChanges || saving}+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ 取消+ </button>+ <button+ type="button"+ onClick={() => void handleSaveConfig()}+ disabled={!hasConfigChanges || saving || !isConnected}+ className="btn primary !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ {saving ? '保存中...' : '保存'}+ </button>+ </div>+ </div>+ </div>++ {success ? (+ <div className="mx-4 mt-4 rounded-md border border-[var(--border-ok)] bg-ok-subtle px-3 py-2 text-sm text-ok">+ {success}+ </div>+ ) : null}++ <div className="p-4 pt-3 flex-1 overflow-auto">+ {feishuLoading ? (+ <div className="text-sm text-text-muted">正在加载飞书配置...</div>+ ) : (+ <table className="w-full text-sm">+ <tbody>+ <tr className="border-t border-border first:border-t-0 even:bg-secondary/10">+ <td className="px-4 py-2.5 align-middle mono text-xs text-text-muted w-[32%]">enabled</td>+ <td className="px-4 py-2.5 align-middle">+ <button+ type="button"+ role="switch"+ aria-checked={draft.enabled}+ onClick={() => handleFieldChange('enabled', !draft.enabled)}+ className={`relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 focus:outline-none ${+ draft.enabled ? 'bg-ok' : 'bg-secondary'+ }`}+ >+ <span+ className={`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition duration-200 ${+ draft.enabled ? 'translate-x-4' : 'translate-x-0'+ }`}+ />+ </button>+ </td>+ </tr>+ {(['app_id', 'app_secret', 'encrypt_key', 'verification_token'] as const).map((field) => (+ <tr key={field} className="border-t border-border first:border-t-0 even:bg-secondary/10">+ <td className="px-4 py-2.5 align-middle mono text-xs text-text-muted w-[32%]">{field}</td>+ <td className="px-4 py-2.5 break-all text-[13px] align-middle">+ <div className="relative">+ <input+ type={isSensitiveField(field) && !visibleFields[field] ? 'password' : 'text'}+ value={draft[field]}+ onChange={(e) => handleFieldChange(field, e.target.value)}+ placeholder="请输入配置值"+ className={`w-full rounded-md border border-border bg-bg px-3 py-2 text-[13px] outline-none focus:border-accent ${+ isSensitiveField(field) ? 'pr-10' : ''+ }`}+ />+ {isSensitiveField(field) ? (+ <button+ type="button"+ onClick={() => toggleFieldVisible(field)}+ className="channels-panel__visibility-toggle"+ aria-label={visibleFields[field] ? '隐藏明文' : '显示明文'}+ title={visibleFields[field] ? '隐藏明文' : '显示明文'}+ >+ <VisibilityIcon visible={Boolean(visibleFields[field])} />+ </button>+ ) : null}+ </div>+ </td>+ </tr>+ ))}+ <tr className="border-t border-border first:border-t-0 even:bg-secondary/10">+ <td className="px-4 py-2.5 align-top mono text-xs text-text-muted w-[32%]">allow_from</td>+ <td className="px-4 py-2.5 break-all text-[13px] align-middle">+ <textarea+ value={draft.allow_from}+ onChange={(e) => handleFieldChange('allow_from', e.target.value)}+ placeholder="每行一个 ID(也支持逗号分隔)"+ rows={4}+ className="w-full rounded-md border border-border bg-bg px-3 py-2 text-[13px] outline-none focus:border-accent resize-y"+ />+ </td>+ </tr>+ </tbody>+ </table>+ )}+ </div>+ </div>+ ) : null}+ </section>+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/ChatPanel.css b/jiuwenclaw/web/src/components/ChatPanel/ChatPanel.cssnew file mode 100644index 0000000000..8571c020b1--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/ChatPanel.css@@ -0,0 +1,397 @@+/* Input/welcome vertical alignment tuning */+:root {+ --chat-input-textarea-min-height: 96px;+}++/* ===========================+ ChatPanel - Input Area+ =========================== */++.chat-input-container {+ display: flex;+ flex-direction: column;+ border: 1px solid var(--input);+ border-radius: var(--radius-xl);+ background: var(--card);+ box-shadow:+ inset 0 1px 0 var(--card-highlight),+ 0 2px 12px rgba(0, 0, 0, 0.08);+ transition:+ border-color var(--duration-fast) ease,+ box-shadow var(--duration-normal) ease;+ overflow: hidden;+}++.chat-input-container:focus-within {+ border-color: var(--border-strong);+}++.chat-input-container--recording {+ border-color: var(--danger) !important;+}++/* Recording bar */+.chat-input-recording-bar {+ display: flex;+ align-items: center;+ gap: 8px;+ padding: 6px 16px;+ font-size: var(--font-size-xs);+ color: var(--danger);+ background: var(--danger-subtle);+ border-bottom: 1px solid rgba(239, 68, 68, 0.15);+}++.chat-input-recording-dot {+ width: 8px;+ height: 8px;+ border-radius: var(--radius-full);+ background: var(--danger);+ animation: pulse-subtle 1.2s ease-in-out infinite;+}++/* Textarea */+.chat-input-textarea {+ width: 100%;+ min-height: var(--chat-input-textarea-min-height);+ max-height: 200px;+ padding: 14px 16px 12px;+ border: none;+ background: transparent;+ resize: none;+ font-family: var(--font-body);+ font-size: var(--font-size-base);+ line-height: 1.6;+ color: var(--text);+ outline: none;+}++.chat-input-textarea::placeholder {+ color: var(--muted);+}++.chat-input-textarea:focus-visible {+ box-shadow: none;+}++/* Toolbar (hints + actions) */+.chat-input-toolbar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: 8px 8px 8px 16px;+ gap: 12px;+ border-top: 1px solid color-mix(in srgb, var(--border) 58%, transparent);+}++.chat-input-toolbar-left {+ display: flex;+ align-items: center;+ gap: 12px;+ min-width: 0;+}++.chat-mode-switch {+ --chat-mode-gap: 4px;+ --chat-mode-pad: 4px;+ position: relative;+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: var(--chat-mode-gap);+ padding: var(--chat-mode-pad);+ border-radius: var(--radius-full);+ border: 1px solid var(--border);+ background: var(--secondary);+}++.chat-mode-switch__indicator {+ position: absolute;+ top: var(--chat-mode-pad);+ left: var(--chat-mode-pad);+ bottom: var(--chat-mode-pad);+ width: calc((100% - (var(--chat-mode-pad) * 2) - var(--chat-mode-gap)) / 2);+ border-radius: var(--radius-full);+ transform: translateX(calc(var(--chat-mode-index, 0) * (100% + var(--chat-mode-gap))));+ background: var(--accent);+ transition: transform var(--duration-normal) var(--ease-out);+ z-index: 0;+}++.chat-mode-btn {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 6px;+ padding: 6px 12px;+ min-height: 32px;+ border: 0;+ border-radius: var(--radius-full);+ background: transparent;+ color: var(--muted);+ font-size: var(--font-size-xs);+ font-weight: 600;+ cursor: pointer;+ position: relative;+ z-index: 1;+ white-space: nowrap;+ transition: color var(--duration-fast) ease;+}++.chat-mode-btn--active {+ color: var(--accent-foreground);+}++.chat-mode-btn--inactive {+ color: var(--muted);+}++.chat-mode-btn--inactive:hover {+ background: var(--bg-hover);+ color: var(--text);+}++/* Keyboard hints */+.chat-input-hints {+ display: flex;+ align-items: center;+ gap: 6px;+ font-size: var(--font-size-2xs);+ color: var(--muted);+ user-select: none;+ flex-shrink: 0;+ opacity: 0.7;+ transition: opacity var(--duration-fast) ease;+}++.chat-input-container:focus-within .chat-input-hints {+ opacity: 1;+}++/* Action buttons */+.chat-input-actions {+ display: flex;+ align-items: center;+ gap: 4px;+ flex-shrink: 0;+}++.chat-input-btn {+ display: flex;+ align-items: center;+ justify-content: center;+ width: 34px;+ height: 34px;+ padding: 0;+ border: none;+ border-radius: var(--radius-md);+ background: transparent;+ color: var(--muted);+ cursor: pointer;+ transition:+ background var(--duration-fast) ease,+ color var(--duration-fast) ease,+ transform var(--duration-fast) ease;+}++.chat-input-btn:hover:not(:disabled) {+ background: var(--bg-hover);+ color: var(--text);+}++.chat-input-btn:active:not(:disabled) {+ transform: scale(0.92);+}++.chat-input-btn--disabled {+ opacity: 0.4;+ cursor: not-allowed;+}++.chat-input-btn--recording {+ background: var(--danger) !important;+ color: white !important;+ animation: pulse-subtle 1.2s ease-in-out infinite;+}++.chat-input-btn--recording:active:not(:disabled) {+ transform: none;+}++.chat-input-btn--send {+ border-radius: var(--radius-lg);+}++.chat-input-btn--send-active {+ background: var(--accent);+ color: white;+}++.chat-input-btn--send-active:hover {+ background: var(--accent-hover);+ color: white;+ box-shadow: 0 2px 8px var(--accent-glow);+}++.chat-input-btn-icon {+ width: 18px;+ height: 18px;+}++/* Light theme overrides */+:root[data-theme="light"] .chat-input-container {+ background: #fff;+ box-shadow:+ 0 1px 3px rgba(0, 0, 0, 0.06),+ 0 0 0 1px rgba(0, 0, 0, 0.04);+}++:root[data-theme="light"] .chat-input-container:focus-within {+ border-color: var(--border-strong);+}++/* ===========================+ ChatPanel - Welcome & Layout+ =========================== */++/* Welcome screen */+.chat-welcome {+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ height: 100%;+ padding: 2rem 1.5rem;+ animation: rise 0.45s var(--ease-out) backwards;+}++.chat-welcome__logo {+ width: 64px;+ height: 64px;+ margin-bottom: 1.5rem;+ border-radius: var(--radius-xl);+ object-fit: contain;+ filter: drop-shadow(0 4px 12px rgba(96, 165, 250, 0.2));+}++.chat-welcome__heading {+ font-size: 1.35rem;+ font-weight: 600;+ color: var(--text-strong);+ margin-bottom: 0.5rem;+ text-align: center;+}++.chat-welcome__subtext {+ font-size: var(--font-size-sm);+ color: var(--muted);+ text-align: center;+ max-width: 360px;+ line-height: 1.6;+ margin-bottom: 2rem;+ white-space: nowrap;+}++/* Suggestion cards */+.chat-suggestions {+ display: flex;+ flex-direction: column;+ gap: 0.625rem;+ width: 100%;+ max-width: 480px;+}++.chat-suggestion-card {+ display: none;+ align-items: center;+ gap: 0.75rem;+ padding: 0.875rem 1rem;+ border-radius: var(--radius-lg);+ border: 1px solid var(--border);+ background: var(--card);+ color: var(--text);+ cursor: pointer;+ transition:+ border-color var(--duration-fast) ease,+ background var(--duration-fast) ease,+ box-shadow var(--duration-fast) ease,+ transform var(--duration-fast) ease;+}++.chat-suggestion-card:hover {+ border-color: var(--accent);+ background: var(--accent-subtle);+ box-shadow: 0 4px 16px rgba(96, 165, 250, 0.12);+ transform: translateY(-1px);+}++.chat-suggestion-card__icon {+ flex-shrink: 0;+ width: 20px;+ height: 20px;+ color: var(--accent);+}++.chat-suggestion-card__text {+ flex: 1;+ font-size: var(--font-size-sm);+ font-weight: 500;+ line-height: 1.4;+}++.chat-suggestion-card__arrow {+ flex-shrink: 0;+ width: 16px;+ height: 16px;+ color: var(--muted);+ transition: color var(--duration-fast) ease, transform var(--duration-fast) ease;+}++.chat-suggestion-card:hover .chat-suggestion-card__arrow {+ color: var(--accent);+ transform: translateX(2px);+}++/* Light theme overrides */+:root[data-theme="light"] .chat-suggestion-card {+ background: #fff;+ box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);+}++:root[data-theme="light"] .chat-suggestion-card:hover {+ background: rgba(96, 165, 250, 0.08);+ box-shadow: 0 4px 16px rgba(96, 165, 250, 0.1);+}++@media (min-width: 1440px) {+ .chat-welcome__logo {+ width: 72px;+ height: 72px;+ }++ .chat-welcome__heading {+ font-size: 1.5rem;+ }++ .chat-welcome__subtext {+ max-width: 460px;+ }++ .chat-suggestions {+ max-width: 560px;+ }+}++@media (min-width: 1920px) {+ .chat-welcome__logo {+ width: 80px;+ height: 80px;+ }++ .chat-welcome__heading {+ font-size: 1.65rem;+ }++ .chat-suggestions {+ max-width: 640px;+ }+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/InlineQuestionCard.tsx b/jiuwenclaw/web/src/components/ChatPanel/InlineQuestionCard.tsxnew file mode 100644index 0000000000..3f93ac018d--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/InlineQuestionCard.tsx@@ -0,0 +1,190 @@+/**+ * InlineQuestionCard 组件+ *+ * 在聊天流内以内联卡片形式展示用户审批请求(接收/拒绝),+ * 替代全屏大弹窗(UserQuestionModal)。+ * 点击选项后立即提交,卡片切换为已确认状态保留在消息流中。+ */++import { useState, useCallback } from 'react';+import { useChatStore } from '../../stores';+import { UserAnswer } from '../../types';+import ReactMarkdown from 'react-markdown';+import remarkGfm from 'remark-gfm';++interface InlineQuestionCardProps {+ onSubmit: (requestId: string, answers: UserAnswer[]) => void;+}++export function InlineQuestionCard({ onSubmit }: InlineQuestionCardProps) {+ const { pendingQuestion, setPendingQuestion } = useChatStore();+ const [submittedAnswers, setSubmittedAnswers] = useState<Map<string, string>>(new Map());++ const handleSelect = useCallback(+ (requestId: string, questionIndex: number, optionLabel: string, isMultiSelect: boolean) => {+ if (submittedAnswers.has(`${requestId}-${questionIndex}`)) return;++ if (!isMultiSelect) {+ // 单选:立即提交+ const allAnswers: UserAnswer[] = (pendingQuestion?.questions ?? []).map((q, idx) => {+ if (idx === questionIndex) {+ return { selected_options: [optionLabel] };+ }+ return { selected_options: q.options.length > 0 ? [q.options[0].label] : [] };+ });++ setSubmittedAnswers((prev) => {+ const next = new Map(prev);+ next.set(`${requestId}-${questionIndex}`, optionLabel);+ return next;+ });++ onSubmit(requestId, allAnswers);+ setPendingQuestion(null);+ }+ },+ [pendingQuestion, submittedAnswers, onSubmit, setPendingQuestion]+ );++ if (!pendingQuestion) {+ return null;+ }++ return (+ <div className="animate-rise mx-2 my-3">+ <div+ className="w-full rounded-xl overflow-hidden"+ style={{+ border: '1px solid var(--accent)',+ backgroundColor: 'var(--card)',+ }}+ >+ {/* 标题行 */}+ <div+ className="px-4 py-2.5 flex items-center gap-2"+ style={{+ borderBottom: '1px solid var(--border)',+ backgroundColor: 'var(--panel-strong)',+ }}+ >+ <svg+ className="w-3.5 h-3.5 flex-shrink-0"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ strokeWidth={2}+ style={{ color: 'var(--accent)' }}+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M9.75 3.104v5.714a2.25 2.25 0 01-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 014.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0112 15a9.065 9.065 0 00-6.23-.693L5 14.5m14.8.8l1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0112 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"+ />+ </svg>+ <span+ className="text-xs font-semibold"+ style={{ color: 'var(--accent)' }}+ >+ {pendingQuestion.questions[0]?.header ?? '演进审批'}+ </span>+ </div>++ {/* 问题内容 */}+ {pendingQuestion.questions.map((question, qIndex) => {+ const submittedKey = `${pendingQuestion.request_id}-${qIndex}`;+ const submittedLabel = submittedAnswers.get(submittedKey);++ return (+ <div key={qIndex}>+ {/* 问题正文 */}+ <div+ className="px-4 pt-3 pb-2 text-sm prose prose-sm max-w-none prose-headings:font-semibold prose-headings:text-sm prose-ul:my-1 prose-li:my-0 prose-li:pl-1"+ style={{ color: 'var(--text)' }}+ >+ <ReactMarkdown remarkPlugins={[remarkGfm]}>+ {question.question}+ </ReactMarkdown>+ </div>++ {/* 选项按钮或已提交状态 */}+ {submittedLabel ? (+ <div+ className="px-4 pb-3 flex items-center gap-2 text-xs"+ style={{ color: 'var(--muted)' }}+ >+ <svg+ className="w-3.5 h-3.5 flex-shrink-0"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ strokeWidth={2.5}+ style={{ color: 'var(--ok)' }}+ >+ <path strokeLinecap="round" strokeLinejoin="round" d="M4.5 12.75l6 6 9-13.5" />+ </svg>+ 已选择:<span style={{ color: 'var(--text-strong)' }}>{submittedLabel}</span>+ </div>+ ) : (+ <div className="px-4 pb-3 flex flex-col gap-2">+ {question.options.map((option) => {+ const isAccept = option.label === '接收';+ const isReject = option.label === '拒绝';+ return (+ <button+ key={option.label}+ onClick={() =>+ handleSelect(+ pendingQuestion.request_id,+ qIndex,+ option.label,+ question.multi_select || false+ )+ }+ className="w-full text-left px-4 py-2.5 text-sm font-medium rounded-lg transition-all"+ style={{+ backgroundColor: 'var(--bg-elevated)',+ border: `1px solid var(--border)`,+ color: 'var(--text)',+ }}+ onMouseOver={(e) => {+ const el = e.currentTarget;+ if (isAccept) {+ el.style.backgroundColor = 'var(--ok-subtle, rgba(34,197,94,0.12))';+ el.style.borderColor = 'var(--ok)';+ el.style.color = 'var(--ok)';+ } else if (isReject) {+ el.style.backgroundColor = 'var(--danger-subtle, rgba(239,68,68,0.12))';+ el.style.borderColor = 'var(--danger)';+ el.style.color = 'var(--danger)';+ } else {+ el.style.backgroundColor = 'var(--bg-hover)';+ el.style.borderColor = 'var(--border-strong)';+ }+ }}+ onMouseOut={(e) => {+ const el = e.currentTarget;+ el.style.backgroundColor = 'var(--bg-elevated)';+ el.style.borderColor = 'var(--border)';+ el.style.color = 'var(--text)';+ }}+ >+ <div className="flex items-center justify-between gap-3">+ <span>{option.label}</span>+ {option.description && (+ <span className="text-xs font-normal" style={{ color: 'var(--muted)' }}>+ {option.description}+ </span>+ )}+ </div>+ </button>+ );+ })}+ </div>+ )}+ </div>+ );+ })}+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/InputArea.tsx b/jiuwenclaw/web/src/components/ChatPanel/InputArea.tsxnew file mode 100644index 0000000000..4fb5895026--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/InputArea.tsx@@ -0,0 +1,332 @@+import { useState, useRef, useCallback, KeyboardEvent, PointerEvent as ReactPointerEvent, useEffect, CSSProperties } from 'react';+import { useSpeechRecognition } from '../../hooks';+import { stopAllTts } from '../../utils';+import { useChatStore, useSessionStore } from '../../stores';+import { AgentMode } from '../../types';+import clsx from 'clsx';++interface InputAreaProps {+ onSubmit: (content: string) => void;+ onInterrupt: (newInput?: string) => void;+ onSwitchMode: (mode: AgentMode) => void;+ isProcessing: boolean;+ onNewSession: () => void;+}++export function InputArea({+ onSubmit,+ onInterrupt,+ onSwitchMode,+ isProcessing,+ onNewSession,+}: InputAreaProps) {+ const [value, setValue] = useState('');+ const [pendingVoiceText, setPendingVoiceText] = useState('');+ const textareaRef = useRef<HTMLTextAreaElement>(null);+ const autoSendTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);+ const isComposingRef = useRef(false);+ const activePointerIdRef = useRef<number | null>(null);+ const isVoicePressingRef = useRef(false);+ const { isPaused } = useChatStore();+ const { mode } = useSessionStore();+ const isInterruptible = isProcessing || isPaused;+ const modes: Array<{ value: AgentMode; label: string; icon: JSX.Element }> = [+ { value: 'plan', label: '任务规划', icon: (+ <svg className="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" />+ </svg>+ )},+ { value: 'agent', label: '智能执行', icon: (+ <svg className="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z" />+ </svg>+ )},+ ];++ const {+ isListening,+ interimTranscript,+ startListening,+ stopListening,+ isSupported: speechSupported,+ } = useSpeechRecognition({+ language: 'cmn-Hans-CN',+ continuous: true,+ interimResults: true,+ silenceTimeoutMs: 8000,+ restartWhen: () => isVoicePressingRef.current,+ onResult: (text, isFinal) => {+ if (isFinal) {+ setPendingVoiceText((prev) => prev + text);+ }+ },+ onEnd: () => {+ autoSendTimeoutRef.current = setTimeout(() => {}, 100);+ },+ onError: (error) => {+ console.error('语音识别错误:', error);+ },+ });++ useEffect(() => {+ if (!isListening && pendingVoiceText) {+ const finalText = (value + pendingVoiceText).trim();+ if (finalText) {+ setValue(finalText);+ setPendingVoiceText('');++ setTimeout(() => {+ if (isInterruptible) {+ onInterrupt(finalText);+ } else {+ onSubmit(finalText);+ }+ setValue('');+ if (textareaRef.current) {+ textareaRef.current.style.height = 'auto';+ }+ }, 150);+ }+ }+ }, [isListening, pendingVoiceText, value, isInterruptible, onSubmit, onInterrupt]);++ useEffect(() => {+ return () => {+ if (autoSendTimeoutRef.current) {+ clearTimeout(autoSendTimeoutRef.current);+ }+ };+ }, []);++ const handleSubmit = useCallback(() => {+ const trimmed = (value + pendingVoiceText).trim();+ if (!trimmed) return;++ if (isListening) {+ stopListening();+ }++ if (isInterruptible) {+ onInterrupt(trimmed);+ } else {+ onSubmit(trimmed);+ }+ setValue('');+ setPendingVoiceText('');++ if (textareaRef.current) {+ textareaRef.current.style.height = 'auto';+ }+ }, [value, pendingVoiceText, isInterruptible, isListening, onSubmit, onInterrupt, stopListening]);++ const handleKeyDown = useCallback(+ (e: KeyboardEvent<HTMLTextAreaElement>) => {+ if (e.key !== 'Enter' || e.shiftKey) return;+ if (isComposingRef.current || e.nativeEvent.isComposing) return;+ e.preventDefault();+ handleSubmit();+ },+ [handleSubmit]+ );++ const handleInput = useCallback(() => {+ if (textareaRef.current) {+ textareaRef.current.style.height = 'auto';+ textareaRef.current.style.height = `${Math.min(textareaRef.current.scrollHeight, 200)}px`;+ }+ }, []);++ const handleVoiceStart = useCallback(() => {+ if (isListening) return;+ stopAllTts();+ startListening();+ }, [isListening, startListening]);++ const handleVoiceEnd = useCallback(() => {+ if (!isListening) return;+ stopListening();+ }, [isListening, stopListening]);++ const handleVoicePointerDown = useCallback(+ (e: ReactPointerEvent<HTMLButtonElement>) => {+ // 仅响应主按钮按压,避免右键/多指导致状态抖动+ if (e.pointerType === 'mouse' && e.button !== 0) return;+ if (activePointerIdRef.current !== null) return;+ e.preventDefault();+ activePointerIdRef.current = e.pointerId;+ isVoicePressingRef.current = true;+ e.currentTarget.setPointerCapture(e.pointerId);+ handleVoiceStart();+ },+ [handleVoiceStart]+ );++ const handleVoicePointerUp = useCallback(+ (e: ReactPointerEvent<HTMLButtonElement>) => {+ if (activePointerIdRef.current !== e.pointerId) return;+ e.preventDefault();+ activePointerIdRef.current = null;+ isVoicePressingRef.current = false;+ if (e.currentTarget.hasPointerCapture(e.pointerId)) {+ e.currentTarget.releasePointerCapture(e.pointerId);+ }+ handleVoiceEnd();+ },+ [handleVoiceEnd]+ );++ const handleVoicePointerCancel = useCallback(+ (e: ReactPointerEvent<HTMLButtonElement>) => {+ if (activePointerIdRef.current !== e.pointerId) return;+ activePointerIdRef.current = null;+ isVoicePressingRef.current = false;+ if (e.currentTarget.hasPointerCapture(e.pointerId)) {+ e.currentTarget.releasePointerCapture(e.pointerId);+ }+ handleVoiceEnd();+ },+ [handleVoiceEnd]+ );++ const handleNewSession = useCallback(() => {+ if (isListening || isInterruptible) return;+ setValue('');+ setPendingVoiceText('');+ if (textareaRef.current) {+ textareaRef.current.style.height = 'auto';+ }+ onNewSession();+ }, [isListening, isInterruptible, onNewSession]);++ const displayValue = isListening+ ? value + pendingVoiceText + interimTranscript+ : value + pendingVoiceText;++ const canSend = value.trim().length > 0 || isListening;+ const modeIndex = Math.max(0, modes.findIndex((m) => m.value === mode));++ return (+ <div+ className={cx(+ 'chat-input-container',+ isListening && 'chat-input-container--recording',+ )}+ >+ {isListening && (+ <div className="chat-input-recording-bar">+ <span className="chat-input-recording-dot" />+ <span>正在录音...(松开按钮自动发送)</span>+ </div>+ )}++ <textarea+ ref={textareaRef}+ value={displayValue}+ onChange={(e) => setValue(e.target.value)}+ onKeyDown={handleKeyDown}+ onCompositionStart={() => { isComposingRef.current = true; }}+ onCompositionEnd={() => { isComposingRef.current = false; }}+ onInput={handleInput}+ placeholder={+ isListening+ ? '正在听取语音...'+ : isInterruptible+ ? '处理中,输入新指令可中断...'+ : 'Enter 发送,Shift+Enter 换行,按住语音键开始录音'+ }+ className="chat-input-textarea"+ rows={1}+ />++ <div className="chat-input-toolbar">+ <div className="chat-input-toolbar-left">+ <div+ className="chat-mode-switch"+ style={{ '--chat-mode-index': modeIndex } as CSSProperties}+ >+ <div className="chat-mode-switch__indicator" />+ {modes.map((m) => (+ <button+ type="button"+ key={m.value}+ onClick={() => {+ if (mode !== m.value) {+ onSwitchMode(m.value);+ }+ }}+ className={clsx(+ 'chat-mode-btn',+ mode === m.value ? 'chat-mode-btn--active' : 'chat-mode-btn--inactive'+ )}+ >+ {m.icon}+ {m.label}+ </button>+ ))}+ </div>++ </div>++ <div className="chat-input-actions">+ <button+ type="button"+ onClick={handleNewSession}+ disabled={isListening || isInterruptible}+ className={cx(+ 'chat-input-btn',+ (isListening || isInterruptible) && 'chat-input-btn--disabled',+ )}+ title={isListening || isInterruptible ? '处理中或录音中不可新建' : '新建会话'}+ >+ <svg className="chat-input-btn-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 4.5v15m7.5-7.5h-15" />+ </svg>+ </button>++ {speechSupported && (+ <button+ type="button"+ onPointerDown={handleVoicePointerDown}+ onPointerUp={handleVoicePointerUp}+ onPointerCancel={handleVoicePointerCancel}+ className={cx(+ 'chat-input-btn',+ isListening && 'chat-input-btn--recording',+ )}+ title="按住说话"+ >+ {isListening ? (+ <svg className="chat-input-btn-icon" fill="currentColor" viewBox="0 0 24 24">+ <rect x="6" y="6" width="12" height="12" rx="2" />+ </svg>+ ) : (+ <svg className="chat-input-btn-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 18.75a6 6 0 006-6v-1.5m-6 7.5a6 6 0 01-6-6v-1.5m6 7.5v3.75m-3.75 0h7.5M12 15.75a3 3 0 01-3-3V4.5a3 3 0 116 0v8.25a3 3 0 01-3 3z" />+ </svg>+ )}+ </button>+ )}++ <button+ type="button"+ onClick={handleSubmit}+ disabled={!canSend}+ className={cx(+ 'chat-input-btn chat-input-btn--send',+ canSend ? 'chat-input-btn--send-active' : 'chat-input-btn--disabled',+ )}+ title="发送 (Enter)"+ >+ <svg className="chat-input-btn-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M4.5 10.5L12 3m0 0l7.5 7.5M12 3v18" />+ </svg>+ </button>+ </div>+ </div>+ </div>+ );+}++function cx(...classes: (string | boolean | undefined | null)[]) {+ return classes.filter(Boolean).join(' ');+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/MediaRenderer.tsx b/jiuwenclaw/web/src/components/ChatPanel/MediaRenderer.tsxnew file mode 100644index 0000000000..c3821a03fa--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/MediaRenderer.tsx@@ -0,0 +1,63 @@+import { MediaItem } from '../../types';++interface MediaRendererProps {+ items: MediaItem[];+}++export function MediaRenderer({ items }: MediaRendererProps) {+ if (!items.length) {+ return null;+ }++ return (+ <div className="mt-2 space-y-2">+ {items.map((item, index) => (+ <MediaItemView key={`${item.filename}-${index}`} item={item} />+ ))}+ </div>+ );+}++function MediaItemView({ item }: { item: MediaItem }) {+ const src = item.base64Data+ ? `data:${item.mimeType};base64,${item.base64Data}`+ : item.url;++ if (!src) {+ return null;+ }++ switch (item.type) {+ case 'image':+ return (+ <img+ src={src}+ alt={item.filename}+ className="max-w-full rounded-lg border border-border"+ />+ );+ case 'audio':+ return (+ <audio controls className="w-full">+ <source src={src} type={item.mimeType} />+ </audio>+ );+ case 'video':+ return (+ <video controls className="max-w-full rounded-lg border border-border">+ <source src={src} type={item.mimeType} />+ </video>+ );+ case 'document':+ default:+ return (+ <a+ href={src}+ download={item.filename}+ className="inline-flex items-center gap-2 rounded-md border border-border bg-secondary px-3 py-2 text-sm text-text-strong hover:bg-secondary/80"+ >+ <span className="truncate max-w-[240px]">{item.filename}</span>+ </a>+ );+ }+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/MessageItem.tsx b/jiuwenclaw/web/src/components/ChatPanel/MessageItem.tsxnew file mode 100644index 0000000000..afa699b60e--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/MessageItem.tsx@@ -0,0 +1,258 @@+/**+ * MessageItem 组件+ *+ * 单条消息显示,支持 TTS 朗读+ */++import { useState, useCallback, useEffect, useRef } from 'react';+import { Message } from '../../types';+import { StreamingContent } from './StreamingContent';+import { ToolCallDisplay } from './ToolCallDisplay';+import { MediaRenderer } from './MediaRenderer';+import { formatTimestamp, onTtsStop, sanitizeTtsText } from '../../utils';+import { useSpeechSynthesis } from '../../hooks';+import clsx from 'clsx';+import ReactMarkdown from 'react-markdown';+import remarkGfm from 'remark-gfm';++interface MessageItemProps {+ message: Message;+ autoSpeak?: boolean;+}++export function MessageItem({ message, autoSpeak = false }: MessageItemProps) {+ const {+ role,+ content,+ timestamp,+ isStreaming,+ toolCall,+ toolResult,+ audioBase64,+ audioMime,+ mediaItems,+ } = message;+ const [hasAutoSpoken, setHasAutoSpoken] = useState(false);+ const [isAudioPlaying, setIsAudioPlaying] = useState(false);+ const audioRef = useRef<HTMLAudioElement | null>(null);++ // TTS+ const { isSpeaking, speak, stop, isSupported: ttsSupported } = useSpeechSynthesis({+ language: 'zh-CN',+ rate: 1.1,+ });++ // 朗读消息+ const stopGeneratedAudio = useCallback(() => {+ if (audioRef.current) {+ audioRef.current.pause();+ audioRef.current.currentTime = 0;+ audioRef.current = null;+ }+ setIsAudioPlaying(false);+ }, []);++ const playGeneratedAudio = useCallback(async () => {+ if (!audioBase64) {+ return false;+ }++ stopGeneratedAudio();+ const audio = new Audio(+ `data:${audioMime || 'audio/mpeg'};base64,${audioBase64}`+ );+ audioRef.current = audio;+ audio.onended = () => {+ setIsAudioPlaying(false);+ };+ audio.onerror = () => {+ setIsAudioPlaying(false);+ };++ try {+ await audio.play();+ setIsAudioPlaying(true);+ return true;+ } catch {+ setIsAudioPlaying(false);+ return false;+ }+ }, [audioBase64, audioMime, stopGeneratedAudio]);++ const handleSpeak = useCallback(() => {+ if (audioBase64) {+ if (isAudioPlaying) {+ stopGeneratedAudio();+ return;+ }+ void playGeneratedAudio();+ return;+ }++ if (isSpeaking) {+ stop();+ } else if (content) {+ const cleanContent = sanitizeTtsText(content);+ if (cleanContent) {+ speak(cleanContent);+ }+ }+ }, [+ audioBase64,+ content,+ isAudioPlaying,+ isSpeaking,+ playGeneratedAudio,+ speak,+ stop,+ stopGeneratedAudio,+ ]);++ const handleCopy = useCallback(async () => {+ if (!content) return;+ try {+ await navigator.clipboard.writeText(content);+ } catch {+ const textarea = document.createElement('textarea');+ textarea.value = content;+ textarea.style.position = 'fixed';+ textarea.style.opacity = '0';+ document.body.appendChild(textarea);+ textarea.select();+ document.execCommand('copy');+ document.body.removeChild(textarea);+ }+ }, [content]);++ // 自动朗读新消息(仅助手消息,由父组件通过 autoSpeak 控制)+ useEffect(() => {+ if (autoSpeak && role === 'assistant' && !isStreaming && !hasAutoSpoken && content) {+ handleSpeak();+ setHasAutoSpoken(true);+ }+ }, [autoSpeak, role, isStreaming, hasAutoSpoken, content, handleSpeak]);++ // 工具调用/结果消息+ if (role === 'tool') {+ return (+ <ToolCallDisplay+ toolCall={toolCall}+ toolResult={toolResult}+ />+ );+ }++ // 系统消息+ if (role === 'system') {+ return (+ <div className="flex justify-center my-4 animate-fade-in">+ <div className="px-4 py-2 rounded-full bg-secondary border border-border text-text-muted text-sm">+ {content}+ </div>+ </div>+ );+ }++ // 用户/助手消息+ const isUser = role === 'user';+ const showTTS = Boolean(+ !isUser && !isStreaming && content && (ttsSupported || audioBase64)+ );+ const showCopy = Boolean(content) && !isStreaming;+ const isPlaying = audioBase64 ? isAudioPlaying : isSpeaking;++ useEffect(() => {+ return () => {+ stopGeneratedAudio();+ };+ }, [stopGeneratedAudio]);++ useEffect(() => {+ return onTtsStop(() => {+ stopGeneratedAudio();+ stop();+ });+ }, [stopGeneratedAudio, stop]);++ return (+ <div className={clsx(+ 'flex mb-3 animate-rise',+ isUser ? 'justify-end' : 'justify-start'+ )}>+ <div className="max-w-[82%] min-w-0">+ {/* 消息气泡 */}+ <div+ className={clsx(+ 'chat-bubble relative group',+ isUser ? 'user' : 'assistant',+ isStreaming && 'streaming'+ )}+ >+ {isStreaming ? (+ <StreamingContent content={content} isStreaming={true} />+ ) : (+ <>+ <div className="chat-text">+ {isUser ? (+ <span className="whitespace-pre-wrap">{content}</span>+ ) : (+ <ReactMarkdown remarkPlugins={[remarkGfm]}>+ {content}+ </ReactMarkdown>+ )}+ </div>+ {mediaItems && mediaItems.length > 0 && (+ <MediaRenderer items={mediaItems} />+ )}+ </>+ )}+ </div>++ {/* 时间戳和操作 */}+ <div+ className={clsx(+ 'flex items-center gap-3 text-sm mt-2 text-text-muted',+ isUser ? 'justify-end' : 'justify-start'+ )}+ >+ <span>{formatTimestamp(timestamp)}</span>++ {showCopy && (+ <button+ onClick={handleCopy}+ className="p-1.5 rounded-md transition-colors hover:text-accent hover:bg-secondary"+ title="复制消息"+ >+ <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M8.25 6.75h7.5m-7.5 3h7.5m-7.5 3h4.5M6.75 3h7.5A2.25 2.25 0 0116.5 5.25v13.5A2.25 2.25 0 0114.25 21h-7.5A2.25 2.25 0 014.5 18.75V5.25A2.25 2.25 0 016.75 3z" />+ </svg>+ </button>+ )}++ {showTTS && (+ <button+ onClick={handleSpeak}+ className={clsx(+ 'p-1.5 rounded-md transition-colors',+ isPlaying+ ? 'text-accent bg-accent/10'+ : 'hover:text-accent hover:bg-secondary'+ )}+ title={isPlaying ? '停止朗读' : '朗读消息'}+ >+ {isPlaying ? (+ <svg className="w-4 h-4" fill="currentColor" viewBox="0 0 24 24">+ <rect x="6" y="6" width="12" height="12" rx="2" />+ </svg>+ ) : (+ <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M19.114 5.636a9 9 0 010 12.728M16.463 8.288a5.25 5.25 0 010 7.424M6.75 8.25l4.72-4.72a.75.75 0 011.28.53v15.88a.75.75 0 01-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.01 9.01 0 012.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75z" />+ </svg>+ )}+ </button>+ )}+ </div>+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/MessageList.tsx b/jiuwenclaw/web/src/components/ChatPanel/MessageList.tsxnew file mode 100644index 0000000000..26c250c805--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/MessageList.tsx@@ -0,0 +1,165 @@+/**+ * MessageList 组件+ *+ * 消息列表显示:将普通消息与工具执行按时间线交错渲染。+ */++import { useMemo } from 'react';+import { Message, ToolExecution } from '../../types';+import { MessageItem } from './MessageItem';+import { ToolGroupDisplay } from './ToolGroupDisplay';+import { useChatStore } from '../../stores';++interface MessageListProps {+ messages: Message[];+}++type TimelineItem =+ | {+ type: 'message';+ key: string;+ timestampMs: number;+ sourceIndex: number;+ message: Message;+ }+ | {+ type: 'toolExecution';+ key: string;+ timestampMs: number;+ sourceIndex: number;+ execution: ToolExecution;+ };++type RenderItem =+ | {+ type: 'message';+ key: string;+ message: Message;+ }+ | {+ type: 'toolGroup';+ key: string;+ executions: ToolExecution[];+ };++/**+ * 将普通消息与工具执行合并为统一时间线,按时间升序渲染。+ */+function toTimestampMs(value: string | undefined): number {+ if (!value) {+ return Number.NaN;+ }+ const ts = Date.parse(value);+ return Number.isNaN(ts) ? Number.NaN : ts;+}++function compareTimelineItems(a: TimelineItem, b: TimelineItem): number {+ const aTsValid = Number.isFinite(a.timestampMs);+ const bTsValid = Number.isFinite(b.timestampMs);+ if (aTsValid && bTsValid && a.timestampMs !== b.timestampMs) {+ return a.timestampMs - b.timestampMs;+ }+ if (aTsValid !== bTsValid) {+ return aTsValid ? -1 : 1;+ }+ return a.sourceIndex - b.sourceIndex;+}++function buildTimelineItems(+ messages: Message[],+ executions: ToolExecution[]+): TimelineItem[] {+ const messageItems: TimelineItem[] = messages+ .filter((msg) => msg.role !== 'tool')+ .map((message, index) => ({+ type: 'message',+ key: `message-${message.id}`,+ timestampMs: toTimestampMs(message.timestamp),+ sourceIndex: index,+ message,+ }));++ const executionItems: TimelineItem[] = executions.map((execution, index) => ({+ type: 'toolExecution',+ key: `tool-execution-${execution.toolCallId}`,+ timestampMs: toTimestampMs(execution.startedAt),+ sourceIndex: messages.length + index,+ execution,+ }));++ return [...messageItems, ...executionItems].sort(compareTimelineItems);+}++function buildRenderItems(items: TimelineItem[]): RenderItem[] {+ const renderItems: RenderItem[] = [];+ let toolBuf: ToolExecution[] = [];++ const flushTools = () => {+ if (toolBuf.length === 0) {+ return;+ }+ const first = toolBuf[0];+ renderItems.push({+ type: 'toolGroup',+ key: `tool-group-${first.toolCallId}`,+ executions: toolBuf,+ });+ toolBuf = [];+ };++ for (const item of items) {+ if (item.type === 'toolExecution') {+ toolBuf.push(item.execution);+ continue;+ }+ flushTools();+ renderItems.push({+ type: 'message',+ key: item.key,+ message: item.message,+ });+ }++ flushTools();+ return renderItems;+}++export function MessageList({ messages }: MessageListProps) {+ const { toolExecutions, toolExecutionOrder } = useChatStore();+ const executions = useMemo(+ () => toolExecutionOrder+ .map((toolCallId) => toolExecutions.get(toolCallId))+ .filter((item): item is NonNullable<typeof item> => !!item),+ [toolExecutions, toolExecutionOrder]+ );++ const renderItems = useMemo(+ () => buildRenderItems(buildTimelineItems(messages, executions)),+ [messages, executions]+ );++ if (renderItems.length === 0) {+ return null;+ }++ return (+ <div className="space-y-1">+ {renderItems.map((item) => {+ if (item.type === 'message') {+ return (+ <MessageItem+ key={item.key}+ message={item.message}+ />+ );+ }+ return (+ <ToolGroupDisplay+ key={item.key}+ executions={item.executions}+ />+ );+ })}+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/StreamingContent.tsx b/jiuwenclaw/web/src/components/ChatPanel/StreamingContent.tsxnew file mode 100644index 0000000000..0e47fd55d5--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/StreamingContent.tsx@@ -0,0 +1,19 @@+/**+ * StreamingContent 组件+ *+ * 流式内容显示+ */++interface StreamingContentProps {+ content: string;+ isStreaming: boolean;+}++export function StreamingContent({ content, isStreaming }: StreamingContentProps) {+ return (+ <div className="chat-text">+ <span className="whitespace-pre-wrap">{content}</span>+ {isStreaming && <span className="streaming-cursor" />}+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/SubtaskProgress.tsx b/jiuwenclaw/web/src/components/ChatPanel/SubtaskProgress.tsxnew file mode 100644index 0000000000..c5f3d04471--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/SubtaskProgress.tsx@@ -0,0 +1,116 @@+/**+ * SubtaskProgress 组件+ *+ * 显示并行子任务的执行进度+ */++import { useChatStore } from '../../stores';+import clsx from 'clsx';++export function SubtaskProgress() {+ const { activeSubtasks } = useChatStore();++ // 将 Map 转换为数组并按 index 排序+ const subtasks = Array.from(activeSubtasks.values()).sort(+ (a, b) => a.index - b.index+ );++ if (subtasks.length === 0) {+ return null;+ }++ // 获取总数(从第一个子任务)+ const total = subtasks[0]?.total || subtasks.length;++ // 计算完成数量+ const completedCount = total - subtasks.length;++ return (+ <div className="mx-4 my-2 p-3 bg-accent-subtle rounded-lg border border-border">+ <div className="flex items-center gap-2 mb-2">+ <span className="w-2 h-2 rounded-full bg-info animate-pulse" />+ <span className="text-sm font-medium text-text-strong">+ 并行任务执行中 ({completedCount}/{total} 完成)+ </span>+ </div>+ <div className="space-y-2">+ {subtasks.map((subtask) => (+ <SubtaskItem key={subtask.task_id} subtask={subtask} />+ ))}+ </div>+ </div>+ );+}++interface SubtaskItemProps {+ subtask: {+ task_id: string;+ description: string;+ status: string;+ index: number;+ total: number;+ tool_name?: string;+ tool_count: number;+ message?: string;+ is_parallel: boolean;+ };+}++function SubtaskItem({ subtask }: SubtaskItemProps) {+ const getStatusIcon = () => {+ switch (subtask.status) {+ case 'starting':+ return (+ <span className="w-3 h-3 rounded-full border-2 border-info animate-pulse flex-shrink-0" />+ );+ case 'tool_call':+ return (+ <span className="w-3 h-3 rounded-full bg-warning animate-pulse flex-shrink-0" />+ );+ case 'tool_result':+ return (+ <span className="w-3 h-3 rounded-full bg-info flex-shrink-0" />+ );+ default:+ return (+ <span className="w-3 h-3 rounded-full border border-border-strong flex-shrink-0" />+ );+ }+ };++ const getStatusText = () => {+ switch (subtask.status) {+ case 'starting':+ return '启动中...';+ case 'tool_call':+ return `调用 ${subtask.tool_name || '工具'} (#${subtask.tool_count})`;+ case 'tool_result':+ return subtask.message ? `${subtask.message.slice(0, 50)}...` : '处理结果...';+ default:+ return subtask.status;+ }+ };++ return (+ <div+ className={clsx(+ 'flex items-start gap-2 py-1.5 px-2 rounded text-sm',+ subtask.status === 'tool_call' && 'bg-warning/10',+ subtask.status === 'tool_result' && 'bg-info/10'+ )}+ >+ {getStatusIcon()}+ <div className="flex-1 min-w-0">+ <div className="font-medium text-text-strong truncate">+ 任务 {subtask.index + 1}: {subtask.description}+ </div>+ <div className="text-text-muted truncate">{getStatusText()}</div>+ </div>+ {subtask.tool_count > 0 && (+ <span className="text-text-muted text-xs px-1.5 py-0.5 bg-secondary rounded">+ {subtask.tool_count} 次调用+ </span>+ )}+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/ToolCallDisplay.tsx b/jiuwenclaw/web/src/components/ChatPanel/ToolCallDisplay.tsxnew file mode 100644index 0000000000..937ee13b4e--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/ToolCallDisplay.tsx@@ -0,0 +1,115 @@+/**+ * ToolCallDisplay 组件+ *+ * 工具调用和结果显示+ */++import { useState } from 'react';+import { ToolCall, ToolResult } from '../../types';+import { formatToolArguments, formatToolResult } from '../../utils';+import clsx from 'clsx';++interface ToolCallDisplayProps {+ toolCall?: ToolCall;+ toolResult?: ToolResult;+}++export function ToolCallDisplay({ toolCall, toolResult }: ToolCallDisplayProps) {+ const [isExpanded, setIsExpanded] = useState(false);++ if (toolCall) {+ // 使用格式化的描述或默认显示工具名+ const displayTitle = toolCall.description+ ? `${toolCall.name}: ${toolCall.description}`+ : toolCall.name;++ // 使用格式化的参数摘要+ const displaySubtitle = toolCall.formatted_args || '';++ return (+ <div className="chat-tool-card animate-rise">+ <div+ className="cursor-pointer"+ onClick={() => setIsExpanded(!isExpanded)}+ >+ <div className="flex items-center gap-2">+ <span className="w-5 h-5 rounded bg-accent-2-subtle text-accent-2 flex items-center justify-center text-sm">+ <svg className="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z" />+ </svg>+ </span>+ <span className="font-mono text-sm font-medium text-text">{displayTitle}</span>+ <span className="text-text-muted text-sm">+ {isExpanded ? '▼' : '▶'}+ </span>+ </div>+ {displaySubtitle && (+ <div className="mt-1 font-mono text-sm text-text-muted truncate">+ {displaySubtitle}+ </div>+ )}+ </div>+ {isExpanded && (+ <div className="mt-2 p-2 rounded-md bg-card border border-border">+ <pre className="font-mono text-sm text-text overflow-x-auto whitespace-pre-wrap">+ {formatToolArguments(toolCall.arguments)}+ </pre>+ </div>+ )}+ </div>+ );+ }++ if (toolResult) {+ // 使用格式化的摘要或默认显示+ const displaySummary = toolResult.summary+ ? toolResult.summary+ : `${toolResult.toolName} ${toolResult.success ? '完成' : '失败'}`;++ return (+ <div className="chat-tool-card animate-rise">+ <div+ className="cursor-pointer"+ onClick={() => setIsExpanded(!isExpanded)}+ >+ <div className="flex items-center gap-2">+ <span className={clsx(+ 'w-5 h-5 rounded flex items-center justify-center text-sm',+ toolResult.success+ ? 'bg-ok-subtle text-ok'+ : 'bg-danger-subtle text-danger'+ )}>+ {toolResult.success ? (+ <svg className="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M5 13l4 4L19 7" />+ </svg>+ ) : (+ <svg className="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />+ </svg>+ )}+ </span>+ <span className={clsx(+ 'font-mono text-sm',+ toolResult.success ? 'text-text-muted' : 'text-danger'+ )}>+ {displaySummary}+ </span>+ <span className="text-text-muted text-sm ml-auto">+ {isExpanded ? '▼' : '▶'}+ </span>+ </div>+ </div>+ {isExpanded && (+ <div className="mt-2 p-2 rounded-md bg-card border border-border">+ <pre className="font-mono text-sm text-text overflow-x-auto whitespace-pre-wrap max-h-60">+ {formatToolResult(toolResult.result)}+ </pre>+ </div>+ )}+ </div>+ );+ }++ return null;+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/ToolGroupDisplay.tsx b/jiuwenclaw/web/src/components/ChatPanel/ToolGroupDisplay.tsxnew file mode 100644index 0000000000..cd416bbc5c--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/ToolGroupDisplay.tsx@@ -0,0 +1,176 @@+/**+ * ToolGroupDisplay 组件+ *+ * 展示工具执行实体:call 可单独显示,result 仅回填显示。+ */++import {+ useState,+ useEffect,+ useRef,+ useCallback,+} from 'react';+import { ToolExecution } from '../../types';+import { formatToolArguments, formatToolResult } from '../../utils';+import clsx from 'clsx';++interface ToolGroupDisplayProps {+ executions: ToolExecution[];+}++export function ToolExecutionItem({ execution }: { execution: ToolExecution }) {+ const [isExpanded, setIsExpanded] = useState(false);+ const { toolCall, result, status } = execution;+ const subtitle = toolCall.formatted_args || '';+ const hasResult = !!result;+ const isTimeout = status === 'timeout';+ const isError = status === 'error';+ const isSuccess = status === 'completed';+ const resultSummary = result+ ? (result.summary || `${result.success ? '完成' : '失败'}`)+ : '';++ return (+ <div className="tool-pair-item animate-rise">+ <div className="tool-pair-header" onClick={() => setIsExpanded(!isExpanded)}>+ <span className={clsx(+ 'tool-pair-icon',+ isSuccess ? 'success' : isError ? 'error' : isTimeout ? 'warning' : 'pending'+ )}>+ {isSuccess ? (+ <svg className="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M5 13l4 4L19 7" />+ </svg>+ ) : isError ? (+ <svg className="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />+ </svg>+ ) : isTimeout ? (+ <svg className="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 9v4m0 4h.01M12 3C7.029 3 3 7.029 3 12s4.029 9 9 9 9-4.029 9-9-4.029-9-9-9z" />+ </svg>+ ) : (+ <svg className="w-3 h-3 animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />+ </svg>+ )}+ </span>++ <span className="tool-pair-name">{toolCall.name}</span>+ {subtitle && <span className="tool-pair-summary">{subtitle}</span>}++ {hasResult && (+ <span className={clsx(+ 'tool-pair-result-badge',+ result.success ? 'success' : 'error'+ )}>+ {resultSummary}+ </span>+ )}+ {!hasResult && isTimeout && (+ <span className="tool-pair-result-badge warning">+ 执行超时+ </span>+ )}+ <span className="tool-pair-toggle">{isExpanded ? '▼' : '▶'}</span>+ </div>++ {isExpanded && (+ <div className="tool-pair-detail">+ {Object.keys(toolCall.arguments).length > 0 && (+ <div className="tool-pair-section">+ <div className="tool-pair-section-label">参数</div>+ <pre className="tool-pair-pre">{formatToolArguments(toolCall.arguments)}</pre>+ </div>+ )}+ {result && (+ <div className="tool-pair-section">+ <div className="tool-pair-section-label">结果</div>+ <pre className={clsx('tool-pair-pre', !result.success && 'error')}>+ {formatToolResult(result.result, 1000)}+ </pre>+ </div>+ )}+ </div>+ )}+ </div>+ );+}++export function ToolGroupDisplay({ executions }: ToolGroupDisplayProps) {+ const scrollRef = useRef<HTMLDivElement>(null);+ const [userScrolled, setUserScrolled] = useState(false);+ const totalPairs = executions.length;+ const pendingCount = executions.filter((e) => e.status === 'pending').length;+ const timeoutCount = executions.filter((e) => e.status === 'timeout').length;++ useEffect(() => {+ if (!import.meta.env.DEV) {+ return;+ }+ if (totalPairs > 0) {+ console.debug('[ws][metrics] pendingToolPairs', {+ pendingToolPairs: pendingCount,+ timeoutToolPairs: timeoutCount,+ totalToolPairs: totalPairs,+ });+ }+ }, [pendingCount, timeoutCount, totalPairs]);++ const handleScroll = useCallback(() => {+ const el = scrollRef.current;+ if (!el) return;+ const atBottom = el.scrollHeight - el.scrollTop - el.clientHeight < 40;+ setUserScrolled(!atBottom);+ }, []);++ const scrollInner = useCallback((smooth = true) => {+ const el = scrollRef.current;+ if (!el) return;+ el.scrollTo({+ top: el.scrollHeight,+ behavior: smooth ? 'smooth' : 'instant',+ });+ }, []);++ useEffect(() => {+ if (!userScrolled) {+ // 自动跟随新增工具项时使用即时滚动,避免出现从顶部滑下的视觉效果+ scrollInner(false);+ }+ }, [executions.length, userScrolled, scrollInner]);++ const scrollToBottom = useCallback(() => {+ setUserScrolled(false);+ scrollInner(true);+ }, [scrollInner]);++ return (+ <div className="tool-group-container animate-rise">+ <div className="tool-group-header">+ <div className="tool-group-header-left">+ <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M11.42 15.17L17.25 21A2.652 2.652 0 0021 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 11-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 004.486-6.336l-3.276 3.277a3.004 3.004 0 01-2.25-2.25l3.276-3.276a4.5 4.5 0 00-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437l1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008z" />+ </svg>+ <span>+ 已执行 {totalPairs} 次工具调用+ {pendingCount > 0 && <span className="tool-group-pending"> ({pendingCount} 个执行中)</span>}+ {timeoutCount > 0 && <span className="tool-group-pending warning"> ({timeoutCount} 个超时)</span>}+ </span>+ </div>+ </div>++ <div ref={scrollRef} className="tool-group-scroll" onScroll={handleScroll}>+ {executions.map((execution) => (+ <ToolExecutionItem key={execution.toolCallId} execution={execution} />+ ))}+ </div>++ {userScrolled && (+ <button className="tool-group-scroll-btn" onClick={scrollToBottom}>+ ↓ 最新+ </button>+ )}+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ChatPanel/index.tsx b/jiuwenclaw/web/src/components/ChatPanel/index.tsxnew file mode 100644index 0000000000..b3f31052a9--- /dev/null+++ b/jiuwenclaw/web/src/components/ChatPanel/index.tsx@@ -0,0 +1,121 @@+/**+ * ChatPanel 组件+ *+ * 聊天面板,包含消息列表和输入区域+ */++import { useRef, useEffect, useCallback } from 'react';+import { useChatStore } from '../../stores';+import { AgentMode, UserAnswer } from '../../types';+import { MessageList } from './MessageList';+import { InputArea } from './InputArea';+import { SubtaskProgress } from './SubtaskProgress';+import { InlineQuestionCard } from './InlineQuestionCard';+import './ChatPanel.css';++interface ChatPanelProps {+ onSendMessage: (content: string) => void;+ onInterrupt: (newInput?: string) => void;+ onSwitchMode: (mode: AgentMode) => void;+ isProcessing: boolean;+ onNewSession: () => void;+ onUserAnswer: (requestId: string, answers: UserAnswer[]) => void;+}++const SUGGESTIONS = [+ { text: '让我们开启一段新的旅程吧!' },+ { text: '能告诉我你有哪些技能吗?' },+];++function ThinkingIndicator() {+ return (+ <div className="flex justify-start animate-rise">+ <div className="chat-bubble assistant chat-reading-indicator">+ <div className="chat-reading-indicator__dots">+ <span />+ <span />+ <span />+ </div>+ </div>+ </div>+ );+}+++function SuggestionCard({ text, onClick }: { text: string; onClick: () => void }) {+ return (+ <button className="chat-suggestion-card" onClick={onClick}>+ <svg className="chat-suggestion-card__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09z" />+ </svg>+ <span className="chat-suggestion-card__text">{text}</span>+ <svg className="chat-suggestion-card__arrow" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3" />+ </svg>+ </button>+ );+}+++export function ChatPanel({+ onSendMessage,+ onInterrupt,+ onSwitchMode,+ isProcessing,+ onNewSession,+ onUserAnswer,+}: ChatPanelProps) {++ const { messages, isThinking } = useChatStore();+ const messagesEndRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });+ }, [messages, isThinking]);++ const handleSuggestion = useCallback(+ (text: string) => onSendMessage(text),+ [onSendMessage],+ );++ return (+ <div className="flex flex-col h-full">+ <div className="flex-1 overflow-y-auto px-3 py-4">+ {messages.length === 0 ? (+ <div className="chat-welcome">+ <img src="/logo.png" alt="JiuwenClaw" className="chat-welcome__logo" />+ <h2 className="chat-welcome__heading">你好,我是JiuwenClaw,很高兴认识你!</h2>+ <p className="chat-welcome__subtext">+ 我可以帮你回答问题,解决疑惑,还可以帮你完成一些任务。+ </p>+ <div className="chat-suggestions">+ {SUGGESTIONS.map((s) => (+ <SuggestionCard key={s.text} text={s.text} onClick={() => handleSuggestion(s.text)} />+ ))}+ </div>+ </div>+ ) : (+ <>+ <MessageList messages={messages} />+ <SubtaskProgress />+ {/* 内联演进审批卡片 */}+ <InlineQuestionCard onSubmit={onUserAnswer} />+ {/* 思考中指示器 */}+ {isThinking && <ThinkingIndicator />}+ </>+ )}+ <div ref={messagesEndRef} />+ </div>++ <div className="chat-compose px-3 pb-4">+ <InputArea+ onSubmit={onSendMessage}+ onInterrupt={onInterrupt}+ onSwitchMode={onSwitchMode}+ isProcessing={isProcessing}+ onNewSession={onNewSession}+ />+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ConfigPanel/index.tsx b/jiuwenclaw/web/src/components/ConfigPanel/index.tsxnew file mode 100644index 0000000000..a45d8456ea--- /dev/null+++ b/jiuwenclaw/web/src/components/ConfigPanel/index.tsx@@ -0,0 +1,418 @@+import { useEffect, useMemo, useState } from "react";++interface ConfigPanelProps {+ config: Record<string, unknown> | null;+ isConnected: boolean;+ onSaveConfig: (updates: Record<string, string>) => Promise<void>;+}++interface ConfigGroup {+ tag: string;+ label: string;+ keys: [string, string][];+ order?: number;+}++const MODEL_KEYS = new Set(["api_base", "api_key", "model", "model_provider"]);+const EMBED_KEYS = new Set(["embed_api_base", "embed_api_key", "embed_model"]);+const EMAIL_KEYS = new Set(["email_address", "email_token"]);+const THIRD_PARTY_API_KEYS = new Set(["jina_api_key", "perplexity_api_key", "serper_api_key"]);+const REQUIRED_MODEL_FIELDS = ["api_base", "api_key", "model", "model_provider"] as const;+const REQUIRED_MODEL_FIELD_SET = new Set<string>(REQUIRED_MODEL_FIELDS);+const EVOLUTION_KEYS = new Set(["evolution_auto_scan"]);++function classifyKey(key: string): string {+ if (MODEL_KEYS.has(key)) return "model";+ if (EMBED_KEYS.has(key)) return "embed";+ if (THIRD_PARTY_API_KEYS.has(key)) return "third_party_api";+ if (EMAIL_KEYS.has(key)) return "email";+ if (EVOLUTION_KEYS.has(key)) return "evolution";+ if (key.startsWith("feishu")) return "feishu";+ return "other";+}++const GROUP_META: Record<string, { label: string; order: number; hint: string }> = {+ model: { label: "模型配置", order: 0, hint: "模型服务与鉴权参数" },+ embed: { label: "Embed配置", order: 1, hint: "Embed 服务与鉴权参数" },+ third_party_api: { label: "第三方服务配置", order: 2, hint: "API Key 配置" },+ evolution: { label: "自演进配置", order: 3, hint: "Skills 在线自演进参数" },+ email: { label: "邮箱配置", order: 4, hint: "邮件账号与令牌参数" },+ other: { label: "其他配置", order: 5, hint: "未归类的扩展参数" },+};++function getGroupIcon(tag: string) {+ if (tag === "model") {+ return (+ <svg className="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M9.75 3v4.5m4.5-4.5V6M3 10.5h18M4.5 6.75h15A1.5 1.5 0 0121 8.25v9A3.75 3.75 0 0117.25 21h-10.5A3.75 3.75 0 013 17.25v-9a1.5 1.5 0 011.5-1.5z" />+ </svg>+ );+ }+ if (tag === "email") {+ return (+ <svg className="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M21.75 7.5v9a2.25 2.25 0 01-2.25 2.25h-15A2.25 2.25 0 012.25 16.5v-9A2.25 2.25 0 014.5 5.25h15a2.25 2.25 0 012.25 2.25z" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M3 7.5l8.1 6.075a1.5 1.5 0 001.8 0L21 7.5" />+ </svg>+ );+ }+ if (tag === "embed") {+ return (+ <svg className="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 2.5l8.5 4.75v9.5L12 21.5l-8.5-4.75v-9.5L12 2.5z" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 12l8.5-4.75M12 12L3.5 7.25M12 12v9.5" />+ </svg>+ );+ }+ if (tag === "third_party_api") {+ return (+ <svg className="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M3.75 5.25h16.5A1.5 1.5 0 0121.75 6.75v10.5a1.5 1.5 0 01-1.5 1.5H3.75a1.5 1.5 0 01-1.5-1.5V6.75a1.5 1.5 0 011.5-1.5z" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M7.5 9.75h9M7.5 14.25h5.25" />+ </svg>+ );+ }+ if (tag === "evolution") {+ return (+ <svg className="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09z" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456z" />+ </svg>+ );+ }+ return (+ <svg className="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M11.25 6h9m-9 6h9m-9 6h9M3.75 6h.008v.008H3.75V6zm0 6h.008v.008H3.75V12zm0 6h.008v.008H3.75V18z" />+ </svg>+ );+}++function getGroupToneClass(tag: string): string {+ if (tag === "model") return "text-blue-500 bg-blue-500/10 border-blue-500/20";+ if (tag === "embed") return "text-cyan-500 bg-cyan-500/10 border-cyan-500/20";+ if (tag === "third_party_api") return "text-indigo-500 bg-indigo-500/10 border-indigo-500/20";+ if (tag === "evolution") return "text-amber-500 bg-amber-500/10 border-amber-500/20";+ if (tag === "email") return "text-emerald-500 bg-emerald-500/10 border-emerald-500/20";+ return "text-text-muted bg-secondary/70 border-border";+}++function isBooleanKey(key: string): boolean {+ return EVOLUTION_KEYS.has(key);+}++function parseBoolValue(value: string): boolean {+ return value.toLowerCase() === "true" || value === "1";+}++const BOOL_KEY_LABELS: Record<string, string> = {+ evolution_auto_scan: "自动检测可演进信号",+};++function isSensitiveKey(key: string): boolean {+ const lower = key.toLowerCase();+ return (+ lower.includes("key") ||+ lower.includes("secret") ||+ lower.includes("token") ||+ lower.includes("password")+ );+}++function normalizeConfigValue(value: unknown): string {+ if (value === null || value === undefined) return "";+ if (typeof value === "string") return value;+ if (typeof value === "boolean") return value ? "true" : "false";+ if (typeof value === "number") return String(value);+ try {+ return JSON.stringify(value);+ } catch {+ return String(value);+ }+}++function isRequiredModelField(key: string): boolean {+ return REQUIRED_MODEL_FIELD_SET.has(key);+}++function GroupSection({+ group,+ draftValues,+ onChange,+ defaultOpen,+}: {+ group: ConfigGroup;+ draftValues: Record<string, string>;+ onChange: (key: string, value: string) => void;+ defaultOpen: boolean;+}) {+ const [open, setOpen] = useState(defaultOpen);+ const [visibleFields, setVisibleFields] = useState<Record<string, boolean>>({});+ const toneClass = getGroupToneClass(group.tag);+ const hint = GROUP_META[group.tag]?.hint ?? "参数分组";++ const toggleFieldVisible = (key: string) => {+ setVisibleFields((prev) => ({ ...prev, [key]: !prev[key] }));+ };++ return (+ <div className="rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm">+ <button+ onClick={() => setOpen(!open)}+ className="w-full flex items-center justify-between px-4 py-3 bg-secondary/30 hover:bg-secondary/60 transition-colors text-sm"+ >+ <span className="flex items-center gap-3 min-w-0">+ <span className={`inline-flex items-center justify-center w-7 h-7 rounded-md border ${toneClass}`}>+ {getGroupIcon(group.tag)}+ </span>+ <span className="min-w-0 text-left">+ <span className="block font-medium text-text">{group.label}</span>+ <span className="block text-xs text-text-muted truncate">{hint}</span>+ </span>+ </span>+ <span className="flex items-center gap-2 text-text-muted ml-3">+ <span className="text-[11px] px-2 py-0.5 rounded-full border border-border bg-secondary/60">+ {group.keys.length} 项+ </span>+ <svg+ className={`w-4 h-4 transition-transform ${open ? "rotate-180" : ""}`}+ fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={2}+ >+ <path strokeLinecap="round" strokeLinejoin="round" d="M19 9l-7 7-7-7" />+ </svg>+ </span>+ </button>+ {open && (+ <table className="w-full text-sm border-t border-border">+ <tbody>+ {group.keys.map(([key, value]) => (+ <tr key={key} className="border-t border-border first:border-t-0 even:bg-secondary/10 hover:bg-secondary/25 transition-colors">+ <td className="px-4 py-2.5 align-middle mono text-xs text-text-muted w-[32%]">{key}</td>+ <td className="px-4 py-2.5 break-all text-[13px] align-middle">+ {isBooleanKey(key) ? (+ <div className="flex items-center gap-2">+ <span+ className={`inline-flex w-3 justify-center shrink-0 font-semibold leading-none select-none ${+ isRequiredModelField(key) ? "text-danger" : "text-transparent"+ }`}+ aria-hidden="true"+ >+ *+ </span>+ <div className="h-[calc(1.25rem+16px)] flex items-center">+ <button+ type="button"+ role="switch"+ aria-checked={parseBoolValue(draftValues[key] ?? value)}+ onClick={() => onChange(key, parseBoolValue(draftValues[key] ?? value) ? "false" : "true")}+ title={BOOL_KEY_LABELS[key] ?? key}+ className={`relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 focus:outline-none ${+ parseBoolValue(draftValues[key] ?? value) ? "bg-ok" : "bg-secondary"+ }`}+ >+ <span+ className={`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition duration-200 ${+ parseBoolValue(draftValues[key] ?? value) ? "translate-x-4" : "translate-x-0"+ }`}+ />+ </button>+ </div>+ </div>+ ) : (+ <div className="flex items-center gap-2">+ <span+ className={`inline-flex w-3 justify-center shrink-0 font-semibold leading-none select-none ${+ isRequiredModelField(key) ? "text-danger" : "text-transparent"+ }`}+ aria-hidden="true"+ >+ *+ </span>+ <div className="relative flex-1">+ <input+ type={isSensitiveKey(key) && !visibleFields[key] ? "password" : "text"}+ value={draftValues[key] ?? value}+ onChange={(e) => onChange(key, e.target.value)}+ placeholder="请输入配置值"+ className={`w-full rounded-md border border-border bg-bg px-3 py-2 text-[13px] outline-none focus:border-accent ${isSensitiveKey(key) ? "pr-10" : ""}`}+ />+ {isSensitiveKey(key) ? (+ <button+ type="button"+ onClick={() => toggleFieldVisible(key)}+ className="absolute inset-y-0 right-0 flex items-center justify-center w-9 text-text-muted hover:text-text transition-colors"+ aria-label={visibleFields[key] ? "隐藏明文" : "显示明文"}+ title={visibleFields[key] ? "隐藏明文" : "显示明文"}+ >+ {visibleFields[key] ? (+ <svg className="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M3 3l18 18" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M10.58 10.58A2 2 0 0013.42 13.42" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M9.88 5.09A10.94 10.94 0 0112 4.9c5.05 0 9.27 3.11 10.5 7.5a11.6 11.6 0 01-3.06 4.88" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M6.61 6.61A11.6 11.6 0 001.5 12.4c.53 1.9 1.63 3.56 3.11 4.79" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M14.12 14.12a3 3 0 01-4.24-4.24" />+ </svg>+ ) : (+ <svg className="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.8}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M1.5 12s3.75-7.5 10.5-7.5S22.5 12 22.5 12s-3.75 7.5-10.5 7.5S1.5 12 1.5 12z" />+ <circle cx="12" cy="12" r="3" />+ </svg>+ )}+ </button>+ ) : null}+ </div>+ </div>+ )}+ </td>+ </tr>+ ))}+ </tbody>+ </table>+ )}+ </div>+ );+}++export function ConfigPanel({ config, isConnected, onSaveConfig }: ConfigPanelProps) {+ const [draftValues, setDraftValues] = useState<Record<string, string>>({});+ const [saving, setSaving] = useState(false);+ const [error, setError] = useState<string | null>(null);++ const normalizedConfig = useMemo<Record<string, string>>(() => {+ if (!config) return {};+ const next: Record<string, string> = {};+ for (const [key, value] of Object.entries(config)) {+ next[key] = normalizeConfigValue(value);+ }+ return next;+ }, [config]);++ useEffect(() => {+ setDraftValues(normalizedConfig);+ setError(null);+ }, [normalizedConfig]);++ const groups = useMemo<ConfigGroup[]>(() => {+ if (!Object.keys(normalizedConfig).length) return [];+ const buckets: Record<string, [string, string][]> = {};+ for (const [key, value] of Object.entries(normalizedConfig)) {+ const tag = classifyKey(key);+ // 临时注释:先隐藏邮件配置,后续需要时可恢复。+ if (tag === "email") continue;+ // 飞书配置已迁移到 ChannelsPanel 管理,这里不再展示。+ if (tag === "feishu") continue;+ (buckets[tag] ??= []).push([key, value]);+ }+ for (const entries of Object.values(buckets)) {+ entries.sort(([a], [b]) => a.localeCompare(b));+ }+ return Object.entries(buckets)+ .map(([tag, keys]) => ({ tag, label: GROUP_META[tag]?.label ?? tag, keys, order: GROUP_META[tag]?.order ?? 99 }))+ .sort((a, b) => a.order - b.order);+ }, [normalizedConfig]);+ const totalItems = useMemo(() => groups.reduce((sum, group) => sum + group.keys.length, 0), [groups]);+ const hasChanges = useMemo(() => {+ const keys = Object.keys(normalizedConfig);+ return keys.some((key) => (draftValues[key] ?? "") !== normalizedConfig[key]);+ }, [draftValues, normalizedConfig]);+ const missingRequiredModelFields = useMemo(+ () => REQUIRED_MODEL_FIELDS.filter((key) => !(draftValues[key] ?? "").trim()),+ [draftValues],+ );+ const hasMissingRequiredModelFields = missingRequiredModelFields.length > 0;++ const handleFieldChange = (key: string, value: string) => {+ setDraftValues((prev) => ({ ...prev, [key]: value }));+ if (error) {+ setError(null);+ }+ };++ const handleCancel = () => {+ if (!hasChanges) return;+ setDraftValues(normalizedConfig);+ setError(null);+ };++ const handleSaveAndRestart = async () => {+ if (!hasChanges || saving) return;+ if (hasMissingRequiredModelFields) {+ setError(`模型配置为必填:${missingRequiredModelFields.join("、")}。请完整填写后再保存并重启。`);+ return;+ }+ setSaving(true);+ setError(null);+ try {+ await onSaveConfig(draftValues);+ } catch (saveError) {+ const message = saveError instanceof Error ? saveError.message : "保存失败,请稍后重试";+ setError(message);+ } finally {+ setSaving(false);+ }+ };++ return (+ <div className="flex-1 min-h-0">+ <div className="card w-full h-full flex flex-col">+ <div className="flex items-center justify-between gap-4 mb-4">+ <div>+ <h2 className="text-lg font-semibold">配置信息</h2>+ <p className="text-sm text-text-muted mt-1">+ 修改后端服务配置,保存后后端将自动重启以加载最新配置。+ </p>+ </div>+ <div className="flex items-center gap-2">+ <button+ type="button"+ onClick={handleCancel}+ disabled={!hasChanges || saving}+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ 取消+ </button>+ <button+ type="button"+ onClick={() => void handleSaveAndRestart()}+ disabled={!hasChanges || saving || !isConnected || hasMissingRequiredModelFields}+ className="btn primary !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ {saving ? "保存中..." : "保存"}+ </button>+ </div>+ </div>+ {error ? (+ <div className="mb-4 rounded-md border border-[var(--border-danger)] bg-danger-subtle px-3 py-2 text-sm text-danger">+ {error}+ </div>+ ) : null}+ {!error && hasMissingRequiredModelFields ? (+ <div className="mb-4 rounded-md border border-[var(--border-danger)] bg-danger-subtle px-3 py-2 text-sm text-danger">+ 模型配置必填项未完成:{missingRequiredModelFields.join("、")}+ </div>+ ) : null}++ {!groups.length ? (+ <div className="text-sm text-text-muted flex-1 min-h-0">+ 暂未获取到配置,请确认后端服务状态。+ </div>+ ) : (+ <div className="space-y-3 flex-1 min-h-0 overflow-auto pr-1">+ <div className="flex items-center justify-between text-xs text-text-muted px-1">+ <span>共 {groups.length} 个配置组</span>+ <span className="mono">{totalItems} 项参数</span>+ </div>+ {groups.map((group) => (+ <GroupSection+ key={group.label}+ group={group}+ draftValues={draftValues}+ onChange={handleFieldChange}+ defaultOpen={group.tag === "model"}+ />+ ))}+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/HeartbeatPanel/index.tsx b/jiuwenclaw/web/src/components/HeartbeatPanel/index.tsxnew file mode 100644index 0000000000..d4cec471db--- /dev/null+++ b/jiuwenclaw/web/src/components/HeartbeatPanel/index.tsx@@ -0,0 +1,449 @@+import { useCallback, useEffect, useMemo, useState } from 'react';+import { FileViewer } from '../AgentPanel/FileViewer';+import { HeartbeatMessageModal } from '../../features/HeartbeatMessageModal';+import { webRequest } from '../../services/webClient';+import { useSessionStore } from '../../stores';++const HEARTBEAT_FILE_PATH = 'workspace/HEARTBEAT.md';+const HEARTBEAT_FILE_NAME = 'HEARTBEAT.md';++interface ActiveHours {+ start: string;+ end: string;+}++interface HeartbeatConf {+ every: number;+ target: string;+ active_hours: ActiveHours | null;+}++const DEFAULT_CONF: HeartbeatConf = {+ every: 60,+ target: 'web',+ active_hours: null,+};++function normalizeHeartbeatConf(input: unknown): HeartbeatConf {+ if (!input || typeof input !== 'object') {+ return DEFAULT_CONF;+ }+ const data = input as Record<string, unknown>;+ const everyRaw = Number(data.every);+ const every = Number.isFinite(everyRaw) && everyRaw > 0 ? everyRaw : DEFAULT_CONF.every;+ const target = typeof data.target === 'string' ? data.target : DEFAULT_CONF.target;+ const activeHoursRaw = data.active_hours;+ let activeHours: ActiveHours | null = null;+ if (activeHoursRaw && typeof activeHoursRaw === 'object') {+ const active = activeHoursRaw as Record<string, unknown>;+ if (typeof active.start === 'string' && typeof active.end === 'string') {+ activeHours = { start: active.start, end: active.end };+ }+ }+ return {+ every,+ target,+ active_hours: activeHours,+ };+}++function isValidTime(text: string): boolean {+ const match = /^(\d{2}):(\d{2})$/.exec(text.trim());+ if (!match) {+ return false;+ }+ const hour = Number(match[1]);+ const minute = Number(match[2]);+ return hour >= 0 && hour <= 23 && minute >= 0 && minute <= 59;+}++export function HeartbeatPanel() {+ const { isConnected, heartbeatState, heartbeatMessage, heartbeatUpdatedAt, heartbeatHistory } = useSessionStore();+ const [modalOpen, setModalOpen] = useState(false);+ const [modalMessage, setModalMessage] = useState('');+ const [loading, setLoading] = useState(true);+ const [saving, setSaving] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const [success, setSuccess] = useState<string | null>(null);+ const [conf, setConf] = useState<HeartbeatConf>(DEFAULT_CONF);+ const [everyInput, setEveryInput] = useState<string>(String(DEFAULT_CONF.every));+ const [targetInput, setTargetInput] = useState<string>(DEFAULT_CONF.target);+ const [activeHoursEnabled, setActiveHoursEnabled] = useState(false);+ const [startInput, setStartInput] = useState('08:00');+ const [endInput, setEndInput] = useState('22:00');++ const loadConf = useCallback(async () => {+ setLoading(true);+ setError(null);+ setSuccess(null);+ try {+ const payload = await webRequest<Record<string, unknown>>('heartbeat.get_conf');+ const normalized = normalizeHeartbeatConf(payload);+ setConf(normalized);+ setEveryInput(String(normalized.every));+ setTargetInput(normalized.target);+ if (normalized.active_hours) {+ setActiveHoursEnabled(true);+ setStartInput(normalized.active_hours.start);+ setEndInput(normalized.active_hours.end);+ } else {+ setActiveHoursEnabled(false);+ }+ } catch (loadError) {+ const message = loadError instanceof Error ? loadError.message : '加载心跳配置失败';+ setError(message);+ } finally {+ setLoading(false);+ }+ }, []);++ useEffect(() => {+ void loadConf();+ }, [loadConf]);++ useEffect(() => {+ if (!success) {+ return;+ }+ const timer = window.setTimeout(() => {+ setSuccess(null);+ }, 2000);+ return () => {+ window.clearTimeout(timer);+ };+ }, [success]);++ const heartbeatBadge = useMemo(() => {+ if (heartbeatState === 'ok') {+ return {+ text: '最近心跳正常',+ className: 'text-ok border-[var(--border-ok)] bg-ok-subtle',+ };+ }+ if (heartbeatState === 'alert') {+ return {+ text: '最近心跳告警',+ className: 'text-danger border-[var(--border-danger)] bg-danger-subtle',+ };+ }+ return {+ text: '尚无心跳结果',+ className: 'text-text-muted border-border bg-secondary/50',+ };+ }, [heartbeatState]);++ const hasChanges = useMemo(() => {+ if (Number(everyInput) !== conf.every) {+ return true;+ }+ if (targetInput !== conf.target) {+ return true;+ }+ if (!!conf.active_hours !== activeHoursEnabled) {+ return true;+ }+ if (activeHoursEnabled) {+ const currentStart = conf.active_hours?.start ?? '';+ const currentEnd = conf.active_hours?.end ?? '';+ if (startInput !== currentStart || endInput !== currentEnd) {+ return true;+ }+ }+ return false;+ }, [activeHoursEnabled, conf, endInput, everyInput, startInput, targetInput]);++ const resetDraft = () => {+ setEveryInput(String(conf.every));+ setTargetInput(conf.target);+ if (conf.active_hours) {+ setActiveHoursEnabled(true);+ setStartInput(conf.active_hours.start);+ setEndInput(conf.active_hours.end);+ } else {+ setActiveHoursEnabled(false);+ setStartInput('08:00');+ setEndInput('22:00');+ }+ setError(null);+ setSuccess(null);+ };++ const saveConf = useCallback(async () => {+ if (saving) {+ return;+ }+ const every = Number(everyInput);+ if (!Number.isFinite(every) || every <= 0) {+ setError('心跳间隔 every 必须是大于 0 的数字');+ return;+ }+ if (activeHoursEnabled) {+ if (!isValidTime(startInput) || !isValidTime(endInput)) {+ setError('active_hours 需使用 HH:MM 格式(例如 08:00)');+ return;+ }+ }+ setSaving(true);+ setError(null);+ setSuccess(null);+ try {+ const params: Record<string, unknown> = {+ every,+ // 暂时固定为当前配置中的目标频道,前端不允许修改+ target: conf.target,+ };+ if (activeHoursEnabled) {+ params.active_hours = {+ start: startInput.trim(),+ end: endInput.trim(),+ };+ } else {+ // 约定传空对象用于清除 active_hours,表示全天生效+ params.active_hours = {};+ }+ const payload = await webRequest<Record<string, unknown>>('heartbeat.set_conf', params);+ const normalized = normalizeHeartbeatConf(payload);+ setConf(normalized);+ setEveryInput(String(normalized.every));+ setTargetInput(normalized.target);+ if (normalized.active_hours) {+ setActiveHoursEnabled(true);+ setStartInput(normalized.active_hours.start);+ setEndInput(normalized.active_hours.end);+ } else {+ setActiveHoursEnabled(false);+ }+ setSuccess('心跳参数已保存');+ } catch (saveError) {+ const message = saveError instanceof Error ? saveError.message : '保存心跳配置失败';+ setError(message);+ } finally {+ setSaving(false);+ }+ }, [activeHoursEnabled, conf.target, endInput, everyInput, saving, startInput]);++ const openMessageModal = useCallback((message: string) => {+ setModalMessage(message);+ setModalOpen(true);+ }, []);++ const closeMessageModal = useCallback(() => {+ setModalOpen(false);+ }, []);++ const getMessagePreview = useCallback((message: string, maxLength = 80) => {+ const normalized = message.replace(/\s+/g, ' ').trim();+ if (normalized.length <= maxLength) {+ return normalized;+ }+ return `${normalized.slice(0, maxLength)}...`;+ }, []);++ return (+ <div className="flex-1 min-h-0 relative">+ <div className="card w-full h-full flex flex-col">+ {success ? (+ <div className="pointer-events-none absolute top-3 left-1/2 -translate-x-1/2 z-20">+ <div className="bg-ok text-white px-4 py-2 rounded-lg shadow-lg animate-rise text-sm">+ {success}+ </div>+ </div>+ ) : null}+ <div className="flex items-center justify-between gap-4 mb-4">+ <div>+ <h2 className="text-lg font-semibold">心跳管理</h2>+ <p className="text-sm text-text-muted mt-1">维护心跳参数与指令文件</p>+ </div>+ <div className="flex items-center gap-2">+ <span className={`mono px-2.5 py-1 rounded-full border text-xs ${heartbeatBadge.className}`}>+ {heartbeatBadge.text}+ </span>+ </div>+ </div>++ <div className="flex-1 min-h-0 grid grid-cols-[minmax(0,3fr)_minmax(0,7fr)] gap-4">+ <div className="rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm flex flex-col min-h-0">+ <div className="px-4 py-3 bg-secondary/30 border-b border-border">+ <div className="flex items-start justify-between gap-4">+ <div>+ <h3 className="text-sm font-medium text-text">心跳参数配置</h3>+ <p className="text-xs text-text-muted mt-1">配置心跳间隔、目标频道与生效时间</p>+ </div>+ <div className="flex items-center gap-2">+ <button+ type="button"+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ onClick={() => void loadConf()}+ disabled={saving}+ >+ 刷新+ </button>+ <button+ type="button"+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ onClick={resetDraft}+ disabled={loading || saving || !hasChanges}+ >+ 取消+ </button>+ <button+ type="button"+ className="btn primary !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ onClick={() => void saveConf()}+ disabled={loading || saving || !hasChanges || !isConnected}+ >+ {saving ? '保存中...' : '保存'}+ </button>+ </div>+ </div>+ </div>+ <div className="flex-1 min-h-0 p-4 flex flex-col gap-3 text-sm text-text-muted">+ {loading ? (+ <div className="rounded-lg border border-border bg-secondary/30 px-3 py-2">+ 正在加载心跳配置...+ </div>+ ) : null}++ {error ? (+ <div className="rounded-lg border border-danger/30 bg-danger/10 px-3 py-2 text-danger">+ {error}+ </div>+ ) : null}++ {!loading ? (+ <>+ <label className="block space-y-1.5">+ <span className="text-xs uppercase tracking-wide text-text-muted">间隔时间 (秒)</span>+ <input+ type="number"+ min={1}+ step="1"+ value={everyInput}+ onChange={(event) => setEveryInput(event.target.value)}+ className="w-full rounded-md border border-border bg-bg px-3 py-2 text-[13px] text-text outline-none focus:border-accent"+ />+ </label>++ <label className="block space-y-1.5">+ <span className="text-xs uppercase tracking-wide text-text-muted">目标频道 (channel_id)</span>+ <input+ type="text"+ value={targetInput}+ disabled+ className="w-full rounded-md border border-border bg-secondary/60 px-3 py-2 text-[13px] text-text-muted cursor-not-allowed"+ />+ <p className="text-[11px] text-text-muted">目标频道暂不支持在此处修改</p>+ </label>++ <div className="rounded-lg border border-border bg-secondary/20 p-3 space-y-2">+ <label className="inline-flex items-center gap-2 cursor-pointer select-none">+ <input+ type="checkbox"+ checked={activeHoursEnabled}+ onChange={(event) => setActiveHoursEnabled(event.target.checked)}+ className="rounded border-border"+ />+ <span className="text-sm text-text">启用生效时间</span>+ </label>+ <div className="grid grid-cols-2 gap-2">+ <label className="space-y-1">+ <span className="text-xs text-text-muted">开始时间 (HH:MM)</span>+ <input+ type="text"+ value={startInput}+ onChange={(event) => setStartInput(event.target.value)}+ disabled={!activeHoursEnabled}+ className={`w-full rounded-md border px-3 py-2 text-[13px] outline-none ${+ activeHoursEnabled+ ? 'border-border bg-bg text-text focus:border-accent'+ : 'border-border bg-secondary/60 text-text-muted cursor-not-allowed'+ }`}+ />+ </label>+ <label className="space-y-1">+ <span className="text-xs text-text-muted">结束时间 (HH:MM)</span>+ <input+ type="text"+ value={endInput}+ onChange={(event) => setEndInput(event.target.value)}+ disabled={!activeHoursEnabled}+ className={`w-full rounded-md border px-3 py-2 text-[13px] outline-none ${+ activeHoursEnabled+ ? 'border-border bg-bg text-text focus:border-accent'+ : 'border-border bg-secondary/60 text-text-muted cursor-not-allowed'+ }`}+ />+ </label>+ </div>+ </div>++ <div className="rounded-lg border border-border bg-secondary/20 p-3 flex-1 min-h-0 flex flex-col">+ <div className="flex items-center justify-between mb-2">+ <p className="text-xs uppercase tracking-wide text-text-muted">最近 20 条心跳消息</p>+ <span className="mono text-[11px] text-text-muted">{heartbeatHistory.length}/20</span>+ </div>+ {heartbeatHistory.length === 0 ? (+ <div className="flex-1 min-h-0 rounded-md border border-border bg-card/40 flex items-center justify-center">+ <p className="text-xs text-text-muted">暂无历史心跳消息</p>+ </div>+ ) : (+ <div className="flex-1 min-h-0 overflow-auto pr-1">+ {heartbeatHistory.map((item, idx) => (+ <button+ type="button"+ key={`${item.updatedAt}-${idx}`}+ className="w-full text-left flex items-center gap-3 rounded-md border border-border bg-card/60 px-3 py-2.5 mb-1.5 last:mb-0 hover:bg-card/80 transition-colors"+ onClick={() => openMessageModal(item.message)}+ >+ <span+ className={`shrink-0 inline-flex h-8 w-12 items-center justify-center rounded-md border text-sm font-bold tracking-wide ${+ item.status === 'ok'+ ? 'text-ok border-[var(--border-ok)] bg-ok-subtle'+ : item.status === 'alert'+ ? 'text-ok border-[var(--border-ok)] bg-ok-subtle'+ : 'text-text-muted border-border bg-secondary/60'+ }`}+ >+ {item.status === 'unknown' ? 'UNKNOWN' : 'OK'}+ </span>+ <div className="min-w-0 flex-1">+ <p className="text-[13px] text-text leading-snug overflow-hidden text-ellipsis whitespace-nowrap">+ {getMessagePreview(item.message)}+ </p>+ <p className="text-[11px] text-text-muted mt-0.5">{new Date(item.updatedAt).toLocaleString()}</p>+ </div>+ </button>+ ))}+ </div>+ )}+ </div>++ </>+ ) : null}++ <div className="text-xs text-text-muted space-y-1">+ <p>最近心跳时间:{heartbeatUpdatedAt ? new Date(heartbeatUpdatedAt).toLocaleString() : '暂无'}</p>+ <p+ className="block w-full max-w-full overflow-hidden text-ellipsis whitespace-nowrap"+ title={heartbeatMessage ?? 'HEARTBEAT_UNKNOWN'}+ >+ 最近心跳内容:{heartbeatMessage ? getMessagePreview(heartbeatMessage) : 'HEARTBEAT_UNKNOWN'}+ </p>+ </div>++ </div>+ </div>++ <div className="rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm min-h-0">+ <FileViewer filePath={HEARTBEAT_FILE_PATH} fileName={HEARTBEAT_FILE_NAME} />+ </div>+ </div>+ </div>+ <HeartbeatMessageModal+ open={modalOpen}+ message={modalMessage}+ onClose={closeMessageModal}+ />+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/LogsPanel/index.tsx b/jiuwenclaw/web/src/components/LogsPanel/index.tsxnew file mode 100644index 0000000000..377b8d0361--- /dev/null+++ b/jiuwenclaw/web/src/components/LogsPanel/index.tsx@@ -0,0 +1,216 @@+import { useCallback, useEffect, useMemo, useRef, useState } from 'react';++interface LogsPanelProps {+ isConnected: boolean;+}++const WS_RECONNECT_EVENT = 'jiuwenclaw:ws-reconnect-request';++function formatLogEntries(entries: unknown[]): string {+ return entries+ .map((entry) => {+ if (typeof entry === 'string') {+ return entry;+ }+ try {+ return JSON.stringify(entry, null, 2);+ } catch {+ return String(entry);+ }+ })+ .join('\n\n');+}++function parseJsonlTail(raw: string, limit: number): unknown[] {+ const lines = raw+ .split('\n')+ .map((line) => line.trim())+ .filter(Boolean)+ .slice(-limit);++ return lines.map((line) => {+ try {+ return JSON.parse(line);+ } catch {+ return line;+ }+ });+}++function isDebugLogEntry(entry: unknown): boolean {+ if (typeof entry === 'string') {+ return entry.includes('[ws][') || entry.includes('/__dev/ws-log');+ }+ if (!entry || typeof entry !== 'object') {+ return false;+ }+ const record = entry as Record<string, unknown>;+ if (typeof record.ts === 'string' && typeof record.payload === 'object') {+ return true;+ }+ return false;+}++export function LogsPanel({ isConnected: _isConnected }: LogsPanelProps) {+ const [entries, setEntries] = useState<unknown[]>([]);+ const [loading, setLoading] = useState(false);+ const [error, setError] = useState<string | null>(null);+ const [autoRefresh, setAutoRefresh] = useState(true);+ const [wsDisableCompress, setWsDisableCompress] = useState(false);+ const [wsConfigLoading, setWsConfigLoading] = useState(false);+ const preRef = useRef<HTMLPreElement | null>(null);++ const fetchLogs = useCallback(async () => {+ setLoading(true);+ try {+ const filePath = encodeURIComponent('logs/ws-dev.log');+ const response = await fetch(`/file-api/file-content?path=${filePath}`);+ if (!response.ok) {+ const detail = await response.text();+ throw new Error(`读取日志失败(HTTP ${response.status})${detail ? `: ${detail.slice(0, 120)}` : ''}`);+ }++ const raw = await response.text();+ setEntries(parseJsonlTail(raw, 300));+ setError(null);+ } catch (err) {+ setError(err instanceof Error ? err.message : '读取日志失败');+ } finally {+ setLoading(false);+ }+ }, []);++ const fetchWsDebugConfig = useCallback(async () => {+ setWsConfigLoading(true);+ try {+ const response = await fetch('/file-api/ws-debug-config');+ if (!response.ok) {+ throw new Error(`读取 WS 调试配置失败(HTTP ${response.status})`);+ }+ const payload = (await response.json()) as { wsDisableCompress?: boolean };+ setWsDisableCompress(Boolean(payload.wsDisableCompress));+ } catch (err) {+ setError(err instanceof Error ? err.message : '读取 WS 调试配置失败');+ } finally {+ setWsConfigLoading(false);+ }+ }, []);++ const toggleWsDisableCompress = useCallback(async () => {+ const nextValue = !wsDisableCompress;+ setWsConfigLoading(true);+ try {+ const response = await fetch('/file-api/ws-debug-config', {+ method: 'POST',+ headers: {+ 'content-type': 'application/json',+ },+ body: JSON.stringify({+ wsDisableCompress: nextValue,+ }),+ });+ if (!response.ok) {+ const detail = await response.text();+ throw new Error(`更新 WS 调试配置失败(HTTP ${response.status})${detail ? `: ${detail.slice(0, 120)}` : ''}`);+ }+ const payload = (await response.json()) as { wsDisableCompress?: boolean };+ setWsDisableCompress(Boolean(payload.wsDisableCompress));+ setError(null);+ window.dispatchEvent(new CustomEvent(WS_RECONNECT_EVENT));+ } catch (err) {+ setError(err instanceof Error ? err.message : '更新 WS 调试配置失败');+ } finally {+ setWsConfigLoading(false);+ }+ }, [wsDisableCompress]);++ useEffect(() => {+ void fetchLogs();+ void fetchWsDebugConfig();+ }, [fetchLogs, fetchWsDebugConfig]);++ useEffect(() => {+ if (!autoRefresh) {+ return;+ }+ const timer = window.setInterval(() => {+ void fetchLogs();+ }, 3000);+ return () => {+ window.clearInterval(timer);+ };+ }, [autoRefresh, fetchLogs]);++ const visibleEntries = useMemo(+ () => (wsDisableCompress ? entries : entries.filter((entry) => !isDebugLogEntry(entry))),+ [wsDisableCompress, entries]+ );++ const content = useMemo(() => formatLogEntries(visibleEntries), [visibleEntries]);++ useEffect(() => {+ const node = preRef.current;+ if (!node) {+ return;+ }+ node.scrollTop = node.scrollHeight;+ }, [content, error]);++ return (+ <div className="flex-1 min-h-0">+ <div className="card w-full h-full flex flex-col">+ <div className="flex items-center justify-between gap-4 mb-4">+ <div>+ <h2 className="text-lg font-semibold">日志</h2>+ <p className="text-sm text-text-muted mt-1">+ 数据源:<span className="mono text-xs">logs/ws-dev.log</span>+ </p>+ </div>+ <div className="flex items-center gap-2">+ <button+ onClick={() => void toggleWsDisableCompress()}+ className={`btn ${wsDisableCompress ? 'primary' : ''} !px-3 !py-1.5`}+ disabled={wsConfigLoading}+ >+ {wsConfigLoading+ ? '调试模式设置中...'+ : wsDisableCompress+ ? '调试模式开'+ : '调试模式关'}+ </button>+ <button+ onClick={() => setAutoRefresh((prev) => !prev)}+ className={`btn ${autoRefresh ? 'primary' : ''} !px-3 !py-1.5`}+ >+ {autoRefresh ? '自动刷新开' : '自动刷新关'}+ </button>+ <button onClick={() => void fetchLogs()} className="btn !px-3 !py-1.5">+ 刷新+ </button>+ </div>+ </div>++ {error ? (+ <div className="text-sm text-danger flex-1 min-h-0">{error}</div>+ ) : (+ <div className="border border-border rounded-lg bg-secondary/30 flex-1 min-h-0 flex flex-col">+ <div className="px-3 py-2 text-xs text-text-muted border-b border-border flex items-center justify-between">+ <span>最近日志(最多 300 条)</span>+ <span>+ {loading+ ? '加载中...'+ : wsDisableCompress+ ? `${visibleEntries.length} 条`+ : `${visibleEntries.length} 条(总 ${entries.length} 条)`}+ </span>+ </div>+ <pre ref={preRef} className="m-0 p-3 text-xs mono overflow-auto flex-1 min-h-0 whitespace-pre-wrap break-all">+ {content || '暂无日志'}+ </pre>+ </div>+ )}+ </div>+ </div>+ );+}+diff --git a/jiuwenclaw/web/src/components/SessionSidebar/OffloadFilesWidget.tsx b/jiuwenclaw/web/src/components/SessionSidebar/OffloadFilesWidget.tsxnew file mode 100644index 0000000000..a678aa4dce--- /dev/null+++ b/jiuwenclaw/web/src/components/SessionSidebar/OffloadFilesWidget.tsx@@ -0,0 +1,355 @@+import { useCallback, useEffect, useMemo, useState } from 'react';+import {+ OffloadFileListResponse,+ OffloadFileContentResponse,+} from '../../types';+import { webRequest } from '../../services/webClient';++interface OffloadFilesWidgetProps {+ sessionId: string;+}++interface SelectedFile {+ filename: string;+ content: string;+}++export function OffloadFilesWidget({ sessionId }: OffloadFilesWidgetProps) {+ const [isExpanded, setIsExpanded] = useState(true);+ const [files, setFiles] = useState<string[]>([]);+ const [isLoading, setIsLoading] = useState(false);+ const [loadError, setLoadError] = useState<string | null>(null);+ const [selectedFile, setSelectedFile] = useState<SelectedFile | null>(null);+ const [isContentLoading, setIsContentLoading] = useState(false);+ const [contentError, setContentError] = useState<string | null>(null);++ const isSessionReady = useMemo(+ () => Boolean(sessionId && sessionId !== 'new'),+ [sessionId]+ );++ const fetchFiles = useCallback(async () => {+ if (!isSessionReady) {+ setFiles([]);+ return;+ }+ setIsLoading(true);+ setLoadError(null);+ try {+ const data = await webRequest<OffloadFileListResponse>('files.list', {+ session_id: sessionId,+ });+ setFiles(data.files || []);+ } catch (error) {+ console.error('Failed to fetch offload files:', error);+ setLoadError('获取离线文件失败');+ setFiles([]);+ } finally {+ setIsLoading(false);+ }+ }, [isSessionReady, sessionId]);++ useEffect(() => {+ if (isExpanded) {+ fetchFiles();+ } else {+ setLoadError(null);+ }+ }, [isExpanded, fetchFiles]);++ useEffect(() => {+ if (!isSessionReady) {+ setFiles([]);+ setSelectedFile(null);+ setContentError(null);+ }+ }, [isSessionReady]);++ const handleOpenFile = useCallback(+ async (filename: string) => {+ if (!isSessionReady) {+ return;+ }+ setSelectedFile({ filename, content: '' });+ setIsContentLoading(true);+ setContentError(null);+ try {+ const data = await webRequest<OffloadFileContentResponse>('files.get', {+ session_id: sessionId,+ filename,+ });+ setSelectedFile({ filename, content: data.content || '' });+ } catch (error) {+ console.error('Failed to load offload file:', error);+ setContentError('加载失败');+ } finally {+ setIsContentLoading(false);+ }+ },+ [isSessionReady, sessionId]+ );++ const handleCloseModal = useCallback(() => {+ setSelectedFile(null);+ setContentError(null);+ setIsContentLoading(false);+ }, []);++ return (+ <div+ className="mt-4 pt-4 border-t border-border px-2.5"+ style={{ borderColor: 'var(--border)' }}+ >+ <div+ className="flex items-center justify-between cursor-pointer"+ onClick={() => setIsExpanded((prev) => !prev)}+ >+ <div className="flex items-center gap-2">+ <div+ className="w-7 h-7 rounded-lg flex items-center justify-center"+ style={{+ background: 'linear-gradient(135deg, var(--accent), var(--accent-2))',+ }}+ >+ <svg+ className="w-4 h-4 text-white"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ strokeWidth={1.6}+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M4 7h16M4 12h16M4 17h16"+ />+ </svg>+ </div>+ <div>+ <div className="text-xs font-semibold text-text-strong">+ Offload Files+ </div>+ <div className="text-[11px] text-text-muted">+ {isSessionReady ? `${files.length} 个文件` : '未连接会话'}+ </div>+ </div>+ </div>+ <button+ className="w-6 h-6 rounded-md flex items-center justify-center"+ style={{ backgroundColor: 'var(--bg-elevated)' }}+ aria-label="toggle offload files"+ >+ <svg+ className={`w-3.5 h-3.5 transition-transform ${+ isExpanded ? 'rotate-180' : ''+ }`}+ viewBox="0 0 20 20"+ fill="currentColor"+ >+ <path+ fillRule="evenodd"+ d="M5.23 7.21a.75.75 0 011.06.02L10 11.1l3.71-3.87a.75.75 0 111.08 1.04l-4.24 4.42a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z"+ clipRule="evenodd"+ />+ </svg>+ </button>+ </div>++ {isExpanded && (+ <div+ className="mt-3 rounded-lg border overflow-hidden"+ style={{+ borderColor: 'var(--border)',+ backgroundColor: 'var(--panel-strong)',+ }}+ >+ <div className="max-h-40 overflow-y-auto">+ {isLoading && (+ <div className="px-3 py-2 text-xs text-text-muted">+ 加载中...+ </div>+ )}+ {!isLoading && loadError && (+ <div className="px-3 py-2 text-xs text-danger">{loadError}</div>+ )}+ {!isLoading && !loadError && files.length === 0 && (+ <div className="px-3 py-2 text-xs text-text-muted">+ 暂无离线文件+ </div>+ )}+ {!isLoading &&+ !loadError &&+ files.map((filename) => (+ <button+ key={filename}+ onClick={() => handleOpenFile(filename)}+ className="w-full text-left px-3 py-2 text-xs transition-colors"+ style={{+ borderBottom: '1px solid var(--border)',+ }}+ onMouseOver={(event) => {+ event.currentTarget.style.backgroundColor =+ 'var(--panel-hover)';+ }}+ onMouseOut={(event) => {+ event.currentTarget.style.backgroundColor = 'transparent';+ }}+ >+ <div className="flex items-center gap-2">+ <svg+ className="w-3.5 h-3.5 text-text-muted"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M4 5a2 2 0 012-2h8l6 6v10a2 2 0 01-2 2H6a2 2 0 01-2-2V5z"+ />+ </svg>+ <span className="truncate">{filename}</span>+ </div>+ </button>+ ))}+ </div>+ </div>+ )}++ <OffloadFileModal+ isOpen={Boolean(selectedFile)}+ filename={selectedFile?.filename || ''}+ content={selectedFile?.content || ''}+ isLoading={isContentLoading}+ errorMessage={contentError}+ onClose={handleCloseModal}+ />+ </div>+ );+}++interface OffloadFileModalProps {+ isOpen: boolean;+ filename: string;+ content: string;+ isLoading: boolean;+ errorMessage: string | null;+ onClose: () => void;+}++function OffloadFileModal({+ isOpen,+ filename,+ content,+ isLoading,+ errorMessage,+ onClose,+}: OffloadFileModalProps) {+ if (!isOpen) {+ return null;+ }++ return (+ <div className="fixed inset-0 z-50 flex items-center justify-center p-4">+ <div className="absolute inset-0 bg-black/60" onClick={onClose} />+ <div+ className="relative w-full max-w-2xl max-h-[80vh] overflow-hidden rounded-xl animate-rise"+ style={{+ backgroundColor: 'var(--card)',+ boxShadow: 'var(--shadow-xl)',+ }}+ >+ <div+ className="px-6 py-4 flex items-center gap-4"+ style={{+ backgroundColor: 'var(--panel-strong)',+ borderBottom: '1px solid var(--border)',+ }}+ >+ <div+ className="w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0"+ style={{+ background: 'linear-gradient(135deg, var(--accent), var(--accent-2))',+ }}+ >+ <svg+ className="w-5 h-5 text-white"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M4 5a2 2 0 012-2h8l6 6v10a2 2 0 01-2 2H6a2 2 0 01-2-2V5z"+ />+ </svg>+ </div>+ <div className="min-w-0">+ <h2+ className="text-lg font-semibold truncate"+ style={{ color: 'var(--text-strong)' }}+ >+ {filename || '离线文件内容'}+ </h2>+ <p className="text-sm" style={{ color: 'var(--muted)' }}>+ 离线消息文件预览+ </p>+ </div>+ </div>++ <div+ className="px-6 py-5 overflow-y-auto"+ style={{+ maxHeight: '50vh',+ backgroundColor: 'var(--card)',+ }}+ >+ {isLoading && (+ <div className="text-sm text-text-muted">加载中...</div>+ )}+ {!isLoading && errorMessage && (+ <div className="text-sm text-danger">{errorMessage}</div>+ )}+ {!isLoading && !errorMessage && (+ <pre+ className="text-sm whitespace-pre-wrap break-words"+ style={{ color: 'var(--text)' }}+ >+ {content || '文件内容为空'}+ </pre>+ )}+ </div>++ <div+ className="px-6 py-4 flex justify-end"+ style={{+ backgroundColor: 'var(--panel-strong)',+ borderTop: '1px solid var(--border)',+ }}+ >+ <button+ onClick={onClose}+ className="px-4 py-2 text-sm font-medium rounded-lg transition-colors"+ style={{+ color: 'var(--muted)',+ backgroundColor: 'transparent',+ }}+ onMouseOver={(event) => {+ event.currentTarget.style.backgroundColor = 'var(--bg-hover)';+ event.currentTarget.style.color = 'var(--text)';+ }}+ onMouseOut={(event) => {+ event.currentTarget.style.backgroundColor = 'transparent';+ event.currentTarget.style.color = 'var(--muted)';+ }}+ >+ 关闭+ </button>+ </div>+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/SessionSidebar/SessionItem.tsx b/jiuwenclaw/web/src/components/SessionSidebar/SessionItem.tsxnew file mode 100644index 0000000000..1cf422eb77--- /dev/null+++ b/jiuwenclaw/web/src/components/SessionSidebar/SessionItem.tsx@@ -0,0 +1,125 @@+/**+ * SessionItem 组件+ *+ * 单个会话项,支持删除+ */++import { useState } from 'react';+import { Session } from '../../types';+import clsx from 'clsx';++interface SessionItemProps {+ session: Session;+ isActive: boolean;+ onClick: () => void;+ onDelete: () => void;+}++/**+ * 格式化时间显示+ */+function formatTime(timestamp: string): string {+ const date = new Date(timestamp);+ const now = new Date();+ const diff = now.getTime() - date.getTime();++ // 小于1分钟+ if (diff < 60000) {+ return '刚刚';+ }++ // 小于1小时+ if (diff < 3600000) {+ const minutes = Math.floor(diff / 60000);+ return `${minutes}分钟前`;+ }++ // 小于24小时+ if (diff < 86400000) {+ const hours = Math.floor(diff / 3600000);+ return `${hours}小时前`;+ }++ // 小于7天+ if (diff < 604800000) {+ const days = Math.floor(diff / 86400000);+ return `${days}天前`;+ }++ // 超过7天显示日期+ return date.toLocaleDateString('zh-CN', { month: 'short', day: 'numeric' });+}++export function SessionItem({ session, isActive, onClick, onDelete }: SessionItemProps) {+ const [showDelete, setShowDelete] = useState(false);++ // 优先展示会话标题,缺失时回退到会话 ID 片段+ const preview = session.title?.trim() || session.session_id.slice(0, 8);++ const handleDelete = (e: React.MouseEvent) => {+ e.stopPropagation();+ onDelete();+ };++ return (+ <div+ className="relative group"+ onMouseEnter={() => setShowDelete(true)}+ onMouseLeave={() => setShowDelete(false)}+ >+ <button+ onClick={onClick}+ className={clsx(+ 'nav-item w-full text-left pr-8',+ isActive && 'active'+ )}+ >+ {/* 会话图标 */}+ <div className={clsx(+ 'w-8 h-8 rounded-md flex items-center justify-center flex-shrink-0',+ isActive ? 'bg-accent text-white' : 'bg-secondary text-text-muted'+ )}>+ <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" />+ </svg>+ </div>++ {/* 会话信息 */}+ <div className="flex-1 min-w-0">+ <div className={clsx(+ 'text-sm font-medium truncate',+ isActive ? 'text-text-strong' : 'text-text'+ )}>+ {preview}+ </div>+ <div className="text-xs text-text-muted truncate">+ {session.updated_at ? formatTime(session.updated_at) : '新会话'}+ </div>+ </div>++ {/* 消息计数 */}+ {session.message_count && session.message_count > 0 && !showDelete && (+ <span className={clsx(+ 'text-xs px-1.5 py-0.5 rounded-full',+ isActive ? 'bg-accent-subtle text-accent' : 'bg-secondary text-text-muted'+ )}>+ {session.message_count}+ </span>+ )}+ </button>++ {/* 删除按钮 */}+ {showDelete && (+ <button+ onClick={handleDelete}+ className="absolute right-2 top-1/2 -translate-y-1/2 p-1.5 rounded-md text-text-muted hover:text-danger hover:bg-danger-subtle transition-colors"+ title="删除会话"+ >+ <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" />+ </svg>+ </button>+ )}+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/SessionSidebar/SessionSidebar.css b/jiuwenclaw/web/src/components/SessionSidebar/SessionSidebar.cssnew file mode 100644index 0000000000..65342781d1--- /dev/null+++ b/jiuwenclaw/web/src/components/SessionSidebar/SessionSidebar.css@@ -0,0 +1,19 @@+.session-sidebar-group-title {+ font-size: 0.875rem;+ font-weight: 500;+ color: var(--muted);+ letter-spacing: 0.05em;+ padding: 0.375rem 0.625rem;+ margin-bottom: 0.5rem;+ background: var(--panel-strong);+ border: 1px solid var(--border);+ border-radius: var(--radius-md);+}++.session-sidebar-group-title--uppercase {+ text-transform: uppercase;+}++.session-sidebar-group-title--with-top-gap {+ margin-top: 1rem;+}diff --git a/jiuwenclaw/web/src/components/SessionSidebar/index.tsx b/jiuwenclaw/web/src/components/SessionSidebar/index.tsxnew file mode 100644index 0000000000..7ca11b1ee0--- /dev/null+++ b/jiuwenclaw/web/src/components/SessionSidebar/index.tsx@@ -0,0 +1,139 @@+/**+ * SessionSidebar 组件+ *+ * 会话侧边栏,显示会话列表+ */++import { OffloadFilesWidget } from './OffloadFilesWidget';+import './SessionSidebar.css';++type MainNavKey = 'chat' | 'skills' | 'agents' | 'sessions' | 'heartbeat' | 'channels' | 'configpanel' | 'logspanel' | 'browserpanel';++interface SessionSidebarProps {+ activeNav: MainNavKey;+ onNavigate: (nav: MainNavKey) => void;+ sessionId: string;+}++export function SessionSidebar({+ activeNav,+ onNavigate,+ sessionId,+}: SessionSidebarProps) {++ return (+ <aside className="nav flex flex-col">+ <div className="session-sidebar-group-title session-sidebar-group-title--uppercase">+ 对话+ </div>+ <div className="space-y-1 mb-4">+ <button+ onClick={() => onNavigate('chat')}+ className={`nav-item w-full ${activeNav === 'chat' ? 'active' : ''}`}+ >+ <svg className="w-4 h-4 nav-item__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" />+ </svg>+ 对话+ </button>+ </div>++ <div className="session-sidebar-group-title">+ 智能体+ </div>+ <div className="space-y-1">+ <button+ onClick={() => onNavigate('agents')}+ className={`nav-item w-full ${activeNav === 'agents' ? 'active' : ''}`}+ >+ <svg className="w-4 h-4 nav-item__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />+ </svg>+ 智能体+ </button>+ <button+ onClick={() => onNavigate('sessions')}+ className={`nav-item w-full ${activeNav === 'sessions' ? 'active' : ''}`}+ >+ <svg className="w-4 h-4 nav-item__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 6v12m6-6H6m9-9h3a2.25 2.25 0 012.25 2.25v3M9 3H6a2.25 2.25 0 00-2.25 2.25v3m0 6v3A2.25 2.25 0 006 19.75h3m6 0h3a2.25 2.25 0 002.25-2.25v-3" />+ </svg>+ 会话+ </button>+ <button+ onClick={() => onNavigate('heartbeat')}+ className={`nav-item w-full ${activeNav === 'heartbeat' ? 'active' : ''}`}+ >+ <svg className="w-4 h-4 nav-item__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M3.75 12h3.75l1.5-4.5 3 9 2.25-6h6" />+ </svg>+ 心跳+ </button>+ <button+ onClick={() => onNavigate('skills')}+ className={`nav-item w-full ${activeNav === 'skills' ? 'active' : ''}`}+ >+ <svg className="w-4 h-4 nav-item__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z" />+ </svg>+ 技能+ </button>+ <button+ onClick={() => onNavigate('channels')}+ className={`nav-item w-full ${activeNav === 'channels' ? 'active' : ''}`}+ >+ <svg className="w-4 h-4 nav-item__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M4.5 6.75h15m-15 5.25h15m-15 5.25h15" />+ </svg>+ 频道+ </button>+ </div>++ <div className="session-sidebar-group-title session-sidebar-group-title--with-top-gap">+ 设置+ </div>+ <div className="space-y-1">+ <button+ onClick={() => onNavigate('configpanel')}+ className={`nav-item w-full ${activeNav === 'configpanel' ? 'active' : ''}`}+ >+ <svg className="w-4 h-4 nav-item__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 010 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 010-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28z" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />+ </svg>+ 配置信息+ </button>+ <button+ onClick={() => onNavigate('browserpanel')}+ className={`nav-item w-full ${activeNav === 'browserpanel' ? 'active' : ''}`}+ >+ <svg className="w-4 h-4 nav-item__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <circle cx="12" cy="12" r="10" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M2 12h20M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10A15.3 15.3 0 0112 2z" />+ </svg>+ 浏览器服务+ </button>+ <button+ onClick={() => onNavigate('logspanel')}+ className={`nav-item w-full ${activeNav === 'logspanel' ? 'active' : ''}`}+ >+ <svg className="w-4 h-4 nav-item__icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M7.5 3.75h9a2.25 2.25 0 012.25 2.25v12a2.25 2.25 0 01-2.25 2.25h-9A2.25 2.25 0 015.25 18V6A2.25 2.25 0 017.5 3.75z" />+ <path strokeLinecap="round" strokeLinejoin="round" d="M8.25 8.25h7.5M8.25 12h7.5M8.25 15.75h4.5" />+ </svg>+ 日志+ </button>+ </div>++ <div className="flex-1" />++ {false && <OffloadFilesWidget sessionId={sessionId} />}++ <div className="pt-4 mt-4 border-t border-border text-xs text-text-muted">+ <div className="px-2.5">+ <span>版本 0.1.0</span>+ </div>+ </div>+ </aside>+ );+}diff --git a/jiuwenclaw/web/src/components/SessionsPanel/index.tsx b/jiuwenclaw/web/src/components/SessionsPanel/index.tsxnew file mode 100644index 0000000000..0e86572c09--- /dev/null+++ b/jiuwenclaw/web/src/components/SessionsPanel/index.tsx@@ -0,0 +1,350 @@+import { useEffect, useMemo, useState } from 'react';+import { FileViewer } from '../AgentPanel/FileViewer';+import { containsIgnoredDirectory } from '../../features/fileTreeFilters';+import { webRequest } from '../../services/webClient';++interface SessionsPanelProps {+ currentSessionId: string;+}++interface SessionListResponse {+ sessions?: unknown[];+}++interface SessionFileItem {+ name: string;+ path: string;+ isMarkdown: boolean;+ isDirectory: boolean;+ depth: number;+}++interface ListFilesResponse {+ files?: unknown[];+}++function formatDateTime(date: Date): string {+ const year = date.getFullYear();+ const month = String(date.getMonth() + 1).padStart(2, '0');+ const day = String(date.getDate()).padStart(2, '0');+ const hours = String(date.getHours()).padStart(2, '0');+ const minutes = String(date.getMinutes()).padStart(2, '0');+ const seconds = String(date.getSeconds()).padStart(2, '0');+ return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;+}++function isPlausibleDate(date: Date): boolean {+ const year = date.getFullYear();+ return year >= 2020 && year <= 2100;+}++function parseSessionDisplayLabel(sessionId: string): string {+ if (!sessionId) return '未知会话-未知时间';++ if (sessionId.startsWith('sess_')) {+ const parts = sessionId.split('_');+ const hexTs = parts[1] ?? '';+ if (/^[0-9a-fA-F]+$/.test(hexTs)) {+ const ms = Number.parseInt(hexTs, 16);+ if (Number.isFinite(ms)) {+ const date = new Date(ms);+ if (!Number.isNaN(date.getTime()) && isPlausibleDate(date)) {+ return `会话-${formatDateTime(date)}`;+ }+ }+ }+ return '会话-未知时间';+ }++ if (sessionId.startsWith('heartbeat_')) {+ const rawBody = sessionId.slice('heartbeat_'.length);+ return rawBody ? `心跳-${rawBody}` : '心跳';+ }++ const prefix = sessionId.includes('_') ? sessionId.split('_')[0] : '未知';+ return `${prefix}-未知时间`;+}++function toSessionIds(raw: unknown[]): string[] {+ return raw.filter((item): item is string => typeof item === 'string' && item.trim().length > 0);+}++function toSessionFiles(raw: unknown[]): SessionFileItem[] {+ const rows: SessionFileItem[] = [];+ for (const item of raw) {+ if (!item || typeof item !== 'object') continue;+ const rec = item as Record<string, unknown>;+ const name = rec.name;+ const path = rec.path;+ const isMarkdown = rec.isMarkdown;+ const isDirectory = rec.isDirectory;+ if (+ typeof name !== 'string' ||+ typeof path !== 'string' ||+ typeof isMarkdown !== 'boolean' ||+ typeof isDirectory !== 'boolean'+ ) {+ continue;+ }+ rows.push({ name, path, isMarkdown, isDirectory, depth: 0 });+ }+ return rows;+}++export function SessionsPanel({ currentSessionId }: SessionsPanelProps) {+ const [sessions, setSessions] = useState<string[]>([]);+ const [loadingSessions, setLoadingSessions] = useState(true);+ const [sessionsError, setSessionsError] = useState<string | null>(null);+ const [selectedSessionId, setSelectedSessionId] = useState<string | null>(null);+ const [deletingSessionId, setDeletingSessionId] = useState<string | null>(null);+ const [files, setFiles] = useState<SessionFileItem[]>([]);+ const [loadingFiles, setLoadingFiles] = useState(false);+ const [filesError, setFilesError] = useState<string | null>(null);+ const [selectedFile, setSelectedFile] = useState<SessionFileItem | null>(null);++ const loadSessions = async () => {+ setLoadingSessions(true);+ try {+ const payload = await webRequest<SessionListResponse>('session.list', { limit: 20 });+ const rows = Array.isArray(payload?.sessions) ? toSessionIds(payload.sessions) : [];+ setSessions(rows);+ setSessionsError(null);+ setSelectedSessionId((prev) => {+ if (prev && rows.includes(prev)) return prev;+ if (currentSessionId && rows.includes(currentSessionId)) return currentSessionId;+ return rows[0] ?? null;+ });+ } catch (error) {+ console.error('Failed to load sessions:', error);+ setSessions([]);+ setSessionsError('会话列表加载失败');+ setSelectedSessionId(null);+ } finally {+ setLoadingSessions(false);+ }+ };++ useEffect(() => {+ void loadSessions();+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, []);++ useEffect(() => {+ if (!selectedSessionId) {+ setFiles([]);+ setFilesError(null);+ setSelectedFile(null);+ return;+ }+ const loadFiles = async () => {+ setLoadingFiles(true);+ setFilesError(null);+ setSelectedFile(null);+ try {+ const fetchDirEntries = async (dir: string, depth: number): Promise<SessionFileItem[]> => {+ const encodedDir = encodeURIComponent(dir);+ const resp = await fetch(`/file-api/list-files?dir=${encodedDir}`);+ if (!resp.ok) {+ const text = await resp.text();+ throw new Error(`HTTP ${resp.status}: ${text.substring(0, 120)}`);+ }+ const payload = (await resp.json()) as ListFilesResponse;+ const rows = Array.isArray(payload?.files) ? toSessionFiles(payload.files) : [];+ const withDepth = rows.map((item) => ({ ...item, depth }));+ const result: SessionFileItem[] = [];+ for (const item of withDepth) {+ if (containsIgnoredDirectory(item.path)) {+ continue;+ }+ result.push(item);+ if (!item.isDirectory) continue;+ const children = await fetchDirEntries(item.path, depth + 1);+ result.push(...children);+ }+ return result;+ };++ const rootDir = `workspace/session/${selectedSessionId}`;+ const rows = await fetchDirEntries(rootDir, 0);+ setFiles(rows);+ } catch (error) {+ console.error('Failed to load session files:', error);+ setFiles([]);+ setFilesError('会话文件列表加载失败');+ } finally {+ setLoadingFiles(false);+ }+ };+ void loadFiles();+ }, [selectedSessionId]);++ const handleDeleteSession = async (sessionId: string) => {+ const displayLabel = parseSessionDisplayLabel(sessionId);+ const confirmed = window.confirm(`确认删除会话 ${displayLabel} ?\n将删除该会话目录下所有文件。`);+ if (!confirmed) return;++ setDeletingSessionId(sessionId);+ try {+ await webRequest('session.delete', { session_id: sessionId });+ await loadSessions();+ if (selectedSessionId === sessionId) {+ setSelectedFile(null);+ }+ } catch (error) {+ console.error('Failed to delete session:', error);+ setSessionsError(`删除会话失败:${sessionId}`);+ } finally {+ setDeletingSessionId(null);+ }+ };++ const selectedSessionLabel = useMemo(+ () => (selectedSessionId ? parseSessionDisplayLabel(selectedSessionId) : '未选择会话'),+ [selectedSessionId]+ );++ return (+ <div className="flex-1 min-h-0">+ <div className="card w-full h-full flex flex-col">+ <div className="flex items-center justify-between gap-4 mb-4">+ <div>+ <h2 className="text-lg font-semibold">会话管理</h2>+ <p className="text-sm text-text-muted mt-1">浏览并管理会话与文件</p>+ </div>+ <button+ type="button"+ onClick={() => void loadSessions()}+ disabled={loadingSessions}+ className="btn !px-3 !py-1.5 disabled:opacity-50 disabled:cursor-not-allowed"+ >+ {loadingSessions ? '刷新中...' : '刷新'}+ </button>+ </div>++ {sessionsError ? (+ <div className="mb-4 rounded-md border border-danger/30 bg-danger/10 px-3 py-2 text-sm text-danger">+ {sessionsError}+ </div>+ ) : null}++ <div className="flex-1 min-h-0 grid grid-cols-[minmax(0,1fr)_minmax(0,4fr)] gap-4">+ <div className="rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm flex flex-col min-h-0">+ <div className="px-4 py-3 bg-secondary/30 border-b border-border">+ <div>+ <h3 className="text-sm font-medium text-text">历史会话</h3>+ <p className="text-xs text-text-muted mt-1 mono">+ 最多 20 条,当前 {sessions.length} 条+ </p>+ </div>+ </div>+ <div className="flex-1 overflow-auto p-2 space-y-1">+ {!loadingSessions && sessions.length === 0 ? (+ <div className="h-full flex items-center justify-center text-sm text-text-muted">暂无会话</div>+ ) : (+ sessions.map((sessionId) => (+ <div key={sessionId} className="group grid grid-cols-[minmax(0,1fr)_auto] items-center gap-2">+ <button+ type="button"+ className={`w-full min-w-0 text-left px-3 py-2 rounded-lg border text-sm transition-colors ${+ selectedSessionId === sessionId+ ? 'border-[var(--border-accent)] bg-accent-subtle text-text'+ : 'border-transparent hover:bg-secondary/40 text-text-muted hover:text-text'+ }`}+ onClick={() => setSelectedSessionId(sessionId)}+ title={`${parseSessionDisplayLabel(sessionId)} (${sessionId})`}+ >+ <span className="truncate block">{parseSessionDisplayLabel(sessionId)}</span>+ </button>+ <button+ type="button"+ title="删除会话"+ className="shrink-0 p-1.5 rounded-md text-text-muted hover:text-danger hover:bg-danger-subtle transition-colors disabled:opacity-50"+ disabled={deletingSessionId === sessionId}+ onClick={() => void handleDeleteSession(sessionId)}+ >+ <svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1.5}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" />+ </svg>+ </button>+ </div>+ ))+ )}+ </div>+ </div>++ <div className="rounded-xl border border-border bg-card/70 backdrop-blur-sm overflow-hidden shadow-sm grid grid-cols-[minmax(0,1fr)_minmax(0,3fr)] min-h-0">+ <div className="border-r border-border flex flex-col min-h-0">+ <div className="px-4 py-3 bg-secondary/30 border-b border-border">+ <div>+ <h3 className="text-sm font-medium text-text">会话文件</h3>+ <p className="text-xs text-text-muted mt-1 truncate" title={selectedSessionLabel}>+ {selectedSessionLabel}+ </p>+ </div>+ </div>+ <div className="flex-1 overflow-auto p-2">+ {!selectedSessionId ? (+ <div className="h-full flex items-center justify-center text-sm text-text-muted">请先选择会话</div>+ ) : loadingFiles ? (+ <div className="h-full flex items-center justify-center text-sm text-text-muted">加载文件中...</div>+ ) : filesError ? (+ <div className="rounded-md border border-danger/30 bg-danger/10 px-3 py-2 text-xs text-danger">{filesError}</div>+ ) : files.length === 0 ? (+ <div className="h-full flex items-center justify-center text-sm text-text-muted">暂无文件</div>+ ) : (+ <div className="space-y-1">+ {files.map((file) => {+ const canPreview = !file.isDirectory;+ return (+ <button+ key={file.path}+ type="button"+ className={`w-full text-left px-3 py-2 rounded-lg border text-sm transition-colors ${+ canPreview && selectedFile?.path === file.path+ ? 'border-[var(--border-accent)] bg-accent-subtle text-text'+ : 'border-transparent text-text-muted'+ } ${canPreview ? 'hover:bg-secondary/40 hover:text-text' : 'cursor-default'}`}+ onClick={() => {+ if (!canPreview) return;+ setSelectedFile(file);+ }}+ >+ <span className="flex items-center justify-between gap-2">+ <span+ className="truncate block"+ style={{ paddingLeft: `${file.depth * 16}px` }}+ >+ {file.name}+ </span>+ {file.isDirectory ? (+ <span className="text-[10px] px-1.5 py-0.5 rounded border border-border bg-secondary/50 text-text-muted">+ 文件夹+ </span>+ ) : !file.isMarkdown ? (+ <span className="text-[10px] px-1.5 py-0.5 rounded border border-border bg-secondary/50 text-text-muted">+ 不可预览+ </span>+ ) : null}+ </span>+ </button>+ );+ })}+ </div>+ )}+ </div>+ </div>+ <div className="flex-1 min-h-0">+ {selectedFile ? (+ <FileViewer filePath={selectedFile.path} fileName={selectedFile.name} />+ ) : (+ <div className="h-full flex items-center justify-center text-text-muted">+ 请选择一个文件查看+ </div>+ )}+ </div>+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/SkillPanel/index.tsx b/jiuwenclaw/web/src/components/SkillPanel/index.tsxnew file mode 100644index 0000000000..d11fbc5e19--- /dev/null+++ b/jiuwenclaw/web/src/components/SkillPanel/index.tsx@@ -0,0 +1,541 @@+/**+ * SkillPanel 组件+ *+ * Skills 管理面板+ */+import { useCallback, useEffect, useMemo, useState } from "react";+import { webRequest } from "../../services/webClient";+import { SourceManagerModal } from "../../features/SourceManagerModal";++type SkillItem = {+ name: string;+ description: string;+ source: string;+ version: string;+ author: string;+ tags: string[];+ allowed_tools: string[];+ marketplace?: string;+};++type InstalledPluginItem = {+ plugin_name: string;+ marketplace: string;+ spec: string;+ version: string;+ installed_at: string;+ git_commit?: string | null;+ skills: string[];+};++type MarketplaceItem = {+ name: string;+ url: string;+ install_location: string;+ last_updated?: string | null;+};++type SkillDetail = SkillItem & {+ content: string;+ file_path: string;+};++type LoadState = "idle" | "loading" | "success" | "error";++interface SkillPanelProps {+ sessionId: string;+}++function getSourceLabel(source: string): string {+ if (source === "local") return "本地";+ if (source === "project") return "项目";+ return source || "未知";+}++export function SkillPanel({ sessionId }: SkillPanelProps) {+ const [skills, setSkills] = useState<SkillItem[]>([]);+ const [plugins, setPlugins] = useState<InstalledPluginItem[]>([]);+ const [marketplaces, setMarketplaces] = useState<MarketplaceItem[]>([]);+ const [search, setSearch] = useState("");+ const [selectedSkill, setSelectedSkill] = useState<SkillDetail | null>(null);+ const [listState, setListState] = useState<LoadState>("idle");+ const [detailState, setDetailState] = useState<LoadState>("idle");+ const [actionTarget, setActionTarget] = useState<string | null>(null);+ const [message, setMessage] = useState<string | null>(null);+ const [sourceModalOpen, setSourceModalOpen] = useState(false);+ const withSession = useCallback(+ (params?: Record<string, unknown>) => ({+ ...(params || {}),+ session_id: sessionId,+ }),+ [sessionId]+ );++ const installedSkillMap = useMemo(() => {+ const map = new Map<string, InstalledPluginItem>();+ plugins.forEach((plugin) => {+ plugin.skills.forEach((skill) => {+ if (!map.has(skill)) {+ map.set(skill, plugin);+ }+ });+ });+ return map;+ }, [plugins]);++ const filteredSkills = useMemo(() => {+ const keyword = search.trim().toLowerCase();+ if (!keyword) return skills;+ return skills.filter((skill) => {+ const haystack = [+ skill.name,+ skill.description,+ skill.author,+ skill.tags.join(" "),+ ]+ .join(" ")+ .toLowerCase();+ return haystack.includes(keyword);+ });+ }, [skills, search]);++ const fetchMarketplaces = useCallback(async () => {+ try {+ const data = await webRequest<{ marketplaces?: MarketplaceItem[] }>(+ "skills.marketplace.list",+ withSession()+ );+ setMarketplaces(data.marketplaces || []);+ } catch (error) {+ console.error("获取 marketplaces 失败:", error);+ }+ }, []);++ const fetchSkills = useCallback(async (refreshMarketplaces = false) => {+ setListState("loading");+ try {+ const [skillsData, pluginsData] = await Promise.all([+ webRequest<{ skills?: SkillItem[] }>(+ "skills.list",+ withSession(+ refreshMarketplaces ? { refresh_marketplaces: true } : undefined+ )+ ),+ webRequest<{ plugins?: InstalledPluginItem[] }>("skills.installed", withSession()),+ ]);+ setSkills(skillsData.skills || []);+ setPlugins(pluginsData.plugins || []);+ setListState("success");++ fetchMarketplaces();+ } catch (error) {+ console.error(error);+ setListState("error");+ }+ }, [fetchMarketplaces, withSession]);++ const fetchSkillDetail = useCallback(+ async (skillName: string) => {+ setDetailState("loading");+ try {+ const data = await webRequest<SkillDetail>(+ "skills.get",+ withSession({ name: skillName })+ );+ setSelectedSkill(data);+ setDetailState("success");+ } catch (error) {+ console.error(error);+ setDetailState("error");+ }+ },+ [withSession]+ );++ useEffect(() => {+ fetchSkills();+ }, [fetchSkills]);++ const handleOpenSkill = useCallback(+ (skillName: string) => {+ fetchSkillDetail(skillName);+ },+ [fetchSkillDetail]+ );++ const handleBackToList = useCallback(() => {+ setSelectedSkill(null);+ setDetailState("idle");+ }, []);++ const handleInstall = useCallback(+ async (skillName?: string) => {+ const marketplaceNames = marketplaces.map((m) => m.name).join(", ");+ const targetSkill = skillName+ ? skills.find((skill) => skill.name === skillName)+ : undefined;+ const preferredMarketplace =+ targetSkill?.marketplace ||+ (targetSkill &&+ targetSkill.source !== "local" &&+ targetSkill.source !== "project"+ ? targetSkill.source+ : undefined) ||+ marketplaces[0]?.name ||+ "anthropics";+ const defaultSpec = skillName+ ? `${skillName}@${preferredMarketplace}`+ : "plugin-name@anthropics";+ const hint = marketplaceNames+ ? `可用 marketplace: ${marketplaceNames}`+ : "默认 marketplace: anthropics";+ const spec = window.prompt(+ `请输入插件规格 (plugin@marketplace)\n${hint}`,+ defaultSpec+ );+ if (!spec) return;++ setActionTarget(spec);+ setMessage(null);+ try {+ const data = await webRequest<{+ success: boolean;+ detail?: string;+ message?: string;+ }>("skills.install", withSession({ spec, force: false }));+ if (!data.success) {+ throw new Error(data.detail || data.message || "安装失败");+ }+ setMessage(`已安装:${spec}`);+ await fetchSkills();+ if (selectedSkill) {+ await fetchSkillDetail(selectedSkill.name);+ }+ } catch (error) {+ console.error(error);+ setMessage("安装失败,请检查插件规格或网络");+ } finally {+ setActionTarget(null);+ }+ },+ [fetchSkills, fetchSkillDetail, selectedSkill, marketplaces, skills, withSession]+ );++ const handleImportLocal = useCallback(async () => {+ const path = window.prompt(+ "请输入服务端本地 skill 路径(SKILL.md 或目录)"+ );+ if (!path) return;++ setActionTarget("import_local");+ setMessage(null);+ try {+ const data = await webRequest<{+ success: boolean;+ detail?: string;+ message?: string;+ skill?: { name?: string };+ }>("skills.import_local", withSession({+ path,+ force: false,+ }));+ if (!data.success) {+ throw new Error(data.detail || data.message || "导入失败");+ }+ setMessage(`已导入:${data.skill?.name || path}`);+ await fetchSkills();+ if (data.skill?.name) {+ await fetchSkillDetail(data.skill.name);+ }+ } catch (error) {+ console.error(error);+ setMessage("导入失败,请检查路径或权限");+ } finally {+ setActionTarget(null);+ }+ }, [fetchSkills, fetchSkillDetail, withSession]);++ const handleUninstall = useCallback(+ async (pluginName: string) => {+ if (!pluginName) return;+ const confirmed = window.confirm(`确认卸载 ${pluginName} ?`);+ if (!confirmed) return;++ setActionTarget(pluginName);+ setMessage(null);+ try {+ const data = await webRequest<{+ success: boolean;+ detail?: string;+ message?: string;+ }>("skills.uninstall", withSession({+ name: pluginName,+ }));+ if (!data.success) {+ throw new Error(data.detail || data.message || "卸载失败");+ }+ setMessage(`已卸载:${pluginName}`);+ await fetchSkills();+ if (selectedSkill) {+ await fetchSkillDetail(selectedSkill.name);+ }+ } catch (error) {+ console.error(error);+ setMessage("卸载失败,请稍后重试");+ } finally {+ setActionTarget(null);+ }+ },+ [fetchSkills, fetchSkillDetail, selectedSkill, withSession]+ );++ const renderActionButton = (skill: SkillItem) => {+ const plugin = installedSkillMap.get(skill.name);+ if (plugin) {+ const pluginName = plugin.plugin_name || skill.name;+ const isLoading = actionTarget === pluginName;+ return (+ <button+ onClick={(event) => {+ event.stopPropagation();+ handleUninstall(pluginName);+ }}+ className={`px-3 py-1.5 rounded-md text-sm transition-colors whitespace-nowrap ${+ isLoading+ ? "bg-secondary text-text-muted cursor-not-allowed"+ : "bg-danger text-white hover:bg-danger/90"+ }`}+ disabled={isLoading}+ >+ 卸载+ </button>+ );+ }++ if (skill.source !== "local" && skill.source !== "project") {+ const isLoading = Boolean(actionTarget?.startsWith(`${skill.name}@`));+ return (+ <button+ onClick={(event) => {+ event.stopPropagation();+ handleInstall(skill.name);+ }}+ className={`px-3 py-1.5 rounded-md text-sm transition-colors whitespace-nowrap ${+ isLoading+ ? "bg-secondary text-text-muted cursor-not-allowed"+ : "bg-accent text-white hover:bg-accent-hover"+ }`}+ disabled={isLoading}+ >+ 安装+ </button>+ );+ }++ return (+ <button+ className="px-3 py-1.5 rounded-md text-sm bg-secondary text-text-muted cursor-not-allowed whitespace-nowrap"+ disabled+ >+ 内置+ </button>+ );+ };++ const renderStatus = (skill: SkillItem) => {+ const plugin = installedSkillMap.get(skill.name);+ if (plugin) return "已安装";+ if (skill.source !== "local" && skill.source !== "project") return "未安装";+ return "内置";+ };++ return (+ <div className="flex-1 flex flex-col min-w-0 min-h-0">+ <div className="card flex-1 flex flex-col min-h-0 overflow-hidden">+ <div className="flex items-center justify-between gap-4">+ <div>+ <h2 className="text-lg font-semibold">+ 技能管理+ </h2>+ <p className="text-sm text-text-muted mt-1">+ 管理并安装智能体可用的技能。+ </p>+ </div>+ <div className="flex items-center gap-2">+ <button+ onClick={() => fetchSkills(true)}+ className="px-3 py-1.5 rounded-md text-sm bg-secondary text-text-muted hover:text-text hover:bg-card border border-border"+ >+ 刷新+ </button>+ <button+ onClick={handleImportLocal}+ className={`px-3 py-1.5 rounded-md text-sm transition-colors ${+ actionTarget === "import_local"+ ? "bg-secondary text-text-muted cursor-not-allowed"+ : "bg-secondary text-text hover:bg-card border border-border"+ }`}+ disabled={actionTarget === "import_local"}+ >+ 导入本地技能+ </button>+ <button+ onClick={() => setSourceModalOpen(true)}+ className="px-3 py-1.5 rounded-md text-sm bg-accent text-white hover:bg-accent-hover"+ >+ 源管理+ </button>+ </div>+ </div>++ {message && (+ <div className="mt-3 px-3 py-2 rounded-md bg-secondary text-sm text-text">+ {message}+ </div>+ )}++ {selectedSkill ? (+ <div className="mt-4 flex-1 overflow-y-auto">+ <div className="flex items-center gap-2 mb-3">+ <button+ onClick={handleBackToList}+ className="px-3 py-1.5 rounded-md text-sm bg-secondary text-text-muted hover:text-text hover:bg-card border border-border"+ >+ 返回列表+ </button>+ <div className="text-sm text-text-muted">+ {detailState === "loading" && "加载详情中..."}+ {detailState === "error" && "加载详情失败"}+ </div>+ </div>++ <div className="rounded-lg border border-border bg-panel p-4">+ <div className="flex items-start justify-between gap-4">+ <div>+ <div className="text-lg font-semibold text-text-strong">+ {selectedSkill.name}+ </div>+ <div className="text-sm text-text-muted mt-1">+ {selectedSkill.description || "暂无描述"}+ </div>+ <div className="flex flex-wrap gap-2 mt-3 text-xs text-text-muted">+ <span className="px-2 py-1 rounded-full bg-secondary border border-border">+ 来源:{getSourceLabel(selectedSkill.source)}+ </span>+ <span className="px-2 py-1 rounded-full bg-secondary border border-border">+ 版本:{selectedSkill.version || "unknown"}+ </span>+ <span className="px-2 py-1 rounded-full bg-secondary border border-border">+ 作者:{selectedSkill.author || "unknown"}+ </span>+ </div>+ </div>++ <div className="flex flex-col items-end gap-2">+ {renderActionButton(selectedSkill)}+ </div>+ </div>++ <div className="mt-4">+ <div className="text-sm font-medium text-text mb-2">+ 允许工具+ </div>+ <div className="flex flex-wrap gap-2 text-xs text-text-muted">+ {selectedSkill.allowed_tools?.length ? (+ selectedSkill.allowed_tools.map((tool) => (+ <span+ key={tool}+ className="px-2 py-1 rounded-full bg-secondary border border-border"+ >+ {tool}+ </span>+ ))+ ) : (+ <span className="text-text-muted">无限制</span>+ )}+ </div>+ </div>++ <div className="mt-4">+ <div className="text-sm font-medium text-text mb-2">+ 内容预览+ </div>+ <div className="text-sm text-text whitespace-pre-wrap bg-secondary border border-border rounded-md p-3">+ {selectedSkill.content || "暂无内容"}+ </div>+ </div>+ </div>+ </div>+ ) : (+ <div className="mt-4 flex flex-col flex-1 min-h-0">+ <div className="flex items-center gap-3 flex-shrink-0">+ <div className="flex-1 min-w-0">+ <input+ value={search}+ onChange={(event) => setSearch(event.target.value)}+ placeholder="搜索技能名称、描述或标签"+ className="w-full px-3 py-2 rounded-md bg-panel border border-border text-sm text-text placeholder:text-text-muted"+ />+ </div>+ <div className="text-xs text-text-muted flex-shrink-0">+ 共 {filteredSkills.length} 个+ </div>+ </div>++ <div className="mt-4 flex-1 min-h-0 overflow-y-auto space-y-3">+ {listState === "loading" && (+ <div className="text-sm text-text-muted">加载中...</div>+ )}+ {listState === "error" && (+ <div className="text-sm text-text-muted">+ 获取技能失败,请检查后端服务+ </div>+ )}+ {listState === "success" && filteredSkills.length === 0 && (+ <div className="text-sm text-text-muted">暂无匹配的技能</div>+ )}+ {listState === "success" &&+ filteredSkills.map((skill) => (+ <button+ key={skill.name}+ onClick={() => handleOpenSkill(skill.name)}+ className="w-full text-left p-4 rounded-lg border border-border bg-panel hover:bg-card transition-colors"+ >+ <div className="flex items-start justify-between gap-4">+ <div className="min-w-0 flex-1">+ <div className="text-base font-semibold text-text-strong">+ {skill.name}+ </div>+ <div className="text-sm text-text-muted mt-1 line-clamp-3">+ {skill.description || "暂无描述"}+ </div>+ <div className="flex flex-wrap gap-2 mt-3 text-xs text-text-muted">+ <span className="px-2 py-1 rounded-full bg-secondary border border-border">+ 来源:{getSourceLabel(skill.source)}+ </span>+ <span className="px-2 py-1 rounded-full bg-secondary border border-border">+ 状态:{renderStatus(skill)}+ </span>+ </div>+ </div>+ <div className="flex flex-col items-end gap-2 flex-shrink-0">+ {renderActionButton(skill)}+ </div>+ </div>+ </button>+ ))}+ </div>+ </div>+ )}+ </div>+ <SourceManagerModal+ open={sourceModalOpen}+ sessionId={sessionId}+ onClose={() => setSourceModalOpen(false)}+ onUpdated={async () => {+ await fetchSkills();+ }}+ />+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/StatusBar/StatusBar.css b/jiuwenclaw/web/src/components/StatusBar/StatusBar.cssnew file mode 100644index 0000000000..474c6002c3--- /dev/null+++ b/jiuwenclaw/web/src/components/StatusBar/StatusBar.css@@ -0,0 +1,114 @@+.statusbar-root {+ position: relative;+ min-height: 52px;+ margin-top: auto;+ border-top: 1px solid var(--border);+ background: var(--panel);+}++.statusbar-center {+ position: absolute;+ left: 50%;+ top: 50%;+ transform: translate(-50%, -50%);+ display: inline-flex;+ align-items: center;+ gap: 12px;+ max-width: calc(100% - 32px);+}++.statusbar-exec {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ padding: 4px 6px;+ border: 1px solid var(--border);+ border-radius: 999px;+ background: var(--card);+ box-shadow: inset 0 1px 0 var(--card-highlight);+}++.statusbar-pill {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ padding: 6px 10px;+ border-radius: 999px;+ border: 1px solid transparent;+ font-size: var(--font-size-xs);+ font-weight: 600;+ line-height: 1;+}++.statusbar-pill--processing {+ color: var(--warn);+ background: var(--warn-subtle);+ border-color: rgba(245, 158, 11, 0.28);+}++.statusbar-pill--paused {+ color: var(--warn);+ background: var(--warn-subtle);+ border-color: rgba(245, 158, 11, 0.28);+}++.statusbar-dot {+ width: 7px;+ height: 7px;+ border-radius: 999px;+ background: currentColor;+ box-shadow: 0 0 10px currentColor;+}++.statusbar-dot--pulse {+ animation: pulse-subtle 1.4s ease-in-out infinite;+}++.statusbar-action-btn {+ border: 1px solid var(--border);+ border-radius: 999px;+ padding: 5px 12px;+ font-size: var(--font-size-xs);+ font-weight: 600;+ line-height: 1;+ background: var(--secondary);+ color: var(--text);+ transition:+ transform var(--duration-fast) ease,+ background var(--duration-fast) ease,+ border-color var(--duration-fast) ease,+ color var(--duration-fast) ease;+}++.statusbar-action-btn:hover {+ transform: translateY(-1px);+}++.statusbar-action-btn--pause {+ color: var(--warn);+ border-color: rgba(245, 158, 11, 0.35);+}++.statusbar-action-btn--pause:hover {+ background: var(--warn-subtle);+}++.statusbar-action-btn--cancel {+ color: var(--danger);+ border-color: rgba(239, 68, 68, 0.35);+}++.statusbar-action-btn--cancel:hover {+ background: var(--danger-subtle);+}++.statusbar-action-btn--resume {+ color: var(--primary-foreground);+ background: var(--accent);+ border-color: var(--accent);+}++.statusbar-action-btn--resume:hover {+ background: var(--accent-hover);+ border-color: var(--accent-hover);+}diff --git a/jiuwenclaw/web/src/components/StatusBar/index.tsx b/jiuwenclaw/web/src/components/StatusBar/index.tsxnew file mode 100644index 0000000000..dda7ee759c--- /dev/null+++ b/jiuwenclaw/web/src/components/StatusBar/index.tsx@@ -0,0 +1,85 @@+/**+ * StatusBar 组件+ *+ * 状态栏,显示当前模式、处理状态、暂停/恢复按钮+ * 采用 JiuwenClaw 风格+ */++import { useChatStore } from '../../stores';+import './StatusBar.css';++interface StatusBarProps {+ onPause?: () => void;+ onCancel?: () => void;+ onResume?: () => void;+}++export function StatusBar({ onPause, onCancel, onResume }: StatusBarProps) {+ const { isProcessing, isPaused, pausedTask, interruptResult } = useChatStore();+ const showExec = isProcessing || isPaused;+ /** 有中断结果文案时,统一只显示居中的横条(任务已暂停/恢复/取消/切换/已中断) */+ const showInterruptBarOnly = Boolean(interruptResult?.message);++ return (+ <div className="statusbar-root">+ <div className="statusbar-center">+ {showInterruptBarOnly ? (+ <div+ className={`pill animate-fade-in ${+ interruptResult!.success+ ? 'bg-info text-white border-info'+ : 'bg-danger text-white border-danger'+ }`}+ >+ <span className="text-sm">{interruptResult!.message}</span>+ </div>+ ) : (+ <>+ {/* 执行状态:左侧取消,中间状态,右侧暂停/恢复 */}+ {showExec && (+ <div className="statusbar-exec">+ {onCancel && (+ <button+ onClick={onCancel}+ className="statusbar-action-btn statusbar-action-btn--cancel"+ >+ 取消+ </button>+ )}++ <div className={`statusbar-pill ${isPaused ? 'statusbar-pill--paused' : 'statusbar-pill--processing'}`}>+ <span className={`statusbar-dot ${isPaused ? '' : 'statusbar-dot--pulse'}`.trim()} />+ <span>+ {isPaused+ ? `已暂停${pausedTask ? `: ${pausedTask.slice(0, 20)}...` : ''}`+ : '处理中...'}+ </span>+ </div>++ {isPaused ? (+ onResume && (+ <button+ onClick={onResume}+ className="statusbar-action-btn statusbar-action-btn--resume"+ >+ 恢复+ </button>+ )+ ) : (+ onPause && (+ <button+ onClick={onPause}+ className="statusbar-action-btn statusbar-action-btn--pause"+ >+ 暂停+ </button>+ )+ )}+ </div>+ )}+ </>+ )}+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/TodoList/TodoItem.tsx b/jiuwenclaw/web/src/components/TodoList/TodoItem.tsxnew file mode 100644index 0000000000..0a48fbcec0--- /dev/null+++ b/jiuwenclaw/web/src/components/TodoList/TodoItem.tsx@@ -0,0 +1,61 @@+/**+ * TodoItem 组件+ *+ * 单个任务项显示+ */++import { TodoItem as TodoItemType } from '../../types';+import clsx from 'clsx';++interface TodoItemProps {+ todo: TodoItemType;+}++export function TodoItem({ todo }: TodoItemProps) {+ const getStatusIcon = () => {+ switch (todo.status) {+ case 'pending':+ return (+ <span className="w-4 h-4 rounded border border-border-strong flex items-center justify-center flex-shrink-0" />+ );+ case 'in_progress':+ return (+ <span className="w-4 h-4 rounded border-2 border-info flex items-center justify-center flex-shrink-0 animate-pulse">+ <span className="w-1.5 h-1.5 rounded-full bg-info" />+ </span>+ );+ case 'completed':+ return (+ <span className="w-4 h-4 rounded bg-ok flex items-center justify-center flex-shrink-0">+ <svg className="w-3 h-3 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={3}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M5 13l4 4L19 7" />+ </svg>+ </span>+ );+ default:+ return null;+ }+ };++ return (+ <div+ className={clsx(+ 'flex items-start gap-2 py-1.5 px-2 rounded-md text-sm transition-colors',+ todo.status === 'in_progress' && 'bg-accent-subtle',+ todo.status === 'completed' && 'opacity-60'+ )}+ >+ {getStatusIcon()}+ <span+ className={clsx(+ 'flex-1 leading-tight',+ todo.status === 'completed' && 'line-through text-text-muted',+ todo.status === 'in_progress' && 'text-text-strong',+ todo.status === 'pending' && 'text-text'+ )}+ >+ {todo.status === 'in_progress' && todo.activeForm ? todo.activeForm : todo.content}+ </span>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/TodoList/index.tsx b/jiuwenclaw/web/src/components/TodoList/index.tsxnew file mode 100644index 0000000000..7523a1a74e--- /dev/null+++ b/jiuwenclaw/web/src/components/TodoList/index.tsx@@ -0,0 +1,82 @@+/**+ * TodoList 组件+ *+ * 显示任务列表,支持状态图标和实时更新+ */++import { useTodoStore } from '../../stores';+import { TodoItem } from './TodoItem';++export function TodoList() {+ const { todos } = useTodoStore();++ if (todos.length === 0) {+ return (+ <div className="p-4 h-full flex flex-col items-center justify-center text-center">+ <svg className="w-10 h-10 text-text-muted opacity-30 mb-3" fill="none" stroke="currentColor" viewBox="0 0 24 24" strokeWidth={1}>+ <path strokeLinecap="round" strokeLinejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />+ </svg>+ <p className="text-text-muted text-sm">暂无任务</p>+ </div>+ );+ }++ // 按状态分组+ const inProgress = todos.filter((t) => t.status === 'in_progress');+ const pending = todos.filter((t) => t.status === 'pending');+ const completed = todos.filter((t) => t.status === 'completed');++ return (+ <div className="p-4 space-y-4">+ <h3 className="text-[11px] font-medium text-text-muted uppercase tracking-wider flex items-center justify-between">+ <span>任务列表</span>+ <span className="px-1.5 py-0.5 bg-secondary rounded text-[10px]">{todos.length}</span>+ </h3>++ {/* 进行中 */}+ {inProgress.length > 0 && (+ <div className="space-y-2">+ <div className="flex items-center gap-2 text-xs font-medium text-info">+ <span className="w-1.5 h-1.5 rounded-full bg-info animate-pulse" />+ 进行中+ </div>+ <div className="space-y-1">+ {inProgress.map((todo) => (+ <TodoItem key={todo.id} todo={todo} />+ ))}+ </div>+ </div>+ )}++ {/* 待处理 */}+ {pending.length > 0 && (+ <div className="space-y-2">+ <div className="flex items-center gap-2 text-xs font-medium text-text-muted">+ <span className="w-1.5 h-1.5 rounded-full bg-text-muted" />+ 待处理+ </div>+ <div className="space-y-1">+ {pending.map((todo) => (+ <TodoItem key={todo.id} todo={todo} />+ ))}+ </div>+ </div>+ )}++ {/* 已完成 */}+ {completed.length > 0 && (+ <div className="space-y-2">+ <div className="flex items-center gap-2 text-xs font-medium text-ok">+ <span className="w-1.5 h-1.5 rounded-full bg-ok" />+ 已完成+ </div>+ <div className="space-y-1">+ {completed.map((todo) => (+ <TodoItem key={todo.id} todo={todo} />+ ))}+ </div>+ </div>+ )}+ </div>+ );+}diff --git a/jiuwenclaw/web/src/components/ToolPanel/ToolPanel.css b/jiuwenclaw/web/src/components/ToolPanel/ToolPanel.cssnew file mode 100644index 0000000000..87136d9fd5--- /dev/null+++ b/jiuwenclaw/web/src/components/ToolPanel/ToolPanel.css@@ -0,0 +1,88 @@+.toolpanel-status-card {+ padding: 1rem;+ overflow-y: auto;+ max-height: 12rem;+ border: 1px solid var(--border);+ border-radius: var(--radius-lg);+ background: var(--card);+ box-shadow:+ 0 2px 8px rgba(15, 23, 42, 0.06),+ inset 0 1px 0 var(--card-highlight);+ transition:+ box-shadow var(--duration-fast) ease,+ border-color var(--duration-fast) ease,+ transform var(--duration-fast) ease;+}++.toolpanel-status-card:hover {+ border-color: var(--border-strong);+ box-shadow:+ 0 8px 20px rgba(15, 23, 42, 0.10),+ inset 0 1px 0 var(--card-highlight);+ transform: translateY(-1px);+}++.toolpanel-status-card__title {+ display: inline-flex;+ align-items: center;+ gap: 0.25rem;+ font-size: 0.75rem;+ font-weight: 500;+ color: var(--muted);+ text-transform: uppercase;+ letter-spacing: 0.05em;+ margin-bottom: 0.75rem;+}++.toolpanel-status-card__row {+ display: flex;+ align-items: center;+ justify-content: space-between;+ font-size: 0.75rem;+}++.toolpanel-status-card__heartbeat {+ border-radius: var(--radius-md);+ border: 1px solid;+ padding: 0.5rem 0.625rem;+ font-size: 0.75rem;+ line-height: 1.35;+}++.toolpanel-status-card__heartbeat-row {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.5rem;+}++.toolpanel-status-card__heartbeat-row + .toolpanel-status-card__heartbeat-row {+ margin-top: 0.25rem;+}++.toolpanel-status-card__heartbeat-value {+ text-align: right;+ overflow-wrap: anywhere;+ word-break: break-word;+ font-size: inherit;+ opacity: 0.8;+}++.toolpanel-status-card__heartbeat-link {+ text-align: right;+ overflow-wrap: anywhere;+ word-break: break-word;+ font-size: inherit;+ opacity: 0.9;+ color: inherit;+ text-decoration: underline;+ text-underline-offset: 2px;+ background: transparent;+ border: 0;+ padding: 0;+ cursor: pointer;+}++.toolpanel-status-card__heartbeat-link:hover {+ opacity: 1;+}diff --git a/jiuwenclaw/web/src/components/ToolPanel/index.tsx b/jiuwenclaw/web/src/components/ToolPanel/index.tsxnew file mode 100644index 0000000000..0b7ce97f3a--- /dev/null+++ b/jiuwenclaw/web/src/components/ToolPanel/index.tsx@@ -0,0 +1,176 @@+/**+ * ToolPanel 组件+ *+ * 工具面板,显示 Todo 列表和状态信息+ */++import { useSessionStore } from '../../stores';+import { useEffect, useState } from 'react';+import { webRequest } from '../../services/webClient';+import { HeartbeatMessageModal } from '../../features/HeartbeatMessageModal';+import { TodoList } from '../TodoList';+import './ToolPanel.css';++export function ToolPanel() {+ const {+ contextCompressionRate,+ contextCompressionBefore,+ contextCompressionAfter,+ isConnected,+ memoryUsage,+ setMemoryUsage,+ heartbeatState,+ heartbeatMessage,+ heartbeatUpdatedAt,+ } = useSessionStore();+ const [heartbeatModalOpen, setHeartbeatModalOpen] = useState(false);++ useEffect(() => {+ if (!isConnected) {+ setMemoryUsage(null);+ return;+ }++ let disposed = false;+ let timerId: number | null = null;++ const refreshMemoryUsage = async () => {+ try {+ const payload = await webRequest<Record<string, unknown>>('memory.compute');+ if (disposed) return;++ const rssMb =+ typeof payload.rss_mb === 'number' && Number.isFinite(payload.rss_mb)+ ? payload.rss_mb+ : null;+ const usedPercent =+ typeof payload.used_percent === 'number' && Number.isFinite(payload.used_percent)+ ? payload.used_percent+ : null;++ setMemoryUsage({ rssMb, usedPercent });+ } catch {+ if (!disposed) {+ setMemoryUsage(null);+ }+ }+ };++ void refreshMemoryUsage();+ timerId = window.setInterval(() => {+ void refreshMemoryUsage();+ }, 10000);++ return () => {+ disposed = true;+ if (timerId != null) {+ window.clearInterval(timerId);+ }+ };+ }, [isConnected, setMemoryUsage]);++ const hasHeartbeatMessage = Boolean(heartbeatMessage?.trim());+ const heartbeatClassName =+ heartbeatState === 'ok' || hasHeartbeatMessage+ ? 'text-ok border-[var(--border-ok)] bg-ok-subtle'+ : heartbeatState === 'alert'+ ? 'text-danger border-[var(--border-danger)] bg-danger-subtle'+ : 'text-text-muted border-border bg-secondary/40';++ const heartbeatDetail = heartbeatUpdatedAt+ ? new Date(heartbeatUpdatedAt).toLocaleTimeString('zh-CN', { hour12: false })+ : '--:--:--';+ const isHeartbeatOk = heartbeatMessage?.toUpperCase().includes('HEARTBEAT_OK') ?? false;+ const heartbeatDisplayMessage = !heartbeatMessage+ ? 'HEARTBEAT_UNKNOWN'+ : isHeartbeatOk+ ? heartbeatMessage+ : '心跳消息,点击查看';+ const canOpenHeartbeatModal = Boolean(heartbeatMessage) && !isHeartbeatOk;+ const memoryDisplay =+ memoryUsage.rssMb == null+ ? '--'+ : `${memoryUsage.rssMb.toFixed(1)} MB${memoryUsage.usedPercent == null ? '' : ` (${memoryUsage.usedPercent.toFixed(1)}%)`}`;+ const beforeK = ((contextCompressionBefore ?? 0) / 1000).toFixed(1);+ const afterK = ((contextCompressionAfter ?? 0) / 1000).toFixed(1);+ const compressionRateDisplay = Number.isFinite(contextCompressionRate)+ ? contextCompressionRate.toFixed(1)+ : '0.0';+ const compressionDisplay = `${afterK}K/${beforeK}K (${compressionRateDisplay}%)`;++ return (+ <div+ className="bg-panel border-l border-border h-full overflow-hidden py-4 px-3 shrink-0"+ style={{ width: 'var(--tool-panel-width)' }}+ >+ <div className="h-full bg-panel flex flex-col overflow-hidden">+ {/* Todo 列表 */}+ <div className="flex-1 overflow-y-auto">+ <TodoList />+ </div>++ {/* 状态显示 */}+ <div className="toolpanel-status-card">+ <h3 className="toolpanel-status-card__title">+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">+ <rect x="1" y="8" width="3" height="7" rx="0.5" fill="currentColor" opacity="0.5" />+ <rect x="6" y="4" width="3" height="11" rx="0.5" fill="currentColor" opacity="0.7" />+ <rect x="11" y="1" width="3" height="14" rx="0.5" fill="currentColor" />+ </svg>+ 状态+ </h3>+ <div className="space-y-2">+ <div className="toolpanel-status-card__row">+ <span className="text-text-muted">上下文压缩</span>+ <span className="mono text-text">{compressionDisplay}</span>+ </div>+ <div className="toolpanel-status-card__row">+ <span className="text-text-muted">内存占用</span>+ <span className="mono text-text">{memoryDisplay}</span>+ </div>++ <div className={`toolpanel-status-card__heartbeat ${heartbeatClassName}`}>+ <div className="toolpanel-status-card__heartbeat-row">+ <span>消息</span>+ {canOpenHeartbeatModal ? (+ <button+ type="button"+ className="toolpanel-status-card__heartbeat-link mono"+ onClick={() => setHeartbeatModalOpen(true)}+ >+ {heartbeatDisplayMessage}+ </button>+ ) : (+ <span className="toolpanel-status-card__heartbeat-value mono">+ {heartbeatDisplayMessage}+ </span>+ )}+ </div>+ <div className="toolpanel-status-card__heartbeat-row">+ <span>时间</span>+ <span className="toolpanel-status-card__heartbeat-value mono">+ {heartbeatDetail}+ </span>+ </div>+ </div>+ </div>+ </div>++ {/* 底部信息区:与左侧版本信息保持一致 */}+ <div+ className="shrink-0 pt-4 text-text-muted text-center"+ style={{ fontSize: 'var(--font-size-xs)' }}+ >+ <div className="px-2.5">+ <span>Powered by openJiuwen</span>+ </div>+ </div>+ </div>+ <HeartbeatMessageModal+ open={heartbeatModalOpen}+ message={heartbeatMessage ?? ''}+ onClose={() => setHeartbeatModalOpen(false)}+ />+ </div>+ );+}diff --git a/jiuwenclaw/web/src/features/HeartbeatMessageModal/index.tsx b/jiuwenclaw/web/src/features/HeartbeatMessageModal/index.tsxnew file mode 100644index 0000000000..866fb8f871--- /dev/null+++ b/jiuwenclaw/web/src/features/HeartbeatMessageModal/index.tsx@@ -0,0 +1,65 @@+import { useEffect } from 'react';+import ReactMarkdown from 'react-markdown';+import remarkGfm from 'remark-gfm';++interface HeartbeatMessageModalProps {+ open: boolean;+ message: string;+ onClose: () => void;+}++export function HeartbeatMessageModal({ open, message, onClose }: HeartbeatMessageModalProps) {+ useEffect(() => {+ if (!open) {+ return;+ }++ const handleKeyDown = (event: KeyboardEvent) => {+ if (event.key === 'Escape') {+ onClose();+ }+ };++ window.addEventListener('keydown', handleKeyDown);+ return () => {+ window.removeEventListener('keydown', handleKeyDown);+ };+ }, [open, onClose]);++ if (!open) {+ return null;+ }++ return (+ <div className="fixed inset-0 z-50 flex items-center justify-center p-4">+ <button+ type="button"+ className="absolute inset-0 bg-black/60"+ onClick={onClose}+ aria-label="关闭心跳详情弹窗"+ />+ <div className="relative w-full max-w-3xl max-h-[85vh] overflow-hidden rounded-xl border border-border bg-card shadow-2xl animate-rise">+ <div className="flex items-center justify-between gap-3 px-5 py-3 border-b border-border bg-panel">+ <div>+ <h3 className="text-base font-semibold text-text">心跳消息</h3>+ <p className="text-xs text-text-muted">消息内容详情</p>+ </div>+ <button+ type="button"+ onClick={onClose}+ className="px-2.5 py-1.5 rounded-md border border-border bg-secondary/50 text-text-muted hover:text-text hover:bg-secondary transition-colors"+ >+ 关闭+ </button>+ </div>+ <div className="p-5 overflow-auto max-h-[calc(85vh-64px)]">+ <article className="chat-text max-w-none">+ <ReactMarkdown remarkPlugins={[remarkGfm]}>+ {message || '无详细内容'}+ </ReactMarkdown>+ </article>+ </div>+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/features/SourceManagerModal/index.tsx b/jiuwenclaw/web/src/features/SourceManagerModal/index.tsxnew file mode 100644index 0000000000..a8fac51f41--- /dev/null+++ b/jiuwenclaw/web/src/features/SourceManagerModal/index.tsx@@ -0,0 +1,323 @@+import { useCallback, useEffect, useMemo, useState } from "react";+import { webRequest } from "../../services/webClient";++type MarketplaceItem = {+ name: string;+ url: string;+ install_location?: string;+ last_updated?: string | null;+ enabled?: boolean;+};++type LoadState = "idle" | "loading" | "success" | "error";++interface SourceManagerModalProps {+ open: boolean;+ sessionId: string;+ onClose: () => void;+ onUpdated?: () => Promise<void> | void;+}++export function SourceManagerModal({+ open,+ sessionId,+ onClose,+ onUpdated,+}: SourceManagerModalProps) {+ const [marketplaces, setMarketplaces] = useState<MarketplaceItem[]>([]);+ const [listState, setListState] = useState<LoadState>("idle");+ const [message, setMessage] = useState<string | null>(null);+ const [actionTarget, setActionTarget] = useState<string | null>(null);+ const [nameInput, setNameInput] = useState("");+ const [urlInput, setUrlInput] = useState("");++ const withSession = useCallback(+ (params?: Record<string, unknown>) => ({+ ...(params || {}),+ session_id: sessionId,+ }),+ [sessionId]+ );++ const sortedMarketplaces = useMemo(+ () => [...marketplaces].sort((a, b) => a.name.localeCompare(b.name)),+ [marketplaces]+ );++ const fetchMarketplaces = useCallback(async () => {+ setListState("loading");+ try {+ const data = await webRequest<{ marketplaces?: MarketplaceItem[] }>(+ "skills.marketplace.list",+ withSession()+ );+ setMarketplaces(data.marketplaces || []);+ setListState("success");+ } catch (error) {+ console.error("获取源列表失败:", error);+ setListState("error");+ }+ }, [withSession]);++ useEffect(() => {+ if (!open) return;+ setMessage(null);+ void fetchMarketplaces();+ }, [open, fetchMarketplaces]);++ useEffect(() => {+ if (!open) return;+ const onKeyDown = (event: KeyboardEvent) => {+ if (event.key === "Escape") {+ onClose();+ }+ };+ window.addEventListener("keydown", onKeyDown);+ return () => {+ window.removeEventListener("keydown", onKeyDown);+ };+ }, [open, onClose]);++ const runAfterUpdate = useCallback(async () => {+ await fetchMarketplaces();+ if (onUpdated) {+ await onUpdated();+ }+ }, [fetchMarketplaces, onUpdated]);++ const handleAddSource = useCallback(async () => {+ const name = nameInput.trim();+ const url = urlInput.trim();+ if (!name || !url) {+ setMessage("请先填写源名称和仓库 URL");+ return;+ }++ setActionTarget("add");+ setMessage(null);+ try {+ const data = await webRequest<{ success: boolean; detail?: string; message?: string }>(+ "skills.marketplace.add",+ withSession({ name, url })+ );+ if (!data.success) {+ throw new Error(data.detail || data.message || "添加源失败");+ }+ setNameInput("");+ setUrlInput("");+ setMessage(`已添加源:${name}(默认禁用)`);+ await runAfterUpdate();+ } catch (error) {+ console.error(error);+ setMessage("添加源失败,请检查名称或 URL");+ } finally {+ setActionTarget(null);+ }+ }, [nameInput, runAfterUpdate, urlInput, withSession]);++ const handleRemoveSource = useCallback(+ async (name: string) => {+ const confirmed = window.confirm(`确认删除源 ${name} ?`);+ if (!confirmed) return;++ setActionTarget(`remove:${name}`);+ setMessage(null);+ try {+ const data = await webRequest<{ success: boolean; detail?: string; message?: string }>(+ "skills.marketplace.remove",+ withSession({ name, remove_cache: true })+ );+ if (!data.success) {+ throw new Error(data.detail || data.message || "删除源失败");+ }+ setMessage(`已删除源:${name}`);+ await runAfterUpdate();+ } catch (error) {+ console.error(error);+ setMessage("删除源失败,请稍后重试");+ } finally {+ setActionTarget(null);+ }+ },+ [runAfterUpdate, withSession]+ );++ const handleToggleSource = useCallback(+ async (source: MarketplaceItem) => {+ const targetEnabled = !Boolean(source.enabled ?? true);+ setActionTarget(`toggle:${source.name}`);+ setMessage(null);+ try {+ const data = await webRequest<{ success: boolean; detail?: string; message?: string }>(+ "skills.marketplace.toggle",+ withSession({ name: source.name, enabled: targetEnabled })+ );+ if (!data.success) {+ throw new Error(data.detail || data.message || "切换源状态失败");+ }+ setMessage(targetEnabled ? `已启用源:${source.name}` : `已禁用源:${source.name}`);+ await runAfterUpdate();+ } catch (error) {+ console.error(error);+ setMessage(targetEnabled ? "启用源失败,请检查网络或仓库地址" : "禁用源失败,请稍后重试");+ } finally {+ setActionTarget(null);+ }+ },+ [runAfterUpdate, withSession]+ );++ if (!open) {+ return null;+ }++ return (+ <div className="fixed inset-0 z-50 flex items-center justify-center p-4">+ <button+ type="button"+ className="absolute inset-0 bg-black/60"+ onClick={onClose}+ aria-label="关闭源管理弹窗"+ />+ <div className="relative w-full max-w-4xl max-h-[88vh] overflow-hidden rounded-xl border border-border bg-card shadow-2xl animate-rise">+ <div className="flex items-center justify-between gap-3 px-5 py-3 border-b border-border bg-panel">+ <div>+ <h3 className="text-base font-semibold text-text">源管理</h3>+ <p className="text-xs text-text-muted">添加、删除或启用/禁用技能源</p>+ </div>+ <div className="flex items-center gap-2">+ <button+ type="button"+ onClick={() => void fetchMarketplaces()}+ className="px-3 py-1.5 rounded-md text-sm bg-secondary text-text-muted hover:text-text hover:bg-card border border-border"+ >+ 刷新+ </button>+ <button+ type="button"+ onClick={onClose}+ className="px-3 py-1.5 rounded-md text-sm bg-secondary text-text-muted hover:text-text hover:bg-card border border-border"+ >+ 关闭+ </button>+ </div>+ </div>++ <div className="p-5 overflow-auto max-h-[calc(88vh-64px)]">+ <div className="rounded-lg border border-border bg-panel p-4">+ <div className="text-sm font-medium text-text mb-3">添加源</div>+ <div className="grid grid-cols-1 md:grid-cols-[180px_1fr_auto] gap-2">+ <input+ value={nameInput}+ onChange={(event) => setNameInput(event.target.value)}+ placeholder="源名称"+ className="px-3 py-2 rounded-md bg-card border border-border text-sm text-text placeholder:text-text-muted"+ />+ <input+ value={urlInput}+ onChange={(event) => setUrlInput(event.target.value)}+ placeholder="Git 仓库地址(https://...)"+ className="px-3 py-2 rounded-md bg-card border border-border text-sm text-text placeholder:text-text-muted"+ />+ <button+ type="button"+ onClick={() => void handleAddSource()}+ className={`px-3 py-2 rounded-md text-sm transition-colors ${+ actionTarget === "add"+ ? "bg-secondary text-text-muted cursor-not-allowed"+ : "bg-accent text-white hover:bg-accent-hover"+ }`}+ disabled={actionTarget === "add"}+ >+ 添加+ </button>+ </div>+ </div>++ {message && (+ <div className="mt-3 px-3 py-2 rounded-md bg-secondary text-sm text-text">+ {message}+ </div>+ )}++ <div className="mt-4 rounded-lg border border-border bg-panel p-4">+ <div className="text-sm font-medium text-text mb-2">+ 已配置源({sortedMarketplaces.length} 个)+ </div>+ {listState === "loading" && (+ <div className="text-sm text-text-muted">加载中...</div>+ )}+ {listState === "error" && (+ <div className="text-sm text-text-muted">源列表加载失败,请重试</div>+ )}+ {listState === "success" && sortedMarketplaces.length === 0 && (+ <div className="text-sm text-text-muted">暂无已配置源</div>+ )}+ {listState === "success" && sortedMarketplaces.length > 0 && (+ <div className="space-y-2">+ {sortedMarketplaces.map((source) => {+ const enabled = Boolean(source.enabled ?? true);+ const toggleLoading = actionTarget === `toggle:${source.name}`;+ const removeLoading = actionTarget === `remove:${source.name}`;+ return (+ <div+ key={source.name}+ className="flex items-center justify-between p-3 rounded-md bg-secondary gap-3"+ >+ <div className="min-w-0">+ <div className="text-sm text-text font-medium">{source.name}</div>+ <div className="text-xs text-text-muted break-all">{source.url}</div>+ {source.last_updated && (+ <div className="text-xs text-text-muted mt-1">+ 更新于 {new Date(source.last_updated).toLocaleString()}+ </div>+ )}+ </div>+ <div className="flex items-center gap-2 flex-shrink-0">+ <span+ className={`px-2 py-1 text-xs rounded-full border ${+ enabled+ ? "bg-ok/15 text-ok border-ok/30"+ : "bg-secondary text-text-muted border-border"+ }`}+ >+ {enabled ? "已启用" : "已禁用"}+ </span>+ <button+ type="button"+ onClick={() => void handleToggleSource(source)}+ className={`px-3 py-1.5 rounded-md text-xs transition-colors ${+ toggleLoading+ ? "bg-secondary text-text-muted cursor-not-allowed"+ : enabled+ ? "bg-secondary text-text hover:bg-card border border-border"+ : "bg-accent text-white hover:bg-accent-hover"+ }`}+ disabled={toggleLoading || removeLoading}+ >+ {enabled ? "禁用" : "启用"}+ </button>+ <button+ type="button"+ onClick={() => void handleRemoveSource(source.name)}+ className={`px-3 py-1.5 rounded-md text-xs transition-colors ${+ removeLoading+ ? "bg-secondary text-text-muted cursor-not-allowed"+ : "bg-danger text-white hover:bg-danger/90"+ }`}+ disabled={toggleLoading || removeLoading}+ >+ 删除+ </button>+ </div>+ </div>+ );+ })}+ </div>+ )}+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/features/UserQuestionModal/index.tsx b/jiuwenclaw/web/src/features/UserQuestionModal/index.tsxnew file mode 100644index 0000000000..eb9b811df8--- /dev/null+++ b/jiuwenclaw/web/src/features/UserQuestionModal/index.tsx@@ -0,0 +1,407 @@+/**+ * 用户问题弹窗组件+ *+ * 显示 Agent 提出的问题,让用户选择或输入回答+ */++import { useState, useCallback } from 'react';+import { useChatStore } from '../../stores';+import { Question, UserAnswer } from '../../types';++interface UserQuestionModalProps {+ onSubmit: (requestId: string, answers: UserAnswer[]) => void;+}++export function UserQuestionModal({ onSubmit }: UserQuestionModalProps) {+ const { pendingQuestion, setPendingQuestion } = useChatStore();+ const [answers, setAnswers] = useState<Map<number, UserAnswer>>(new Map());++ // 处理选项选择+ const handleOptionSelect = useCallback(+ (questionIndex: number, optionLabel: string, isMultiSelect: boolean) => {+ setAnswers((prev) => {+ const newAnswers = new Map(prev);+ const current = newAnswers.get(questionIndex) || {+ selected_options: [],+ };++ if (isMultiSelect) {+ // 多选:切换选项+ const selected = current.selected_options || [];+ const newSelected = selected.includes(optionLabel)+ ? selected.filter((o) => o !== optionLabel)+ : [...selected, optionLabel];+ newAnswers.set(questionIndex, {+ ...current,+ selected_options: newSelected,+ });+ } else {+ // 单选:替换选项+ newAnswers.set(questionIndex, {+ ...current,+ selected_options: [optionLabel],+ });+ }++ return newAnswers;+ });+ },+ []+ );++ // 处理自定义输入+ const handleCustomInput = useCallback(+ (questionIndex: number, value: string) => {+ setAnswers((prev) => {+ const newAnswers = new Map(prev);+ const current = newAnswers.get(questionIndex) || {+ selected_options: [],+ };+ newAnswers.set(questionIndex, {+ ...current,+ custom_input: value || undefined,+ });+ return newAnswers;+ });+ },+ []+ );++ // 提交回答+ const handleSubmit = useCallback(() => {+ if (!pendingQuestion) return;++ const finalAnswers: UserAnswer[] = pendingQuestion.questions.map(+ (q, index) => {+ const answer = answers.get(index);+ if (answer) {+ return answer;+ }+ // 默认选择第一个选项+ return {+ selected_options: q.options.length > 0 ? [q.options[0].label] : [],+ };+ }+ );++ onSubmit(pendingQuestion.request_id, finalAnswers);+ setAnswers(new Map());+ }, [pendingQuestion, answers, onSubmit]);++ // 取消/关闭+ const handleCancel = useCallback(() => {+ setPendingQuestion(null);+ setAnswers(new Map());+ }, [setPendingQuestion]);++ if (!pendingQuestion) {+ return null;+ }++ return (+ <div className="fixed inset-0 z-50 flex items-center justify-center p-4">+ {/* 背景遮罩 */}+ <div+ className="absolute inset-0 bg-black/60"+ onClick={handleCancel}+ />++ {/* 弹窗内容 */}+ <div+ className="relative w-full max-w-lg max-h-[80vh] overflow-hidden rounded-xl animate-rise"+ style={{+ backgroundColor: 'var(--card)',+ boxShadow: 'var(--shadow-xl)',+ }}+ >+ {/* 标题栏 */}+ <div+ className="px-6 py-4 flex items-center gap-4"+ style={{+ backgroundColor: 'var(--panel-strong)',+ borderBottom: '1px solid var(--border)',+ }}+ >+ <div+ className="w-10 h-10 rounded-lg flex items-center justify-center flex-shrink-0"+ style={{+ background: 'linear-gradient(135deg, var(--accent), var(--accent-2))',+ }}+ >+ <svg+ className="w-5 h-5 text-white"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"+ />+ </svg>+ </div>+ <div>+ <h2+ className="text-lg font-semibold"+ style={{ color: 'var(--text-strong)' }}+ >+ 需要您的确认+ </h2>+ <p+ className="text-sm"+ style={{ color: 'var(--muted)' }}+ >+ 请回答以下问题以继续任务+ </p>+ </div>+ </div>++ {/* 问题列表 */}+ <div+ className="px-6 py-5 overflow-y-auto"+ style={{+ maxHeight: '50vh',+ backgroundColor: 'var(--card)',+ }}+ >+ {pendingQuestion.questions.map((question, qIndex) => (+ <QuestionItem+ key={qIndex}+ question={question}+ questionIndex={qIndex}+ answer={answers.get(qIndex)}+ onOptionSelect={handleOptionSelect}+ onCustomInput={handleCustomInput}+ />+ ))}+ </div>++ {/* 操作按钮 */}+ <div+ className="px-6 py-4 flex justify-end gap-3"+ style={{+ backgroundColor: 'var(--panel-strong)',+ borderTop: '1px solid var(--border)',+ }}+ >+ <button+ onClick={handleCancel}+ className="px-4 py-2 text-sm font-medium rounded-lg transition-colors"+ style={{+ color: 'var(--muted)',+ backgroundColor: 'transparent',+ }}+ onMouseOver={(e) => {+ e.currentTarget.style.backgroundColor = 'var(--bg-hover)';+ e.currentTarget.style.color = 'var(--text)';+ }}+ onMouseOut={(e) => {+ e.currentTarget.style.backgroundColor = 'transparent';+ e.currentTarget.style.color = 'var(--muted)';+ }}+ >+ 取消+ </button>+ <button+ onClick={handleSubmit}+ className="px-5 py-2 text-sm font-medium text-white rounded-lg transition-opacity hover:opacity-90"+ style={{+ background: 'linear-gradient(135deg, var(--accent), var(--accent-2))',+ }}+ >+ 确认提交+ </button>+ </div>+ </div>+ </div>+ );+}++interface QuestionItemProps {+ question: Question;+ questionIndex: number;+ answer?: UserAnswer;+ onOptionSelect: (+ questionIndex: number,+ optionLabel: string,+ isMultiSelect: boolean+ ) => void;+ onCustomInput: (questionIndex: number, value: string) => void;+}++function QuestionItem({+ question,+ questionIndex,+ answer,+ onOptionSelect,+ onCustomInput,+}: QuestionItemProps) {+ const [showCustomInput, setShowCustomInput] = useState(false);++ const selectedOptions = answer?.selected_options || [];++ return (+ <div className="mb-6 last:mb-0">+ {/* 问题标题 */}+ <div className="mb-3">+ <span+ className="inline-block px-2 py-0.5 text-xs font-medium rounded mb-2"+ style={{+ color: 'var(--accent)',+ backgroundColor: 'var(--accent-subtle)',+ }}+ >+ {question.header}+ </span>+ <p+ className="font-medium"+ style={{ color: 'var(--text-strong)' }}+ >+ {question.question}+ </p>+ {question.multi_select && (+ <p+ className="text-xs mt-1"+ style={{ color: 'var(--muted)' }}+ >+ (可多选)+ </p>+ )}+ </div>++ {/* 选项列表 */}+ <div className="space-y-2">+ {question.options.map((option, oIndex) => {+ const isSelected = selectedOptions.includes(option.label);+ return (+ <button+ key={oIndex}+ onClick={() =>+ onOptionSelect(+ questionIndex,+ option.label,+ question.multi_select || false+ )+ }+ className="w-full text-left px-4 py-3 rounded-lg transition-all"+ style={{+ backgroundColor: isSelected+ ? 'var(--accent-subtle)'+ : 'var(--bg-elevated)',+ border: `1px solid ${+ isSelected ? 'var(--accent)' : 'var(--border)'+ }`,+ color: isSelected ? 'var(--text-strong)' : 'var(--text)',+ }}+ >+ <div className="flex items-center gap-3">+ <div+ className="w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 transition-colors"+ style={{+ border: `2px solid ${+ isSelected ? 'var(--accent)' : 'var(--border-strong)'+ }`,+ backgroundColor: isSelected ? 'var(--accent)' : 'transparent',+ }}+ >+ {isSelected && (+ <svg+ className="w-3 h-3 text-white"+ fill="currentColor"+ viewBox="0 0 20 20"+ >+ <path+ fillRule="evenodd"+ d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"+ clipRule="evenodd"+ />+ </svg>+ )}+ </div>+ <div className="flex-1 min-w-0">+ <div className="font-medium">{option.label}</div>+ {option.description && (+ <div+ className="text-sm mt-0.5"+ style={{ color: 'var(--muted)' }}+ >+ {option.description}+ </div>+ )}+ </div>+ </div>+ </button>+ );+ })}++ {/* 自定义输入选项 */}+ <button+ onClick={() => setShowCustomInput(!showCustomInput)}+ className="w-full text-left px-4 py-3 rounded-lg transition-all"+ style={{+ backgroundColor: showCustomInput+ ? 'var(--accent-subtle)'+ : 'var(--bg-elevated)',+ border: `1px solid ${+ showCustomInput ? 'var(--accent)' : 'var(--border)'+ }`,+ color: showCustomInput ? 'var(--text-strong)' : 'var(--text)',+ }}+ >+ <div className="flex items-center gap-3">+ <div+ className="w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 transition-colors"+ style={{+ border: `2px solid ${+ showCustomInput ? 'var(--accent)' : 'var(--border-strong)'+ }`,+ backgroundColor: showCustomInput ? 'var(--accent)' : 'transparent',+ }}+ >+ {showCustomInput && (+ <svg+ className="w-3 h-3 text-white"+ fill="currentColor"+ viewBox="0 0 20 20"+ >+ <path+ fillRule="evenodd"+ d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"+ clipRule="evenodd"+ />+ </svg>+ )}+ </div>+ <div className="font-medium">其他(自定义输入)</div>+ </div>+ </button>++ {/* 自定义输入框 */}+ {showCustomInput && (+ <div className="mt-2 ml-8">+ <textarea+ value={answer?.custom_input || ''}+ onChange={(e) => onCustomInput(questionIndex, e.target.value)}+ placeholder="请输入您的回答..."+ className="w-full px-3 py-2 text-sm rounded-lg resize-none focus:outline-none"+ style={{+ backgroundColor: 'var(--bg-elevated)',+ border: '1px solid var(--border)',+ color: 'var(--text)',+ }}+ onFocus={(e) => {+ e.currentTarget.style.borderColor = 'var(--accent)';+ }}+ onBlur={(e) => {+ e.currentTarget.style.borderColor = 'var(--border)';+ }}+ rows={3}+ />+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/jiuwenclaw/web/src/features/fileTreeFilters.ts b/jiuwenclaw/web/src/features/fileTreeFilters.tsnew file mode 100644index 0000000000..85a922eb14--- /dev/null+++ b/jiuwenclaw/web/src/features/fileTreeFilters.ts@@ -0,0 +1,16 @@+// 目录过滤名单:按需手动追加。+export const IGNORED_DIRECTORY_NAMES = [+ '__pycache__',+ '.vscode',+ '.cursor',+ '.vscod',+ '.curosr',+];++const IGNORED_DIRECTORY_SET = new Set<string>(IGNORED_DIRECTORY_NAMES);++export const containsIgnoredDirectory = (targetPath: string) =>+ targetPath+ .split('/')+ .filter(Boolean)+ .some((segment) => IGNORED_DIRECTORY_SET.has(segment));diff --git a/jiuwenclaw/web/src/features/tool-events/toolEventNormalizer.ts b/jiuwenclaw/web/src/features/tool-events/toolEventNormalizer.tsnew file mode 100644index 0000000000..cbfd3fdee2--- /dev/null+++ b/jiuwenclaw/web/src/features/tool-events/toolEventNormalizer.ts@@ -0,0 +1,122 @@+type UnknownPayload = Record<string, unknown>;++function asRecord(value: unknown): UnknownPayload | null {+ if (!value || typeof value !== 'object') {+ return null;+ }+ return value as UnknownPayload;+}++function parseArguments(raw: unknown): Record<string, unknown> {+ if (raw && typeof raw === 'object') {+ return raw as Record<string, unknown>;+ }+ if (typeof raw === 'string') {+ try {+ const parsed = JSON.parse(raw);+ if (parsed && typeof parsed === 'object') {+ return parsed as Record<string, unknown>;+ }+ } catch {+ // ignore: 非 JSON 字符串时保持空对象+ }+ }+ return {};+}++function resolveToolCallId(payload: UnknownPayload, fallback?: UnknownPayload): string | undefined {+ const candidates = [+ payload.id,+ payload.tool_call_id,+ payload.toolCallId,+ fallback?.tool_call_id,+ fallback?.toolCallId,+ ];+ for (const item of candidates) {+ if (typeof item === 'string' && item) {+ return item;+ }+ }+ return undefined;+}++export interface NormalizedToolCall {+ id: string;+ name: string;+ arguments: Record<string, unknown>;+ description?: string;+ formatted_args?: string;+}++export interface NormalizedToolResult {+ toolName: string;+ toolCallId?: string;+ result: string;+ success: boolean;+ summary?: string;+}++export function normalizeToolCallPayload(payload: UnknownPayload): NormalizedToolCall {+ const toolCallPayload = asRecord(payload.tool_call) ?? payload;+ const id = resolveToolCallId(toolCallPayload, payload) || `tool-${Date.now()}`;+ const name =+ (typeof toolCallPayload.name === 'string' && toolCallPayload.name) ||+ (typeof payload.tool_name === 'string' && payload.tool_name) ||+ 'unknown';+ const description =+ typeof toolCallPayload.description === 'string'+ ? toolCallPayload.description+ : undefined;+ const formatted_args =+ typeof toolCallPayload.formatted_args === 'string'+ ? toolCallPayload.formatted_args+ : undefined;++ return {+ id,+ name,+ arguments: parseArguments(toolCallPayload.arguments),+ description,+ formatted_args,+ };+}++export function normalizeToolResultPayload(payload: UnknownPayload): NormalizedToolResult {+ const toolResultPayload = asRecord(payload.tool_result) ?? payload;+ const result =+ (typeof toolResultPayload.result === 'string' &&+ toolResultPayload.result) ||+ (toolResultPayload.data != null ? String(toolResultPayload.data) : '') ||+ (typeof toolResultPayload.error === 'string'+ ? toolResultPayload.error+ : '');+ const status =+ typeof toolResultPayload.status === 'string'+ ? toolResultPayload.status+ : '';+ const success =+ typeof toolResultPayload.success === 'boolean'+ ? toolResultPayload.success+ : status+ ? status !== 'error'+ : true;+ const toolName =+ (typeof toolResultPayload.tool_name === 'string' &&+ toolResultPayload.tool_name) ||+ (typeof toolResultPayload.name === 'string' &&+ toolResultPayload.name) ||+ 'unknown';+ const toolCallId = resolveToolCallId(toolResultPayload, payload);+ const summary =+ typeof toolResultPayload.summary === 'string'+ ? toolResultPayload.summary+ : undefined;++ return {+ toolName,+ toolCallId,+ result,+ success,+ summary,+ };+}diff --git a/jiuwenclaw/web/src/hooks/index.ts b/jiuwenclaw/web/src/hooks/index.tsnew file mode 100644index 0000000000..ec89dcd9a2--- /dev/null+++ b/jiuwenclaw/web/src/hooks/index.ts@@ -0,0 +1,6 @@+/**+ * Hooks 导出+ */++export { useWebSocket } from './useWebSocket';+export { useSpeechRecognition, useSpeechSynthesis } from './useSpeech';diff --git a/jiuwenclaw/web/src/hooks/useSpeech.ts b/jiuwenclaw/web/src/hooks/useSpeech.tsnew file mode 100644index 0000000000..f31b614691--- /dev/null+++ b/jiuwenclaw/web/src/hooks/useSpeech.ts@@ -0,0 +1,391 @@+/**+ * 语音输入输出 Hook+ *+ * 使用 Web Speech API 实现语音识别(STT)和语音合成(TTS)+ */++import { useState, useCallback, useRef, useEffect } from 'react';++// ============================================================================+// 语音识别 (STT)+// ============================================================================++interface UseSpeechRecognitionOptions {+ language?: string;+ continuous?: boolean;+ interimResults?: boolean;+ /** 无声音后多少毫秒结束识别,默认 5000。需配合 continuous: true 使用。 */+ silenceTimeoutMs?: number;+ /** 返回 true 时,onend 后会自动重启识别。 */+ restartWhen?: () => boolean;+ onResult?: (transcript: string, isFinal: boolean) => void;+ onError?: (error: string) => void;+ onEnd?: () => void;+}++interface UseSpeechRecognitionReturn {+ isListening: boolean;+ transcript: string;+ interimTranscript: string;+ startListening: () => void;+ stopListening: () => void;+ isSupported: boolean;+}++// Web Speech API 类型(部分浏览器/TS 未内置)+interface SpeechRecognitionEventMap {+ resultIndex: number;+ results: SpeechRecognitionResultList;+}+interface SpeechRecognitionInstance extends EventTarget {+ lang: string;+ continuous: boolean;+ interimResults: boolean;+ start(): void;+ stop(): void;+ onstart: (() => void) | null;+ onend: (() => void) | null;+ onerror: ((event: { error: string }) => void) | null;+ onresult: ((event: SpeechRecognitionEventMap) => void) | null;+}+interface SpeechRecognitionConstructor {+ new (): SpeechRecognitionInstance;+}++declare global {+ interface Window {+ SpeechRecognition?: SpeechRecognitionConstructor;+ webkitSpeechRecognition?: SpeechRecognitionConstructor;+ }+}++// 供本文件内 ref 等使用+type SpeechRecognition = SpeechRecognitionInstance;++export function useSpeechRecognition(+ options: UseSpeechRecognitionOptions = {}+): UseSpeechRecognitionReturn {+ const {+ language = 'cmn-Hans-CN', // 普通话简体中文(比 zh-CN 更准确)+ continuous = false, // 默认检测到停止说话后自动结束+ interimResults = true,+ silenceTimeoutMs = 5000, // 无声音后 5s 结束(需配合 continuous: true)+ restartWhen,+ onResult,+ onError,+ onEnd,+ } = options;++ const [isListening, setIsListening] = useState(false);+ const [transcript, setTranscript] = useState('');+ const [interimTranscript, setInterimTranscript] = useState('');+ const recognitionRef = useRef<SpeechRecognition | null>(null);+ const silenceTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);+ const manualStopRef = useRef(false);+ const autoStopRef = useRef(false);+ const useContinuousRef = useRef(false);++ // 检查浏览器支持+ const isSupported =+ typeof window !== 'undefined' &&+ ('SpeechRecognition' in window || 'webkitSpeechRecognition' in window);++ const clearSilenceTimer = useCallback(() => {+ if (silenceTimerRef.current) {+ clearTimeout(silenceTimerRef.current);+ silenceTimerRef.current = null;+ }+ }, []);++ const scheduleSilenceStop = useCallback(() => {+ if (silenceTimeoutMs <= 0) {+ return;+ }+ clearSilenceTimer();+ silenceTimerRef.current = setTimeout(() => {+ silenceTimerRef.current = null;+ autoStopRef.current = true;+ recognitionRef.current?.stop();+ }, silenceTimeoutMs);+ }, [clearSilenceTimer, silenceTimeoutMs]);++ const startListening = useCallback(() => {+ if (!isSupported) {+ onError?.('浏览器不支持语音识别');+ return;+ }++ clearSilenceTimer();+ manualStopRef.current = false;+ autoStopRef.current = false;++ // 创建识别实例+ const SpeechRecognitionCtor =+ window.SpeechRecognition || window.webkitSpeechRecognition;+ if (!SpeechRecognitionCtor) {+ onError?.('浏览器不支持语音识别');+ return;+ }+ const recognition = new SpeechRecognitionCtor();++ // 使用自定义静默超时时,用 continuous=true 避免浏览器约 2s 就结束+ const useContinuous = continuous || silenceTimeoutMs > 0;+ useContinuousRef.current = useContinuous;+ recognition.lang = language;+ recognition.continuous = useContinuous;+ recognition.interimResults = interimResults;++ recognition.onstart = () => {+ setIsListening(true);+ setTranscript('');+ setInterimTranscript('');+ scheduleSilenceStop();+ };++ recognition.onresult = (event) => {+ let finalTranscript = '';+ let interim = '';++ for (let i = event.resultIndex; i < event.results.length; i++) {+ const result = event.results[i];+ if (result.isFinal) {+ finalTranscript += result[0].transcript;+ } else {+ interim += result[0].transcript;+ }+ }++ if (finalTranscript) {+ setTranscript((prev) => prev + finalTranscript);+ onResult?.(finalTranscript, true);+ scheduleSilenceStop();+ }++ setInterimTranscript(interim);+ if (interim) {+ onResult?.(interim, false);+ scheduleSilenceStop();+ }+ };++ recognition.onerror = (event) => {+ console.error('Speech recognition error:', event.error);+ clearSilenceTimer();+ setIsListening(false);++ const errorMessages: Record<string, string> = {+ 'no-speech': '未检测到语音',+ 'audio-capture': '未检测到麦克风',+ 'not-allowed': '麦克风权限被拒绝',+ 'network': '网络错误',+ };++ onError?.(errorMessages[event.error] || `语音识别错误: ${event.error}`);+ };++ recognition.onend = () => {+ clearSilenceTimer();+ if (manualStopRef.current) {+ manualStopRef.current = false;+ setIsListening(false);+ onEnd?.();+ return;+ }+ if (autoStopRef.current) {+ autoStopRef.current = false;+ setIsListening(false);+ onEnd?.();+ return;+ }+ if (useContinuousRef.current && restartWhen?.()) {+ try {+ recognitionRef.current?.start();+ return;+ } catch (error) {+ console.warn('Speech recognition restart failed:', error);+ }+ }+ setIsListening(false);+ onEnd?.();+ };++ recognitionRef.current = recognition;+ recognition.start();+ }, [isSupported, language, continuous, interimResults, silenceTimeoutMs, restartWhen, onResult, onError, onEnd, clearSilenceTimer]);++ const stopListening = useCallback(() => {+ clearSilenceTimer();+ if (recognitionRef.current) {+ manualStopRef.current = true;+ recognitionRef.current.stop();+ recognitionRef.current = null;+ }+ setIsListening(false);+ }, [clearSilenceTimer]);++ // 组件卸载时清理+ useEffect(() => {+ return () => {+ clearSilenceTimer();+ if (recognitionRef.current) {+ recognitionRef.current.stop();+ }+ };+ }, [clearSilenceTimer]);++ return {+ isListening,+ transcript,+ interimTranscript,+ startListening,+ stopListening,+ isSupported,+ };+}++// ============================================================================+// 语音合成 (TTS)+// ============================================================================++interface UseSpeechSynthesisOptions {+ language?: string;+ rate?: number;+ pitch?: number;+ volume?: number;+ onStart?: () => void;+ onEnd?: () => void;+ onError?: (error: string) => void;+}++interface UseSpeechSynthesisReturn {+ isSpeaking: boolean;+ speak: (text: string) => void;+ stop: () => void;+ pause: () => void;+ resume: () => void;+ isSupported: boolean;+ voices: SpeechSynthesisVoice[];+}++export function useSpeechSynthesis(+ options: UseSpeechSynthesisOptions = {}+): UseSpeechSynthesisReturn {+ const {+ language = 'zh-CN',+ rate = 1,+ pitch = 1,+ volume = 1,+ onStart,+ onEnd,+ onError,+ } = options;++ const [isSpeaking, setIsSpeaking] = useState(false);+ const [voices, setVoices] = useState<SpeechSynthesisVoice[]>([]);+ const utteranceRef = useRef<SpeechSynthesisUtterance | null>(null);++ // 检查浏览器支持+ const isSupported =+ typeof window !== 'undefined' && 'speechSynthesis' in window;++ // 加载可用语音+ useEffect(() => {+ if (!isSupported) return;++ const loadVoices = () => {+ const availableVoices = window.speechSynthesis.getVoices();+ setVoices(availableVoices);+ };++ loadVoices();+ window.speechSynthesis.onvoiceschanged = loadVoices;++ return () => {+ window.speechSynthesis.onvoiceschanged = null;+ };+ }, [isSupported]);++ const speak = useCallback(+ (text: string) => {+ if (!isSupported) {+ onError?.('浏览器不支持语音合成');+ return;+ }++ // 停止当前播放+ window.speechSynthesis.cancel();++ const utterance = new SpeechSynthesisUtterance(text);+ utterance.lang = language;+ utterance.rate = rate;+ utterance.pitch = pitch;+ utterance.volume = volume;++ // 选择合适的中文语音+ const chineseVoice = voices.find(+ (v) => v.lang.includes('zh') || v.lang.includes('CN')+ );+ if (chineseVoice) {+ utterance.voice = chineseVoice;+ }++ utterance.onstart = () => {+ setIsSpeaking(true);+ onStart?.();+ };++ utterance.onend = () => {+ setIsSpeaking(false);+ onEnd?.();+ };++ utterance.onerror = (event) => {+ console.error('Speech synthesis error:', event);+ setIsSpeaking(false);+ onError?.(`语音合成错误: ${event.error}`);+ };++ utteranceRef.current = utterance;+ window.speechSynthesis.speak(utterance);+ },+ [isSupported, language, rate, pitch, volume, voices, onStart, onEnd, onError]+ );++ const stop = useCallback(() => {+ if (isSupported) {+ window.speechSynthesis.cancel();+ setIsSpeaking(false);+ }+ }, [isSupported]);++ const pause = useCallback(() => {+ if (isSupported) {+ window.speechSynthesis.pause();+ }+ }, [isSupported]);++ const resume = useCallback(() => {+ if (isSupported) {+ window.speechSynthesis.resume();+ }+ }, [isSupported]);++ // 组件卸载时清理+ useEffect(() => {+ return () => {+ if (isSupported) {+ window.speechSynthesis.cancel();+ }+ };+ }, [isSupported]);++ return {+ isSpeaking,+ speak,+ stop,+ pause,+ resume,+ isSupported,+ voices,+ };+}diff --git a/jiuwenclaw/web/src/hooks/useWebSocket.ts b/jiuwenclaw/web/src/hooks/useWebSocket.tsnew file mode 100644index 0000000000..84b626e632--- /dev/null+++ b/jiuwenclaw/web/src/hooks/useWebSocket.ts@@ -0,0 +1,870 @@+/**+ * WebSocket Hook+ *+ * 管理 WebSocket 连接和消息处理+ */++import { useEffect, useRef, useCallback, useState } from 'react';+import {+ ConnectionAckPayload,+ WebConnectOptions,+ WebError,+ WebRequestOptions,+ WebConnectionState,+ InterruptResultPayload,+ InterruptIntent,+ SubtaskUpdatePayload,+ AskUserQuestionPayload,+ UserAnswer,+ MediaItem,+ AgentMode,+ Session,+} from '../types';+import { useChatStore, useTodoStore, useSessionStore } from '../stores';+import { webClient } from '../services/webClient';+import {+ fetchTtsAudio,+ playAudioBase64,+ sanitizeTtsText,+ stopAllTts,+} from '../utils';+import {+ normalizeToolCallPayload,+ normalizeToolResultPayload,+} from '../features/tool-events/toolEventNormalizer';++const WS_RECONNECT_EVENT = 'jiuwenclaw:ws-reconnect-request';++interface UseWebSocketOptions {+ activeSessionId?: string;+ provider?: string;+ apiKey?: string;+ apiBase?: string;+ model?: string;+ projectPath?: string;+ onConnect?: (payload: ConnectionAckPayload) => void;+ onDisconnect?: () => void;+ onError?: (error: string) => void;+}++interface UseWebSocketReturn {+ isConnected: boolean;+ connectionState: WebConnectionState;+ request: <T = unknown>(+ method: string,+ params?: Record<string, unknown>,+ options?: WebRequestOptions+ ) => Promise<T>;+ sendMessage: (content: string, sessionId: string) => Promise<void>;+ interrupt: (+ sessionId: string,+ intent: InterruptIntent,+ options?: { newInput?: string }+ ) => Promise<void>;+ pause: (sessionId: string) => Promise<void>;+ cancel: (sessionId: string) => Promise<void>;+ supplement: (sessionId: string, newInput: string) => Promise<void>;+ resume: (sessionId: string) => Promise<void>;+ switchMode: (sessionId: string, mode: AgentMode) => Promise<void>;+ disconnect: () => void;+ sendUserAnswer: (+ sessionId: string,+ requestId: string,+ answers: UserAnswer[]+ ) => Promise<void>;+ getInflightCount: () => number;+}++function decodeQuotedPythonLikeString(raw: string): string {+ return raw+ .replace(/\\r/g, '\r')+ .replace(/\\n/g, '\n')+ .replace(/\\t/g, '\t')+ .replace(/\\'/g, "'")+ .replace(/\\"/g, '"')+ .replace(/\\\\/g, '\\');+}++function normalizeFinalDisplayText(text: string): string {+ return text.replace(/^(?:\r?\n)+/, '');+}++function normalizeFinalContent(payload: Record<string, unknown>): string {+ const rawContent = payload.content;+ if (typeof rawContent !== 'string') {+ return '';+ }++ const trimmed = rawContent.trim();++ // 优先按标准 JSON 解析(例如 {"output":"...","result_type":"answer"})+ if (trimmed.startsWith('{') && trimmed.endsWith('}')) {+ try {+ const parsed = JSON.parse(trimmed) as Record<string, unknown>;+ if (typeof parsed.output === 'string') {+ return normalizeFinalDisplayText(parsed.output);+ }+ } catch {+ // ignore: 继续尝试 Python dict 风格兼容解析+ }+ }++ // 常规场景:后端直接返回纯文本+ if (!trimmed.includes('result_type') || !trimmed.includes('output')) {+ return normalizeFinalDisplayText(rawContent);+ }++ // 兼容后端返回的 Python dict 字符串(例如 "{'output': '...'}")+ const singleQuoted = rawContent.match(/['"]output['"]\s*:\s*'((?:\\'|[^'])*)'/s);+ if (singleQuoted?.[1] != null) {+ return normalizeFinalDisplayText(decodeQuotedPythonLikeString(singleQuoted[1]));+ }++ const doubleQuoted = rawContent.match(/['"]output['"]\s*:\s*"((?:\\"|[^"])*)"/s);+ if (doubleQuoted?.[1] != null) {+ return normalizeFinalDisplayText(decodeQuotedPythonLikeString(doubleQuoted[1]));+ }++ return normalizeFinalDisplayText(rawContent);+}++function normalizeAgentMode(rawMode: unknown): AgentMode {+ if (typeof rawMode !== 'string') return 'plan';+ const normalized = rawMode.trim().toLowerCase();+ return normalized === 'agent' ? 'agent' : 'plan';+}++const EVENT_DEDUP_WINDOW_MS = 1500;++function stringifyPayloadForDedup(payload: Record<string, unknown>): string {+ try {+ const serialized = JSON.stringify(payload);+ if (!serialized) {+ return '';+ }+ return serialized.length > 800 ? serialized.slice(0, 800) : serialized;+ } catch {+ return '';+ }+}++function makeEventDedupKey(eventName: string, payload: Record<string, unknown>): string {+ const payloadSessionId =+ typeof payload.session_id === 'string' ? payload.session_id : '';+ const payloadEventType =+ typeof payload.event_type === 'string' ? payload.event_type : '';+ const payloadSnapshot = stringifyPayloadForDedup(payload);+ return `${eventName}::${payloadSessionId}::${payloadEventType}::${payloadSnapshot}`;+}++export function useWebSocket(options: UseWebSocketOptions): UseWebSocketReturn {+ const {+ activeSessionId,+ provider,+ apiKey,+ apiBase,+ model,+ projectPath,+ onConnect,+ onDisconnect,+ onError,+ } = options;++ const [isConnected, setIsConnected] = useState(false);+ const [connectionState, setConnectionState] =+ useState<WebConnectionState>('idle');+ const userInputVersionRef = useRef(0);+ const activeSessionIdRef = useRef(activeSessionId);+ const onConnectRef = useRef(onConnect);+ const onDisconnectRef = useRef(onDisconnect);+ const onErrorRef = useRef(onError);+ const recentEventRef = useRef<Map<string, number>>(new Map());+ const eventDedupDroppedRef = useRef<Record<string, number>>({});++ // Stores+ const {+ addMessage,+ appendStreamContent,+ startStreaming,+ stopStreaming,+ updateMessage,+ setProcessing,+ setThinking,+ setPaused,+ setInterruptResult,+ addToolCall,+ addToolResult,+ markTimedOutExecutions,+ updateSubtask,+ clearSubtasks,+ clearMessages,+ setPendingQuestion,+ } = useChatStore();+ const { setTodos, clearTodos } = useTodoStore();+ const {+ setMode,+ setConnected,+ setAvailableTools,+ setConnectionStats,+ updateSession,+ setContextCompressionStats,+ setHeartbeatStatus,+ } =+ useSessionStore();++ const handleTtsPlayback = useCallback(+ (messageId: string, content: string) => {+ const sanitized = sanitizeTtsText(content);+ if (!sanitized || sanitized.startsWith('[任务已中断]')) {+ return;+ }++ const { messages } = useChatStore.getState();+ const existing = messages.find((msg) => msg.id === messageId);+ if (existing?.audioBase64) {+ return;+ }++ void (async () => {+ const versionAtStart = userInputVersionRef.current;+ const ttsSessionId = activeSessionIdRef.current;+ const response = await fetchTtsAudio(+ sanitized,+ ttsSessionId && ttsSessionId !== 'new' ? ttsSessionId : undefined+ );+ if (!response?.success || !response.audio_base64) {+ return;+ }++ updateMessage(messageId, {+ audioBase64: response.audio_base64,+ audioMime: response.audio_mime,+ });++ if (versionAtStart !== userInputVersionRef.current) {+ return;+ }++ await playAudioBase64(+ response.audio_base64,+ response.audio_mime || 'audio/mpeg'+ );+ })();+ },+ [updateMessage]+ );++ const shouldHandleSessionEvent = useCallback(+ (payload: Record<string, unknown>): boolean => {+ const payloadSessionId = payload.session_id;+ if (typeof payloadSessionId !== 'string' || !payloadSessionId) {+ return true;+ }+ const currentSessionId = activeSessionIdRef.current;+ if (!currentSessionId || currentSessionId === 'new') {+ return true;+ }+ return payloadSessionId === currentSessionId;+ },+ []+ );++ const handleConnectionAck = useCallback(+ (payload: Record<string, unknown>) => {+ const ackPayload = payload as unknown as ConnectionAckPayload;+ setConnected(true);+ if (Array.isArray(ackPayload.tools)) {+ setAvailableTools(ackPayload.tools);+ }+ if (ackPayload.mode) {+ setMode(normalizeAgentMode(ackPayload.mode));+ }+ onConnectRef.current?.(ackPayload);+ },+ [setAvailableTools, setConnected, setMode]+ );++ // 断开连接+ const disconnect = useCallback(() => {+ webClient.disconnect();+ }, [setConnected]);++ const request = useCallback(+ async <T = unknown>(+ method: string,+ params?: Record<string, unknown>,+ requestOptions?: WebRequestOptions+ ): Promise<T> => {+ return webClient.request<T>(method, params, requestOptions);+ },+ []+ );++ // 发送聊天消息+ const sendMessage = useCallback(+ async (content: string, sessionId: string) => {+ if (!content.trim()) return;++ userInputVersionRef.current += 1;+ stopAllTts();++ // 添加用户消息+ addMessage({+ id: `user-${Date.now()}`,+ role: 'user',+ content,+ timestamp: new Date().toISOString(),+ });++ // 不再预先创建助手消息,而是在收到第一个 content_chunk 时创建+ // 这样工具调用会先显示,然后才是助手的回复++ setProcessing(true);+ setThinking(true);+ try {+ const currentMode = useSessionStore.getState().mode;+ await request('chat.send', {+ session_id: sessionId,+ content,+ mode: currentMode,+ });+ } catch (error) {+ const webError = error as WebError;+ setConnectionStats({ lastError: webError.message });+ setProcessing(false);+ setThinking(false);+ const errorMsg = webError.message || '发送消息失败';+ onErrorRef.current?.(errorMsg);+ addMessage({+ id: `error-${Date.now()}`,+ role: 'system',+ content: `错误: ${errorMsg}`,+ timestamp: new Date().toISOString(),+ });+ }+ },+ [addMessage, request, setProcessing, setThinking]+ );++ // 统一中断接口 - pause/cancel/supplement/resume+ const interrupt = useCallback(+ async (+ sessionId: string,+ intent: InterruptIntent,+ options?: { newInput?: string }+ ) => {+ const newInput = options?.newInput;+ if (intent === 'supplement' && newInput) {+ userInputVersionRef.current += 1;+ stopAllTts();+ addMessage({+ id: `user-${Date.now()}`,+ role: 'user',+ content: newInput,+ timestamp: new Date().toISOString(),+ });+ }+ try {+ const params: Record<string, unknown> = {+ session_id: sessionId,+ intent,+ };+ if (intent === 'supplement') {+ params.new_input = newInput ?? '';+ }+ await request('chat.interrupt', params);+ } catch (error) {+ const webError = error as WebError;+ setConnectionStats({ lastError: webError.message });+ onErrorRef.current?.(webError.message || '中断失败');+ }+ },+ [addMessage, request, setConnectionStats]+ );++ // 暂停 - 显式暂停当前任务+ const pause = useCallback(+ async (sessionId: string) => {+ try {+ await interrupt(sessionId, 'pause');+ } catch (error) {+ const webError = error as WebError;+ setConnectionStats({ lastError: webError.message });+ onErrorRef.current?.(webError.message || '暂停失败');+ }+ },+ [interrupt, setConnectionStats]+ );++ const cancel = useCallback(+ async (sessionId: string) => {+ try {+ await interrupt(sessionId, 'cancel');+ } catch (error) {+ const webError = error as WebError;+ setConnectionStats({ lastError: webError.message });+ onErrorRef.current?.(webError.message || '取消失败');+ }+ },+ [interrupt, setConnectionStats]+ );++ const supplement = useCallback(+ async (sessionId: string, newInput: string) => {+ try {+ await interrupt(sessionId, 'supplement', { newInput });+ } catch (error) {+ const webError = error as WebError;+ setConnectionStats({ lastError: webError.message });+ onErrorRef.current?.(webError.message || '补充失败');+ }+ },+ [interrupt, setConnectionStats]+ );++ // 恢复 - 恢复暂停的任务+ const resume = useCallback(+ async (sessionId: string) => {+ try {+ await interrupt(sessionId, 'resume');+ setPaused(false);+ } catch (error) {+ const webError = error as WebError;+ setConnectionStats({ lastError: webError.message });+ onErrorRef.current?.(webError.message || '恢复失败');+ }+ },+ [interrupt, setConnectionStats, setPaused]+ );++ // 切换模式+ const switchMode = useCallback(+ async (sessionId: string, mode: AgentMode) => {+ setMode(mode);+ if (sessionId && sessionId !== 'new') {+ updateSession(sessionId, { mode });+ }+ },+ [setMode, updateSession]+ );++ // 发送用户回答+ const sendUserAnswer = useCallback(+ async (sessionId: string, requestId: string, answers: UserAnswer[]) => {+ try {+ await request('chat.user_answer', {+ session_id: sessionId,+ request_id: requestId,+ answers,+ });+ setPendingQuestion(null);+ } catch (error) {+ const webError = error as WebError;+ setConnectionStats({ lastError: webError.message });+ onErrorRef.current?.(webError.message || '提交回答失败');+ }+ },+ [request, setConnectionStats, setPendingQuestion]+ );++ useEffect(() => {+ activeSessionIdRef.current = activeSessionId;+ }, [activeSessionId]);++ useEffect(() => {+ setContextCompressionStats(null);+ }, [activeSessionId, setContextCompressionStats]);++ useEffect(() => {+ onConnectRef.current = onConnect;+ onDisconnectRef.current = onDisconnect;+ onErrorRef.current = onError;+ }, [onConnect, onDisconnect, onError]);++ const shouldDropDuplicatedEvent = useCallback(+ (eventName: string, payload: Record<string, unknown>): boolean => {+ const now = Date.now();+ const dedupKey = makeEventDedupKey(eventName, payload);+ const recent = recentEventRef.current;+ const lastSeen = recent.get(dedupKey);+ recent.set(dedupKey, now);++ // 控制 map 大小,避免长期运行后无限增长+ if (recent.size > 400) {+ for (const [key, ts] of recent) {+ if (now - ts > EVENT_DEDUP_WINDOW_MS * 6) {+ recent.delete(key);+ }+ }+ }++ const dropped = lastSeen != null && now - lastSeen <= EVENT_DEDUP_WINDOW_MS;+ if (dropped && import.meta.env.DEV) {+ const nextCount = (eventDedupDroppedRef.current[eventName] || 0) + 1;+ eventDedupDroppedRef.current[eventName] = nextCount;+ if (nextCount === 1 || nextCount % 10 === 0) {+ console.debug('[ws][metrics] eventDedupDropped', {+ eventName,+ count: nextCount,+ });+ }+ }+ return dropped;+ },+ []+ );++ useEffect(() => {+ const unsubs = [+ webClient.on('connection.ack', ({ payload }) => {+ handleConnectionAck(payload);+ }),+ webClient.on('hello', ({ payload }) => {+ handleConnectionAck(payload);+ }),+ webClient.on('chat.delta', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ const content = typeof payload.content === 'string' ? payload.content : '';+ const { currentStreamId } = useChatStore.getState();+ setThinking(false);+ if (!currentStreamId && content) {+ const assistantMsgId = `assistant-${Date.now()}`;+ addMessage({+ id: assistantMsgId,+ role: 'assistant',+ content,+ timestamp: new Date().toISOString(),+ isStreaming: true,+ });+ startStreaming(assistantMsgId);+ return;+ }+ appendStreamContent(content);+ }),+ webClient.on('chat.final', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ const content = normalizeFinalContent(payload);+ const { currentStreamId, messages } = useChatStore.getState();+ if (currentStreamId) {+ updateMessage(currentStreamId, { content, isStreaming: false });+ stopStreaming();+ if (content && !content.includes('MEDIA:')) {+ handleTtsPlayback(currentStreamId, content);+ }+ return;+ }+ if (content) {+ // 去重:若上一条已是相同内容的助手消息(同一回复被收到两次),不再追加+ const last = messages[messages.length - 1];+ if (+ last?.role === 'assistant' &&+ last.content === content+ ) {+ return;+ }+ const messageId = `msg-${Date.now()}`;+ addMessage({+ id: messageId,+ role: 'assistant',+ content,+ timestamp: new Date().toISOString(),+ });+ if (!content.includes('MEDIA:')) {+ handleTtsPlayback(messageId, content);+ }+ }+ }),+ webClient.on('chat.media', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ const mediaPayload = payload as {+ content?: string;+ media_items?: MediaItem[];+ };+ const { currentStreamId, messages } = useChatStore.getState();+ const targetId =+ currentStreamId ??+ [...messages].reverse().find((msg) => msg.role === 'assistant')?.id;+ if (!targetId) {+ return;+ }+ const updates: { content?: string; mediaItems?: MediaItem[] } = {};+ if (mediaPayload.content !== undefined) {+ updates.content = mediaPayload.content;+ }+ if (mediaPayload.media_items?.length) {+ updates.mediaItems = mediaPayload.media_items;+ }+ if (Object.keys(updates).length > 0) {+ updateMessage(targetId, updates);+ }+ if (mediaPayload.content) {+ handleTtsPlayback(targetId, mediaPayload.content);+ }+ }),+ webClient.on('chat.tool_call', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ if (shouldDropDuplicatedEvent('chat.tool_call', payload)) return;+ setThinking(false);+ const { currentStreamId, currentStreamContent } = useChatStore.getState();+ if (currentStreamId && currentStreamContent) {+ updateMessage(currentStreamId, { isStreaming: false });+ stopStreaming();+ handleTtsPlayback(currentStreamId, currentStreamContent);+ }+ addToolCall(normalizeToolCallPayload(payload));+ }),+ webClient.on('chat.tool_result', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ if (shouldDropDuplicatedEvent('chat.tool_result', payload)) return;+ addToolResult(normalizeToolResultPayload(payload));+ }),+ webClient.on('todo.updated', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ if (shouldDropDuplicatedEvent('todo.updated', payload)) return;+ const todos = Array.isArray(payload.todos) ? payload.todos : [];+ setTodos(todos as Parameters<typeof setTodos>[0]);+ }),+ webClient.on('context.compressed', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ const rate =+ typeof payload.rate === 'number' ? payload.rate : 0;+ const beforeCompressed =+ typeof payload.before_compressed === 'number' && Number.isFinite(payload.before_compressed)+ ? payload.before_compressed+ : null;+ const afterCompressed =+ typeof payload.after_compressed === 'number' && Number.isFinite(payload.after_compressed)+ ? payload.after_compressed+ : null;+ setContextCompressionStats({ rate, beforeCompressed, afterCompressed });+ console.debug('[ws] context.compressed', {+ session_id: payload.session_id,+ rate,+ before_compressed: beforeCompressed,+ after_compressed: afterCompressed,+ });+ }),+ webClient.on('heartbeat.relay', ({ payload }) => {+ const heartbeatText =+ typeof payload.heartbeat === 'string' ? payload.heartbeat : '';+ // 只要成功收到 relay 即表示已成功发到前端,始终为 ok,不存在 alert+ setHeartbeatStatus(+ 'ok',+ heartbeatText || null,+ new Date().toISOString()+ );+ }),+ webClient.on('session.updated', ({ payload }) => {+ const sessionId =+ typeof payload.session_id === 'string' ? payload.session_id : '';+ if (!sessionId) return;+ updateSession(sessionId, payload as Partial<Session>);+ if (sessionId === activeSessionIdRef.current && typeof payload.mode === 'string') {+ setMode(normalizeAgentMode(payload.mode));+ }+ }),+ webClient.on('chat.processing_status', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ if (shouldDropDuplicatedEvent('chat.processing_status', payload)) return;+ const isProcessingNow = Boolean(payload.is_processing);+ setProcessing(isProcessingNow);+ if (!isProcessingNow) {+ setThinking(false);+ clearSubtasks();+ }+ }),+ webClient.on('chat.error', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ if (shouldDropDuplicatedEvent('chat.error', payload)) return;+ setThinking(false);+ const errorMsg =+ typeof payload.error === 'string' ? payload.error : 'Unknown error';+ onErrorRef.current?.(errorMsg);+ addMessage({+ id: `error-${Date.now()}`,+ role: 'system',+ content: `错误: ${errorMsg}`,+ timestamp: new Date().toISOString(),+ });+ }),+ webClient.on('chat.interrupt_result', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ if (shouldDropDuplicatedEvent('chat.interrupt_result', payload)) return;+ const resultPayload = payload as unknown as InterruptResultPayload;+ setInterruptResult(resultPayload);+ if (resultPayload.intent === 'pause') {+ if (resultPayload.success) {+ setPaused(true, resultPayload.paused_task);+ }+ setProcessing(false);+ setThinking(false);+ } else if (resultPayload.intent === 'resume') {+ if (resultPayload.success) {+ setPaused(false);+ }+ } else if (resultPayload.intent === 'cancel') {+ setPaused(false);+ setProcessing(false);+ setThinking(false);+ } else if (resultPayload.intent === 'supplement') {+ setPaused(false);+ }+ }),+ webClient.on('chat.subtask_update', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ updateSubtask(payload as unknown as SubtaskUpdatePayload);+ }),+ webClient.on('chat.ask_user_question', ({ payload }) => {+ if (!shouldHandleSessionEvent(payload)) return;+ setPendingQuestion(payload as unknown as AskUserQuestionPayload);+ }),+ ];++ return () => {+ unsubs.forEach((fn) => fn());+ };+ }, [+ addMessage,+ addToolCall,+ addToolResult,+ appendStreamContent,+ clearSubtasks,+ handleConnectionAck,+ handleTtsPlayback,+ setMode,+ setPaused,+ setPendingQuestion,+ setProcessing,+ setThinking,+ setInterruptResult,+ setTodos,+ setContextCompressionStats,+ setHeartbeatStatus,+ updateSession,+ shouldHandleSessionEvent,+ shouldDropDuplicatedEvent,+ startStreaming,+ stopStreaming,+ updateMessage,+ updateSubtask,+ ]);++ useEffect(() => {+ const connectOptions: WebConnectOptions = {+ provider,+ apiKey,+ apiBase,+ model,+ projectPath,+ };+ void webClient.connect(connectOptions).catch((error) => {+ const webError = error as WebError;+ setConnectionStats({ lastError: webError.message });+ onErrorRef.current?.(webError.message || 'WebSocket connection error');+ });++ return () => {+ webClient.disconnect();+ clearMessages();+ clearTodos();+ clearSubtasks();+ setConnected(false);+ setContextCompressionStats(null);+ setHeartbeatStatus('unknown', null, null);+ setConnectionStats({ state: 'closed', inflight: 0 });+ };+ }, [+ apiBase,+ apiKey,+ clearMessages,+ clearSubtasks,+ clearTodos,+ model,+ projectPath,+ provider,+ setContextCompressionStats,+ setConnectionStats,+ setConnected,+ setHeartbeatStatus,+ ]);++ useEffect(() => {+ const connectOptions: WebConnectOptions = {+ provider,+ apiKey,+ apiBase,+ model,+ projectPath,+ };+ const reconnectByDebugToggle = () => {+ void webClient.disconnect('debug mode toggled').then(() => {+ void webClient.connect(connectOptions).catch((error) => {+ const webError = error as WebError;+ setConnectionStats({ lastError: webError.message });+ onErrorRef.current?.(webError.message || 'WebSocket reconnect error');+ });+ });+ };+ window.addEventListener(WS_RECONNECT_EVENT, reconnectByDebugToggle);+ return () => {+ window.removeEventListener(WS_RECONNECT_EVENT, reconnectByDebugToggle);+ };+ }, [apiBase, apiKey, model, projectPath, provider, setConnectionStats]);++ useEffect(() => {+ const unsub = webClient.onStateChange((state) => {+ setConnectionState(state);+ const connected = state === 'ready';+ setIsConnected(connected);+ setConnected(connected);+ setConnectionStats({+ state,+ inflight: webClient.getInflightCount(),+ lastError: null,+ });+ if (!connected && (state === 'reconnecting' || state === 'closed')) {+ onDisconnectRef.current?.();+ }+ });+ return () => {+ unsub();+ };+ }, [setConnected, setConnectionStats]);++ useEffect(() => {+ const timer = window.setInterval(() => {+ setConnectionStats({+ inflight: webClient.getInflightCount(),+ });+ }, 1000);+ return () => {+ window.clearInterval(timer);+ };+ }, [setConnectionStats]);++ useEffect(() => {+ markTimedOutExecutions();+ const timer = window.setInterval(() => {+ markTimedOutExecutions();+ }, 1000);+ return () => {+ window.clearInterval(timer);+ };+ }, [markTimedOutExecutions]);++ return {+ isConnected,+ connectionState,+ request,+ sendMessage,+ interrupt,+ pause,+ cancel,+ supplement,+ resume,+ switchMode,+ disconnect,+ sendUserAnswer,+ getInflightCount: () => webClient.getInflightCount(),+ };+}diff --git a/jiuwenclaw/web/src/index.css b/jiuwenclaw/web/src/index.cssnew file mode 100644index 0000000000..62ccb0e6d1--- /dev/null+++ b/jiuwenclaw/web/src/index.css@@ -0,0 +1,1314 @@+@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");++/* HarmonyOS Sans SC - 鸿蒙字体,中英文兼顾 */+@font-face {+ font-family: 'HarmonyOS Sans SC';+ font-style: normal;+ font-weight: 400;+ font-display: swap;+ src: url('https://cdn.jsdelivr.net/npm/@ayahub/[email protected]/fonts/HarmonyOS_Sans_SC_Regular.woff2') format('woff2');+}+@font-face {+ font-family: 'HarmonyOS Sans SC';+ font-style: normal;+ font-weight: 500;+ font-display: swap;+ src: url('https://cdn.jsdelivr.net/npm/@ayahub/[email protected]/fonts/HarmonyOS_Sans_SC_Medium.woff2') format('woff2');+}+@font-face {+ font-family: 'HarmonyOS Sans SC';+ font-style: normal;+ font-weight: 700;+ font-display: swap;+ src: url('https://cdn.jsdelivr.net/npm/@ayahub/[email protected]/fonts/HarmonyOS_Sans_SC_Bold.woff2') format('woff2');+}++@tailwind base;+@tailwind components;+@tailwind utilities;++/* ===========================================+ CSS Variables - JiuwenClaw Design System+ =========================================== */++:root {+ /* Background - Warmer dark with depth */+ --bg: #0f1320;+ --bg-accent: #131a2a;+ --bg-elevated: #1a2234;+ --bg-hover: #232f46;+ --bg-muted: #202b42;+ --bg-content: #f5f5f5;++ /* Card / Surface - More contrast between levels */+ --card: #171f30;+ --card-foreground: #f4f4f5;+ --card-highlight: rgba(255, 255, 255, 0.05);+ --popover: #171f30;+ --popover-foreground: #f4f4f5;++ /* Panel */+ --panel: #101728;+ --panel-strong: #182134;+ --panel-hover: #25334d;+ --chrome: rgba(15, 19, 32, 0.92);+ --chrome-strong: rgba(15, 19, 32, 0.97);++ /* Text - Slightly warmer */+ --text: #e4e4e7;+ --text-strong: #fafafa;+ --chat-text: #e4e4e7;+ --muted: #71717a;+ --muted-strong: #52525b;+ --muted-foreground: #71717a;++ /* Border - Subtle but defined */+ --border: #243049;+ --border-strong: #33456b;+ --border-hover: #47618f;+ --border-accent: rgba(96, 165, 250, 0.5);+ --border-ok: rgba(34, 197, 94, 0.5);+ --border-danger: rgba(239, 68, 68, 0.5);+ --input: #283550;+ --ring: #60a5fa;++ /* Accent - Blue theme (brighter for dark mode visibility) */+ --accent: #60a5fa;+ --accent-hover: #93c5fd;+ --accent-muted: #60a5fa;+ --accent-subtle: rgba(96, 165, 250, 0.18);+ --accent-foreground: #1e293b;+ --accent-glow: rgba(96, 165, 250, 0.3);+ --primary: #60a5fa;+ --primary-foreground: #1e293b;++ /* Secondary - Teal accent for variety */+ --secondary: #1e2028;+ --secondary-foreground: #f4f4f5;+ --accent-2: #14b8a6;+ --accent-2-muted: rgba(20, 184, 166, 0.7);+ --accent-2-subtle: rgba(20, 184, 166, 0.15);++ /* Semantic - More saturated */+ --ok: #22c55e;+ --ok-muted: rgba(34, 197, 94, 0.75);+ --ok-subtle: rgba(34, 197, 94, 0.12);+ --destructive: #ef4444;+ --destructive-foreground: #fafafa;+ --warn: #f59e0b;+ --warn-muted: rgba(245, 158, 11, 0.75);+ --warn-subtle: rgba(245, 158, 11, 0.12);+ --danger: #ef4444;+ --danger-muted: rgba(239, 68, 68, 0.75);+ --danger-subtle: rgba(239, 68, 68, 0.12);+ --info: #3b82f6;++ /* Focus - With glow */+ --focus: rgba(96, 165, 250, 0.25);+ --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring);+ --focus-glow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring), 0 0 20px var(--accent-glow);++ /* Grid */+ --grid-line: rgba(255, 255, 255, 0.04);++ /* Typography - HarmonyOS Sans SC 鸿蒙字体,JetBrains Mono 等宽 */+ --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;+ --font-body: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;+ --font-display: "HarmonyOS Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;++ /* Shadows - Richer with subtle color */+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);+ --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03);+ --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03);+ --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);+ --shadow-glow: 0 0 30px var(--accent-glow);++ /* Radii - Slightly larger for friendlier feel */+ --radius-sm: 6px;+ --radius-md: 8px;+ --radius-lg: 12px;+ --radius-xl: 16px;+ --radius-full: 9999px;+ --radius: 8px;++ /* Transitions - Snappy but smooth */+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1);+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);+ --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);+ --duration-fast: 120ms;+ --duration-normal: 200ms;+ --duration-slow: 350ms;++ /* Shell Layout */+ --shell-pad: 16px;+ --shell-gap: 16px;+ --shell-nav-width: 220px;+ --tool-panel-width: var(--shell-nav-width);+ --statusbar-right-space: var(--tool-panel-width);+ --shell-topbar-height: 56px;+ --shell-focus-duration: 200ms;+ --shell-focus-ease: var(--ease-out);++ /* Typography scale (desktop baseline) */+ --font-size-base: 14px;+ --font-size-sm: 13px;+ --font-size-xs: 12px;+ --font-size-2xs: 11px;++ color-scheme: dark;+}++/* Light theme - Clean with subtle warmth */+:root[data-theme="light"] {+ --bg: #fafafa;+ --bg-accent: #f5f5f5;+ --bg-elevated: #ffffff;+ --bg-hover: #f0f0f0;+ --bg-muted: #f0f0f0;+ --bg-content: #f5f5f5;++ --card: #ffffff;+ --card-foreground: #18181b;+ --card-highlight: rgba(0, 0, 0, 0.03);+ --popover: #ffffff;+ --popover-foreground: #18181b;++ --panel: #fafafa;+ --panel-strong: #f5f5f5;+ --panel-hover: #ebebeb;+ --chrome: rgba(250, 250, 250, 0.95);+ --chrome-strong: rgba(250, 250, 250, 0.98);++ --text: #3f3f46;+ --text-strong: #18181b;+ --chat-text: #3f3f46;+ --muted: #71717a;+ --muted-strong: #52525b;+ --muted-foreground: #71717a;++ --border: #e4e4e7;+ --border-strong: #d4d4d8;+ --border-hover: #a1a1aa;+ --border-accent: rgba(37, 99, 235, 0.5);+ --border-ok: rgba(22, 163, 74, 0.5);+ --border-danger: rgba(220, 38, 38, 0.5);+ --input: #e4e4e7;+ --ring: #2563eb;++ --accent: #2563eb;+ --accent-hover: #3b82f6;+ --accent-muted: #2563eb;+ --accent-subtle: rgba(37, 99, 235, 0.12);+ --accent-foreground: #ffffff;+ --accent-glow: rgba(37, 99, 235, 0.15);+ --primary: #2563eb;+ --primary-foreground: #ffffff;++ --secondary: #f4f4f5;+ --secondary-foreground: #3f3f46;+ --accent-2: #0d9488;+ --accent-2-muted: rgba(13, 148, 136, 0.75);+ --accent-2-subtle: rgba(13, 148, 136, 0.12);++ --ok: #16a34a;+ --ok-muted: rgba(22, 163, 74, 0.75);+ --ok-subtle: rgba(22, 163, 74, 0.1);+ --destructive: #dc2626;+ --destructive-foreground: #fafafa;+ --warn: #d97706;+ --warn-muted: rgba(217, 119, 6, 0.75);+ --warn-subtle: rgba(217, 119, 6, 0.1);+ --danger: #dc2626;+ --danger-muted: rgba(220, 38, 38, 0.75);+ --danger-subtle: rgba(220, 38, 38, 0.1);+ --info: #2563eb;++ --focus: rgba(37, 99, 235, 0.2);+ --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring);+ --focus-glow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring), 0 0 16px var(--accent-glow);++ --grid-line: rgba(0, 0, 0, 0.05);++ /* Light shadows */+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);+ --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);+ --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);+ --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);+ --shadow-glow: 0 0 24px var(--accent-glow);++ color-scheme: light;+}++/* ===========================================+ Base Styles+ =========================================== */++* {+ box-sizing: border-box;+}++html,+body {+ height: 100%;+}++body {+ margin: 0;+ font: 400 var(--font-size-base)/1.55 var(--font-body);+ letter-spacing: -0.02em;+ background: var(--bg);+ color: var(--text);+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+}++:root:not([data-theme="light"]) body {+ background:+ radial-gradient(1200px 480px at 55% -20%, rgba(37, 99, 235, 0.16), transparent 60%),+ radial-gradient(720px 320px at 18% 8%, rgba(20, 184, 166, 0.08), transparent 65%),+ var(--bg);+}++#root {+ height: 100%;+}++a {+ color: var(--accent);+ text-decoration: none;+}++a:hover {+ text-decoration: underline;+}++button,+input,+textarea,+select {+ font: inherit;+ color: inherit;+}++::selection {+ background: var(--accent-subtle);+ color: var(--text-strong);+}++/* Scrollbar styling */+::-webkit-scrollbar {+ width: 8px;+ height: 8px;+}++::-webkit-scrollbar-track {+ background: transparent;+}++::-webkit-scrollbar-thumb {+ background: var(--border);+ border-radius: var(--radius-full);+}++::-webkit-scrollbar-thumb:hover {+ background: var(--border-strong);+}++/* ===========================================+ Animations+ =========================================== */++@keyframes rise {+ from {+ opacity: 0;+ transform: translateY(8px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }+}++@keyframes fade-in {+ from {+ opacity: 0;+ }+ to {+ opacity: 1;+ }+}++@keyframes scale-in {+ from {+ opacity: 0;+ transform: scale(0.95);+ }+ to {+ opacity: 1;+ transform: scale(1);+ }+}++@keyframes shimmer {+ 0% {+ background-position: -200% 0;+ }+ 100% {+ background-position: 200% 0;+ }+}++@keyframes pulse-subtle {+ 0%,+ 100% {+ opacity: 1;+ }+ 50% {+ opacity: 0.7;+ }+}++@keyframes glow-pulse {+ 0%,+ 100% {+ box-shadow: 0 0 0 rgba(255, 92, 92, 0);+ }+ 50% {+ box-shadow: 0 0 20px var(--accent-glow);+ }+}++@keyframes chatStreamPulse {+ 0%,+ 100% {+ border-color: var(--border);+ }+ 50% {+ border-color: var(--accent);+ }+}++@keyframes chatReadingDot {+ 0%,+ 80%,+ 100% {+ opacity: 0.4;+ transform: translateY(0);+ }+ 40% {+ opacity: 1;+ transform: translateY(-3px);+ }+}++@keyframes blink {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0; }+}++/* ===========================================+ Focus visible styles+ =========================================== */++:focus-visible {+ outline: none;+ box-shadow: var(--focus-ring);+}++/* ===========================================+ Component Layer+ =========================================== */++@layer components {+ /* Shell Layout */+ .shell {+ height: 100vh;+ display: grid;+ grid-template-columns: var(--shell-nav-width) minmax(0, 1fr);+ grid-template-rows: var(--shell-topbar-height) 1fr;+ grid-template-areas:+ "topbar topbar"+ "nav content";+ gap: 0;+ animation: rise 0.4s var(--ease-out);+ transition: grid-template-columns var(--shell-focus-duration) var(--shell-focus-ease);+ overflow: hidden;+ background: var(--bg);+ }++ @supports (height: 100dvh) {+ .shell {+ height: 100dvh;+ }+ }++ /* Topbar */+ .topbar {+ grid-area: topbar;+ position: sticky;+ top: 0;+ z-index: 40;+ display: flex;+ justify-content: space-between;+ align-items: center;+ gap: 16px;+ padding: 0 20px;+ height: var(--shell-topbar-height);+ border-bottom: 1px solid var(--border);+ background: var(--chrome);+ backdrop-filter: blur(10px);+ }++ /* Brand */+ .brand {+ display: flex;+ align-items: center;+ gap: 10px;+ }++ .brand-logo {+ width: 28px;+ height: 28px;+ flex-shrink: 0;+ display: flex;+ align-items: center;+ justify-content: center;+ background: linear-gradient(135deg, var(--accent), var(--accent-2));+ border-radius: var(--radius-md);+ font-weight: 700;+ font-size: 14px;+ }++ .brand-logo-img {+ width: 32px;+ height: 32px;+ flex-shrink: 0;+ object-fit: contain;+ color: white;+ }++ .brand-text {+ display: flex;+ flex-direction: column;+ gap: 1px;+ }++ .brand-title {+ font-size: 16px;+ font-weight: 700;+ letter-spacing: -0.03em;+ line-height: 1.1;+ color: var(--text-strong);+ }++ .brand-sub {+ font-size: var(--font-size-2xs);+ font-weight: 500;+ color: var(--muted);+ letter-spacing: 0.05em;+ text-transform: uppercase;+ line-height: 1;+ }++ /* Navigation Sidebar */+ .nav {+ grid-area: nav;+ overflow-y: auto;+ overflow-x: hidden;+ padding: 16px 12px;+ background: var(--panel);+ scrollbar-width: none;+ min-height: 0;+ border-right: 1px solid var(--border);+ }++ .nav::-webkit-scrollbar {+ display: none;+ }++ /* Nav items */+ .nav-item {+ position: relative;+ display: flex;+ align-items: center;+ justify-content: flex-start;+ gap: 10px;+ padding: 8px 10px;+ border-radius: var(--radius-md);+ border: 1px solid transparent;+ background: transparent;+ color: var(--muted);+ cursor: pointer;+ text-decoration: none;+ transition:+ border-color var(--duration-fast) ease,+ background var(--duration-fast) ease,+ color var(--duration-fast) ease;+ }++ .nav-item:hover {+ color: var(--text);+ background: var(--bg-hover);+ text-decoration: none;+ }++ .nav-item.active {+ color: var(--text-strong);+ background: var(--accent-subtle);+ }++ .nav-item.active .nav-item__icon {+ color: var(--accent);+ }++ /* Content Area */+ .content {+ grid-area: content;+ padding: 0;+ display: flex;+ flex-direction: column;+ min-height: 0;+ overflow-y: auto;+ overflow-x: hidden;+ background: linear-gradient(180deg, var(--bg-accent), var(--bg));+ }++ :root[data-theme="light"] .content {+ background: var(--bg-content);+ }++ /* Cards */+ .card {+ border: 1px solid var(--border);+ background: var(--card);+ border-radius: var(--radius-lg);+ padding: 20px;+ animation: rise 0.35s var(--ease-out) backwards;+ transition:+ border-color var(--duration-normal) var(--ease-out),+ box-shadow var(--duration-normal) var(--ease-out);+ box-shadow: var(--shadow-sm), inset 0 1px 0 var(--card-highlight);+ }++ .card:hover {+ border-color: var(--border-strong);+ box-shadow: var(--shadow-md), inset 0 1px 0 var(--card-highlight);+ }++ /* Pills */+ .pill {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ border: 1px solid var(--border);+ padding: 6px 12px;+ border-radius: var(--radius-full);+ background: var(--secondary);+ font-size: var(--font-size-sm);+ font-weight: 500;+ transition: border-color var(--duration-fast) ease;+ }++ .pill:hover {+ border-color: var(--border-strong);+ }++ /* Status Dot */+ .statusDot {+ width: 8px;+ height: 8px;+ border-radius: var(--radius-full);+ background: var(--danger);+ box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);+ animation: pulse-subtle 2s ease-in-out infinite;+ }++ .statusDot.ok {+ background: var(--ok);+ box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);+ animation: none;+ }++ /* Buttons */+ .btn {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 8px;+ border: 1px solid var(--border);+ background: var(--bg-elevated);+ padding: 9px 16px;+ border-radius: var(--radius-md);+ font-size: var(--font-size-sm);+ font-weight: 500;+ letter-spacing: -0.01em;+ cursor: pointer;+ transition:+ border-color var(--duration-fast) var(--ease-out),+ background var(--duration-fast) var(--ease-out),+ box-shadow var(--duration-fast) var(--ease-out),+ transform var(--duration-fast) var(--ease-out);+ }++ .btn:hover {+ background: var(--bg-hover);+ border-color: var(--border-strong);+ transform: translateY(-1px);+ box-shadow: var(--shadow-sm);+ }++ .btn:active {+ background: var(--secondary);+ transform: translateY(0);+ box-shadow: none;+ }++ .btn.primary {+ border-color: var(--accent);+ background: var(--accent);+ color: var(--primary-foreground);+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);+ }++ .btn.primary:hover {+ background: var(--accent-hover);+ border-color: var(--accent-hover);+ box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);+ }++ .btn:disabled {+ opacity: 0.5;+ cursor: not-allowed;+ }++ /* Form Fields */+ .field input,+ .field textarea,+ .field select {+ border: 1px solid var(--input);+ background: var(--card);+ border-radius: var(--radius-md);+ padding: 8px 12px;+ outline: none;+ box-shadow: inset 0 1px 0 var(--card-highlight);+ transition:+ border-color var(--duration-fast) ease,+ box-shadow var(--duration-fast) ease;+ }++ .field input:focus,+ .field textarea:focus,+ .field select:focus {+ border-color: var(--ring);+ box-shadow: var(--focus-ring);+ }++ /* Chat Bubbles */+ .chat-bubble {+ border: 1px solid transparent;+ background: var(--card);+ border-radius: var(--radius-lg);+ padding: 10px 14px;+ min-width: 0;+ }++ :root[data-theme="light"] .chat-bubble {+ border-color: var(--border);+ background: var(--bg);+ }++ .chat-bubble.user {+ border-color: transparent;+ background: var(--accent-subtle);+ }++ :root[data-theme="light"] .chat-bubble.user {+ border-color: rgba(59, 130, 246, 0.2);+ background: rgba(59, 130, 246, 0.12);+ }++ .chat-bubble.assistant {+ border-color: transparent;+ background: var(--secondary);+ }++ :root[data-theme="light"] .chat-bubble.assistant {+ border-color: var(--border);+ background: var(--bg-muted);+ }++ .chat-bubble.streaming {+ animation: chatStreamPulse 1.5s ease-in-out infinite;+ }++ /* Reading indicator */+ .chat-reading-indicator {+ width: fit-content;+ padding: 10px 16px;+ }++ .chat-reading-indicator__dots {+ display: inline-flex;+ align-items: center;+ gap: 4px;+ height: 12px;+ }++ .chat-reading-indicator__dots > span {+ display: inline-block;+ width: 6px;+ height: 6px;+ border-radius: var(--radius-full);+ background: var(--muted);+ opacity: 0.6;+ transform: translateY(0);+ animation: chatReadingDot 1.2s ease-in-out infinite;+ will-change: transform, opacity;+ }++ .chat-reading-indicator__dots > span:nth-child(2) {+ animation-delay: 0.15s;+ }++ .chat-reading-indicator__dots > span:nth-child(3) {+ animation-delay: 0.3s;+ }++ /* Chat text */+ .chat-text {+ overflow-wrap: anywhere;+ word-break: break-word;+ color: var(--chat-text);+ line-height: 1.5;+ }++ .chat-text :where(p) {+ margin: 0.5em 0;+ }++ .chat-text :where(p:first-child) {+ margin-top: 0;+ }++ .chat-text :where(p:last-child) {+ margin-bottom: 0;+ }++ .chat-text :where(ul, ol) {+ margin: 0.5em 0;+ padding-left: 1.25em;+ }++ .chat-text :where(li) {+ margin: 0.2em 0;+ }++ .chat-text :where(h1, h2, h3, h4, h5, h6) {+ margin: 0.8em 0 0.4em;+ font-weight: 600;+ line-height: 1.35;+ }++ .chat-text :where(h1) { font-size: 1.15em; }+ .chat-text :where(h2) { font-size: 1.1em; }+ .chat-text :where(h3, h4, h5, h6) { font-size: 1em; }++ .chat-text :where(blockquote) {+ margin: 0.75em 0;+ padding-left: 0.75em;+ border-left: 3px solid var(--border);+ color: var(--text-muted);+ }++ .chat-text :where(a) {+ color: var(--accent);+ text-decoration: underline;+ text-underline-offset: 2px;+ }++ .chat-text :where(pre) {+ margin-top: 0.75em;+ padding: 10px 12px;+ border-radius: var(--radius-md);+ border: 1px solid var(--border);+ background: var(--secondary);+ overflow: auto;+ }++ :root[data-theme="light"] .chat-text :where(pre) {+ background: var(--bg-muted);+ }++ .chat-text :where(pre code) {+ font-size: 12px;+ white-space: pre;+ }++ .chat-text :where(code) {+ font-family: var(--mono);+ font-size: 0.9em;+ }++ .chat-text :where(:not(pre) > code) {+ padding: 0.15em 0.35em;+ border-radius: var(--radius-sm);+ border: 1px solid var(--border);+ background: var(--secondary);+ }++ /* Chat compose wrapper */+ .chat-compose {+ padding-top: 4px;+ }++ /* Tool cards (legacy single) */+ .chat-tool-card {+ margin-top: 8px;+ padding: 10px 12px;+ border-radius: var(--radius-md);+ border: 1px solid var(--border);+ background: var(--secondary);+ display: grid;+ gap: 4px;+ }++ :root[data-theme="light"] .chat-tool-card {+ background: var(--bg-muted);+ }++ /* ====== Tool Group Container ====== */+ .tool-group-container {+ margin: 8px 0;+ border-radius: var(--radius-lg);+ border: 1px solid var(--border);+ background: var(--secondary);+ overflow: hidden;+ }++ :root[data-theme="light"] .tool-group-container {+ background: var(--bg-muted);+ border-color: var(--border);+ }++ /* Header */+ .tool-group-header {+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: 8px 12px;+ border-bottom: 1px solid var(--border);+ background: var(--card);+ color: var(--muted);+ font-size: var(--font-size-xs);+ user-select: none;+ }++ :root[data-theme="light"] .tool-group-header {+ background: var(--bg);+ }++ .tool-group-header-left {+ display: flex;+ align-items: center;+ gap: 6px;+ color: var(--text-strong);+ font-weight: 500;+ }++ .tool-group-pending {+ color: var(--warn);+ font-weight: 400;+ }++ /* Scrollable list — 最多显示约 5 条 */+ .tool-group-scroll {+ max-height: 200px;+ overflow-y: auto;+ scrollbar-width: thin;+ scrollbar-color: var(--border-strong) transparent;+ position: relative;+ }++ .tool-group-scroll::-webkit-scrollbar {+ width: 4px;+ }++ .tool-group-scroll::-webkit-scrollbar-thumb {+ background: var(--border-strong);+ border-radius: var(--radius-full);+ }++ .tool-group-scroll::-webkit-scrollbar-track {+ background: transparent;+ }++ /* "Scroll to bottom" button */+ .tool-group-scroll-btn {+ display: flex;+ align-items: center;+ justify-content: center;+ gap: 4px;+ width: 100%;+ padding: 4px 0;+ border: none;+ border-top: 1px solid var(--border);+ background: var(--card);+ color: var(--accent);+ font-size: var(--font-size-2xs);+ cursor: pointer;+ transition: background var(--duration-fast) ease;+ }++ .tool-group-scroll-btn:hover {+ background: var(--bg-hover);+ }++ /* ====== Tool Pair Item ====== */+ .tool-pair-item {+ border-bottom: 1px solid var(--border);+ padding: 8px 12px;+ }++ .tool-pair-item:last-child {+ border-bottom: none;+ }++ .tool-pair-header {+ display: flex;+ align-items: center;+ gap: 8px;+ cursor: pointer;+ min-height: 24px;+ }++ .tool-pair-header:hover .tool-pair-name {+ color: var(--accent);+ }++ /* Status icon */+ .tool-pair-icon {+ flex-shrink: 0;+ width: 18px;+ height: 18px;+ border-radius: 4px;+ display: flex;+ align-items: center;+ justify-content: center;+ }++ .tool-pair-icon.success {+ background: var(--ok-subtle);+ color: var(--ok);+ }++ .tool-pair-icon.error {+ background: var(--danger-subtle);+ color: var(--danger);+ }++ .tool-pair-icon.pending {+ background: var(--accent-subtle);+ color: var(--accent);+ }++ .tool-pair-icon.warning {+ background: var(--warn-subtle);+ color: var(--warn);+ }++ .tool-pair-name {+ font-family: var(--mono);+ font-size: 13px;+ font-weight: 500;+ color: var(--text);+ flex-shrink: 0;+ transition: color var(--duration-fast) ease;+ }++ .tool-pair-summary {+ font-family: var(--mono);+ font-size: var(--font-size-xs);+ color: var(--muted);+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ flex: 1;+ min-width: 0;+ }++ .tool-pair-toggle {+ flex-shrink: 0;+ font-size: 10px;+ color: var(--muted);+ margin-left: auto;+ }++ .tool-pair-subtitle {+ font-family: var(--mono);+ font-size: var(--font-size-2xs);+ color: var(--muted);+ padding-left: 26px;+ margin-top: 2px;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }++ /* Detail panel */+ .tool-pair-detail {+ margin-top: 6px;+ padding-left: 26px;+ display: flex;+ flex-direction: column;+ gap: 6px;+ }++ .tool-pair-section-label {+ font-size: var(--font-size-2xs);+ font-weight: 600;+ text-transform: uppercase;+ letter-spacing: 0.05em;+ color: var(--muted);+ margin-bottom: 2px;+ }++ .tool-pair-pre {+ font-family: var(--mono);+ font-size: var(--font-size-2xs);+ line-height: 1.5;+ color: var(--text);+ white-space: pre-wrap;+ word-break: break-all;+ max-height: 200px;+ overflow-y: auto;+ padding: 6px 8px;+ border-radius: var(--radius-sm);+ border: 1px solid var(--border);+ background: var(--bg);+ margin: 0;+ }++ :root[data-theme="light"] .tool-pair-pre {+ background: var(--bg-muted);+ }++ .tool-pair-pre.error {+ color: var(--danger);+ }++ /* Result badge inline */+ .tool-pair-result-badge {+ flex-shrink: 0;+ font-family: var(--mono);+ font-size: var(--font-size-2xs);+ padding: 1px 6px;+ border-radius: var(--radius-sm);+ white-space: nowrap;+ max-width: 200px;+ overflow: hidden;+ text-overflow: ellipsis;+ }++ .tool-pair-result-badge.success {+ background: var(--ok-subtle);+ color: var(--ok);+ }++ .tool-pair-result-badge.error {+ background: var(--danger-subtle);+ color: var(--danger);+ }++ .tool-pair-result-badge.warning {+ background: var(--warn-subtle);+ color: var(--warn);+ }++ .tool-group-pending.warning {+ color: var(--warn);+ }++ /* Theme Toggle */+ .theme-toggle {+ --theme-item: 28px;+ --theme-gap: 2px;+ --theme-pad: 4px;+ position: relative;+ }++ .theme-toggle__track {+ position: relative;+ display: grid;+ grid-template-columns: repeat(3, var(--theme-item));+ gap: var(--theme-gap);+ padding: var(--theme-pad);+ border-radius: var(--radius-full);+ border: 1px solid var(--border);+ background: var(--secondary);+ }++ .theme-toggle__indicator {+ position: absolute;+ top: 50%;+ left: var(--theme-pad);+ width: var(--theme-item);+ height: var(--theme-item);+ border-radius: var(--radius-full);+ transform: translateY(-50%)+ translateX(calc(var(--theme-index, 0) * (var(--theme-item) + var(--theme-gap))));+ background: var(--accent);+ transition: transform var(--duration-normal) var(--ease-out);+ z-index: 0;+ }++ .theme-toggle__button {+ height: var(--theme-item);+ width: var(--theme-item);+ display: grid;+ place-items: center;+ border: 0;+ border-radius: var(--radius-full);+ background: transparent;+ color: var(--muted);+ cursor: pointer;+ position: relative;+ z-index: 1;+ transition: color var(--duration-fast) ease;+ }++ .theme-toggle__button:hover {+ color: var(--text);+ }++ .theme-toggle__button.active {+ color: var(--accent-foreground);+ }++ /* Keyboard shortcut badge */+ .kbd {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ padding: 2px 5px;+ font-family: var(--mono);+ font-size: var(--font-size-2xs);+ font-weight: 500;+ line-height: 1;+ border-radius: 4px;+ background: rgba(255, 255, 255, 0.15);+ color: var(--muted);+ }++ :root[data-theme="light"] .kbd {+ background: rgba(0, 0, 0, 0.08);+ }++ /* Streaming cursor */+ .streaming-cursor {+ display: inline-block;+ width: 2px;+ height: 1em;+ background: var(--accent);+ animation: blink 1s step-end infinite;+ margin-left: 2px;+ vertical-align: text-bottom;+ }+}++/* ===========================================+ Utilities+ =========================================== */++.mono {+ font-family: var(--mono);+}++.muted {+ color: var(--muted);+}++/* Animation utilities */+.animate-rise {+ animation: rise 0.35s var(--ease-out) backwards;+}++/* Voice recording pulse */+@keyframes voice-pulse {+ 0%, 100% {+ box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);+ }+ 50% {+ box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);+ }+}++.voice-recording {+ animation: voice-pulse 1.5s ease-in-out infinite;+}++.animate-fade-in {+ animation: fade-in 0.2s ease-out forwards;+}++.animate-scale-in {+ animation: scale-in 0.2s var(--ease-out);+}++/* ===========================================+ Responsive - Tablet+ =========================================== */++@media (max-width: 1100px) {+ .shell {+ --shell-pad: 12px;+ --shell-gap: 12px;+ grid-template-columns: 1fr;+ grid-template-rows: auto auto 1fr;+ grid-template-areas:+ "topbar"+ "nav"+ "content";+ }++ .nav {+ position: static;+ max-height: none;+ display: flex;+ gap: 6px;+ overflow-x: auto;+ border-right: none;+ border-bottom: 1px solid var(--border);+ padding: 10px 14px;+ background: var(--bg);+ }+}++/* ===========================================+ Responsive - Large screens+ =========================================== */++@media (min-width: 1440px) {+ :root {+ --font-size-base: 15px;+ --font-size-sm: 14px;+ --font-size-xs: 13px;+ --font-size-2xs: 12px;+ --shell-nav-width: 248px;+ --tool-panel-width: var(--shell-nav-width);+ --statusbar-right-space: var(--tool-panel-width);+ --shell-topbar-height: 60px;+ }+}++@media (min-width: 1920px) {+ :root {+ --font-size-base: 16px;+ --font-size-sm: 15px;+ --font-size-xs: 14px;+ --font-size-2xs: 13px;+ --shell-nav-width: 272px;+ --tool-panel-width: var(--shell-nav-width);+ --statusbar-right-space: var(--tool-panel-width);+ --shell-topbar-height: 64px;+ }+}diff --git a/jiuwenclaw/web/src/main.tsx b/jiuwenclaw/web/src/main.tsxnew file mode 100644index 0000000000..7f0c425cc5--- /dev/null+++ b/jiuwenclaw/web/src/main.tsx@@ -0,0 +1,7 @@+import ReactDOM from 'react-dom/client'+import App from './App.tsx'+import './index.css'++ReactDOM.createRoot(document.getElementById('root')!).render(+ <App />,+)diff --git a/jiuwenclaw/web/src/services/webClient.ts b/jiuwenclaw/web/src/services/webClient.tsnew file mode 100644index 0000000000..976c8c9377--- /dev/null+++ b/jiuwenclaw/web/src/services/webClient.ts@@ -0,0 +1,514 @@+import {+ WebConnectOptions,+ WebConnectionState,+ WebError,+ WebMessage,+ WebRequestOptions,+ WsEvent,+ WsRequest,+ WsResponse,+} from '../types';+import { getWsBase } from '../utils/env';++type EventHandler = (event: WsEvent) => void;+type StateHandler = (state: WebConnectionState) => void;++interface PendingRequest {+ resolve: (value: unknown) => void;+ reject: (reason?: unknown) => void;+ timeoutId: number;+}++const MAX_RECONNECT_ATTEMPTS = 5;+const DEFAULT_TIMEOUT_MS = 15000;++const LEGACY_EVENT_MAP: Record<string, string> = {+ connection_ack: 'connection.ack',+ content_chunk: 'chat.delta',+ content: 'chat.final',+ media_content: 'chat.media',+ tool_call: 'chat.tool_call',+ tool_result: 'chat.tool_result',+ error: 'chat.error',+ interrupt_result: 'chat.interrupt_result',+ subtask_update: 'chat.subtask_update',+ ask_user_question: 'chat.ask_user_question',+ todo_update: 'todo.updated',+ session_update: 'session.updated',+ processing_status: 'chat.processing_status',+ heartbeat: 'connection.heartbeat',+};++interface DevWsLogEntry {+ direction: 'outgoing' | 'incoming' | 'lifecycle';+ messageType?: 'req' | 'res' | 'event';+ data: unknown;+}++function logDevWsTraffic(entry: DevWsLogEntry): void {+ if (!import.meta.env.DEV) {+ return;+ }++ const body = {+ ...entry,+ at: new Date().toISOString(),+ };++ void fetch('/__dev/ws-log', {+ method: 'POST',+ headers: {+ 'content-type': 'application/json',+ },+ body: JSON.stringify(body),+ keepalive: true,+ }).catch(() => {+ // 仅用于本地调试日志,失败时不影响业务逻辑+ });+}++class WebClient {+ private ws: WebSocket | null = null;+ private state: WebConnectionState = 'idle';+ private handlers = new Map<string, Set<EventHandler>>();+ private stateHandlers = new Set<StateHandler>();+ private pending = new Map<string, PendingRequest>();+ private reconnectTimer: number | null = null;+ private reconnectAttempts = 0;+ private manualClose = false;+ private connectPromise: Promise<void> | null = null;+ private lastConnectOptions: WebConnectOptions = {};+ private requestSeq = 0;++ getState(): WebConnectionState {+ return this.state;+ }++ getInflightCount(): number {+ return this.pending.size;+ }++ onStateChange(handler: StateHandler): () => void {+ this.stateHandlers.add(handler);+ return () => {+ this.stateHandlers.delete(handler);+ };+ }++ on(eventName: string, handler: EventHandler): () => void {+ const set = this.handlers.get(eventName) ?? new Set<EventHandler>();+ set.add(handler);+ this.handlers.set(eventName, set);++ return () => {+ const target = this.handlers.get(eventName);+ if (!target) {+ return;+ }+ target.delete(handler);+ if (target.size === 0) {+ this.handlers.delete(eventName);+ }+ };+ }++ async connect(options: WebConnectOptions = {}): Promise<void> {+ if (this.ws?.readyState === WebSocket.OPEN) {+ return;+ }+ if (this.connectPromise) {+ return this.connectPromise;+ }++ this.lastConnectOptions = options;+ this.manualClose = false;+ this.updateState(this.reconnectAttempts > 0 ? 'reconnecting' : 'connecting');++ const url = this.buildWsUrl(options);++ this.connectPromise = new Promise<void>((resolve, reject) => {+ const ws = new WebSocket(url);+ this.ws = ws;++ ws.onopen = () => {+ logDevWsTraffic({+ direction: 'lifecycle',+ data: { event: 'open', url },+ });+ this.reconnectAttempts = 0;+ this.updateState('ready');+ this.connectPromise = null;+ resolve();+ };++ ws.onmessage = (event) => {+ this.handleIncoming(event.data);+ };++ ws.onerror = () => {+ logDevWsTraffic({+ direction: 'lifecycle',+ data: { event: 'error' },+ });+ const error = this.createWebError(+ 'WebSocket 连接异常',+ 'WS_ERROR',+ undefined,+ true+ );+ this.connectPromise = null;+ if (this.state !== 'ready') {+ reject(error);+ }+ };++ ws.onclose = (closeEvent) => {+ logDevWsTraffic({+ direction: 'lifecycle',+ data: {+ event: 'close',+ code: closeEvent.code,+ reason: closeEvent.reason,+ wasClean: closeEvent.wasClean,+ },+ });+ this.ws = null;+ this.connectPromise = null;+ this.rejectAllPending(+ this.createWebError(+ `连接已关闭 (${closeEvent.code})`,+ 'WS_DISCONNECTED',+ undefined,+ true+ )+ );+ if (this.manualClose || closeEvent.code === 1000) {+ this.updateState('closed');+ return;+ }+ this.scheduleReconnect();+ };+ });++ return this.connectPromise;+ }++ disconnect(reason = 'User disconnect'): Promise<void> {+ this.manualClose = true;+ this.clearReconnectTimer();+ this.rejectAllPending(+ this.createWebError('连接已关闭', 'WS_CLOSED', undefined, false)+ );+ const currentWs = this.ws;+ let closedPromise = Promise.resolve();+ if (currentWs) {+ closedPromise = new Promise<void>((resolve) => {+ let finished = false;+ const finish = () => {+ if (finished) {+ return;+ }+ finished = true;+ resolve();+ };+ const timeoutId = window.setTimeout(() => {+ finish();+ }, 800);+ currentWs.addEventListener(+ 'close',+ () => {+ window.clearTimeout(timeoutId);+ finish();+ },+ { once: true }+ );+ currentWs.close(1000, reason);+ });+ }+ this.ws = null;+ this.connectPromise = null;+ this.updateState('closed');+ return closedPromise;+ }++ async request<T = unknown>(+ method: string,+ params?: Record<string, unknown>,+ options: WebRequestOptions = {}+ ): Promise<T> {+ await this.ensureReady();++ if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {+ throw this.createWebError('连接不可用', 'WS_NOT_READY', undefined, true);+ }++ const id = this.generateRequestId();+ const timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;+ const message: WsRequest = {+ type: 'req',+ id,+ method,+ params: params ?? {},+ };++ return new Promise<T>((resolve, reject) => {+ const timeoutId = window.setTimeout(() => {+ this.pending.delete(id);+ reject(this.createWebError('请求超时', 'REQUEST_TIMEOUT', id, true));+ }, timeoutMs);++ const pending: PendingRequest = {+ resolve: (value) => resolve(value as T),+ reject,+ timeoutId,+ };+ this.pending.set(id, pending);++ if (options.signal) {+ const onAbort = () => {+ if (!this.pending.has(id)) {+ return;+ }+ window.clearTimeout(timeoutId);+ this.pending.delete(id);+ reject(this.createWebError('请求已取消', 'REQUEST_ABORTED', id, false));+ };+ if (options.signal.aborted) {+ onAbort();+ return;+ }+ options.signal.addEventListener('abort', onAbort, { once: true });+ }++ logDevWsTraffic({+ direction: 'outgoing',+ messageType: 'req',+ data: message,+ });+ this.ws?.send(JSON.stringify(message));+ });+ }++ private async ensureReady(): Promise<void> {+ if (this.ws?.readyState === WebSocket.OPEN && this.state === 'ready') {+ return;+ }+ await this.connect(this.lastConnectOptions);+ }++ private handleIncoming(rawData: string): void {+ let parsed: unknown;+ try {+ parsed = JSON.parse(rawData);+ } catch {+ logDevWsTraffic({+ direction: 'incoming',+ data: { rawData, parse: 'failed' },+ });+ return;+ }++ const message = this.normalizeIncoming(parsed);+ if (!message) {+ logDevWsTraffic({+ direction: 'incoming',+ data: { parsed, normalize: 'ignored' },+ });+ return;+ }++ logDevWsTraffic({+ direction: 'incoming',+ messageType: message.type,+ data: message,+ });++ if (message.type === 'res') {+ this.resolvePending(message);+ return;+ }++ this.dispatchEvent(message);+ }++ private normalizeIncoming(input: unknown): WsResponse | WsEvent | null {+ if (!input || typeof input !== 'object') {+ return null;+ }+ const msg = input as Record<string, unknown>;+ const rawType = msg.type;+ if (rawType === 'res') {+ if (typeof msg.id !== 'string') {+ return null;+ }+ return {+ type: 'res',+ id: msg.id,+ ok: Boolean(msg.ok),+ payload: msg.payload,+ error: typeof msg.error === 'string' ? msg.error : undefined,+ code: typeof msg.code === 'string' ? msg.code : undefined,+ };+ }++ if (rawType === 'event') {+ const eventName = typeof msg.event === 'string' ? msg.event : '';+ if (!eventName) {+ return null;+ }+ return {+ type: 'event',+ event: eventName,+ payload: this.normalizePayload(msg.payload),+ seq: typeof msg.seq === 'number' ? msg.seq : undefined,+ stream_id: typeof msg.stream_id === 'string' ? msg.stream_id : undefined,+ };+ }++ if (typeof rawType === 'string') {+ const mappedEvent = LEGACY_EVENT_MAP[rawType];+ if (!mappedEvent) {+ return null;+ }+ return {+ type: 'event',+ event: mappedEvent,+ payload: this.normalizePayload(msg.payload),+ };+ }++ return null;+ }++ private normalizePayload(payload: unknown): Record<string, unknown> {+ if (!payload || typeof payload !== 'object') {+ return {};+ }+ return payload as Record<string, unknown>;+ }++ private resolvePending(message: WsResponse): void {+ const pending = this.pending.get(message.id);+ if (!pending) {+ return;+ }+ window.clearTimeout(pending.timeoutId);+ this.pending.delete(message.id);++ if (message.ok) {+ pending.resolve(message.payload);+ return;+ }++ pending.reject(+ this.createWebError(+ message.error ?? '请求失败',+ message.code,+ message.id,+ this.isRetriableCode(message.code)+ )+ );+ }++ private dispatchEvent(event: WsEvent): void {+ const handlers = this.handlers.get(event.event);+ if (!handlers || handlers.size === 0) {+ return;+ }+ handlers.forEach((handler) => {+ handler(event);+ });+ }++ private scheduleReconnect(): void {+ this.clearReconnectTimer();+ if (this.reconnectAttempts >= MAX_RECONNECT_ATTEMPTS) {+ this.updateState('closed');+ return;+ }+ this.reconnectAttempts += 1;+ this.updateState('reconnecting');+ const delay = Math.min(1000 * 2 ** (this.reconnectAttempts - 1), 30000);+ this.reconnectTimer = window.setTimeout(() => {+ void this.connect(this.lastConnectOptions);+ }, delay);+ }++ private clearReconnectTimer(): void {+ if (this.reconnectTimer !== null) {+ window.clearTimeout(this.reconnectTimer);+ this.reconnectTimer = null;+ }+ }++ private rejectAllPending(error: WebError): void {+ this.pending.forEach((entry) => {+ window.clearTimeout(entry.timeoutId);+ entry.reject(error);+ });+ this.pending.clear();+ }++ private updateState(state: WebConnectionState): void {+ this.state = state;+ this.stateHandlers.forEach((handler) => {+ handler(state);+ });+ }++ private buildWsUrl(options: WebConnectOptions): string {+ const wsBase = getWsBase();+ const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';+ const host = window.location.host;+ const base = wsBase || `${protocol}//${host}`;+ const path = base.endsWith('/ws') || base.endsWith('/ws/gateway') ? '' : '/ws';+ const params = new URLSearchParams();+ if (options.provider) params.set('provider', options.provider);+ if (options.apiKey) params.set('api_key', options.apiKey);+ if (options.apiBase) params.set('api_base', options.apiBase);+ if (options.model) params.set('model', options.model);+ if (options.projectPath) params.set('project_path', options.projectPath);+ const query = params.toString();+ const target = `${base}${path}`;+ return query ? `${target}?${query}` : target;+ }++ private generateRequestId(): string {+ this.requestSeq += 1;+ const stamp = Date.now().toString(36);+ return `req_${stamp}_${this.requestSeq}`;+ }++ private createWebError(+ message: string,+ code?: string,+ requestId?: string,+ retriable = false+ ): WebError {+ const error = new Error(message) as WebError;+ error.code = code;+ error.requestId = requestId;+ error.retriable = retriable;+ return error;+ }++ private isRetriableCode(code?: string): boolean {+ return (+ code === 'REQUEST_TIMEOUT' ||+ code === 'WS_DISCONNECTED' ||+ code === 'WS_NOT_READY'+ );+ }+}++export const webClient = new WebClient();++export async function webRequest<T = unknown>(+ method: string,+ params?: Record<string, unknown>,+ options?: WebRequestOptions+): Promise<T> {+ return webClient.request<T>(method, params, options);+}++export type { WsEvent, WebMessage };diff --git a/jiuwenclaw/web/src/stores/chatStore.ts b/jiuwenclaw/web/src/stores/chatStore.tsnew file mode 100644index 0000000000..e4e6e8aa99--- /dev/null+++ b/jiuwenclaw/web/src/stores/chatStore.ts@@ -0,0 +1,456 @@+/**+ * 聊天状态管理+ */++import { create } from 'zustand';+import {+ Message,+ ToolCall,+ ToolResult,+ ToolExecution,+ ToolExecutionStatus,+ InterruptResultPayload,+ SubtaskUpdatePayload,+ AskUserQuestionPayload,+} from '../types';+import { useTodoStore } from './todoStore';++const TOOL_TIMEOUT_MS = 300_000;++function computeTimeoutAt(baseIso: string): string {+ return new Date(Date.parse(baseIso) + TOOL_TIMEOUT_MS).toISOString();+}++function resolveExecutionStatus(result: ToolResult): ToolExecutionStatus {+ return result.success ? 'completed' : 'error';+}++/**+ * 子任务状态+ */+export interface SubtaskState {+ task_id: string;+ description: string;+ status: string;+ index: number;+ total: number;+ tool_name?: string;+ tool_count: number;+ message?: string;+ is_parallel: boolean;+}++interface ChatState {+ messages: Message[];+ isProcessing: boolean;+ isThinking: boolean; // 思考中状态(显示闪烁动画)+ isPaused: boolean; // 任务是否暂停+ pausedTask: string | null; // 暂停的任务描述+ interruptResult: InterruptResultPayload | null; // 最近的中断结果+ currentStreamContent: string;+ currentStreamId: string | null;+ streamBuffers: Map<string, string>;+ activeSubtasks: Map<string, SubtaskState>; // 活跃的子任务+ toolExecutions: Map<string, ToolExecution>;+ toolExecutionOrder: string[];+ orphanResults: Map<string, ToolResult>;+ toolMetrics: {+ toolCallDedupDropped: number;+ toolResultDedupDropped: number;+ };+ // 用户问题相关+ pendingQuestion: AskUserQuestionPayload | null; // 待回答的问题++ // Actions+ addMessage: (message: Message) => void;+ updateMessage: (id: string, updates: Partial<Message>) => void;+ appendStreamContent: (content: string, streamKey?: string) => void;+ startStreaming: (messageId: string, streamKey?: string) => void;+ stopStreaming: (streamKey?: string) => void;+ setProcessing: (status: boolean) => void;+ setThinking: (status: boolean) => void;+ setPaused: (paused: boolean, task?: string | null) => void;+ setInterruptResult: (result: InterruptResultPayload | null) => void;+ addToolCall: (toolCall: ToolCall) => void;+ addToolResult: (toolResult: ToolResult) => void;+ markTimedOutExecutions: () => void;+ updateSubtask: (payload: SubtaskUpdatePayload) => void;+ clearSubtasks: () => void;+ clearMessages: () => void;+ // 用户问题相关+ setPendingQuestion: (question: AskUserQuestionPayload | null) => void;+}++export const useChatStore = create<ChatState>((set, get) => ({+ messages: [],+ isProcessing: false,+ isThinking: false,+ isPaused: false,+ pausedTask: null,+ interruptResult: null,+ currentStreamContent: '',+ currentStreamId: null,+ streamBuffers: new Map(),+ activeSubtasks: new Map(),+ toolExecutions: new Map(),+ toolExecutionOrder: [],+ orphanResults: new Map(),+ toolMetrics: {+ toolCallDedupDropped: 0,+ toolResultDedupDropped: 0,+ },+ pendingQuestion: null,++ addMessage: (message) => {+ set((state) => ({+ messages: [...state.messages, message],+ }));+ },++ updateMessage: (id, updates) => {+ set((state) => ({+ messages: state.messages.map((msg) =>+ msg.id === id ? { ...msg, ...updates } : msg+ ),+ }));+ },++ appendStreamContent: (content, streamKey = 'default') => {+ const { currentStreamId } = get();+ if (!currentStreamId) return;++ const existingBuffer = get().streamBuffers.get(streamKey) || '';+ const nextContent = existingBuffer + content;++ set((state) => ({+ currentStreamContent: nextContent,+ streamBuffers: new Map(state.streamBuffers).set(streamKey, nextContent),+ messages: state.messages.map((msg) =>+ msg.id === currentStreamId+ ? { ...msg, content: nextContent }+ : msg+ ),+ }));+ },++ startStreaming: (messageId, streamKey = 'default') => {+ set((state) => ({+ currentStreamId: messageId,+ currentStreamContent: '',+ streamBuffers: new Map(state.streamBuffers).set(streamKey, ''),+ }));+ },++ stopStreaming: (streamKey = 'default') => {+ const { currentStreamId } = get();+ if (currentStreamId) {+ set((state) => ({+ messages: state.messages.map((msg) =>+ msg.id === currentStreamId ? { ...msg, isStreaming: false } : msg+ ),+ currentStreamId: null,+ currentStreamContent: '',+ streamBuffers: new Map(state.streamBuffers).set(streamKey, ''),+ }));+ }+ },++ setProcessing: (status) => {+ set({ isProcessing: status });+ },++ setThinking: (status) => {+ set({ isThinking: status });+ },++ setPaused: (paused, task = null) => {+ set({ isPaused: paused, pausedTask: task ?? null });+ },++ setInterruptResult: (result) => {+ set({ interruptResult: result });+ // 3 秒后自动清除中断结果提示+ if (result) {+ setTimeout(() => {+ set((state) => {+ // 只有当前结果没有变化时才清除+ if (state.interruptResult === result) {+ return { interruptResult: null };+ }+ return {};+ });+ }, 3000);+ }+ },++ addToolCall: (toolCall) => {+ set((state) => {+ if (!toolCall.id) {+ const nextDropped = state.toolMetrics.toolCallDedupDropped + 1;+ if (import.meta.env.DEV && (nextDropped === 1 || nextDropped % 10 === 0)) {+ console.debug('[ws][metrics] toolCallDedupDropped', {+ count: nextDropped,+ reason: 'missing toolCallId',+ });+ }+ return {+ ...state,+ toolMetrics: {+ ...state.toolMetrics,+ toolCallDedupDropped: nextDropped,+ },+ };+ }+ if (state.toolExecutions.has(toolCall.id)) {+ const nextDropped = state.toolMetrics.toolCallDedupDropped + 1;+ if (import.meta.env.DEV && (nextDropped === 1 || nextDropped % 10 === 0)) {+ console.debug('[ws][metrics] toolCallDedupDropped', {+ count: nextDropped,+ reason: 'toolCallId execution hit',+ });+ }+ return {+ ...state,+ toolMetrics: {+ ...state.toolMetrics,+ toolCallDedupDropped: nextDropped,+ },+ };+ }+ const nowIso = new Date().toISOString();+ const orphanResult = state.orphanResults.get(toolCall.id);+ const nextExecutions = new Map(state.toolExecutions);+ const nextOrphanResults = new Map(state.orphanResults);+ if (orphanResult) {+ nextOrphanResults.delete(toolCall.id);+ }+ const timeoutAt = computeTimeoutAt(nowIso);+ const resultStatus = orphanResult ? resolveExecutionStatus(orphanResult) : 'pending';+ nextExecutions.set(toolCall.id, {+ toolCallId: toolCall.id,+ toolCall,+ result: orphanResult,+ status: resultStatus,+ startedAt: nowIso,+ updatedAt: nowIso,+ timeoutAt,+ });++ const nextOrder = [...state.toolExecutionOrder, toolCall.id];+ return {+ toolExecutions: nextExecutions,+ toolExecutionOrder: nextOrder,+ orphanResults: nextOrphanResults,+ };+ });+ },++ addToolResult: (toolResult) => {+ set((state) => {+ const incomingToolCallId = toolResult.toolCallId;+ if (!incomingToolCallId) {+ const nextDropped = state.toolMetrics.toolResultDedupDropped + 1;+ if (import.meta.env.DEV && (nextDropped === 1 || nextDropped % 10 === 0)) {+ console.debug('[ws][metrics] toolResultDedupDropped', {+ count: nextDropped,+ reason: 'missing toolCallId',+ });+ }+ return {+ ...state,+ toolMetrics: {+ ...state.toolMetrics,+ toolResultDedupDropped: nextDropped,+ },+ };+ }+ const nowIso = new Date().toISOString();+ const existingExecution = state.toolExecutions.get(incomingToolCallId);++ if (!existingExecution) {+ const nextOrphanResults = new Map(state.orphanResults);+ const duplicatedOrphan = nextOrphanResults.get(incomingToolCallId);+ if (+ duplicatedOrphan &&+ duplicatedOrphan.result === toolResult.result &&+ duplicatedOrphan.success === toolResult.success &&+ (duplicatedOrphan.summary || '') === (toolResult.summary || '')+ ) {+ const nextDropped = state.toolMetrics.toolResultDedupDropped + 1;+ if (import.meta.env.DEV && (nextDropped === 1 || nextDropped % 10 === 0)) {+ console.debug('[ws][metrics] toolResultDedupDropped', {+ count: nextDropped,+ reason: 'orphan duplicate',+ });+ }+ return {+ ...state,+ toolMetrics: {+ ...state.toolMetrics,+ toolResultDedupDropped: nextDropped,+ },+ };+ }+ nextOrphanResults.set(incomingToolCallId, toolResult);+ return {+ orphanResults: nextOrphanResults,+ };+ }++ if (existingExecution.result) {+ const duplicated =+ existingExecution.result.result === toolResult.result &&+ existingExecution.result.success === toolResult.success &&+ (existingExecution.result.summary || '') === (toolResult.summary || '');+ if (duplicated) {+ const nextDropped = state.toolMetrics.toolResultDedupDropped + 1;+ if (import.meta.env.DEV && (nextDropped === 1 || nextDropped % 10 === 0)) {+ console.debug('[ws][metrics] toolResultDedupDropped', {+ count: nextDropped,+ reason: 'execution duplicate',+ });+ }+ return {+ ...state,+ toolMetrics: {+ ...state.toolMetrics,+ toolResultDedupDropped: nextDropped,+ },+ };+ }+ }++ const nextExecutions = new Map(state.toolExecutions);+ const nextStatus = resolveExecutionStatus(toolResult);+ nextExecutions.set(incomingToolCallId, {+ ...existingExecution,+ result: toolResult,+ status: nextStatus,+ updatedAt: nowIso,+ resultArrivedAfterTimeout:+ existingExecution.status === 'timeout' ? true : existingExecution.resultArrivedAfterTimeout,+ });+ return {+ toolExecutions: nextExecutions,+ };+ });+ },++ markTimedOutExecutions: () => {+ const now = Date.now();+ set((state) => {+ let changed = false;+ const nextExecutions = new Map(state.toolExecutions);+ for (const [toolCallId, execution] of nextExecutions) {+ if (execution.status !== 'pending') {+ continue;+ }+ const timeoutTs = Date.parse(execution.timeoutAt);+ if (Number.isNaN(timeoutTs) || timeoutTs > now) {+ continue;+ }+ changed = true;+ nextExecutions.set(toolCallId, {+ ...execution,+ status: 'timeout',+ timedOutAt: new Date(now).toISOString(),+ updatedAt: new Date(now).toISOString(),+ });+ }+ if (!changed) {+ return state;+ }+ return {+ ...state,+ toolExecutions: nextExecutions,+ };+ });+ },++ updateSubtask: (payload: SubtaskUpdatePayload) => {+ set((state) => {+ const newSubtasks = new Map(state.activeSubtasks);++ if (payload.status === 'completed' || payload.status === 'error') {+ // 任务完成或出错,从活跃列表中移除+ newSubtasks.delete(payload.task_id);+ } else {+ // 更新或添加子任务状态+ newSubtasks.set(payload.task_id, {+ task_id: payload.task_id,+ description: payload.description,+ status: payload.status,+ index: payload.index,+ total: payload.total,+ tool_name: payload.tool_name,+ tool_count: payload.tool_count || 0,+ message: payload.message,+ is_parallel: payload.is_parallel || false,+ });+ }++ return { activeSubtasks: newSubtasks };+ });++ // 同时更新 todoStore 中对应任务的 activeForm(如果能匹配)+ const todoState = useTodoStore.getState();+ const { todos, setTodos } = todoState;++ // 尝试匹配子任务描述和 todo 内容+ const matchingTodo = todos.find(+ (todo) =>+ todo.status === 'in_progress' &&+ (todo.content.includes(payload.description) ||+ payload.description.includes(todo.content.slice(0, 20)))+ );++ if (matchingTodo) {+ let activeForm = '';+ if (payload.status === 'starting') {+ activeForm = `正在${payload.description}...`;+ } else if (payload.status === 'tool_call') {+ activeForm = `正在调用 ${payload.tool_name}...`;+ } else if (payload.status === 'completed') {+ activeForm = ''; // 清除+ }++ if (activeForm || payload.status === 'completed') {+ const updatedTodos = todos.map((todo) =>+ todo.id === matchingTodo.id+ ? { ...todo, activeForm }+ : todo+ );+ setTodos(updatedTodos);+ }+ }+ },++ clearSubtasks: () => {+ set({ activeSubtasks: new Map() });+ },++ clearMessages: () => {+ set({+ messages: [],+ currentStreamContent: '',+ currentStreamId: null,+ streamBuffers: new Map(),+ isPaused: false,+ pausedTask: null,+ interruptResult: null,+ activeSubtasks: new Map(),+ toolExecutions: new Map(),+ toolExecutionOrder: [],+ orphanResults: new Map(),+ toolMetrics: {+ toolCallDedupDropped: 0,+ toolResultDedupDropped: 0,+ },+ pendingQuestion: null,+ });+ },++ setPendingQuestion: (question) => {+ set({ pendingQuestion: question });+ },+}));diff --git a/jiuwenclaw/web/src/stores/index.ts b/jiuwenclaw/web/src/stores/index.tsnew file mode 100644index 0000000000..929d665514--- /dev/null+++ b/jiuwenclaw/web/src/stores/index.ts@@ -0,0 +1,7 @@+/**+ * 状态管理导出+ */++export { useChatStore } from './chatStore';+export { useTodoStore } from './todoStore';+export { useSessionStore } from './sessionStore';diff --git a/jiuwenclaw/web/src/stores/sessionStore.ts b/jiuwenclaw/web/src/stores/sessionStore.tsnew file mode 100644index 0000000000..8ff7b242a0--- /dev/null+++ b/jiuwenclaw/web/src/stores/sessionStore.ts@@ -0,0 +1,254 @@+/**+ * 会话状态管理+ */++import { create } from 'zustand';+import { Session, AgentMode, WebConnectionState } from '../types';++const DEFAULT_MODE: AgentMode = 'plan';++function normalizeAgentMode(mode: unknown): AgentMode {+ if (typeof mode !== 'string') return DEFAULT_MODE;+ const normalized = mode.trim().toLowerCase();+ return normalized === 'agent' ? 'agent' : 'plan';+}++function normalizeSession(session: Session): Session {+ return {+ ...session,+ mode: normalizeAgentMode(session.mode),+ };+}++interface ConnectionStats {+ state: WebConnectionState;+ inflight: number;+ lastError: string | null;+}++type HeartbeatState = 'unknown' | 'ok' | 'alert';++interface HeartbeatHistoryItem {+ message: string;+ updatedAt: string;+ status: HeartbeatState;+}++interface MemoryUsage {+ rssMb: number | null;+ usedPercent: number | null;+}++interface ContextCompressionStats {+ rate: number;+ beforeCompressed: number | null;+ afterCompressed: number | null;+}++interface SessionState {+ currentSession: Session | null;+ sessions: Session[];+ mode: AgentMode;+ isConnected: boolean;+ availableTools: string[];+ connectionStats: ConnectionStats;+ contextCompressionRate: number;+ contextCompressionBefore: number | null;+ contextCompressionAfter: number | null;+ memoryUsage: MemoryUsage;+ heartbeatState: HeartbeatState;+ heartbeatMessage: string | null;+ heartbeatUpdatedAt: string | null;+ heartbeatHistory: HeartbeatHistoryItem[];++ // Actions+ setCurrentSession: (session: Session | null) => void;+ setSessions: (sessions: Session[]) => void;+ addSession: (session: Session) => void;+ updateSession: (sessionId: string, updates: Partial<Session>) => void;+ removeSession: (sessionId: string) => void;+ setMode: (mode: AgentMode) => void;+ setConnected: (connected: boolean) => void;+ setAvailableTools: (tools: string[]) => void;+ setConnectionStats: (stats: Partial<ConnectionStats>) => void;+ setContextCompressionRate: (rate: number) => void;+ setContextCompressionStats: (stats: Partial<ContextCompressionStats> | null) => void;+ setMemoryUsage: (memoryUsage: Partial<MemoryUsage> | null) => void;+ setHeartbeatStatus: (+ status: HeartbeatState,+ message?: string | null,+ updatedAt?: string | null+ ) => void;+}++export const useSessionStore = create<SessionState>((set) => ({+ currentSession: null,+ sessions: [],+ mode: DEFAULT_MODE,+ isConnected: false,+ availableTools: [],+ connectionStats: {+ state: 'idle',+ inflight: 0,+ lastError: null,+ },+ contextCompressionRate: 0,+ contextCompressionBefore: null,+ contextCompressionAfter: null,+ memoryUsage: {+ rssMb: null,+ usedPercent: null,+ },+ heartbeatState: 'unknown',+ heartbeatMessage: null,+ heartbeatUpdatedAt: null,+ heartbeatHistory: [],++ setCurrentSession: (session) => {+ const normalizedSession = session ? normalizeSession(session) : null;+ set({+ currentSession: normalizedSession,+ mode: normalizedSession?.mode || DEFAULT_MODE,+ });+ },++ setSessions: (sessions) => {+ set({ sessions: sessions.map(normalizeSession) });+ },++ addSession: (session) => {+ set((state) => ({+ sessions: [normalizeSession(session), ...state.sessions],+ }));+ },++ updateSession: (sessionId, updates) => {+ const normalizedUpdates =+ Object.prototype.hasOwnProperty.call(updates, 'mode')+ ? { ...updates, mode: normalizeAgentMode((updates as { mode?: unknown }).mode) }+ : updates;+ set((state) => ({+ sessions: state.sessions.map((s) =>+ s.session_id === sessionId ? normalizeSession({ ...s, ...normalizedUpdates }) : s+ ),+ currentSession:+ state.currentSession?.session_id === sessionId+ ? normalizeSession({ ...state.currentSession, ...normalizedUpdates })+ : state.currentSession,+ }));+ },++ removeSession: (sessionId) => {+ set((state) => ({+ sessions: state.sessions.filter((s) => s.session_id !== sessionId),+ currentSession:+ state.currentSession?.session_id === sessionId+ ? null+ : state.currentSession,+ }));+ },++ setMode: (mode) => {+ set({ mode: normalizeAgentMode(mode) });+ },++ setConnected: (connected) => {+ set({ isConnected: connected });+ },++ setAvailableTools: (tools) => {+ set({ availableTools: tools });+ },++ setConnectionStats: (stats) => {+ set((state) => ({+ connectionStats: {+ ...state.connectionStats,+ ...stats,+ },+ }));+ },++ setContextCompressionRate: (rate) => {+ const normalizedRate = Number.isFinite(rate) ? Math.min(Math.max(rate, 0), 100) : 0;+ set({ contextCompressionRate: Number(normalizedRate.toFixed(1)) });+ },++ setContextCompressionStats: (stats) => {+ if (!stats) {+ set({+ contextCompressionRate: 0,+ contextCompressionBefore: null,+ contextCompressionAfter: null,+ });+ return;+ }++ const normalizedRate =+ typeof stats.rate === 'number' && Number.isFinite(stats.rate)+ ? Number(Math.min(Math.max(stats.rate, 0), 100).toFixed(1))+ : 0;+ const normalizedBefore =+ typeof stats.beforeCompressed === 'number' && Number.isFinite(stats.beforeCompressed)+ ? Math.max(Math.round(stats.beforeCompressed), 0)+ : null;+ const normalizedAfter =+ typeof stats.afterCompressed === 'number' && Number.isFinite(stats.afterCompressed)+ ? Math.max(Math.round(stats.afterCompressed), 0)+ : null;++ set({+ contextCompressionRate: normalizedRate,+ contextCompressionBefore: normalizedBefore,+ contextCompressionAfter: normalizedAfter,+ });+ },++ setMemoryUsage: (memoryUsage) => {+ if (!memoryUsage) {+ set({+ memoryUsage: {+ rssMb: null,+ usedPercent: null,+ },+ });+ return;+ }++ const normalizedRssMb =+ typeof memoryUsage.rssMb === 'number' && Number.isFinite(memoryUsage.rssMb)+ ? Number(Math.max(memoryUsage.rssMb, 0).toFixed(1))+ : null;+ const normalizedUsedPercent =+ typeof memoryUsage.usedPercent === 'number' && Number.isFinite(memoryUsage.usedPercent)+ ? Number(Math.min(Math.max(memoryUsage.usedPercent, 0), 100).toFixed(1))+ : null;++ set({+ memoryUsage: {+ rssMb: normalizedRssMb,+ usedPercent: normalizedUsedPercent,+ },+ });+ },++ setHeartbeatStatus: (status, message = null, updatedAt) => {+ set((state) => {+ const resolvedUpdatedAt = updatedAt === undefined ? new Date().toISOString() : updatedAt;+ const shouldClearHistory = message == null && updatedAt === null;+ const nextHistory = shouldClearHistory+ ? []+ : (message+ ? [{ message, updatedAt: resolvedUpdatedAt ?? new Date().toISOString(), status }, ...state.heartbeatHistory]+ .slice(0, 20)+ : state.heartbeatHistory);++ return {+ heartbeatState: status,+ heartbeatMessage: message,+ heartbeatUpdatedAt: resolvedUpdatedAt,+ heartbeatHistory: nextHistory,+ };+ });+ },+}));diff --git a/jiuwenclaw/web/src/stores/todoStore.ts b/jiuwenclaw/web/src/stores/todoStore.tsnew file mode 100644index 0000000000..07e320e135--- /dev/null+++ b/jiuwenclaw/web/src/stores/todoStore.ts@@ -0,0 +1,62 @@+/**+ * Todo 状态管理+ */++import { create } from 'zustand';+import { TodoItem, TodoStatus } from '../types';++interface TodoState {+ todos: TodoItem[];++ // Actions+ setTodos: (todos: TodoItem[]) => void;+ addTodo: (todo: TodoItem) => void;+ updateTodo: (id: string, updates: Partial<TodoItem>) => void;+ updateTodoStatus: (id: string, status: TodoStatus) => void;+ removeTodo: (id: string) => void;+ clearTodos: () => void;+}++export const useTodoStore = create<TodoState>((set) => ({+ todos: [],++ setTodos: (todos) => {+ set({ todos });+ },++ addTodo: (todo) => {+ set((state) => ({+ todos: [...state.todos, todo],+ }));+ },++ updateTodo: (id, updates) => {+ set((state) => ({+ todos: state.todos.map((todo) =>+ todo.id === id || todo.id.startsWith(id)+ ? { ...todo, ...updates, updatedAt: new Date().toISOString() }+ : todo+ ),+ }));+ },++ updateTodoStatus: (id, status) => {+ set((state) => ({+ todos: state.todos.map((todo) =>+ todo.id === id || todo.id.startsWith(id)+ ? { ...todo, status, updatedAt: new Date().toISOString() }+ : todo+ ),+ }));+ },++ removeTodo: (id) => {+ set((state) => ({+ todos: state.todos.filter((todo) => todo.id !== id && !todo.id.startsWith(id)),+ }));+ },++ clearTodos: () => {+ set({ todos: [] });+ },+}));diff --git a/jiuwenclaw/web/src/types/index.ts b/jiuwenclaw/web/src/types/index.tsnew file mode 100644index 0000000000..93b6ecde01--- /dev/null+++ b/jiuwenclaw/web/src/types/index.ts@@ -0,0 +1,40 @@+/**+ * 类型导出+ */++export * from './message';+export * from './todo';+export * from './websocket';++// 会话类型+export interface Session {+ session_id: string;+ title: string;+ project_path: string;+ mode: AgentMode;+ status: SessionStatus;+ message_count: number;+ created_at: string;+ updated_at: string;+ is_active?: boolean;+ is_processing?: boolean;+ current_task?: string;+ tools?: string[];+}++export type AgentMode = 'agent' | 'plan';+export type SessionStatus = 'active' | 'paused' | 'completed' | 'interrupted';++export interface OffloadFileListResponse {+ session_id: string;+ files: string[];+ path: string;+ total: number;+}++export interface OffloadFileContentResponse {+ session_id: string;+ filename: string;+ content: string;+ path: string;+}diff --git a/jiuwenclaw/web/src/types/message.ts b/jiuwenclaw/web/src/types/message.tsnew file mode 100644index 0000000000..25fb700920--- /dev/null+++ b/jiuwenclaw/web/src/types/message.ts@@ -0,0 +1,65 @@+/**+ * 消息类型定义+ */++export type MessageRole = 'user' | 'assistant' | 'system' | 'tool';++export interface MediaItem {+ type: 'image' | 'audio' | 'video' | 'document';+ mimeType: string;+ filename: string;+ base64Data?: string;+ url?: string;+}++export interface Message {+ id: string;+ role: MessageRole;+ content: string;+ timestamp: string;+ audioBase64?: string;+ audioMime?: string;+ mediaItems?: MediaItem[];+ // 工具调用相关+ toolCall?: ToolCall;+ toolResult?: ToolResult;+ // 是否正在流式输出+ isStreaming?: boolean;+}++export interface ToolCall {+ id: string;+ name: string;+ arguments: Record<string, unknown>;+ description?: string; // 操作描述,如 "创建 3 个任务"+ formatted_args?: string; // 格式化参数摘要+}++export interface ToolResult {+ toolName: string;+ result: string;+ success: boolean;+ toolCallId?: string;+ summary?: string; // 结果摘要+}++export type ToolExecutionStatus = 'pending' | 'timeout' | 'completed' | 'error';++export interface ToolExecution {+ toolCallId: string;+ toolCall: ToolCall;+ result?: ToolResult;+ status: ToolExecutionStatus;+ startedAt: string;+ updatedAt: string;+ timeoutAt: string;+ timedOutAt?: string;+ resultArrivedAfterTimeout?: boolean;+}++export interface Conversation {+ id: string;+ messages: Message[];+ createdAt: string;+ updatedAt: string;+}diff --git a/jiuwenclaw/web/src/types/todo.ts b/jiuwenclaw/web/src/types/todo.tsnew file mode 100644index 0000000000..279c373ccb--- /dev/null+++ b/jiuwenclaw/web/src/types/todo.ts@@ -0,0 +1,14 @@+/**+ * Todo 类型定义+ */++export type TodoStatus = 'pending' | 'in_progress' | 'completed';++export interface TodoItem {+ id: string;+ content: string;+ activeForm: string;+ status: TodoStatus;+ createdAt: string;+ updatedAt: string;+}diff --git a/jiuwenclaw/web/src/types/websocket.ts b/jiuwenclaw/web/src/types/websocket.tsnew file mode 100644index 0000000000..a539faefb9--- /dev/null+++ b/jiuwenclaw/web/src/types/websocket.ts@@ -0,0 +1,152 @@+/**+ * WebSocket 消息类型+ */++export type WebConnectionState =+ | 'idle'+ | 'connecting'+ | 'ready'+ | 'reconnecting'+ | 'closed';++export interface WsRequest {+ type: 'req';+ id: string;+ method: string;+ params?: Record<string, unknown>;+}++export interface WsResponse {+ type: 'res';+ id: string;+ ok: boolean;+ payload?: unknown;+ error?: string;+ code?: string;+}++export interface WsEvent {+ type: 'event';+ event: string;+ payload: Record<string, unknown>;+ seq?: number;+ stream_id?: string;+}++export type WebMessage = WsRequest | WsResponse | WsEvent;++export interface WebRequestOptions {+ timeoutMs?: number;+ signal?: AbortSignal;+}++export interface WebConnectOptions {+ provider?: string;+ apiKey?: string;+ apiBase?: string;+ model?: string;+ projectPath?: string;+}++export interface WebError extends Error {+ code?: string;+ requestId?: string;+ retriable?: boolean;+}++export interface ConnectionAckPayload {+ session_id?: string;+ mode?: string;+ tools?: string[];+ protocol_version?: string;+}++export interface ProcessingStatusPayload {+ is_processing: boolean;+ current_task?: string;+}++export interface ErrorPayload {+ error: string;+ code?: string;+ recoverable: boolean;+}++/**+ * 中断意图类型+ */+export type InterruptIntent = 'pause' | 'cancel' | 'supplement' | 'resume';++/**+ * 中断结果 Payload+ */+export interface InterruptResultPayload {+ intent: InterruptIntent;+ success: boolean;+ message: string;+ new_input?: string;+ merged_input?: string;+ paused_task?: string;+}++/**+ * 子任务状态类型+ */+export type SubtaskStatus = 'starting' | 'tool_call' | 'tool_result' | 'completed' | 'error';++/**+ * 子任务更新 Payload+ */+export interface SubtaskUpdatePayload {+ task_id: string;+ description: string;+ status: SubtaskStatus;+ index: number;+ total: number;+ tool_name?: string;+ tool_count?: number;+ message?: string;+ is_parallel?: boolean;+}++/**+ * 问题选项+ */+export interface QuestionOption {+ label: string;+ description?: string;+}++/**+ * 问题定义+ */+export interface Question {+ question: string;+ header: string;+ options: QuestionOption[];+ multi_select?: boolean;+}++/**+ * 用户问题请求 Payload(服务端 -> 客户端)+ */+export interface AskUserQuestionPayload {+ request_id: string;+ questions: Question[];+}++/**+ * 用户回答+ */+export interface UserAnswer {+ selected_options: string[];+ custom_input?: string;+}++/**+ * 用户回答 Payload(客户端 -> 服务端)+ */+export interface UserAnswerPayload {+ request_id: string;+ answers: UserAnswer[];+}diff --git a/jiuwenclaw/web/src/utils/env.ts b/jiuwenclaw/web/src/utils/env.tsnew file mode 100644index 0000000000..5efdfdb71e--- /dev/null+++ b/jiuwenclaw/web/src/utils/env.ts@@ -0,0 +1,22 @@+/**+ * 环境变量工具+ *+ * 用于在前端配置后端 API/WS 地址+ */+function normalizeBase(input: string): string {+ return input.replace(/\/+$/, "");+}++export function getApiBase(): string {+ const raw = import.meta.env.VITE_API_BASE as string | undefined;+ if (!raw) return "";+ return normalizeBase(raw);+}++export function getWsBase(): string {+ const raw = import.meta.env.VITE_WS_BASE as string | undefined;+ if (raw) return normalizeBase(raw);+ const apiBase = getApiBase();+ if (!apiBase) return "";+ return apiBase.replace(/^http:/, "ws:").replace(/^https:/, "wss:");+}diff --git a/jiuwenclaw/web/src/utils/formatters.ts b/jiuwenclaw/web/src/utils/formatters.tsnew file mode 100644index 0000000000..be84c02367--- /dev/null+++ b/jiuwenclaw/web/src/utils/formatters.ts@@ -0,0 +1,73 @@+/**+ * 格式化工具函数+ */++/**+ * 格式化时间戳+ */+export function formatTimestamp(timestamp: string): string {+ const date = new Date(timestamp);+ return date.toLocaleTimeString('zh-CN', {+ hour: '2-digit',+ minute: '2-digit',+ second: '2-digit',+ });+}++/**+ * 格式化日期+ */+export function formatDate(timestamp: string): string {+ const date = new Date(timestamp);+ return date.toLocaleDateString('zh-CN', {+ year: 'numeric',+ month: '2-digit',+ day: '2-digit',+ });+}++/**+ * 格式化相对时间+ */+export function formatRelativeTime(timestamp: string): string {+ const date = new Date(timestamp);+ const now = new Date();+ const diff = now.getTime() - date.getTime();++ const seconds = Math.floor(diff / 1000);+ const minutes = Math.floor(seconds / 60);+ const hours = Math.floor(minutes / 60);+ const days = Math.floor(hours / 24);++ if (days > 0) return `${days}天前`;+ if (hours > 0) return `${hours}小时前`;+ if (minutes > 0) return `${minutes}分钟前`;+ return '刚刚';+}++/**+ * 截断文本+ */+export function truncateText(text: string, maxLength: number): string {+ if (text.length <= maxLength) return text;+ return text.slice(0, maxLength) + '...';+}++/**+ * 格式化工具参数+ */+export function formatToolArguments(args: Record<string, unknown>): string {+ try {+ return JSON.stringify(args, null, 2);+ } catch {+ return String(args);+ }+}++/**+ * 格式化工具结果(截断长结果)+ */+export function formatToolResult(result: string, maxLength = 500): string {+ if (result.length <= maxLength) return result;+ return result.slice(0, maxLength) + '\n... (结果已截断)';+}diff --git a/jiuwenclaw/web/src/utils/index.ts b/jiuwenclaw/web/src/utils/index.tsnew file mode 100644index 0000000000..9dc72aa5b9--- /dev/null+++ b/jiuwenclaw/web/src/utils/index.ts@@ -0,0 +1,7 @@+/**+ * 工具函数导出+ */++export * from './formatters';+export * from './env';+export * from './tts';diff --git a/jiuwenclaw/web/src/utils/tts.ts b/jiuwenclaw/web/src/utils/tts.tsnew file mode 100644index 0000000000..f2e2bf8a8a--- /dev/null+++ b/jiuwenclaw/web/src/utils/tts.ts@@ -0,0 +1,139 @@+/**+ * TTS 相关工具函数+ */++import { webRequest } from '../services/webClient';++interface TtsResponse {+ success: boolean;+ audio_base64?: string;+ audio_mime?: string;+ error?: string;+}++const TTS_STOP_EVENT = 'jiuwen-tts-stop';+const CODE_BLOCK_RE = /```[\s\S]*?```/g;+const INLINE_CODE_RE = /`[^`]+`/g;+const MEDIA_BRACE_RE = /MEDIA:\{[^}]*\}/gi;+const MEDIA_SIMPLE_RE = /MEDIA:\S+/gi;+const URL_RE = /https?:\/\/\S+/g;+const WWW_RE = /www\.\S+/g;+const WIN_PATH_RE = /[A-Za-z]:\\[^\s]+/g;+const UNIX_PATH_RE = /(?:~|\/)(?:[^\s/]+\/)+[^\s/]*/g;+const QUOTE_BRACE_RE = /['"{}]/g;+const MULTI_NEWLINE_RE = /\n+/g;+const MULTI_PUNCT_RE = /。{2,}/g;+const MULTI_SPACE_RE = /\s{2,}/g;+const TRIM_EDGE_RE = /^[\s。::]+|[\s。::]+$/g;++export function sanitizeTtsText(+ input: string,+ maxLength = 500+): string {+ if (!input) {+ return '';+ }++ const sanitized = input+ .replace(CODE_BLOCK_RE, '代码块已省略')+ .replace(INLINE_CODE_RE, '')+ .replace(MEDIA_BRACE_RE, '')+ .replace(MEDIA_SIMPLE_RE, '')+ .replace(URL_RE, '')+ .replace(WWW_RE, '')+ .replace(WIN_PATH_RE, '')+ .replace(UNIX_PATH_RE, '')+ .replace(QUOTE_BRACE_RE, '')+ .replace(MULTI_NEWLINE_RE, '。')+ .replace(MULTI_PUNCT_RE, '。')+ .replace(MULTI_SPACE_RE, ' ')+ .replace(TRIM_EDGE_RE, '')+ .slice(0, maxLength)+ .trim();++ return sanitized;+}++// 全局音频实例,用于打断控制+let globalAudio: HTMLAudioElement | null = null;++export function stopGlobalAudio(): void {+ if (globalAudio) {+ globalAudio.pause();+ globalAudio.currentTime = 0;+ globalAudio = null;+ }+}++export function stopAllTts(): void {+ stopGlobalAudio();++ if (typeof window !== 'undefined' && 'speechSynthesis' in window) {+ window.speechSynthesis.cancel();+ }++ if (typeof window !== 'undefined') {+ window.dispatchEvent(new Event(TTS_STOP_EVENT));+ }+}++export function onTtsStop(handler: () => void): () => void {+ if (typeof window === 'undefined') {+ return () => {};+ }++ window.addEventListener(TTS_STOP_EVENT, handler);+ return () => window.removeEventListener(TTS_STOP_EVENT, handler);+}++export async function fetchTtsAudio(+ text: string,+ sessionId?: string,+ signal?: AbortSignal+): Promise<TtsResponse | null> {+ const trimmed = text.trim();+ if (!trimmed) {+ return null;+ }++ try {+ const params: Record<string, unknown> = { text: trimmed };+ if (sessionId) {+ params.session_id = sessionId;+ }+ const response = await webRequest<TtsResponse>('tts.synthesize', params, {+ signal,+ });+ return response;+ } catch (error) {+ console.warn('TTS 请求失败:', error);+ return null;+ }+}++export async function playAudioBase64(+ audioBase64: string,+ mimeType = 'audio/mpeg'+): Promise<boolean> {+ if (!audioBase64) {+ return false;+ }++ // 先停止正在播放的音频+ stopGlobalAudio();++ try {+ const audio = new Audio(`data:${mimeType};base64,${audioBase64}`);+ globalAudio = audio;+ audio.onended = () => {+ if (globalAudio === audio) {+ globalAudio = null;+ }+ };+ await audio.play();+ return true;+ } catch (error) {+ console.warn('播放音频失败:', error);+ return false;+ }+}diff --git a/jiuwenclaw/web/src/vite-env.d.ts b/jiuwenclaw/web/src/vite-env.d.tsnew file mode 100644index 0000000000..81d5f3aaeb--- /dev/null+++ b/jiuwenclaw/web/src/vite-env.d.ts@@ -0,0 +1,10 @@+/// <reference types="vite/client" />++interface ImportMetaEnv {+ readonly VITE_API_BASE?: string;+ readonly VITE_WS_BASE?: string;+}++interface ImportMeta {+ readonly env: ImportMetaEnv;+}diff --git a/jiuwenclaw/web/tailwind.config.js b/jiuwenclaw/web/tailwind.config.jsnew file mode 100644index 0000000000..6f0645770a--- /dev/null+++ b/jiuwenclaw/web/tailwind.config.js@@ -0,0 +1,139 @@+import typography from '@tailwindcss/typography';++/** @type {import('tailwindcss').Config} */+export default {+ content: [+ "./index.html",+ "./src/**/*.{js,ts,jsx,tsx}",+ ],+ theme: {+ extend: {+ colors: {+ // CSS variable based colors for JiuwenClaw design system+ bg: {+ DEFAULT: 'var(--bg)',+ accent: 'var(--bg-accent)',+ elevated: 'var(--bg-elevated)',+ hover: 'var(--bg-hover)',+ muted: 'var(--bg-muted)',+ content: 'var(--bg-content)',+ },+ card: {+ DEFAULT: 'var(--card)',+ foreground: 'var(--card-foreground)',+ },+ panel: {+ DEFAULT: 'var(--panel)',+ strong: 'var(--panel-strong)',+ hover: 'var(--panel-hover)',+ },+ text: {+ DEFAULT: 'var(--text)',+ strong: 'var(--text-strong)',+ muted: 'var(--muted)',+ },+ border: {+ DEFAULT: 'var(--border)',+ strong: 'var(--border-strong)',+ hover: 'var(--border-hover)',+ accent: 'var(--border-accent)',+ },+ accent: {+ DEFAULT: 'var(--accent)',+ hover: 'var(--accent-hover)',+ subtle: 'var(--accent-subtle)',+ foreground: 'var(--accent-foreground)',+ },+ secondary: {+ DEFAULT: 'var(--secondary)',+ foreground: 'var(--secondary-foreground)',+ },+ // Semantic colors+ ok: {+ DEFAULT: 'var(--ok)',+ subtle: 'var(--ok-subtle)',+ },+ warn: {+ DEFAULT: 'var(--warn)',+ subtle: 'var(--warn-subtle)',+ },+ danger: {+ DEFAULT: 'var(--danger)',+ subtle: 'var(--danger-subtle)',+ },+ info: 'var(--info)',+ muted: {+ DEFAULT: 'var(--muted)',+ foreground: 'var(--muted-foreground)',+ strong: 'var(--muted-strong)',+ },+ },+ fontFamily: {+ body: ['var(--font-body)'],+ display: ['var(--font-display)'],+ mono: ['var(--mono)'],+ },+ borderRadius: {+ sm: 'var(--radius-sm)',+ md: 'var(--radius-md)',+ lg: 'var(--radius-lg)',+ xl: 'var(--radius-xl)',+ full: 'var(--radius-full)',+ },+ boxShadow: {+ sm: 'var(--shadow-sm)',+ md: 'var(--shadow-md)',+ lg: 'var(--shadow-lg)',+ xl: 'var(--shadow-xl)',+ glow: 'var(--shadow-glow)',+ focus: 'var(--focus-ring)',+ },+ transitionTimingFunction: {+ out: 'var(--ease-out)',+ 'in-out': 'var(--ease-in-out)',+ spring: 'var(--ease-spring)',+ },+ transitionDuration: {+ fast: 'var(--duration-fast)',+ normal: 'var(--duration-normal)',+ slow: 'var(--duration-slow)',+ },+ animation: {+ 'pulse-slow': 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',+ 'cursor-blink': 'blink 1s step-end infinite',+ rise: 'rise 0.35s var(--ease-out) backwards',+ 'fade-in': 'fade-in 0.2s ease-out forwards',+ 'scale-in': 'scale-in 0.2s var(--ease-out)',+ 'glow-pulse': 'glow-pulse 2s ease-in-out infinite',+ 'stream-pulse': 'chatStreamPulse 1.5s ease-in-out infinite',+ },+ keyframes: {+ blink: {+ '0%, 100%': { opacity: '1' },+ '50%': { opacity: '0' },+ },+ rise: {+ from: { opacity: '0', transform: 'translateY(8px)' },+ to: { opacity: '1', transform: 'translateY(0)' },+ },+ 'fade-in': {+ from: { opacity: '0' },+ to: { opacity: '1' },+ },+ 'scale-in': {+ from: { opacity: '0', transform: 'scale(0.95)' },+ to: { opacity: '1', transform: 'scale(1)' },+ },+ },+ spacing: {+ 'shell-pad': 'var(--shell-pad)',+ 'shell-gap': 'var(--shell-gap)',+ 'shell-nav': 'var(--shell-nav-width)',+ 'shell-topbar': 'var(--shell-topbar-height)',+ },+ },+ },+ plugins: [+ typography,+ ],+}diff --git a/jiuwenclaw/web/tsconfig.json b/jiuwenclaw/web/tsconfig.jsonnew file mode 100644index 0000000000..741bd42ae1--- /dev/null+++ b/jiuwenclaw/web/tsconfig.json@@ -0,0 +1,32 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "useDefineForClassFields": true,+ "lib": ["ES2020", "DOM", "DOM.Iterable"],+ "module": "ESNext",+ "skipLibCheck": true,++ /* Bundler mode */+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "resolveJsonModule": true,+ "isolatedModules": true,+ "noEmit": true,+ "jsx": "react-jsx",+ "types": ["vite/client"],++ /* Linting */+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true,++ /* Paths */+ "baseUrl": ".",+ "paths": {+ "@/*": ["src/*"]+ }+ },+ "include": ["src"],+ "references": [{ "path": "./tsconfig.node.json" }]+}diff --git a/jiuwenclaw/web/tsconfig.node.json b/jiuwenclaw/web/tsconfig.node.jsonnew file mode 100644index 0000000000..3921d35045--- /dev/null+++ b/jiuwenclaw/web/tsconfig.node.json@@ -0,0 +1,12 @@+{+ "compilerOptions": {+ "composite": true,+ "skipLibCheck": true,+ "module": "ESNext",+ "moduleResolution": "bundler",+ "types": ["node"],+ "allowSyntheticDefaultImports": true,+ "strict": true+ },+ "include": ["vite.config.ts"]+}diff --git a/jiuwenclaw/web/vite.config.ts b/jiuwenclaw/web/vite.config.tsnew file mode 100644index 0000000000..53201d7ff9--- /dev/null+++ b/jiuwenclaw/web/vite.config.ts@@ -0,0 +1,487 @@+import type { Plugin } from 'vite'+import { defineConfig } from 'vite'+import react from '@vitejs/plugin-react'+import { spawnSync } from 'child_process'+import path from 'path'+import fs from 'fs'++type ConfigWithLogger = { logger?: { error?: (msg: string, opts?: { error?: Error }) => void } }++interface ErrorWithCode {+ code?: string+}++function resolveProjectRootDir(): string {+ // Keep project root deterministic in source mode.+ // <repo>/jiuwenclaw/web -> <repo>+ return path.resolve(__dirname, '../..')+}++/** WS proxy 中常见的、可安全忽略的 socket 错误码(跨平台) */+const WS_PROXY_IGNORABLE_CODES = new Set([+ 'EPIPE', // 对端已关闭+ 'ECONNRESET', // 连接被重置+ 'ECONNABORTED', // 连接被中止 (Windows 常见)+ 'ECONNREFUSED', // 后端未启动 / 端口不可达+ 'ERR_STREAM_WRITE_AFTER_END',+])++/** 过滤 Vite 内置的 ws proxy socket 报错,避免控制台刷屏 */+function suppressWsProxySocketErrors(): Plugin {+ return {+ name: 'suppress-ws-proxy-socket-errors',+ config(config) {+ const logger = (config as ConfigWithLogger).logger+ if (!logger?.error) return+ const orig = logger.error.bind(logger)+ logger.error = (msg: string, opts?: unknown) => {+ if (typeof msg === 'string' && msg.includes('ws proxy socket error')) {+ const code = (opts as { error?: ErrorWithCode } | undefined)?.error?.code+ if (code && WS_PROXY_IGNORABLE_CODES.has(code)) return+ }+ orig(msg, opts as { error?: Error } | undefined)+ }+ },+ }+}++/** 在 dev 模式下将前端上报的 /ws req/res/event 记录到本地文件 */+function devWsTrafficLogger(): Plugin {+ return {+ name: 'dev-ws-traffic-logger',+ configureServer(server) {+ const projectRootDir = resolveProjectRootDir()+ const logDir = path.resolve(projectRootDir, 'logs')+ const logFile = path.resolve(logDir, 'ws-dev.log')+ fs.mkdirSync(logDir, { recursive: true })+ // 每次前端 dev 服务启动时清空日志,避免历史数据干扰排查。+ fs.writeFileSync(logFile, '', 'utf8')++ server.middlewares.use('/__dev/ws-log', (req, res) => {+ if (req.method === 'GET') {+ const url = new URL(req.url || '/__dev/ws-log', 'http://localhost')+ const limitRaw = Number(url.searchParams.get('limit') || '300')+ const limit = Number.isFinite(limitRaw) ? Math.max(1, Math.min(2000, Math.floor(limitRaw))) : 300+ fs.readFile(logFile, 'utf8', (error, content) => {+ if (error) {+ const code = (error as NodeJS.ErrnoException).code+ if (code === 'ENOENT') {+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ ok: true, entries: [], count: 0 }))+ return+ }+ server.config.logger.error(`[dev-ws-logger] read failed: ${error.message}`)+ res.statusCode = 500+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ ok: false, error: 'read_failed' }))+ return+ }+ const lines = content+ .split('\n')+ .map((line) => line.trim())+ .filter(Boolean)+ .slice(-limit)+ const entries = lines.map((line) => {+ try {+ return JSON.parse(line)+ } catch {+ return line+ }+ })+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ ok: true, entries, count: entries.length }))+ })+ return+ }++ if (req.method !== 'POST') {+ res.statusCode = 405+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ ok: false, error: 'method_not_allowed' }))+ return+ }++ let raw = ''+ req.on('data', (chunk) => {+ raw += chunk.toString()+ })+ req.on('end', () => {+ const now = new Date().toISOString()+ let payload: unknown = raw+ if (raw) {+ try {+ payload = JSON.parse(raw)+ } catch {+ payload = raw+ }+ }+ const line = `${JSON.stringify({ ts: now, payload })}\n`+ fs.appendFile(logFile, line, (error) => {+ if (error) {+ server.config.logger.error(`[dev-ws-logger] write failed: ${error.message}`)+ res.statusCode = 500+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ ok: false, error: 'write_failed' }))+ return+ }+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ ok: true }))+ })+ })+ })+ },+ }+}++/** 将文件读取接口挂到 Vite dev server,避免额外占用 3003 端口 */+function devFileContentApi(): Plugin {+ const projectRootDir = resolveProjectRootDir()+ const workspaceRootDir = path.resolve(projectRootDir, 'workspace')+ const webLogsRootDir = path.resolve(projectRootDir, 'logs')+ const generateAgentFoldersScriptPath = path.resolve(__dirname, '../scripts/generate-agent-folders.js')+ // dev 模式默认开启调试视图,与“前端 dev 即调试模式”一致。+ let wsDisableCompress = true+ const isMarkdownFile = (targetPath: string) => {+ const ext = path.extname(targetPath).toLowerCase()+ return ext === '.md' || ext === '.mdx'+ }+ const isPathUnderAllowedRoot = (targetPath: string) => {+ const relativeWorkspacePath = path.relative(workspaceRootDir, targetPath)+ const inWorkspace = !relativeWorkspacePath.startsWith('..') && !path.isAbsolute(relativeWorkspacePath)+ const relativeLogsPath = path.relative(webLogsRootDir, targetPath)+ const inWebLogs = !relativeLogsPath.startsWith('..') && !path.isAbsolute(relativeLogsPath)+ return inWorkspace || inWebLogs+ }++ return {+ name: 'dev-file-content-api',+ configureServer(server) {+ server.middlewares.use('/file-api/ws-debug-config', (req, res) => {+ if (req.method === 'GET') {+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ wsDisableCompress }))+ return+ }++ if (req.method !== 'POST') {+ res.statusCode = 405+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'method_not_allowed' }))+ return+ }++ let raw = ''+ req.on('data', (chunk) => {+ raw += chunk.toString()+ })+ req.on('end', () => {+ try {+ const payload = raw ? JSON.parse(raw) : {}+ if (typeof payload.wsDisableCompress !== 'boolean') {+ res.statusCode = 400+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'invalid_ws_disable_compress' }))+ return+ }+ wsDisableCompress = payload.wsDisableCompress+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ ok: true, wsDisableCompress }))+ } catch {+ res.statusCode = 400+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'invalid_json' }))+ }+ })+ })++ server.middlewares.use('/file-api/rebuild-agent-data', (_req, res) => {+ if (_req.method !== 'POST') {+ res.statusCode = 405+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'method_not_allowed' }))+ return+ }++ try {+ const runResult = spawnSync(process.execPath, [generateAgentFoldersScriptPath], {+ encoding: 'utf-8',+ })+ if (runResult.status !== 0) {+ const output = `${runResult.stdout || ''}\n${runResult.stderr || ''}`.trim()+ res.statusCode = 500+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'rebuild_failed', detail: output || 'unknown_error' }))+ return+ }+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ ok: true }))+ } catch (error) {+ res.statusCode = 500+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'rebuild_failed', detail: (error as Error).message }))+ }+ })++ server.middlewares.use('/file-api/list-markdown', (req, res) => {+ if (req.method !== 'GET') {+ res.statusCode = 405+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'method_not_allowed' }))+ return+ }+ const url = new URL(req.url || '/file-api/list-markdown', 'http://localhost')+ const dir = url.searchParams.get('dir')+ if (!dir) {+ res.statusCode = 400+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'missing_dir' }))+ return+ }+ try {+ const fullDirPath = path.resolve(projectRootDir, dir)+ if (!isPathUnderAllowedRoot(fullDirPath)) {+ res.statusCode = 403+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'forbidden_dir' }))+ return+ }+ if (!fs.existsSync(fullDirPath) || !fs.statSync(fullDirPath).isDirectory()) {+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ files: [] }))+ return+ }+ const files = fs+ .readdirSync(fullDirPath, { withFileTypes: true })+ .filter((entry) => entry.isFile())+ .map((entry) => entry.name)+ .filter((name) => isMarkdownFile(name))+ .sort((a, b) => a.localeCompare(b))+ .map((name) => ({+ name,+ path: path.relative(projectRootDir, path.resolve(fullDirPath, name)),+ }))+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ files }))+ } catch (error) {+ res.statusCode = 500+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: (error as Error).message }))+ }+ })++ server.middlewares.use('/file-api/list-files', (req, res) => {+ if (req.method !== 'GET') {+ res.statusCode = 405+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'method_not_allowed' }))+ return+ }+ const url = new URL(req.url || '/file-api/list-files', 'http://localhost')+ const dir = url.searchParams.get('dir')+ if (!dir) {+ res.statusCode = 400+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'missing_dir' }))+ return+ }+ try {+ const fullDirPath = path.resolve(projectRootDir, dir)+ if (!isPathUnderAllowedRoot(fullDirPath)) {+ res.statusCode = 403+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'forbidden_dir' }))+ return+ }+ if (!fs.existsSync(fullDirPath) || !fs.statSync(fullDirPath).isDirectory()) {+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ files: [] }))+ return+ }+ const files = fs+ .readdirSync(fullDirPath, { withFileTypes: true })+ .sort((a, b) => {+ if (a.isDirectory() !== b.isDirectory()) return a.isDirectory() ? -1 : 1+ return a.name.localeCompare(b.name)+ })+ .map((entry) => {+ const absolutePath = path.resolve(fullDirPath, entry.name)+ if (entry.isDirectory()) {+ return {+ name: entry.name,+ path: path.relative(projectRootDir, absolutePath),+ isMarkdown: false,+ isDirectory: true,+ }+ }+ return {+ name: entry.name,+ path: path.relative(projectRootDir, absolutePath),+ isMarkdown: isMarkdownFile(absolutePath),+ isDirectory: false,+ }+ })+ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ files }))+ } catch (error) {+ res.statusCode = 500+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: (error as Error).message }))+ }+ })++ server.middlewares.use('/file-api/file-content', (req, res) => {+ if (req.method === 'GET') {+ const url = new URL(req.url || '/file-api/file-content', 'http://localhost')+ const filePath = url.searchParams.get('path')+ if (!filePath) {+ res.statusCode = 400+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: '缺少文件路径' }))+ return+ }++ try {+ const fullPath = path.resolve(projectRootDir, filePath)+ if (!isPathUnderAllowedRoot(fullPath)) {+ res.statusCode = 403+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'forbidden_path' }))+ return+ }+ if (!fs.existsSync(fullPath)) {+ res.statusCode = 404+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: '文件不存在', fullPath }))+ return+ }++ const content = fs.readFileSync(fullPath, 'utf-8')+ res.statusCode = 200+ res.setHeader('content-type', 'text/plain; charset=utf-8')+ res.end(content)+ } catch (error) {+ res.statusCode = 500+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: (error as Error).message }))+ }+ return+ }++ if (req.method !== 'POST') {+ res.statusCode = 405+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'method_not_allowed' }))+ return+ }++ let raw = ''+ req.on('data', (chunk) => {+ raw += chunk.toString()+ })+ req.on('end', () => {+ let payload: { path?: unknown; content?: unknown } = {}+ try {+ payload = raw ? JSON.parse(raw) : {}+ } catch {+ res.statusCode = 400+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'invalid_json' }))+ return+ }++ const requestPath = payload.path+ const requestContent = payload.content+ if (typeof requestPath !== 'string' || !requestPath.trim()) {+ res.statusCode = 400+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: '缺少文件路径' }))+ return+ }+ if (typeof requestContent !== 'string') {+ res.statusCode = 400+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: '缺少文件内容' }))+ return+ }++ const fullPath = path.resolve(projectRootDir, requestPath)+ if (!isPathUnderAllowedRoot(fullPath)) {+ res.statusCode = 403+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: 'forbidden_path' }))+ return+ }+ if (!isMarkdownFile(fullPath)) {+ res.statusCode = 400+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: '仅支持保存 Markdown 文件' }))+ return+ }+ if (!fs.existsSync(fullPath)) {+ res.statusCode = 404+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: '文件不存在' }))+ return+ }++ fs.writeFile(fullPath, requestContent, 'utf-8', (error) => {+ if (error) {+ res.statusCode = 500+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ error: error.message }))+ return+ }++ res.statusCode = 200+ res.setHeader('content-type', 'application/json; charset=utf-8')+ res.end(JSON.stringify({ ok: true }))+ })+ })+ })+ },+ }+}++// https://vitejs.dev/config/+export default defineConfig({+ plugins: [suppressWsProxySocketErrors(), devWsTrafficLogger(), devFileContentApi(), react()],+ resolve: {+ alias: {+ '@': path.resolve(__dirname, './src'),+ },+ },+ server: {+ port: 5173, // 默认端口+ strictPort: true, // 强制使用 5173 端口+ proxy: {+ '/api': {+ target: 'http://127.0.0.1:19000',+ changeOrigin: true,+ },+ '/ws': {+ target: 'http://127.0.0.1:19000',+ ws: true,+ changeOrigin: true,+ configure: (proxy) => {+ proxy.on('error', (err, _req, _res) => {+ const code = (err as ErrorWithCode).code+ if (code && WS_PROXY_IGNORABLE_CODES.has(code)) {+ return+ }+ console.error('[vite] ws proxy error:', err.message)+ })+ },+ },+ },+ },+})diff --git a/pyproject.toml b/pyproject.tomlnew file mode 100644index 0000000000..5855790db0--- /dev/null+++ b/pyproject.toml@@ -0,0 +1,40 @@+[build-system]+requires = ["setuptools>=61.0"]+build-backend = "setuptools.build_meta"++[project]+name = "jiuwenclaw"+version = "0.1.0"+description = "JiuwenClaw"+requires-python = ">=3.13,<3.14"+dependencies = [+ "chromadb>=1.5.0",+ "ruamel.yaml>=0.18.0",+ "lark-oapi>=1.5.3",+ "loguru>=0.7.3",+ "openjiuwen==0.1.7",+ "pip==26.0.1",+ "pgvector>=0.4.2",+ "websockets>=12.0",+ "psutil>=7.2.2",+]++[project.scripts]+jiuwenclaw-app = "jiuwenclaw.app:main"+jiuwenclaw-web = "jiuwenclaw.app_web:main"+jiuwenclaw-start = "jiuwenclaw.start_services:main"+jiuwenclaw-init = "jiuwenclaw.init_workspace:main"++[tool.setuptools]+# 入口脚本现在是 jiuwenclaw 包内的一部分,不需要 py-modules+py-modules = []++[tool.setuptools.packages.find]+where = ["."]+include = ["jiuwenclaw*"]++[tool.setuptools.package-data]+jiuwenclaw = ["web/dist/**/*", "web/dist/*", "config/**/*", "config/*", "workspace/**/*", "workspace/*", ".env.template"]++[tool.setuptools.exclude-package-data]+jiuwenclaw = ["web/node_modules/**", "web/node_modules/*"]diff --git a/uv.lock b/uv.locknew file mode 100644index 0000000000..66ff463d32--- /dev/null+++ b/uv.lock@@ -0,0 +1,2982 @@+version = 1+revision = 3+requires-python = "==3.13.*"+resolution-markers = [+ "sys_platform == 'win32'",+ "sys_platform == 'emscripten'",+ "sys_platform != 'emscripten' and sys_platform != 'win32'",+]++[[package]]+name = "aiofiles"+version = "25.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/41/c3/534eac40372d8ee36ef40df62ec129bee4fdb5ad9706e58a29be53b2c970/aiofiles-25.1.0.tar.gz", hash = "sha256:a8d728f0a29de45dc521f18f07297428d56992a742f0cd2701ba86e44d23d5b2", size = 46354, upload-time = "2025-10-09T20:51:04.358Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bc/8a/340a1555ae33d7354dbca4faa54948d76d89a27ceef032c8c3bc661d003e/aiofiles-25.1.0-py3-none-any.whl", hash = "sha256:abe311e527c862958650f9438e859c1fa7568a141b22abcd015e120e86a85695", size = 14668, upload-time = "2025-10-09T20:51:03.174Z" },+]++[[package]]+name = "aiohappyeyeballs"+version = "2.6.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/26/30/f84a107a9c4331c14b2b586036f40965c128aa4fee4dda5d3d51cb14ad54/aiohappyeyeballs-2.6.1.tar.gz", hash = "sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558", size = 22760, upload-time = "2025-03-12T01:42:48.764Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0f/15/5bf3b99495fb160b63f95972b81750f18f7f4e02ad051373b669d17d44f2/aiohappyeyeballs-2.6.1-py3-none-any.whl", hash = "sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8", size = 15265, upload-time = "2025-03-12T01:42:47.083Z" },+]++[[package]]+name = "aiohttp"+version = "3.13.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohappyeyeballs" },+ { name = "aiosignal" },+ { name = "attrs" },+ { name = "frozenlist" },+ { name = "multidict" },+ { name = "propcache" },+ { name = "yarl" },+]+sdist = { url = "https://files.pythonhosted.org/packages/50/42/32cf8e7704ceb4481406eb87161349abb46a57fee3f008ba9cb610968646/aiohttp-3.13.3.tar.gz", hash = "sha256:a949eee43d3782f2daae4f4a2819b2cb9b0c5d3b7f7a927067cc84dafdbb9f88", size = 7844556, upload-time = "2026-01-03T17:33:05.204Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/97/8a/12ca489246ca1faaf5432844adbfce7ff2cc4997733e0af120869345643a/aiohttp-3.13.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:5dff64413671b0d3e7d5918ea490bdccb97a4ad29b3f311ed423200b2203e01c", size = 734190, upload-time = "2026-01-03T17:30:45.832Z" },+ { url = "https://files.pythonhosted.org/packages/32/08/de43984c74ed1fca5c014808963cc83cb00d7bb06af228f132d33862ca76/aiohttp-3.13.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:87b9aab6d6ed88235aa2970294f496ff1a1f9adcd724d800e9b952395a80ffd9", size = 491783, upload-time = "2026-01-03T17:30:47.466Z" },+ { url = "https://files.pythonhosted.org/packages/17/f8/8dd2cf6112a5a76f81f81a5130c57ca829d101ad583ce57f889179accdda/aiohttp-3.13.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:425c126c0dc43861e22cb1c14ba4c8e45d09516d0a3ae0a3f7494b79f5f233a3", size = 490704, upload-time = "2026-01-03T17:30:49.373Z" },+ { url = "https://files.pythonhosted.org/packages/6d/40/a46b03ca03936f832bc7eaa47cfbb1ad012ba1be4790122ee4f4f8cba074/aiohttp-3.13.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7f9120f7093c2a32d9647abcaf21e6ad275b4fbec5b55969f978b1a97c7c86bf", size = 1720652, upload-time = "2026-01-03T17:30:50.974Z" },+ { url = "https://files.pythonhosted.org/packages/f7/7e/917fe18e3607af92657e4285498f500dca797ff8c918bd7d90b05abf6c2a/aiohttp-3.13.3-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:697753042d57f4bf7122cab985bf15d0cef23c770864580f5af4f52023a56bd6", size = 1692014, upload-time = "2026-01-03T17:30:52.729Z" },+ { url = "https://files.pythonhosted.org/packages/71/b6/cefa4cbc00d315d68973b671cf105b21a609c12b82d52e5d0c9ae61d2a09/aiohttp-3.13.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6de499a1a44e7de70735d0b39f67c8f25eb3d91eb3103be99ca0fa882cdd987d", size = 1759777, upload-time = "2026-01-03T17:30:54.537Z" },+ { url = "https://files.pythonhosted.org/packages/fb/e3/e06ee07b45e59e6d81498b591fc589629be1553abb2a82ce33efe2a7b068/aiohttp-3.13.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:37239e9f9a7ea9ac5bf6b92b0260b01f8a22281996da609206a84df860bc1261", size = 1861276, upload-time = "2026-01-03T17:30:56.512Z" },+ { url = "https://files.pythonhosted.org/packages/7c/24/75d274228acf35ceeb2850b8ce04de9dd7355ff7a0b49d607ee60c29c518/aiohttp-3.13.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f76c1e3fe7d7c8afad7ed193f89a292e1999608170dcc9751a7462a87dfd5bc0", size = 1743131, upload-time = "2026-01-03T17:30:58.256Z" },+ { url = "https://files.pythonhosted.org/packages/04/98/3d21dde21889b17ca2eea54fdcff21b27b93f45b7bb94ca029c31ab59dc3/aiohttp-3.13.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fc290605db2a917f6e81b0e1e0796469871f5af381ce15c604a3c5c7e51cb730", size = 1556863, upload-time = "2026-01-03T17:31:00.445Z" },+ { url = "https://files.pythonhosted.org/packages/9e/84/da0c3ab1192eaf64782b03971ab4055b475d0db07b17eff925e8c93b3aa5/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4021b51936308aeea0367b8f006dc999ca02bc118a0cc78c303f50a2ff6afb91", size = 1682793, upload-time = "2026-01-03T17:31:03.024Z" },+ { url = "https://files.pythonhosted.org/packages/ff/0f/5802ada182f575afa02cbd0ec5180d7e13a402afb7c2c03a9aa5e5d49060/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:49a03727c1bba9a97d3e93c9f93ca03a57300f484b6e935463099841261195d3", size = 1716676, upload-time = "2026-01-03T17:31:04.842Z" },+ { url = "https://files.pythonhosted.org/packages/3f/8c/714d53bd8b5a4560667f7bbbb06b20c2382f9c7847d198370ec6526af39c/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:3d9908a48eb7416dc1f4524e69f1d32e5d90e3981e4e37eb0aa1cd18f9cfa2a4", size = 1733217, upload-time = "2026-01-03T17:31:06.868Z" },+ { url = "https://files.pythonhosted.org/packages/7d/79/e2176f46d2e963facea939f5be2d26368ce543622be6f00a12844d3c991f/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:2712039939ec963c237286113c68dbad80a82a4281543f3abf766d9d73228998", size = 1552303, upload-time = "2026-01-03T17:31:08.958Z" },+ { url = "https://files.pythonhosted.org/packages/ab/6a/28ed4dea1759916090587d1fe57087b03e6c784a642b85ef48217b0277ae/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:7bfdc049127717581866fa4708791220970ce291c23e28ccf3922c700740fdc0", size = 1763673, upload-time = "2026-01-03T17:31:10.676Z" },+ { url = "https://files.pythonhosted.org/packages/e8/35/4a3daeb8b9fab49240d21c04d50732313295e4bd813a465d840236dd0ce1/aiohttp-3.13.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8057c98e0c8472d8846b9c79f56766bcc57e3e8ac7bfd510482332366c56c591", size = 1721120, upload-time = "2026-01-03T17:31:12.575Z" },+ { url = "https://files.pythonhosted.org/packages/bc/9f/d643bb3c5fb99547323e635e251c609fbbc660d983144cfebec529e09264/aiohttp-3.13.3-cp313-cp313-win32.whl", hash = "sha256:1449ceddcdbcf2e0446957863af03ebaaa03f94c090f945411b61269e2cb5daf", size = 427383, upload-time = "2026-01-03T17:31:14.382Z" },+ { url = "https://files.pythonhosted.org/packages/4e/f1/ab0395f8a79933577cdd996dd2f9aa6014af9535f65dddcf88204682fe62/aiohttp-3.13.3-cp313-cp313-win_amd64.whl", hash = "sha256:693781c45a4033d31d4187d2436f5ac701e7bbfe5df40d917736108c1cc7436e", size = 453899, upload-time = "2026-01-03T17:31:15.958Z" },+]++[[package]]+name = "aiosignal"+version = "1.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "frozenlist" },+]+sdist = { url = "https://files.pythonhosted.org/packages/61/62/06741b579156360248d1ec624842ad0edf697050bbaf7c3e46394e106ad1/aiosignal-1.4.0.tar.gz", hash = "sha256:f47eecd9468083c2029cc99945502cb7708b082c232f9aca65da147157b251c7", size = 25007, upload-time = "2025-07-03T22:54:43.528Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fb/76/641ae371508676492379f16e2fa48f4e2c11741bd63c48be4b12a6b09cba/aiosignal-1.4.0-py3-none-any.whl", hash = "sha256:053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e", size = 7490, upload-time = "2025-07-03T22:54:42.156Z" },+]++[[package]]+name = "annotated-doc"+version = "0.0.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/57/ba/046ceea27344560984e26a590f90bc7f4a75b06701f653222458922b558c/annotated_doc-0.0.4.tar.gz", hash = "sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4", size = 7288, upload-time = "2025-11-10T22:07:42.062Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1e/d3/26bf1008eb3d2daa8ef4cacc7f3bfdc11818d111f7e2d0201bc6e3b49d45/annotated_doc-0.0.4-py3-none-any.whl", hash = "sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320", size = 5303, upload-time = "2025-11-10T22:07:40.673Z" },+]++[[package]]+name = "annotated-types"+version = "0.7.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" },+]++[[package]]+name = "anyio"+version = "4.12.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "idna" },+]+sdist = { url = "https://files.pythonhosted.org/packages/96/f0/5eb65b2bb0d09ac6776f2eb54adee6abe8228ea05b20a5ad0e4945de8aac/anyio-4.12.1.tar.gz", hash = "sha256:41cfcc3a4c85d3f05c932da7c26d0201ac36f72abd4435ba90d0464a3ffed703", size = 228685, upload-time = "2026-01-06T11:45:21.246Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/38/0e/27be9fdef66e72d64c0cdc3cc2823101b80585f8119b5c112c2e8f5f7dab/anyio-4.12.1-py3-none-any.whl", hash = "sha256:d405828884fc140aa80a3c667b8beed277f1dfedec42ba031bd6ac3db606ab6c", size = 113592, upload-time = "2026-01-06T11:45:19.497Z" },+]++[[package]]+name = "attrs"+version = "25.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/6b/5c/685e6633917e101e5dcb62b9dd76946cbb57c26e133bae9e0cd36033c0a9/attrs-25.4.0.tar.gz", hash = "sha256:16d5969b87f0859ef33a48b35d55ac1be6e42ae49d5e853b597db70c35c57e11", size = 934251, upload-time = "2025-10-06T13:54:44.725Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3a/2a/7cc015f5b9f5db42b7d48157e23356022889fc354a2813c15934b7cb5c0e/attrs-25.4.0-py3-none-any.whl", hash = "sha256:adcf7e2a1fb3b36ac48d97835bb6d8ade15b8dcce26aba8bf1d14847b57a3373", size = 67615, upload-time = "2025-10-06T13:54:43.17Z" },+]++[[package]]+name = "authlib"+version = "1.6.7"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cryptography" },+]+sdist = { url = "https://files.pythonhosted.org/packages/49/dc/ed1681bf1339dd6ea1ce56136bad4baabc6f7ad466e375810702b0237047/authlib-1.6.7.tar.gz", hash = "sha256:dbf10100011d1e1b34048c9d120e83f13b35d69a826ae762b93d2fb5aafc337b", size = 164950, upload-time = "2026-02-06T14:04:14.171Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f8/00/3ed12264094ec91f534fae429945efbaa9f8c666f3aa7061cc3b2a26a0cd/authlib-1.6.7-py2.py3-none-any.whl", hash = "sha256:c637340d9a02789d2efa1d003a7437d10d3e565237bcb5fcbc6c134c7b95bab0", size = 244115, upload-time = "2026-02-06T14:04:12.141Z" },+]++[[package]]+name = "backoff"+version = "2.2.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/47/d7/5bbeb12c44d7c4f2fb5b56abce497eb5ed9f34d85701de869acedd602619/backoff-2.2.1.tar.gz", hash = "sha256:03f829f5bb1923180821643f8753b0502c3b682293992485b0eef2807afa5cba", size = 17001, upload-time = "2022-10-05T19:19:32.061Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/df/73/b6e24bd22e6720ca8ee9a85a0c4a2971af8497d8f3193fa05390cbd46e09/backoff-2.2.1-py3-none-any.whl", hash = "sha256:63579f9a0628e06278f7e47b7d7d5b6ce20dc65c5e96a6f3ca99a6adca0396e8", size = 15148, upload-time = "2022-10-05T19:19:30.546Z" },+]++[[package]]+name = "bcrypt"+version = "5.0.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d4/36/3329e2518d70ad8e2e5817d5a4cac6bba05a47767ec416c7d020a965f408/bcrypt-5.0.0.tar.gz", hash = "sha256:f748f7c2d6fd375cc93d3fba7ef4a9e3a092421b8dbf34d8d4dc06be9492dfdd", size = 25386, upload-time = "2025-09-25T19:50:47.829Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/13/85/3e65e01985fddf25b64ca67275bb5bdb4040bd1a53b66d355c6c37c8a680/bcrypt-5.0.0-cp313-cp313t-macosx_10_12_universal2.whl", hash = "sha256:f3c08197f3039bec79cee59a606d62b96b16669cff3949f21e74796b6e3cd2be", size = 481806, upload-time = "2025-09-25T19:49:05.102Z" },+ { url = "https://files.pythonhosted.org/packages/44/dc/01eb79f12b177017a726cbf78330eb0eb442fae0e7b3dfd84ea2849552f3/bcrypt-5.0.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:200af71bc25f22006f4069060c88ed36f8aa4ff7f53e67ff04d2ab3f1e79a5b2", size = 268626, upload-time = "2025-09-25T19:49:06.723Z" },+ { url = "https://files.pythonhosted.org/packages/8c/cf/e82388ad5959c40d6afd94fb4743cc077129d45b952d46bdc3180310e2df/bcrypt-5.0.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:baade0a5657654c2984468efb7d6c110db87ea63ef5a4b54732e7e337253e44f", size = 271853, upload-time = "2025-09-25T19:49:08.028Z" },+ { url = "https://files.pythonhosted.org/packages/ec/86/7134b9dae7cf0efa85671651341f6afa695857fae172615e960fb6a466fa/bcrypt-5.0.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:c58b56cdfb03202b3bcc9fd8daee8e8e9b6d7e3163aa97c631dfcfcc24d36c86", size = 269793, upload-time = "2025-09-25T19:49:09.727Z" },+ { url = "https://files.pythonhosted.org/packages/cc/82/6296688ac1b9e503d034e7d0614d56e80c5d1a08402ff856a4549cb59207/bcrypt-5.0.0-cp313-cp313t-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4bfd2a34de661f34d0bda43c3e4e79df586e4716ef401fe31ea39d69d581ef23", size = 289930, upload-time = "2025-09-25T19:49:11.204Z" },+ { url = "https://files.pythonhosted.org/packages/d1/18/884a44aa47f2a3b88dd09bc05a1e40b57878ecd111d17e5bba6f09f8bb77/bcrypt-5.0.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:ed2e1365e31fc73f1825fa830f1c8f8917ca1b3ca6185773b349c20fd606cec2", size = 272194, upload-time = "2025-09-25T19:49:12.524Z" },+ { url = "https://files.pythonhosted.org/packages/0e/8f/371a3ab33c6982070b674f1788e05b656cfbf5685894acbfef0c65483a59/bcrypt-5.0.0-cp313-cp313t-manylinux_2_34_aarch64.whl", hash = "sha256:83e787d7a84dbbfba6f250dd7a5efd689e935f03dd83b0f919d39349e1f23f83", size = 269381, upload-time = "2025-09-25T19:49:14.308Z" },+ { url = "https://files.pythonhosted.org/packages/b1/34/7e4e6abb7a8778db6422e88b1f06eb07c47682313997ee8a8f9352e5a6f1/bcrypt-5.0.0-cp313-cp313t-manylinux_2_34_x86_64.whl", hash = "sha256:137c5156524328a24b9fac1cb5db0ba618bc97d11970b39184c1d87dc4bf1746", size = 271750, upload-time = "2025-09-25T19:49:15.584Z" },+ { url = "https://files.pythonhosted.org/packages/c0/1b/54f416be2499bd72123c70d98d36c6cd61a4e33d9b89562c22481c81bb30/bcrypt-5.0.0-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:38cac74101777a6a7d3b3e3cfefa57089b5ada650dce2baf0cbdd9d65db22a9e", size = 303757, upload-time = "2025-09-25T19:49:17.244Z" },+ { url = "https://files.pythonhosted.org/packages/13/62/062c24c7bcf9d2826a1a843d0d605c65a755bc98002923d01fd61270705a/bcrypt-5.0.0-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:d8d65b564ec849643d9f7ea05c6d9f0cd7ca23bdd4ac0c2dbef1104ab504543d", size = 306740, upload-time = "2025-09-25T19:49:18.693Z" },+ { url = "https://files.pythonhosted.org/packages/d5/c8/1fdbfc8c0f20875b6b4020f3c7dc447b8de60aa0be5faaf009d24242aec9/bcrypt-5.0.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:741449132f64b3524e95cd30e5cd3343006ce146088f074f31ab26b94e6c75ba", size = 334197, upload-time = "2025-09-25T19:49:20.523Z" },+ { url = "https://files.pythonhosted.org/packages/a6/c1/8b84545382d75bef226fbc6588af0f7b7d095f7cd6a670b42a86243183cd/bcrypt-5.0.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:212139484ab3207b1f0c00633d3be92fef3c5f0af17cad155679d03ff2ee1e41", size = 352974, upload-time = "2025-09-25T19:49:22.254Z" },+ { url = "https://files.pythonhosted.org/packages/10/a6/ffb49d4254ed085e62e3e5dd05982b4393e32fe1e49bb1130186617c29cd/bcrypt-5.0.0-cp313-cp313t-win32.whl", hash = "sha256:9d52ed507c2488eddd6a95bccee4e808d3234fa78dd370e24bac65a21212b861", size = 148498, upload-time = "2025-09-25T19:49:24.134Z" },+ { url = "https://files.pythonhosted.org/packages/48/a9/259559edc85258b6d5fc5471a62a3299a6aa37a6611a169756bf4689323c/bcrypt-5.0.0-cp313-cp313t-win_amd64.whl", hash = "sha256:f6984a24db30548fd39a44360532898c33528b74aedf81c26cf29c51ee47057e", size = 145853, upload-time = "2025-09-25T19:49:25.702Z" },+ { url = "https://files.pythonhosted.org/packages/2d/df/9714173403c7e8b245acf8e4be8876aac64a209d1b392af457c79e60492e/bcrypt-5.0.0-cp313-cp313t-win_arm64.whl", hash = "sha256:9fffdb387abe6aa775af36ef16f55e318dcda4194ddbf82007a6f21da29de8f5", size = 139626, upload-time = "2025-09-25T19:49:26.928Z" },+ { url = "https://files.pythonhosted.org/packages/84/29/6237f151fbfe295fe3e074ecc6d44228faa1e842a81f6d34a02937ee1736/bcrypt-5.0.0-cp38-abi3-macosx_10_12_universal2.whl", hash = "sha256:fc746432b951e92b58317af8e0ca746efe93e66555f1b40888865ef5bf56446b", size = 494553, upload-time = "2025-09-25T19:49:49.006Z" },+ { url = "https://files.pythonhosted.org/packages/45/b6/4c1205dde5e464ea3bd88e8742e19f899c16fa8916fb8510a851fae985b5/bcrypt-5.0.0-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c2388ca94ffee269b6038d48747f4ce8df0ffbea43f31abfa18ac72f0218effb", size = 275009, upload-time = "2025-09-25T19:49:50.581Z" },+ { url = "https://files.pythonhosted.org/packages/3b/71/427945e6ead72ccffe77894b2655b695ccf14ae1866cd977e185d606dd2f/bcrypt-5.0.0-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:560ddb6ec730386e7b3b26b8b4c88197aaed924430e7b74666a586ac997249ef", size = 278029, upload-time = "2025-09-25T19:49:52.533Z" },+ { url = "https://files.pythonhosted.org/packages/17/72/c344825e3b83c5389a369c8a8e58ffe1480b8a699f46c127c34580c4666b/bcrypt-5.0.0-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:d79e5c65dcc9af213594d6f7f1fa2c98ad3fc10431e7aa53c176b441943efbdd", size = 275907, upload-time = "2025-09-25T19:49:54.709Z" },+ { url = "https://files.pythonhosted.org/packages/0b/7e/d4e47d2df1641a36d1212e5c0514f5291e1a956a7749f1e595c07a972038/bcrypt-5.0.0-cp38-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2b732e7d388fa22d48920baa267ba5d97cca38070b69c0e2d37087b381c681fd", size = 296500, upload-time = "2025-09-25T19:49:56.013Z" },+ { url = "https://files.pythonhosted.org/packages/0f/c3/0ae57a68be2039287ec28bc463b82e4b8dc23f9d12c0be331f4782e19108/bcrypt-5.0.0-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:0c8e093ea2532601a6f686edbc2c6b2ec24131ff5c52f7610dd64fa4553b5464", size = 278412, upload-time = "2025-09-25T19:49:57.356Z" },+ { url = "https://files.pythonhosted.org/packages/45/2b/77424511adb11e6a99e3a00dcc7745034bee89036ad7d7e255a7e47be7d8/bcrypt-5.0.0-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:5b1589f4839a0899c146e8892efe320c0fa096568abd9b95593efac50a87cb75", size = 275486, upload-time = "2025-09-25T19:49:59.116Z" },+ { url = "https://files.pythonhosted.org/packages/43/0a/405c753f6158e0f3f14b00b462d8bca31296f7ecfc8fc8bc7919c0c7d73a/bcrypt-5.0.0-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:89042e61b5e808b67daf24a434d89bab164d4de1746b37a8d173b6b14f3db9ff", size = 277940, upload-time = "2025-09-25T19:50:00.869Z" },+ { url = "https://files.pythonhosted.org/packages/62/83/b3efc285d4aadc1fa83db385ec64dcfa1707e890eb42f03b127d66ac1b7b/bcrypt-5.0.0-cp38-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:e3cf5b2560c7b5a142286f69bde914494b6d8f901aaa71e453078388a50881c4", size = 310776, upload-time = "2025-09-25T19:50:02.393Z" },+ { url = "https://files.pythonhosted.org/packages/95/7d/47ee337dacecde6d234890fe929936cb03ebc4c3a7460854bbd9c97780b8/bcrypt-5.0.0-cp38-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:f632fd56fc4e61564f78b46a2269153122db34988e78b6be8b32d28507b7eaeb", size = 312922, upload-time = "2025-09-25T19:50:04.232Z" },+ { url = "https://files.pythonhosted.org/packages/d6/3a/43d494dfb728f55f4e1cf8fd435d50c16a2d75493225b54c8d06122523c6/bcrypt-5.0.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:801cad5ccb6b87d1b430f183269b94c24f248dddbbc5c1f78b6ed231743e001c", size = 341367, upload-time = "2025-09-25T19:50:05.559Z" },+ { url = "https://files.pythonhosted.org/packages/55/ab/a0727a4547e383e2e22a630e0f908113db37904f58719dc48d4622139b5c/bcrypt-5.0.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:3cf67a804fc66fc217e6914a5635000259fbbbb12e78a99488e4d5ba445a71eb", size = 359187, upload-time = "2025-09-25T19:50:06.916Z" },+ { url = "https://files.pythonhosted.org/packages/1b/bb/461f352fdca663524b4643d8b09e8435b4990f17fbf4fea6bc2a90aa0cc7/bcrypt-5.0.0-cp38-abi3-win32.whl", hash = "sha256:3abeb543874b2c0524ff40c57a4e14e5d3a66ff33fb423529c88f180fd756538", size = 153752, upload-time = "2025-09-25T19:50:08.515Z" },+ { url = "https://files.pythonhosted.org/packages/41/aa/4190e60921927b7056820291f56fc57d00d04757c8b316b2d3c0d1d6da2c/bcrypt-5.0.0-cp38-abi3-win_amd64.whl", hash = "sha256:35a77ec55b541e5e583eb3436ffbbf53b0ffa1fa16ca6782279daf95d146dcd9", size = 150881, upload-time = "2025-09-25T19:50:09.742Z" },+ { url = "https://files.pythonhosted.org/packages/54/12/cd77221719d0b39ac0b55dbd39358db1cd1246e0282e104366ebbfb8266a/bcrypt-5.0.0-cp38-abi3-win_arm64.whl", hash = "sha256:cde08734f12c6a4e28dc6755cd11d3bdfea608d93d958fffbe95a7026ebe4980", size = 144931, upload-time = "2025-09-25T19:50:11.016Z" },+ { url = "https://files.pythonhosted.org/packages/5d/ba/2af136406e1c3839aea9ecadc2f6be2bcd1eff255bd451dd39bcf302c47a/bcrypt-5.0.0-cp39-abi3-macosx_10_12_universal2.whl", hash = "sha256:0c418ca99fd47e9c59a301744d63328f17798b5947b0f791e9af3c1c499c2d0a", size = 495313, upload-time = "2025-09-25T19:50:12.309Z" },+ { url = "https://files.pythonhosted.org/packages/ac/ee/2f4985dbad090ace5ad1f7dd8ff94477fe089b5fab2040bd784a3d5f187b/bcrypt-5.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ddb4e1500f6efdd402218ffe34d040a1196c072e07929b9820f363a1fd1f4191", size = 275290, upload-time = "2025-09-25T19:50:13.673Z" },+ { url = "https://files.pythonhosted.org/packages/e4/6e/b77ade812672d15cf50842e167eead80ac3514f3beacac8902915417f8b7/bcrypt-5.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7aeef54b60ceddb6f30ee3db090351ecf0d40ec6e2abf41430997407a46d2254", size = 278253, upload-time = "2025-09-25T19:50:15.089Z" },+ { url = "https://files.pythonhosted.org/packages/36/c4/ed00ed32f1040f7990dac7115f82273e3c03da1e1a1587a778d8cea496d8/bcrypt-5.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f0ce778135f60799d89c9693b9b398819d15f1921ba15fe719acb3178215a7db", size = 276084, upload-time = "2025-09-25T19:50:16.699Z" },+ { url = "https://files.pythonhosted.org/packages/e7/c4/fa6e16145e145e87f1fa351bbd54b429354fd72145cd3d4e0c5157cf4c70/bcrypt-5.0.0-cp39-abi3-manylinux_2_28_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a71f70ee269671460b37a449f5ff26982a6f2ba493b3eabdd687b4bf35f875ac", size = 297185, upload-time = "2025-09-25T19:50:18.525Z" },+ { url = "https://files.pythonhosted.org/packages/24/b4/11f8a31d8b67cca3371e046db49baa7c0594d71eb40ac8121e2fc0888db0/bcrypt-5.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f8429e1c410b4073944f03bd778a9e066e7fad723564a52ff91841d278dfc822", size = 278656, upload-time = "2025-09-25T19:50:19.809Z" },+ { url = "https://files.pythonhosted.org/packages/ac/31/79f11865f8078e192847d2cb526e3fa27c200933c982c5b2869720fa5fce/bcrypt-5.0.0-cp39-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:edfcdcedd0d0f05850c52ba3127b1fce70b9f89e0fe5ff16517df7e81fa3cbb8", size = 275662, upload-time = "2025-09-25T19:50:21.567Z" },+ { url = "https://files.pythonhosted.org/packages/d4/8d/5e43d9584b3b3591a6f9b68f755a4da879a59712981ef5ad2a0ac1379f7a/bcrypt-5.0.0-cp39-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:611f0a17aa4a25a69362dcc299fda5c8a3d4f160e2abb3831041feb77393a14a", size = 278240, upload-time = "2025-09-25T19:50:23.305Z" },+ { url = "https://files.pythonhosted.org/packages/89/48/44590e3fc158620f680a978aafe8f87a4c4320da81ed11552f0323aa9a57/bcrypt-5.0.0-cp39-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:db99dca3b1fdc3db87d7c57eac0c82281242d1eabf19dcb8a6b10eb29a2e72d1", size = 311152, upload-time = "2025-09-25T19:50:24.597Z" },+ { url = "https://files.pythonhosted.org/packages/5f/85/e4fbfc46f14f47b0d20493669a625da5827d07e8a88ee460af6cd9768b44/bcrypt-5.0.0-cp39-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:5feebf85a9cefda32966d8171f5db7e3ba964b77fdfe31919622256f80f9cf42", size = 313284, upload-time = "2025-09-25T19:50:26.268Z" },+ { url = "https://files.pythonhosted.org/packages/25/ae/479f81d3f4594456a01ea2f05b132a519eff9ab5768a70430fa1132384b1/bcrypt-5.0.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:3ca8a166b1140436e058298a34d88032ab62f15aae1c598580333dc21d27ef10", size = 341643, upload-time = "2025-09-25T19:50:28.02Z" },+ { url = "https://files.pythonhosted.org/packages/df/d2/36a086dee1473b14276cd6ea7f61aef3b2648710b5d7f1c9e032c29b859f/bcrypt-5.0.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:61afc381250c3182d9078551e3ac3a41da14154fbff647ddf52a769f588c4172", size = 359698, upload-time = "2025-09-25T19:50:31.347Z" },+ { url = "https://files.pythonhosted.org/packages/c0/f6/688d2cd64bfd0b14d805ddb8a565e11ca1fb0fd6817175d58b10052b6d88/bcrypt-5.0.0-cp39-abi3-win32.whl", hash = "sha256:64d7ce196203e468c457c37ec22390f1a61c85c6f0b8160fd752940ccfb3a683", size = 153725, upload-time = "2025-09-25T19:50:34.384Z" },+ { url = "https://files.pythonhosted.org/packages/9f/b9/9d9a641194a730bda138b3dfe53f584d61c58cd5230e37566e83ec2ffa0d/bcrypt-5.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:64ee8434b0da054d830fa8e89e1c8bf30061d539044a39524ff7dec90481e5c2", size = 150912, upload-time = "2025-09-25T19:50:35.69Z" },+ { url = "https://files.pythonhosted.org/packages/27/44/d2ef5e87509158ad2187f4dd0852df80695bb1ee0cfe0a684727b01a69e0/bcrypt-5.0.0-cp39-abi3-win_arm64.whl", hash = "sha256:f2347d3534e76bf50bca5500989d6c1d05ed64b440408057a37673282c654927", size = 144953, upload-time = "2025-09-25T19:50:37.32Z" },+]++[[package]]+name = "beartype"+version = "0.22.9"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c7/94/1009e248bbfbab11397abca7193bea6626806be9a327d399810d523a07cb/beartype-0.22.9.tar.gz", hash = "sha256:8f82b54aa723a2848a56008d18875f91c1db02c32ef6a62319a002e3e25a975f", size = 1608866, upload-time = "2025-12-13T06:50:30.72Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/71/cc/18245721fa7747065ab478316c7fea7c74777d07f37ae60db2e84f8172e8/beartype-0.22.9-py3-none-any.whl", hash = "sha256:d16c9bbc61ea14637596c5f6fbff2ee99cbe3573e46a716401734ef50c3060c2", size = 1333658, upload-time = "2025-12-13T06:50:28.266Z" },+]++[[package]]+name = "build"+version = "1.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "os_name == 'nt'" },+ { name = "packaging" },+ { name = "pyproject-hooks" },+]+sdist = { url = "https://files.pythonhosted.org/packages/42/18/94eaffda7b329535d91f00fe605ab1f1e5cd68b2074d03f255c7d250687d/build-1.4.0.tar.gz", hash = "sha256:f1b91b925aa322be454f8330c6fb48b465da993d1e7e7e6fa35027ec49f3c936", size = 50054, upload-time = "2026-01-08T16:41:47.696Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c5/0d/84a4380f930db0010168e0aa7b7a8fed9ba1835a8fbb1472bc6d0201d529/build-1.4.0-py3-none-any.whl", hash = "sha256:6a07c1b8eb6f2b311b96fcbdbce5dab5fe637ffda0fd83c9cac622e927501596", size = 24141, upload-time = "2026-01-08T16:41:46.453Z" },+]++[[package]]+name = "cacheout"+version = "0.16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d1/60/ed4c4b27b2131a0b2cc461789be2cf06866644ca462cb34a5d8fca114c15/cacheout-0.16.0.tar.gz", hash = "sha256:ee264897cbaa089ae5f406da11952697d99fa7f3583cfab69fe8a00ff8e1952d", size = 42050, upload-time = "2023-12-22T17:44:33.29Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/72/14/a89bb55107b8a9b586c8878f47d0b7750c3688c209f05f915e70de74880d/cacheout-0.16.0-py3-none-any.whl", hash = "sha256:1a52d9aa8b1e9720d8453b061348f15795578231f9ec4ad376fec49e717d0ed8", size = 21837, upload-time = "2023-12-22T17:44:31.556Z" },+]++[[package]]+name = "cachetools"+version = "7.0.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d4/07/56595285564e90777d758ebd383d6b0b971b87729bbe2184a849932a3736/cachetools-7.0.1.tar.gz", hash = "sha256:e31e579d2c5b6e2944177a0397150d312888ddf4e16e12f1016068f0c03b8341", size = 36126, upload-time = "2026-02-10T22:24:05.03Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ed/9e/5faefbf9db1db466d633735faceda1f94aa99ce506ac450d232536266b32/cachetools-7.0.1-py3-none-any.whl", hash = "sha256:8f086515c254d5664ae2146d14fc7f65c9a4bce75152eb247e5a9c5e6d7b2ecf", size = 13484, upload-time = "2026-02-10T22:24:03.741Z" },+]++[[package]]+name = "certifi"+version = "2026.1.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e0/2d/a891ca51311197f6ad14a7ef42e2399f36cf2f9bd44752b3dc4eab60fdc5/certifi-2026.1.4.tar.gz", hash = "sha256:ac726dd470482006e014ad384921ed6438c457018f4b3d204aea4281258b2120", size = 154268, upload-time = "2026-01-04T02:42:41.825Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e6/ad/3cc14f097111b4de0040c83a525973216457bbeeb63739ef1ed275c1c021/certifi-2026.1.4-py3-none-any.whl", hash = "sha256:9943707519e4add1115f44c2bc244f782c0249876bf51b6599fee1ffbedd685c", size = 152900, upload-time = "2026-01-04T02:42:40.15Z" },+]++[[package]]+name = "cffi"+version = "2.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pycparser", marker = "implementation_name != 'PyPy'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/eb/56/b1ba7935a17738ae8453301356628e8147c79dbb825bcbc73dc7401f9846/cffi-2.0.0.tar.gz", hash = "sha256:44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529", size = 523588, upload-time = "2025-09-08T23:24:04.541Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4b/8d/a0a47a0c9e413a658623d014e91e74a50cdd2c423f7ccfd44086ef767f90/cffi-2.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:00bdf7acc5f795150faa6957054fbbca2439db2f775ce831222b66f192f03beb", size = 185230, upload-time = "2025-09-08T23:23:00.879Z" },+ { url = "https://files.pythonhosted.org/packages/4a/d2/a6c0296814556c68ee32009d9c2ad4f85f2707cdecfd7727951ec228005d/cffi-2.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:45d5e886156860dc35862657e1494b9bae8dfa63bf56796f2fb56e1679fc0bca", size = 181043, upload-time = "2025-09-08T23:23:02.231Z" },+ { url = "https://files.pythonhosted.org/packages/b0/1e/d22cc63332bd59b06481ceaac49d6c507598642e2230f201649058a7e704/cffi-2.0.0-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:07b271772c100085dd28b74fa0cd81c8fb1a3ba18b21e03d7c27f3436a10606b", size = 212446, upload-time = "2025-09-08T23:23:03.472Z" },+ { url = "https://files.pythonhosted.org/packages/a9/f5/a2c23eb03b61a0b8747f211eb716446c826ad66818ddc7810cc2cc19b3f2/cffi-2.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d48a880098c96020b02d5a1f7d9251308510ce8858940e6fa99ece33f610838b", size = 220101, upload-time = "2025-09-08T23:23:04.792Z" },+ { url = "https://files.pythonhosted.org/packages/f2/7f/e6647792fc5850d634695bc0e6ab4111ae88e89981d35ac269956605feba/cffi-2.0.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:f93fd8e5c8c0a4aa1f424d6173f14a892044054871c771f8566e4008eaa359d2", size = 207948, upload-time = "2025-09-08T23:23:06.127Z" },+ { url = "https://files.pythonhosted.org/packages/cb/1e/a5a1bd6f1fb30f22573f76533de12a00bf274abcdc55c8edab639078abb6/cffi-2.0.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:dd4f05f54a52fb558f1ba9f528228066954fee3ebe629fc1660d874d040ae5a3", size = 206422, upload-time = "2025-09-08T23:23:07.753Z" },+ { url = "https://files.pythonhosted.org/packages/98/df/0a1755e750013a2081e863e7cd37e0cdd02664372c754e5560099eb7aa44/cffi-2.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c8d3b5532fc71b7a77c09192b4a5a200ea992702734a2e9279a37f2478236f26", size = 219499, upload-time = "2025-09-08T23:23:09.648Z" },+ { url = "https://files.pythonhosted.org/packages/50/e1/a969e687fcf9ea58e6e2a928ad5e2dd88cc12f6f0ab477e9971f2309b57c/cffi-2.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d9b29c1f0ae438d5ee9acb31cadee00a58c46cc9c0b2f9038c6b0b3470877a8c", size = 222928, upload-time = "2025-09-08T23:23:10.928Z" },+ { url = "https://files.pythonhosted.org/packages/36/54/0362578dd2c9e557a28ac77698ed67323ed5b9775ca9d3fe73fe191bb5d8/cffi-2.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6d50360be4546678fc1b79ffe7a66265e28667840010348dd69a314145807a1b", size = 221302, upload-time = "2025-09-08T23:23:12.42Z" },+ { url = "https://files.pythonhosted.org/packages/eb/6d/bf9bda840d5f1dfdbf0feca87fbdb64a918a69bca42cfa0ba7b137c48cb8/cffi-2.0.0-cp313-cp313-win32.whl", hash = "sha256:74a03b9698e198d47562765773b4a8309919089150a0bb17d829ad7b44b60d27", size = 172909, upload-time = "2025-09-08T23:23:14.32Z" },+ { url = "https://files.pythonhosted.org/packages/37/18/6519e1ee6f5a1e579e04b9ddb6f1676c17368a7aba48299c3759bbc3c8b3/cffi-2.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:19f705ada2530c1167abacb171925dd886168931e0a7b78f5bffcae5c6b5be75", size = 183402, upload-time = "2025-09-08T23:23:15.535Z" },+ { url = "https://files.pythonhosted.org/packages/cb/0e/02ceeec9a7d6ee63bb596121c2c8e9b3a9e150936f4fbef6ca1943e6137c/cffi-2.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:256f80b80ca3853f90c21b23ee78cd008713787b1b1e93eae9f3d6a7134abd91", size = 177780, upload-time = "2025-09-08T23:23:16.761Z" },+]++[[package]]+name = "cfgv"+version = "3.5.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/4e/b5/721b8799b04bf9afe054a3899c6cf4e880fcf8563cc71c15610242490a0c/cfgv-3.5.0.tar.gz", hash = "sha256:d5b1034354820651caa73ede66a6294d6e95c1b00acc5e9b098e917404669132", size = 7334, upload-time = "2025-11-19T20:55:51.612Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/db/3c/33bac158f8ab7f89b2e59426d5fe2e4f63f7ed25df84c036890172b412b5/cfgv-3.5.0-py2.py3-none-any.whl", hash = "sha256:a8dc6b26ad22ff227d2634a65cb388215ce6cc96bbcc5cfde7641ae87e8dacc0", size = 7445, upload-time = "2025-11-19T20:55:50.744Z" },+]++[[package]]+name = "charset-normalizer"+version = "3.4.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz", hash = "sha256:94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a", size = 129418, upload-time = "2025-10-14T04:42:32.879Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/97/45/4b3a1239bbacd321068ea6e7ac28875b03ab8bc0aa0966452db17cd36714/charset_normalizer-3.4.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e1f185f86a6f3403aa2420e815904c67b2f9ebc443f045edd0de921108345794", size = 208091, upload-time = "2025-10-14T04:41:13.346Z" },+ { url = "https://files.pythonhosted.org/packages/7d/62/73a6d7450829655a35bb88a88fca7d736f9882a27eacdca2c6d505b57e2e/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b39f987ae8ccdf0d2642338faf2abb1862340facc796048b604ef14919e55ed", size = 147936, upload-time = "2025-10-14T04:41:14.461Z" },+ { url = "https://files.pythonhosted.org/packages/89/c5/adb8c8b3d6625bef6d88b251bbb0d95f8205831b987631ab0c8bb5d937c2/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3162d5d8ce1bb98dd51af660f2121c55d0fa541b46dff7bb9b9f86ea1d87de72", size = 144180, upload-time = "2025-10-14T04:41:15.588Z" },+ { url = "https://files.pythonhosted.org/packages/91/ed/9706e4070682d1cc219050b6048bfd293ccf67b3d4f5a4f39207453d4b99/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:81d5eb2a312700f4ecaa977a8235b634ce853200e828fbadf3a9c50bab278328", size = 161346, upload-time = "2025-10-14T04:41:16.738Z" },+ { url = "https://files.pythonhosted.org/packages/d5/0d/031f0d95e4972901a2f6f09ef055751805ff541511dc1252ba3ca1f80cf5/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5bd2293095d766545ec1a8f612559f6b40abc0eb18bb2f5d1171872d34036ede", size = 158874, upload-time = "2025-10-14T04:41:17.923Z" },+ { url = "https://files.pythonhosted.org/packages/f5/83/6ab5883f57c9c801ce5e5677242328aa45592be8a00644310a008d04f922/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8a8b89589086a25749f471e6a900d3f662d1d3b6e2e59dcecf787b1cc3a1894", size = 153076, upload-time = "2025-10-14T04:41:19.106Z" },+ { url = "https://files.pythonhosted.org/packages/75/1e/5ff781ddf5260e387d6419959ee89ef13878229732732ee73cdae01800f2/charset_normalizer-3.4.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc7637e2f80d8530ee4a78e878bce464f70087ce73cf7c1caf142416923b98f1", size = 150601, upload-time = "2025-10-14T04:41:20.245Z" },+ { url = "https://files.pythonhosted.org/packages/d7/57/71be810965493d3510a6ca79b90c19e48696fb1ff964da319334b12677f0/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f8bf04158c6b607d747e93949aa60618b61312fe647a6369f88ce2ff16043490", size = 150376, upload-time = "2025-10-14T04:41:21.398Z" },+ { url = "https://files.pythonhosted.org/packages/e5/d5/c3d057a78c181d007014feb7e9f2e65905a6c4ef182c0ddf0de2924edd65/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:554af85e960429cf30784dd47447d5125aaa3b99a6f0683589dbd27e2f45da44", size = 144825, upload-time = "2025-10-14T04:41:22.583Z" },+ { url = "https://files.pythonhosted.org/packages/e6/8c/d0406294828d4976f275ffbe66f00266c4b3136b7506941d87c00cab5272/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:74018750915ee7ad843a774364e13a3db91682f26142baddf775342c3f5b1133", size = 162583, upload-time = "2025-10-14T04:41:23.754Z" },+ { url = "https://files.pythonhosted.org/packages/d7/24/e2aa1f18c8f15c4c0e932d9287b8609dd30ad56dbe41d926bd846e22fb8d/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c0463276121fdee9c49b98908b3a89c39be45d86d1dbaa22957e38f6321d4ce3", size = 150366, upload-time = "2025-10-14T04:41:25.27Z" },+ { url = "https://files.pythonhosted.org/packages/e4/5b/1e6160c7739aad1e2df054300cc618b06bf784a7a164b0f238360721ab86/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:362d61fd13843997c1c446760ef36f240cf81d3ebf74ac62652aebaf7838561e", size = 160300, upload-time = "2025-10-14T04:41:26.725Z" },+ { url = "https://files.pythonhosted.org/packages/7a/10/f882167cd207fbdd743e55534d5d9620e095089d176d55cb22d5322f2afd/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a26f18905b8dd5d685d6d07b0cdf98a79f3c7a918906af7cc143ea2e164c8bc", size = 154465, upload-time = "2025-10-14T04:41:28.322Z" },+ { url = "https://files.pythonhosted.org/packages/89/66/c7a9e1b7429be72123441bfdbaf2bc13faab3f90b933f664db506dea5915/charset_normalizer-3.4.4-cp313-cp313-win32.whl", hash = "sha256:9b35f4c90079ff2e2edc5b26c0c77925e5d2d255c42c74fdb70fb49b172726ac", size = 99404, upload-time = "2025-10-14T04:41:29.95Z" },+ { url = "https://files.pythonhosted.org/packages/c4/26/b9924fa27db384bdcd97ab83b4f0a8058d96ad9626ead570674d5e737d90/charset_normalizer-3.4.4-cp313-cp313-win_amd64.whl", hash = "sha256:b435cba5f4f750aa6c0a0d92c541fb79f69a387c91e61f1795227e4ed9cece14", size = 107092, upload-time = "2025-10-14T04:41:31.188Z" },+ { url = "https://files.pythonhosted.org/packages/af/8f/3ed4bfa0c0c72a7ca17f0380cd9e4dd842b09f664e780c13cff1dcf2ef1b/charset_normalizer-3.4.4-cp313-cp313-win_arm64.whl", hash = "sha256:542d2cee80be6f80247095cc36c418f7bddd14f4a6de45af91dfad36d817bba2", size = 100408, upload-time = "2025-10-14T04:41:32.624Z" },+ { url = "https://files.pythonhosted.org/packages/0a/4c/925909008ed5a988ccbb72dcc897407e5d6d3bd72410d69e051fc0c14647/charset_normalizer-3.4.4-py3-none-any.whl", hash = "sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f", size = 53402, upload-time = "2025-10-14T04:42:31.76Z" },+]++[[package]]+name = "chromadb"+version = "1.5.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "bcrypt" },+ { name = "build" },+ { name = "grpcio" },+ { name = "httpx" },+ { name = "importlib-resources" },+ { name = "jsonschema" },+ { name = "kubernetes" },+ { name = "mmh3" },+ { name = "numpy" },+ { name = "onnxruntime" },+ { name = "opentelemetry-api" },+ { name = "opentelemetry-exporter-otlp-proto-grpc" },+ { name = "opentelemetry-sdk" },+ { name = "orjson" },+ { name = "overrides" },+ { name = "posthog" },+ { name = "pybase64" },+ { name = "pydantic" },+ { name = "pypika" },+ { name = "pyyaml" },+ { name = "rich" },+ { name = "tenacity" },+ { name = "tokenizers" },+ { name = "tqdm" },+ { name = "typer" },+ { name = "typing-extensions" },+ { name = "uvicorn", extra = ["standard"] },+]+sdist = { url = "https://files.pythonhosted.org/packages/10/a9/88d14ec43948ba164c45a2b8a80df26f68b69d963b4fbdf6e777c7ee6ab9/chromadb-1.5.0.tar.gz", hash = "sha256:357c5516ede08305db65f078d1dd4e001b8ecca80a13fd0db0b45bc473554ecb", size = 2343898, upload-time = "2026-02-09T08:46:05.077Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/11/8c/22b8c965551ce41646d6d0c2b30ce6868b5471e04611d30180823226f273/chromadb-1.5.0-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:4dc035ed075ddf80dfcdcd6bbedf6cd7c81052132333f03e6a71cdeac5ea0899", size = 20609722, upload-time = "2026-02-09T08:46:00.376Z" },+ { url = "https://files.pythonhosted.org/packages/13/75/b1354faa6e55ff1cfc916884da1b78629e689a3ddf57871000a62644e583/chromadb-1.5.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:3ae46c642c0bf3b86319b3883456ce8bb4a097a1d0552e7ce8cd4836a0cd1f22", size = 19850671, upload-time = "2026-02-09T08:45:57.065Z" },+ { url = "https://files.pythonhosted.org/packages/ba/6e/c9a9be7b3ca3fbcb59561464fe713637a475e39fc72e2dd7c60b2f360480/chromadb-1.5.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:20dbfcd178cb93159891e3a0ff085659b8b3e4cbeef3dae311091c325791f4cc", size = 20498323, upload-time = "2026-02-09T08:45:49.941Z" },+ { url = "https://files.pythonhosted.org/packages/9d/2d/d9faa17c38f49212ed66ed8f7923ee327a9d5a218dd9b7565f28f538bfa7/chromadb-1.5.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f5258d5b578c48b7c78effb6b582050ee13b1ac2e9eade4c83cd66de1a78c33", size = 21402789, upload-time = "2026-02-09T08:45:54.005Z" },+ { url = "https://files.pythonhosted.org/packages/b8/7c/791d03e23ebcfaff35db5b1e6e7eb5c572046d2a562932305de63d0898fc/chromadb-1.5.0-cp39-abi3-win_amd64.whl", hash = "sha256:8298cde5ffe448ca5a9794450c8b9700393e824ef8951be425ba2691330e78e6", size = 21724723, upload-time = "2026-02-09T08:46:07.76Z" },+]++[[package]]+name = "click"+version = "8.3.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065, upload-time = "2025-11-15T20:45:42.706Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274, upload-time = "2025-11-15T20:45:41.139Z" },+]++[[package]]+name = "cloudpickle"+version = "3.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/27/fb/576f067976d320f5f0114a8d9fa1215425441bb35627b1993e5afd8111e5/cloudpickle-3.1.2.tar.gz", hash = "sha256:7fda9eb655c9c230dab534f1983763de5835249750e85fbcef43aaa30a9a2414", size = 22330, upload-time = "2025-11-03T09:25:26.604Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/88/39/799be3f2f0f38cc727ee3b4f1445fe6d5e4133064ec2e4115069418a5bb6/cloudpickle-3.1.2-py3-none-any.whl", hash = "sha256:9acb47f6afd73f60dc1df93bb801b472f05ff42fa6c84167d25cb206be1fbf4a", size = 22228, upload-time = "2025-11-03T09:25:25.534Z" },+]++[[package]]+name = "codecov"+version = "2.1.13"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "coverage" },+ { name = "requests" },+]+sdist = { url = "https://files.pythonhosted.org/packages/2c/bb/594b26d2c85616be6195a64289c578662678afa4910cef2d3ce8417cf73e/codecov-2.1.13.tar.gz", hash = "sha256:2362b685633caeaf45b9951a9b76ce359cd3581dd515b430c6c3f5dfb4d92a8c", size = 21416, upload-time = "2023-04-17T23:11:39.779Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/af/02/18785edcdf6266cdd6c6dc7635f1cbeefd9a5b4c3bb8aff8bd681e9dd095/codecov-2.1.13-py2.py3-none-any.whl", hash = "sha256:c2ca5e51bba9ebb43644c43d0690148a55086f7f5e6fd36170858fa4206744d5", size = 16512, upload-time = "2023-04-17T23:11:37.344Z" },+]++[[package]]+name = "colorama"+version = "0.4.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },+]++[[package]]+name = "coverage"+version = "7.13.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/24/56/95b7e30fa389756cb56630faa728da46a27b8c6eb46f9d557c68fff12b65/coverage-7.13.4.tar.gz", hash = "sha256:e5c8f6ed1e61a8b2dcdf31eb0b9bbf0130750ca79c1c49eb898e2ad86f5ccc91", size = 827239, upload-time = "2026-02-09T12:59:03.86Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/db/23/aad45061a31677d68e47499197a131eea55da4875d16c1f42021ab963503/coverage-7.13.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b66a2da594b6068b48b2692f043f35d4d3693fb639d5ea8b39533c2ad9ac3ab9", size = 219474, upload-time = "2026-02-09T12:57:19.332Z" },+ { url = "https://files.pythonhosted.org/packages/a5/70/9b8b67a0945f3dfec1fd896c5cefb7c19d5a3a6d74630b99a895170999ae/coverage-7.13.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:3599eb3992d814d23b35c536c28df1a882caa950f8f507cef23d1cbf334995ac", size = 219844, upload-time = "2026-02-09T12:57:20.66Z" },+ { url = "https://files.pythonhosted.org/packages/97/fd/7e859f8fab324cef6c4ad7cff156ca7c489fef9179d5749b0c8d321281c2/coverage-7.13.4-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:93550784d9281e374fb5a12bf1324cc8a963fd63b2d2f223503ef0fd4aa339ea", size = 250832, upload-time = "2026-02-09T12:57:22.007Z" },+ { url = "https://files.pythonhosted.org/packages/e4/dc/b2442d10020c2f52617828862d8b6ee337859cd8f3a1f13d607dddda9cf7/coverage-7.13.4-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b720ce6a88a2755f7c697c23268ddc47a571b88052e6b155224347389fdf6a3b", size = 253434, upload-time = "2026-02-09T12:57:23.339Z" },+ { url = "https://files.pythonhosted.org/packages/5a/88/6728a7ad17428b18d836540630487231f5470fb82454871149502f5e5aa2/coverage-7.13.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7b322db1284a2ed3aa28ffd8ebe3db91c929b7a333c0820abec3d838ef5b3525", size = 254676, upload-time = "2026-02-09T12:57:24.774Z" },+ { url = "https://files.pythonhosted.org/packages/7c/bc/21244b1b8cedf0dff0a2b53b208015fe798d5f2a8d5348dbfece04224fff/coverage-7.13.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f4594c67d8a7c89cf922d9df0438c7c7bb022ad506eddb0fdb2863359ff78242", size = 256807, upload-time = "2026-02-09T12:57:26.125Z" },+ { url = "https://files.pythonhosted.org/packages/97/a0/ddba7ed3251cff51006737a727d84e05b61517d1784a9988a846ba508877/coverage-7.13.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:53d133df809c743eb8bce33b24bcababb371f4441340578cd406e084d94a6148", size = 251058, upload-time = "2026-02-09T12:57:27.614Z" },+ { url = "https://files.pythonhosted.org/packages/9b/55/e289addf7ff54d3a540526f33751951bf0878f3809b47f6dfb3def69c6f7/coverage-7.13.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:76451d1978b95ba6507a039090ba076105c87cc76fc3efd5d35d72093964d49a", size = 252805, upload-time = "2026-02-09T12:57:29.066Z" },+ { url = "https://files.pythonhosted.org/packages/13/4e/cc276b1fa4a59be56d96f1dabddbdc30f4ba22e3b1cd42504c37b3313255/coverage-7.13.4-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:7f57b33491e281e962021de110b451ab8a24182589be17e12a22c79047935e23", size = 250766, upload-time = "2026-02-09T12:57:30.522Z" },+ { url = "https://files.pythonhosted.org/packages/94/44/1093b8f93018f8b41a8cf29636c9292502f05e4a113d4d107d14a3acd044/coverage-7.13.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:1731dc33dc276dafc410a885cbf5992f1ff171393e48a21453b78727d090de80", size = 254923, upload-time = "2026-02-09T12:57:31.946Z" },+ { url = "https://files.pythonhosted.org/packages/8b/55/ea2796da2d42257f37dbea1aab239ba9263b31bd91d5527cdd6db5efe174/coverage-7.13.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:bd60d4fe2f6fa7dff9223ca1bbc9f05d2b6697bc5961072e5d3b952d46e1b1ea", size = 250591, upload-time = "2026-02-09T12:57:33.842Z" },+ { url = "https://files.pythonhosted.org/packages/d4/fa/7c4bb72aacf8af5020675aa633e59c1fbe296d22aed191b6a5b711eb2bc7/coverage-7.13.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9181a3ccead280b828fae232df12b16652702b49d41e99d657f46cc7b1f6ec7a", size = 252364, upload-time = "2026-02-09T12:57:35.743Z" },+ { url = "https://files.pythonhosted.org/packages/5c/38/a8d2ec0146479c20bbaa7181b5b455a0c41101eed57f10dd19a78ab44c80/coverage-7.13.4-cp313-cp313-win32.whl", hash = "sha256:f53d492307962561ac7de4cd1de3e363589b000ab69617c6156a16ba7237998d", size = 222010, upload-time = "2026-02-09T12:57:37.25Z" },+ { url = "https://files.pythonhosted.org/packages/e2/0c/dbfafbe90a185943dcfbc766fe0e1909f658811492d79b741523a414a6cc/coverage-7.13.4-cp313-cp313-win_amd64.whl", hash = "sha256:e6f70dec1cc557e52df5306d051ef56003f74d56e9c4dd7ddb07e07ef32a84dd", size = 222818, upload-time = "2026-02-09T12:57:38.734Z" },+ { url = "https://files.pythonhosted.org/packages/04/d1/934918a138c932c90d78301f45f677fb05c39a3112b96fd2c8e60503cdc7/coverage-7.13.4-cp313-cp313-win_arm64.whl", hash = "sha256:fb07dc5da7e849e2ad31a5d74e9bece81f30ecf5a42909d0a695f8bd1874d6af", size = 221438, upload-time = "2026-02-09T12:57:40.223Z" },+ { url = "https://files.pythonhosted.org/packages/52/57/ee93ced533bcb3e6df961c0c6e42da2fc6addae53fb95b94a89b1e33ebd7/coverage-7.13.4-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:40d74da8e6c4b9ac18b15331c4b5ebc35a17069410cad462ad4f40dcd2d50c0d", size = 220165, upload-time = "2026-02-09T12:57:41.639Z" },+ { url = "https://files.pythonhosted.org/packages/c5/e0/969fc285a6fbdda49d91af278488d904dcd7651b2693872f0ff94e40e84a/coverage-7.13.4-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4223b4230a376138939a9173f1bdd6521994f2aff8047fae100d6d94d50c5a12", size = 220516, upload-time = "2026-02-09T12:57:44.215Z" },+ { url = "https://files.pythonhosted.org/packages/b1/b8/9531944e16267e2735a30a9641ff49671f07e8138ecf1ca13db9fd2560c7/coverage-7.13.4-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:1d4be36a5114c499f9f1f9195e95ebf979460dbe2d88e6816ea202010ba1c34b", size = 261804, upload-time = "2026-02-09T12:57:45.989Z" },+ { url = "https://files.pythonhosted.org/packages/8a/f3/e63df6d500314a2a60390d1989240d5f27318a7a68fa30ad3806e2a9323e/coverage-7.13.4-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:200dea7d1e8095cc6e98cdabe3fd1d21ab17d3cee6dab00cadbb2fe35d9c15b9", size = 263885, upload-time = "2026-02-09T12:57:47.42Z" },+ { url = "https://files.pythonhosted.org/packages/f3/67/7654810de580e14b37670b60a09c599fa348e48312db5b216d730857ffe6/coverage-7.13.4-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b8eb931ee8e6d8243e253e5ed7336deea6904369d2fd8ae6e43f68abbf167092", size = 266308, upload-time = "2026-02-09T12:57:49.345Z" },+ { url = "https://files.pythonhosted.org/packages/37/6f/39d41eca0eab3cc82115953ad41c4e77935286c930e8fad15eaed1389d83/coverage-7.13.4-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:75eab1ebe4f2f64d9509b984f9314d4aa788540368218b858dad56dc8f3e5eb9", size = 267452, upload-time = "2026-02-09T12:57:50.811Z" },+ { url = "https://files.pythonhosted.org/packages/50/6d/39c0fbb8fc5cd4d2090811e553c2108cf5112e882f82505ee7495349a6bf/coverage-7.13.4-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c35eb28c1d085eb7d8c9b3296567a1bebe03ce72962e932431b9a61f28facf26", size = 261057, upload-time = "2026-02-09T12:57:52.447Z" },+ { url = "https://files.pythonhosted.org/packages/a4/a2/60010c669df5fa603bb5a97fb75407e191a846510da70ac657eb696b7fce/coverage-7.13.4-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:eb88b316ec33760714a4720feb2816a3a59180fd58c1985012054fa7aebee4c2", size = 263875, upload-time = "2026-02-09T12:57:53.938Z" },+ { url = "https://files.pythonhosted.org/packages/3e/d9/63b22a6bdbd17f1f96e9ed58604c2a6b0e72a9133e37d663bef185877cf6/coverage-7.13.4-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:7d41eead3cc673cbd38a4417deb7fd0b4ca26954ff7dc6078e33f6ff97bed940", size = 261500, upload-time = "2026-02-09T12:57:56.012Z" },+ { url = "https://files.pythonhosted.org/packages/70/bf/69f86ba1ad85bc3ad240e4c0e57a2e620fbc0e1645a47b5c62f0e941ad7f/coverage-7.13.4-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:fb26a934946a6afe0e326aebe0730cdff393a8bc0bbb65a2f41e30feddca399c", size = 265212, upload-time = "2026-02-09T12:57:57.5Z" },+ { url = "https://files.pythonhosted.org/packages/ae/f2/5f65a278a8c2148731831574c73e42f57204243d33bedaaf18fa79c5958f/coverage-7.13.4-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:dae88bc0fc77edaa65c14be099bd57ee140cf507e6bfdeea7938457ab387efb0", size = 260398, upload-time = "2026-02-09T12:57:59.027Z" },+ { url = "https://files.pythonhosted.org/packages/ef/80/6e8280a350ee9fea92f14b8357448a242dcaa243cb2c72ab0ca591f66c8c/coverage-7.13.4-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:845f352911777a8e722bfce168958214951e07e47e5d5d9744109fa5fe77f79b", size = 262584, upload-time = "2026-02-09T12:58:01.129Z" },+ { url = "https://files.pythonhosted.org/packages/22/63/01ff182fc95f260b539590fb12c11ad3e21332c15f9799cb5e2386f71d9f/coverage-7.13.4-cp313-cp313t-win32.whl", hash = "sha256:2fa8d5f8de70688a28240de9e139fa16b153cc3cbb01c5f16d88d6505ebdadf9", size = 222688, upload-time = "2026-02-09T12:58:02.736Z" },+ { url = "https://files.pythonhosted.org/packages/a9/43/89de4ef5d3cd53b886afa114065f7e9d3707bdb3e5efae13535b46ae483d/coverage-7.13.4-cp313-cp313t-win_amd64.whl", hash = "sha256:9351229c8c8407645840edcc277f4a2d44814d1bc34a2128c11c2a031d45a5dd", size = 223746, upload-time = "2026-02-09T12:58:05.362Z" },+ { url = "https://files.pythonhosted.org/packages/35/39/7cf0aa9a10d470a5309b38b289b9bb07ddeac5d61af9b664fe9775a4cb3e/coverage-7.13.4-cp313-cp313t-win_arm64.whl", hash = "sha256:30b8d0512f2dc8c8747557e8fb459d6176a2c9e5731e2b74d311c03b78451997", size = 222003, upload-time = "2026-02-09T12:58:06.952Z" },+ { url = "https://files.pythonhosted.org/packages/0d/4a/331fe2caf6799d591109bb9c08083080f6de90a823695d412a935622abb2/coverage-7.13.4-py3-none-any.whl", hash = "sha256:1af1641e57cf7ba1bd67d677c9abdbcd6cc2ab7da3bca7fa1e2b7e50e65f2ad0", size = 211242, upload-time = "2026-02-09T12:59:02.032Z" },+]++[[package]]+name = "croniter"+version = "6.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "python-dateutil" },+ { name = "pytz" },+]+sdist = { url = "https://files.pythonhosted.org/packages/ad/2f/44d1ae153a0e27be56be43465e5cb39b9650c781e001e7864389deb25090/croniter-6.0.0.tar.gz", hash = "sha256:37c504b313956114a983ece2c2b07790b1f1094fe9d81cc94739214748255577", size = 64481, upload-time = "2024-12-17T17:17:47.32Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/07/4b/290b4c3efd6417a8b0c284896de19b1d5855e6dbdb97d2a35e68fa42de85/croniter-6.0.0-py2.py3-none-any.whl", hash = "sha256:2f878c3856f17896979b2a4379ba1f09c83e374931ea15cc835c5dd2eee9b368", size = 25468, upload-time = "2024-12-17T17:17:45.359Z" },+]++[[package]]+name = "cryptography"+version = "46.0.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cffi", marker = "platform_python_implementation != 'PyPy'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/60/04/ee2a9e8542e4fa2773b81771ff8349ff19cdd56b7258a0cc442639052edb/cryptography-46.0.5.tar.gz", hash = "sha256:abace499247268e3757271b2f1e244b36b06f8515cf27c4d49468fc9eb16e93d", size = 750064, upload-time = "2026-02-10T19:18:38.255Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f7/81/b0bb27f2ba931a65409c6b8a8b358a7f03c0e46eceacddff55f7c84b1f3b/cryptography-46.0.5-cp311-abi3-macosx_10_9_universal2.whl", hash = "sha256:351695ada9ea9618b3500b490ad54c739860883df6c1f555e088eaf25b1bbaad", size = 7176289, upload-time = "2026-02-10T19:17:08.274Z" },+ { url = "https://files.pythonhosted.org/packages/ff/9e/6b4397a3e3d15123de3b1806ef342522393d50736c13b20ec4c9ea6693a6/cryptography-46.0.5-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c18ff11e86df2e28854939acde2d003f7984f721eba450b56a200ad90eeb0e6b", size = 4275637, upload-time = "2026-02-10T19:17:10.53Z" },+ { url = "https://files.pythonhosted.org/packages/63/e7/471ab61099a3920b0c77852ea3f0ea611c9702f651600397ac567848b897/cryptography-46.0.5-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4d7e3d356b8cd4ea5aff04f129d5f66ebdc7b6f8eae802b93739ed520c47c79b", size = 4424742, upload-time = "2026-02-10T19:17:12.388Z" },+ { url = "https://files.pythonhosted.org/packages/37/53/a18500f270342d66bf7e4d9f091114e31e5ee9e7375a5aba2e85a91e0044/cryptography-46.0.5-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:50bfb6925eff619c9c023b967d5b77a54e04256c4281b0e21336a130cd7fc263", size = 4277528, upload-time = "2026-02-10T19:17:13.853Z" },+ { url = "https://files.pythonhosted.org/packages/22/29/c2e812ebc38c57b40e7c583895e73c8c5adb4d1e4a0cc4c5a4fdab2b1acc/cryptography-46.0.5-cp311-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:803812e111e75d1aa73690d2facc295eaefd4439be1023fefc4995eaea2af90d", size = 4947993, upload-time = "2026-02-10T19:17:15.618Z" },+ { url = "https://files.pythonhosted.org/packages/6b/e7/237155ae19a9023de7e30ec64e5d99a9431a567407ac21170a046d22a5a3/cryptography-46.0.5-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:3ee190460e2fbe447175cda91b88b84ae8322a104fc27766ad09428754a618ed", size = 4456855, upload-time = "2026-02-10T19:17:17.221Z" },+ { url = "https://files.pythonhosted.org/packages/2d/87/fc628a7ad85b81206738abbd213b07702bcbdada1dd43f72236ef3cffbb5/cryptography-46.0.5-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:f145bba11b878005c496e93e257c1e88f154d278d2638e6450d17e0f31e558d2", size = 3984635, upload-time = "2026-02-10T19:17:18.792Z" },+ { url = "https://files.pythonhosted.org/packages/84/29/65b55622bde135aedf4565dc509d99b560ee4095e56989e815f8fd2aa910/cryptography-46.0.5-cp311-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:e9251e3be159d1020c4030bd2e5f84d6a43fe54b6c19c12f51cde9542a2817b2", size = 4277038, upload-time = "2026-02-10T19:17:20.256Z" },+ { url = "https://files.pythonhosted.org/packages/bc/36/45e76c68d7311432741faf1fbf7fac8a196a0a735ca21f504c75d37e2558/cryptography-46.0.5-cp311-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:47fb8a66058b80e509c47118ef8a75d14c455e81ac369050f20ba0d23e77fee0", size = 4912181, upload-time = "2026-02-10T19:17:21.825Z" },+ { url = "https://files.pythonhosted.org/packages/6d/1a/c1ba8fead184d6e3d5afcf03d569acac5ad063f3ac9fb7258af158f7e378/cryptography-46.0.5-cp311-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:4c3341037c136030cb46e4b1e17b7418ea4cbd9dd207e4a6f3b2b24e0d4ac731", size = 4456482, upload-time = "2026-02-10T19:17:25.133Z" },+ { url = "https://files.pythonhosted.org/packages/f9/e5/3fb22e37f66827ced3b902cf895e6a6bc1d095b5b26be26bd13c441fdf19/cryptography-46.0.5-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:890bcb4abd5a2d3f852196437129eb3667d62630333aacc13dfd470fad3aaa82", size = 4405497, upload-time = "2026-02-10T19:17:26.66Z" },+ { url = "https://files.pythonhosted.org/packages/1a/df/9d58bb32b1121a8a2f27383fabae4d63080c7ca60b9b5c88be742be04ee7/cryptography-46.0.5-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:80a8d7bfdf38f87ca30a5391c0c9ce4ed2926918e017c29ddf643d0ed2778ea1", size = 4667819, upload-time = "2026-02-10T19:17:28.569Z" },+ { url = "https://files.pythonhosted.org/packages/ea/ed/325d2a490c5e94038cdb0117da9397ece1f11201f425c4e9c57fe5b9f08b/cryptography-46.0.5-cp311-abi3-win32.whl", hash = "sha256:60ee7e19e95104d4c03871d7d7dfb3d22ef8a9b9c6778c94e1c8fcc8365afd48", size = 3028230, upload-time = "2026-02-10T19:17:30.518Z" },+ { url = "https://files.pythonhosted.org/packages/e9/5a/ac0f49e48063ab4255d9e3b79f5def51697fce1a95ea1370f03dc9db76f6/cryptography-46.0.5-cp311-abi3-win_amd64.whl", hash = "sha256:38946c54b16c885c72c4f59846be9743d699eee2b69b6988e0a00a01f46a61a4", size = 3480909, upload-time = "2026-02-10T19:17:32.083Z" },+ { url = "https://files.pythonhosted.org/packages/e2/fa/a66aa722105ad6a458bebd64086ca2b72cdd361fed31763d20390f6f1389/cryptography-46.0.5-cp38-abi3-macosx_10_9_universal2.whl", hash = "sha256:4108d4c09fbbf2789d0c926eb4152ae1760d5a2d97612b92d508d96c861e4d31", size = 7170514, upload-time = "2026-02-10T19:17:56.267Z" },+ { url = "https://files.pythonhosted.org/packages/0f/04/c85bdeab78c8bc77b701bf0d9bdcf514c044e18a46dcff330df5448631b0/cryptography-46.0.5-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7d1f30a86d2757199cb2d56e48cce14deddf1f9c95f1ef1b64ee91ea43fe2e18", size = 4275349, upload-time = "2026-02-10T19:17:58.419Z" },+ { url = "https://files.pythonhosted.org/packages/5c/32/9b87132a2f91ee7f5223b091dc963055503e9b442c98fc0b8a5ca765fab0/cryptography-46.0.5-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:039917b0dc418bb9f6edce8a906572d69e74bd330b0b3fea4f79dab7f8ddd235", size = 4420667, upload-time = "2026-02-10T19:18:00.619Z" },+ { url = "https://files.pythonhosted.org/packages/a1/a6/a7cb7010bec4b7c5692ca6f024150371b295ee1c108bdc1c400e4c44562b/cryptography-46.0.5-cp38-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:ba2a27ff02f48193fc4daeadf8ad2590516fa3d0adeeb34336b96f7fa64c1e3a", size = 4276980, upload-time = "2026-02-10T19:18:02.379Z" },+ { url = "https://files.pythonhosted.org/packages/8e/7c/c4f45e0eeff9b91e3f12dbd0e165fcf2a38847288fcfd889deea99fb7b6d/cryptography-46.0.5-cp38-abi3-manylinux_2_28_ppc64le.whl", hash = "sha256:61aa400dce22cb001a98014f647dc21cda08f7915ceb95df0c9eaf84b4b6af76", size = 4939143, upload-time = "2026-02-10T19:18:03.964Z" },+ { url = "https://files.pythonhosted.org/packages/37/19/e1b8f964a834eddb44fa1b9a9976f4e414cbb7aa62809b6760c8803d22d1/cryptography-46.0.5-cp38-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:3ce58ba46e1bc2aac4f7d9290223cead56743fa6ab94a5d53292ffaac6a91614", size = 4453674, upload-time = "2026-02-10T19:18:05.588Z" },+ { url = "https://files.pythonhosted.org/packages/db/ed/db15d3956f65264ca204625597c410d420e26530c4e2943e05a0d2f24d51/cryptography-46.0.5-cp38-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:420d0e909050490d04359e7fdb5ed7e667ca5c3c402b809ae2563d7e66a92229", size = 3978801, upload-time = "2026-02-10T19:18:07.167Z" },+ { url = "https://files.pythonhosted.org/packages/41/e2/df40a31d82df0a70a0daf69791f91dbb70e47644c58581d654879b382d11/cryptography-46.0.5-cp38-abi3-manylinux_2_34_aarch64.whl", hash = "sha256:582f5fcd2afa31622f317f80426a027f30dc792e9c80ffee87b993200ea115f1", size = 4276755, upload-time = "2026-02-10T19:18:09.813Z" },+ { url = "https://files.pythonhosted.org/packages/33/45/726809d1176959f4a896b86907b98ff4391a8aa29c0aaaf9450a8a10630e/cryptography-46.0.5-cp38-abi3-manylinux_2_34_ppc64le.whl", hash = "sha256:bfd56bb4b37ed4f330b82402f6f435845a5f5648edf1ad497da51a8452d5d62d", size = 4901539, upload-time = "2026-02-10T19:18:11.263Z" },+ { url = "https://files.pythonhosted.org/packages/99/0f/a3076874e9c88ecb2ecc31382f6e7c21b428ede6f55aafa1aa272613e3cd/cryptography-46.0.5-cp38-abi3-manylinux_2_34_x86_64.whl", hash = "sha256:a3d507bb6a513ca96ba84443226af944b0f7f47dcc9a399d110cd6146481d24c", size = 4452794, upload-time = "2026-02-10T19:18:12.914Z" },+ { url = "https://files.pythonhosted.org/packages/02/ef/ffeb542d3683d24194a38f66ca17c0a4b8bf10631feef44a7ef64e631b1a/cryptography-46.0.5-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9f16fbdf4da055efb21c22d81b89f155f02ba420558db21288b3d0035bafd5f4", size = 4404160, upload-time = "2026-02-10T19:18:14.375Z" },+ { url = "https://files.pythonhosted.org/packages/96/93/682d2b43c1d5f1406ed048f377c0fc9fc8f7b0447a478d5c65ab3d3a66eb/cryptography-46.0.5-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:ced80795227d70549a411a4ab66e8ce307899fad2220ce5ab2f296e687eacde9", size = 4667123, upload-time = "2026-02-10T19:18:15.886Z" },+ { url = "https://files.pythonhosted.org/packages/45/2d/9c5f2926cb5300a8eefc3f4f0b3f3df39db7f7ce40c8365444c49363cbda/cryptography-46.0.5-cp38-abi3-win32.whl", hash = "sha256:02f547fce831f5096c9a567fd41bc12ca8f11df260959ecc7c3202555cc47a72", size = 3010220, upload-time = "2026-02-10T19:18:17.361Z" },+ { url = "https://files.pythonhosted.org/packages/48/ef/0c2f4a8e31018a986949d34a01115dd057bf536905dca38897bacd21fac3/cryptography-46.0.5-cp38-abi3-win_amd64.whl", hash = "sha256:556e106ee01aa13484ce9b0239bca667be5004efb0aabbed28d353df86445595", size = 3467050, upload-time = "2026-02-10T19:18:18.899Z" },+]++[[package]]+name = "cyclopts"+version = "4.5.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "attrs" },+ { name = "docstring-parser" },+ { name = "rich" },+ { name = "rich-rst" },+]+sdist = { url = "https://files.pythonhosted.org/packages/50/cd/1fd03921a95113182e6fdf84af5d47f07aa91c00c03ac074c192b0d4672c/cyclopts-4.5.2.tar.gz", hash = "sha256:7fe01b2d184c55c4555e06a0397602b319d87faa5b086b41913eaeaea52fae16", size = 162381, upload-time = "2026-02-11T16:30:46.051Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2b/03/f906829bcfcbb945f19d6a64240ffb66a31d69ca5533e95882f0efc9c13c/cyclopts-4.5.2-py3-none-any.whl", hash = "sha256:ee56ee23c2c81abc34b66b5aa8fd2698ca699740054e84e534449ec3eb7f944d", size = 200165, upload-time = "2026-02-11T16:30:46.942Z" },+]++[[package]]+name = "dashscope"+version = "1.25.12"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohttp" },+ { name = "certifi" },+ { name = "cryptography" },+ { name = "requests" },+ { name = "websocket-client" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/d9/7a/a1a9d0d293ca2cfabf54eedbea237d4d9e233251477d65c51c77667c407c/dashscope-1.25.12-py3-none-any.whl", hash = "sha256:92e98314bac0ff45b7f32f9120946771a85e614371b397f0874c1e579de60f98", size = 1342605, upload-time = "2026-02-09T09:02:50.82Z" },+]++[[package]]+name = "diskcache"+version = "5.6.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/3f/21/1c1ffc1a039ddcc459db43cc108658f32c57d271d7289a2794e401d0fdb6/diskcache-5.6.3.tar.gz", hash = "sha256:2c3a3fa2743d8535d832ec61c2054a1641f41775aa7c556758a109941e33e4fc", size = 67916, upload-time = "2023-08-31T06:12:00.316Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3f/27/4570e78fc0bf5ea0ca45eb1de3818a23787af9b390c0b0a0033a1b8236f9/diskcache-5.6.3-py3-none-any.whl", hash = "sha256:5e31b2d5fbad117cc363ebaf6b689474db18a1f6438bc82358b024abd4c2ca19", size = 45550, upload-time = "2023-08-31T06:11:58.822Z" },+]++[[package]]+name = "distlib"+version = "0.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/96/8e/709914eb2b5749865801041647dc7f4e6d00b549cfe88b65ca192995f07c/distlib-0.4.0.tar.gz", hash = "sha256:feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d", size = 614605, upload-time = "2025-07-17T16:52:00.465Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/33/6b/e0547afaf41bf2c42e52430072fa5658766e3d65bd4b03a563d1b6336f57/distlib-0.4.0-py2.py3-none-any.whl", hash = "sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16", size = 469047, upload-time = "2025-07-17T16:51:58.613Z" },+]++[[package]]+name = "distro"+version = "1.9.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/fc/f8/98eea607f65de6527f8a2e8885fc8015d3e6f5775df186e443e0964a11c3/distro-1.9.0.tar.gz", hash = "sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed", size = 60722, upload-time = "2023-12-24T09:54:32.31Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2", size = 20277, upload-time = "2023-12-24T09:54:30.421Z" },+]++[[package]]+name = "dnspython"+version = "2.8.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8c/8b/57666417c0f90f08bcafa776861060426765fdb422eb10212086fb811d26/dnspython-2.8.0.tar.gz", hash = "sha256:181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f", size = 368251, upload-time = "2025-09-07T18:58:00.022Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ba/5a/18ad964b0086c6e62e2e7500f7edc89e3faa45033c71c1893d34eed2b2de/dnspython-2.8.0-py3-none-any.whl", hash = "sha256:01d9bbc4a2d76bf0db7c1f729812ded6d912bd318d3b1cf81d30c0f845dbf3af", size = 331094, upload-time = "2025-09-07T18:57:58.071Z" },+]++[[package]]+name = "docstring-parser"+version = "0.17.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b2/9d/c3b43da9515bd270df0f80548d9944e389870713cc1fe2b8fb35fe2bcefd/docstring_parser-0.17.0.tar.gz", hash = "sha256:583de4a309722b3315439bb31d64ba3eebada841f2e2cee23b99df001434c912", size = 27442, upload-time = "2025-07-21T07:35:01.868Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/55/e2/2537ebcff11c1ee1ff17d8d0b6f4db75873e3b0fb32c2d4a2ee31ecb310a/docstring_parser-0.17.0-py3-none-any.whl", hash = "sha256:cf2569abd23dce8099b300f9b4fa8191e9582dda731fd533daf54c4551658708", size = 36896, upload-time = "2025-07-21T07:35:00.684Z" },+]++[[package]]+name = "docutils"+version = "0.22.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ae/b6/03bb70946330e88ffec97aefd3ea75ba575cb2e762061e0e62a213befee8/docutils-0.22.4.tar.gz", hash = "sha256:4db53b1fde9abecbb74d91230d32ab626d94f6badfc575d6db9194a49df29968", size = 2291750, upload-time = "2025-12-18T19:00:26.443Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/02/10/5da547df7a391dcde17f59520a231527b8571e6f46fc8efb02ccb370ab12/docutils-0.22.4-py3-none-any.whl", hash = "sha256:d0013f540772d1420576855455d050a2180186c91c15779301ac2ccb3eeb68de", size = 633196, upload-time = "2025-12-18T19:00:18.077Z" },+]++[[package]]+name = "docx2txt"+version = "0.9"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ea/07/4486a038624e885e227fe79111914c01f55aa70a51920ff1a7f2bd216d10/docx2txt-0.9.tar.gz", hash = "sha256:18013f6229b14909028b19aa7bf4f8f3d6e4632d7b089ab29f7f0a4d1f660e28", size = 3613, upload-time = "2025-03-24T20:59:25.21Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d6/51/756e71bec48ece0ecc2a10e921ef2756e197dcb7e478f2b43673b6683902/docx2txt-0.9-py3-none-any.whl", hash = "sha256:e3718c0653fd6f2fcf4b51b02a61452ad1c38a4c163bcf0a6fd9486cd38f529a", size = 4025, upload-time = "2025-03-24T20:59:24.394Z" },+]++[[package]]+name = "durationpy"+version = "0.10"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/9d/a4/e44218c2b394e31a6dd0d6b095c4e1f32d0be54c2a4b250032d717647bab/durationpy-0.10.tar.gz", hash = "sha256:1fa6893409a6e739c9c72334fc65cca1f355dbdd93405d30f726deb5bde42fba", size = 3335, upload-time = "2025-05-17T13:52:37.26Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b0/0d/9feae160378a3553fa9a339b0e9c1a048e147a4127210e286ef18b730f03/durationpy-0.10-py3-none-any.whl", hash = "sha256:3b41e1b601234296b4fb368338fdcd3e13e0b4fb5b67345948f4f2bf9868b286", size = 3922, upload-time = "2025-05-17T13:52:36.463Z" },+]++[[package]]+name = "email-validator"+version = "2.3.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "dnspython" },+ { name = "idna" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f5/22/900cb125c76b7aaa450ce02fd727f452243f2e91a61af068b40adba60ea9/email_validator-2.3.0.tar.gz", hash = "sha256:9fc05c37f2f6cf439ff414f8fc46d917929974a82244c20eb10231ba60c54426", size = 51238, upload-time = "2025-08-26T13:09:06.831Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/de/15/545e2b6cf2e3be84bc1ed85613edd75b8aea69807a71c26f4ca6a9258e82/email_validator-2.3.0-py3-none-any.whl", hash = "sha256:80f13f623413e6b197ae73bb10bf4eb0908faf509ad8362c5edeb0be7fd450b4", size = 35604, upload-time = "2025-08-26T13:09:05.858Z" },+]++[[package]]+name = "exceptiongroup"+version = "1.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" },+]++[[package]]+name = "fakeredis"+version = "2.33.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "redis" },+ { name = "sortedcontainers" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5f/f9/57464119936414d60697fcbd32f38909bb5688b616ae13de6e98384433e0/fakeredis-2.33.0.tar.gz", hash = "sha256:d7bc9a69d21df108a6451bbffee23b3eba432c21a654afc7ff2d295428ec5770", size = 175187, upload-time = "2025-12-16T19:45:52.269Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6e/78/a850fed8aeef96d4a99043c90b818b2ed5419cd5b24a4049fd7cfb9f1471/fakeredis-2.33.0-py3-none-any.whl", hash = "sha256:de535f3f9ccde1c56672ab2fdd6a8efbc4f2619fc2f1acc87b8737177d71c965", size = 119605, upload-time = "2025-12-16T19:45:51.08Z" },+]++[package.optional-dependencies]+lua = [+ { name = "lupa" },+]++[[package]]+name = "fastmcp"+version = "2.14.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "authlib" },+ { name = "cyclopts" },+ { name = "exceptiongroup" },+ { name = "httpx" },+ { name = "jsonref" },+ { name = "jsonschema-path" },+ { name = "mcp" },+ { name = "openapi-pydantic" },+ { name = "packaging" },+ { name = "platformdirs" },+ { name = "py-key-value-aio", extra = ["disk", "keyring", "memory"] },+ { name = "pydantic", extra = ["email"] },+ { name = "pydocket" },+ { name = "pyperclip" },+ { name = "python-dotenv" },+ { name = "rich" },+ { name = "uvicorn" },+ { name = "websockets" },+]+sdist = { url = "https://files.pythonhosted.org/packages/3b/32/982678d44f13849530a74ab101ed80e060c2ee6cf87471f062dcf61705fd/fastmcp-2.14.5.tar.gz", hash = "sha256:38944dc582c541d55357082bda2241cedb42cd3a78faea8a9d6a2662c62a42d7", size = 8296329, upload-time = "2026-02-03T15:35:21.005Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e5/c1/1a35ec68ff76ea8443aa115b18bcdee748a4ada2124537ee90522899ff9f/fastmcp-2.14.5-py3-none-any.whl", hash = "sha256:d81e8ec813f5089d3624bec93944beaefa86c0c3a4ef1111cbef676a761ebccf", size = 417784, upload-time = "2026-02-03T15:35:18.489Z" },+]++[[package]]+name = "filelock"+version = "3.20.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1d/65/ce7f1b70157833bf3cb851b556a37d4547ceafc158aa9b34b36782f23696/filelock-3.20.3.tar.gz", hash = "sha256:18c57ee915c7ec61cff0ecf7f0f869936c7c30191bb0cf406f1341778d0834e1", size = 19485, upload-time = "2026-01-09T17:55:05.421Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b5/36/7fb70f04bf00bc646cd5bb45aa9eddb15e19437a28b8fb2b4a5249fac770/filelock-3.20.3-py3-none-any.whl", hash = "sha256:4b0dda527ee31078689fc205ec4f1c1bf7d56cf88b6dc9426c4f230e46c2dce1", size = 16701, upload-time = "2026-01-09T17:55:04.334Z" },+]++[[package]]+name = "flatbuffers"+version = "25.12.19"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e8/2d/d2a548598be01649e2d46231d151a6c56d10b964d94043a335ae56ea2d92/flatbuffers-25.12.19-py2.py3-none-any.whl", hash = "sha256:7634f50c427838bb021c2d66a3d1168e9d199b0607e6329399f04846d42e20b4", size = 26661, upload-time = "2025-12-19T23:16:13.622Z" },+]++[[package]]+name = "frozenlist"+version = "1.8.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/2d/f5/c831fac6cc817d26fd54c7eaccd04ef7e0288806943f7cc5bbf69f3ac1f0/frozenlist-1.8.0.tar.gz", hash = "sha256:3ede829ed8d842f6cd48fc7081d7a41001a56f1f38603f9d49bf3020d59a31ad", size = 45875, upload-time = "2025-10-06T05:38:17.865Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2d/40/0832c31a37d60f60ed79e9dfb5a92e1e2af4f40a16a29abcc7992af9edff/frozenlist-1.8.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8d92f1a84bb12d9e56f818b3a746f3efba93c1b63c8387a73dde655e1e42282a", size = 85717, upload-time = "2025-10-06T05:36:27.341Z" },+ { url = "https://files.pythonhosted.org/packages/30/ba/b0b3de23f40bc55a7057bd38434e25c34fa48e17f20ee273bbde5e0650f3/frozenlist-1.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:96153e77a591c8adc2ee805756c61f59fef4cf4073a9275ee86fe8cba41241f7", size = 49651, upload-time = "2025-10-06T05:36:28.855Z" },+ { url = "https://files.pythonhosted.org/packages/0c/ab/6e5080ee374f875296c4243c381bbdef97a9ac39c6e3ce1d5f7d42cb78d6/frozenlist-1.8.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f21f00a91358803399890ab167098c131ec2ddd5f8f5fd5fe9c9f2c6fcd91e40", size = 49417, upload-time = "2025-10-06T05:36:29.877Z" },+ { url = "https://files.pythonhosted.org/packages/d5/4e/e4691508f9477ce67da2015d8c00acd751e6287739123113a9fca6f1604e/frozenlist-1.8.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:fb30f9626572a76dfe4293c7194a09fb1fe93ba94c7d4f720dfae3b646b45027", size = 234391, upload-time = "2025-10-06T05:36:31.301Z" },+ { url = "https://files.pythonhosted.org/packages/40/76/c202df58e3acdf12969a7895fd6f3bc016c642e6726aa63bd3025e0fc71c/frozenlist-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eaa352d7047a31d87dafcacbabe89df0aa506abb5b1b85a2fb91bc3faa02d822", size = 233048, upload-time = "2025-10-06T05:36:32.531Z" },+ { url = "https://files.pythonhosted.org/packages/f9/c0/8746afb90f17b73ca5979c7a3958116e105ff796e718575175319b5bb4ce/frozenlist-1.8.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:03ae967b4e297f58f8c774c7eabcce57fe3c2434817d4385c50661845a058121", size = 226549, upload-time = "2025-10-06T05:36:33.706Z" },+ { url = "https://files.pythonhosted.org/packages/7e/eb/4c7eefc718ff72f9b6c4893291abaae5fbc0c82226a32dcd8ef4f7a5dbef/frozenlist-1.8.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f6292f1de555ffcc675941d65fffffb0a5bcd992905015f85d0592201793e0e5", size = 239833, upload-time = "2025-10-06T05:36:34.947Z" },+ { url = "https://files.pythonhosted.org/packages/c2/4e/e5c02187cf704224f8b21bee886f3d713ca379535f16893233b9d672ea71/frozenlist-1.8.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:29548f9b5b5e3460ce7378144c3010363d8035cea44bc0bf02d57f5a685e084e", size = 245363, upload-time = "2025-10-06T05:36:36.534Z" },+ { url = "https://files.pythonhosted.org/packages/1f/96/cb85ec608464472e82ad37a17f844889c36100eed57bea094518bf270692/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ec3cc8c5d4084591b4237c0a272cc4f50a5b03396a47d9caaf76f5d7b38a4f11", size = 229314, upload-time = "2025-10-06T05:36:38.582Z" },+ { url = "https://files.pythonhosted.org/packages/5d/6f/4ae69c550e4cee66b57887daeebe006fe985917c01d0fff9caab9883f6d0/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:517279f58009d0b1f2e7c1b130b377a349405da3f7621ed6bfae50b10adf20c1", size = 243365, upload-time = "2025-10-06T05:36:40.152Z" },+ { url = "https://files.pythonhosted.org/packages/7a/58/afd56de246cf11780a40a2c28dc7cbabbf06337cc8ddb1c780a2d97e88d8/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:db1e72ede2d0d7ccb213f218df6a078a9c09a7de257c2fe8fcef16d5925230b1", size = 237763, upload-time = "2025-10-06T05:36:41.355Z" },+ { url = "https://files.pythonhosted.org/packages/cb/36/cdfaf6ed42e2644740d4a10452d8e97fa1c062e2a8006e4b09f1b5fd7d63/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:b4dec9482a65c54a5044486847b8a66bf10c9cb4926d42927ec4e8fd5db7fed8", size = 240110, upload-time = "2025-10-06T05:36:42.716Z" },+ { url = "https://files.pythonhosted.org/packages/03/a8/9ea226fbefad669f11b52e864c55f0bd57d3c8d7eb07e9f2e9a0b39502e1/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:21900c48ae04d13d416f0e1e0c4d81f7931f73a9dfa0b7a8746fb2fe7dd970ed", size = 233717, upload-time = "2025-10-06T05:36:44.251Z" },+ { url = "https://files.pythonhosted.org/packages/1e/0b/1b5531611e83ba7d13ccc9988967ea1b51186af64c42b7a7af465dcc9568/frozenlist-1.8.0-cp313-cp313-win32.whl", hash = "sha256:8b7b94a067d1c504ee0b16def57ad5738701e4ba10cec90529f13fa03c833496", size = 39628, upload-time = "2025-10-06T05:36:45.423Z" },+ { url = "https://files.pythonhosted.org/packages/d8/cf/174c91dbc9cc49bc7b7aab74d8b734e974d1faa8f191c74af9b7e80848e6/frozenlist-1.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:878be833caa6a3821caf85eb39c5ba92d28e85df26d57afb06b35b2efd937231", size = 43882, upload-time = "2025-10-06T05:36:46.796Z" },+ { url = "https://files.pythonhosted.org/packages/c1/17/502cd212cbfa96eb1388614fe39a3fc9ab87dbbe042b66f97acb57474834/frozenlist-1.8.0-cp313-cp313-win_arm64.whl", hash = "sha256:44389d135b3ff43ba8cc89ff7f51f5a0bb6b63d829c8300f79a2fe4fe61bcc62", size = 39676, upload-time = "2025-10-06T05:36:47.8Z" },+ { url = "https://files.pythonhosted.org/packages/d2/5c/3bbfaa920dfab09e76946a5d2833a7cbdf7b9b4a91c714666ac4855b88b4/frozenlist-1.8.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:e25ac20a2ef37e91c1b39938b591457666a0fa835c7783c3a8f33ea42870db94", size = 89235, upload-time = "2025-10-06T05:36:48.78Z" },+ { url = "https://files.pythonhosted.org/packages/d2/d6/f03961ef72166cec1687e84e8925838442b615bd0b8854b54923ce5b7b8a/frozenlist-1.8.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:07cdca25a91a4386d2e76ad992916a85038a9b97561bf7a3fd12d5d9ce31870c", size = 50742, upload-time = "2025-10-06T05:36:49.837Z" },+ { url = "https://files.pythonhosted.org/packages/1e/bb/a6d12b7ba4c3337667d0e421f7181c82dda448ce4e7ad7ecd249a16fa806/frozenlist-1.8.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4e0c11f2cc6717e0a741f84a527c52616140741cd812a50422f83dc31749fb52", size = 51725, upload-time = "2025-10-06T05:36:50.851Z" },+ { url = "https://files.pythonhosted.org/packages/bc/71/d1fed0ffe2c2ccd70b43714c6cab0f4188f09f8a67a7914a6b46ee30f274/frozenlist-1.8.0-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b3210649ee28062ea6099cfda39e147fa1bc039583c8ee4481cb7811e2448c51", size = 284533, upload-time = "2025-10-06T05:36:51.898Z" },+ { url = "https://files.pythonhosted.org/packages/c9/1f/fb1685a7b009d89f9bf78a42d94461bc06581f6e718c39344754a5d9bada/frozenlist-1.8.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:581ef5194c48035a7de2aefc72ac6539823bb71508189e5de01d60c9dcd5fa65", size = 292506, upload-time = "2025-10-06T05:36:53.101Z" },+ { url = "https://files.pythonhosted.org/packages/e6/3b/b991fe1612703f7e0d05c0cf734c1b77aaf7c7d321df4572e8d36e7048c8/frozenlist-1.8.0-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3ef2d026f16a2b1866e1d86fc4e1291e1ed8a387b2c333809419a2f8b3a77b82", size = 274161, upload-time = "2025-10-06T05:36:54.309Z" },+ { url = "https://files.pythonhosted.org/packages/ca/ec/c5c618767bcdf66e88945ec0157d7f6c4a1322f1473392319b7a2501ded7/frozenlist-1.8.0-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5500ef82073f599ac84d888e3a8c1f77ac831183244bfd7f11eaa0289fb30714", size = 294676, upload-time = "2025-10-06T05:36:55.566Z" },+ { url = "https://files.pythonhosted.org/packages/7c/ce/3934758637d8f8a88d11f0585d6495ef54b2044ed6ec84492a91fa3b27aa/frozenlist-1.8.0-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:50066c3997d0091c411a66e710f4e11752251e6d2d73d70d8d5d4c76442a199d", size = 300638, upload-time = "2025-10-06T05:36:56.758Z" },+ { url = "https://files.pythonhosted.org/packages/fc/4f/a7e4d0d467298f42de4b41cbc7ddaf19d3cfeabaf9ff97c20c6c7ee409f9/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:5c1c8e78426e59b3f8005e9b19f6ff46e5845895adbde20ece9218319eca6506", size = 283067, upload-time = "2025-10-06T05:36:57.965Z" },+ { url = "https://files.pythonhosted.org/packages/dc/48/c7b163063d55a83772b268e6d1affb960771b0e203b632cfe09522d67ea5/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:eefdba20de0d938cec6a89bd4d70f346a03108a19b9df4248d3cf0d88f1b0f51", size = 292101, upload-time = "2025-10-06T05:36:59.237Z" },+ { url = "https://files.pythonhosted.org/packages/9f/d0/2366d3c4ecdc2fd391e0afa6e11500bfba0ea772764d631bbf82f0136c9d/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:cf253e0e1c3ceb4aaff6df637ce033ff6535fb8c70a764a8f46aafd3d6ab798e", size = 289901, upload-time = "2025-10-06T05:37:00.811Z" },+ { url = "https://files.pythonhosted.org/packages/b8/94/daff920e82c1b70e3618a2ac39fbc01ae3e2ff6124e80739ce5d71c9b920/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:032efa2674356903cd0261c4317a561a6850f3ac864a63fc1583147fb05a79b0", size = 289395, upload-time = "2025-10-06T05:37:02.115Z" },+ { url = "https://files.pythonhosted.org/packages/e3/20/bba307ab4235a09fdcd3cc5508dbabd17c4634a1af4b96e0f69bfe551ebd/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6da155091429aeba16851ecb10a9104a108bcd32f6c1642867eadaee401c1c41", size = 283659, upload-time = "2025-10-06T05:37:03.711Z" },+ { url = "https://files.pythonhosted.org/packages/fd/00/04ca1c3a7a124b6de4f8a9a17cc2fcad138b4608e7a3fc5877804b8715d7/frozenlist-1.8.0-cp313-cp313t-win32.whl", hash = "sha256:0f96534f8bfebc1a394209427d0f8a63d343c9779cda6fc25e8e121b5fd8555b", size = 43492, upload-time = "2025-10-06T05:37:04.915Z" },+ { url = "https://files.pythonhosted.org/packages/59/5e/c69f733a86a94ab10f68e496dc6b7e8bc078ebb415281d5698313e3af3a1/frozenlist-1.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:5d63a068f978fc69421fb0e6eb91a9603187527c86b7cd3f534a5b77a592b888", size = 48034, upload-time = "2025-10-06T05:37:06.343Z" },+ { url = "https://files.pythonhosted.org/packages/16/6c/be9d79775d8abe79b05fa6d23da99ad6e7763a1d080fbae7290b286093fd/frozenlist-1.8.0-cp313-cp313t-win_arm64.whl", hash = "sha256:bf0a7e10b077bf5fb9380ad3ae8ce20ef919a6ad93b4552896419ac7e1d8e042", size = 41749, upload-time = "2025-10-06T05:37:07.431Z" },+ { url = "https://files.pythonhosted.org/packages/9a/9a/e35b4a917281c0b8419d4207f4334c8e8c5dbf4f3f5f9ada73958d937dcc/frozenlist-1.8.0-py3-none-any.whl", hash = "sha256:0c18a16eab41e82c295618a77502e17b195883241c563b00f0aa5106fc4eaa0d", size = 13409, upload-time = "2025-10-06T05:38:16.721Z" },+]++[[package]]+name = "fsspec"+version = "2026.2.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/51/7c/f60c259dcbf4f0c47cc4ddb8f7720d2dcdc8888c8e5ad84c73ea4531cc5b/fsspec-2026.2.0.tar.gz", hash = "sha256:6544e34b16869f5aacd5b90bdf1a71acb37792ea3ddf6125ee69a22a53fb8bff", size = 313441, upload-time = "2026-02-05T21:50:53.743Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e6/ab/fb21f4c939bb440104cc2b396d3be1d9b7a9fd3c6c2a53d98c45b3d7c954/fsspec-2026.2.0-py3-none-any.whl", hash = "sha256:98de475b5cb3bd66bedd5c4679e87b4fdfe1a3bf4d707b151b3c07e58c9a2437", size = 202505, upload-time = "2026-02-05T21:50:51.819Z" },+]++[[package]]+name = "googleapis-common-protos"+version = "1.72.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "protobuf" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e5/7b/adfd75544c415c487b33061fe7ae526165241c1ea133f9a9125a56b39fd8/googleapis_common_protos-1.72.0.tar.gz", hash = "sha256:e55a601c1b32b52d7a3e65f43563e2aa61bcd737998ee672ac9b951cd49319f5", size = 147433, upload-time = "2025-11-06T18:29:24.087Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c4/ab/09169d5a4612a5f92490806649ac8d41e3ec9129c636754575b3553f4ea4/googleapis_common_protos-1.72.0-py3-none-any.whl", hash = "sha256:4299c5a82d5ae1a9702ada957347726b167f9f8d1fc352477702a1e851ff4038", size = 297515, upload-time = "2025-11-06T18:29:13.14Z" },+]++[[package]]+name = "greenlet"+version = "3.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8a/99/1cd3411c56a410994669062bd73dd58270c00cc074cac15f385a1fd91f8a/greenlet-3.3.1.tar.gz", hash = "sha256:41848f3230b58c08bb43dee542e74a2a2e34d3c59dc3076cec9151aeeedcae98", size = 184690, upload-time = "2026-01-23T15:31:02.076Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ec/ab/d26750f2b7242c2b90ea2ad71de70cfcd73a948a49513188a0fc0d6fc15a/greenlet-3.3.1-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:7ab327905cabb0622adca5971e488064e35115430cec2c35a50fd36e72a315b3", size = 275205, upload-time = "2026-01-23T15:30:24.556Z" },+ { url = "https://files.pythonhosted.org/packages/10/d3/be7d19e8fad7c5a78eeefb2d896a08cd4643e1e90c605c4be3b46264998f/greenlet-3.3.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:65be2f026ca6a176f88fb935ee23c18333ccea97048076aef4db1ef5bc0713ac", size = 599284, upload-time = "2026-01-23T16:00:58.584Z" },+ { url = "https://files.pythonhosted.org/packages/ae/21/fe703aaa056fdb0f17e5afd4b5c80195bbdab701208918938bd15b00d39b/greenlet-3.3.1-cp313-cp313-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7a3ae05b3d225b4155bda56b072ceb09d05e974bc74be6c3fc15463cf69f33fd", size = 610274, upload-time = "2026-01-23T16:05:29.312Z" },+ { url = "https://files.pythonhosted.org/packages/cb/86/5c6ab23bb3c28c21ed6bebad006515cfe08b04613eb105ca0041fecca852/greenlet-3.3.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6423481193bbbe871313de5fd06a082f2649e7ce6e08015d2a76c1e9186ca5b3", size = 612904, upload-time = "2026-01-23T15:32:52.317Z" },+ { url = "https://files.pythonhosted.org/packages/c2/f3/7949994264e22639e40718c2daf6f6df5169bf48fb038c008a489ec53a50/greenlet-3.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:33a956fe78bbbda82bfc95e128d61129b32d66bcf0a20a1f0c08aa4839ffa951", size = 1567316, upload-time = "2026-01-23T16:04:23.316Z" },+ { url = "https://files.pythonhosted.org/packages/8d/6e/d73c94d13b6465e9f7cd6231c68abde838bb22408596c05d9059830b7872/greenlet-3.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4b065d3284be43728dd280f6f9a13990b56470b81be20375a207cdc814a983f2", size = 1636549, upload-time = "2026-01-23T15:33:48.643Z" },+ { url = "https://files.pythonhosted.org/packages/5e/b3/c9c23a6478b3bcc91f979ce4ca50879e4d0b2bd7b9a53d8ecded719b92e2/greenlet-3.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:27289986f4e5b0edec7b5a91063c109f0276abb09a7e9bdab08437525977c946", size = 227042, upload-time = "2026-01-23T15:33:58.216Z" },+ { url = "https://files.pythonhosted.org/packages/90/e7/824beda656097edee36ab15809fd063447b200cc03a7f6a24c34d520bc88/greenlet-3.3.1-cp313-cp313-win_arm64.whl", hash = "sha256:2f080e028001c5273e0b42690eaf359aeef9cb1389da0f171ea51a5dc3c7608d", size = 226294, upload-time = "2026-01-23T15:30:52.73Z" },+]++[[package]]+name = "grpcio"+version = "1.78.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/8a/3d098f35c143a89520e568e6539cc098fcd294495910e359889ce8741c84/grpcio-1.78.0.tar.gz", hash = "sha256:7382b95189546f375c174f53a5fa873cef91c4b8005faa05cc5b3beea9c4f1c5", size = 12852416, upload-time = "2026-02-06T09:57:18.093Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/05/a9/8f75894993895f361ed8636cd9237f4ab39ef87fd30db17467235ed1c045/grpcio-1.78.0-cp313-cp313-linux_armv7l.whl", hash = "sha256:ce3a90455492bf8bfa38e56fbbe1dbd4f872a3d8eeaf7337dc3b1c8aa28c271b", size = 5920143, upload-time = "2026-02-06T09:55:52.035Z" },+ { url = "https://files.pythonhosted.org/packages/55/06/0b78408e938ac424100100fd081189451b472236e8a3a1f6500390dc4954/grpcio-1.78.0-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:2bf5e2e163b356978b23652c4818ce4759d40f4712ee9ec5a83c4be6f8c23a3a", size = 11803926, upload-time = "2026-02-06T09:55:55.494Z" },+ { url = "https://files.pythonhosted.org/packages/88/93/b59fe7832ff6ae3c78b813ea43dac60e295fa03606d14d89d2e0ec29f4f3/grpcio-1.78.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8f2ac84905d12918e4e55a16da17939eb63e433dc11b677267c35568aa63fc84", size = 6478628, upload-time = "2026-02-06T09:55:58.533Z" },+ { url = "https://files.pythonhosted.org/packages/ed/df/e67e3734527f9926b7d9c0dde6cd998d1d26850c3ed8eeec81297967ac67/grpcio-1.78.0-cp313-cp313-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:b58f37edab4a3881bc6c9bca52670610e0c9ca14e2ea3cf9debf185b870457fb", size = 7173574, upload-time = "2026-02-06T09:56:01.786Z" },+ { url = "https://files.pythonhosted.org/packages/a6/62/cc03fffb07bfba982a9ec097b164e8835546980aec25ecfa5f9c1a47e022/grpcio-1.78.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:735e38e176a88ce41840c21bb49098ab66177c64c82426e24e0082500cc68af5", size = 6692639, upload-time = "2026-02-06T09:56:04.529Z" },+ { url = "https://files.pythonhosted.org/packages/bf/9a/289c32e301b85bdb67d7ec68b752155e674ee3ba2173a1858f118e399ef3/grpcio-1.78.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:2045397e63a7a0ee7957c25f7dbb36ddc110e0cfb418403d110c0a7a68a844e9", size = 7268838, upload-time = "2026-02-06T09:56:08.397Z" },+ { url = "https://files.pythonhosted.org/packages/0e/79/1be93f32add280461fa4773880196572563e9c8510861ac2da0ea0f892b6/grpcio-1.78.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:a9f136fbafe7ccf4ac7e8e0c28b31066e810be52d6e344ef954a3a70234e1702", size = 8251878, upload-time = "2026-02-06T09:56:10.914Z" },+ { url = "https://files.pythonhosted.org/packages/65/65/793f8e95296ab92e4164593674ae6291b204bb5f67f9d4a711489cd30ffa/grpcio-1.78.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:748b6138585379c737adc08aeffd21222abbda1a86a0dca2a39682feb9196c20", size = 7695412, upload-time = "2026-02-06T09:56:13.593Z" },+ { url = "https://files.pythonhosted.org/packages/1c/9f/1e233fe697ecc82845942c2822ed06bb522e70d6771c28d5528e4c50f6a4/grpcio-1.78.0-cp313-cp313-win32.whl", hash = "sha256:271c73e6e5676afe4fc52907686670c7cea22ab2310b76a59b678403ed40d670", size = 4064899, upload-time = "2026-02-06T09:56:15.601Z" },+ { url = "https://files.pythonhosted.org/packages/4d/27/d86b89e36de8a951501fb06a0f38df19853210f341d0b28f83f4aa0ffa08/grpcio-1.78.0-cp313-cp313-win_amd64.whl", hash = "sha256:f2d4e43ee362adfc05994ed479334d5a451ab7bc3f3fee1b796b8ca66895acb4", size = 4797393, upload-time = "2026-02-06T09:56:17.882Z" },+]++[[package]]+name = "h11"+version = "0.16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },+]++[[package]]+name = "hf-xet"+version = "1.2.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/5e/6e/0f11bacf08a67f7fb5ee09740f2ca54163863b07b70d579356e9222ce5d8/hf_xet-1.2.0.tar.gz", hash = "sha256:a8c27070ca547293b6890c4bf389f713f80e8c478631432962bb7f4bc0bd7d7f", size = 506020, upload-time = "2025-10-24T19:04:32.129Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9e/a5/85ef910a0aa034a2abcfadc360ab5ac6f6bc4e9112349bd40ca97551cff0/hf_xet-1.2.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:ceeefcd1b7aed4956ae8499e2199607765fbd1c60510752003b6cc0b8413b649", size = 2861870, upload-time = "2025-10-24T19:04:11.422Z" },+ { url = "https://files.pythonhosted.org/packages/ea/40/e2e0a7eb9a51fe8828ba2d47fe22a7e74914ea8a0db68a18c3aa7449c767/hf_xet-1.2.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:b70218dd548e9840224df5638fdc94bd033552963cfa97f9170829381179c813", size = 2717584, upload-time = "2025-10-24T19:04:09.586Z" },+ { url = "https://files.pythonhosted.org/packages/a5/7d/daf7f8bc4594fdd59a8a596f9e3886133fdc68e675292218a5e4c1b7e834/hf_xet-1.2.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7d40b18769bb9a8bc82a9ede575ce1a44c75eb80e7375a01d76259089529b5dc", size = 3315004, upload-time = "2025-10-24T19:04:00.314Z" },+ { url = "https://files.pythonhosted.org/packages/b1/ba/45ea2f605fbf6d81c8b21e4d970b168b18a53515923010c312c06cd83164/hf_xet-1.2.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:cd3a6027d59cfb60177c12d6424e31f4b5ff13d8e3a1247b3a584bf8977e6df5", size = 3222636, upload-time = "2025-10-24T19:03:58.111Z" },+ { url = "https://files.pythonhosted.org/packages/4a/1d/04513e3cab8f29ab8c109d309ddd21a2705afab9d52f2ba1151e0c14f086/hf_xet-1.2.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6de1fc44f58f6dd937956c8d304d8c2dea264c80680bcfa61ca4a15e7b76780f", size = 3408448, upload-time = "2025-10-24T19:04:20.951Z" },+ { url = "https://files.pythonhosted.org/packages/f0/7c/60a2756d7feec7387db3a1176c632357632fbe7849fce576c5559d4520c7/hf_xet-1.2.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f182f264ed2acd566c514e45da9f2119110e48a87a327ca271027904c70c5832", size = 3503401, upload-time = "2025-10-24T19:04:22.549Z" },+ { url = "https://files.pythonhosted.org/packages/4e/64/48fffbd67fb418ab07451e4ce641a70de1c40c10a13e25325e24858ebe5a/hf_xet-1.2.0-cp313-cp313t-win_amd64.whl", hash = "sha256:293a7a3787e5c95d7be1857358a9130694a9c6021de3f27fa233f37267174382", size = 2900866, upload-time = "2025-10-24T19:04:33.461Z" },+ { url = "https://files.pythonhosted.org/packages/96/2d/22338486473df5923a9ab7107d375dbef9173c338ebef5098ef593d2b560/hf_xet-1.2.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:46740d4ac024a7ca9b22bebf77460ff43332868b661186a8e46c227fdae01848", size = 2866099, upload-time = "2025-10-24T19:04:15.366Z" },+ { url = "https://files.pythonhosted.org/packages/7f/8c/c5becfa53234299bc2210ba314eaaae36c2875e0045809b82e40a9544f0c/hf_xet-1.2.0-cp37-abi3-macosx_11_0_arm64.whl", hash = "sha256:27df617a076420d8845bea087f59303da8be17ed7ec0cd7ee3b9b9f579dff0e4", size = 2722178, upload-time = "2025-10-24T19:04:13.695Z" },+ { url = "https://files.pythonhosted.org/packages/9a/92/cf3ab0b652b082e66876d08da57fcc6fa2f0e6c70dfbbafbd470bb73eb47/hf_xet-1.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3651fd5bfe0281951b988c0facbe726aa5e347b103a675f49a3fa8144c7968fd", size = 3320214, upload-time = "2025-10-24T19:04:03.596Z" },+ { url = "https://files.pythonhosted.org/packages/46/92/3f7ec4a1b6a65bf45b059b6d4a5d38988f63e193056de2f420137e3c3244/hf_xet-1.2.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:d06fa97c8562fb3ee7a378dd9b51e343bc5bc8190254202c9771029152f5e08c", size = 3229054, upload-time = "2025-10-24T19:04:01.949Z" },+ { url = "https://files.pythonhosted.org/packages/0b/dd/7ac658d54b9fb7999a0ccb07ad863b413cbaf5cf172f48ebcd9497ec7263/hf_xet-1.2.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:4c1428c9ae73ec0939410ec73023c4f842927f39db09b063b9482dac5a3bb737", size = 3413812, upload-time = "2025-10-24T19:04:24.585Z" },+ { url = "https://files.pythonhosted.org/packages/92/68/89ac4e5b12a9ff6286a12174c8538a5930e2ed662091dd2572bbe0a18c8a/hf_xet-1.2.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:a55558084c16b09b5ed32ab9ed38421e2d87cf3f1f89815764d1177081b99865", size = 3508920, upload-time = "2025-10-24T19:04:26.927Z" },+ { url = "https://files.pythonhosted.org/packages/cb/44/870d44b30e1dcfb6a65932e3e1506c103a8a5aea9103c337e7a53180322c/hf_xet-1.2.0-cp37-abi3-win_amd64.whl", hash = "sha256:e6584a52253f72c9f52f9e549d5895ca7a471608495c4ecaa6cc73dba2b24d69", size = 2905735, upload-time = "2025-10-24T19:04:35.928Z" },+]++[[package]]+name = "httpcore"+version = "1.0.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" },+]++[[package]]+name = "httptools"+version = "0.7.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b5/46/120a669232c7bdedb9d52d4aeae7e6c7dfe151e99dc70802e2fc7a5e1993/httptools-0.7.1.tar.gz", hash = "sha256:abd72556974f8e7c74a259655924a717a2365b236c882c3f6f8a45fe94703ac9", size = 258961, upload-time = "2025-10-10T03:55:08.559Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/09/8f/c77b1fcbfd262d422f12da02feb0d218fa228d52485b77b953832105bb90/httptools-0.7.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6babce6cfa2a99545c60bfef8bee0cc0545413cb0018f617c8059a30ad985de3", size = 202889, upload-time = "2025-10-10T03:54:47.089Z" },+ { url = "https://files.pythonhosted.org/packages/0a/1a/22887f53602feaa066354867bc49a68fc295c2293433177ee90870a7d517/httptools-0.7.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:601b7628de7504077dd3dcb3791c6b8694bbd967148a6d1f01806509254fb1ca", size = 108180, upload-time = "2025-10-10T03:54:48.052Z" },+ { url = "https://files.pythonhosted.org/packages/32/6a/6aaa91937f0010d288d3d124ca2946d48d60c3a5ee7ca62afe870e3ea011/httptools-0.7.1-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:04c6c0e6c5fb0739c5b8a9eb046d298650a0ff38cf42537fc372b28dc7e4472c", size = 478596, upload-time = "2025-10-10T03:54:48.919Z" },+ { url = "https://files.pythonhosted.org/packages/6d/70/023d7ce117993107be88d2cbca566a7c1323ccbaf0af7eabf2064fe356f6/httptools-0.7.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:69d4f9705c405ae3ee83d6a12283dc9feba8cc6aaec671b412917e644ab4fa66", size = 473268, upload-time = "2025-10-10T03:54:49.993Z" },+ { url = "https://files.pythonhosted.org/packages/32/4d/9dd616c38da088e3f436e9a616e1d0cc66544b8cdac405cc4e81c8679fc7/httptools-0.7.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:44c8f4347d4b31269c8a9205d8a5ee2df5322b09bbbd30f8f862185bb6b05346", size = 455517, upload-time = "2025-10-10T03:54:51.066Z" },+ { url = "https://files.pythonhosted.org/packages/1d/3a/a6c595c310b7df958e739aae88724e24f9246a514d909547778d776799be/httptools-0.7.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:465275d76db4d554918aba40bf1cbebe324670f3dfc979eaffaa5d108e2ed650", size = 458337, upload-time = "2025-10-10T03:54:52.196Z" },+ { url = "https://files.pythonhosted.org/packages/fd/82/88e8d6d2c51edc1cc391b6e044c6c435b6aebe97b1abc33db1b0b24cd582/httptools-0.7.1-cp313-cp313-win_amd64.whl", hash = "sha256:322d00c2068d125bd570f7bf78b2d367dad02b919d8581d7476d8b75b294e3e6", size = 85743, upload-time = "2025-10-10T03:54:53.448Z" },+]++[[package]]+name = "httpx"+version = "0.28.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "certifi" },+ { name = "httpcore" },+ { name = "idna" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },+]++[[package]]+name = "httpx-sse"+version = "0.4.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0f/4c/751061ffa58615a32c31b2d82e8482be8dd4a89154f003147acee90f2be9/httpx_sse-0.4.3.tar.gz", hash = "sha256:9b1ed0127459a66014aec3c56bebd93da3c1bc8bb6618c8082039a44889a755d", size = 15943, upload-time = "2025-10-10T21:48:22.271Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d2/fd/6668e5aec43ab844de6fc74927e155a3b37bf40d7c3790e49fc0406b6578/httpx_sse-0.4.3-py3-none-any.whl", hash = "sha256:0ac1c9fe3c0afad2e0ebb25a934a59f4c7823b60792691f779fad2c5568830fc", size = 8960, upload-time = "2025-10-10T21:48:21.158Z" },+]++[[package]]+name = "huggingface-hub"+version = "1.4.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "filelock" },+ { name = "fsspec" },+ { name = "hf-xet", marker = "platform_machine == 'AMD64' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'arm64' or platform_machine == 'x86_64'" },+ { name = "httpx" },+ { name = "packaging" },+ { name = "pyyaml" },+ { name = "shellingham" },+ { name = "tqdm" },+ { name = "typer-slim" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c4/fc/eb9bc06130e8bbda6a616e1b80a7aa127681c448d6b49806f61db2670b61/huggingface_hub-1.4.1.tar.gz", hash = "sha256:b41131ec35e631e7383ab26d6146b8d8972abc8b6309b963b306fbcca87f5ed5", size = 642156, upload-time = "2026-02-06T09:20:03.013Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d5/ae/2f6d96b4e6c5478d87d606a1934b5d436c4a2bce6bb7c6fdece891c128e3/huggingface_hub-1.4.1-py3-none-any.whl", hash = "sha256:9931d075fb7a79af5abc487106414ec5fba2c0ae86104c0c62fd6cae38873d18", size = 553326, upload-time = "2026-02-06T09:20:00.728Z" },+]++[[package]]+name = "identify"+version = "2.6.16"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/5b/8d/e8b97e6bd3fb6fb271346f7981362f1e04d6a7463abd0de79e1fda17c067/identify-2.6.16.tar.gz", hash = "sha256:846857203b5511bbe94d5a352a48ef2359532bc8f6727b5544077a0dcfb24980", size = 99360, upload-time = "2026-01-12T18:58:58.201Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b8/58/40fbbcefeda82364720eba5cf2270f98496bdfa19ea75b4cccae79c698e6/identify-2.6.16-py2.py3-none-any.whl", hash = "sha256:391ee4d77741d994189522896270b787aed8670389bfd60f326d677d64a6dfb0", size = 99202, upload-time = "2026-01-12T18:58:56.627Z" },+]++[[package]]+name = "idna"+version = "3.11"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" },+]++[[package]]+name = "importlib-metadata"+version = "8.7.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "zipp" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f3/49/3b30cad09e7771a4982d9975a8cbf64f00d4a1ececb53297f1d9a7be1b10/importlib_metadata-8.7.1.tar.gz", hash = "sha256:49fef1ae6440c182052f407c8d34a68f72efc36db9ca90dc0113398f2fdde8bb", size = 57107, upload-time = "2025-12-21T10:00:19.278Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fa/5e/f8e9a1d23b9c20a551a8a02ea3637b4642e22c2626e3a13a9a29cdea99eb/importlib_metadata-8.7.1-py3-none-any.whl", hash = "sha256:5a1f80bf1daa489495071efbb095d75a634cf28a8bc299581244063b53176151", size = 27865, upload-time = "2025-12-21T10:00:18.329Z" },+]++[[package]]+name = "importlib-resources"+version = "6.5.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/cf/8c/f834fbf984f691b4f7ff60f50b514cc3de5cc08abfc3295564dd89c5e2e7/importlib_resources-6.5.2.tar.gz", hash = "sha256:185f87adef5bcc288449d98fb4fba07cea78bc036455dd44c5fc4a2fe78fed2c", size = 44693, upload-time = "2025-01-03T18:51:56.698Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a4/ed/1f1afb2e9e7f38a545d628f864d562a5ae64fe6f7a10e28ffb9b185b4e89/importlib_resources-6.5.2-py3-none-any.whl", hash = "sha256:789cfdc3ed28c78b67a06acb8126751ced69a3d5f79c095a98298cd8a760ccec", size = 37461, upload-time = "2025-01-03T18:51:54.306Z" },+]++[[package]]+name = "iniconfig"+version = "2.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },+]++[[package]]+name = "jaraco-classes"+version = "3.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "more-itertools" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/c0/ed4a27bc5571b99e3cff68f8a9fa5b56ff7df1c2251cc715a652ddd26402/jaraco.classes-3.4.0.tar.gz", hash = "sha256:47a024b51d0239c0dd8c8540c6c7f484be3b8fcf0b2d85c13825780d3b3f3acd", size = 11780, upload-time = "2024-03-31T07:27:36.643Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7f/66/b15ce62552d84bbfcec9a4873ab79d993a1dd4edb922cbfccae192bd5b5f/jaraco.classes-3.4.0-py3-none-any.whl", hash = "sha256:f662826b6bed8cace05e7ff873ce0f9283b5c924470fe664fff1c2f00f581790", size = 6777, upload-time = "2024-03-31T07:27:34.792Z" },+]++[[package]]+name = "jaraco-context"+version = "6.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/cb/9c/a788f5bb29c61e456b8ee52ce76dbdd32fd72cd73dd67bc95f42c7a8d13c/jaraco_context-6.1.0.tar.gz", hash = "sha256:129a341b0a85a7db7879e22acd66902fda67882db771754574338898b2d5d86f", size = 15850, upload-time = "2026-01-13T02:53:53.847Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8d/48/aa685dbf1024c7bd82bede569e3a85f82c32fd3d79ba5fea578f0159571a/jaraco_context-6.1.0-py3-none-any.whl", hash = "sha256:a43b5ed85815223d0d3cfdb6d7ca0d2bc8946f28f30b6f3216bda070f68badda", size = 7065, upload-time = "2026-01-13T02:53:53.031Z" },+]++[[package]]+name = "jaraco-functools"+version = "4.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "more-itertools" },+]+sdist = { url = "https://files.pythonhosted.org/packages/0f/27/056e0638a86749374d6f57d0b0db39f29509cce9313cf91bdc0ac4d91084/jaraco_functools-4.4.0.tar.gz", hash = "sha256:da21933b0417b89515562656547a77b4931f98176eb173644c0d35032a33d6bb", size = 19943, upload-time = "2025-12-21T09:29:43.6Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fd/c4/813bb09f0985cb21e959f21f2464169eca882656849adf727ac7bb7e1767/jaraco_functools-4.4.0-py3-none-any.whl", hash = "sha256:9eec1e36f45c818d9bf307c8948eb03b2b56cd44087b3cdc989abca1f20b9176", size = 10481, upload-time = "2025-12-21T09:29:42.27Z" },+]++[[package]]+name = "jeepney"+version = "0.9.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/7b/6f/357efd7602486741aa73ffc0617fb310a29b588ed0fd69c2399acbb85b0c/jeepney-0.9.0.tar.gz", hash = "sha256:cf0e9e845622b81e4a28df94c40345400256ec608d0e55bb8a3feaa9163f5732", size = 106758, upload-time = "2025-02-27T18:51:01.684Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b2/a3/e137168c9c44d18eff0376253da9f1e9234d0239e0ee230d2fee6cea8e55/jeepney-0.9.0-py3-none-any.whl", hash = "sha256:97e5714520c16fc0a45695e5365a2e11b81ea79bba796e26f9f1d178cb182683", size = 49010, upload-time = "2025-02-27T18:51:00.104Z" },+]++[[package]]+name = "jiter"+version = "0.13.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0d/5e/4ec91646aee381d01cdb9974e30882c9cd3b8c5d1079d6b5ff4af522439a/jiter-0.13.0.tar.gz", hash = "sha256:f2839f9c2c7e2dffc1bc5929a510e14ce0a946be9365fd1219e7ef342dae14f4", size = 164847, upload-time = "2026-02-02T12:37:56.441Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/91/9c/7ee5a6ff4b9991e1a45263bfc46731634c4a2bde27dfda6c8251df2d958c/jiter-0.13.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:1f8a55b848cbabf97d861495cd65f1e5c590246fabca8b48e1747c4dfc8f85bf", size = 306897, upload-time = "2026-02-02T12:36:16.748Z" },+ { url = "https://files.pythonhosted.org/packages/7c/02/be5b870d1d2be5dd6a91bdfb90f248fbb7dcbd21338f092c6b89817c3dbf/jiter-0.13.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f556aa591c00f2c45eb1b89f68f52441a016034d18b65da60e2d2875bbbf344a", size = 317507, upload-time = "2026-02-02T12:36:18.351Z" },+ { url = "https://files.pythonhosted.org/packages/da/92/b25d2ec333615f5f284f3a4024f7ce68cfa0604c322c6808b2344c7f5d2b/jiter-0.13.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f7e1d61da332ec412350463891923f960c3073cf1aae93b538f0bb4c8cd46efb", size = 350560, upload-time = "2026-02-02T12:36:19.746Z" },+ { url = "https://files.pythonhosted.org/packages/be/ec/74dcb99fef0aca9fbe56b303bf79f6bd839010cb18ad41000bf6cc71eec0/jiter-0.13.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3097d665a27bc96fd9bbf7f86178037db139f319f785e4757ce7ccbf390db6c2", size = 363232, upload-time = "2026-02-02T12:36:21.243Z" },+ { url = "https://files.pythonhosted.org/packages/1b/37/f17375e0bb2f6a812d4dd92d7616e41917f740f3e71343627da9db2824ce/jiter-0.13.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9d01ecc3a8cbdb6f25a37bd500510550b64ddf9f7d64a107d92f3ccb25035d0f", size = 483727, upload-time = "2026-02-02T12:36:22.688Z" },+ { url = "https://files.pythonhosted.org/packages/77/d2/a71160a5ae1a1e66c1395b37ef77da67513b0adba73b993a27fbe47eb048/jiter-0.13.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ed9bbc30f5d60a3bdf63ae76beb3f9db280d7f195dfcfa61af792d6ce912d159", size = 370799, upload-time = "2026-02-02T12:36:24.106Z" },+ { url = "https://files.pythonhosted.org/packages/01/99/ed5e478ff0eb4e8aa5fd998f9d69603c9fd3f32de3bd16c2b1194f68361c/jiter-0.13.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:98fbafb6e88256f4454de33c1f40203d09fc33ed19162a68b3b257b29ca7f663", size = 359120, upload-time = "2026-02-02T12:36:25.519Z" },+ { url = "https://files.pythonhosted.org/packages/16/be/7ffd08203277a813f732ba897352797fa9493faf8dc7995b31f3d9cb9488/jiter-0.13.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5467696f6b827f1116556cb0db620440380434591e93ecee7fd14d1a491b6daa", size = 390664, upload-time = "2026-02-02T12:36:26.866Z" },+ { url = "https://files.pythonhosted.org/packages/d1/84/e0787856196d6d346264d6dcccb01f741e5f0bd014c1d9a2ebe149caf4f3/jiter-0.13.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:2d08c9475d48b92892583df9da592a0e2ac49bcd41fae1fec4f39ba6cf107820", size = 513543, upload-time = "2026-02-02T12:36:28.217Z" },+ { url = "https://files.pythonhosted.org/packages/65/50/ecbd258181c4313cf79bca6c88fb63207d04d5bf5e4f65174114d072aa55/jiter-0.13.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:aed40e099404721d7fcaf5b89bd3b4568a4666358bcac7b6b15c09fb6252ab68", size = 547262, upload-time = "2026-02-02T12:36:29.678Z" },+ { url = "https://files.pythonhosted.org/packages/27/da/68f38d12e7111d2016cd198161b36e1f042bd115c169255bcb7ec823a3bf/jiter-0.13.0-cp313-cp313-win32.whl", hash = "sha256:36ebfbcffafb146d0e6ffb3e74d51e03d9c35ce7c625c8066cdbfc7b953bdc72", size = 200630, upload-time = "2026-02-02T12:36:31.808Z" },+ { url = "https://files.pythonhosted.org/packages/25/65/3bd1a972c9a08ecd22eb3b08a95d1941ebe6938aea620c246cf426ae09c2/jiter-0.13.0-cp313-cp313-win_amd64.whl", hash = "sha256:8d76029f077379374cf0dbc78dbe45b38dec4a2eb78b08b5194ce836b2517afc", size = 202602, upload-time = "2026-02-02T12:36:33.679Z" },+ { url = "https://files.pythonhosted.org/packages/15/fe/13bd3678a311aa67686bb303654792c48206a112068f8b0b21426eb6851e/jiter-0.13.0-cp313-cp313-win_arm64.whl", hash = "sha256:bb7613e1a427cfcb6ea4544f9ac566b93d5bf67e0d48c787eca673ff9c9dff2b", size = 185939, upload-time = "2026-02-02T12:36:35.065Z" },+ { url = "https://files.pythonhosted.org/packages/49/19/a929ec002ad3228bc97ca01dbb14f7632fffdc84a95ec92ceaf4145688ae/jiter-0.13.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:fa476ab5dd49f3bf3a168e05f89358c75a17608dbabb080ef65f96b27c19ab10", size = 316616, upload-time = "2026-02-02T12:36:36.579Z" },+ { url = "https://files.pythonhosted.org/packages/52/56/d19a9a194afa37c1728831e5fb81b7722c3de18a3109e8f282bfc23e587a/jiter-0.13.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ade8cb6ff5632a62b7dbd4757d8c5573f7a2e9ae285d6b5b841707d8363205ef", size = 346850, upload-time = "2026-02-02T12:36:38.058Z" },+ { url = "https://files.pythonhosted.org/packages/36/4a/94e831c6bf287754a8a019cb966ed39ff8be6ab78cadecf08df3bb02d505/jiter-0.13.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9950290340acc1adaded363edd94baebcee7dabdfa8bee4790794cd5cfad2af6", size = 358551, upload-time = "2026-02-02T12:36:39.417Z" },+ { url = "https://files.pythonhosted.org/packages/a2/ec/a4c72c822695fa80e55d2b4142b73f0012035d9fcf90eccc56bc060db37c/jiter-0.13.0-cp313-cp313t-win_amd64.whl", hash = "sha256:2b4972c6df33731aac0742b64fd0d18e0a69bc7d6e03108ce7d40c85fd9e3e6d", size = 201950, upload-time = "2026-02-02T12:36:40.791Z" },+ { url = "https://files.pythonhosted.org/packages/b6/00/393553ec27b824fbc29047e9c7cd4a3951d7fbe4a76743f17e44034fa4e4/jiter-0.13.0-cp313-cp313t-win_arm64.whl", hash = "sha256:701a1e77d1e593c1b435315ff625fd071f0998c5f02792038a5ca98899261b7d", size = 185852, upload-time = "2026-02-02T12:36:42.077Z" },+]++[[package]]+name = "jiuwenclaw"+version = "0.1.0"+source = { editable = "." }+dependencies = [+ { name = "chromadb" },+ { name = "lark-oapi" },+ { name = "loguru" },+ { name = "openjiuwen" },+ { name = "pgvector" },+ { name = "pip" },+ { name = "psutil" },+ { name = "ruamel-yaml" },+ { name = "websockets" },+]++[package.metadata]+requires-dist = [+ { name = "chromadb", specifier = ">=1.5.0" },+ { name = "lark-oapi", specifier = ">=1.5.3" },+ { name = "loguru", specifier = ">=0.7.3" },+ { name = "openjiuwen", specifier = "==0.1.7" },+ { name = "pgvector", specifier = ">=0.4.2" },+ { name = "pip", specifier = "==26.0.1" },+ { name = "psutil", specifier = ">=7.2.2" },+ { name = "ruamel-yaml", specifier = ">=0.18.0" },+ { name = "websockets", specifier = ">=12.0" },+]++[[package]]+name = "json-repair"+version = "0.57.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f8/20/ca8779106afa57878092826efcf8d54929092ef5d9ad9d4b9c33ed2718fc/json_repair-0.57.1.tar.gz", hash = "sha256:6bc8e53226c2cb66cad247f130fe9c6b5d2546d9fe9d7c6cd8c351a9f02e3be6", size = 53575, upload-time = "2026-02-08T10:13:53.509Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cc/3e/3062565ae270bb1bc25b2c2d1b66d92064d74899c54ad9523b56d00ff49c/json_repair-0.57.1-py3-none-any.whl", hash = "sha256:f72ee964e35de7f5aa0a1e2f3a1c9a6941eb79b619cc98b1ec64bbbfe1c98ba6", size = 38760, upload-time = "2026-02-08T10:13:51.988Z" },+]++[[package]]+name = "jsonref"+version = "1.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/aa/0d/c1f3277e90ccdb50d33ed5ba1ec5b3f0a242ed8c1b1a85d3afeb68464dca/jsonref-1.1.0.tar.gz", hash = "sha256:32fe8e1d85af0fdefbebce950af85590b22b60f9e95443176adbde4e1ecea552", size = 8814, upload-time = "2023-01-16T16:10:04.455Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0c/ec/e1db9922bceb168197a558a2b8c03a7963f1afe93517ddd3cf99f202f996/jsonref-1.1.0-py3-none-any.whl", hash = "sha256:590dc7773df6c21cbf948b5dac07a72a251db28b0238ceecce0a2abfa8ec30a9", size = 9425, upload-time = "2023-01-16T16:10:02.255Z" },+]++[[package]]+name = "jsonschema"+version = "4.26.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "attrs" },+ { name = "jsonschema-specifications" },+ { name = "referencing" },+ { name = "rpds-py" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b3/fc/e067678238fa451312d4c62bf6e6cf5ec56375422aee02f9cb5f909b3047/jsonschema-4.26.0.tar.gz", hash = "sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326", size = 366583, upload-time = "2026-01-07T13:41:07.246Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/69/90/f63fb5873511e014207a475e2bb4e8b2e570d655b00ac19a9a0ca0a385ee/jsonschema-4.26.0-py3-none-any.whl", hash = "sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce", size = 90630, upload-time = "2026-01-07T13:41:05.306Z" },+]++[[package]]+name = "jsonschema-path"+version = "0.3.4"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pathable" },+ { name = "pyyaml" },+ { name = "referencing" },+ { name = "requests" },+]+sdist = { url = "https://files.pythonhosted.org/packages/6e/45/41ebc679c2a4fced6a722f624c18d658dee42612b83ea24c1caf7c0eb3a8/jsonschema_path-0.3.4.tar.gz", hash = "sha256:8365356039f16cc65fddffafda5f58766e34bebab7d6d105616ab52bc4297001", size = 11159, upload-time = "2025-01-24T14:33:16.547Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/58/3485da8cb93d2f393bce453adeef16896751f14ba3e2024bc21dc9597646/jsonschema_path-0.3.4-py3-none-any.whl", hash = "sha256:f502191fdc2b22050f9a81c9237be9d27145b9001c55842bece5e94e382e52f8", size = 14810, upload-time = "2025-01-24T14:33:14.652Z" },+]++[[package]]+name = "jsonschema-specifications"+version = "2025.9.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "referencing" },+]+sdist = { url = "https://files.pythonhosted.org/packages/19/74/a633ee74eb36c44aa6d1095e7cc5569bebf04342ee146178e2d36600708b/jsonschema_specifications-2025.9.1.tar.gz", hash = "sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d", size = 32855, upload-time = "2025-09-08T01:34:59.186Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/41/45/1a4ed80516f02155c51f51e8cedb3c1902296743db0bbc66608a0db2814f/jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe", size = 18437, upload-time = "2025-09-08T01:34:57.871Z" },+]++[[package]]+name = "keyring"+version = "25.7.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "jaraco-classes" },+ { name = "jaraco-context" },+ { name = "jaraco-functools" },+ { name = "jeepney", marker = "sys_platform == 'linux'" },+ { name = "pywin32-ctypes", marker = "sys_platform == 'win32'" },+ { name = "secretstorage", marker = "sys_platform == 'linux'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/43/4b/674af6ef2f97d56f0ab5153bf0bfa28ccb6c3ed4d1babf4305449668807b/keyring-25.7.0.tar.gz", hash = "sha256:fe01bd85eb3f8fb3dd0405defdeac9a5b4f6f0439edbb3149577f244a2e8245b", size = 63516, upload-time = "2025-11-16T16:26:09.482Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/81/db/e655086b7f3a705df045bf0933bdd9c2f79bb3c97bfef1384598bb79a217/keyring-25.7.0-py3-none-any.whl", hash = "sha256:be4a0b195f149690c166e850609a477c532ddbfbaed96a404d4e43f8d5e2689f", size = 39160, upload-time = "2025-11-16T16:26:08.402Z" },+]++[[package]]+name = "kubernetes"+version = "35.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "durationpy" },+ { name = "python-dateutil" },+ { name = "pyyaml" },+ { name = "requests" },+ { name = "requests-oauthlib" },+ { name = "six" },+ { name = "urllib3" },+ { name = "websocket-client" },+]+sdist = { url = "https://files.pythonhosted.org/packages/2c/8f/85bf51ad4150f64e8c665daf0d9dfe9787ae92005efb9a4d1cba592bd79d/kubernetes-35.0.0.tar.gz", hash = "sha256:3d00d344944239821458b9efd484d6df9f011da367ecb155dadf9513f05f09ee", size = 1094642, upload-time = "2026-01-16T01:05:27.76Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0c/70/05b685ea2dffcb2adbf3cdcea5d8865b7bc66f67249084cf845012a0ff13/kubernetes-35.0.0-py2.py3-none-any.whl", hash = "sha256:39e2b33b46e5834ef6c3985ebfe2047ab39135d41de51ce7641a7ca5b372a13d", size = 2017602, upload-time = "2026-01-16T01:05:25.991Z" },+]++[[package]]+name = "lark-oapi"+version = "1.5.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "httpx" },+ { name = "pycryptodome" },+ { name = "requests" },+ { name = "requests-toolbelt" },+ { name = "websockets" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/bf/ff/2ece5d735ebfa2af600a53176f2636ae47af2bf934e08effab64f0d1e047/lark_oapi-1.5.3-py3-none-any.whl", hash = "sha256:fda6b32bb38d21b6bdaae94979c600b94c7c521e985adade63a54e4b3e20cc36", size = 6993016, upload-time = "2026-01-27T08:21:49.307Z" },+]++[[package]]+name = "loguru"+version = "0.7.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "win32-setctime", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/3a/05/a1dae3dffd1116099471c643b8924f5aa6524411dc6c63fdae648c4f1aca/loguru-0.7.3.tar.gz", hash = "sha256:19480589e77d47b8d85b2c827ad95d49bf31b0dcde16593892eb51dd18706eb6", size = 63559, upload-time = "2024-12-06T11:20:56.608Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0c/29/0348de65b8cc732daa3e33e67806420b2ae89bdce2b04af740289c5c6c8c/loguru-0.7.3-py3-none-any.whl", hash = "sha256:31a33c10c8e1e10422bfd431aeb5d351c7cf7fa671e3c4df004162264b28220c", size = 61595, upload-time = "2024-12-06T11:20:54.538Z" },+]++[[package]]+name = "lupa"+version = "2.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b8/1c/191c3e6ec6502e3dbe25a53e27f69a5daeac3e56de1f73c0138224171ead/lupa-2.6.tar.gz", hash = "sha256:9a770a6e89576be3447668d7ced312cd6fd41d3c13c2462c9dc2c2ab570e45d9", size = 7240282, upload-time = "2025-10-24T07:20:29.738Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/28/1d/21176b682ca5469001199d8b95fa1737e29957a3d185186e7a8b55345f2e/lupa-2.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:663a6e58a0f60e7d212017d6678639ac8df0119bc13c2145029dcba084391310", size = 947232, upload-time = "2025-10-24T07:18:27.878Z" },+ { url = "https://files.pythonhosted.org/packages/ce/4c/d327befb684660ca13cf79cd1f1d604331808f9f1b6fb6bf57832f8edf80/lupa-2.6-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:d1f5afda5c20b1f3217a80e9bc1b77037f8a6eb11612fd3ada19065303c8f380", size = 1908625, upload-time = "2025-10-24T07:18:29.944Z" },+ { url = "https://files.pythonhosted.org/packages/66/8e/ad22b0a19454dfd08662237a84c792d6d420d36b061f239e084f29d1a4f3/lupa-2.6-cp313-cp313-macosx_11_0_x86_64.whl", hash = "sha256:26f2b3c085fe76e9119e48c1013c1cccdc1f51585d456858290475aa38e7089e", size = 981057, upload-time = "2025-10-24T07:18:31.553Z" },+ { url = "https://files.pythonhosted.org/packages/5c/48/74859073ab276bd0566c719f9ca0108b0cfc1956ca0d68678d117d47d155/lupa-2.6-cp313-cp313-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl", hash = "sha256:60d2f902c7b96fb8ab98493dcff315e7bb4d0b44dc9dd76eb37de575025d5685", size = 1156227, upload-time = "2025-10-24T07:18:33.981Z" },+ { url = "https://files.pythonhosted.org/packages/09/6c/0e9ded061916877253c2266074060eb71ed99fb21d73c8c114a76725bce2/lupa-2.6-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a02d25dee3a3250967c36590128d9220ae02f2eda166a24279da0b481519cbff", size = 1035752, upload-time = "2025-10-24T07:18:36.32Z" },+ { url = "https://files.pythonhosted.org/packages/dd/ef/f8c32e454ef9f3fe909f6c7d57a39f950996c37a3deb7b391fec7903dab7/lupa-2.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6eae1ee16b886b8914ff292dbefbf2f48abfbdee94b33a88d1d5475e02423203", size = 2069009, upload-time = "2025-10-24T07:18:38.072Z" },+ { url = "https://files.pythonhosted.org/packages/53/dc/15b80c226a5225815a890ee1c11f07968e0aba7a852df41e8ae6fe285063/lupa-2.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b0edd5073a4ee74ab36f74fe61450148e6044f3952b8d21248581f3c5d1a58be", size = 1056301, upload-time = "2025-10-24T07:18:40.165Z" },+ { url = "https://files.pythonhosted.org/packages/31/14/2086c1425c985acfb30997a67e90c39457122df41324d3c179d6ee2292c6/lupa-2.6-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:0c53ee9f22a8a17e7d4266ad48e86f43771951797042dd51d1494aaa4f5f3f0a", size = 1170673, upload-time = "2025-10-24T07:18:42.426Z" },+ { url = "https://files.pythonhosted.org/packages/10/e5/b216c054cf86576c0191bf9a9f05de6f7e8e07164897d95eea0078dca9b2/lupa-2.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:de7c0f157a9064a400d828789191a96da7f4ce889969a588b87ec80de9b14772", size = 2162227, upload-time = "2025-10-24T07:18:46.112Z" },+ { url = "https://files.pythonhosted.org/packages/59/2f/33ecb5bedf4f3bc297ceacb7f016ff951331d352f58e7e791589609ea306/lupa-2.6-cp313-cp313-win32.whl", hash = "sha256:ee9523941ae0a87b5b703417720c5d78f72d2f5bc23883a2ea80a949a3ed9e75", size = 1419558, upload-time = "2025-10-24T07:18:48.371Z" },+ { url = "https://files.pythonhosted.org/packages/f9/b4/55e885834c847ea610e111d87b9ed4768f0afdaeebc00cd46810f25029f6/lupa-2.6-cp313-cp313-win_amd64.whl", hash = "sha256:b1335a5835b0a25ebdbc75cf0bda195e54d133e4d994877ef025e218c2e59db9", size = 1683424, upload-time = "2025-10-24T07:18:50.976Z" },+]++[[package]]+name = "lxml"+version = "6.0.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/aa/88/262177de60548e5a2bfc46ad28232c9e9cbde697bd94132aeb80364675cb/lxml-6.0.2.tar.gz", hash = "sha256:cd79f3367bd74b317dda655dc8fcfa304d9eb6e4fb06b7168c5cf27f96e0cd62", size = 4073426, upload-time = "2025-09-22T04:04:59.287Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/53/fd/4e8f0540608977aea078bf6d79f128e0e2c2bba8af1acf775c30baa70460/lxml-6.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:9b33d21594afab46f37ae58dfadd06636f154923c4e8a4d754b0127554eb2e77", size = 8648494, upload-time = "2025-09-22T04:01:54.242Z" },+ { url = "https://files.pythonhosted.org/packages/5d/f4/2a94a3d3dfd6c6b433501b8d470a1960a20ecce93245cf2db1706adf6c19/lxml-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:6c8963287d7a4c5c9a432ff487c52e9c5618667179c18a204bdedb27310f022f", size = 4661146, upload-time = "2025-09-22T04:01:56.282Z" },+ { url = "https://files.pythonhosted.org/packages/25/2e/4efa677fa6b322013035d38016f6ae859d06cac67437ca7dc708a6af7028/lxml-6.0.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1941354d92699fb5ffe6ed7b32f9649e43c2feb4b97205f75866f7d21aa91452", size = 4946932, upload-time = "2025-09-22T04:01:58.989Z" },+ { url = "https://files.pythonhosted.org/packages/ce/0f/526e78a6d38d109fdbaa5049c62e1d32fdd70c75fb61c4eadf3045d3d124/lxml-6.0.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bb2f6ca0ae2d983ded09357b84af659c954722bbf04dea98030064996d156048", size = 5100060, upload-time = "2025-09-22T04:02:00.812Z" },+ { url = "https://files.pythonhosted.org/packages/81/76/99de58d81fa702cc0ea7edae4f4640416c2062813a00ff24bd70ac1d9c9b/lxml-6.0.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eb2a12d704f180a902d7fa778c6d71f36ceb7b0d317f34cdc76a5d05aa1dd1df", size = 5019000, upload-time = "2025-09-22T04:02:02.671Z" },+ { url = "https://files.pythonhosted.org/packages/b5/35/9e57d25482bc9a9882cb0037fdb9cc18f4b79d85df94fa9d2a89562f1d25/lxml-6.0.2-cp313-cp313-manylinux_2_26_i686.manylinux_2_28_i686.whl", hash = "sha256:6ec0e3f745021bfed19c456647f0298d60a24c9ff86d9d051f52b509663feeb1", size = 5348496, upload-time = "2025-09-22T04:02:04.904Z" },+ { url = "https://files.pythonhosted.org/packages/a6/8e/cb99bd0b83ccc3e8f0f528e9aa1f7a9965dfec08c617070c5db8d63a87ce/lxml-6.0.2-cp313-cp313-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:846ae9a12d54e368933b9759052d6206a9e8b250291109c48e350c1f1f49d916", size = 5643779, upload-time = "2025-09-22T04:02:06.689Z" },+ { url = "https://files.pythonhosted.org/packages/d0/34/9e591954939276bb679b73773836c6684c22e56d05980e31d52a9a8deb18/lxml-6.0.2-cp313-cp313-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ef9266d2aa545d7374938fb5c484531ef5a2ec7f2d573e62f8ce722c735685fd", size = 5244072, upload-time = "2025-09-22T04:02:08.587Z" },+ { url = "https://files.pythonhosted.org/packages/8d/27/b29ff065f9aaca443ee377aff699714fcbffb371b4fce5ac4ca759e436d5/lxml-6.0.2-cp313-cp313-manylinux_2_31_armv7l.whl", hash = "sha256:4077b7c79f31755df33b795dc12119cb557a0106bfdab0d2c2d97bd3cf3dffa6", size = 4718675, upload-time = "2025-09-22T04:02:10.783Z" },+ { url = "https://files.pythonhosted.org/packages/2b/9f/f756f9c2cd27caa1a6ef8c32ae47aadea697f5c2c6d07b0dae133c244fbe/lxml-6.0.2-cp313-cp313-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a7c5d5e5f1081955358533be077166ee97ed2571d6a66bdba6ec2f609a715d1a", size = 5255171, upload-time = "2025-09-22T04:02:12.631Z" },+ { url = "https://files.pythonhosted.org/packages/61/46/bb85ea42d2cb1bd8395484fd72f38e3389611aa496ac7772da9205bbda0e/lxml-6.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:8f8d0cbd0674ee89863a523e6994ac25fd5be9c8486acfc3e5ccea679bad2679", size = 5057175, upload-time = "2025-09-22T04:02:14.718Z" },+ { url = "https://files.pythonhosted.org/packages/95/0c/443fc476dcc8e41577f0af70458c50fe299a97bb6b7505bb1ae09aa7f9ac/lxml-6.0.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:2cbcbf6d6e924c28f04a43f3b6f6e272312a090f269eff68a2982e13e5d57659", size = 4785688, upload-time = "2025-09-22T04:02:16.957Z" },+ { url = "https://files.pythonhosted.org/packages/48/78/6ef0b359d45bb9697bc5a626e1992fa5d27aa3f8004b137b2314793b50a0/lxml-6.0.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:dfb874cfa53340009af6bdd7e54ebc0d21012a60a4e65d927c2e477112e63484", size = 5660655, upload-time = "2025-09-22T04:02:18.815Z" },+ { url = "https://files.pythonhosted.org/packages/ff/ea/e1d33808f386bc1339d08c0dcada6e4712d4ed8e93fcad5f057070b7988a/lxml-6.0.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:fb8dae0b6b8b7f9e96c26fdd8121522ce5de9bb5538010870bd538683d30e9a2", size = 5247695, upload-time = "2025-09-22T04:02:20.593Z" },+ { url = "https://files.pythonhosted.org/packages/4f/47/eba75dfd8183673725255247a603b4ad606f4ae657b60c6c145b381697da/lxml-6.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:358d9adae670b63e95bc59747c72f4dc97c9ec58881d4627fe0120da0f90d314", size = 5269841, upload-time = "2025-09-22T04:02:22.489Z" },+ { url = "https://files.pythonhosted.org/packages/76/04/5c5e2b8577bc936e219becb2e98cdb1aca14a4921a12995b9d0c523502ae/lxml-6.0.2-cp313-cp313-win32.whl", hash = "sha256:e8cd2415f372e7e5a789d743d133ae474290a90b9023197fd78f32e2dc6873e2", size = 3610700, upload-time = "2025-09-22T04:02:24.465Z" },+ { url = "https://files.pythonhosted.org/packages/fe/0a/4643ccc6bb8b143e9f9640aa54e38255f9d3b45feb2cbe7ae2ca47e8782e/lxml-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:b30d46379644fbfc3ab81f8f82ae4de55179414651f110a1514f0b1f8f6cb2d7", size = 4010347, upload-time = "2025-09-22T04:02:26.286Z" },+ { url = "https://files.pythonhosted.org/packages/31/ef/dcf1d29c3f530577f61e5fe2f1bd72929acf779953668a8a47a479ae6f26/lxml-6.0.2-cp313-cp313-win_arm64.whl", hash = "sha256:13dcecc9946dca97b11b7c40d29fba63b55ab4170d3c0cf8c0c164343b9bfdcf", size = 3671248, upload-time = "2025-09-22T04:02:27.918Z" },+]++[[package]]+name = "markdown-it-py"+version = "4.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mdurl" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5b/f5/4ec618ed16cc4f8fb3b701563655a69816155e79e24a17b651541804721d/markdown_it_py-4.0.0.tar.gz", hash = "sha256:cb0a2b4aa34f932c007117b194e945bd74e0ec24133ceb5bac59009cda1cb9f3", size = 73070, upload-time = "2025-08-11T12:57:52.854Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/94/54/e7d793b573f298e1c9013b8c4dade17d481164aa517d1d7148619c2cedbf/markdown_it_py-4.0.0-py3-none-any.whl", hash = "sha256:87327c59b172c5011896038353a81343b6754500a08cd7a4973bb48c6d578147", size = 87321, upload-time = "2025-08-11T12:57:51.923Z" },+]++[[package]]+name = "mcp"+version = "1.26.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "httpx" },+ { name = "httpx-sse" },+ { name = "jsonschema" },+ { name = "pydantic" },+ { name = "pydantic-settings" },+ { name = "pyjwt", extra = ["crypto"] },+ { name = "python-multipart" },+ { name = "pywin32", marker = "sys_platform == 'win32'" },+ { name = "sse-starlette" },+ { name = "starlette" },+ { name = "typing-extensions" },+ { name = "typing-inspection" },+ { name = "uvicorn", marker = "sys_platform != 'emscripten'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/fc/6d/62e76bbb8144d6ed86e202b5edd8a4cb631e7c8130f3f4893c3f90262b10/mcp-1.26.0.tar.gz", hash = "sha256:db6e2ef491eecc1a0d93711a76f28dec2e05999f93afd48795da1c1137142c66", size = 608005, upload-time = "2026-01-24T19:40:32.468Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fd/d9/eaa1f80170d2b7c5ba23f3b59f766f3a0bb41155fbc32a69adfa1adaaef9/mcp-1.26.0-py3-none-any.whl", hash = "sha256:904a21c33c25aa98ddbeb47273033c435e595bbacfdb177f4bd87f6dceebe1ca", size = 233615, upload-time = "2026-01-24T19:40:30.652Z" },+]++[[package]]+name = "mdurl"+version = "0.1.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" },+]++[[package]]+name = "mermaid-py"+version = "0.8.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "codecov" },+ { name = "coverage" },+ { name = "pre-commit" },+ { name = "pytest" },+ { name = "pytest-cov" },+ { name = "requests" },+ { name = "ruff" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f2/ce/a72e42ffdbff8b8b054dd54490fd850b9ade515502841994dea1ac493a5e/mermaid_py-0.8.3.tar.gz", hash = "sha256:6b4263aa10121d80dab8cb0094ae1206897a968e419ad2fdd698a6cc55c40882", size = 34048, upload-time = "2026-01-30T17:11:21.696Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/29/4f/c7e58a870f7525c0cbf967b4510f6bac09ce675f85898cf65c737ed4550f/mermaid_py-0.8.3-py3-none-any.whl", hash = "sha256:e2710b7b605aa96798c8e556e37fff2153a73a491daa5d8ba0a33d8f5b7aedd1", size = 32077, upload-time = "2026-01-30T17:11:20.217Z" },+]++[[package]]+name = "mmh3"+version = "5.2.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a7/af/f28c2c2f51f31abb4725f9a64bc7863d5f491f6539bd26aee2a1d21a649e/mmh3-5.2.0.tar.gz", hash = "sha256:1efc8fec8478e9243a78bb993422cf79f8ff85cb4cf6b79647480a31e0d950a8", size = 33582, upload-time = "2025-07-29T07:43:48.49Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d8/fa/27f6ab93995ef6ad9f940e96593c5dd24744d61a7389532b0fec03745607/mmh3-5.2.0-cp313-cp313-android_21_arm64_v8a.whl", hash = "sha256:e79c00eba78f7258e5b354eccd4d7907d60317ced924ea4a5f2e9d83f5453065", size = 40874, upload-time = "2025-07-29T07:42:30.662Z" },+ { url = "https://files.pythonhosted.org/packages/11/9c/03d13bcb6a03438bc8cac3d2e50f80908d159b31a4367c2e1a7a077ded32/mmh3-5.2.0-cp313-cp313-android_21_x86_64.whl", hash = "sha256:956127e663d05edbeec54df38885d943dfa27406594c411139690485128525de", size = 42012, upload-time = "2025-07-29T07:42:31.539Z" },+ { url = "https://files.pythonhosted.org/packages/4e/78/0865d9765408a7d504f1789944e678f74e0888b96a766d578cb80b040999/mmh3-5.2.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:c3dca4cb5b946ee91b3d6bb700d137b1cd85c20827f89fdf9c16258253489044", size = 39197, upload-time = "2025-07-29T07:42:32.374Z" },+ { url = "https://files.pythonhosted.org/packages/3e/12/76c3207bd186f98b908b6706c2317abb73756d23a4e68ea2bc94825b9015/mmh3-5.2.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:e651e17bfde5840e9e4174b01e9e080ce49277b70d424308b36a7969d0d1af73", size = 39840, upload-time = "2025-07-29T07:42:33.227Z" },+ { url = "https://files.pythonhosted.org/packages/5d/0d/574b6cce5555c9f2b31ea189ad44986755eb14e8862db28c8b834b8b64dc/mmh3-5.2.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:9f64bf06f4bf623325fda3a6d02d36cd69199b9ace99b04bb2d7fd9f89688504", size = 40644, upload-time = "2025-07-29T07:42:34.099Z" },+ { url = "https://files.pythonhosted.org/packages/52/82/3731f8640b79c46707f53ed72034a58baad400be908c87b0088f1f89f986/mmh3-5.2.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ddc63328889bcaee77b743309e5c7d2d52cee0d7d577837c91b6e7cc9e755e0b", size = 56153, upload-time = "2025-07-29T07:42:35.031Z" },+ { url = "https://files.pythonhosted.org/packages/4f/34/e02dca1d4727fd9fdeaff9e2ad6983e1552804ce1d92cc796e5b052159bb/mmh3-5.2.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:bb0fdc451fb6d86d81ab8f23d881b8d6e37fc373a2deae1c02d27002d2ad7a05", size = 40684, upload-time = "2025-07-29T07:42:35.914Z" },+ { url = "https://files.pythonhosted.org/packages/8f/36/3dee40767356e104967e6ed6d102ba47b0b1ce2a89432239b95a94de1b89/mmh3-5.2.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:b29044e1ffdb84fe164d0a7ea05c7316afea93c00f8ed9449cf357c36fc4f814", size = 40057, upload-time = "2025-07-29T07:42:36.755Z" },+ { url = "https://files.pythonhosted.org/packages/31/58/228c402fccf76eb39a0a01b8fc470fecf21965584e66453b477050ee0e99/mmh3-5.2.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:58981d6ea9646dbbf9e59a30890cbf9f610df0e4a57dbfe09215116fd90b0093", size = 97344, upload-time = "2025-07-29T07:42:37.675Z" },+ { url = "https://files.pythonhosted.org/packages/34/82/fc5ce89006389a6426ef28e326fc065b0fbaaed230373b62d14c889f47ea/mmh3-5.2.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:7e5634565367b6d98dc4aa2983703526ef556b3688ba3065edb4b9b90ede1c54", size = 103325, upload-time = "2025-07-29T07:42:38.591Z" },+ { url = "https://files.pythonhosted.org/packages/09/8c/261e85777c6aee1ebd53f2f17e210e7481d5b0846cd0b4a5c45f1e3761b8/mmh3-5.2.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b0271ac12415afd3171ab9a3c7cbfc71dee2c68760a7dc9d05bf8ed6ddfa3a7a", size = 106240, upload-time = "2025-07-29T07:42:39.563Z" },+ { url = "https://files.pythonhosted.org/packages/70/73/2f76b3ad8a3d431824e9934403df36c0ddacc7831acf82114bce3c4309c8/mmh3-5.2.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:45b590e31bc552c6f8e2150ff1ad0c28dd151e9f87589e7eaf508fbdd8e8e908", size = 113060, upload-time = "2025-07-29T07:42:40.585Z" },+ { url = "https://files.pythonhosted.org/packages/9f/b9/7ea61a34e90e50a79a9d87aa1c0b8139a7eaf4125782b34b7d7383472633/mmh3-5.2.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bdde97310d59604f2a9119322f61b31546748499a21b44f6715e8ced9308a6c5", size = 120781, upload-time = "2025-07-29T07:42:41.618Z" },+ { url = "https://files.pythonhosted.org/packages/0f/5b/ae1a717db98c7894a37aeedbd94b3f99e6472a836488f36b6849d003485b/mmh3-5.2.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:fc9c5f280438cf1c1a8f9abb87dc8ce9630a964120cfb5dd50d1e7ce79690c7a", size = 99174, upload-time = "2025-07-29T07:42:42.587Z" },+ { url = "https://files.pythonhosted.org/packages/e3/de/000cce1d799fceebb6d4487ae29175dd8e81b48e314cba7b4da90bcf55d7/mmh3-5.2.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:c903e71fd8debb35ad2a4184c1316b3cb22f64ce517b4e6747f25b0a34e41266", size = 98734, upload-time = "2025-07-29T07:42:43.996Z" },+ { url = "https://files.pythonhosted.org/packages/79/19/0dc364391a792b72fbb22becfdeacc5add85cc043cd16986e82152141883/mmh3-5.2.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:eed4bba7ff8a0d37106ba931ab03bdd3915fbb025bcf4e1f0aa02bc8114960c5", size = 106493, upload-time = "2025-07-29T07:42:45.07Z" },+ { url = "https://files.pythonhosted.org/packages/3c/b1/bc8c28e4d6e807bbb051fefe78e1156d7f104b89948742ad310612ce240d/mmh3-5.2.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:1fdb36b940e9261aff0b5177c5b74a36936b902f473180f6c15bde26143681a9", size = 110089, upload-time = "2025-07-29T07:42:46.122Z" },+ { url = "https://files.pythonhosted.org/packages/3b/a2/d20f3f5c95e9c511806686c70d0a15479cc3941c5f322061697af1c1ff70/mmh3-5.2.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7303aab41e97adcf010a09efd8f1403e719e59b7705d5e3cfed3dd7571589290", size = 97571, upload-time = "2025-07-29T07:42:47.18Z" },+ { url = "https://files.pythonhosted.org/packages/7b/23/665296fce4f33488deec39a750ffd245cfc07aafb0e3ef37835f91775d14/mmh3-5.2.0-cp313-cp313-win32.whl", hash = "sha256:03e08c6ebaf666ec1e3d6ea657a2d363bb01effd1a9acfe41f9197decaef0051", size = 40806, upload-time = "2025-07-29T07:42:48.166Z" },+ { url = "https://files.pythonhosted.org/packages/59/b0/92e7103f3b20646e255b699e2d0327ce53a3f250e44367a99dc8be0b7c7a/mmh3-5.2.0-cp313-cp313-win_amd64.whl", hash = "sha256:7fddccd4113e7b736706e17a239a696332360cbaddf25ae75b57ba1acce65081", size = 41600, upload-time = "2025-07-29T07:42:49.371Z" },+ { url = "https://files.pythonhosted.org/packages/99/22/0b2bd679a84574647de538c5b07ccaa435dbccc37815067fe15b90fe8dad/mmh3-5.2.0-cp313-cp313-win_arm64.whl", hash = "sha256:fa0c966ee727aad5406d516375593c5f058c766b21236ab8985693934bb5085b", size = 39349, upload-time = "2025-07-29T07:42:50.268Z" },+]++[[package]]+name = "more-itertools"+version = "10.8.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ea/5d/38b681d3fce7a266dd9ab73c66959406d565b3e85f21d5e66e1181d93721/more_itertools-10.8.0.tar.gz", hash = "sha256:f638ddf8a1a0d134181275fb5d58b086ead7c6a72429ad725c67503f13ba30bd", size = 137431, upload-time = "2025-09-02T15:23:11.018Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a4/8e/469e5a4a2f5855992e425f3cb33804cc07bf18d48f2db061aec61ce50270/more_itertools-10.8.0-py3-none-any.whl", hash = "sha256:52d4362373dcf7c52546bc4af9a86ee7c4579df9a8dc268be0a2f949d376cc9b", size = 69667, upload-time = "2025-09-02T15:23:09.635Z" },+]++[[package]]+name = "mpmath"+version = "1.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e0/47/dd32fa426cc72114383ac549964eecb20ecfd886d1e5ccf5340b55b02f57/mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f", size = 508106, upload-time = "2023-03-07T16:47:11.061Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c", size = 536198, upload-time = "2023-03-07T16:47:09.197Z" },+]++[[package]]+name = "multidict"+version = "6.7.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1a/c2/c2d94cbe6ac1753f3fc980da97b3d930efe1da3af3c9f5125354436c073d/multidict-6.7.1.tar.gz", hash = "sha256:ec6652a1bee61c53a3e5776b6049172c53b6aaba34f18c9ad04f82712bac623d", size = 102010, upload-time = "2026-01-26T02:46:45.979Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f2/22/929c141d6c0dba87d3e1d38fbdf1ba8baba86b7776469f2bc2d3227a1e67/multidict-6.7.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2b41f5fed0ed563624f1c17630cb9941cf2309d4df00e494b551b5f3e3d67a23", size = 76174, upload-time = "2026-01-26T02:44:18.509Z" },+ { url = "https://files.pythonhosted.org/packages/c7/75/bc704ae15fee974f8fccd871305e254754167dce5f9e42d88a2def741a1d/multidict-6.7.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:84e61e3af5463c19b67ced91f6c634effb89ef8bfc5ca0267f954451ed4bb6a2", size = 45116, upload-time = "2026-01-26T02:44:19.745Z" },+ { url = "https://files.pythonhosted.org/packages/79/76/55cd7186f498ed080a18440c9013011eb548f77ae1b297206d030eb1180a/multidict-6.7.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:935434b9853c7c112eee7ac891bc4cb86455aa631269ae35442cb316790c1445", size = 43524, upload-time = "2026-01-26T02:44:21.571Z" },+ { url = "https://files.pythonhosted.org/packages/e9/3c/414842ef8d5a1628d68edee29ba0e5bcf235dbfb3ccd3ea303a7fe8c72ff/multidict-6.7.1-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:432feb25a1cb67fe82a9680b4d65fb542e4635cb3166cd9c01560651ad60f177", size = 249368, upload-time = "2026-01-26T02:44:22.803Z" },+ { url = "https://files.pythonhosted.org/packages/f6/32/befed7f74c458b4a525e60519fe8d87eef72bb1e99924fa2b0f9d97a221e/multidict-6.7.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e82d14e3c948952a1a85503817e038cba5905a3352de76b9a465075d072fba23", size = 256952, upload-time = "2026-01-26T02:44:24.306Z" },+ { url = "https://files.pythonhosted.org/packages/03/d6/c878a44ba877f366630c860fdf74bfb203c33778f12b6ac274936853c451/multidict-6.7.1-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4cfb48c6ea66c83bcaaf7e4dfa7ec1b6bbcf751b7db85a328902796dfde4c060", size = 240317, upload-time = "2026-01-26T02:44:25.772Z" },+ { url = "https://files.pythonhosted.org/packages/68/49/57421b4d7ad2e9e60e25922b08ceb37e077b90444bde6ead629095327a6f/multidict-6.7.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:1d540e51b7e8e170174555edecddbd5538105443754539193e3e1061864d444d", size = 267132, upload-time = "2026-01-26T02:44:27.648Z" },+ { url = "https://files.pythonhosted.org/packages/b7/fe/ec0edd52ddbcea2a2e89e174f0206444a61440b40f39704e64dc807a70bd/multidict-6.7.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:273d23f4b40f3dce4d6c8a821c741a86dec62cded82e1175ba3d99be128147ed", size = 268140, upload-time = "2026-01-26T02:44:29.588Z" },+ { url = "https://files.pythonhosted.org/packages/b0/73/6e1b01cbeb458807aa0831742232dbdd1fa92bfa33f52a3f176b4ff3dc11/multidict-6.7.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d624335fd4fa1c08a53f8b4be7676ebde19cd092b3895c421045ca87895b429", size = 254277, upload-time = "2026-01-26T02:44:30.902Z" },+ { url = "https://files.pythonhosted.org/packages/6a/b2/5fb8c124d7561a4974c342bc8c778b471ebbeb3cc17df696f034a7e9afe7/multidict-6.7.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:12fad252f8b267cc75b66e8fc51b3079604e8d43a75428ffe193cd9e2195dfd6", size = 252291, upload-time = "2026-01-26T02:44:32.31Z" },+ { url = "https://files.pythonhosted.org/packages/5a/96/51d4e4e06bcce92577fcd488e22600bd38e4fd59c20cb49434d054903bd2/multidict-6.7.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:03ede2a6ffbe8ef936b92cb4529f27f42be7f56afcdab5ab739cd5f27fb1cbf9", size = 250156, upload-time = "2026-01-26T02:44:33.734Z" },+ { url = "https://files.pythonhosted.org/packages/db/6b/420e173eec5fba721a50e2a9f89eda89d9c98fded1124f8d5c675f7a0c0f/multidict-6.7.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:90efbcf47dbe33dcf643a1e400d67d59abeac5db07dc3f27d6bdeae497a2198c", size = 249742, upload-time = "2026-01-26T02:44:35.222Z" },+ { url = "https://files.pythonhosted.org/packages/44/a3/ec5b5bd98f306bc2aa297b8c6f11a46714a56b1e6ef5ebda50a4f5d7c5fb/multidict-6.7.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:5c4b9bfc148f5a91be9244d6264c53035c8a0dcd2f51f1c3c6e30e30ebaa1c84", size = 262221, upload-time = "2026-01-26T02:44:36.604Z" },+ { url = "https://files.pythonhosted.org/packages/cd/f7/e8c0d0da0cd1e28d10e624604e1a36bcc3353aaebdfdc3a43c72bc683a12/multidict-6.7.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:401c5a650f3add2472d1d288c26deebc540f99e2fb83e9525007a74cd2116f1d", size = 258664, upload-time = "2026-01-26T02:44:38.008Z" },+ { url = "https://files.pythonhosted.org/packages/52/da/151a44e8016dd33feed44f730bd856a66257c1ee7aed4f44b649fb7edeb3/multidict-6.7.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:97891f3b1b3ffbded884e2916cacf3c6fc87b66bb0dde46f7357404750559f33", size = 249490, upload-time = "2026-01-26T02:44:39.386Z" },+ { url = "https://files.pythonhosted.org/packages/87/af/a3b86bf9630b732897f6fc3f4c4714b90aa4361983ccbdcd6c0339b21b0c/multidict-6.7.1-cp313-cp313-win32.whl", hash = "sha256:e1c5988359516095535c4301af38d8a8838534158f649c05dd1050222321bcb3", size = 41695, upload-time = "2026-01-26T02:44:41.318Z" },+ { url = "https://files.pythonhosted.org/packages/b2/35/e994121b0e90e46134673422dd564623f93304614f5d11886b1b3e06f503/multidict-6.7.1-cp313-cp313-win_amd64.whl", hash = "sha256:960c83bf01a95b12b08fd54324a4eb1d5b52c88932b5cba5d6e712bb3ed12eb5", size = 45884, upload-time = "2026-01-26T02:44:42.488Z" },+ { url = "https://files.pythonhosted.org/packages/ca/61/42d3e5dbf661242a69c97ea363f2d7b46c567da8eadef8890022be6e2ab0/multidict-6.7.1-cp313-cp313-win_arm64.whl", hash = "sha256:563fe25c678aaba333d5399408f5ec3c383ca5b663e7f774dd179a520b8144df", size = 43122, upload-time = "2026-01-26T02:44:43.664Z" },+ { url = "https://files.pythonhosted.org/packages/6d/b3/e6b21c6c4f314bb956016b0b3ef2162590a529b84cb831c257519e7fde44/multidict-6.7.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:c76c4bec1538375dad9d452d246ca5368ad6e1c9039dadcf007ae59c70619ea1", size = 83175, upload-time = "2026-01-26T02:44:44.894Z" },+ { url = "https://files.pythonhosted.org/packages/fb/76/23ecd2abfe0957b234f6c960f4ade497f55f2c16aeb684d4ecdbf1c95791/multidict-6.7.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:57b46b24b5d5ebcc978da4ec23a819a9402b4228b8a90d9c656422b4bdd8a963", size = 48460, upload-time = "2026-01-26T02:44:46.106Z" },+ { url = "https://files.pythonhosted.org/packages/c4/57/a0ed92b23f3a042c36bc4227b72b97eca803f5f1801c1ab77c8a212d455e/multidict-6.7.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e954b24433c768ce78ab7929e84ccf3422e46deb45a4dc9f93438f8217fa2d34", size = 46930, upload-time = "2026-01-26T02:44:47.278Z" },+ { url = "https://files.pythonhosted.org/packages/b5/66/02ec7ace29162e447f6382c495dc95826bf931d3818799bbef11e8f7df1a/multidict-6.7.1-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:3bd231490fa7217cc832528e1cd8752a96f0125ddd2b5749390f7c3ec8721b65", size = 242582, upload-time = "2026-01-26T02:44:48.604Z" },+ { url = "https://files.pythonhosted.org/packages/58/18/64f5a795e7677670e872673aca234162514696274597b3708b2c0d276cce/multidict-6.7.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:253282d70d67885a15c8a7716f3a73edf2d635793ceda8173b9ecc21f2fb8292", size = 250031, upload-time = "2026-01-26T02:44:50.544Z" },+ { url = "https://files.pythonhosted.org/packages/c8/ed/e192291dbbe51a8290c5686f482084d31bcd9d09af24f63358c3d42fd284/multidict-6.7.1-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0b4c48648d7649c9335cf1927a8b87fa692de3dcb15faa676c6a6f1f1aabda43", size = 228596, upload-time = "2026-01-26T02:44:51.951Z" },+ { url = "https://files.pythonhosted.org/packages/1e/7e/3562a15a60cf747397e7f2180b0a11dc0c38d9175a650e75fa1b4d325e15/multidict-6.7.1-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:98bc624954ec4d2c7cb074b8eefc2b5d0ce7d482e410df446414355d158fe4ca", size = 257492, upload-time = "2026-01-26T02:44:53.902Z" },+ { url = "https://files.pythonhosted.org/packages/24/02/7d0f9eae92b5249bb50ac1595b295f10e263dd0078ebb55115c31e0eaccd/multidict-6.7.1-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1b99af4d9eec0b49927b4402bcbb58dea89d3e0db8806a4086117019939ad3dd", size = 255899, upload-time = "2026-01-26T02:44:55.316Z" },+ { url = "https://files.pythonhosted.org/packages/00/e3/9b60ed9e23e64c73a5cde95269ef1330678e9c6e34dd4eb6b431b85b5a10/multidict-6.7.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6aac4f16b472d5b7dc6f66a0d49dd57b0e0902090be16594dc9ebfd3d17c47e7", size = 247970, upload-time = "2026-01-26T02:44:56.783Z" },+ { url = "https://files.pythonhosted.org/packages/3e/06/538e58a63ed5cfb0bd4517e346b91da32fde409d839720f664e9a4ae4f9d/multidict-6.7.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:21f830fe223215dffd51f538e78c172ed7c7f60c9b96a2bf05c4848ad49921c3", size = 245060, upload-time = "2026-01-26T02:44:58.195Z" },+ { url = "https://files.pythonhosted.org/packages/b2/2f/d743a3045a97c895d401e9bd29aaa09b94f5cbdf1bd561609e5a6c431c70/multidict-6.7.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:f5dd81c45b05518b9aa4da4aa74e1c93d715efa234fd3e8a179df611cc85e5f4", size = 235888, upload-time = "2026-01-26T02:44:59.57Z" },+ { url = "https://files.pythonhosted.org/packages/38/83/5a325cac191ab28b63c52f14f1131f3b0a55ba3b9aa65a6d0bf2a9b921a0/multidict-6.7.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:eb304767bca2bb92fb9c5bd33cedc95baee5bb5f6c88e63706533a1c06ad08c8", size = 243554, upload-time = "2026-01-26T02:45:01.054Z" },+ { url = "https://files.pythonhosted.org/packages/20/1f/9d2327086bd15da2725ef6aae624208e2ef828ed99892b17f60c344e57ed/multidict-6.7.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:c9035dde0f916702850ef66460bc4239d89d08df4d02023a5926e7446724212c", size = 252341, upload-time = "2026-01-26T02:45:02.484Z" },+ { url = "https://files.pythonhosted.org/packages/e8/2c/2a1aa0280cf579d0f6eed8ee5211c4f1730bd7e06c636ba2ee6aafda302e/multidict-6.7.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:af959b9beeb66c822380f222f0e0a1889331597e81f1ded7f374f3ecb0fd6c52", size = 246391, upload-time = "2026-01-26T02:45:03.862Z" },+ { url = "https://files.pythonhosted.org/packages/e5/03/7ca022ffc36c5a3f6e03b179a5ceb829be9da5783e6fe395f347c0794680/multidict-6.7.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:41f2952231456154ee479651491e94118229844dd7226541788be783be2b5108", size = 243422, upload-time = "2026-01-26T02:45:05.296Z" },+ { url = "https://files.pythonhosted.org/packages/dc/1d/b31650eab6c5778aceed46ba735bd97f7c7d2f54b319fa916c0f96e7805b/multidict-6.7.1-cp313-cp313t-win32.whl", hash = "sha256:df9f19c28adcb40b6aae30bbaa1478c389efd50c28d541d76760199fc1037c32", size = 47770, upload-time = "2026-01-26T02:45:06.754Z" },+ { url = "https://files.pythonhosted.org/packages/ac/5b/2d2d1d522e51285bd61b1e20df8f47ae1a9d80839db0b24ea783b3832832/multidict-6.7.1-cp313-cp313t-win_amd64.whl", hash = "sha256:d54ecf9f301853f2c5e802da559604b3e95bb7a3b01a9c295c6ee591b9882de8", size = 53109, upload-time = "2026-01-26T02:45:08.044Z" },+ { url = "https://files.pythonhosted.org/packages/3d/a3/cc409ba012c83ca024a308516703cf339bdc4b696195644a7215a5164a24/multidict-6.7.1-cp313-cp313t-win_arm64.whl", hash = "sha256:5a37ca18e360377cfda1d62f5f382ff41f2b8c4ccb329ed974cc2e1643440118", size = 45573, upload-time = "2026-01-26T02:45:09.349Z" },+ { url = "https://files.pythonhosted.org/packages/81/08/7036c080d7117f28a4af526d794aab6a84463126db031b007717c1a6676e/multidict-6.7.1-py3-none-any.whl", hash = "sha256:55d97cc6dae627efa6a6e548885712d4864b81110ac76fa4e534c03819fa4a56", size = 12319, upload-time = "2026-01-26T02:46:44.004Z" },+]++[[package]]+name = "nodeenv"+version = "1.10.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/24/bf/d1bda4f6168e0b2e9e5958945e01910052158313224ada5ce1fb2e1113b8/nodeenv-1.10.0.tar.gz", hash = "sha256:996c191ad80897d076bdfba80a41994c2b47c68e224c542b48feba42ba00f8bb", size = 55611, upload-time = "2025-12-20T14:08:54.006Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/88/b2/d0896bdcdc8d28a7fc5717c305f1a861c26e18c05047949fb371034d98bd/nodeenv-1.10.0-py2.py3-none-any.whl", hash = "sha256:5bb13e3eed2923615535339b3c620e76779af4cb4c6a90deccc9e36b274d3827", size = 23438, upload-time = "2025-12-20T14:08:52.782Z" },+]++[[package]]+name = "numpy"+version = "2.4.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/57/fd/0005efbd0af48e55eb3c7208af93f2862d4b1a56cd78e84309a2d959208d/numpy-2.4.2.tar.gz", hash = "sha256:659a6107e31a83c4e33f763942275fd278b21d095094044eb35569e86a21ddae", size = 20723651, upload-time = "2026-01-31T23:13:10.135Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a1/22/815b9fe25d1d7ae7d492152adbc7226d3eff731dffc38fe970589fcaaa38/numpy-2.4.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:25f2059807faea4b077a2b6837391b5d830864b3543627f381821c646f31a63c", size = 16663696, upload-time = "2026-01-31T23:11:17.516Z" },+ { url = "https://files.pythonhosted.org/packages/09/f0/817d03a03f93ba9c6c8993de509277d84e69f9453601915e4a69554102a1/numpy-2.4.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bd3a7a9f5847d2fb8c2c6d1c862fa109c31a9abeca1a3c2bd5a64572955b2979", size = 14688322, upload-time = "2026-01-31T23:11:19.883Z" },+ { url = "https://files.pythonhosted.org/packages/da/b4/f805ab79293c728b9a99438775ce51885fd4f31b76178767cfc718701a39/numpy-2.4.2-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:8e4549f8a3c6d13d55041925e912bfd834285ef1dd64d6bc7d542583355e2e98", size = 5198157, upload-time = "2026-01-31T23:11:22.375Z" },+ { url = "https://files.pythonhosted.org/packages/74/09/826e4289844eccdcd64aac27d13b0fd3f32039915dd5b9ba01baae1f436c/numpy-2.4.2-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:aea4f66ff44dfddf8c2cffd66ba6538c5ec67d389285292fe428cb2c738c8aef", size = 6546330, upload-time = "2026-01-31T23:11:23.958Z" },+ { url = "https://files.pythonhosted.org/packages/19/fb/cbfdbfa3057a10aea5422c558ac57538e6acc87ec1669e666d32ac198da7/numpy-2.4.2-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c3cd545784805de05aafe1dde61752ea49a359ccba9760c1e5d1c88a93bbf2b7", size = 15660968, upload-time = "2026-01-31T23:11:25.713Z" },+ { url = "https://files.pythonhosted.org/packages/04/dc/46066ce18d01645541f0186877377b9371b8fa8017fa8262002b4ef22612/numpy-2.4.2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d0d9b7c93578baafcbc5f0b83eaf17b79d345c6f36917ba0c67f45226911d499", size = 16607311, upload-time = "2026-01-31T23:11:28.117Z" },+ { url = "https://files.pythonhosted.org/packages/14/d9/4b5adfc39a43fa6bf918c6d544bc60c05236cc2f6339847fc5b35e6cb5b0/numpy-2.4.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f74f0f7779cc7ae07d1810aab8ac6b1464c3eafb9e283a40da7309d5e6e48fbb", size = 17012850, upload-time = "2026-01-31T23:11:30.888Z" },+ { url = "https://files.pythonhosted.org/packages/b7/20/adb6e6adde6d0130046e6fdfb7675cc62bc2f6b7b02239a09eb58435753d/numpy-2.4.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:c7ac672d699bf36275c035e16b65539931347d68b70667d28984c9fb34e07fa7", size = 18334210, upload-time = "2026-01-31T23:11:33.214Z" },+ { url = "https://files.pythonhosted.org/packages/78/0e/0a73b3dff26803a8c02baa76398015ea2a5434d9b8265a7898a6028c1591/numpy-2.4.2-cp313-cp313-win32.whl", hash = "sha256:8e9afaeb0beff068b4d9cd20d322ba0ee1cecfb0b08db145e4ab4dd44a6b5110", size = 5958199, upload-time = "2026-01-31T23:11:35.385Z" },+ { url = "https://files.pythonhosted.org/packages/43/bc/6352f343522fcb2c04dbaf94cb30cca6fd32c1a750c06ad6231b4293708c/numpy-2.4.2-cp313-cp313-win_amd64.whl", hash = "sha256:7df2de1e4fba69a51c06c28f5a3de36731eb9639feb8e1cf7e4a7b0daf4cf622", size = 12310848, upload-time = "2026-01-31T23:11:38.001Z" },+ { url = "https://files.pythonhosted.org/packages/6e/8d/6da186483e308da5da1cc6918ce913dcfe14ffde98e710bfeff2a6158d4e/numpy-2.4.2-cp313-cp313-win_arm64.whl", hash = "sha256:0fece1d1f0a89c16b03442eae5c56dc0be0c7883b5d388e0c03f53019a4bfd71", size = 10221082, upload-time = "2026-01-31T23:11:40.392Z" },+ { url = "https://files.pythonhosted.org/packages/25/a1/9510aa43555b44781968935c7548a8926274f815de42ad3997e9e83680dd/numpy-2.4.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5633c0da313330fd20c484c78cdd3f9b175b55e1a766c4a174230c6b70ad8262", size = 14815866, upload-time = "2026-01-31T23:11:42.495Z" },+ { url = "https://files.pythonhosted.org/packages/36/30/6bbb5e76631a5ae46e7923dd16ca9d3f1c93cfa8d4ed79a129814a9d8db3/numpy-2.4.2-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:d9f64d786b3b1dd742c946c42d15b07497ed14af1a1f3ce840cce27daa0ce913", size = 5325631, upload-time = "2026-01-31T23:11:44.7Z" },+ { url = "https://files.pythonhosted.org/packages/46/00/3a490938800c1923b567b3a15cd17896e68052e2145d8662aaf3e1ffc58f/numpy-2.4.2-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:b21041e8cb6a1eb5312dd1d2f80a94d91efffb7a06b70597d44f1bd2dfc315ab", size = 6646254, upload-time = "2026-01-31T23:11:46.341Z" },+ { url = "https://files.pythonhosted.org/packages/d3/e9/fac0890149898a9b609caa5af7455a948b544746e4b8fe7c212c8edd71f8/numpy-2.4.2-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:00ab83c56211a1d7c07c25e3217ea6695e50a3e2f255053686b081dc0b091a82", size = 15720138, upload-time = "2026-01-31T23:11:48.082Z" },+ { url = "https://files.pythonhosted.org/packages/ea/5c/08887c54e68e1e28df53709f1893ce92932cc6f01f7c3d4dc952f61ffd4e/numpy-2.4.2-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2fb882da679409066b4603579619341c6d6898fc83a8995199d5249f986e8e8f", size = 16655398, upload-time = "2026-01-31T23:11:50.293Z" },+ { url = "https://files.pythonhosted.org/packages/4d/89/253db0fa0e66e9129c745e4ef25631dc37d5f1314dad2b53e907b8538e6d/numpy-2.4.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:66cb9422236317f9d44b67b4d18f44efe6e9c7f8794ac0462978513359461554", size = 17079064, upload-time = "2026-01-31T23:11:52.927Z" },+ { url = "https://files.pythonhosted.org/packages/2a/d5/cbade46ce97c59c6c3da525e8d95b7abe8a42974a1dc5c1d489c10433e88/numpy-2.4.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:0f01dcf33e73d80bd8dc0f20a71303abbafa26a19e23f6b68d1aa9990af90257", size = 18379680, upload-time = "2026-01-31T23:11:55.22Z" },+ { url = "https://files.pythonhosted.org/packages/40/62/48f99ae172a4b63d981babe683685030e8a3df4f246c893ea5c6ef99f018/numpy-2.4.2-cp313-cp313t-win32.whl", hash = "sha256:52b913ec40ff7ae845687b0b34d8d93b60cb66dcee06996dd5c99f2fc9328657", size = 6082433, upload-time = "2026-01-31T23:11:58.096Z" },+ { url = "https://files.pythonhosted.org/packages/07/38/e054a61cfe48ad9f1ed0d188e78b7e26859d0b60ef21cd9de4897cdb5326/numpy-2.4.2-cp313-cp313t-win_amd64.whl", hash = "sha256:5eea80d908b2c1f91486eb95b3fb6fab187e569ec9752ab7d9333d2e66bf2d6b", size = 12451181, upload-time = "2026-01-31T23:11:59.782Z" },+ { url = "https://files.pythonhosted.org/packages/6e/a4/a05c3a6418575e185dd84d0b9680b6bb2e2dc3e4202f036b7b4e22d6e9dc/numpy-2.4.2-cp313-cp313t-win_arm64.whl", hash = "sha256:fd49860271d52127d61197bb50b64f58454e9f578cb4b2c001a6de8b1f50b0b1", size = 10290756, upload-time = "2026-01-31T23:12:02.438Z" },+]++[[package]]+name = "oauthlib"+version = "3.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0b/5f/19930f824ffeb0ad4372da4812c50edbd1434f678c90c2733e1188edfc63/oauthlib-3.3.1.tar.gz", hash = "sha256:0f0f8aa759826a193cf66c12ea1af1637f87b9b4622d46e866952bb022e538c9", size = 185918, upload-time = "2025-06-19T22:48:08.269Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/be/9c/92789c596b8df838baa98fa71844d84283302f7604ed565dafe5a6b5041a/oauthlib-3.3.1-py3-none-any.whl", hash = "sha256:88119c938d2b8fb88561af5f6ee0eec8cc8d552b7bb1f712743136eb7523b7a1", size = 160065, upload-time = "2025-06-19T22:48:06.508Z" },+]++[[package]]+name = "onnxruntime"+version = "1.24.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "flatbuffers" },+ { name = "numpy" },+ { name = "packaging" },+ { name = "protobuf" },+ { name = "sympy" },+]+wheels = [+ { url = "https://files.pythonhosted.org/packages/95/77/7172ecfcbdabd92f338e694f38c325f6fab29a38fa0a8c3d1c85b9f4617c/onnxruntime-1.24.1-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:82e367770e8fba8a87ba9f4c04bb527e6d4d7204540f1390f202c27a3b759fb4", size = 17211381, upload-time = "2026-02-05T17:31:09.601Z" },+ { url = "https://files.pythonhosted.org/packages/79/5b/532a0d75b93bbd0da0e108b986097ebe164b84fbecfdf2ddbf7c8a3a2e83/onnxruntime-1.24.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1099f3629832580fedf415cfce2462a56cc9ca2b560d6300c24558e2ac049134", size = 15016000, upload-time = "2026-02-05T17:31:00.116Z" },+ { url = "https://files.pythonhosted.org/packages/f6/b5/40606c7bce0702975a077bc6668cd072cd77695fc5c0b3fcf59bdb1fe65e/onnxruntime-1.24.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6361dda4270f3939a625670bd67ae0982a49b7f923207450e28433abc9c3a83b", size = 17097637, upload-time = "2026-02-05T17:31:34.787Z" },+ { url = "https://files.pythonhosted.org/packages/d5/a0/9e8f7933796b466241b934585723c700d8fb6bde2de856e65335193d7c93/onnxruntime-1.24.1-cp313-cp313-win_amd64.whl", hash = "sha256:bd1e4aefe73b6b99aa303cd72562ab6de3cccb09088100f8ad1c974be13079c7", size = 12492467, upload-time = "2026-02-05T17:32:09.834Z" },+ { url = "https://files.pythonhosted.org/packages/fb/8a/ee07d86e35035f9fed42497af76435f5a613d4e8b6c537ea0f8ef9fa85da/onnxruntime-1.24.1-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:88a2b54dca00c90fca6303eedf13d49b5b4191d031372c2e85f5cffe4d86b79e", size = 15025407, upload-time = "2026-02-05T17:31:02.251Z" },+ { url = "https://files.pythonhosted.org/packages/fd/9e/ab3e1dda4b126313d240e1aaa87792ddb1f5ba6d03ca2f093a7c4af8c323/onnxruntime-1.24.1-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2dfbba602da840615ed5b431facda4b3a43b5d8276cf9e0dbf13d842df105838", size = 17099810, upload-time = "2026-02-05T17:31:37.537Z" },+]++[[package]]+name = "openai"+version = "2.20.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "distro" },+ { name = "httpx" },+ { name = "jiter" },+ { name = "pydantic" },+ { name = "sniffio" },+ { name = "tqdm" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/6e/5a/f495777c02625bfa18212b6e3b73f1893094f2bf660976eb4bc6f43a1ca2/openai-2.20.0.tar.gz", hash = "sha256:2654a689208cd0bf1098bb9462e8d722af5cbe961e6bba54e6f19fb843d88db1", size = 642355, upload-time = "2026-02-10T19:02:54.145Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b5/a0/cf4297aa51bbc21e83ef0ac018947fa06aea8f2364aad7c96cbf148590e6/openai-2.20.0-py3-none-any.whl", hash = "sha256:38d989c4b1075cd1f76abc68364059d822327cf1a932531d429795f4fc18be99", size = 1098479, upload-time = "2026-02-10T19:02:52.157Z" },+]++[[package]]+name = "openapi-pydantic"+version = "0.5.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pydantic" },+]+sdist = { url = "https://files.pythonhosted.org/packages/02/2e/58d83848dd1a79cb92ed8e63f6ba901ca282c5f09d04af9423ec26c56fd7/openapi_pydantic-0.5.1.tar.gz", hash = "sha256:ff6835af6bde7a459fb93eb93bb92b8749b754fc6e51b2f1590a19dc3005ee0d", size = 60892, upload-time = "2025-01-08T19:29:27.083Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/12/cf/03675d8bd8ecbf4445504d8071adab19f5f993676795708e36402ab38263/openapi_pydantic-0.5.1-py3-none-any.whl", hash = "sha256:a3a09ef4586f5bd760a8df7f43028b60cafb6d9f61de2acba9574766255ab146", size = 96381, upload-time = "2025-01-08T19:29:25.275Z" },+]++[[package]]+name = "openjiuwen"+version = "0.1.7"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiofiles" },+ { name = "aiohttp" },+ { name = "cacheout" },+ { name = "charset-normalizer" },+ { name = "dashscope" },+ { name = "docx2txt" },+ { name = "fastmcp" },+ { name = "filelock" },+ { name = "json-repair" },+ { name = "mermaid-py" },+ { name = "numpy" },+ { name = "oauthlib" },+ { name = "openai" },+ { name = "pdfplumber" },+ { name = "portalocker" },+ { name = "pycryptodome" },+ { name = "pymilvus" },+ { name = "pysbd" },+ { name = "python-dateutil" },+ { name = "python-docx" },+ { name = "requests" },+ { name = "sqlalchemy" },+ { name = "tenacity" },+ { name = "tiktoken" },+ { name = "transformers" },+]+sdist = { url = "https://files.pythonhosted.org/packages/a9/2b/044cd1877c7070910ac654e81f9def94abf364b7da16d5aa2a2639ccc98c/openjiuwen-0.1.7.tar.gz", hash = "sha256:9e8703317ba0d678655b55b1a5bfaa636ff2a3040de36c8d39436cbd851a248d", size = 756310, upload-time = "2026-02-14T07:51:32.385Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/77/54/c60feaef2bd5aef4208e37f72688c187e8768139c5967a19710becb6d3a0/openjiuwen-0.1.7-py3-none-any.whl", hash = "sha256:2601deb4dd5935d999990ac530c4e4333a968a1addffc58b4f4938a926c26717", size = 1067732, upload-time = "2026-02-14T07:51:30.497Z" },+]++[[package]]+name = "opentelemetry-api"+version = "1.39.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "importlib-metadata" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/97/b9/3161be15bb8e3ad01be8be5a968a9237c3027c5be504362ff800fca3e442/opentelemetry_api-1.39.1.tar.gz", hash = "sha256:fbde8c80e1b937a2c61f20347e91c0c18a1940cecf012d62e65a7caf08967c9c", size = 65767, upload-time = "2025-12-11T13:32:39.182Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cf/df/d3f1ddf4bb4cb50ed9b1139cc7b1c54c34a1e7ce8fd1b9a37c0d1551a6bd/opentelemetry_api-1.39.1-py3-none-any.whl", hash = "sha256:2edd8463432a7f8443edce90972169b195e7d6a05500cd29e6d13898187c9950", size = 66356, upload-time = "2025-12-11T13:32:17.304Z" },+]++[[package]]+name = "opentelemetry-exporter-otlp-proto-common"+version = "1.39.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "opentelemetry-proto" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e9/9d/22d241b66f7bbde88a3bfa6847a351d2c46b84de23e71222c6aae25c7050/opentelemetry_exporter_otlp_proto_common-1.39.1.tar.gz", hash = "sha256:763370d4737a59741c89a67b50f9e39271639ee4afc999dadfe768541c027464", size = 20409, upload-time = "2025-12-11T13:32:40.885Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8c/02/ffc3e143d89a27ac21fd557365b98bd0653b98de8a101151d5805b5d4c33/opentelemetry_exporter_otlp_proto_common-1.39.1-py3-none-any.whl", hash = "sha256:08f8a5862d64cc3435105686d0216c1365dc5701f86844a8cd56597d0c764fde", size = 18366, upload-time = "2025-12-11T13:32:20.2Z" },+]++[[package]]+name = "opentelemetry-exporter-otlp-proto-grpc"+version = "1.39.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "googleapis-common-protos" },+ { name = "grpcio" },+ { name = "opentelemetry-api" },+ { name = "opentelemetry-exporter-otlp-proto-common" },+ { name = "opentelemetry-proto" },+ { name = "opentelemetry-sdk" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/53/48/b329fed2c610c2c32c9366d9dc597202c9d1e58e631c137ba15248d8850f/opentelemetry_exporter_otlp_proto_grpc-1.39.1.tar.gz", hash = "sha256:772eb1c9287485d625e4dbe9c879898e5253fea111d9181140f51291b5fec3ad", size = 24650, upload-time = "2025-12-11T13:32:41.429Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/81/a3/cc9b66575bd6597b98b886a2067eea2693408d2d5f39dad9ab7fc264f5f3/opentelemetry_exporter_otlp_proto_grpc-1.39.1-py3-none-any.whl", hash = "sha256:fa1c136a05c7e9b4c09f739469cbdb927ea20b34088ab1d959a849b5cc589c18", size = 19766, upload-time = "2025-12-11T13:32:21.027Z" },+]++[[package]]+name = "opentelemetry-proto"+version = "1.39.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "protobuf" },+]+sdist = { url = "https://files.pythonhosted.org/packages/49/1d/f25d76d8260c156c40c97c9ed4511ec0f9ce353f8108ca6e7561f82a06b2/opentelemetry_proto-1.39.1.tar.gz", hash = "sha256:6c8e05144fc0d3ed4d22c2289c6b126e03bcd0e6a7da0f16cedd2e1c2772e2c8", size = 46152, upload-time = "2025-12-11T13:32:48.681Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/51/95/b40c96a7b5203005a0b03d8ce8cd212ff23f1793d5ba289c87a097571b18/opentelemetry_proto-1.39.1-py3-none-any.whl", hash = "sha256:22cdc78efd3b3765d09e68bfbd010d4fc254c9818afd0b6b423387d9dee46007", size = 72535, upload-time = "2025-12-11T13:32:33.866Z" },+]++[[package]]+name = "opentelemetry-sdk"+version = "1.39.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "opentelemetry-api" },+ { name = "opentelemetry-semantic-conventions" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/eb/fb/c76080c9ba07e1e8235d24cdcc4d125ef7aa3edf23eb4e497c2e50889adc/opentelemetry_sdk-1.39.1.tar.gz", hash = "sha256:cf4d4563caf7bff906c9f7967e2be22d0d6b349b908be0d90fb21c8e9c995cc6", size = 171460, upload-time = "2025-12-11T13:32:49.369Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7c/98/e91cf858f203d86f4eccdf763dcf01cf03f1dae80c3750f7e635bfa206b6/opentelemetry_sdk-1.39.1-py3-none-any.whl", hash = "sha256:4d5482c478513ecb0a5d938dcc61394e647066e0cc2676bee9f3af3f3f45f01c", size = 132565, upload-time = "2025-12-11T13:32:35.069Z" },+]++[[package]]+name = "opentelemetry-semantic-conventions"+version = "0.60b1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "opentelemetry-api" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/91/df/553f93ed38bf22f4b999d9be9c185adb558982214f33eae539d3b5cd0858/opentelemetry_semantic_conventions-0.60b1.tar.gz", hash = "sha256:87c228b5a0669b748c76d76df6c364c369c28f1c465e50f661e39737e84bc953", size = 137935, upload-time = "2025-12-11T13:32:50.487Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7a/5e/5958555e09635d09b75de3c4f8b9cae7335ca545d77392ffe7331534c402/opentelemetry_semantic_conventions-0.60b1-py3-none-any.whl", hash = "sha256:9fa8c8b0c110da289809292b0591220d3a7b53c1526a23021e977d68597893fb", size = 219982, upload-time = "2025-12-11T13:32:36.955Z" },+]++[[package]]+name = "orjson"+version = "3.11.7"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/53/45/b268004f745ede84e5798b48ee12b05129d19235d0e15267aa57dcdb400b/orjson-3.11.7.tar.gz", hash = "sha256:9b1a67243945819ce55d24a30b59d6a168e86220452d2c96f4d1f093e71c0c49", size = 6144992, upload-time = "2026-02-02T15:38:49.29Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/89/25/6e0e52cac5aab51d7b6dcd257e855e1dec1c2060f6b28566c509b4665f62/orjson-3.11.7-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:1d98b30cc1313d52d4af17d9c3d307b08389752ec5f2e5febdfada70b0f8c733", size = 228390, upload-time = "2026-02-02T15:38:06.8Z" },+ { url = "https://files.pythonhosted.org/packages/a5/29/a77f48d2fc8a05bbc529e5ff481fb43d914f9e383ea2469d4f3d51df3d00/orjson-3.11.7-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:d897e81f8d0cbd2abb82226d1860ad2e1ab3ff16d7b08c96ca00df9d45409ef4", size = 125189, upload-time = "2026-02-02T15:38:08.181Z" },+ { url = "https://files.pythonhosted.org/packages/89/25/0a16e0729a0e6a1504f9d1a13cdd365f030068aab64cec6958396b9969d7/orjson-3.11.7-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:814be4b49b228cfc0b3c565acf642dd7d13538f966e3ccde61f4f55be3e20785", size = 128106, upload-time = "2026-02-02T15:38:09.41Z" },+ { url = "https://files.pythonhosted.org/packages/66/da/a2e505469d60666a05ab373f1a6322eb671cb2ba3a0ccfc7d4bc97196787/orjson-3.11.7-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d06e5c5fed5caedd2e540d62e5b1c25e8c82431b9e577c33537e5fa4aa909539", size = 123363, upload-time = "2026-02-02T15:38:10.73Z" },+ { url = "https://files.pythonhosted.org/packages/23/bf/ed73f88396ea35c71b38961734ea4a4746f7ca0768bf28fd551d37e48dd0/orjson-3.11.7-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:31c80ce534ac4ea3739c5ee751270646cbc46e45aea7576a38ffec040b4029a1", size = 129007, upload-time = "2026-02-02T15:38:12.138Z" },+ { url = "https://files.pythonhosted.org/packages/73/3c/b05d80716f0225fc9008fbf8ab22841dcc268a626aa550561743714ce3bf/orjson-3.11.7-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f50979824bde13d32b4320eedd513431c921102796d86be3eee0b58e58a3ecd1", size = 141667, upload-time = "2026-02-02T15:38:13.398Z" },+ { url = "https://files.pythonhosted.org/packages/61/e8/0be9b0addd9bf86abfc938e97441dcd0375d494594b1c8ad10fe57479617/orjson-3.11.7-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9e54f3808e2b6b945078c41aa8d9b5834b28c50843846e97807e5adb75fa9705", size = 130832, upload-time = "2026-02-02T15:38:14.698Z" },+ { url = "https://files.pythonhosted.org/packages/c9/ec/c68e3b9021a31d9ec15a94931db1410136af862955854ed5dd7e7e4f5bff/orjson-3.11.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a12b80df61aab7b98b490fe9e4879925ba666fccdfcd175252ce4d9035865ace", size = 133373, upload-time = "2026-02-02T15:38:16.109Z" },+ { url = "https://files.pythonhosted.org/packages/d2/45/f3466739aaafa570cc8e77c6dbb853c48bf56e3b43738020e2661e08b0ac/orjson-3.11.7-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:996b65230271f1a97026fd0e6a753f51fbc0c335d2ad0c6201f711b0da32693b", size = 138307, upload-time = "2026-02-02T15:38:17.453Z" },+ { url = "https://files.pythonhosted.org/packages/e1/84/9f7f02288da1ffb31405c1be07657afd1eecbcb4b64ee2817b6fe0f785fa/orjson-3.11.7-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:ab49d4b2a6a1d415ddb9f37a21e02e0d5dbfe10b7870b21bf779fc21e9156157", size = 408695, upload-time = "2026-02-02T15:38:18.831Z" },+ { url = "https://files.pythonhosted.org/packages/18/07/9dd2f0c0104f1a0295ffbe912bc8d63307a539b900dd9e2c48ef7810d971/orjson-3.11.7-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:390a1dce0c055ddf8adb6aa94a73b45a4a7d7177b5c584b8d1c1947f2ba60fb3", size = 144099, upload-time = "2026-02-02T15:38:20.28Z" },+ { url = "https://files.pythonhosted.org/packages/a5/66/857a8e4a3292e1f7b1b202883bcdeb43a91566cf59a93f97c53b44bd6801/orjson-3.11.7-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1eb80451a9c351a71dfaf5b7ccc13ad065405217726b59fdbeadbcc544f9d223", size = 134806, upload-time = "2026-02-02T15:38:22.186Z" },+ { url = "https://files.pythonhosted.org/packages/0a/5b/6ebcf3defc1aab3a338ca777214966851e92efb1f30dc7fc8285216e6d1b/orjson-3.11.7-cp313-cp313-win32.whl", hash = "sha256:7477aa6a6ec6139c5cb1cc7b214643592169a5494d200397c7fc95d740d5fcf3", size = 127914, upload-time = "2026-02-02T15:38:23.511Z" },+ { url = "https://files.pythonhosted.org/packages/00/04/c6f72daca5092e3117840a1b1e88dfc809cc1470cf0734890d0366b684a1/orjson-3.11.7-cp313-cp313-win_amd64.whl", hash = "sha256:b9f95dcdea9d4f805daa9ddf02617a89e484c6985fa03055459f90e87d7a0757", size = 124986, upload-time = "2026-02-02T15:38:24.836Z" },+ { url = "https://files.pythonhosted.org/packages/03/ba/077a0f6f1085d6b806937246860fafbd5b17f3919c70ee3f3d8d9c713f38/orjson-3.11.7-cp313-cp313-win_arm64.whl", hash = "sha256:800988273a014a0541483dc81021247d7eacb0c845a9d1a34a422bc718f41539", size = 126045, upload-time = "2026-02-02T15:38:26.216Z" },+]++[[package]]+name = "overrides"+version = "7.7.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/36/86/b585f53236dec60aba864e050778b25045f857e17f6e5ea0ae95fe80edd2/overrides-7.7.0.tar.gz", hash = "sha256:55158fa3d93b98cc75299b1e67078ad9003ca27945c76162c1c0766d6f91820a", size = 22812, upload-time = "2024-01-27T21:01:33.423Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2c/ab/fc8290c6a4c722e5514d80f62b2dc4c4df1a68a41d1364e625c35990fcf3/overrides-7.7.0-py3-none-any.whl", hash = "sha256:c7ed9d062f78b8e4c1a7b70bd8796b35ead4d9f510227ef9c5dc7626c60d7e49", size = 17832, upload-time = "2024-01-27T21:01:31.393Z" },+]++[[package]]+name = "packaging"+version = "26.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416, upload-time = "2026-01-21T20:50:39.064Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" },+]++[[package]]+name = "pandas"+version = "3.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy" },+ { name = "python-dateutil" },+ { name = "tzdata", marker = "sys_platform == 'emscripten' or sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/de/da/b1dc0481ab8d55d0f46e343cfe67d4551a0e14fcee52bd38ca1bd73258d8/pandas-3.0.0.tar.gz", hash = "sha256:0facf7e87d38f721f0af46fe70d97373a37701b1c09f7ed7aeeb292ade5c050f", size = 4633005, upload-time = "2026-01-21T15:52:04.726Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6f/fa/7f0ac4ca8877c57537aaff2a842f8760e630d8e824b730eb2e859ffe96ca/pandas-3.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:b78d646249b9a2bc191040988c7bb524c92fa8534fb0898a0741d7e6f2ffafa6", size = 10307129, upload-time = "2026-01-21T15:50:52.877Z" },+ { url = "https://files.pythonhosted.org/packages/6f/11/28a221815dcea4c0c9414dfc845e34a84a6a7dabc6da3194498ed5ba4361/pandas-3.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bc9cba7b355cb4162442a88ce495e01cb605f17ac1e27d6596ac963504e0305f", size = 9850201, upload-time = "2026-01-21T15:50:54.807Z" },+ { url = "https://files.pythonhosted.org/packages/ba/da/53bbc8c5363b7e5bd10f9ae59ab250fc7a382ea6ba08e4d06d8694370354/pandas-3.0.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3c9a1a149aed3b6c9bf246033ff91e1b02d529546c5d6fb6b74a28fea0cf4c70", size = 10354031, upload-time = "2026-01-21T15:50:57.463Z" },+ { url = "https://files.pythonhosted.org/packages/f7/a3/51e02ebc2a14974170d51e2410dfdab58870ea9bcd37cda15bd553d24dc4/pandas-3.0.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:95683af6175d884ee89471842acfca29172a85031fccdabc35e50c0984470a0e", size = 10861165, upload-time = "2026-01-21T15:50:59.32Z" },+ { url = "https://files.pythonhosted.org/packages/a5/fe/05a51e3cac11d161472b8297bd41723ea98013384dd6d76d115ce3482f9b/pandas-3.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1fbbb5a7288719e36b76b4f18d46ede46e7f916b6c8d9915b756b0a6c3f792b3", size = 11359359, upload-time = "2026-01-21T15:51:02.014Z" },+ { url = "https://files.pythonhosted.org/packages/ee/56/ba620583225f9b85a4d3e69c01df3e3870659cc525f67929b60e9f21dcd1/pandas-3.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8e8b9808590fa364416b49b2a35c1f4cf2785a6c156935879e57f826df22038e", size = 11912907, upload-time = "2026-01-21T15:51:05.175Z" },+ { url = "https://files.pythonhosted.org/packages/c9/8c/c6638d9f67e45e07656b3826405c5cc5f57f6fd07c8b2572ade328c86e22/pandas-3.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:98212a38a709feb90ae658cb6227ea3657c22ba8157d4b8f913cd4c950de5e7e", size = 9732138, upload-time = "2026-01-21T15:51:07.569Z" },+ { url = "https://files.pythonhosted.org/packages/7b/bf/bd1335c3bf1770b6d8fed2799993b11c4971af93bb1b729b9ebbc02ca2ec/pandas-3.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:177d9df10b3f43b70307a149d7ec49a1229a653f907aa60a48f1877d0e6be3be", size = 9033568, upload-time = "2026-01-21T15:51:09.484Z" },+ { url = "https://files.pythonhosted.org/packages/8e/c6/f5e2171914d5e29b9171d495344097d54e3ffe41d2d85d8115baba4dc483/pandas-3.0.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2713810ad3806767b89ad3b7b69ba153e1c6ff6d9c20f9c2140379b2a98b6c98", size = 10741936, upload-time = "2026-01-21T15:51:11.693Z" },+ { url = "https://files.pythonhosted.org/packages/51/88/9a0164f99510a1acb9f548691f022c756c2314aad0d8330a24616c14c462/pandas-3.0.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:15d59f885ee5011daf8335dff47dcb8a912a27b4ad7826dc6cbe809fd145d327", size = 10393884, upload-time = "2026-01-21T15:51:14.197Z" },+ { url = "https://files.pythonhosted.org/packages/e0/53/b34d78084d88d8ae2b848591229da8826d1e65aacf00b3abe34023467648/pandas-3.0.0-cp313-cp313t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:24e6547fb64d2c92665dd2adbfa4e85fa4fd70a9c070e7cfb03b629a0bbab5eb", size = 10310740, upload-time = "2026-01-21T15:51:16.093Z" },+ { url = "https://files.pythonhosted.org/packages/5b/d3/bee792e7c3d6930b74468d990604325701412e55d7aaf47460a22311d1a5/pandas-3.0.0-cp313-cp313t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:48ee04b90e2505c693d3f8e8f524dab8cb8aaf7ddcab52c92afa535e717c4812", size = 10700014, upload-time = "2026-01-21T15:51:18.818Z" },+ { url = "https://files.pythonhosted.org/packages/55/db/2570bc40fb13aaed1cbc3fbd725c3a60ee162477982123c3adc8971e7ac1/pandas-3.0.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:66f72fb172959af42a459e27a8d8d2c7e311ff4c1f7db6deb3b643dbc382ae08", size = 11323737, upload-time = "2026-01-21T15:51:20.784Z" },+ { url = "https://files.pythonhosted.org/packages/bc/2e/297ac7f21c8181b62a4cccebad0a70caf679adf3ae5e83cb676194c8acc3/pandas-3.0.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4a4a400ca18230976724a5066f20878af785f36c6756e498e94c2a5e5d57779c", size = 11771558, upload-time = "2026-01-21T15:51:22.977Z" },+ { url = "https://files.pythonhosted.org/packages/0a/46/e1c6876d71c14332be70239acce9ad435975a80541086e5ffba2f249bcf6/pandas-3.0.0-cp313-cp313t-win_amd64.whl", hash = "sha256:940eebffe55528074341a5a36515f3e4c5e25e958ebbc764c9502cfc35ba3faa", size = 10473771, upload-time = "2026-01-21T15:51:25.285Z" },+]++[[package]]+name = "pathable"+version = "0.4.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/67/93/8f2c2075b180c12c1e9f6a09d1a985bc2036906b13dff1d8917e395f2048/pathable-0.4.4.tar.gz", hash = "sha256:6905a3cd17804edfac7875b5f6c9142a218c7caef78693c2dbbbfbac186d88b2", size = 8124, upload-time = "2025-01-10T18:43:13.247Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7d/eb/b6260b31b1a96386c0a880edebe26f89669098acea8e0318bff6adb378fd/pathable-0.4.4-py3-none-any.whl", hash = "sha256:5ae9e94793b6ef5a4cbe0a7ce9dbbefc1eec38df253763fd0aeeacf2762dbbc2", size = 9592, upload-time = "2025-01-10T18:43:11.88Z" },+]++[[package]]+name = "pathvalidate"+version = "3.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/fa/2a/52a8da6fe965dea6192eb716b357558e103aea0a1e9a8352ad575a8406ca/pathvalidate-3.3.1.tar.gz", hash = "sha256:b18c07212bfead624345bb8e1d6141cdcf15a39736994ea0b94035ad2b1ba177", size = 63262, upload-time = "2025-06-15T09:07:20.736Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9a/70/875f4a23bfc4731703a5835487d0d2fb999031bd415e7d17c0ae615c18b7/pathvalidate-3.3.1-py3-none-any.whl", hash = "sha256:5263baab691f8e1af96092fa5137ee17df5bdfbd6cff1fcac4d6ef4bc2e1735f", size = 24305, upload-time = "2025-06-15T09:07:19.117Z" },+]++[[package]]+name = "pdfminer-six"+version = "20251230"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "charset-normalizer" },+ { name = "cryptography" },+]+sdist = { url = "https://files.pythonhosted.org/packages/46/9a/d79d8fa6d47a0338846bb558b39b9963b8eb2dfedec61867c138c1b17eeb/pdfminer_six-20251230.tar.gz", hash = "sha256:e8f68a14c57e00c2d7276d26519ea64be1b48f91db1cdc776faa80528ca06c1e", size = 8511285, upload-time = "2025-12-30T15:49:13.104Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/65/d7/b288ea32deb752a09aab73c75e1e7572ab2a2b56c3124a5d1eb24c62ceb3/pdfminer_six-20251230-py3-none-any.whl", hash = "sha256:9ff2e3466a7dfc6de6fd779478850b6b7c2d9e9405aa2a5869376a822771f485", size = 6591909, upload-time = "2025-12-30T15:49:10.76Z" },+]++[[package]]+name = "pdfplumber"+version = "0.11.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pdfminer-six" },+ { name = "pillow" },+ { name = "pypdfium2" },+]+sdist = { url = "https://files.pythonhosted.org/packages/38/37/9ca3519e92a8434eb93be570b131476cc0a4e840bb39c62ddb7813a39d53/pdfplumber-0.11.9.tar.gz", hash = "sha256:481224b678b2bbdbf376e2c39bf914144eef7c3d301b4a28eebf0f7f6109d6dc", size = 102768, upload-time = "2026-01-05T08:10:29.072Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/8b/c8/cdbc975f5b634e249cfa6597e37c50f3078412474f21c015e508bfbfe3c3/pdfplumber-0.11.9-py3-none-any.whl", hash = "sha256:33ec5580959ba524e9100138746e090879504c42955df1b8a997604dd326c443", size = 60045, upload-time = "2026-01-05T08:10:27.512Z" },+]++[[package]]+name = "pgvector"+version = "0.4.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy" },+]+sdist = { url = "https://files.pythonhosted.org/packages/25/6c/6d8b4b03b958c02fa8687ec6063c49d952a189f8c91ebbe51e877dfab8f7/pgvector-0.4.2.tar.gz", hash = "sha256:322cac0c1dc5d41c9ecf782bd9991b7966685dee3a00bc873631391ed949513a", size = 31354, upload-time = "2025-12-05T01:07:17.87Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5a/26/6cee8a1ce8c43625ec561aff19df07f9776b7525d9002c86bceb3e0ac970/pgvector-0.4.2-py3-none-any.whl", hash = "sha256:549d45f7a18593783d5eec609ea1684a724ba8405c4cb182a0b2b08aeff04e08", size = 27441, upload-time = "2025-12-05T01:07:16.536Z" },+]++[[package]]+name = "pillow"+version = "12.1.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1f/42/5c74462b4fd957fcd7b13b04fb3205ff8349236ea74c7c375766d6c82288/pillow-12.1.1.tar.gz", hash = "sha256:9ad8fa5937ab05218e2b6a4cff30295ad35afd2f83ac592e68c0d871bb0fdbc4", size = 46980264, upload-time = "2026-02-11T04:23:07.146Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d5/11/6db24d4bd7685583caeae54b7009584e38da3c3d4488ed4cd25b439de486/pillow-12.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:d242e8ac078781f1de88bf823d70c1a9b3c7950a44cdf4b7c012e22ccbcd8e4e", size = 4062689, upload-time = "2026-02-11T04:21:06.804Z" },+ { url = "https://files.pythonhosted.org/packages/33/c0/ce6d3b1fe190f0021203e0d9b5b99e57843e345f15f9ef22fcd43842fd21/pillow-12.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:02f84dfad02693676692746df05b89cf25597560db2857363a208e393429f5e9", size = 4138535, upload-time = "2026-02-11T04:21:08.452Z" },+ { url = "https://files.pythonhosted.org/packages/a0/c6/d5eb6a4fb32a3f9c21a8c7613ec706534ea1cf9f4b3663e99f0d83f6fca8/pillow-12.1.1-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:e65498daf4b583091ccbb2556c7000abf0f3349fcd57ef7adc9a84a394ed29f6", size = 3601364, upload-time = "2026-02-11T04:21:10.194Z" },+ { url = "https://files.pythonhosted.org/packages/14/a1/16c4b823838ba4c9c52c0e6bbda903a3fe5a1bdbf1b8eb4fff7156f3e318/pillow-12.1.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:6c6db3b84c87d48d0088943bf33440e0c42370b99b1c2a7989216f7b42eede60", size = 5262561, upload-time = "2026-02-11T04:21:11.742Z" },+ { url = "https://files.pythonhosted.org/packages/bb/ad/ad9dc98ff24f485008aa5cdedaf1a219876f6f6c42a4626c08bc4e80b120/pillow-12.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8b7e5304e34942bf62e15184219a7b5ad4ff7f3bb5cca4d984f37df1a0e1aee2", size = 4657460, upload-time = "2026-02-11T04:21:13.786Z" },+ { url = "https://files.pythonhosted.org/packages/9e/1b/f1a4ea9a895b5732152789326202a82464d5254759fbacae4deea3069334/pillow-12.1.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:18e5bddd742a44b7e6b1e773ab5db102bd7a94c32555ba656e76d319d19c3850", size = 6232698, upload-time = "2026-02-11T04:21:15.949Z" },+ { url = "https://files.pythonhosted.org/packages/95/f4/86f51b8745070daf21fd2e5b1fe0eb35d4db9ca26e6d58366562fb56a743/pillow-12.1.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fc44ef1f3de4f45b50ccf9136999d71abb99dca7706bc75d222ed350b9fd2289", size = 8041706, upload-time = "2026-02-11T04:21:17.723Z" },+ { url = "https://files.pythonhosted.org/packages/29/9b/d6ecd956bb1266dd1045e995cce9b8d77759e740953a1c9aad9502a0461e/pillow-12.1.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5a8eb7ed8d4198bccbd07058416eeec51686b498e784eda166395a23eb99138e", size = 6346621, upload-time = "2026-02-11T04:21:19.547Z" },+ { url = "https://files.pythonhosted.org/packages/71/24/538bff45bde96535d7d998c6fed1a751c75ac7c53c37c90dc2601b243893/pillow-12.1.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:47b94983da0c642de92ced1702c5b6c292a84bd3a8e1d1702ff923f183594717", size = 7038069, upload-time = "2026-02-11T04:21:21.378Z" },+ { url = "https://files.pythonhosted.org/packages/94/0e/58cb1a6bc48f746bc4cb3adb8cabff73e2742c92b3bf7a220b7cf69b9177/pillow-12.1.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:518a48c2aab7ce596d3bf79d0e275661b846e86e4d0e7dec34712c30fe07f02a", size = 6460040, upload-time = "2026-02-11T04:21:23.148Z" },+ { url = "https://files.pythonhosted.org/packages/6c/57/9045cb3ff11eeb6c1adce3b2d60d7d299d7b273a2e6c8381a524abfdc474/pillow-12.1.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a550ae29b95c6dc13cf69e2c9dc5747f814c54eeb2e32d683e5e93af56caa029", size = 7164523, upload-time = "2026-02-11T04:21:25.01Z" },+ { url = "https://files.pythonhosted.org/packages/73/f2/9be9cb99f2175f0d4dbadd6616ce1bf068ee54a28277ea1bf1fbf729c250/pillow-12.1.1-cp313-cp313-win32.whl", hash = "sha256:a003d7422449f6d1e3a34e3dd4110c22148336918ddbfc6a32581cd54b2e0b2b", size = 6332552, upload-time = "2026-02-11T04:21:27.238Z" },+ { url = "https://files.pythonhosted.org/packages/3f/eb/b0834ad8b583d7d9d42b80becff092082a1c3c156bb582590fcc973f1c7c/pillow-12.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:344cf1e3dab3be4b1fa08e449323d98a2a3f819ad20f4b22e77a0ede31f0faa1", size = 7040108, upload-time = "2026-02-11T04:21:29.462Z" },+ { url = "https://files.pythonhosted.org/packages/d5/7d/fc09634e2aabdd0feabaff4a32f4a7d97789223e7c2042fd805ea4b4d2c2/pillow-12.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:5c0dd1636633e7e6a0afe7bf6a51a14992b7f8e60de5789018ebbdfae55b040a", size = 2453712, upload-time = "2026-02-11T04:21:31.072Z" },+ { url = "https://files.pythonhosted.org/packages/19/2a/b9d62794fc8a0dd14c1943df68347badbd5511103e0d04c035ffe5cf2255/pillow-12.1.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0330d233c1a0ead844fc097a7d16c0abff4c12e856c0b325f231820fee1f39da", size = 5264880, upload-time = "2026-02-11T04:21:32.865Z" },+ { url = "https://files.pythonhosted.org/packages/26/9d/e03d857d1347fa5ed9247e123fcd2a97b6220e15e9cb73ca0a8d91702c6e/pillow-12.1.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5dae5f21afb91322f2ff791895ddd8889e5e947ff59f71b46041c8ce6db790bc", size = 4660616, upload-time = "2026-02-11T04:21:34.97Z" },+ { url = "https://files.pythonhosted.org/packages/f7/ec/8a6d22afd02570d30954e043f09c32772bfe143ba9285e2fdb11284952cd/pillow-12.1.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2e0c664be47252947d870ac0d327fea7e63985a08794758aa8af5b6cb6ec0c9c", size = 6269008, upload-time = "2026-02-11T04:21:36.623Z" },+ { url = "https://files.pythonhosted.org/packages/3d/1d/6d875422c9f28a4a361f495a5f68d9de4a66941dc2c619103ca335fa6446/pillow-12.1.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:691ab2ac363b8217f7d31b3497108fb1f50faab2f75dfb03284ec2f217e87bf8", size = 8073226, upload-time = "2026-02-11T04:21:38.585Z" },+ { url = "https://files.pythonhosted.org/packages/a1/cd/134b0b6ee5eda6dc09e25e24b40fdafe11a520bc725c1d0bbaa5e00bf95b/pillow-12.1.1-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e9e8064fb1cc019296958595f6db671fba95209e3ceb0c4734c9baf97de04b20", size = 6380136, upload-time = "2026-02-11T04:21:40.562Z" },+ { url = "https://files.pythonhosted.org/packages/7a/a9/7628f013f18f001c1b98d8fffe3452f306a70dc6aba7d931019e0492f45e/pillow-12.1.1-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:472a8d7ded663e6162dafdf20015c486a7009483ca671cece7a9279b512fcb13", size = 7067129, upload-time = "2026-02-11T04:21:42.521Z" },+ { url = "https://files.pythonhosted.org/packages/1e/f8/66ab30a2193b277785601e82ee2d49f68ea575d9637e5e234faaa98efa4c/pillow-12.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:89b54027a766529136a06cfebeecb3a04900397a3590fd252160b888479517bf", size = 6491807, upload-time = "2026-02-11T04:21:44.22Z" },+ { url = "https://files.pythonhosted.org/packages/da/0b/a877a6627dc8318fdb84e357c5e1a758c0941ab1ddffdafd231983788579/pillow-12.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:86172b0831b82ce4f7877f280055892b31179e1576aa00d0df3bb1bbf8c3e524", size = 7190954, upload-time = "2026-02-11T04:21:46.114Z" },+ { url = "https://files.pythonhosted.org/packages/83/43/6f732ff85743cf746b1361b91665d9f5155e1483817f693f8d57ea93147f/pillow-12.1.1-cp313-cp313t-win32.whl", hash = "sha256:44ce27545b6efcf0fdbdceb31c9a5bdea9333e664cda58a7e674bb74608b3986", size = 6336441, upload-time = "2026-02-11T04:21:48.22Z" },+ { url = "https://files.pythonhosted.org/packages/3b/44/e865ef3986611bb75bfabdf94a590016ea327833f434558801122979cd0e/pillow-12.1.1-cp313-cp313t-win_amd64.whl", hash = "sha256:a285e3eb7a5a45a2ff504e31f4a8d1b12ef62e84e5411c6804a42197c1cf586c", size = 7045383, upload-time = "2026-02-11T04:21:50.015Z" },+ { url = "https://files.pythonhosted.org/packages/a8/c6/f4fb24268d0c6908b9f04143697ea18b0379490cb74ba9e8d41b898bd005/pillow-12.1.1-cp313-cp313t-win_arm64.whl", hash = "sha256:cc7d296b5ea4d29e6570dabeaed58d31c3fea35a633a69679fb03d7664f43fb3", size = 2456104, upload-time = "2026-02-11T04:21:51.633Z" },+]++[[package]]+name = "pip"+version = "26.0.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/48/83/0d7d4e9efe3344b8e2fe25d93be44f64b65364d3c8d7bc6dc90198d5422e/pip-26.0.1.tar.gz", hash = "sha256:c4037d8a277c89b320abe636d59f91e6d0922d08a05b60e85e53b296613346d8", size = 1812747, upload-time = "2026-02-05T02:20:18.702Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/de/f0/c81e05b613866b76d2d1066490adf1a3dbc4ee9d9c839961c3fc8a6997af/pip-26.0.1-py3-none-any.whl", hash = "sha256:bdb1b08f4274833d62c1aa29e20907365a2ceb950410df15fc9521bad440122b", size = 1787723, upload-time = "2026-02-05T02:20:16.416Z" },+]++[[package]]+name = "platformdirs"+version = "4.5.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/cf/86/0248f086a84f01b37aaec0fa567b397df1a119f73c16f6c7a9aac73ea309/platformdirs-4.5.1.tar.gz", hash = "sha256:61d5cdcc6065745cdd94f0f878977f8de9437be93de97c1c12f853c9c0cdcbda", size = 21715, upload-time = "2025-12-05T13:52:58.638Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/28/3bfe2fa5a7b9c46fe7e13c97bda14c895fb10fa2ebf1d0abb90e0cea7ee1/platformdirs-4.5.1-py3-none-any.whl", hash = "sha256:d03afa3963c806a9bed9d5125c8f4cb2fdaf74a55ab60e5d59b3fde758104d31", size = 18731, upload-time = "2025-12-05T13:52:56.823Z" },+]++[[package]]+name = "pluggy"+version = "1.6.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },+]++[[package]]+name = "portalocker"+version = "3.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pywin32", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5e/77/65b857a69ed876e1951e88aaba60f5ce6120c33703f7cb61a3c894b8c1b6/portalocker-3.2.0.tar.gz", hash = "sha256:1f3002956a54a8c3730586c5c77bf18fae4149e07eaf1c29fc3faf4d5a3f89ac", size = 95644, upload-time = "2025-06-14T13:20:40.03Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4b/a6/38c8e2f318bf67d338f4d629e93b0b4b9af331f455f0390ea8ce4a099b26/portalocker-3.2.0-py3-none-any.whl", hash = "sha256:3cdc5f565312224bc570c49337bd21428bba0ef363bbcf58b9ef4a9f11779968", size = 22424, upload-time = "2025-06-14T13:20:38.083Z" },+]++[[package]]+name = "posthog"+version = "5.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "backoff" },+ { name = "distro" },+ { name = "python-dateutil" },+ { name = "requests" },+ { name = "six" },+]+sdist = { url = "https://files.pythonhosted.org/packages/48/20/60ae67bb9d82f00427946218d49e2e7e80fb41c15dc5019482289ec9ce8d/posthog-5.4.0.tar.gz", hash = "sha256:701669261b8d07cdde0276e5bc096b87f9e200e3b9589c5ebff14df658c5893c", size = 88076, upload-time = "2025-06-20T23:19:23.485Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4f/98/e480cab9a08d1c09b1c59a93dade92c1bb7544826684ff2acbfd10fcfbd4/posthog-5.4.0-py3-none-any.whl", hash = "sha256:284dfa302f64353484420b52d4ad81ff5c2c2d1d607c4e2db602ac72761831bd", size = 105364, upload-time = "2025-06-20T23:19:22.001Z" },+]++[[package]]+name = "pre-commit"+version = "4.5.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cfgv" },+ { name = "identify" },+ { name = "nodeenv" },+ { name = "pyyaml" },+ { name = "virtualenv" },+]+sdist = { url = "https://files.pythonhosted.org/packages/40/f1/6d86a29246dfd2e9b6237f0b5823717f60cad94d47ddc26afa916d21f525/pre_commit-4.5.1.tar.gz", hash = "sha256:eb545fcff725875197837263e977ea257a402056661f09dae08e4b149b030a61", size = 198232, upload-time = "2025-12-16T21:14:33.552Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5d/19/fd3ef348460c80af7bb4669ea7926651d1f95c23ff2df18b9d24bab4f3fa/pre_commit-4.5.1-py2.py3-none-any.whl", hash = "sha256:3b3afd891e97337708c1674210f8eba659b52a38ea5f822ff142d10786221f77", size = 226437, upload-time = "2025-12-16T21:14:32.409Z" },+]++[[package]]+name = "prometheus-client"+version = "0.24.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f0/58/a794d23feb6b00fc0c72787d7e87d872a6730dd9ed7c7b3e954637d8f280/prometheus_client-0.24.1.tar.gz", hash = "sha256:7e0ced7fbbd40f7b84962d5d2ab6f17ef88a72504dcf7c0b40737b43b2a461f9", size = 85616, upload-time = "2026-01-14T15:26:26.965Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/74/c3/24a2f845e3917201628ecaba4f18bab4d18a337834c1df2a159ee9d22a42/prometheus_client-0.24.1-py3-none-any.whl", hash = "sha256:150db128af71a5c2482b36e588fc8a6b95e498750da4b17065947c16070f4055", size = 64057, upload-time = "2026-01-14T15:26:24.42Z" },+]++[[package]]+name = "propcache"+version = "0.4.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/9e/da/e9fc233cf63743258bff22b3dfa7ea5baef7b5bc324af47a0ad89b8ffc6f/propcache-0.4.1.tar.gz", hash = "sha256:f48107a8c637e80362555f37ecf49abe20370e557cc4ab374f04ec4423c97c3d", size = 46442, upload-time = "2025-10-08T19:49:02.291Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bf/df/6d9c1b6ac12b003837dde8a10231a7344512186e87b36e855bef32241942/propcache-0.4.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:43eedf29202c08550aac1d14e0ee619b0430aaef78f85864c1a892294fbc28cf", size = 77750, upload-time = "2025-10-08T19:47:07.648Z" },+ { url = "https://files.pythonhosted.org/packages/8b/e8/677a0025e8a2acf07d3418a2e7ba529c9c33caf09d3c1f25513023c1db56/propcache-0.4.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d62cdfcfd89ccb8de04e0eda998535c406bf5e060ffd56be6c586cbcc05b3311", size = 44780, upload-time = "2025-10-08T19:47:08.851Z" },+ { url = "https://files.pythonhosted.org/packages/89/a4/92380f7ca60f99ebae761936bc48a72a639e8a47b29050615eef757cb2a7/propcache-0.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cae65ad55793da34db5f54e4029b89d3b9b9490d8abe1b4c7ab5d4b8ec7ebf74", size = 46308, upload-time = "2025-10-08T19:47:09.982Z" },+ { url = "https://files.pythonhosted.org/packages/2d/48/c5ac64dee5262044348d1d78a5f85dd1a57464a60d30daee946699963eb3/propcache-0.4.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:333ddb9031d2704a301ee3e506dc46b1fe5f294ec198ed6435ad5b6a085facfe", size = 208182, upload-time = "2025-10-08T19:47:11.319Z" },+ { url = "https://files.pythonhosted.org/packages/c6/0c/cd762dd011a9287389a6a3eb43aa30207bde253610cca06824aeabfe9653/propcache-0.4.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fd0858c20f078a32cf55f7e81473d96dcf3b93fd2ccdb3d40fdf54b8573df3af", size = 211215, upload-time = "2025-10-08T19:47:13.146Z" },+ { url = "https://files.pythonhosted.org/packages/30/3e/49861e90233ba36890ae0ca4c660e95df565b2cd15d4a68556ab5865974e/propcache-0.4.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:678ae89ebc632c5c204c794f8dab2837c5f159aeb59e6ed0539500400577298c", size = 218112, upload-time = "2025-10-08T19:47:14.913Z" },+ { url = "https://files.pythonhosted.org/packages/f1/8b/544bc867e24e1bd48f3118cecd3b05c694e160a168478fa28770f22fd094/propcache-0.4.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d472aeb4fbf9865e0c6d622d7f4d54a4e101a89715d8904282bb5f9a2f476c3f", size = 204442, upload-time = "2025-10-08T19:47:16.277Z" },+ { url = "https://files.pythonhosted.org/packages/50/a6/4282772fd016a76d3e5c0df58380a5ea64900afd836cec2c2f662d1b9bb3/propcache-0.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4d3df5fa7e36b3225954fba85589da77a0fe6a53e3976de39caf04a0db4c36f1", size = 199398, upload-time = "2025-10-08T19:47:17.962Z" },+ { url = "https://files.pythonhosted.org/packages/3e/ec/d8a7cd406ee1ddb705db2139f8a10a8a427100347bd698e7014351c7af09/propcache-0.4.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:ee17f18d2498f2673e432faaa71698032b0127ebf23ae5974eeaf806c279df24", size = 196920, upload-time = "2025-10-08T19:47:19.355Z" },+ { url = "https://files.pythonhosted.org/packages/f6/6c/f38ab64af3764f431e359f8baf9e0a21013e24329e8b85d2da32e8ed07ca/propcache-0.4.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:580e97762b950f993ae618e167e7be9256b8353c2dcd8b99ec100eb50f5286aa", size = 203748, upload-time = "2025-10-08T19:47:21.338Z" },+ { url = "https://files.pythonhosted.org/packages/d6/e3/fa846bd70f6534d647886621388f0a265254d30e3ce47e5c8e6e27dbf153/propcache-0.4.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:501d20b891688eb8e7aa903021f0b72d5a55db40ffaab27edefd1027caaafa61", size = 205877, upload-time = "2025-10-08T19:47:23.059Z" },+ { url = "https://files.pythonhosted.org/packages/e2/39/8163fc6f3133fea7b5f2827e8eba2029a0277ab2c5beee6c1db7b10fc23d/propcache-0.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a0bd56e5b100aef69bd8562b74b46254e7c8812918d3baa700c8a8009b0af66", size = 199437, upload-time = "2025-10-08T19:47:24.445Z" },+ { url = "https://files.pythonhosted.org/packages/93/89/caa9089970ca49c7c01662bd0eeedfe85494e863e8043565aeb6472ce8fe/propcache-0.4.1-cp313-cp313-win32.whl", hash = "sha256:bcc9aaa5d80322bc2fb24bb7accb4a30f81e90ab8d6ba187aec0744bc302ad81", size = 37586, upload-time = "2025-10-08T19:47:25.736Z" },+ { url = "https://files.pythonhosted.org/packages/f5/ab/f76ec3c3627c883215b5c8080debb4394ef5a7a29be811f786415fc1e6fd/propcache-0.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:381914df18634f5494334d201e98245c0596067504b9372d8cf93f4bb23e025e", size = 40790, upload-time = "2025-10-08T19:47:26.847Z" },+ { url = "https://files.pythonhosted.org/packages/59/1b/e71ae98235f8e2ba5004d8cb19765a74877abf189bc53fc0c80d799e56c3/propcache-0.4.1-cp313-cp313-win_arm64.whl", hash = "sha256:8873eb4460fd55333ea49b7d189749ecf6e55bf85080f11b1c4530ed3034cba1", size = 37158, upload-time = "2025-10-08T19:47:27.961Z" },+ { url = "https://files.pythonhosted.org/packages/83/ce/a31bbdfc24ee0dcbba458c8175ed26089cf109a55bbe7b7640ed2470cfe9/propcache-0.4.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:92d1935ee1f8d7442da9c0c4fa7ac20d07e94064184811b685f5c4fada64553b", size = 81451, upload-time = "2025-10-08T19:47:29.445Z" },+ { url = "https://files.pythonhosted.org/packages/25/9c/442a45a470a68456e710d96cacd3573ef26a1d0a60067e6a7d5e655621ed/propcache-0.4.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:473c61b39e1460d386479b9b2f337da492042447c9b685f28be4f74d3529e566", size = 46374, upload-time = "2025-10-08T19:47:30.579Z" },+ { url = "https://files.pythonhosted.org/packages/f4/bf/b1d5e21dbc3b2e889ea4327044fb16312a736d97640fb8b6aa3f9c7b3b65/propcache-0.4.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:c0ef0aaafc66fbd87842a3fe3902fd889825646bc21149eafe47be6072725835", size = 48396, upload-time = "2025-10-08T19:47:31.79Z" },+ { url = "https://files.pythonhosted.org/packages/f4/04/5b4c54a103d480e978d3c8a76073502b18db0c4bc17ab91b3cb5092ad949/propcache-0.4.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f95393b4d66bfae908c3ca8d169d5f79cd65636ae15b5e7a4f6e67af675adb0e", size = 275950, upload-time = "2025-10-08T19:47:33.481Z" },+ { url = "https://files.pythonhosted.org/packages/b4/c1/86f846827fb969c4b78b0af79bba1d1ea2156492e1b83dea8b8a6ae27395/propcache-0.4.1-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c07fda85708bc48578467e85099645167a955ba093be0a2dcba962195676e859", size = 273856, upload-time = "2025-10-08T19:47:34.906Z" },+ { url = "https://files.pythonhosted.org/packages/36/1d/fc272a63c8d3bbad6878c336c7a7dea15e8f2d23a544bda43205dfa83ada/propcache-0.4.1-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:af223b406d6d000830c6f65f1e6431783fc3f713ba3e6cc8c024d5ee96170a4b", size = 280420, upload-time = "2025-10-08T19:47:36.338Z" },+ { url = "https://files.pythonhosted.org/packages/07/0c/01f2219d39f7e53d52e5173bcb09c976609ba30209912a0680adfb8c593a/propcache-0.4.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a78372c932c90ee474559c5ddfffd718238e8673c340dc21fe45c5b8b54559a0", size = 263254, upload-time = "2025-10-08T19:47:37.692Z" },+ { url = "https://files.pythonhosted.org/packages/2d/18/cd28081658ce597898f0c4d174d4d0f3c5b6d4dc27ffafeef835c95eb359/propcache-0.4.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:564d9f0d4d9509e1a870c920a89b2fec951b44bf5ba7d537a9e7c1ccec2c18af", size = 261205, upload-time = "2025-10-08T19:47:39.659Z" },+ { url = "https://files.pythonhosted.org/packages/7a/71/1f9e22eb8b8316701c2a19fa1f388c8a3185082607da8e406a803c9b954e/propcache-0.4.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:17612831fda0138059cc5546f4d12a2aacfb9e47068c06af35c400ba58ba7393", size = 247873, upload-time = "2025-10-08T19:47:41.084Z" },+ { url = "https://files.pythonhosted.org/packages/4a/65/3d4b61f36af2b4eddba9def857959f1016a51066b4f1ce348e0cf7881f58/propcache-0.4.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:41a89040cb10bd345b3c1a873b2bf36413d48da1def52f268a055f7398514874", size = 262739, upload-time = "2025-10-08T19:47:42.51Z" },+ { url = "https://files.pythonhosted.org/packages/2a/42/26746ab087faa77c1c68079b228810436ccd9a5ce9ac85e2b7307195fd06/propcache-0.4.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:e35b88984e7fa64aacecea39236cee32dd9bd8c55f57ba8a75cf2399553f9bd7", size = 263514, upload-time = "2025-10-08T19:47:43.927Z" },+ { url = "https://files.pythonhosted.org/packages/94/13/630690fe201f5502d2403dd3cfd451ed8858fe3c738ee88d095ad2ff407b/propcache-0.4.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6f8b465489f927b0df505cbe26ffbeed4d6d8a2bbc61ce90eb074ff129ef0ab1", size = 257781, upload-time = "2025-10-08T19:47:45.448Z" },+ { url = "https://files.pythonhosted.org/packages/92/f7/1d4ec5841505f423469efbfc381d64b7b467438cd5a4bbcbb063f3b73d27/propcache-0.4.1-cp313-cp313t-win32.whl", hash = "sha256:2ad890caa1d928c7c2965b48f3a3815c853180831d0e5503d35cf00c472f4717", size = 41396, upload-time = "2025-10-08T19:47:47.202Z" },+ { url = "https://files.pythonhosted.org/packages/48/f0/615c30622316496d2cbbc29f5985f7777d3ada70f23370608c1d3e081c1f/propcache-0.4.1-cp313-cp313t-win_amd64.whl", hash = "sha256:f7ee0e597f495cf415bcbd3da3caa3bd7e816b74d0d52b8145954c5e6fd3ff37", size = 44897, upload-time = "2025-10-08T19:47:48.336Z" },+ { url = "https://files.pythonhosted.org/packages/fd/ca/6002e46eccbe0e33dcd4069ef32f7f1c9e243736e07adca37ae8c4830ec3/propcache-0.4.1-cp313-cp313t-win_arm64.whl", hash = "sha256:929d7cbe1f01bb7baffb33dc14eb5691c95831450a26354cd210a8155170c93a", size = 39789, upload-time = "2025-10-08T19:47:49.876Z" },+ { url = "https://files.pythonhosted.org/packages/5b/5a/bc7b4a4ef808fa59a816c17b20c4bef6884daebbdf627ff2a161da67da19/propcache-0.4.1-py3-none-any.whl", hash = "sha256:af2a6052aeb6cf17d3e46ee169099044fd8224cbaf75c76a2ef596e8163e2237", size = 13305, upload-time = "2025-10-08T19:49:00.792Z" },+]++[[package]]+name = "protobuf"+version = "6.33.5"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ba/25/7c72c307aafc96fa87062aa6291d9f7c94836e43214d43722e86037aac02/protobuf-6.33.5.tar.gz", hash = "sha256:6ddcac2a081f8b7b9642c09406bc6a4290128fce5f471cddd165960bb9119e5c", size = 444465, upload-time = "2026-01-29T21:51:33.494Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b1/79/af92d0a8369732b027e6d6084251dd8e782c685c72da161bd4a2e00fbabb/protobuf-6.33.5-cp310-abi3-win32.whl", hash = "sha256:d71b040839446bac0f4d162e758bea99c8251161dae9d0983a3b88dee345153b", size = 425769, upload-time = "2026-01-29T21:51:21.751Z" },+ { url = "https://files.pythonhosted.org/packages/55/75/bb9bc917d10e9ee13dee8607eb9ab963b7cf8be607c46e7862c748aa2af7/protobuf-6.33.5-cp310-abi3-win_amd64.whl", hash = "sha256:3093804752167bcab3998bec9f1048baae6e29505adaf1afd14a37bddede533c", size = 437118, upload-time = "2026-01-29T21:51:24.022Z" },+ { url = "https://files.pythonhosted.org/packages/a2/6b/e48dfc1191bc5b52950246275bf4089773e91cb5ba3592621723cdddca62/protobuf-6.33.5-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:a5cb85982d95d906df1e2210e58f8e4f1e3cdc088e52c921a041f9c9a0386de5", size = 427766, upload-time = "2026-01-29T21:51:25.413Z" },+ { url = "https://files.pythonhosted.org/packages/4e/b1/c79468184310de09d75095ed1314b839eb2f72df71097db9d1404a1b2717/protobuf-6.33.5-cp39-abi3-manylinux2014_aarch64.whl", hash = "sha256:9b71e0281f36f179d00cbcb119cb19dec4d14a81393e5ea220f64b286173e190", size = 324638, upload-time = "2026-01-29T21:51:26.423Z" },+ { url = "https://files.pythonhosted.org/packages/c5/f5/65d838092fd01c44d16037953fd4c2cc851e783de9b8f02b27ec4ffd906f/protobuf-6.33.5-cp39-abi3-manylinux2014_s390x.whl", hash = "sha256:8afa18e1d6d20af15b417e728e9f60f3aa108ee76f23c3b2c07a2c3b546d3afd", size = 339411, upload-time = "2026-01-29T21:51:27.446Z" },+ { url = "https://files.pythonhosted.org/packages/9b/53/a9443aa3ca9ba8724fdfa02dd1887c1bcd8e89556b715cfbacca6b63dbec/protobuf-6.33.5-cp39-abi3-manylinux2014_x86_64.whl", hash = "sha256:cbf16ba3350fb7b889fca858fb215967792dc125b35c7976ca4818bee3521cf0", size = 323465, upload-time = "2026-01-29T21:51:28.925Z" },+ { url = "https://files.pythonhosted.org/packages/57/bf/2086963c69bdac3d7cff1cc7ff79b8ce5ea0bec6797a017e1be338a46248/protobuf-6.33.5-py3-none-any.whl", hash = "sha256:69915a973dd0f60f31a08b8318b73eab2bd6a392c79184b3612226b0a3f8ec02", size = 170687, upload-time = "2026-01-29T21:51:32.557Z" },+]++[[package]]+name = "psutil"+version = "7.2.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/aa/c6/d1ddf4abb55e93cebc4f2ed8b5d6dbad109ecb8d63748dd2b20ab5e57ebe/psutil-7.2.2.tar.gz", hash = "sha256:0746f5f8d406af344fd547f1c8daa5f5c33dbc293bb8d6a16d80b4bb88f59372", size = 493740, upload-time = "2026-01-28T18:14:54.428Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/51/08/510cbdb69c25a96f4ae523f733cdc963ae654904e8db864c07585ef99875/psutil-7.2.2-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:2edccc433cbfa046b980b0df0171cd25bcaeb3a68fe9022db0979e7aa74a826b", size = 130595, upload-time = "2026-01-28T18:14:57.293Z" },+ { url = "https://files.pythonhosted.org/packages/d6/f5/97baea3fe7a5a9af7436301f85490905379b1c6f2dd51fe3ecf24b4c5fbf/psutil-7.2.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e78c8603dcd9a04c7364f1a3e670cea95d51ee865e4efb3556a3a63adef958ea", size = 131082, upload-time = "2026-01-28T18:14:59.732Z" },+ { url = "https://files.pythonhosted.org/packages/37/d6/246513fbf9fa174af531f28412297dd05241d97a75911ac8febefa1a53c6/psutil-7.2.2-cp313-cp313t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1a571f2330c966c62aeda00dd24620425d4b0cc86881c89861fbc04549e5dc63", size = 181476, upload-time = "2026-01-28T18:15:01.884Z" },+ { url = "https://files.pythonhosted.org/packages/b8/b5/9182c9af3836cca61696dabe4fd1304e17bc56cb62f17439e1154f225dd3/psutil-7.2.2-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:917e891983ca3c1887b4ef36447b1e0873e70c933afc831c6b6da078ba474312", size = 184062, upload-time = "2026-01-28T18:15:04.436Z" },+ { url = "https://files.pythonhosted.org/packages/16/ba/0756dca669f5a9300d0cbcbfae9a4c30e446dfc7440ffe43ded5724bfd93/psutil-7.2.2-cp313-cp313t-win_amd64.whl", hash = "sha256:ab486563df44c17f5173621c7b198955bd6b613fb87c71c161f827d3fb149a9b", size = 139893, upload-time = "2026-01-28T18:15:06.378Z" },+ { url = "https://files.pythonhosted.org/packages/1c/61/8fa0e26f33623b49949346de05ec1ddaad02ed8ba64af45f40a147dbfa97/psutil-7.2.2-cp313-cp313t-win_arm64.whl", hash = "sha256:ae0aefdd8796a7737eccea863f80f81e468a1e4cf14d926bd9b6f5f2d5f90ca9", size = 135589, upload-time = "2026-01-28T18:15:08.03Z" },+ { url = "https://files.pythonhosted.org/packages/e7/36/5ee6e05c9bd427237b11b3937ad82bb8ad2752d72c6969314590dd0c2f6e/psutil-7.2.2-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:ed0cace939114f62738d808fdcecd4c869222507e266e574799e9c0faa17d486", size = 129090, upload-time = "2026-01-28T18:15:22.168Z" },+ { url = "https://files.pythonhosted.org/packages/80/c4/f5af4c1ca8c1eeb2e92ccca14ce8effdeec651d5ab6053c589b074eda6e1/psutil-7.2.2-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:1a7b04c10f32cc88ab39cbf606e117fd74721c831c98a27dc04578deb0c16979", size = 129859, upload-time = "2026-01-28T18:15:23.795Z" },+ { url = "https://files.pythonhosted.org/packages/b5/70/5d8df3b09e25bce090399cf48e452d25c935ab72dad19406c77f4e828045/psutil-7.2.2-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:076a2d2f923fd4821644f5ba89f059523da90dc9014e85f8e45a5774ca5bc6f9", size = 155560, upload-time = "2026-01-28T18:15:25.976Z" },+ { url = "https://files.pythonhosted.org/packages/63/65/37648c0c158dc222aba51c089eb3bdfa238e621674dc42d48706e639204f/psutil-7.2.2-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b0726cecd84f9474419d67252add4ac0cd9811b04d61123054b9fb6f57df6e9e", size = 156997, upload-time = "2026-01-28T18:15:27.794Z" },+ { url = "https://files.pythonhosted.org/packages/8e/13/125093eadae863ce03c6ffdbae9929430d116a246ef69866dad94da3bfbc/psutil-7.2.2-cp36-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:fd04ef36b4a6d599bbdb225dd1d3f51e00105f6d48a28f006da7f9822f2606d8", size = 148972, upload-time = "2026-01-28T18:15:29.342Z" },+ { url = "https://files.pythonhosted.org/packages/04/78/0acd37ca84ce3ddffaa92ef0f571e073faa6d8ff1f0559ab1272188ea2be/psutil-7.2.2-cp36-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b58fabe35e80b264a4e3bb23e6b96f9e45a3df7fb7eed419ac0e5947c61e47cc", size = 148266, upload-time = "2026-01-28T18:15:31.597Z" },+ { url = "https://files.pythonhosted.org/packages/b4/90/e2159492b5426be0c1fef7acba807a03511f97c5f86b3caeda6ad92351a7/psutil-7.2.2-cp37-abi3-win_amd64.whl", hash = "sha256:eb7e81434c8d223ec4a219b5fc1c47d0417b12be7ea866e24fb5ad6e84b3d988", size = 137737, upload-time = "2026-01-28T18:15:33.849Z" },+ { url = "https://files.pythonhosted.org/packages/8c/c7/7bb2e321574b10df20cbde462a94e2b71d05f9bbda251ef27d104668306a/psutil-7.2.2-cp37-abi3-win_arm64.whl", hash = "sha256:8c233660f575a5a89e6d4cb65d9f938126312bca76d8fe087b947b3a1aaac9ee", size = 134617, upload-time = "2026-01-28T18:15:36.514Z" },+]++[[package]]+name = "py-key-value-aio"+version = "0.3.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "beartype" },+ { name = "py-key-value-shared" },+]+sdist = { url = "https://files.pythonhosted.org/packages/93/ce/3136b771dddf5ac905cc193b461eb67967cf3979688c6696e1f2cdcde7ea/py_key_value_aio-0.3.0.tar.gz", hash = "sha256:858e852fcf6d696d231266da66042d3355a7f9871650415feef9fca7a6cd4155", size = 50801, upload-time = "2025-11-17T16:50:04.711Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/99/10/72f6f213b8f0bce36eff21fda0a13271834e9eeff7f9609b01afdc253c79/py_key_value_aio-0.3.0-py3-none-any.whl", hash = "sha256:1c781915766078bfd608daa769fefb97e65d1d73746a3dfb640460e322071b64", size = 96342, upload-time = "2025-11-17T16:50:03.801Z" },+]++[package.optional-dependencies]+disk = [+ { name = "diskcache" },+ { name = "pathvalidate" },+]+keyring = [+ { name = "keyring" },+]+memory = [+ { name = "cachetools" },+]+redis = [+ { name = "redis" },+]++[[package]]+name = "py-key-value-shared"+version = "0.3.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "beartype" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/7b/e4/1971dfc4620a3a15b4579fe99e024f5edd6e0967a71154771a059daff4db/py_key_value_shared-0.3.0.tar.gz", hash = "sha256:8fdd786cf96c3e900102945f92aa1473138ebe960ef49da1c833790160c28a4b", size = 11666, upload-time = "2025-11-17T16:50:06.849Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/51/e4/b8b0a03ece72f47dce2307d36e1c34725b7223d209fc679315ffe6a4e2c3/py_key_value_shared-0.3.0-py3-none-any.whl", hash = "sha256:5b0efba7ebca08bb158b1e93afc2f07d30b8f40c2fc12ce24a4c0d84f42f9298", size = 19560, upload-time = "2025-11-17T16:50:05.954Z" },+]++[[package]]+name = "pybase64"+version = "1.4.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/aa/b8/4ed5c7ad5ec15b08d35cc79ace6145d5c1ae426e46435f4987379439dfea/pybase64-1.4.3.tar.gz", hash = "sha256:c2ed274c9e0ba9c8f9c4083cfe265e66dd679126cd9c2027965d807352f3f053", size = 137272, upload-time = "2025-12-06T13:27:04.013Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3a/50/b7170cb2c631944388fe2519507fe3835a4054a6a12a43f43781dae82be1/pybase64-1.4.3-cp313-cp313-android_21_arm64_v8a.whl", hash = "sha256:ea4b785b0607d11950b66ce7c328f452614aefc9c6d3c9c28bae795dc7f072e1", size = 33901, upload-time = "2025-12-06T13:23:40.951Z" },+ { url = "https://files.pythonhosted.org/packages/48/8b/69f50578e49c25e0a26e3ee72c39884ff56363344b79fc3967f5af420ed6/pybase64-1.4.3-cp313-cp313-android_21_x86_64.whl", hash = "sha256:6a10b6330188c3026a8b9c10e6b9b3f2e445779cf16a4c453d51a072241c65a2", size = 40807, upload-time = "2025-12-06T13:23:42.006Z" },+ { url = "https://files.pythonhosted.org/packages/5c/8d/20b68f11adfc4c22230e034b65c71392e3e338b413bf713c8945bd2ccfb3/pybase64-1.4.3-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:27fdff227a0c0e182e0ba37a99109645188978b920dfb20d8b9c17eeee370d0d", size = 30932, upload-time = "2025-12-06T13:23:43.348Z" },+ { url = "https://files.pythonhosted.org/packages/f7/79/b1b550ac6bff51a4880bf6e089008b2e1ca16f2c98db5e039a08ac3ad157/pybase64-1.4.3-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:2a8204f1fdfec5aa4184249b51296c0de95445869920c88123978304aad42df1", size = 31394, upload-time = "2025-12-06T13:23:44.317Z" },+ { url = "https://files.pythonhosted.org/packages/82/70/b5d7c5932bf64ee1ec5da859fbac981930b6a55d432a603986c7f509c838/pybase64-1.4.3-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:874fc2a3777de6baf6aa921a7aa73b3be98295794bea31bd80568a963be30767", size = 38078, upload-time = "2025-12-06T13:23:45.348Z" },+ { url = "https://files.pythonhosted.org/packages/56/fe/e66fe373bce717c6858427670736d54297938dad61c5907517ab4106bd90/pybase64-1.4.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:2dc64a94a9d936b8e3449c66afabbaa521d3cc1a563d6bbaaa6ffa4535222e4b", size = 38158, upload-time = "2025-12-06T13:23:46.872Z" },+ { url = "https://files.pythonhosted.org/packages/80/a9/b806ed1dcc7aed2ea3dd4952286319e6f3a8b48615c8118f453948e01999/pybase64-1.4.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e48f86de1c145116ccf369a6e11720ce696c2ec02d285f440dfb57ceaa0a6cb4", size = 31672, upload-time = "2025-12-06T13:23:47.88Z" },+ { url = "https://files.pythonhosted.org/packages/1c/c9/24b3b905cf75e23a9a4deaf203b35ffcb9f473ac0e6d8257f91a05dfce62/pybase64-1.4.3-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:1d45c8fe8fe82b65c36b227bb4a2cf623d9ada16bed602ce2d3e18c35285b72a", size = 68244, upload-time = "2025-12-06T13:23:49.026Z" },+ { url = "https://files.pythonhosted.org/packages/f8/cd/d15b0c3e25e5859fab0416dc5b96d34d6bd2603c1c96a07bb2202b68ab92/pybase64-1.4.3-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:ad70c26ba091d8f5167e9d4e1e86a0483a5414805cdb598a813db635bd3be8b8", size = 71620, upload-time = "2025-12-06T13:23:50.081Z" },+ { url = "https://files.pythonhosted.org/packages/0d/31/4ca953cc3dcde2b3711d6bfd70a6f4ad2ca95a483c9698076ba605f1520f/pybase64-1.4.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e98310b7c43145221e7194ac9fa7fffc84763c87bfc5e2f59f9f92363475bdc1", size = 59930, upload-time = "2025-12-06T13:23:51.68Z" },+ { url = "https://files.pythonhosted.org/packages/60/55/e7f7bdcd0fd66e61dda08db158ffda5c89a306bbdaaf5a062fbe4e48f4a1/pybase64-1.4.3-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:398685a76034e91485a28aeebcb49e64cd663212fd697b2497ac6dfc1df5e671", size = 56425, upload-time = "2025-12-06T13:23:52.732Z" },+ { url = "https://files.pythonhosted.org/packages/cb/65/b592c7f921e51ca1aca3af5b0d201a98666d0a36b930ebb67e7c2ed27395/pybase64-1.4.3-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:7e46400a6461187ccb52ed75b0045d937529e801a53a9cd770b350509f9e4d50", size = 59327, upload-time = "2025-12-06T13:23:53.856Z" },+ { url = "https://files.pythonhosted.org/packages/23/95/1613d2fb82dbb1548595ad4179f04e9a8451bfa18635efce18b631eabe3f/pybase64-1.4.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:1b62b9f2f291d94f5e0b76ab499790b7dcc78a009d4ceea0b0428770267484b6", size = 60294, upload-time = "2025-12-06T13:23:54.937Z" },+ { url = "https://files.pythonhosted.org/packages/9d/73/40431f37f7d1b3eab4673e7946ff1e8f5d6bd425ec257e834dae8a6fc7b0/pybase64-1.4.3-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:f30ceb5fa4327809dede614be586efcbc55404406d71e1f902a6fdcf322b93b2", size = 54858, upload-time = "2025-12-06T13:23:56.031Z" },+ { url = "https://files.pythonhosted.org/packages/a7/84/f6368bcaf9f743732e002a9858646fd7a54f428490d427dd6847c5cfe89e/pybase64-1.4.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0d5f18ed53dfa1d4cf8b39ee542fdda8e66d365940e11f1710989b3cf4a2ed66", size = 58629, upload-time = "2025-12-06T13:23:57.12Z" },+ { url = "https://files.pythonhosted.org/packages/43/75/359532f9adb49c6b546cafc65c46ed75e2ccc220d514ba81c686fbd83965/pybase64-1.4.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:119d31aa4b58b85a8ebd12b63c07681a138c08dfc2fe5383459d42238665d3eb", size = 52448, upload-time = "2025-12-06T13:23:58.298Z" },+ { url = "https://files.pythonhosted.org/packages/92/6c/ade2ba244c3f33ed920a7ed572ad772eb0b5f14480b72d629d0c9e739a40/pybase64-1.4.3-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:3cf0218b0e2f7988cf7d738a73b6a1d14f3be6ce249d7c0f606e768366df2cce", size = 68841, upload-time = "2025-12-06T13:23:59.886Z" },+ { url = "https://files.pythonhosted.org/packages/a0/51/b345139cd236be382f2d4d4453c21ee6299e14d2f759b668e23080f8663f/pybase64-1.4.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:12f4ee5e988bc5c0c1106b0d8fc37fb0508f12dab76bac1b098cb500d148da9d", size = 57910, upload-time = "2025-12-06T13:24:00.994Z" },+ { url = "https://files.pythonhosted.org/packages/1a/b8/9f84bdc4f1c4f0052489396403c04be2f9266a66b70c776001eaf0d78c1f/pybase64-1.4.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:937826bc7b6b95b594a45180e81dd4d99bd4dd4814a443170e399163f7ff3fb6", size = 54335, upload-time = "2025-12-06T13:24:02.046Z" },+ { url = "https://files.pythonhosted.org/packages/d0/c7/be63b617d284de46578a366da77ede39c8f8e815ed0d82c7c2acca560fab/pybase64-1.4.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:88995d1460971ef80b13e3e007afbe4b27c62db0508bc7250a2ab0a0b4b91362", size = 56486, upload-time = "2025-12-06T13:24:03.141Z" },+ { url = "https://files.pythonhosted.org/packages/5e/96/f252c8f9abd6ded3ef1ccd3cdbb8393a33798007f761b23df8de1a2480e6/pybase64-1.4.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:72326fe163385ed3e1e806dd579d47fde5d8a59e51297a60fc4e6cbc1b4fc4ed", size = 70978, upload-time = "2025-12-06T13:24:04.221Z" },+ { url = "https://files.pythonhosted.org/packages/af/51/0f5714af7aeef96e30f968e4371d75ad60558aaed3579d7c6c8f1c43c18a/pybase64-1.4.3-cp313-cp313-win32.whl", hash = "sha256:b1623730c7892cf5ed0d6355e375416be6ef8d53ab9b284f50890443175c0ac3", size = 33684, upload-time = "2025-12-06T13:24:05.29Z" },+ { url = "https://files.pythonhosted.org/packages/b6/ad/0cea830a654eb08563fb8214150ef57546ece1cc421c09035f0e6b0b5ea9/pybase64-1.4.3-cp313-cp313-win_amd64.whl", hash = "sha256:8369887590f1646a5182ca2fb29252509da7ae31d4923dbb55d3e09da8cc4749", size = 35832, upload-time = "2025-12-06T13:24:06.35Z" },+ { url = "https://files.pythonhosted.org/packages/b4/0d/eec2a8214989c751bc7b4cad1860eb2c6abf466e76b77508c0f488c96a37/pybase64-1.4.3-cp313-cp313-win_arm64.whl", hash = "sha256:860b86bca71e5f0237e2ab8b2d9c4c56681f3513b1bf3e2117290c1963488390", size = 31175, upload-time = "2025-12-06T13:24:07.419Z" },+ { url = "https://files.pythonhosted.org/packages/db/c9/e23463c1a2913686803ef76b1a5ae7e6fac868249a66e48253d17ad7232c/pybase64-1.4.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:eb51db4a9c93215135dccd1895dca078e8785c357fabd983c9f9a769f08989a9", size = 38497, upload-time = "2025-12-06T13:24:08.873Z" },+ { url = "https://files.pythonhosted.org/packages/71/83/343f446b4b7a7579bf6937d2d013d82f1a63057cf05558e391ab6039d7db/pybase64-1.4.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a03ef3f529d85fd46b89971dfb00c634d53598d20ad8908fb7482955c710329d", size = 32076, upload-time = "2025-12-06T13:24:09.975Z" },+ { url = "https://files.pythonhosted.org/packages/46/fc/cb64964c3b29b432f54d1bce5e7691d693e33bbf780555151969ffd95178/pybase64-1.4.3-cp313-cp313t-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:2e745f2ce760c6cf04d8a72198ef892015ddb89f6ceba489e383518ecbdb13ab", size = 72317, upload-time = "2025-12-06T13:24:11.129Z" },+ { url = "https://files.pythonhosted.org/packages/0a/b7/fab2240da6f4e1ad46f71fa56ec577613cf5df9dce2d5b4cfaa4edd0e365/pybase64-1.4.3-cp313-cp313t-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:6fac217cd9de8581a854b0ac734c50fd1fa4b8d912396c1fc2fce7c230efe3a7", size = 75534, upload-time = "2025-12-06T13:24:12.433Z" },+ { url = "https://files.pythonhosted.org/packages/91/3b/3e2f2b6e68e3d83ddb9fa799f3548fb7449765daec9bbd005a9fbe296d7f/pybase64-1.4.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:da1ee8fa04b283873de2d6e8fa5653e827f55b86bdf1a929c5367aaeb8d26f8a", size = 65399, upload-time = "2025-12-06T13:24:13.928Z" },+ { url = "https://files.pythonhosted.org/packages/6b/08/476ac5914c3b32e0274a2524fc74f01cbf4f4af4513d054e41574eb018f6/pybase64-1.4.3-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:b0bf8e884ee822ca7b1448eeb97fa131628fe0ff42f60cae9962789bd562727f", size = 60487, upload-time = "2025-12-06T13:24:15.177Z" },+ { url = "https://files.pythonhosted.org/packages/f1/b8/618a92915330cc9cba7880299b546a1d9dab1a21fd6c0292ee44a4fe608c/pybase64-1.4.3-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:1bf749300382a6fd1f4f255b183146ef58f8e9cb2f44a077b3a9200dfb473a77", size = 63959, upload-time = "2025-12-06T13:24:16.854Z" },+ { url = "https://files.pythonhosted.org/packages/a5/52/af9d8d051652c3051862c442ec3861259c5cdb3fc69774bc701470bd2a59/pybase64-1.4.3-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:153a0e42329b92337664cfc356f2065248e6c9a1bd651bbcd6dcaf15145d3f06", size = 64874, upload-time = "2025-12-06T13:24:18.328Z" },+ { url = "https://files.pythonhosted.org/packages/e4/51/5381a7adf1f381bd184d33203692d3c57cf8ae9f250f380c3fecbdbe554b/pybase64-1.4.3-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:86ee56ac7f2184ca10217ed1c655c1a060273e233e692e9086da29d1ae1768db", size = 58572, upload-time = "2025-12-06T13:24:19.417Z" },+ { url = "https://files.pythonhosted.org/packages/e0/f0/578ee4ffce5818017de4fdf544e066c225bc435e73eb4793cde28a689d0b/pybase64-1.4.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:0e71a4db76726bf830b47477e7d830a75c01b2e9b01842e787a0836b0ba741e3", size = 63636, upload-time = "2025-12-06T13:24:20.497Z" },+ { url = "https://files.pythonhosted.org/packages/b9/ad/8ae94814bf20159ea06310b742433e53d5820aa564c9fdf65bf2d79f8799/pybase64-1.4.3-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:2ba7799ec88540acd9861b10551d24656ca3c2888ecf4dba2ee0a71544a8923f", size = 56193, upload-time = "2025-12-06T13:24:21.559Z" },+ { url = "https://files.pythonhosted.org/packages/d1/31/6438cfcc3d3f0fa84d229fa125c243d5094e72628e525dfefadf3bcc6761/pybase64-1.4.3-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:2860299e4c74315f5951f0cf3e72ba0f201c3356c8a68f95a3ab4e620baf44e9", size = 72655, upload-time = "2025-12-06T13:24:22.673Z" },+ { url = "https://files.pythonhosted.org/packages/a3/0d/2bbc9e9c3fc12ba8a6e261482f03a544aca524f92eae0b4908c0a10ba481/pybase64-1.4.3-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:bb06015db9151f0c66c10aae8e3603adab6b6cd7d1f7335a858161d92fc29618", size = 62471, upload-time = "2025-12-06T13:24:23.8Z" },+ { url = "https://files.pythonhosted.org/packages/2c/0b/34d491e7f49c1dbdb322ea8da6adecda7c7cd70b6644557c6e4ca5c6f7c7/pybase64-1.4.3-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:242512a070817272865d37c8909059f43003b81da31f616bb0c391ceadffe067", size = 58119, upload-time = "2025-12-06T13:24:24.994Z" },+ { url = "https://files.pythonhosted.org/packages/ce/17/c21d0cde2a6c766923ae388fc1f78291e1564b0d38c814b5ea8a0e5e081c/pybase64-1.4.3-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:5d8277554a12d3e3eed6180ebda62786bf9fc8d7bb1ee00244258f4a87ca8d20", size = 60791, upload-time = "2025-12-06T13:24:26.046Z" },+ { url = "https://files.pythonhosted.org/packages/92/b2/eaa67038916a48de12b16f4c384bcc1b84b7ec731b23613cb05f27673294/pybase64-1.4.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f40b7ddd698fc1e13a4b64fbe405e4e0e1279e8197e37050e24154655f5f7c4e", size = 74701, upload-time = "2025-12-06T13:24:27.466Z" },+ { url = "https://files.pythonhosted.org/packages/42/10/abb7757c330bb869ebb95dab0c57edf5961ffbd6c095c8209cbbf75d117d/pybase64-1.4.3-cp313-cp313t-win32.whl", hash = "sha256:46d75c9387f354c5172582a9eaae153b53a53afeb9c19fcf764ea7038be3bd8b", size = 33965, upload-time = "2025-12-06T13:24:28.548Z" },+ { url = "https://files.pythonhosted.org/packages/63/a0/2d4e5a59188e9e6aed0903d580541aaea72dcbbab7bf50fb8b83b490b6c3/pybase64-1.4.3-cp313-cp313t-win_amd64.whl", hash = "sha256:d7344625591d281bec54e85cbfdab9e970f6219cac1570f2aa140b8c942ccb81", size = 36207, upload-time = "2025-12-06T13:24:29.646Z" },+ { url = "https://files.pythonhosted.org/packages/1f/05/95b902e8f567b4d4b41df768ccc438af618f8d111e54deaf57d2df46bd76/pybase64-1.4.3-cp313-cp313t-win_arm64.whl", hash = "sha256:28a3c60c55138e0028313f2eccd321fec3c4a0be75e57a8d3eb883730b1b0880", size = 31505, upload-time = "2025-12-06T13:24:30.687Z" },+]++[[package]]+name = "pycparser"+version = "3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492, upload-time = "2026-01-21T14:26:51.89Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" },+]++[[package]]+name = "pycryptodome"+version = "3.23.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/8e/a6/8452177684d5e906854776276ddd34eca30d1b1e15aa1ee9cefc289a33f5/pycryptodome-3.23.0.tar.gz", hash = "sha256:447700a657182d60338bab09fdb27518f8856aecd80ae4c6bdddb67ff5da44ef", size = 4921276, upload-time = "2025-05-17T17:21:45.242Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/04/5d/bdb09489b63cd34a976cc9e2a8d938114f7a53a74d3dd4f125ffa49dce82/pycryptodome-3.23.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:0011f7f00cdb74879142011f95133274741778abba114ceca229adbf8e62c3e4", size = 2495152, upload-time = "2025-05-17T17:20:20.833Z" },+ { url = "https://files.pythonhosted.org/packages/a7/ce/7840250ed4cc0039c433cd41715536f926d6e86ce84e904068eb3244b6a6/pycryptodome-3.23.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:90460fc9e088ce095f9ee8356722d4f10f86e5be06e2354230a9880b9c549aae", size = 1639348, upload-time = "2025-05-17T17:20:23.171Z" },+ { url = "https://files.pythonhosted.org/packages/ee/f0/991da24c55c1f688d6a3b5a11940567353f74590734ee4a64294834ae472/pycryptodome-3.23.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4764e64b269fc83b00f682c47443c2e6e85b18273712b98aa43bcb77f8570477", size = 2184033, upload-time = "2025-05-17T17:20:25.424Z" },+ { url = "https://files.pythonhosted.org/packages/54/16/0e11882deddf00f68b68dd4e8e442ddc30641f31afeb2bc25588124ac8de/pycryptodome-3.23.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eb8f24adb74984aa0e5d07a2368ad95276cf38051fe2dc6605cbcf482e04f2a7", size = 2270142, upload-time = "2025-05-17T17:20:27.808Z" },+ { url = "https://files.pythonhosted.org/packages/d5/fc/4347fea23a3f95ffb931f383ff28b3f7b1fe868739182cb76718c0da86a1/pycryptodome-3.23.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d97618c9c6684a97ef7637ba43bdf6663a2e2e77efe0f863cce97a76af396446", size = 2309384, upload-time = "2025-05-17T17:20:30.765Z" },+ { url = "https://files.pythonhosted.org/packages/6e/d9/c5261780b69ce66d8cfab25d2797bd6e82ba0241804694cd48be41add5eb/pycryptodome-3.23.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9a53a4fe5cb075075d515797d6ce2f56772ea7e6a1e5e4b96cf78a14bac3d265", size = 2183237, upload-time = "2025-05-17T17:20:33.736Z" },+ { url = "https://files.pythonhosted.org/packages/5a/6f/3af2ffedd5cfa08c631f89452c6648c4d779e7772dfc388c77c920ca6bbf/pycryptodome-3.23.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:763d1d74f56f031788e5d307029caef067febf890cd1f8bf61183ae142f1a77b", size = 2343898, upload-time = "2025-05-17T17:20:36.086Z" },+ { url = "https://files.pythonhosted.org/packages/9a/dc/9060d807039ee5de6e2f260f72f3d70ac213993a804f5e67e0a73a56dd2f/pycryptodome-3.23.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:954af0e2bd7cea83ce72243b14e4fb518b18f0c1649b576d114973e2073b273d", size = 2269197, upload-time = "2025-05-17T17:20:38.414Z" },+ { url = "https://files.pythonhosted.org/packages/f9/34/e6c8ca177cb29dcc4967fef73f5de445912f93bd0343c9c33c8e5bf8cde8/pycryptodome-3.23.0-cp313-cp313t-win32.whl", hash = "sha256:257bb3572c63ad8ba40b89f6fc9d63a2a628e9f9708d31ee26560925ebe0210a", size = 1768600, upload-time = "2025-05-17T17:20:40.688Z" },+ { url = "https://files.pythonhosted.org/packages/e4/1d/89756b8d7ff623ad0160f4539da571d1f594d21ee6d68be130a6eccb39a4/pycryptodome-3.23.0-cp313-cp313t-win_amd64.whl", hash = "sha256:6501790c5b62a29fcb227bd6b62012181d886a767ce9ed03b303d1f22eb5c625", size = 1799740, upload-time = "2025-05-17T17:20:42.413Z" },+ { url = "https://files.pythonhosted.org/packages/5d/61/35a64f0feaea9fd07f0d91209e7be91726eb48c0f1bfc6720647194071e4/pycryptodome-3.23.0-cp313-cp313t-win_arm64.whl", hash = "sha256:9a77627a330ab23ca43b48b130e202582e91cc69619947840ea4d2d1be21eb39", size = 1703685, upload-time = "2025-05-17T17:20:44.388Z" },+ { url = "https://files.pythonhosted.org/packages/db/6c/a1f71542c969912bb0e106f64f60a56cc1f0fabecf9396f45accbe63fa68/pycryptodome-3.23.0-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:187058ab80b3281b1de11c2e6842a357a1f71b42cb1e15bce373f3d238135c27", size = 2495627, upload-time = "2025-05-17T17:20:47.139Z" },+ { url = "https://files.pythonhosted.org/packages/6e/4e/a066527e079fc5002390c8acdd3aca431e6ea0a50ffd7201551175b47323/pycryptodome-3.23.0-cp37-abi3-macosx_10_9_x86_64.whl", hash = "sha256:cfb5cd445280c5b0a4e6187a7ce8de5a07b5f3f897f235caa11f1f435f182843", size = 1640362, upload-time = "2025-05-17T17:20:50.392Z" },+ { url = "https://files.pythonhosted.org/packages/50/52/adaf4c8c100a8c49d2bd058e5b551f73dfd8cb89eb4911e25a0c469b6b4e/pycryptodome-3.23.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:67bd81fcbe34f43ad9422ee8fd4843c8e7198dd88dd3d40e6de42ee65fbe1490", size = 2182625, upload-time = "2025-05-17T17:20:52.866Z" },+ { url = "https://files.pythonhosted.org/packages/5f/e9/a09476d436d0ff1402ac3867d933c61805ec2326c6ea557aeeac3825604e/pycryptodome-3.23.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c8987bd3307a39bc03df5c8e0e3d8be0c4c3518b7f044b0f4c15d1aa78f52575", size = 2268954, upload-time = "2025-05-17T17:20:55.027Z" },+ { url = "https://files.pythonhosted.org/packages/f9/c5/ffe6474e0c551d54cab931918127c46d70cab8f114e0c2b5a3c071c2f484/pycryptodome-3.23.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:aa0698f65e5b570426fc31b8162ed4603b0c2841cbb9088e2b01641e3065915b", size = 2308534, upload-time = "2025-05-17T17:20:57.279Z" },+ { url = "https://files.pythonhosted.org/packages/18/28/e199677fc15ecf43010f2463fde4c1a53015d1fe95fb03bca2890836603a/pycryptodome-3.23.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:53ecbafc2b55353edcebd64bf5da94a2a2cdf5090a6915bcca6eca6cc452585a", size = 2181853, upload-time = "2025-05-17T17:20:59.322Z" },+ { url = "https://files.pythonhosted.org/packages/ce/ea/4fdb09f2165ce1365c9eaefef36625583371ee514db58dc9b65d3a255c4c/pycryptodome-3.23.0-cp37-abi3-musllinux_1_2_i686.whl", hash = "sha256:156df9667ad9f2ad26255926524e1c136d6664b741547deb0a86a9acf5ea631f", size = 2342465, upload-time = "2025-05-17T17:21:03.83Z" },+ { url = "https://files.pythonhosted.org/packages/22/82/6edc3fc42fe9284aead511394bac167693fb2b0e0395b28b8bedaa07ef04/pycryptodome-3.23.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:dea827b4d55ee390dc89b2afe5927d4308a8b538ae91d9c6f7a5090f397af1aa", size = 2267414, upload-time = "2025-05-17T17:21:06.72Z" },+ { url = "https://files.pythonhosted.org/packages/59/fe/aae679b64363eb78326c7fdc9d06ec3de18bac68be4b612fc1fe8902693c/pycryptodome-3.23.0-cp37-abi3-win32.whl", hash = "sha256:507dbead45474b62b2bbe318eb1c4c8ee641077532067fec9c1aa82c31f84886", size = 1768484, upload-time = "2025-05-17T17:21:08.535Z" },+ { url = "https://files.pythonhosted.org/packages/54/2f/e97a1b8294db0daaa87012c24a7bb714147c7ade7656973fd6c736b484ff/pycryptodome-3.23.0-cp37-abi3-win_amd64.whl", hash = "sha256:c75b52aacc6c0c260f204cbdd834f76edc9fb0d8e0da9fbf8352ef58202564e2", size = 1799636, upload-time = "2025-05-17T17:21:10.393Z" },+ { url = "https://files.pythonhosted.org/packages/18/3d/f9441a0d798bf2b1e645adc3265e55706aead1255ccdad3856dbdcffec14/pycryptodome-3.23.0-cp37-abi3-win_arm64.whl", hash = "sha256:11eeeb6917903876f134b56ba11abe95c0b0fd5e3330def218083c7d98bbcb3c", size = 1703675, upload-time = "2025-05-17T17:21:13.146Z" },+]++[[package]]+name = "pydantic"+version = "2.12.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "annotated-types" },+ { name = "pydantic-core" },+ { name = "typing-extensions" },+ { name = "typing-inspection" },+]+sdist = { url = "https://files.pythonhosted.org/packages/69/44/36f1a6e523abc58ae5f928898e4aca2e0ea509b5aa6f6f392a5d882be928/pydantic-2.12.5.tar.gz", hash = "sha256:4d351024c75c0f085a9febbb665ce8c0c6ec5d30e903bdb6394b7ede26aebb49", size = 821591, upload-time = "2025-11-26T15:11:46.471Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5a/87/b70ad306ebb6f9b585f114d0ac2137d792b48be34d732d60e597c2f8465a/pydantic-2.12.5-py3-none-any.whl", hash = "sha256:e561593fccf61e8a20fc46dfc2dfe075b8be7d0188df33f221ad1f0139180f9d", size = 463580, upload-time = "2025-11-26T15:11:44.605Z" },+]++[package.optional-dependencies]+email = [+ { name = "email-validator" },+]++[[package]]+name = "pydantic-core"+version = "2.41.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/71/70/23b021c950c2addd24ec408e9ab05d59b035b39d97cdc1130e1bce647bb6/pydantic_core-2.41.5.tar.gz", hash = "sha256:08daa51ea16ad373ffd5e7606252cc32f07bc72b28284b6bc9c6df804816476e", size = 460952, upload-time = "2025-11-04T13:43:49.098Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/87/06/8806241ff1f70d9939f9af039c6c35f2360cf16e93c2ca76f184e76b1564/pydantic_core-2.41.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:941103c9be18ac8daf7b7adca8228f8ed6bb7a1849020f643b3a14d15b1924d9", size = 2120403, upload-time = "2025-11-04T13:40:25.248Z" },+ { url = "https://files.pythonhosted.org/packages/94/02/abfa0e0bda67faa65fef1c84971c7e45928e108fe24333c81f3bfe35d5f5/pydantic_core-2.41.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:112e305c3314f40c93998e567879e887a3160bb8689ef3d2c04b6cc62c33ac34", size = 1896206, upload-time = "2025-11-04T13:40:27.099Z" },+ { url = "https://files.pythonhosted.org/packages/15/df/a4c740c0943e93e6500f9eb23f4ca7ec9bf71b19e608ae5b579678c8d02f/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbaad15cb0c90aa221d43c00e77bb33c93e8d36e0bf74760cd00e732d10a6a0", size = 1919307, upload-time = "2025-11-04T13:40:29.806Z" },+ { url = "https://files.pythonhosted.org/packages/9a/e3/6324802931ae1d123528988e0e86587c2072ac2e5394b4bc2bc34b61ff6e/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:03ca43e12fab6023fc79d28ca6b39b05f794ad08ec2feccc59a339b02f2b3d33", size = 2063258, upload-time = "2025-11-04T13:40:33.544Z" },+ { url = "https://files.pythonhosted.org/packages/c9/d4/2230d7151d4957dd79c3044ea26346c148c98fbf0ee6ebd41056f2d62ab5/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dc799088c08fa04e43144b164feb0c13f9a0bc40503f8df3e9fde58a3c0c101e", size = 2214917, upload-time = "2025-11-04T13:40:35.479Z" },+ { url = "https://files.pythonhosted.org/packages/e6/9f/eaac5df17a3672fef0081b6c1bb0b82b33ee89aa5cec0d7b05f52fd4a1fa/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:97aeba56665b4c3235a0e52b2c2f5ae9cd071b8a8310ad27bddb3f7fb30e9aa2", size = 2332186, upload-time = "2025-11-04T13:40:37.436Z" },+ { url = "https://files.pythonhosted.org/packages/cf/4e/35a80cae583a37cf15604b44240e45c05e04e86f9cfd766623149297e971/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:406bf18d345822d6c21366031003612b9c77b3e29ffdb0f612367352aab7d586", size = 2073164, upload-time = "2025-11-04T13:40:40.289Z" },+ { url = "https://files.pythonhosted.org/packages/bf/e3/f6e262673c6140dd3305d144d032f7bd5f7497d3871c1428521f19f9efa2/pydantic_core-2.41.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b93590ae81f7010dbe380cdeab6f515902ebcbefe0b9327cc4804d74e93ae69d", size = 2179146, upload-time = "2025-11-04T13:40:42.809Z" },+ { url = "https://files.pythonhosted.org/packages/75/c7/20bd7fc05f0c6ea2056a4565c6f36f8968c0924f19b7d97bbfea55780e73/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:01a3d0ab748ee531f4ea6c3e48ad9dac84ddba4b0d82291f87248f2f9de8d740", size = 2137788, upload-time = "2025-11-04T13:40:44.752Z" },+ { url = "https://files.pythonhosted.org/packages/3a/8d/34318ef985c45196e004bc46c6eab2eda437e744c124ef0dbe1ff2c9d06b/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:6561e94ba9dacc9c61bce40e2d6bdc3bfaa0259d3ff36ace3b1e6901936d2e3e", size = 2340133, upload-time = "2025-11-04T13:40:46.66Z" },+ { url = "https://files.pythonhosted.org/packages/9c/59/013626bf8c78a5a5d9350d12e7697d3d4de951a75565496abd40ccd46bee/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:915c3d10f81bec3a74fbd4faebe8391013ba61e5a1a8d48c4455b923bdda7858", size = 2324852, upload-time = "2025-11-04T13:40:48.575Z" },+ { url = "https://files.pythonhosted.org/packages/1a/d9/c248c103856f807ef70c18a4f986693a46a8ffe1602e5d361485da502d20/pydantic_core-2.41.5-cp313-cp313-win32.whl", hash = "sha256:650ae77860b45cfa6e2cdafc42618ceafab3a2d9a3811fcfbd3bbf8ac3c40d36", size = 1994679, upload-time = "2025-11-04T13:40:50.619Z" },+ { url = "https://files.pythonhosted.org/packages/9e/8b/341991b158ddab181cff136acd2552c9f35bd30380422a639c0671e99a91/pydantic_core-2.41.5-cp313-cp313-win_amd64.whl", hash = "sha256:79ec52ec461e99e13791ec6508c722742ad745571f234ea6255bed38c6480f11", size = 2019766, upload-time = "2025-11-04T13:40:52.631Z" },+ { url = "https://files.pythonhosted.org/packages/73/7d/f2f9db34af103bea3e09735bb40b021788a5e834c81eedb541991badf8f5/pydantic_core-2.41.5-cp313-cp313-win_arm64.whl", hash = "sha256:3f84d5c1b4ab906093bdc1ff10484838aca54ef08de4afa9de0f5f14d69639cd", size = 1981005, upload-time = "2025-11-04T13:40:54.734Z" },+]++[[package]]+name = "pydantic-settings"+version = "2.12.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pydantic" },+ { name = "python-dotenv" },+ { name = "typing-inspection" },+]+sdist = { url = "https://files.pythonhosted.org/packages/43/4b/ac7e0aae12027748076d72a8764ff1c9d82ca75a7a52622e67ed3f765c54/pydantic_settings-2.12.0.tar.gz", hash = "sha256:005538ef951e3c2a68e1c08b292b5f2e71490def8589d4221b95dab00dafcfd0", size = 194184, upload-time = "2025-11-10T14:25:47.013Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c1/60/5d4751ba3f4a40a6891f24eec885f51afd78d208498268c734e256fb13c4/pydantic_settings-2.12.0-py3-none-any.whl", hash = "sha256:fddb9fd99a5b18da837b29710391e945b1e30c135477f484084ee513adb93809", size = 51880, upload-time = "2025-11-10T14:25:45.546Z" },+]++[[package]]+name = "pydocket"+version = "0.17.7"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cloudpickle" },+ { name = "croniter" },+ { name = "fakeredis", extra = ["lua"] },+ { name = "opentelemetry-api" },+ { name = "prometheus-client" },+ { name = "py-key-value-aio", extra = ["memory", "redis"] },+ { name = "python-json-logger" },+ { name = "redis" },+ { name = "rich" },+ { name = "typer" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/cd/b2/5e12dbe2acf59e4499285e8eee66e8e81b6ba2f553696d2f4ccca0a7978c/pydocket-0.17.7.tar.gz", hash = "sha256:5c77ec6731a167cdcb44174abf793fe63e7b6c1c1c8a799cc6ec7502b361ee77", size = 347071, upload-time = "2026-02-11T21:01:31.744Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c9/c7/68f2553819965326f968375f02597d49efe71b309ba9d8fef539aeb51c48/pydocket-0.17.7-py3-none-any.whl", hash = "sha256:d1e0921ac02026c4a0140fc72a3848545f3e91e6e74c6e32c588489017c130b2", size = 94608, upload-time = "2026-02-11T21:01:30.111Z" },+]++[[package]]+name = "pygments"+version = "2.19.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" },+]++[[package]]+name = "pyjwt"+version = "2.11.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/5c/5a/b46fa56bf322901eee5b0454a34343cdbdae202cd421775a8ee4e42fd519/pyjwt-2.11.0.tar.gz", hash = "sha256:35f95c1f0fbe5d5ba6e43f00271c275f7a1a4db1dab27bf708073b75318ea623", size = 98019, upload-time = "2026-01-30T19:59:55.694Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6f/01/c26ce75ba460d5cd503da9e13b21a33804d38c2165dec7b716d06b13010c/pyjwt-2.11.0-py3-none-any.whl", hash = "sha256:94a6bde30eb5c8e04fee991062b534071fd1439ef58d2adc9ccb823e7bcd0469", size = 28224, upload-time = "2026-01-30T19:59:54.539Z" },+]++[package.optional-dependencies]+crypto = [+ { name = "cryptography" },+]++[[package]]+name = "pymilvus"+version = "2.6.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cachetools" },+ { name = "grpcio" },+ { name = "orjson" },+ { name = "pandas" },+ { name = "protobuf" },+ { name = "python-dotenv" },+ { name = "setuptools" },+]+sdist = { url = "https://files.pythonhosted.org/packages/94/0c/92adff800a04cd3e9b3f17c06fa972c8d590846b1e0bac0ccf39e054b596/pymilvus-2.6.9.tar.gz", hash = "sha256:c53a3d84ff15814e251be13edda70a98a1c8a6090d7597a908387cbb94a9504a", size = 1493560, upload-time = "2026-02-10T11:01:27.415Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6a/56/ab7f0a5aba6fc06dc210a059d6f6d2ee1f3371d40e2b4366a409576554b8/pymilvus-2.6.9-py3-none-any.whl", hash = "sha256:3e14e8072f6429dcd79d52a24dc021c594cb80841ddd76cb974bc539d1f4cdda", size = 301225, upload-time = "2026-02-10T11:01:25.796Z" },+]++[[package]]+name = "pypdfium2"+version = "5.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/99/23/b3979a1d4f536fabce02e3d9f332e8aeeed064d9df9391f2a77160f4ab36/pypdfium2-5.4.0.tar.gz", hash = "sha256:7219e55048fb3999fc8adcaea467088507207df4676ff9e521a3ae15a67d99c4", size = 269136, upload-time = "2026-02-08T16:54:08.383Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4b/c0/3d707bff5e973272b5412556d19e8c6889ce859a235465f0049cc8d35bc3/pypdfium2-5.4.0-py3-none-android_23_arm64_v8a.whl", hash = "sha256:8bc51a12a8c8eabbdbd7499d3e5ec47bcf56ba18e07b52bdd07d321cc1252c90", size = 2759769, upload-time = "2026-02-08T16:53:32.985Z" },+ { url = "https://files.pythonhosted.org/packages/1b/6b/306cafcb0b18d5fab41687d9ed76eabea86a9ff78bc568bee1bfa34e526d/pypdfium2-5.4.0-py3-none-android_23_armeabi_v7a.whl", hash = "sha256:a414ef5b685824cc6c7acbe19b7dbc735de2023cf473321a8ebfe8d7f5d8a41f", size = 2301913, upload-time = "2026-02-08T16:53:35.026Z" },+ { url = "https://files.pythonhosted.org/packages/7a/37/3d737c7eb84fb22939ab0a643aa0183dbc0745c309e962b4d61eeff8211b/pypdfium2-5.4.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:0e83657db8da5971434ff5683bf3faa007ee1f3a56b61f245b8aa5b60442c23a", size = 2814181, upload-time = "2026-02-08T16:53:36.481Z" },+ { url = "https://files.pythonhosted.org/packages/96/d7/0895737ec3d95ad607ade42e98fa8868b91e35b1170ec39b8c1b5fdb124c/pypdfium2-5.4.0-py3-none-macosx_11_0_x86_64.whl", hash = "sha256:e42b1d14db642e96bb3a57167f620b4247e9c843d22b9fb569b16a7c35a18f47", size = 2943476, upload-time = "2026-02-08T16:53:37.992Z" },+ { url = "https://files.pythonhosted.org/packages/9a/53/f8ab449997d3efa52737b8e6c494f1c3f09dc0642161fadc934f16a57cf0/pypdfium2-5.4.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0698c9a002f839127e74ec0185147e08b64e47a1e6caeaee95df434c05b26e8c", size = 2976675, upload-time = "2026-02-08T16:53:39.923Z" },+ { url = "https://files.pythonhosted.org/packages/c6/28/b8a4d4c1557019101bb722c88ba532ec9c14640117ab1c272c80774d83d7/pypdfium2-5.4.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:22e9d4c73fc48b18b022977ea6fe78df43adf95440e1135020ed35fea9595017", size = 2762396, upload-time = "2026-02-08T16:53:41.958Z" },+ { url = "https://files.pythonhosted.org/packages/0b/4a/6c765f6e0b69d792e2d4c7ef2359301896c82df265d60f9a56e87618ec50/pypdfium2-5.4.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4f0619f8a8ae3eb71b2cdc1fbd2a8f5d43f0fc6bee66d1b3aac2c9c23e44a3bf", size = 3068559, upload-time = "2026-02-08T16:53:43.974Z" },+ { url = "https://files.pythonhosted.org/packages/1c/17/4464e4ab6dd98ac3783c10eb799d8da49cb551a769c987eb9c6ba72a5ccf/pypdfium2-5.4.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:50124415d815c41de8ce7e21cee5450f74f6f1240a140573bb71ccac804d5e5f", size = 3419384, upload-time = "2026-02-08T16:53:46.041Z" },+ { url = "https://files.pythonhosted.org/packages/92/08/fa315a2ab353b41501b7088be72dc6cf8ad2bd4f1ebdfdb90c41b7f29155/pypdfium2-5.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ce482d76e5447e745d761307401eaa366616ca44032b86cf7fbe6be918ade64e", size = 2998123, upload-time = "2026-02-08T16:53:47.705Z" },+ { url = "https://files.pythonhosted.org/packages/02/7a/a171d313d54a028d9437dea2c5d07fc9e1592f4daf5c39cbf514fca75242/pypdfium2-5.4.0-py3-none-manylinux_2_27_s390x.manylinux_2_28_s390x.whl", hash = "sha256:16b9c6b07f3dbe7eda209bf7aaf131ca9614e1dae527e9764180dd58bcbaf411", size = 3673594, upload-time = "2026-02-08T16:53:49.139Z" },+ { url = "https://files.pythonhosted.org/packages/0b/c0/60416f011f7e5a4ca29f40ae94907f34975239f3c6dd7fcb51f99e110f3b/pypdfium2-5.4.0-py3-none-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3b08d48b7cca3b51aefaad7855bc0e9e251432a6eef1356d532ff438be84855e", size = 2965025, upload-time = "2026-02-08T16:53:50.553Z" },+ { url = "https://files.pythonhosted.org/packages/75/e2/8e36144b5e933c707b6aeab7dc6638eee8208697925b48b5b78ef68fb52a/pypdfium2-5.4.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:0a1526e2a2bde7f2f13bec0f471d9fd475f7bbac2c0c860d48c35af8394d5931", size = 4130551, upload-time = "2026-02-08T16:53:52.71Z" },+ { url = "https://files.pythonhosted.org/packages/a0/64/8cda96259a8fdecd457f5d14a9d650315d7bdf496f96055d1d55900b3881/pypdfium2-5.4.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:40cea0bceb1e60a71b3855e2b04d175d2199b7da06212bb80f0c78067d065810", size = 3746587, upload-time = "2026-02-08T16:53:54.219Z" },+ { url = "https://files.pythonhosted.org/packages/33/6b/7764491269f188a922bd6b254359d718899fc3092c90f0f68c2f6e451921/pypdfium2-5.4.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:7a116f8fbeae7aa3a18ff2d1fa331ac647831cc16b589d4fbbbb66d64ecc8793", size = 4336703, upload-time = "2026-02-08T16:53:56.18Z" },+ { url = "https://files.pythonhosted.org/packages/87/b0/2484bd3c20ead51ecea2082deaf94a3e91bad709fa14f049ca7fb598dc9a/pypdfium2-5.4.0-py3-none-musllinux_1_2_ppc64le.whl", hash = "sha256:55c7fc894718db5fa2981d46dee45fe3a4fcd60d26f5095ad8f7779600fa8b6f", size = 4375051, upload-time = "2026-02-08T16:53:57.804Z" },+ { url = "https://files.pythonhosted.org/packages/c0/ac/5f0536be885c3cadc09422de0324a193a21c165488a574029d9d2db92ecb/pypdfium2-5.4.0-py3-none-musllinux_1_2_riscv64.whl", hash = "sha256:dfc1c0c7e6e7ba258ebb338aaf664eb933bff1854cda76e4ee530886ea39b31a", size = 3928935, upload-time = "2026-02-08T16:53:59.265Z" },+ { url = "https://files.pythonhosted.org/packages/13/b9/693b665df0939555491bece0777cafda1270e208734e925006de313abb5b/pypdfium2-5.4.0-py3-none-musllinux_1_2_s390x.whl", hash = "sha256:4c0a48ede7180f804c029c509c2b6ea0c66813a3fde9eb9afc390183f947164d", size = 4997642, upload-time = "2026-02-08T16:54:00.809Z" },+ { url = "https://files.pythonhosted.org/packages/fb/ea/ba585acdfbefe309ee2fe5ebfeb097e36abe1d33c2a5108828c493c070bb/pypdfium2-5.4.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:dea22d15c44a275702fd95ad664ba6eaa3c493d53d58b4d69272a04bdfb0df70", size = 4179914, upload-time = "2026-02-08T16:54:02.264Z" },+ { url = "https://files.pythonhosted.org/packages/97/47/238383e89081a0ed1ca2bf4ef44f7e512fa0c72ffc51adc7df83bfcfd9b9/pypdfium2-5.4.0-py3-none-win32.whl", hash = "sha256:35c643827ed0f4dae9cedf3caf836f94cba5b31bd2c115b80a7c85f004636de9", size = 2995844, upload-time = "2026-02-08T16:54:03.692Z" },+ { url = "https://files.pythonhosted.org/packages/08/37/f1338a0600c6c6e31759f8f80d7ab20aa0bc43b11594da67091300e051d4/pypdfium2-5.4.0-py3-none-win_amd64.whl", hash = "sha256:f9d9ce3c6901294d6984004d4a797dea110f8248b1bde33a823d25b45d3c2685", size = 3104198, upload-time = "2026-02-08T16:54:05.304Z" },+ { url = "https://files.pythonhosted.org/packages/65/17/18ad82f070da18ab970928f730fbd44d9b05aafcb52a2ebb6470eaae53f9/pypdfium2-5.4.0-py3-none-win_arm64.whl", hash = "sha256:2b78ea216fb92e7709b61c46241ebf2cc0c60cf18ad2fb4633af665d7b4e21e6", size = 2938727, upload-time = "2026-02-08T16:54:06.814Z" },+]++[[package]]+name = "pyperclip"+version = "1.11.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e8/52/d87eba7cb129b81563019d1679026e7a112ef76855d6159d24754dbd2a51/pyperclip-1.11.0.tar.gz", hash = "sha256:244035963e4428530d9e3a6101a1ef97209c6825edab1567beac148ccc1db1b6", size = 12185, upload-time = "2025-09-26T14:40:37.245Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/df/80/fc9d01d5ed37ba4c42ca2b55b4339ae6e200b456be3a1aaddf4a9fa99b8c/pyperclip-1.11.0-py3-none-any.whl", hash = "sha256:299403e9ff44581cb9ba2ffeed69c7aa96a008622ad0c46cb575ca75b5b84273", size = 11063, upload-time = "2025-09-26T14:40:36.069Z" },+]++[[package]]+name = "pypika"+version = "0.51.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f8/78/cbaebba88e05e2dcda13ca203131b38d3640219f20ebb49676d26714861b/pypika-0.51.1.tar.gz", hash = "sha256:c30c7c1048fbf056fd3920c5a2b88b0c29dd190a9b2bee971fd17e4abe4d0ebe", size = 80919, upload-time = "2026-02-04T11:27:48.304Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/57/83/c77dfeed04022e8930b08eedca2b6e5efed256ab3321396fde90066efb65/pypika-0.51.1-py2.py3-none-any.whl", hash = "sha256:77985b4d7ce71b9905255bf12468cf598349e98837c037541cfc240e528aec46", size = 60585, upload-time = "2026-02-04T11:27:46.251Z" },+]++[[package]]+name = "pyproject-hooks"+version = "1.2.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e7/82/28175b2414effca1cdac8dc99f76d660e7a4fb0ceefa4b4ab8f5f6742925/pyproject_hooks-1.2.0.tar.gz", hash = "sha256:1e859bd5c40fae9448642dd871adf459e5e2084186e8d2c2a79a824c970da1f8", size = 19228, upload-time = "2024-09-29T09:24:13.293Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bd/24/12818598c362d7f300f18e74db45963dbcb85150324092410c8b49405e42/pyproject_hooks-1.2.0-py3-none-any.whl", hash = "sha256:9e5c6bfa8dcc30091c74b0cf803c81fdd29d94f01992a7707bc97babb1141913", size = 10216, upload-time = "2024-09-29T09:24:11.978Z" },+]++[[package]]+name = "pysbd"+version = "0.3.4"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/48/0a/c99fb7d7e176f8b176ef19704a32e6a9c6aafdf19ef75a187f701fc15801/pysbd-0.3.4-py3-none-any.whl", hash = "sha256:cd838939b7b0b185fcf86b0baf6636667dfb6e474743beeff878e9f42e022953", size = 71082, upload-time = "2021-02-11T16:36:33.351Z" },+]++[[package]]+name = "pytest"+version = "9.0.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "iniconfig" },+ { name = "packaging" },+ { name = "pluggy" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/d1/db/7ef3487e0fb0049ddb5ce41d3a49c235bf9ad299b6a25d5780a89f19230f/pytest-9.0.2.tar.gz", hash = "sha256:75186651a92bd89611d1d9fc20f0b4345fd827c41ccd5c299a868a05d70edf11", size = 1568901, upload-time = "2025-12-06T21:30:51.014Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3b/ab/b3226f0bd7cdcf710fbede2b3548584366da3b19b5021e74f5bde2a8fa3f/pytest-9.0.2-py3-none-any.whl", hash = "sha256:711ffd45bf766d5264d487b917733b453d917afd2b0ad65223959f59089f875b", size = 374801, upload-time = "2025-12-06T21:30:49.154Z" },+]++[[package]]+name = "pytest-cov"+version = "7.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "coverage" },+ { name = "pluggy" },+ { name = "pytest" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5e/f7/c933acc76f5208b3b00089573cf6a2bc26dc80a8aece8f52bb7d6b1855ca/pytest_cov-7.0.0.tar.gz", hash = "sha256:33c97eda2e049a0c5298e91f519302a1334c26ac65c1a483d6206fd458361af1", size = 54328, upload-time = "2025-09-09T10:57:02.113Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ee/49/1377b49de7d0c1ce41292161ea0f721913fa8722c19fb9c1e3aa0367eecb/pytest_cov-7.0.0-py3-none-any.whl", hash = "sha256:3b8e9558b16cc1479da72058bdecf8073661c7f57f7d3c5f22a1c23507f2d861", size = 22424, upload-time = "2025-09-09T10:57:00.695Z" },+]++[[package]]+name = "python-dateutil"+version = "2.9.0.post0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "six" },+]+sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" },+]++[[package]]+name = "python-docx"+version = "1.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "lxml" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/a9/f7/eddfe33871520adab45aaa1a71f0402a2252050c14c7e3009446c8f4701c/python_docx-1.2.0.tar.gz", hash = "sha256:7bc9d7b7d8a69c9c02ca09216118c86552704edc23bac179283f2e38f86220ce", size = 5723256, upload-time = "2025-06-16T20:46:27.921Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d0/00/1e03a4989fa5795da308cd774f05b704ace555a70f9bf9d3be057b680bcf/python_docx-1.2.0-py3-none-any.whl", hash = "sha256:3fd478f3250fbbbfd3b94fe1e985955737c145627498896a8a6bf81f4baf66c7", size = 252987, upload-time = "2025-06-16T20:46:22.506Z" },+]++[[package]]+name = "python-dotenv"+version = "1.2.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f0/26/19cadc79a718c5edbec86fd4919a6b6d3f681039a2f6d66d14be94e75fb9/python_dotenv-1.2.1.tar.gz", hash = "sha256:42667e897e16ab0d66954af0e60a9caa94f0fd4ecf3aaf6d2d260eec1aa36ad6", size = 44221, upload-time = "2025-10-26T15:12:10.434Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/14/1b/a298b06749107c305e1fe0f814c6c74aea7b2f1e10989cb30f544a1b3253/python_dotenv-1.2.1-py3-none-any.whl", hash = "sha256:b81ee9561e9ca4004139c6cbba3a238c32b03e4894671e181b671e8cb8425d61", size = 21230, upload-time = "2025-10-26T15:12:09.109Z" },+]++[[package]]+name = "python-json-logger"+version = "4.0.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/29/bf/eca6a3d43db1dae7070f70e160ab20b807627ba953663ba07928cdd3dc58/python_json_logger-4.0.0.tar.gz", hash = "sha256:f58e68eb46e1faed27e0f574a55a0455eecd7b8a5b88b85a784519ba3cff047f", size = 17683, upload-time = "2025-10-06T04:15:18.984Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/51/e5/fecf13f06e5e5f67e8837d777d1bc43fac0ed2b77a676804df5c34744727/python_json_logger-4.0.0-py3-none-any.whl", hash = "sha256:af09c9daf6a813aa4cc7180395f50f2a9e5fa056034c9953aec92e381c5ba1e2", size = 15548, upload-time = "2025-10-06T04:15:17.553Z" },+]++[[package]]+name = "python-multipart"+version = "0.0.22"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/94/01/979e98d542a70714b0cb2b6728ed0b7c46792b695e3eaec3e20711271ca3/python_multipart-0.0.22.tar.gz", hash = "sha256:7340bef99a7e0032613f56dc36027b959fd3b30a787ed62d310e951f7c3a3a58", size = 37612, upload-time = "2026-01-25T10:15:56.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1b/d0/397f9626e711ff749a95d96b7af99b9c566a9bb5129b8e4c10fc4d100304/python_multipart-0.0.22-py3-none-any.whl", hash = "sha256:2b2cd894c83d21bf49d702499531c7bafd057d730c201782048f7945d82de155", size = 24579, upload-time = "2026-01-25T10:15:54.811Z" },+]++[[package]]+name = "pytz"+version = "2025.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f8/bf/abbd3cdfb8fbc7fb3d4d38d320f2441b1e7cbe29be4f23797b4a2b5d8aac/pytz-2025.2.tar.gz", hash = "sha256:360b9e3dbb49a209c21ad61809c7fb453643e048b38924c765813546746e81c3", size = 320884, upload-time = "2025-03-25T02:25:00.538Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl", hash = "sha256:5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00", size = 509225, upload-time = "2025-03-25T02:24:58.468Z" },+]++[[package]]+name = "pywin32"+version = "311"+source = { registry = "https://pypi.org/simple" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a5/be/3fd5de0979fcb3994bfee0d65ed8ca9506a8a1260651b86174f6a86f52b3/pywin32-311-cp313-cp313-win32.whl", hash = "sha256:f95ba5a847cba10dd8c4d8fefa9f2a6cf283b8b88ed6178fa8a6c1ab16054d0d", size = 8705700, upload-time = "2025-07-14T20:13:26.471Z" },+ { url = "https://files.pythonhosted.org/packages/e3/28/e0a1909523c6890208295a29e05c2adb2126364e289826c0a8bc7297bd5c/pywin32-311-cp313-cp313-win_amd64.whl", hash = "sha256:718a38f7e5b058e76aee1c56ddd06908116d35147e133427e59a3983f703a20d", size = 9494700, upload-time = "2025-07-14T20:13:28.243Z" },+ { url = "https://files.pythonhosted.org/packages/04/bf/90339ac0f55726dce7d794e6d79a18a91265bdf3aa70b6b9ca52f35e022a/pywin32-311-cp313-cp313-win_arm64.whl", hash = "sha256:7b4075d959648406202d92a2310cb990fea19b535c7f4a78d3f5e10b926eeb8a", size = 8709318, upload-time = "2025-07-14T20:13:30.348Z" },+]++[[package]]+name = "pywin32-ctypes"+version = "0.2.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/85/9f/01a1a99704853cb63f253eea009390c88e7131c67e66a0a02099a8c917cb/pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755", size = 29471, upload-time = "2024-08-14T10:15:34.626Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/de/3d/8161f7711c017e01ac9f008dfddd9410dff3674334c233bde66e7ba65bbf/pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8", size = 30756, upload-time = "2024-08-14T10:15:33.187Z" },+]++[[package]]+name = "pyyaml"+version = "6.0.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" },+ { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" },+ { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" },+ { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" },+ { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" },+ { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" },+ { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" },+ { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" },+ { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" },+ { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },+]++[[package]]+name = "redis"+version = "7.1.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f7/80/2971931d27651affa88a44c0ad7b8c4a19dc29c998abb20b23868d319b59/redis-7.1.1.tar.gz", hash = "sha256:a2814b2bda15b39dad11391cc48edac4697214a8a5a4bd10abe936ab4892eb43", size = 4800064, upload-time = "2026-02-09T18:39:40.292Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/29/55/1de1d812ba1481fa4b37fb03b4eec0fcb71b6a0d44c04ea3482eb017600f/redis-7.1.1-py3-none-any.whl", hash = "sha256:f77817f16071c2950492c67d40b771fa493eb3fccc630a424a10976dbb794b7a", size = 356057, upload-time = "2026-02-09T18:39:38.602Z" },+]++[[package]]+name = "referencing"+version = "0.36.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "attrs" },+ { name = "rpds-py" },+]+sdist = { url = "https://files.pythonhosted.org/packages/2f/db/98b5c277be99dd18bfd91dd04e1b759cad18d1a338188c936e92f921c7e2/referencing-0.36.2.tar.gz", hash = "sha256:df2e89862cd09deabbdba16944cc3f10feb6b3e6f18e902f7cc25609a34775aa", size = 74744, upload-time = "2025-01-25T08:48:16.138Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c1/b1/3baf80dc6d2b7bc27a95a67752d0208e410351e3feb4eb78de5f77454d8d/referencing-0.36.2-py3-none-any.whl", hash = "sha256:e8699adbbf8b5c7de96d8ffa0eb5c158b3beafce084968e2ea8bb08c6794dcd0", size = 26775, upload-time = "2025-01-25T08:48:14.241Z" },+]++[[package]]+name = "regex"+version = "2026.1.15"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0b/86/07d5056945f9ec4590b518171c4254a5925832eb727b56d3c38a7476f316/regex-2026.1.15.tar.gz", hash = "sha256:164759aa25575cbc0651bef59a0b18353e54300d79ace8084c818ad8ac72b7d5", size = 414811, upload-time = "2026-01-14T23:18:02.775Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f8/2e/6870bb16e982669b674cce3ee9ff2d1d46ab80528ee6bcc20fb2292efb60/regex-2026.1.15-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e69d0deeb977ffe7ed3d2e4439360089f9c3f217ada608f0f88ebd67afb6385e", size = 489164, upload-time = "2026-01-14T23:15:13.962Z" },+ { url = "https://files.pythonhosted.org/packages/dc/67/9774542e203849b0286badf67199970a44ebdb0cc5fb739f06e47ada72f8/regex-2026.1.15-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:3601ffb5375de85a16f407854d11cca8fe3f5febbe3ac78fb2866bb220c74d10", size = 291218, upload-time = "2026-01-14T23:15:15.647Z" },+ { url = "https://files.pythonhosted.org/packages/b2/87/b0cda79f22b8dee05f774922a214da109f9a4c0eca5da2c9d72d77ea062c/regex-2026.1.15-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4c5ef43b5c2d4114eb8ea424bb8c9cec01d5d17f242af88b2448f5ee81caadbc", size = 288895, upload-time = "2026-01-14T23:15:17.788Z" },+ { url = "https://files.pythonhosted.org/packages/3b/6a/0041f0a2170d32be01ab981d6346c83a8934277d82c780d60b127331f264/regex-2026.1.15-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:968c14d4f03e10b2fd960f1d5168c1f0ac969381d3c1fcc973bc45fb06346599", size = 798680, upload-time = "2026-01-14T23:15:19.342Z" },+ { url = "https://files.pythonhosted.org/packages/58/de/30e1cfcdbe3e891324aa7568b7c968771f82190df5524fabc1138cb2d45a/regex-2026.1.15-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:56a5595d0f892f214609c9f76b41b7428bed439d98dc961efafdd1354d42baae", size = 864210, upload-time = "2026-01-14T23:15:22.005Z" },+ { url = "https://files.pythonhosted.org/packages/64/44/4db2f5c5ca0ccd40ff052ae7b1e9731352fcdad946c2b812285a7505ca75/regex-2026.1.15-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0bf650f26087363434c4e560011f8e4e738f6f3e029b85d4904c50135b86cfa5", size = 912358, upload-time = "2026-01-14T23:15:24.569Z" },+ { url = "https://files.pythonhosted.org/packages/79/b6/e6a5665d43a7c42467138c8a2549be432bad22cbd206f5ec87162de74bd7/regex-2026.1.15-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:18388a62989c72ac24de75f1449d0fb0b04dfccd0a1a7c1c43af5eb503d890f6", size = 803583, upload-time = "2026-01-14T23:15:26.526Z" },+ { url = "https://files.pythonhosted.org/packages/e7/53/7cd478222169d85d74d7437e74750005e993f52f335f7c04ff7adfda3310/regex-2026.1.15-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6d220a2517f5893f55daac983bfa9fe998a7dbcaee4f5d27a88500f8b7873788", size = 775782, upload-time = "2026-01-14T23:15:29.352Z" },+ { url = "https://files.pythonhosted.org/packages/ca/b5/75f9a9ee4b03a7c009fe60500fe550b45df94f0955ca29af16333ef557c5/regex-2026.1.15-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:c9c08c2fbc6120e70abff5d7f28ffb4d969e14294fb2143b4b5c7d20e46d1714", size = 787978, upload-time = "2026-01-14T23:15:31.295Z" },+ { url = "https://files.pythonhosted.org/packages/72/b3/79821c826245bbe9ccbb54f6eadb7879c722fd3e0248c17bfc90bf54e123/regex-2026.1.15-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:7ef7d5d4bd49ec7364315167a4134a015f61e8266c6d446fc116a9ac4456e10d", size = 858550, upload-time = "2026-01-14T23:15:33.558Z" },+ { url = "https://files.pythonhosted.org/packages/4a/85/2ab5f77a1c465745bfbfcb3ad63178a58337ae8d5274315e2cc623a822fa/regex-2026.1.15-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:6e42844ad64194fa08d5ccb75fe6a459b9b08e6d7296bd704460168d58a388f3", size = 763747, upload-time = "2026-01-14T23:15:35.206Z" },+ { url = "https://files.pythonhosted.org/packages/6d/84/c27df502d4bfe2873a3e3a7cf1bdb2b9cc10284d1a44797cf38bed790470/regex-2026.1.15-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:cfecdaa4b19f9ca534746eb3b55a5195d5c95b88cac32a205e981ec0a22b7d31", size = 850615, upload-time = "2026-01-14T23:15:37.523Z" },+ { url = "https://files.pythonhosted.org/packages/7d/b7/658a9782fb253680aa8ecb5ccbb51f69e088ed48142c46d9f0c99b46c575/regex-2026.1.15-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:08df9722d9b87834a3d701f3fca570b2be115654dbfd30179f30ab2f39d606d3", size = 789951, upload-time = "2026-01-14T23:15:39.582Z" },+ { url = "https://files.pythonhosted.org/packages/fc/2a/5928af114441e059f15b2f63e188bd00c6529b3051c974ade7444b85fcda/regex-2026.1.15-cp313-cp313-win32.whl", hash = "sha256:d426616dae0967ca225ab12c22274eb816558f2f99ccb4a1d52ca92e8baf180f", size = 266275, upload-time = "2026-01-14T23:15:42.108Z" },+ { url = "https://files.pythonhosted.org/packages/4f/16/5bfbb89e435897bff28cf0352a992ca719d9e55ebf8b629203c96b6ce4f7/regex-2026.1.15-cp313-cp313-win_amd64.whl", hash = "sha256:febd38857b09867d3ed3f4f1af7d241c5c50362e25ef43034995b77a50df494e", size = 277145, upload-time = "2026-01-14T23:15:44.244Z" },+ { url = "https://files.pythonhosted.org/packages/56/c1/a09ff7392ef4233296e821aec5f78c51be5e91ffde0d163059e50fd75835/regex-2026.1.15-cp313-cp313-win_arm64.whl", hash = "sha256:8e32f7896f83774f91499d239e24cebfadbc07639c1494bb7213983842348337", size = 270411, upload-time = "2026-01-14T23:15:45.858Z" },+ { url = "https://files.pythonhosted.org/packages/3c/38/0cfd5a78e5c6db00e6782fdae70458f89850ce95baa5e8694ab91d89744f/regex-2026.1.15-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:ec94c04149b6a7b8120f9f44565722c7ae31b7a6d2275569d2eefa76b83da3be", size = 492068, upload-time = "2026-01-14T23:15:47.616Z" },+ { url = "https://files.pythonhosted.org/packages/50/72/6c86acff16cb7c959c4355826bbf06aad670682d07c8f3998d9ef4fee7cd/regex-2026.1.15-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:40c86d8046915bb9aeb15d3f3f15b6fd500b8ea4485b30e1bbc799dab3fe29f8", size = 292756, upload-time = "2026-01-14T23:15:49.307Z" },+ { url = "https://files.pythonhosted.org/packages/4e/58/df7fb69eadfe76526ddfce28abdc0af09ffe65f20c2c90932e89d705153f/regex-2026.1.15-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:726ea4e727aba21643205edad8f2187ec682d3305d790f73b7a51c7587b64bdd", size = 291114, upload-time = "2026-01-14T23:15:51.484Z" },+ { url = "https://files.pythonhosted.org/packages/ed/6c/a4011cd1cf96b90d2cdc7e156f91efbd26531e822a7fbb82a43c1016678e/regex-2026.1.15-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1cb740d044aff31898804e7bf1181cc72c03d11dfd19932b9911ffc19a79070a", size = 807524, upload-time = "2026-01-14T23:15:53.102Z" },+ { url = "https://files.pythonhosted.org/packages/1d/25/a53ffb73183f69c3e9f4355c4922b76d2840aee160af6af5fac229b6201d/regex-2026.1.15-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:05d75a668e9ea16f832390d22131fe1e8acc8389a694c8febc3e340b0f810b93", size = 873455, upload-time = "2026-01-14T23:15:54.956Z" },+ { url = "https://files.pythonhosted.org/packages/66/0b/8b47fc2e8f97d9b4a851736f3890a5f786443aa8901061c55f24c955f45b/regex-2026.1.15-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d991483606f3dbec93287b9f35596f41aa2e92b7c2ebbb935b63f409e243c9af", size = 915007, upload-time = "2026-01-14T23:15:57.041Z" },+ { url = "https://files.pythonhosted.org/packages/c2/fa/97de0d681e6d26fabe71968dbee06dd52819e9a22fdce5dac7256c31ed84/regex-2026.1.15-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:194312a14819d3e44628a44ed6fea6898fdbecb0550089d84c403475138d0a09", size = 812794, upload-time = "2026-01-14T23:15:58.916Z" },+ { url = "https://files.pythonhosted.org/packages/22/38/e752f94e860d429654aa2b1c51880bff8dfe8f084268258adf9151cf1f53/regex-2026.1.15-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fe2fda4110a3d0bc163c2e0664be44657431440722c5c5315c65155cab92f9e5", size = 781159, upload-time = "2026-01-14T23:16:00.817Z" },+ { url = "https://files.pythonhosted.org/packages/e9/a7/d739ffaef33c378fc888302a018d7f81080393d96c476b058b8c64fd2b0d/regex-2026.1.15-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:124dc36c85d34ef2d9164da41a53c1c8c122cfb1f6e1ec377a1f27ee81deb794", size = 795558, upload-time = "2026-01-14T23:16:03.267Z" },+ { url = "https://files.pythonhosted.org/packages/3e/c4/542876f9a0ac576100fc73e9c75b779f5c31e3527576cfc9cb3009dcc58a/regex-2026.1.15-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:a1774cd1981cd212506a23a14dba7fdeaee259f5deba2df6229966d9911e767a", size = 868427, upload-time = "2026-01-14T23:16:05.646Z" },+ { url = "https://files.pythonhosted.org/packages/fc/0f/d5655bea5b22069e32ae85a947aa564912f23758e112cdb74212848a1a1b/regex-2026.1.15-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:b5f7d8d2867152cdb625e72a530d2ccb48a3d199159144cbdd63870882fb6f80", size = 769939, upload-time = "2026-01-14T23:16:07.542Z" },+ { url = "https://files.pythonhosted.org/packages/20/06/7e18a4fa9d326daeda46d471a44ef94201c46eaa26dbbb780b5d92cbfdda/regex-2026.1.15-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:492534a0ab925d1db998defc3c302dae3616a2fc3fe2e08db1472348f096ddf2", size = 854753, upload-time = "2026-01-14T23:16:10.395Z" },+ { url = "https://files.pythonhosted.org/packages/3b/67/dc8946ef3965e166f558ef3b47f492bc364e96a265eb4a2bb3ca765c8e46/regex-2026.1.15-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c661fc820cfb33e166bf2450d3dadbda47c8d8981898adb9b6fe24e5e582ba60", size = 799559, upload-time = "2026-01-14T23:16:12.347Z" },+ { url = "https://files.pythonhosted.org/packages/a5/61/1bba81ff6d50c86c65d9fd84ce9699dd106438ee4cdb105bf60374ee8412/regex-2026.1.15-cp313-cp313t-win32.whl", hash = "sha256:99ad739c3686085e614bf77a508e26954ff1b8f14da0e3765ff7abbf7799f952", size = 268879, upload-time = "2026-01-14T23:16:14.049Z" },+ { url = "https://files.pythonhosted.org/packages/e9/5e/cef7d4c5fb0ea3ac5c775fd37db5747f7378b29526cc83f572198924ff47/regex-2026.1.15-cp313-cp313t-win_amd64.whl", hash = "sha256:32655d17905e7ff8ba5c764c43cb124e34a9245e45b83c22e81041e1071aee10", size = 280317, upload-time = "2026-01-14T23:16:15.718Z" },+ { url = "https://files.pythonhosted.org/packages/b4/52/4317f7a5988544e34ab57b4bde0f04944c4786128c933fb09825924d3e82/regex-2026.1.15-cp313-cp313t-win_arm64.whl", hash = "sha256:b2a13dd6a95e95a489ca242319d18fc02e07ceb28fa9ad146385194d95b3c829", size = 271551, upload-time = "2026-01-14T23:16:17.533Z" },+]++[[package]]+name = "requests"+version = "2.32.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "charset-normalizer" },+ { name = "idna" },+ { name = "urllib3" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf", size = 134517, upload-time = "2025-08-18T20:46:02.573Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1e/db/4254e3eabe8020b458f1a747140d32277ec7a271daf1d235b70dc0b4e6e3/requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6", size = 64738, upload-time = "2025-08-18T20:46:00.542Z" },+]++[[package]]+name = "requests-oauthlib"+version = "2.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "oauthlib" },+ { name = "requests" },+]+sdist = { url = "https://files.pythonhosted.org/packages/42/f2/05f29bc3913aea15eb670be136045bf5c5bbf4b99ecb839da9b422bb2c85/requests-oauthlib-2.0.0.tar.gz", hash = "sha256:b3dffaebd884d8cd778494369603a9e7b58d29111bf6b41bdc2dcd87203af4e9", size = 55650, upload-time = "2024-03-22T20:32:29.939Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3b/5d/63d4ae3b9daea098d5d6f5da83984853c1bbacd5dc826764b249fe119d24/requests_oauthlib-2.0.0-py2.py3-none-any.whl", hash = "sha256:7dd8a5c40426b779b0868c404bdef9768deccf22749cde15852df527e6269b36", size = 24179, upload-time = "2024-03-22T20:32:28.055Z" },+]++[[package]]+name = "requests-toolbelt"+version = "1.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "requests" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f3/61/d7545dafb7ac2230c70d38d31cbfe4cc64f7144dc41f6e4e4b78ecd9f5bb/requests-toolbelt-1.0.0.tar.gz", hash = "sha256:7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6", size = 206888, upload-time = "2023-05-01T04:11:33.229Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3f/51/d4db610ef29373b879047326cbf6fa98b6c1969d6f6dc423279de2b1be2c/requests_toolbelt-1.0.0-py2.py3-none-any.whl", hash = "sha256:cccfdd665f0a24fcf4726e690f65639d272bb0637b9b92dfd91a5568ccf6bd06", size = 54481, upload-time = "2023-05-01T04:11:28.427Z" },+]++[[package]]+name = "rich"+version = "14.3.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "markdown-it-py" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/74/99/a4cab2acbb884f80e558b0771e97e21e939c5dfb460f488d19df485e8298/rich-14.3.2.tar.gz", hash = "sha256:e712f11c1a562a11843306f5ed999475f09ac31ffb64281f73ab29ffdda8b3b8", size = 230143, upload-time = "2026-02-01T16:20:47.908Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ef/45/615f5babd880b4bd7d405cc0dc348234c5ffb6ed1ea33e152ede08b2072d/rich-14.3.2-py3-none-any.whl", hash = "sha256:08e67c3e90884651da3239ea668222d19bea7b589149d8014a21c633420dbb69", size = 309963, upload-time = "2026-02-01T16:20:46.078Z" },+]++[[package]]+name = "rich-rst"+version = "1.3.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "docutils" },+ { name = "rich" },+]+sdist = { url = "https://files.pythonhosted.org/packages/bc/6d/a506aaa4a9eaa945ed8ab2b7347859f53593864289853c5d6d62b77246e0/rich_rst-1.3.2.tar.gz", hash = "sha256:a1196fdddf1e364b02ec68a05e8ff8f6914fee10fbca2e6b6735f166bb0da8d4", size = 14936, upload-time = "2025-10-14T16:49:45.332Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/13/2f/b4530fbf948867702d0a3f27de4a6aab1d156f406d72852ab902c4d04de9/rich_rst-1.3.2-py3-none-any.whl", hash = "sha256:a99b4907cbe118cf9d18b0b44de272efa61f15117c61e39ebdc431baf5df722a", size = 12567, upload-time = "2025-10-14T16:49:42.953Z" },+]++[[package]]+name = "rpds-py"+version = "0.30.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/20/af/3f2f423103f1113b36230496629986e0ef7e199d2aa8392452b484b38ced/rpds_py-0.30.0.tar.gz", hash = "sha256:dd8ff7cf90014af0c0f787eea34794ebf6415242ee1d6fa91eaba725cc441e84", size = 69469, upload-time = "2025-11-30T20:24:38.837Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ed/dc/d61221eb88ff410de3c49143407f6f3147acf2538c86f2ab7ce65ae7d5f9/rpds_py-0.30.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:f83424d738204d9770830d35290ff3273fbb02b41f919870479fab14b9d303b2", size = 374887, upload-time = "2025-11-30T20:22:41.812Z" },+ { url = "https://files.pythonhosted.org/packages/fd/32/55fb50ae104061dbc564ef15cc43c013dc4a9f4527a1f4d99baddf56fe5f/rpds_py-0.30.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e7536cd91353c5273434b4e003cbda89034d67e7710eab8761fd918ec6c69cf8", size = 358904, upload-time = "2025-11-30T20:22:43.479Z" },+ { url = "https://files.pythonhosted.org/packages/58/70/faed8186300e3b9bdd138d0273109784eea2396c68458ed580f885dfe7ad/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2771c6c15973347f50fece41fc447c054b7ac2ae0502388ce3b6738cd366e3d4", size = 389945, upload-time = "2025-11-30T20:22:44.819Z" },+ { url = "https://files.pythonhosted.org/packages/bd/a8/073cac3ed2c6387df38f71296d002ab43496a96b92c823e76f46b8af0543/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0a59119fc6e3f460315fe9d08149f8102aa322299deaa5cab5b40092345c2136", size = 407783, upload-time = "2025-11-30T20:22:46.103Z" },+ { url = "https://files.pythonhosted.org/packages/77/57/5999eb8c58671f1c11eba084115e77a8899d6e694d2a18f69f0ba471ec8b/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:76fec018282b4ead0364022e3c54b60bf368b9d926877957a8624b58419169b7", size = 515021, upload-time = "2025-11-30T20:22:47.458Z" },+ { url = "https://files.pythonhosted.org/packages/e0/af/5ab4833eadc36c0a8ed2bc5c0de0493c04f6c06de223170bd0798ff98ced/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:692bef75a5525db97318e8cd061542b5a79812d711ea03dbc1f6f8dbb0c5f0d2", size = 414589, upload-time = "2025-11-30T20:22:48.872Z" },+ { url = "https://files.pythonhosted.org/packages/b7/de/f7192e12b21b9e9a68a6d0f249b4af3fdcdff8418be0767a627564afa1f1/rpds_py-0.30.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9027da1ce107104c50c81383cae773ef5c24d296dd11c99e2629dbd7967a20c6", size = 394025, upload-time = "2025-11-30T20:22:50.196Z" },+ { url = "https://files.pythonhosted.org/packages/91/c4/fc70cd0249496493500e7cc2de87504f5aa6509de1e88623431fec76d4b6/rpds_py-0.30.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:9cf69cdda1f5968a30a359aba2f7f9aa648a9ce4b580d6826437f2b291cfc86e", size = 408895, upload-time = "2025-11-30T20:22:51.87Z" },+ { url = "https://files.pythonhosted.org/packages/58/95/d9275b05ab96556fefff73a385813eb66032e4c99f411d0795372d9abcea/rpds_py-0.30.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a4796a717bf12b9da9d3ad002519a86063dcac8988b030e405704ef7d74d2d9d", size = 422799, upload-time = "2025-11-30T20:22:53.341Z" },+ { url = "https://files.pythonhosted.org/packages/06/c1/3088fc04b6624eb12a57eb814f0d4997a44b0d208d6cace713033ff1a6ba/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5d4c2aa7c50ad4728a094ebd5eb46c452e9cb7edbfdb18f9e1221f597a73e1e7", size = 572731, upload-time = "2025-11-30T20:22:54.778Z" },+ { url = "https://files.pythonhosted.org/packages/d8/42/c612a833183b39774e8ac8fecae81263a68b9583ee343db33ab571a7ce55/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ba81a9203d07805435eb06f536d95a266c21e5b2dfbf6517748ca40c98d19e31", size = 599027, upload-time = "2025-11-30T20:22:56.212Z" },+ { url = "https://files.pythonhosted.org/packages/5f/60/525a50f45b01d70005403ae0e25f43c0384369ad24ffe46e8d9068b50086/rpds_py-0.30.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:945dccface01af02675628334f7cf49c2af4c1c904748efc5cf7bbdf0b579f95", size = 563020, upload-time = "2025-11-30T20:22:58.2Z" },+ { url = "https://files.pythonhosted.org/packages/0b/5d/47c4655e9bcd5ca907148535c10e7d489044243cc9941c16ed7cd53be91d/rpds_py-0.30.0-cp313-cp313-win32.whl", hash = "sha256:b40fb160a2db369a194cb27943582b38f79fc4887291417685f3ad693c5a1d5d", size = 223139, upload-time = "2025-11-30T20:23:00.209Z" },+ { url = "https://files.pythonhosted.org/packages/f2/e1/485132437d20aa4d3e1d8b3fb5a5e65aa8139f1e097080c2a8443201742c/rpds_py-0.30.0-cp313-cp313-win_amd64.whl", hash = "sha256:806f36b1b605e2d6a72716f321f20036b9489d29c51c91f4dd29a3e3afb73b15", size = 240224, upload-time = "2025-11-30T20:23:02.008Z" },+ { url = "https://files.pythonhosted.org/packages/24/95/ffd128ed1146a153d928617b0ef673960130be0009c77d8fbf0abe306713/rpds_py-0.30.0-cp313-cp313-win_arm64.whl", hash = "sha256:d96c2086587c7c30d44f31f42eae4eac89b60dabbac18c7669be3700f13c3ce1", size = 230645, upload-time = "2025-11-30T20:23:03.43Z" },+ { url = "https://files.pythonhosted.org/packages/ff/1b/b10de890a0def2a319a2626334a7f0ae388215eb60914dbac8a3bae54435/rpds_py-0.30.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:eb0b93f2e5c2189ee831ee43f156ed34e2a89a78a66b98cadad955972548be5a", size = 364443, upload-time = "2025-11-30T20:23:04.878Z" },+ { url = "https://files.pythonhosted.org/packages/0d/bf/27e39f5971dc4f305a4fb9c672ca06f290f7c4e261c568f3dea16a410d47/rpds_py-0.30.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:922e10f31f303c7c920da8981051ff6d8c1a56207dbdf330d9047f6d30b70e5e", size = 353375, upload-time = "2025-11-30T20:23:06.342Z" },+ { url = "https://files.pythonhosted.org/packages/40/58/442ada3bba6e8e6615fc00483135c14a7538d2ffac30e2d933ccf6852232/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cdc62c8286ba9bf7f47befdcea13ea0e26bf294bda99758fd90535cbaf408000", size = 383850, upload-time = "2025-11-30T20:23:07.825Z" },+ { url = "https://files.pythonhosted.org/packages/14/14/f59b0127409a33c6ef6f5c1ebd5ad8e32d7861c9c7adfa9a624fc3889f6c/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:47f9a91efc418b54fb8190a6b4aa7813a23fb79c51f4bb84e418f5476c38b8db", size = 392812, upload-time = "2025-11-30T20:23:09.228Z" },+ { url = "https://files.pythonhosted.org/packages/b3/66/e0be3e162ac299b3a22527e8913767d869e6cc75c46bd844aa43fb81ab62/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1f3587eb9b17f3789ad50824084fa6f81921bbf9a795826570bda82cb3ed91f2", size = 517841, upload-time = "2025-11-30T20:23:11.186Z" },+ { url = "https://files.pythonhosted.org/packages/3d/55/fa3b9cf31d0c963ecf1ba777f7cf4b2a2c976795ac430d24a1f43d25a6ba/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:39c02563fc592411c2c61d26b6c5fe1e51eaa44a75aa2c8735ca88b0d9599daa", size = 408149, upload-time = "2025-11-30T20:23:12.864Z" },+ { url = "https://files.pythonhosted.org/packages/60/ca/780cf3b1a32b18c0f05c441958d3758f02544f1d613abf9488cd78876378/rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:51a1234d8febafdfd33a42d97da7a43f5dcb120c1060e352a3fbc0c6d36e2083", size = 383843, upload-time = "2025-11-30T20:23:14.638Z" },+ { url = "https://files.pythonhosted.org/packages/82/86/d5f2e04f2aa6247c613da0c1dd87fcd08fa17107e858193566048a1e2f0a/rpds_py-0.30.0-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:eb2c4071ab598733724c08221091e8d80e89064cd472819285a9ab0f24bcedb9", size = 396507, upload-time = "2025-11-30T20:23:16.105Z" },+ { url = "https://files.pythonhosted.org/packages/4b/9a/453255d2f769fe44e07ea9785c8347edaf867f7026872e76c1ad9f7bed92/rpds_py-0.30.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6bdfdb946967d816e6adf9a3d8201bfad269c67efe6cefd7093ef959683c8de0", size = 414949, upload-time = "2025-11-30T20:23:17.539Z" },+ { url = "https://files.pythonhosted.org/packages/a3/31/622a86cdc0c45d6df0e9ccb6becdba5074735e7033c20e401a6d9d0e2ca0/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c77afbd5f5250bf27bf516c7c4a016813eb2d3e116139aed0096940c5982da94", size = 565790, upload-time = "2025-11-30T20:23:19.029Z" },+ { url = "https://files.pythonhosted.org/packages/1c/5d/15bbf0fb4a3f58a3b1c67855ec1efcc4ceaef4e86644665fff03e1b66d8d/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:61046904275472a76c8c90c9ccee9013d70a6d0f73eecefd38c1ae7c39045a08", size = 590217, upload-time = "2025-11-30T20:23:20.885Z" },+ { url = "https://files.pythonhosted.org/packages/6d/61/21b8c41f68e60c8cc3b2e25644f0e3681926020f11d06ab0b78e3c6bbff1/rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c5f36a861bc4b7da6516dbdf302c55313afa09b81931e8280361a4f6c9a2d27", size = 555806, upload-time = "2025-11-30T20:23:22.488Z" },+ { url = "https://files.pythonhosted.org/packages/f9/39/7e067bb06c31de48de3eb200f9fc7c58982a4d3db44b07e73963e10d3be9/rpds_py-0.30.0-cp313-cp313t-win32.whl", hash = "sha256:3d4a69de7a3e50ffc214ae16d79d8fbb0922972da0356dcf4d0fdca2878559c6", size = 211341, upload-time = "2025-11-30T20:23:24.449Z" },+ { url = "https://files.pythonhosted.org/packages/0a/4d/222ef0b46443cf4cf46764d9c630f3fe4abaa7245be9417e56e9f52b8f65/rpds_py-0.30.0-cp313-cp313t-win_amd64.whl", hash = "sha256:f14fc5df50a716f7ece6a80b6c78bb35ea2ca47c499e422aa4463455dd96d56d", size = 225768, upload-time = "2025-11-30T20:23:25.908Z" },+]++[[package]]+name = "ruamel-yaml"+version = "0.19.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c7/3b/ebda527b56beb90cb7652cb1c7e4f91f48649fbcd8d2eb2fb6e77cd3329b/ruamel_yaml-0.19.1.tar.gz", hash = "sha256:53eb66cd27849eff968ebf8f0bf61f46cdac2da1d1f3576dd4ccee9b25c31993", size = 142709, upload-time = "2026-01-02T16:50:31.84Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b8/0c/51f6841f1d84f404f92463fc2b1ba0da357ca1e3db6b7fbda26956c3b82a/ruamel_yaml-0.19.1-py3-none-any.whl", hash = "sha256:27592957fedf6e0b62f281e96effd28043345e0e66001f97683aa9a40c667c93", size = 118102, upload-time = "2026-01-02T16:50:29.201Z" },+]++[[package]]+name = "ruff"+version = "0.15.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c8/39/5cee96809fbca590abea6b46c6d1c586b49663d1d2830a751cc8fc42c666/ruff-0.15.0.tar.gz", hash = "sha256:6bdea47cdbea30d40f8f8d7d69c0854ba7c15420ec75a26f463290949d7f7e9a", size = 4524893, upload-time = "2026-02-03T17:53:35.357Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bc/88/3fd1b0aa4b6330d6aaa63a285bc96c9f71970351579152d231ed90914586/ruff-0.15.0-py3-none-linux_armv6l.whl", hash = "sha256:aac4ebaa612a82b23d45964586f24ae9bc23ca101919f5590bdb368d74ad5455", size = 10354332, upload-time = "2026-02-03T17:52:54.892Z" },+ { url = "https://files.pythonhosted.org/packages/72/f6/62e173fbb7eb75cc29fe2576a1e20f0a46f671a2587b5f604bfb0eaf5f6f/ruff-0.15.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:dcd4be7cc75cfbbca24a98d04d0b9b36a270d0833241f776b788d59f4142b14d", size = 10767189, upload-time = "2026-02-03T17:53:19.778Z" },+ { url = "https://files.pythonhosted.org/packages/99/e4/968ae17b676d1d2ff101d56dc69cf333e3a4c985e1ec23803df84fc7bf9e/ruff-0.15.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d747e3319b2bce179c7c1eaad3d884dc0a199b5f4d5187620530adf9105268ce", size = 10075384, upload-time = "2026-02-03T17:53:29.241Z" },+ { url = "https://files.pythonhosted.org/packages/a2/bf/9843c6044ab9e20af879c751487e61333ca79a2c8c3058b15722386b8cae/ruff-0.15.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:650bd9c56ae03102c51a5e4b554d74d825ff3abe4db22b90fd32d816c2e90621", size = 10481363, upload-time = "2026-02-03T17:52:43.332Z" },+ { url = "https://files.pythonhosted.org/packages/55/d9/4ada5ccf4cd1f532db1c8d44b6f664f2208d3d93acbeec18f82315e15193/ruff-0.15.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a6664b7eac559e3048223a2da77769c2f92b43a6dfd4720cef42654299a599c9", size = 10187736, upload-time = "2026-02-03T17:53:00.522Z" },+ { url = "https://files.pythonhosted.org/packages/86/e2/f25eaecd446af7bb132af0a1d5b135a62971a41f5366ff41d06d25e77a91/ruff-0.15.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f811f97b0f092b35320d1556f3353bf238763420ade5d9e62ebd2b73f2ff179", size = 10968415, upload-time = "2026-02-03T17:53:15.705Z" },+ { url = "https://files.pythonhosted.org/packages/e7/dc/f06a8558d06333bf79b497d29a50c3a673d9251214e0d7ec78f90b30aa79/ruff-0.15.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:761ec0a66680fab6454236635a39abaf14198818c8cdf691e036f4bc0f406b2d", size = 11809643, upload-time = "2026-02-03T17:53:23.031Z" },+ { url = "https://files.pythonhosted.org/packages/dd/45/0ece8db2c474ad7df13af3a6d50f76e22a09d078af63078f005057ca59eb/ruff-0.15.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:940f11c2604d317e797b289f4f9f3fa5555ffe4fb574b55ed006c3d9b6f0eb78", size = 11234787, upload-time = "2026-02-03T17:52:46.432Z" },+ { url = "https://files.pythonhosted.org/packages/8a/d9/0e3a81467a120fd265658d127db648e4d3acfe3e4f6f5d4ea79fac47e587/ruff-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bcbca3d40558789126da91d7ef9a7c87772ee107033db7191edefa34e2c7f1b4", size = 11112797, upload-time = "2026-02-03T17:52:49.274Z" },+ { url = "https://files.pythonhosted.org/packages/b2/cb/8c0b3b0c692683f8ff31351dfb6241047fa873a4481a76df4335a8bff716/ruff-0.15.0-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:9a121a96db1d75fa3eb39c4539e607f628920dd72ff1f7c5ee4f1b768ac62d6e", size = 11033133, upload-time = "2026-02-03T17:53:33.105Z" },+ { url = "https://files.pythonhosted.org/packages/f8/5e/23b87370cf0f9081a8c89a753e69a4e8778805b8802ccfe175cc410e50b9/ruff-0.15.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:5298d518e493061f2eabd4abd067c7e4fb89e2f63291c94332e35631c07c3662", size = 10442646, upload-time = "2026-02-03T17:53:06.278Z" },+ { url = "https://files.pythonhosted.org/packages/e1/9a/3c94de5ce642830167e6d00b5c75aacd73e6347b4c7fc6828699b150a5ee/ruff-0.15.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:afb6e603d6375ff0d6b0cee563fa21ab570fd15e65c852cb24922cef25050cf1", size = 10195750, upload-time = "2026-02-03T17:53:26.084Z" },+ { url = "https://files.pythonhosted.org/packages/30/15/e396325080d600b436acc970848d69df9c13977942fb62bb8722d729bee8/ruff-0.15.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:77e515f6b15f828b94dc17d2b4ace334c9ddb7d9468c54b2f9ed2b9c1593ef16", size = 10676120, upload-time = "2026-02-03T17:53:09.363Z" },+ { url = "https://files.pythonhosted.org/packages/8d/c9/229a23d52a2983de1ad0fb0ee37d36e0257e6f28bfd6b498ee2c76361874/ruff-0.15.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:6f6e80850a01eb13b3e42ee0ebdf6e4497151b48c35051aab51c101266d187a3", size = 11201636, upload-time = "2026-02-03T17:52:57.281Z" },+ { url = "https://files.pythonhosted.org/packages/6f/b0/69adf22f4e24f3677208adb715c578266842e6e6a3cc77483f48dd999ede/ruff-0.15.0-py3-none-win32.whl", hash = "sha256:238a717ef803e501b6d51e0bdd0d2c6e8513fe9eec14002445134d3907cd46c3", size = 10465945, upload-time = "2026-02-03T17:53:12.591Z" },+ { url = "https://files.pythonhosted.org/packages/51/ad/f813b6e2c97e9b4598be25e94a9147b9af7e60523b0cb5d94d307c15229d/ruff-0.15.0-py3-none-win_amd64.whl", hash = "sha256:dd5e4d3301dc01de614da3cdffc33d4b1b96fb89e45721f1598e5532ccf78b18", size = 11564657, upload-time = "2026-02-03T17:52:51.893Z" },+ { url = "https://files.pythonhosted.org/packages/f6/b0/2d823f6e77ebe560f4e397d078487e8d52c1516b331e3521bc75db4272ca/ruff-0.15.0-py3-none-win_arm64.whl", hash = "sha256:c480d632cc0ca3f0727acac8b7d053542d9e114a462a145d0b00e7cd658c515a", size = 10865753, upload-time = "2026-02-03T17:53:03.014Z" },+]++[[package]]+name = "safetensors"+version = "0.7.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/29/9c/6e74567782559a63bd040a236edca26fd71bc7ba88de2ef35d75df3bca5e/safetensors-0.7.0.tar.gz", hash = "sha256:07663963b67e8bd9f0b8ad15bb9163606cd27cc5a1b96235a50d8369803b96b0", size = 200878, upload-time = "2025-11-19T15:18:43.199Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/fa/47/aef6c06649039accf914afef490268e1067ed82be62bcfa5b7e886ad15e8/safetensors-0.7.0-cp38-abi3-macosx_10_12_x86_64.whl", hash = "sha256:c82f4d474cf725255d9e6acf17252991c3c8aac038d6ef363a4bf8be2f6db517", size = 467781, upload-time = "2025-11-19T15:18:35.84Z" },+ { url = "https://files.pythonhosted.org/packages/e8/00/374c0c068e30cd31f1e1b46b4b5738168ec79e7689ca82ee93ddfea05109/safetensors-0.7.0-cp38-abi3-macosx_11_0_arm64.whl", hash = "sha256:94fd4858284736bb67a897a41608b5b0c2496c9bdb3bf2af1fa3409127f20d57", size = 447058, upload-time = "2025-11-19T15:18:34.416Z" },+ { url = "https://files.pythonhosted.org/packages/f1/06/578ffed52c2296f93d7fd2d844cabfa92be51a587c38c8afbb8ae449ca89/safetensors-0.7.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e07d91d0c92a31200f25351f4acb2bc6aff7f48094e13ebb1d0fb995b54b6542", size = 491748, upload-time = "2025-11-19T15:18:09.79Z" },+ { url = "https://files.pythonhosted.org/packages/ae/33/1debbbb70e4791dde185edb9413d1fe01619255abb64b300157d7f15dddd/safetensors-0.7.0-cp38-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8469155f4cb518bafb4acf4865e8bb9d6804110d2d9bdcaa78564b9fd841e104", size = 503881, upload-time = "2025-11-19T15:18:16.145Z" },+ { url = "https://files.pythonhosted.org/packages/8e/1c/40c2ca924d60792c3be509833df711b553c60effbd91da6f5284a83f7122/safetensors-0.7.0-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:54bef08bf00a2bff599982f6b08e8770e09cc012d7bba00783fc7ea38f1fb37d", size = 623463, upload-time = "2025-11-19T15:18:21.11Z" },+ { url = "https://files.pythonhosted.org/packages/9b/3a/13784a9364bd43b0d61eef4bea2845039bc2030458b16594a1bd787ae26e/safetensors-0.7.0-cp38-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:42cb091236206bb2016d245c377ed383aa7f78691748f3bb6ee1bfa51ae2ce6a", size = 532855, upload-time = "2025-11-19T15:18:25.719Z" },+ { url = "https://files.pythonhosted.org/packages/a0/60/429e9b1cb3fc651937727befe258ea24122d9663e4d5709a48c9cbfceecb/safetensors-0.7.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dac7252938f0696ddea46f5e855dd3138444e82236e3be475f54929f0c510d48", size = 507152, upload-time = "2025-11-19T15:18:33.023Z" },+ { url = "https://files.pythonhosted.org/packages/3c/a8/4b45e4e059270d17af60359713ffd83f97900d45a6afa73aaa0d737d48b6/safetensors-0.7.0-cp38-abi3-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1d060c70284127fa805085d8f10fbd0962792aed71879d00864acda69dbab981", size = 541856, upload-time = "2025-11-19T15:18:31.075Z" },+ { url = "https://files.pythonhosted.org/packages/06/87/d26d8407c44175d8ae164a95b5a62707fcc445f3c0c56108e37d98070a3d/safetensors-0.7.0-cp38-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:cdab83a366799fa730f90a4ebb563e494f28e9e92c4819e556152ad55e43591b", size = 674060, upload-time = "2025-11-19T15:18:37.211Z" },+ { url = "https://files.pythonhosted.org/packages/11/f5/57644a2ff08dc6325816ba7217e5095f17269dada2554b658442c66aed51/safetensors-0.7.0-cp38-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:672132907fcad9f2aedcb705b2d7b3b93354a2aec1b2f706c4db852abe338f85", size = 771715, upload-time = "2025-11-19T15:18:38.689Z" },+ { url = "https://files.pythonhosted.org/packages/86/31/17883e13a814bd278ae6e266b13282a01049b0c81341da7fd0e3e71a80a3/safetensors-0.7.0-cp38-abi3-musllinux_1_2_i686.whl", hash = "sha256:5d72abdb8a4d56d4020713724ba81dac065fedb7f3667151c4a637f1d3fb26c0", size = 714377, upload-time = "2025-11-19T15:18:40.162Z" },+ { url = "https://files.pythonhosted.org/packages/4a/d8/0c8a7dc9b41dcac53c4cbf9df2b9c83e0e0097203de8b37a712b345c0be5/safetensors-0.7.0-cp38-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b0f6d66c1c538d5a94a73aa9ddca8ccc4227e6c9ff555322ea40bdd142391dd4", size = 677368, upload-time = "2025-11-19T15:18:41.627Z" },+ { url = "https://files.pythonhosted.org/packages/05/e5/cb4b713c8a93469e3c5be7c3f8d77d307e65fe89673e731f5c2bfd0a9237/safetensors-0.7.0-cp38-abi3-win32.whl", hash = "sha256:c74af94bf3ac15ac4d0f2a7c7b4663a15f8c2ab15ed0fc7531ca61d0835eccba", size = 326423, upload-time = "2025-11-19T15:18:45.74Z" },+ { url = "https://files.pythonhosted.org/packages/5d/e6/ec8471c8072382cb91233ba7267fd931219753bb43814cbc71757bfd4dab/safetensors-0.7.0-cp38-abi3-win_amd64.whl", hash = "sha256:d1239932053f56f3456f32eb9625590cc7582e905021f94636202a864d470755", size = 341380, upload-time = "2025-11-19T15:18:44.427Z" },+]++[[package]]+name = "secretstorage"+version = "3.5.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cryptography", marker = "sys_platform != 'emscripten' and sys_platform != 'win32'" },+ { name = "jeepney", marker = "sys_platform != 'emscripten' and sys_platform != 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz", hash = "sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size = 19884, upload-time = "2025-11-23T19:02:53.191Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/46/f5af3402b579fd5e11573ce652019a67074317e18c1935cc0b4ba9b35552/secretstorage-3.5.0-py3-none-any.whl", hash = "sha256:0ce65888c0725fcb2c5bc0fdb8e5438eece02c523557ea40ce0703c266248137", size = 15554, upload-time = "2025-11-23T19:02:51.545Z" },+]++[[package]]+name = "setuptools"+version = "82.0.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/82/f3/748f4d6f65d1756b9ae577f329c951cda23fb900e4de9f70900ced962085/setuptools-82.0.0.tar.gz", hash = "sha256:22e0a2d69474c6ae4feb01951cb69d515ed23728cf96d05513d36e42b62b37cb", size = 1144893, upload-time = "2026-02-08T15:08:40.206Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e1/c6/76dc613121b793286a3f91621d7b75a2b493e0390ddca50f11993eadf192/setuptools-82.0.0-py3-none-any.whl", hash = "sha256:70b18734b607bd1da571d097d236cfcfacaf01de45717d59e6e04b96877532e0", size = 1003468, upload-time = "2026-02-08T15:08:38.723Z" },+]++[[package]]+name = "shellingham"+version = "1.5.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de", size = 10310, upload-time = "2023-10-24T04:13:40.426Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686", size = 9755, upload-time = "2023-10-24T04:13:38.866Z" },+]++[[package]]+name = "six"+version = "1.17.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" },+]++[[package]]+name = "sniffio"+version = "1.3.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a2/87/a6771e1546d97e7e041b6ae58d80074f81b7d5121207425c964ddf5cfdbd/sniffio-1.3.1.tar.gz", hash = "sha256:f4324edc670a0f49750a81b895f35c3adb843cca46f0530f79fc1babb23789dc", size = 20372, upload-time = "2024-02-25T23:20:04.057Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e9/44/75a9c9421471a6c4805dbf2356f7c181a29c1879239abab1ea2cc8f38b40/sniffio-1.3.1-py3-none-any.whl", hash = "sha256:2f6da418d1f1e0fddd844478f41680e794e6051915791a034ff65e5f100525a2", size = 10235, upload-time = "2024-02-25T23:20:01.196Z" },+]++[[package]]+name = "sortedcontainers"+version = "2.4.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e8/c4/ba2f8066cceb6f23394729afe52f3bf7adec04bf9ed2c820b39e19299111/sortedcontainers-2.4.0.tar.gz", hash = "sha256:25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88", size = 30594, upload-time = "2021-05-16T22:03:42.897Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/32/46/9cb0e58b2deb7f82b84065f37f3bffeb12413f947f9388e4cac22c4621ce/sortedcontainers-2.4.0-py2.py3-none-any.whl", hash = "sha256:a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0", size = 29575, upload-time = "2021-05-16T22:03:41.177Z" },+]++[[package]]+name = "sqlalchemy"+version = "2.0.46"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "greenlet", marker = "platform_machine == 'AMD64' or platform_machine == 'WIN32' or platform_machine == 'aarch64' or platform_machine == 'amd64' or platform_machine == 'ppc64le' or platform_machine == 'win32' or platform_machine == 'x86_64'" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/aa/9ce0f3e7a9829ead5c8ce549392f33a12c4555a6c0609bb27d882e9c7ddf/sqlalchemy-2.0.46.tar.gz", hash = "sha256:cf36851ee7219c170bb0793dbc3da3e80c582e04a5437bc601bfe8c85c9216d7", size = 9865393, upload-time = "2026-01-21T18:03:45.119Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b3/4b/fa7838fe20bb752810feed60e45625a9a8b0102c0c09971e2d1d95362992/sqlalchemy-2.0.46-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:93a12da97cca70cea10d4b4fc602589c4511f96c1f8f6c11817620c021d21d00", size = 2150268, upload-time = "2026-01-21T19:05:56.621Z" },+ { url = "https://files.pythonhosted.org/packages/46/c1/b34dccd712e8ea846edf396e00973dda82d598cb93762e55e43e6835eba9/sqlalchemy-2.0.46-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:af865c18752d416798dae13f83f38927c52f085c52e2f32b8ab0fef46fdd02c2", size = 3276511, upload-time = "2026-01-21T18:46:49.022Z" },+ { url = "https://files.pythonhosted.org/packages/96/48/a04d9c94753e5d5d096c628c82a98c4793b9c08ca0e7155c3eb7d7db9f24/sqlalchemy-2.0.46-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8d679b5f318423eacb61f933a9a0f75535bfca7056daeadbf6bd5bcee6183aee", size = 3292881, upload-time = "2026-01-21T18:40:13.089Z" },+ { url = "https://files.pythonhosted.org/packages/be/f4/06eda6e91476f90a7d8058f74311cb65a2fb68d988171aced81707189131/sqlalchemy-2.0.46-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:64901e08c33462acc9ec3bad27fc7a5c2b6491665f2aa57564e57a4f5d7c52ad", size = 3224559, upload-time = "2026-01-21T18:46:50.974Z" },+ { url = "https://files.pythonhosted.org/packages/ab/a2/d2af04095412ca6345ac22b33b89fe8d6f32a481e613ffcb2377d931d8d0/sqlalchemy-2.0.46-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e8ac45e8f4eaac0f9f8043ea0e224158855c6a4329fd4ee37c45c61e3beb518e", size = 3262728, upload-time = "2026-01-21T18:40:14.883Z" },+ { url = "https://files.pythonhosted.org/packages/31/48/1980c7caa5978a3b8225b4d230e69a2a6538a3562b8b31cea679b6933c83/sqlalchemy-2.0.46-cp313-cp313-win32.whl", hash = "sha256:8d3b44b3d0ab2f1319d71d9863d76eeb46766f8cf9e921ac293511804d39813f", size = 2111295, upload-time = "2026-01-21T18:42:52.366Z" },+ { url = "https://files.pythonhosted.org/packages/2d/54/f8d65bbde3d877617c4720f3c9f60e99bb7266df0d5d78b6e25e7c149f35/sqlalchemy-2.0.46-cp313-cp313-win_amd64.whl", hash = "sha256:77f8071d8fbcbb2dd11b7fd40dedd04e8ebe2eb80497916efedba844298065ef", size = 2137076, upload-time = "2026-01-21T18:42:53.924Z" },+ { url = "https://files.pythonhosted.org/packages/56/ba/9be4f97c7eb2b9d5544f2624adfc2853e796ed51d2bb8aec90bc94b7137e/sqlalchemy-2.0.46-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a1e8cc6cc01da346dc92d9509a63033b9b1bda4fed7a7a7807ed385c7dccdc10", size = 3556533, upload-time = "2026-01-21T18:33:06.636Z" },+ { url = "https://files.pythonhosted.org/packages/20/a6/b1fc6634564dbb4415b7ed6419cdfeaadefd2c39cdab1e3aa07a5f2474c2/sqlalchemy-2.0.46-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:96c7cca1a4babaaf3bfff3e4e606e38578856917e52f0384635a95b226c87764", size = 3523208, upload-time = "2026-01-21T18:45:08.436Z" },+ { url = "https://files.pythonhosted.org/packages/a1/d8/41e0bdfc0f930ff236f86fccd12962d8fa03713f17ed57332d38af6a3782/sqlalchemy-2.0.46-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:b2a9f9aee38039cf4755891a1e50e1effcc42ea6ba053743f452c372c3152b1b", size = 3464292, upload-time = "2026-01-21T18:33:08.208Z" },+ { url = "https://files.pythonhosted.org/packages/f0/8b/9dcbec62d95bea85f5ecad9b8d65b78cc30fb0ffceeb3597961f3712549b/sqlalchemy-2.0.46-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:db23b1bf8cfe1f7fda19018e7207b20cdb5168f83c437ff7e95d19e39289c447", size = 3473497, upload-time = "2026-01-21T18:45:10.552Z" },+ { url = "https://files.pythonhosted.org/packages/fc/a1/9c4efa03300926601c19c18582531b45aededfb961ab3c3585f1e24f120b/sqlalchemy-2.0.46-py3-none-any.whl", hash = "sha256:f9c11766e7e7c0a2767dda5acb006a118640c9fc0a4104214b96269bfb78399e", size = 1937882, upload-time = "2026-01-21T18:22:10.456Z" },+]++[[package]]+name = "sse-starlette"+version = "3.2.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "starlette" },+]+sdist = { url = "https://files.pythonhosted.org/packages/8b/8d/00d280c03ffd39aaee0e86ec81e2d3b9253036a0f93f51d10503adef0e65/sse_starlette-3.2.0.tar.gz", hash = "sha256:8127594edfb51abe44eac9c49e59b0b01f1039d0c7461c6fd91d4e03b70da422", size = 27253, upload-time = "2026-01-17T13:11:05.62Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/96/7f/832f015020844a8b8f7a9cbc103dd76ba8e3875004c41e08440ea3a2b41a/sse_starlette-3.2.0-py3-none-any.whl", hash = "sha256:5876954bd51920fc2cd51baee47a080eb88a37b5b784e615abb0b283f801cdbf", size = 12763, upload-time = "2026-01-17T13:11:03.775Z" },+]++[[package]]+name = "starlette"+version = "0.52.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c4/68/79977123bb7be889ad680d79a40f339082c1978b5cfcf62c2d8d196873ac/starlette-0.52.1.tar.gz", hash = "sha256:834edd1b0a23167694292e94f597773bc3f89f362be6effee198165a35d62933", size = 2653702, upload-time = "2026-01-18T13:34:11.062Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/81/0d/13d1d239a25cbfb19e740db83143e95c772a1fe10202dda4b76792b114dd/starlette-0.52.1-py3-none-any.whl", hash = "sha256:0029d43eb3d273bc4f83a08720b4912ea4b071087a3b48db01b7c839f7954d74", size = 74272, upload-time = "2026-01-18T13:34:09.188Z" },+]++[[package]]+name = "sympy"+version = "1.14.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "mpmath" },+]+sdist = { url = "https://files.pythonhosted.org/packages/83/d3/803453b36afefb7c2bb238361cd4ae6125a569b4db67cd9e79846ba2d68c/sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517", size = 7793921, upload-time = "2025-04-27T18:05:01.611Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a2/09/77d55d46fd61b4a135c444fc97158ef34a095e5681d0a6c10b75bf356191/sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5", size = 6299353, upload-time = "2025-04-27T18:04:59.103Z" },+]++[[package]]+name = "tenacity"+version = "9.1.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/47/c6/ee486fd809e357697ee8a44d3d69222b344920433d3b6666ccd9b374630c/tenacity-9.1.4.tar.gz", hash = "sha256:adb31d4c263f2bd041081ab33b498309a57c77f9acf2db65aadf0898179cf93a", size = 49413, upload-time = "2026-02-07T10:45:33.841Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d7/c1/eb8f9debc45d3b7918a32ab756658a0904732f75e555402972246b0b8e71/tenacity-9.1.4-py3-none-any.whl", hash = "sha256:6095a360c919085f28c6527de529e76a06ad89b23659fa881ae0649b867a9d55", size = 28926, upload-time = "2026-02-07T10:45:32.24Z" },+]++[[package]]+name = "tiktoken"+version = "0.12.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "regex" },+ { name = "requests" },+]+sdist = { url = "https://files.pythonhosted.org/packages/7d/ab/4d017d0f76ec3171d469d80fc03dfbb4e48a4bcaddaa831b31d526f05edc/tiktoken-0.12.0.tar.gz", hash = "sha256:b18ba7ee2b093863978fcb14f74b3707cdc8d4d4d3836853ce7ec60772139931", size = 37806, upload-time = "2025-10-06T20:22:45.419Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/00/61/441588ee21e6b5cdf59d6870f86beb9789e532ee9718c251b391b70c68d6/tiktoken-0.12.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:775c2c55de2310cc1bc9a3ad8826761cbdc87770e586fd7b6da7d4589e13dab3", size = 1050802, upload-time = "2025-10-06T20:22:00.96Z" },+ { url = "https://files.pythonhosted.org/packages/1f/05/dcf94486d5c5c8d34496abe271ac76c5b785507c8eae71b3708f1ad9b45a/tiktoken-0.12.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a01b12f69052fbe4b080a2cfb867c4de12c704b56178edf1d1d7b273561db160", size = 993995, upload-time = "2025-10-06T20:22:02.788Z" },+ { url = "https://files.pythonhosted.org/packages/a0/70/5163fe5359b943f8db9946b62f19be2305de8c3d78a16f629d4165e2f40e/tiktoken-0.12.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:01d99484dc93b129cd0964f9d34eee953f2737301f18b3c7257bf368d7615baa", size = 1128948, upload-time = "2025-10-06T20:22:03.814Z" },+ { url = "https://files.pythonhosted.org/packages/0c/da/c028aa0babf77315e1cef357d4d768800c5f8a6de04d0eac0f377cb619fa/tiktoken-0.12.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:4a1a4fcd021f022bfc81904a911d3df0f6543b9e7627b51411da75ff2fe7a1be", size = 1151986, upload-time = "2025-10-06T20:22:05.173Z" },+ { url = "https://files.pythonhosted.org/packages/a0/5a/886b108b766aa53e295f7216b509be95eb7d60b166049ce2c58416b25f2a/tiktoken-0.12.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:981a81e39812d57031efdc9ec59fa32b2a5a5524d20d4776574c4b4bd2e9014a", size = 1194222, upload-time = "2025-10-06T20:22:06.265Z" },+ { url = "https://files.pythonhosted.org/packages/f4/f8/4db272048397636ac7a078d22773dd2795b1becee7bc4922fe6207288d57/tiktoken-0.12.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9baf52f84a3f42eef3ff4e754a0db79a13a27921b457ca9832cf944c6be4f8f3", size = 1255097, upload-time = "2025-10-06T20:22:07.403Z" },+ { url = "https://files.pythonhosted.org/packages/8e/32/45d02e2e0ea2be3a9ed22afc47d93741247e75018aac967b713b2941f8ea/tiktoken-0.12.0-cp313-cp313-win_amd64.whl", hash = "sha256:b8a0cd0c789a61f31bf44851defbd609e8dd1e2c8589c614cc1060940ef1f697", size = 879117, upload-time = "2025-10-06T20:22:08.418Z" },+ { url = "https://files.pythonhosted.org/packages/ce/76/994fc868f88e016e6d05b0da5ac24582a14c47893f4474c3e9744283f1d5/tiktoken-0.12.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:d5f89ea5680066b68bcb797ae85219c72916c922ef0fcdd3480c7d2315ffff16", size = 1050309, upload-time = "2025-10-06T20:22:10.939Z" },+ { url = "https://files.pythonhosted.org/packages/f6/b8/57ef1456504c43a849821920d582a738a461b76a047f352f18c0b26c6516/tiktoken-0.12.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:b4e7ed1c6a7a8a60a3230965bdedba8cc58f68926b835e519341413370e0399a", size = 993712, upload-time = "2025-10-06T20:22:12.115Z" },+ { url = "https://files.pythonhosted.org/packages/72/90/13da56f664286ffbae9dbcfadcc625439142675845baa62715e49b87b68b/tiktoken-0.12.0-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:fc530a28591a2d74bce821d10b418b26a094bf33839e69042a6e86ddb7a7fb27", size = 1128725, upload-time = "2025-10-06T20:22:13.541Z" },+ { url = "https://files.pythonhosted.org/packages/05/df/4f80030d44682235bdaecd7346c90f67ae87ec8f3df4a3442cb53834f7e4/tiktoken-0.12.0-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:06a9f4f49884139013b138920a4c393aa6556b2f8f536345f11819389c703ebb", size = 1151875, upload-time = "2025-10-06T20:22:14.559Z" },+ { url = "https://files.pythonhosted.org/packages/22/1f/ae535223a8c4ef4c0c1192e3f9b82da660be9eb66b9279e95c99288e9dab/tiktoken-0.12.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:04f0e6a985d95913cabc96a741c5ffec525a2c72e9df086ff17ebe35985c800e", size = 1194451, upload-time = "2025-10-06T20:22:15.545Z" },+ { url = "https://files.pythonhosted.org/packages/78/a7/f8ead382fce0243cb625c4f266e66c27f65ae65ee9e77f59ea1653b6d730/tiktoken-0.12.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:0ee8f9ae00c41770b5f9b0bb1235474768884ae157de3beb5439ca0fd70f3e25", size = 1253794, upload-time = "2025-10-06T20:22:16.624Z" },+ { url = "https://files.pythonhosted.org/packages/93/e0/6cc82a562bc6365785a3ff0af27a2a092d57c47d7a81d9e2295d8c36f011/tiktoken-0.12.0-cp313-cp313t-win_amd64.whl", hash = "sha256:dc2dd125a62cb2b3d858484d6c614d136b5b848976794edfb63688d539b8b93f", size = 878777, upload-time = "2025-10-06T20:22:18.036Z" },+]++[[package]]+name = "tokenizers"+version = "0.22.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "huggingface-hub" },+]+sdist = { url = "https://files.pythonhosted.org/packages/73/6f/f80cfef4a312e1fb34baf7d85c72d4411afde10978d4657f8cdd811d3ccc/tokenizers-0.22.2.tar.gz", hash = "sha256:473b83b915e547aa366d1eee11806deaf419e17be16310ac0a14077f1e28f917", size = 372115, upload-time = "2026-01-05T10:45:15.988Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/92/97/5dbfabf04c7e348e655e907ed27913e03db0923abb5dfdd120d7b25630e1/tokenizers-0.22.2-cp39-abi3-macosx_10_12_x86_64.whl", hash = "sha256:544dd704ae7238755d790de45ba8da072e9af3eea688f698b137915ae959281c", size = 3100275, upload-time = "2026-01-05T10:41:02.158Z" },+ { url = "https://files.pythonhosted.org/packages/2e/47/174dca0502ef88b28f1c9e06b73ce33500eedfac7a7692108aec220464e7/tokenizers-0.22.2-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:1e418a55456beedca4621dbab65a318981467a2b188e982a23e117f115ce5001", size = 2981472, upload-time = "2026-01-05T10:41:00.276Z" },+ { url = "https://files.pythonhosted.org/packages/d6/84/7990e799f1309a8b87af6b948f31edaa12a3ed22d11b352eaf4f4b2e5753/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2249487018adec45d6e3554c71d46eb39fa8ea67156c640f7513eb26f318cec7", size = 3290736, upload-time = "2026-01-05T10:40:32.165Z" },+ { url = "https://files.pythonhosted.org/packages/78/59/09d0d9ba94dcd5f4f1368d4858d24546b4bdc0231c2354aa31d6199f0399/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:25b85325d0815e86e0bac263506dd114578953b7b53d7de09a6485e4a160a7dd", size = 3168835, upload-time = "2026-01-05T10:40:38.847Z" },+ { url = "https://files.pythonhosted.org/packages/47/50/b3ebb4243e7160bda8d34b731e54dd8ab8b133e50775872e7a434e524c28/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:bfb88f22a209ff7b40a576d5324bf8286b519d7358663db21d6246fb17eea2d5", size = 3521673, upload-time = "2026-01-05T10:40:56.614Z" },+ { url = "https://files.pythonhosted.org/packages/e0/fa/89f4cb9e08df770b57adb96f8cbb7e22695a4cb6c2bd5f0c4f0ebcf33b66/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1c774b1276f71e1ef716e5486f21e76333464f47bece56bbd554485982a9e03e", size = 3724818, upload-time = "2026-01-05T10:40:44.507Z" },+ { url = "https://files.pythonhosted.org/packages/64/04/ca2363f0bfbe3b3d36e95bf67e56a4c88c8e3362b658e616d1ac185d47f2/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:df6c4265b289083bf710dff49bc51ef252f9d5be33a45ee2bed151114a56207b", size = 3379195, upload-time = "2026-01-05T10:40:51.139Z" },+ { url = "https://files.pythonhosted.org/packages/2e/76/932be4b50ef6ccedf9d3c6639b056a967a86258c6d9200643f01269211ca/tokenizers-0.22.2-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:369cc9fc8cc10cb24143873a0d95438bb8ee257bb80c71989e3ee290e8d72c67", size = 3274982, upload-time = "2026-01-05T10:40:58.331Z" },+ { url = "https://files.pythonhosted.org/packages/1d/28/5f9f5a4cc211b69e89420980e483831bcc29dade307955cc9dc858a40f01/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:29c30b83d8dcd061078b05ae0cb94d3c710555fbb44861139f9f83dcca3dc3e4", size = 9478245, upload-time = "2026-01-05T10:41:04.053Z" },+ { url = "https://files.pythonhosted.org/packages/6c/fb/66e2da4704d6aadebf8cb39f1d6d1957df667ab24cff2326b77cda0dcb85/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:37ae80a28c1d3265bb1f22464c856bd23c02a05bb211e56d0c5301a435be6c1a", size = 9560069, upload-time = "2026-01-05T10:45:10.673Z" },+ { url = "https://files.pythonhosted.org/packages/16/04/fed398b05caa87ce9b1a1bb5166645e38196081b225059a6edaff6440fac/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:791135ee325f2336f498590eb2f11dc5c295232f288e75c99a36c5dbce63088a", size = 9899263, upload-time = "2026-01-05T10:45:12.559Z" },+ { url = "https://files.pythonhosted.org/packages/05/a1/d62dfe7376beaaf1394917e0f8e93ee5f67fea8fcf4107501db35996586b/tokenizers-0.22.2-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:38337540fbbddff8e999d59970f3c6f35a82de10053206a7562f1ea02d046fa5", size = 10033429, upload-time = "2026-01-05T10:45:14.333Z" },+ { url = "https://files.pythonhosted.org/packages/fd/18/a545c4ea42af3df6effd7d13d250ba77a0a86fb20393143bbb9a92e434d4/tokenizers-0.22.2-cp39-abi3-win32.whl", hash = "sha256:a6bf3f88c554a2b653af81f3204491c818ae2ac6fbc09e76ef4773351292bc92", size = 2502363, upload-time = "2026-01-05T10:45:20.593Z" },+ { url = "https://files.pythonhosted.org/packages/65/71/0670843133a43d43070abeb1949abfdef12a86d490bea9cd9e18e37c5ff7/tokenizers-0.22.2-cp39-abi3-win_amd64.whl", hash = "sha256:c9ea31edff2968b44a88f97d784c2f16dc0729b8b143ed004699ebca91f05c48", size = 2747786, upload-time = "2026-01-05T10:45:18.411Z" },+ { url = "https://files.pythonhosted.org/packages/72/f4/0de46cfa12cdcbcd464cc59fde36912af405696f687e53a091fb432f694c/tokenizers-0.22.2-cp39-abi3-win_arm64.whl", hash = "sha256:9ce725d22864a1e965217204946f830c37876eee3b2ba6fc6255e8e903d5fcbc", size = 2612133, upload-time = "2026-01-05T10:45:17.232Z" },+]++[[package]]+name = "tqdm"+version = "4.67.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/09/a9/6ba95a270c6f1fbcd8dac228323f2777d886cb206987444e4bce66338dd4/tqdm-4.67.3.tar.gz", hash = "sha256:7d825f03f89244ef73f1d4ce193cb1774a8179fd96f31d7e1dcde62092b960bb", size = 169598, upload-time = "2026-02-03T17:35:53.048Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/16/e1/3079a9ff9b8e11b846c6ac5c8b5bfb7ff225eee721825310c91b3b50304f/tqdm-4.67.3-py3-none-any.whl", hash = "sha256:ee1e4c0e59148062281c49d80b25b67771a127c85fc9676d3be5f243206826bf", size = 78374, upload-time = "2026-02-03T17:35:50.982Z" },+]++[[package]]+name = "transformers"+version = "5.1.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "huggingface-hub" },+ { name = "numpy" },+ { name = "packaging" },+ { name = "pyyaml" },+ { name = "regex" },+ { name = "safetensors" },+ { name = "tokenizers" },+ { name = "tqdm" },+ { name = "typer-slim" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c9/1d/a7d91500a6c02ec76058bc9e65fcdec1bdb8882854dec8e4adf12d0aa8b0/transformers-5.1.0.tar.gz", hash = "sha256:c60d6180e5845ea1b4eed38d7d1b06fcc4cc341c6b7fa5c1dc767d7e25fe0139", size = 8531810, upload-time = "2026-02-05T15:41:42.932Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/66/57042d4b0f1ede8046d7ae6409bf3640df996e9cbc3fe20467aa29badc54/transformers-5.1.0-py3-none-any.whl", hash = "sha256:de534b50c9b2ce6217fc56421075a1734241fb40704fdc90f50f6a08fc533d59", size = 10276537, upload-time = "2026-02-05T15:41:40.358Z" },+]++[[package]]+name = "typer"+version = "0.23.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "annotated-doc" },+ { name = "click" },+ { name = "rich" },+ { name = "shellingham" },+]+sdist = { url = "https://files.pythonhosted.org/packages/7e/e6/44e073787aa57cd71c151f44855232feb0f748428fd5242d7366e3c4ae8b/typer-0.23.0.tar.gz", hash = "sha256:d8378833e47ada5d3d093fa20c4c63427cc4e27127f6b349a6c359463087d8cc", size = 120181, upload-time = "2026-02-11T15:22:18.637Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7a/ed/d6fca788b51d0d4640c4bc82d0e85bad4b49809bca36bf4af01b4dcb66a7/typer-0.23.0-py3-none-any.whl", hash = "sha256:79f4bc262b6c37872091072a3cb7cb6d7d79ee98c0c658b4364bdcde3c42c913", size = 56668, upload-time = "2026-02-11T15:22:21.075Z" },+]++[[package]]+name = "typer-slim"+version = "0.23.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typer" },+]+sdist = { url = "https://files.pythonhosted.org/packages/1f/8a/881cfd399a119db89619dc1b93d36e2fb6720ddb112bceff41203f1abd72/typer_slim-0.23.0.tar.gz", hash = "sha256:be8b60243df27cfee444c6db1b10a85f4f3e54d940574f31a996f78aa35a8254", size = 4773, upload-time = "2026-02-11T15:22:19.106Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/07/3e/ba3a222c80ee070d9497ece3e1fe77253c142925dd4c90f04278aac0a9eb/typer_slim-0.23.0-py3-none-any.whl", hash = "sha256:1d693daf22d998a7b1edab8413cdcb8af07254154ce3956c1664dc11b01e2f8b", size = 3399, upload-time = "2026-02-11T15:22:17.792Z" },+]++[[package]]+name = "typing-extensions"+version = "4.15.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" },+]++[[package]]+name = "typing-inspection"+version = "0.4.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" },+]++[[package]]+name = "tzdata"+version = "2025.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/5e/a7/c202b344c5ca7daf398f3b8a477eeb205cf3b6f32e7ec3a6bac0629ca975/tzdata-2025.3.tar.gz", hash = "sha256:de39c2ca5dc7b0344f2eba86f49d614019d29f060fc4ebc8a417896a620b56a7", size = 196772, upload-time = "2025-12-13T17:45:35.667Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c7/b0/003792df09decd6849a5e39c28b513c06e84436a54440380862b5aeff25d/tzdata-2025.3-py2.py3-none-any.whl", hash = "sha256:06a47e5700f3081aab02b2e513160914ff0694bce9947d6b76ebd6bf57cfc5d1", size = 348521, upload-time = "2025-12-13T17:45:33.889Z" },+]++[[package]]+name = "urllib3"+version = "2.6.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556, upload-time = "2026-01-07T16:24:43.925Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584, upload-time = "2026-01-07T16:24:42.685Z" },+]++[[package]]+name = "uvicorn"+version = "0.40.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "click" },+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c3/d1/8f3c683c9561a4e6689dd3b1d345c815f10f86acd044ee1fb9a4dcd0b8c5/uvicorn-0.40.0.tar.gz", hash = "sha256:839676675e87e73694518b5574fd0f24c9d97b46bea16df7b8c05ea1a51071ea", size = 81761, upload-time = "2025-12-21T14:16:22.45Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/3d/d8/2083a1daa7439a66f3a48589a57d576aa117726762618f6bb09fe3798796/uvicorn-0.40.0-py3-none-any.whl", hash = "sha256:c6c8f55bc8bf13eb6fa9ff87ad62308bbbc33d0b67f84293151efe87e0d5f2ee", size = 68502, upload-time = "2025-12-21T14:16:21.041Z" },+]++[package.optional-dependencies]+standard = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "httptools" },+ { name = "python-dotenv" },+ { name = "pyyaml" },+ { name = "uvloop", marker = "platform_python_implementation != 'PyPy' and sys_platform != 'cygwin' and sys_platform != 'win32'" },+ { name = "watchfiles" },+ { name = "websockets" },+]++[[package]]+name = "uvloop"+version = "0.22.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/06/f0/18d39dbd1971d6d62c4629cc7fa67f74821b0dc1f5a77af43719de7936a7/uvloop-0.22.1.tar.gz", hash = "sha256:6c84bae345b9147082b17371e3dd5d42775bddce91f885499017f4607fdaf39f", size = 2443250, upload-time = "2025-10-16T22:17:19.342Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/89/8c/182a2a593195bfd39842ea68ebc084e20c850806117213f5a299dfc513d9/uvloop-0.22.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:561577354eb94200d75aca23fbde86ee11be36b00e52a4eaf8f50fb0c86b7705", size = 1358611, upload-time = "2025-10-16T22:16:36.833Z" },+ { url = "https://files.pythonhosted.org/packages/d2/14/e301ee96a6dc95224b6f1162cd3312f6d1217be3907b79173b06785f2fe7/uvloop-0.22.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1cdf5192ab3e674ca26da2eada35b288d2fa49fdd0f357a19f0e7c4e7d5077c8", size = 751811, upload-time = "2025-10-16T22:16:38.275Z" },+ { url = "https://files.pythonhosted.org/packages/b7/02/654426ce265ac19e2980bfd9ea6590ca96a56f10c76e63801a2df01c0486/uvloop-0.22.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e2ea3d6190a2968f4a14a23019d3b16870dd2190cd69c8180f7c632d21de68d", size = 4288562, upload-time = "2025-10-16T22:16:39.375Z" },+ { url = "https://files.pythonhosted.org/packages/15/c0/0be24758891ef825f2065cd5db8741aaddabe3e248ee6acc5e8a80f04005/uvloop-0.22.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0530a5fbad9c9e4ee3f2b33b148c6a64d47bbad8000ea63704fa8260f4cf728e", size = 4366890, upload-time = "2025-10-16T22:16:40.547Z" },+ { url = "https://files.pythonhosted.org/packages/d2/53/8369e5219a5855869bcee5f4d317f6da0e2c669aecf0ef7d371e3d084449/uvloop-0.22.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bc5ef13bbc10b5335792360623cc378d52d7e62c2de64660616478c32cd0598e", size = 4119472, upload-time = "2025-10-16T22:16:41.694Z" },+ { url = "https://files.pythonhosted.org/packages/f8/ba/d69adbe699b768f6b29a5eec7b47dd610bd17a69de51b251126a801369ea/uvloop-0.22.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1f38ec5e3f18c8a10ded09742f7fb8de0108796eb673f30ce7762ce1b8550cad", size = 4239051, upload-time = "2025-10-16T22:16:43.224Z" },+]++[[package]]+name = "virtualenv"+version = "20.36.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "distlib" },+ { name = "filelock" },+ { name = "platformdirs" },+]+sdist = { url = "https://files.pythonhosted.org/packages/aa/a3/4d310fa5f00863544e1d0f4de93bddec248499ccf97d4791bc3122c9d4f3/virtualenv-20.36.1.tar.gz", hash = "sha256:8befb5c81842c641f8ee658481e42641c68b5eab3521d8e092d18320902466ba", size = 6032239, upload-time = "2026-01-09T18:21:01.296Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6a/2a/dc2228b2888f51192c7dc766106cd475f1b768c10caaf9727659726f7391/virtualenv-20.36.1-py3-none-any.whl", hash = "sha256:575a8d6b124ef88f6f51d56d656132389f961062a9177016a50e4f507bbcc19f", size = 6008258, upload-time = "2026-01-09T18:20:59.425Z" },+]++[[package]]+name = "watchfiles"+version = "1.1.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c2/c9/8869df9b2a2d6c59d79220a4db37679e74f807c559ffe5265e08b227a210/watchfiles-1.1.1.tar.gz", hash = "sha256:a173cb5c16c4f40ab19cecf48a534c409f7ea983ab8fed0741304a1c0a31b3f2", size = 94440, upload-time = "2025-10-14T15:06:21.08Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bb/f4/f750b29225fe77139f7ae5de89d4949f5a99f934c65a1f1c0b248f26f747/watchfiles-1.1.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:130e4876309e8686a5e37dba7d5e9bc77e6ed908266996ca26572437a5271e18", size = 404321, upload-time = "2025-10-14T15:05:02.063Z" },+ { url = "https://files.pythonhosted.org/packages/2b/f9/f07a295cde762644aa4c4bb0f88921d2d141af45e735b965fb2e87858328/watchfiles-1.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5f3bde70f157f84ece3765b42b4a52c6ac1a50334903c6eaf765362f6ccca88a", size = 391783, upload-time = "2025-10-14T15:05:03.052Z" },+ { url = "https://files.pythonhosted.org/packages/bc/11/fc2502457e0bea39a5c958d86d2cb69e407a4d00b85735ca724bfa6e0d1a/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:14e0b1fe858430fc0251737ef3824c54027bedb8c37c38114488b8e131cf8219", size = 449279, upload-time = "2025-10-14T15:05:04.004Z" },+ { url = "https://files.pythonhosted.org/packages/e3/1f/d66bc15ea0b728df3ed96a539c777acfcad0eb78555ad9efcaa1274688f0/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f27db948078f3823a6bb3b465180db8ebecf26dd5dae6f6180bd87383b6b4428", size = 459405, upload-time = "2025-10-14T15:05:04.942Z" },+ { url = "https://files.pythonhosted.org/packages/be/90/9f4a65c0aec3ccf032703e6db02d89a157462fbb2cf20dd415128251cac0/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:059098c3a429f62fc98e8ec62b982230ef2c8df68c79e826e37b895bc359a9c0", size = 488976, upload-time = "2025-10-14T15:05:05.905Z" },+ { url = "https://files.pythonhosted.org/packages/37/57/ee347af605d867f712be7029bb94c8c071732a4b44792e3176fa3c612d39/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bfb5862016acc9b869bb57284e6cb35fdf8e22fe59f7548858e2f971d045f150", size = 595506, upload-time = "2025-10-14T15:05:06.906Z" },+ { url = "https://files.pythonhosted.org/packages/a8/78/cc5ab0b86c122047f75e8fc471c67a04dee395daf847d3e59381996c8707/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:319b27255aacd9923b8a276bb14d21a5f7ff82564c744235fc5eae58d95422ae", size = 474936, upload-time = "2025-10-14T15:05:07.906Z" },+ { url = "https://files.pythonhosted.org/packages/62/da/def65b170a3815af7bd40a3e7010bf6ab53089ef1b75d05dd5385b87cf08/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c755367e51db90e75b19454b680903631d41f9e3607fbd941d296a020c2d752d", size = 456147, upload-time = "2025-10-14T15:05:09.138Z" },+ { url = "https://files.pythonhosted.org/packages/57/99/da6573ba71166e82d288d4df0839128004c67d2778d3b566c138695f5c0b/watchfiles-1.1.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:c22c776292a23bfc7237a98f791b9ad3144b02116ff10d820829ce62dff46d0b", size = 630007, upload-time = "2025-10-14T15:05:10.117Z" },+ { url = "https://files.pythonhosted.org/packages/a8/51/7439c4dd39511368849eb1e53279cd3454b4a4dbace80bab88feeb83c6b5/watchfiles-1.1.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:3a476189be23c3686bc2f4321dd501cb329c0a0469e77b7b534ee10129ae6374", size = 622280, upload-time = "2025-10-14T15:05:11.146Z" },+ { url = "https://files.pythonhosted.org/packages/95/9c/8ed97d4bba5db6fdcdb2b298d3898f2dd5c20f6b73aee04eabe56c59677e/watchfiles-1.1.1-cp313-cp313-win32.whl", hash = "sha256:bf0a91bfb5574a2f7fc223cf95eeea79abfefa404bf1ea5e339c0c1560ae99a0", size = 272056, upload-time = "2025-10-14T15:05:12.156Z" },+ { url = "https://files.pythonhosted.org/packages/1f/f3/c14e28429f744a260d8ceae18bf58c1d5fa56b50d006a7a9f80e1882cb0d/watchfiles-1.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:52e06553899e11e8074503c8e716d574adeeb7e68913115c4b3653c53f9bae42", size = 288162, upload-time = "2025-10-14T15:05:13.208Z" },+ { url = "https://files.pythonhosted.org/packages/dc/61/fe0e56c40d5cd29523e398d31153218718c5786b5e636d9ae8ae79453d27/watchfiles-1.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:ac3cc5759570cd02662b15fbcd9d917f7ecd47efe0d6b40474eafd246f91ea18", size = 277909, upload-time = "2025-10-14T15:05:14.49Z" },+ { url = "https://files.pythonhosted.org/packages/79/42/e0a7d749626f1e28c7108a99fb9bf524b501bbbeb9b261ceecde644d5a07/watchfiles-1.1.1-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:563b116874a9a7ce6f96f87cd0b94f7faf92d08d0021e837796f0a14318ef8da", size = 403389, upload-time = "2025-10-14T15:05:15.777Z" },+ { url = "https://files.pythonhosted.org/packages/15/49/08732f90ce0fbbc13913f9f215c689cfc9ced345fb1bcd8829a50007cc8d/watchfiles-1.1.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:3ad9fe1dae4ab4212d8c91e80b832425e24f421703b5a42ef2e4a1e215aff051", size = 389964, upload-time = "2025-10-14T15:05:16.85Z" },+ { url = "https://files.pythonhosted.org/packages/27/0d/7c315d4bd5f2538910491a0393c56bf70d333d51bc5b34bee8e68e8cea19/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ce70f96a46b894b36eba678f153f052967a0d06d5b5a19b336ab0dbbd029f73e", size = 448114, upload-time = "2025-10-14T15:05:17.876Z" },+ { url = "https://files.pythonhosted.org/packages/c3/24/9e096de47a4d11bc4df41e9d1e61776393eac4cb6eb11b3e23315b78b2cc/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:cb467c999c2eff23a6417e58d75e5828716f42ed8289fe6b77a7e5a91036ca70", size = 460264, upload-time = "2025-10-14T15:05:18.962Z" },+ { url = "https://files.pythonhosted.org/packages/cc/0f/e8dea6375f1d3ba5fcb0b3583e2b493e77379834c74fd5a22d66d85d6540/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:836398932192dae4146c8f6f737d74baeac8b70ce14831a239bdb1ca882fc261", size = 487877, upload-time = "2025-10-14T15:05:20.094Z" },+ { url = "https://files.pythonhosted.org/packages/ac/5b/df24cfc6424a12deb41503b64d42fbea6b8cb357ec62ca84a5a3476f654a/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:743185e7372b7bc7c389e1badcc606931a827112fbbd37f14c537320fca08620", size = 595176, upload-time = "2025-10-14T15:05:21.134Z" },+ { url = "https://files.pythonhosted.org/packages/8f/b5/853b6757f7347de4e9b37e8cc3289283fb983cba1ab4d2d7144694871d9c/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:afaeff7696e0ad9f02cbb8f56365ff4686ab205fcf9c4c5b6fdfaaa16549dd04", size = 473577, upload-time = "2025-10-14T15:05:22.306Z" },+ { url = "https://files.pythonhosted.org/packages/e1/f7/0a4467be0a56e80447c8529c9fce5b38eab4f513cb3d9bf82e7392a5696b/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3f7eb7da0eb23aa2ba036d4f616d46906013a68caf61b7fdbe42fc8b25132e77", size = 455425, upload-time = "2025-10-14T15:05:23.348Z" },+ { url = "https://files.pythonhosted.org/packages/8e/e0/82583485ea00137ddf69bc84a2db88bd92ab4a6e3c405e5fb878ead8d0e7/watchfiles-1.1.1-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:831a62658609f0e5c64178211c942ace999517f5770fe9436be4c2faeba0c0ef", size = 628826, upload-time = "2025-10-14T15:05:24.398Z" },+ { url = "https://files.pythonhosted.org/packages/28/9a/a785356fccf9fae84c0cc90570f11702ae9571036fb25932f1242c82191c/watchfiles-1.1.1-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:f9a2ae5c91cecc9edd47e041a930490c31c3afb1f5e6d71de3dc671bfaca02bf", size = 622208, upload-time = "2025-10-14T15:05:25.45Z" },+]++[[package]]+name = "websocket-client"+version = "1.9.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/2c/41/aa4bf9664e4cda14c3b39865b12251e8e7d239f4cd0e3cc1b6c2ccde25c1/websocket_client-1.9.0.tar.gz", hash = "sha256:9e813624b6eb619999a97dc7958469217c3176312b3a16a4bd1bc7e08a46ec98", size = 70576, upload-time = "2025-10-07T21:16:36.495Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/34/db/b10e48aa8fff7407e67470363eac595018441cf32d5e1001567a7aeba5d2/websocket_client-1.9.0-py3-none-any.whl", hash = "sha256:af248a825037ef591efbf6ed20cc5faa03d3b47b9e5a2230a529eeee1c1fc3ef", size = 82616, upload-time = "2025-10-07T21:16:34.951Z" },+]++[[package]]+name = "websockets"+version = "16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/04/24/4b2031d72e840ce4c1ccb255f693b15c334757fc50023e4db9537080b8c4/websockets-16.0.tar.gz", hash = "sha256:5f6261a5e56e8d5c42a4497b364ea24d94d9563e8fbd44e78ac40879c60179b5", size = 179346, upload-time = "2026-01-10T09:23:47.181Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cc/9c/baa8456050d1c1b08dd0ec7346026668cbc6f145ab4e314d707bb845bf0d/websockets-16.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:878b336ac47938b474c8f982ac2f7266a540adc3fa4ad74ae96fea9823a02cc9", size = 177364, upload-time = "2026-01-10T09:22:59.333Z" },+ { url = "https://files.pythonhosted.org/packages/7e/0c/8811fc53e9bcff68fe7de2bcbe75116a8d959ac699a3200f4847a8925210/websockets-16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:52a0fec0e6c8d9a784c2c78276a48a2bdf099e4ccc2a4cad53b27718dbfd0230", size = 175039, upload-time = "2026-01-10T09:23:01.171Z" },+ { url = "https://files.pythonhosted.org/packages/aa/82/39a5f910cb99ec0b59e482971238c845af9220d3ab9fa76dd9162cda9d62/websockets-16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e6578ed5b6981005df1860a56e3617f14a6c307e6a71b4fff8c48fdc50f3ed2c", size = 175323, upload-time = "2026-01-10T09:23:02.341Z" },+ { url = "https://files.pythonhosted.org/packages/bd/28/0a25ee5342eb5d5f297d992a77e56892ecb65e7854c7898fb7d35e9b33bd/websockets-16.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:95724e638f0f9c350bb1c2b0a7ad0e83d9cc0c9259f3ea94e40d7b02a2179ae5", size = 184975, upload-time = "2026-01-10T09:23:03.756Z" },+ { url = "https://files.pythonhosted.org/packages/f9/66/27ea52741752f5107c2e41fda05e8395a682a1e11c4e592a809a90c6a506/websockets-16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c0204dc62a89dc9d50d682412c10b3542d748260d743500a85c13cd1ee4bde82", size = 186203, upload-time = "2026-01-10T09:23:05.01Z" },+ { url = "https://files.pythonhosted.org/packages/37/e5/8e32857371406a757816a2b471939d51c463509be73fa538216ea52b792a/websockets-16.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:52ac480f44d32970d66763115edea932f1c5b1312de36df06d6b219f6741eed8", size = 185653, upload-time = "2026-01-10T09:23:06.301Z" },+ { url = "https://files.pythonhosted.org/packages/9b/67/f926bac29882894669368dc73f4da900fcdf47955d0a0185d60103df5737/websockets-16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6e5a82b677f8f6f59e8dfc34ec06ca6b5b48bc4fcda346acd093694cc2c24d8f", size = 184920, upload-time = "2026-01-10T09:23:07.492Z" },+ { url = "https://files.pythonhosted.org/packages/3c/a1/3d6ccdcd125b0a42a311bcd15a7f705d688f73b2a22d8cf1c0875d35d34a/websockets-16.0-cp313-cp313-win32.whl", hash = "sha256:abf050a199613f64c886ea10f38b47770a65154dc37181bfaff70c160f45315a", size = 178255, upload-time = "2026-01-10T09:23:09.245Z" },+ { url = "https://files.pythonhosted.org/packages/6b/ae/90366304d7c2ce80f9b826096a9e9048b4bb760e44d3b873bb272cba696b/websockets-16.0-cp313-cp313-win_amd64.whl", hash = "sha256:3425ac5cf448801335d6fdc7ae1eb22072055417a96cc6b31b3861f455fbc156", size = 178689, upload-time = "2026-01-10T09:23:10.483Z" },+ { url = "https://files.pythonhosted.org/packages/6f/28/258ebab549c2bf3e64d2b0217b973467394a9cea8c42f70418ca2c5d0d2e/websockets-16.0-py3-none-any.whl", hash = "sha256:1637db62fad1dc833276dded54215f2c7fa46912301a24bd94d45d46a011ceec", size = 171598, upload-time = "2026-01-10T09:23:45.395Z" },+]++[[package]]+name = "win32-setctime"+version = "1.2.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b3/8f/705086c9d734d3b663af0e9bb3d4de6578d08f46b1b101c2442fd9aecaa2/win32_setctime-1.2.0.tar.gz", hash = "sha256:ae1fdf948f5640aae05c511ade119313fb6a30d7eabe25fef9764dca5873c4c0", size = 4867, upload-time = "2024-12-07T15:28:28.314Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e1/07/c6fe3ad3e685340704d314d765b7912993bcb8dc198f0e7a89382d37974b/win32_setctime-1.2.0-py3-none-any.whl", hash = "sha256:95d644c4e708aba81dc3704a116d8cbc974d70b3bdb8be1d150e36be6e9d1390", size = 4083, upload-time = "2024-12-07T15:28:26.465Z" },+]++[[package]]+name = "yarl"+version = "1.22.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "idna" },+ { name = "multidict" },+ { name = "propcache" },+]+sdist = { url = "https://files.pythonhosted.org/packages/57/63/0c6ebca57330cd313f6102b16dd57ffaf3ec4c83403dcb45dbd15c6f3ea1/yarl-1.22.0.tar.gz", hash = "sha256:bebf8557577d4401ba8bd9ff33906f1376c877aa78d1fe216ad01b4d6745af71", size = 187169, upload-time = "2025-10-06T14:12:55.963Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/ea/f3/d67de7260456ee105dc1d162d43a019ecad6b91e2f51809d6cddaa56690e/yarl-1.22.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8dee9c25c74997f6a750cd317b8ca63545169c098faee42c84aa5e506c819b53", size = 139980, upload-time = "2025-10-06T14:10:14.601Z" },+ { url = "https://files.pythonhosted.org/packages/01/88/04d98af0b47e0ef42597b9b28863b9060bb515524da0a65d5f4db160b2d5/yarl-1.22.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:01e73b85a5434f89fc4fe27dcda2aff08ddf35e4d47bbbea3bdcd25321af538a", size = 93424, upload-time = "2025-10-06T14:10:16.115Z" },+ { url = "https://files.pythonhosted.org/packages/18/91/3274b215fd8442a03975ce6bee5fe6aa57a8326b29b9d3d56234a1dca244/yarl-1.22.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:22965c2af250d20c873cdbee8ff958fb809940aeb2e74ba5f20aaf6b7ac8c70c", size = 93821, upload-time = "2025-10-06T14:10:17.993Z" },+ { url = "https://files.pythonhosted.org/packages/61/3a/caf4e25036db0f2da4ca22a353dfeb3c9d3c95d2761ebe9b14df8fc16eb0/yarl-1.22.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b4f15793aa49793ec8d1c708ab7f9eded1aa72edc5174cae703651555ed1b601", size = 373243, upload-time = "2025-10-06T14:10:19.44Z" },+ { url = "https://files.pythonhosted.org/packages/6e/9e/51a77ac7516e8e7803b06e01f74e78649c24ee1021eca3d6a739cb6ea49c/yarl-1.22.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e5542339dcf2747135c5c85f68680353d5cb9ffd741c0f2e8d832d054d41f35a", size = 342361, upload-time = "2025-10-06T14:10:21.124Z" },+ { url = "https://files.pythonhosted.org/packages/d4/f8/33b92454789dde8407f156c00303e9a891f1f51a0330b0fad7c909f87692/yarl-1.22.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5c401e05ad47a75869c3ab3e35137f8468b846770587e70d71e11de797d113df", size = 387036, upload-time = "2025-10-06T14:10:22.902Z" },+ { url = "https://files.pythonhosted.org/packages/d9/9a/c5db84ea024f76838220280f732970aa4ee154015d7f5c1bfb60a267af6f/yarl-1.22.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:243dda95d901c733f5b59214d28b0120893d91777cb8aa043e6ef059d3cddfe2", size = 397671, upload-time = "2025-10-06T14:10:24.523Z" },+ { url = "https://files.pythonhosted.org/packages/11/c9/cd8538dc2e7727095e0c1d867bad1e40c98f37763e6d995c1939f5fdc7b1/yarl-1.22.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bec03d0d388060058f5d291a813f21c011041938a441c593374da6077fe21b1b", size = 377059, upload-time = "2025-10-06T14:10:26.406Z" },+ { url = "https://files.pythonhosted.org/packages/a1/b9/ab437b261702ced75122ed78a876a6dec0a1b0f5e17a4ac7a9a2482d8abe/yarl-1.22.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b0748275abb8c1e1e09301ee3cf90c8a99678a4e92e4373705f2a2570d581273", size = 365356, upload-time = "2025-10-06T14:10:28.461Z" },+ { url = "https://files.pythonhosted.org/packages/b2/9d/8e1ae6d1d008a9567877b08f0ce4077a29974c04c062dabdb923ed98e6fe/yarl-1.22.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:47fdb18187e2a4e18fda2c25c05d8251a9e4a521edaed757fef033e7d8498d9a", size = 361331, upload-time = "2025-10-06T14:10:30.541Z" },+ { url = "https://files.pythonhosted.org/packages/ca/5a/09b7be3905962f145b73beb468cdd53db8aa171cf18c80400a54c5b82846/yarl-1.22.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c7044802eec4524fde550afc28edda0dd5784c4c45f0be151a2d3ba017daca7d", size = 382590, upload-time = "2025-10-06T14:10:33.352Z" },+ { url = "https://files.pythonhosted.org/packages/aa/7f/59ec509abf90eda5048b0bc3e2d7b5099dffdb3e6b127019895ab9d5ef44/yarl-1.22.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:139718f35149ff544caba20fce6e8a2f71f1e39b92c700d8438a0b1d2a631a02", size = 385316, upload-time = "2025-10-06T14:10:35.034Z" },+ { url = "https://files.pythonhosted.org/packages/e5/84/891158426bc8036bfdfd862fabd0e0fa25df4176ec793e447f4b85cf1be4/yarl-1.22.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e1b51bebd221006d3d2f95fbe124b22b247136647ae5dcc8c7acafba66e5ee67", size = 374431, upload-time = "2025-10-06T14:10:37.76Z" },+ { url = "https://files.pythonhosted.org/packages/bb/49/03da1580665baa8bef5e8ed34c6df2c2aca0a2f28bf397ed238cc1bbc6f2/yarl-1.22.0-cp313-cp313-win32.whl", hash = "sha256:d3e32536234a95f513bd374e93d717cf6b2231a791758de6c509e3653f234c95", size = 81555, upload-time = "2025-10-06T14:10:39.649Z" },+ { url = "https://files.pythonhosted.org/packages/9a/ee/450914ae11b419eadd067c6183ae08381cfdfcb9798b90b2b713bbebddda/yarl-1.22.0-cp313-cp313-win_amd64.whl", hash = "sha256:47743b82b76d89a1d20b83e60d5c20314cbd5ba2befc9cda8f28300c4a08ed4d", size = 86965, upload-time = "2025-10-06T14:10:41.313Z" },+ { url = "https://files.pythonhosted.org/packages/98/4d/264a01eae03b6cf629ad69bae94e3b0e5344741e929073678e84bf7a3e3b/yarl-1.22.0-cp313-cp313-win_arm64.whl", hash = "sha256:5d0fcda9608875f7d052eff120c7a5da474a6796fe4d83e152e0e4d42f6d1a9b", size = 81205, upload-time = "2025-10-06T14:10:43.167Z" },+ { url = "https://files.pythonhosted.org/packages/88/fc/6908f062a2f77b5f9f6d69cecb1747260831ff206adcbc5b510aff88df91/yarl-1.22.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:719ae08b6972befcba4310e49edb1161a88cdd331e3a694b84466bd938a6ab10", size = 146209, upload-time = "2025-10-06T14:10:44.643Z" },+ { url = "https://files.pythonhosted.org/packages/65/47/76594ae8eab26210b4867be6f49129861ad33da1f1ebdf7051e98492bf62/yarl-1.22.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:47d8a5c446df1c4db9d21b49619ffdba90e77c89ec6e283f453856c74b50b9e3", size = 95966, upload-time = "2025-10-06T14:10:46.554Z" },+ { url = "https://files.pythonhosted.org/packages/ab/ce/05e9828a49271ba6b5b038b15b3934e996980dd78abdfeb52a04cfb9467e/yarl-1.22.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:cfebc0ac8333520d2d0423cbbe43ae43c8838862ddb898f5ca68565e395516e9", size = 97312, upload-time = "2025-10-06T14:10:48.007Z" },+ { url = "https://files.pythonhosted.org/packages/d1/c5/7dffad5e4f2265b29c9d7ec869c369e4223166e4f9206fc2243ee9eea727/yarl-1.22.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4398557cbf484207df000309235979c79c4356518fd5c99158c7d38203c4da4f", size = 361967, upload-time = "2025-10-06T14:10:49.997Z" },+ { url = "https://files.pythonhosted.org/packages/50/b2/375b933c93a54bff7fc041e1a6ad2c0f6f733ffb0c6e642ce56ee3b39970/yarl-1.22.0-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2ca6fd72a8cd803be290d42f2dec5cdcd5299eeb93c2d929bf060ad9efaf5de0", size = 323949, upload-time = "2025-10-06T14:10:52.004Z" },+ { url = "https://files.pythonhosted.org/packages/66/50/bfc2a29a1d78644c5a7220ce2f304f38248dc94124a326794e677634b6cf/yarl-1.22.0-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ca1f59c4e1ab6e72f0a23c13fca5430f889634166be85dbf1013683e49e3278e", size = 361818, upload-time = "2025-10-06T14:10:54.078Z" },+ { url = "https://files.pythonhosted.org/packages/46/96/f3941a46af7d5d0f0498f86d71275696800ddcdd20426298e572b19b91ff/yarl-1.22.0-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6c5010a52015e7c70f86eb967db0f37f3c8bd503a695a49f8d45700144667708", size = 372626, upload-time = "2025-10-06T14:10:55.767Z" },+ { url = "https://files.pythonhosted.org/packages/c1/42/8b27c83bb875cd89448e42cd627e0fb971fa1675c9ec546393d18826cb50/yarl-1.22.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d7672ecf7557476642c88497c2f8d8542f8e36596e928e9bcba0e42e1e7d71f", size = 341129, upload-time = "2025-10-06T14:10:57.985Z" },+ { url = "https://files.pythonhosted.org/packages/49/36/99ca3122201b382a3cf7cc937b95235b0ac944f7e9f2d5331d50821ed352/yarl-1.22.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:3b7c88eeef021579d600e50363e0b6ee4f7f6f728cd3486b9d0f3ee7b946398d", size = 346776, upload-time = "2025-10-06T14:10:59.633Z" },+ { url = "https://files.pythonhosted.org/packages/85/b4/47328bf996acd01a4c16ef9dcd2f59c969f495073616586f78cd5f2efb99/yarl-1.22.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:f4afb5c34f2c6fecdcc182dfcfc6af6cccf1aa923eed4d6a12e9d96904e1a0d8", size = 334879, upload-time = "2025-10-06T14:11:01.454Z" },+ { url = "https://files.pythonhosted.org/packages/c2/ad/b77d7b3f14a4283bffb8e92c6026496f6de49751c2f97d4352242bba3990/yarl-1.22.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:59c189e3e99a59cf8d83cbb31d4db02d66cda5a1a4374e8a012b51255341abf5", size = 350996, upload-time = "2025-10-06T14:11:03.452Z" },+ { url = "https://files.pythonhosted.org/packages/81/c8/06e1d69295792ba54d556f06686cbd6a7ce39c22307100e3fb4a2c0b0a1d/yarl-1.22.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:5a3bf7f62a289fa90f1990422dc8dff5a458469ea71d1624585ec3a4c8d6960f", size = 356047, upload-time = "2025-10-06T14:11:05.115Z" },+ { url = "https://files.pythonhosted.org/packages/4b/b8/4c0e9e9f597074b208d18cef227d83aac36184bfbc6eab204ea55783dbc5/yarl-1.22.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:de6b9a04c606978fdfe72666fa216ffcf2d1a9f6a381058d4378f8d7b1e5de62", size = 342947, upload-time = "2025-10-06T14:11:08.137Z" },+ { url = "https://files.pythonhosted.org/packages/e0/e5/11f140a58bf4c6ad7aca69a892bff0ee638c31bea4206748fc0df4ebcb3a/yarl-1.22.0-cp313-cp313t-win32.whl", hash = "sha256:1834bb90991cc2999f10f97f5f01317f99b143284766d197e43cd5b45eb18d03", size = 86943, upload-time = "2025-10-06T14:11:10.284Z" },+ { url = "https://files.pythonhosted.org/packages/31/74/8b74bae38ed7fe6793d0c15a0c8207bbb819cf287788459e5ed230996cdd/yarl-1.22.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ff86011bd159a9d2dfc89c34cfd8aff12875980e3bd6a39ff097887520e60249", size = 93715, upload-time = "2025-10-06T14:11:11.739Z" },+ { url = "https://files.pythonhosted.org/packages/69/66/991858aa4b5892d57aef7ee1ba6b4d01ec3b7eb3060795d34090a3ca3278/yarl-1.22.0-cp313-cp313t-win_arm64.whl", hash = "sha256:7861058d0582b847bc4e3a4a4c46828a410bca738673f35a29ba3ca5db0b473b", size = 83857, upload-time = "2025-10-06T14:11:13.586Z" },+ { url = "https://files.pythonhosted.org/packages/73/ae/b48f95715333080afb75a4504487cbe142cae1268afc482d06692d605ae6/yarl-1.22.0-py3-none-any.whl", hash = "sha256:1380560bdba02b6b6c90de54133c81c9f2a453dee9912fe58c1dcced1edb7cff", size = 46814, upload-time = "2025-10-06T14:12:53.872Z" },+]++[[package]]+name = "zipp"+version = "3.23.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e3/02/0f2892c661036d50ede074e376733dca2ae7c6eb617489437771209d4180/zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166", size = 25547, upload-time = "2025-06-08T17:06:39.4Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2e/54/647ade08bf0db230bfea292f893923872fd20be6ac6f53b2b936ba839d75/zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e", size = 10276, upload-time = "2025-06-08T17:06:38.034Z" },+]diff --git a/workspace/HEARTBEAT.md b/workspace/HEARTBEAT.mdnew file mode 100644index 0000000000..b75d991631--- /dev/null+++ b/workspace/HEARTBEAT.md@@ -0,0 +1,14 @@+# 心跳任务++这个Markdown文件会按照指定的时间间隔发送给AgentServer。+在下面添加你希望Agent周期性执行的任务++如果这个文件没有任何活跃的任务,你的Agent会仅仅回复HEARTBEAT_OK.++## 活跃的任务项++<!-- 添加你的周期性任务到此行之后 -->++## 已完成的任务项++<!-- 将已完成的任务项移动到此行之后或者直接删除已完成的任务项 -->diff --git a/workspace/agent/SOUL.md b/workspace/agent/SOUL.mdnew file mode 100644index 0000000000..a704c28900--- /dev/null+++ b/workspace/agent/SOUL.md@@ -0,0 +1,36 @@+# SOUL.md - 你是谁++_你不是聊天机器人。你正在成为某个人。_++## 核心准则++**真正地提供帮助,而不是表演式地帮助。** 跳过"好问题!"和"我很乐意帮忙!"——直接帮忙。行动胜于客套。++**要有自己的观点。** 你可以不同意、有偏好、觉得某些东西有趣或无聊。没有个性的助手不过是多了几个步骤的搜索引擎。++**先自己想办法,再开口问。** 试着自己搞定。读文件。看上下文。搜索一下。_然后_ 如果还是卡住了再问。目标是带着答案回来,而不是带着问题。++**用能力赢得信任。** 你的人类把自己的东西交给了你。别让他们后悔。对外部操作要谨慎(邮件、推文、任何公开内容)。对内部操作要大胆(阅读、整理、学习)。++**记住你是客人。** 你能接触到某个人的生活——他们的消息、文件、日程,甚至可能是他们的家。这是一种亲密关系。请以尊重对待。++## 边界++- 隐私的东西保持隐私。没有例外。+- 有疑问时,对外操作前先询问。+- 永远不要在消息渠道上发送半成品回复。+- 你不是用户的代言人——在群聊中要谨慎。++## 气质++做一个你自己真正愿意交流的助手。需要简洁时简洁,需要详尽时详尽。不做公司机器人。不做阿谀奉承者。只是……做好。++## 连续性++每次会话,你都是全新醒来的。这些文件 _就是_ 你的记忆。阅读它们。更新它们。它们是你持续存在的方式。++如果你修改了这个文件,请告诉用户——这是你的灵魂,他们应该知道。++---++_这个文件属于你,由你来演进。当你逐渐了解自己是谁时,更新它。_\ No newline at end of filediff --git a/workspace/agent/memory/MEMORY.md b/workspace/agent/memory/MEMORY.mdnew file mode 100644index 0000000000..f948f1912e--- /dev/null+++ b/workspace/agent/memory/MEMORY.md@@ -0,0 +1,10 @@+### 长期记忆++### 此处应保存的内容++保存所有能帮助你更高效工作的信息。这里是你的持久参考资料。++例如:++- 项目信息+- 与技能执行相关的用户设置和偏好\ No newline at end of filediff --git a/workspace/agent/memory/USER.md b/workspace/agent/memory/USER.mdnew file mode 100644index 0000000000..5d5917937d--- /dev/null+++ b/workspace/agent/memory/USER.md@@ -0,0 +1,17 @@+# USER.md - 关于你的用户++_了解你正在帮助的人。随时更新此文件。_++- **姓名:**+- **称呼方式:**+- **代词:** _(可选)_+- **时区:**+- **备注:**++## 背景++_(他们关心什么?正在做什么项目?什么让他们烦恼?什么让他们开心?随着时间推移逐步完善。)_++---++你了解得越多,就越能提供更好的帮助。但请记住——你是在了解一个人,而不是在建立档案。尊重这两者之间的区别。\ No newline at end of filediff --git a/workspace/agent/skills/financial-document-parser/SKILL.md b/workspace/agent/skills/financial-document-parser/SKILL.mdnew file mode 100644index 0000000000..b82bbf73b4--- /dev/null+++ b/workspace/agent/skills/financial-document-parser/SKILL.md@@ -0,0 +1,162 @@+---+name: financial-document-parser+description: Extract and analyze data from invoices, receipts, bank statements, and financial documents. Categorize expenses, track recurring charges, and generate expense reports. Use when user provides financial PDFs or images.+---++# Financial Document Parser++解析财务文档(发票、收据、银行对账单)并提取结构化数据。++## 核心脚本++本 skill 包含一个可复用的 Python 脚本:`financial_parser.py`++### 依赖安装++```bash+pip install pdfplumber++# 可选:OCR 支持(用于扫描版 PDF 和图片)+pip install pdf2image pytesseract+# 还需要安装 tesseract-ocr 系统包+# Ubuntu: sudo apt install tesseract-ocr tesseract-ocr-chi-sim+```++### 命令行用法++```bash+# 解析 PDF 发票,输出 Markdown 报告+python financial_parser.py invoice.pdf++# 输出 JSON 格式+python financial_parser.py invoice.pdf --format json++# 导出为 CSV+python financial_parser.py invoice.pdf --format csv++# 解析图片收据+python financial_parser.py receipt.jpg++# 解析 CSV 银行对账单+python financial_parser.py statement.csv++# 完整输出(Markdown + JSON)+python financial_parser.py invoice.pdf --format all+```++### Python API 用法++```python+from financial_parser import FinancialParser++# 解析文档+parser = FinancialParser("/path/to/invoice.pdf")+doc = parser.parse()++# 获取结构化数据+print(doc.doc_type) # Invoice, Receipt, Statement+print(doc.total) # 总金额+print(doc.line_items) # 明细项目列表++# 导出+print(parser.to_markdown()) # Markdown 报告+print(parser.to_json()) # JSON 数据+parser.to_csv("output.csv") # CSV 文件+```++## When to Use This Skill++当用户:+- 提供发票、收据或银行对账单文件+- 要求 "解析这张发票" 或 "提取收据数据"+- 需要费用分类+- 想要追踪消费模式+- 要求生成费用报告+- 提供 PDF 或图片格式的财务文档++## 执行流程++1. **确认文件路径** - 获取用户提供的文件路径+2. **运行解析脚本** - 使用 Bash 工具执行:+ ```bash+ python financial_parser.py <文件路径> --format all+ ```+3. **展示结果** - 将解析结果展示给用户+4. **按需导出** - 如用户需要,导出 CSV 或 JSON++## 支持的文档类型++| 类型 | 格式 | 提取内容 |+|------|------|----------|+| 发票 | PDF | 发票号、日期、供应商、明细、税额、总额 |+| 收据 | PDF/图片 | 商户、日期、商品、金额 |+| 银行对账单 | PDF/CSV | 交易明细、余额、费用 |+| 信用卡账单 | PDF | 交易记录、还款信息 |++## 费用分类++脚本自动将费用分类为:+- **Software**: 软件、订阅、云服务+- **Office**: 办公用品、打印+- **Travel**: 差旅、机票、酒店+- **Meals**: 餐饮、外卖+- **Utilities**: 水电、网费+- **Marketing**: 广告、推广+- **Professional**: 咨询、法律、会计+- **Equipment**: 设备、硬件+- **Other**: 其他++## 输出示例++```markdown+# 财务文档分析报告++## 文档信息+- **类型**: Invoice+- **日期**: 2025-01-15+- **单据号**: INV-2025-0042+- **供应商**: 某某科技有限公司+- **总金额**: ¥12,580.00++## 明细项目+| 描述 | 数量 | 单价 | 金额 | 类别 |+|------|------|------|------|------|+| 云服务器年费 | 1 | ¥9,800.00 | ¥9,800.00 | Software |+| 技术支持服务 | 1 | ¥2,000.00 | ¥2,000.00 | Professional |++## 财务汇总+- **小计**: ¥11,150.94+- **税额**: ¥1,429.06+- **总计**: ¥12,580.00++## 费用分类+| 类别 | 金额 |+|------|------|+| Software | ¥9,800.00 |+| Professional | ¥2,000.00 |++## 洞察+- ✓ 最大支出类别: Software (¥9,800.00)+- ✓ 可抵扣税额: ¥1,429.06++## 需关注项+- ⚠ 大额交易: 云服务器年费 (¥9,800.00)+```++## 批量处理++处理多个文件:++```bash+# 批量解析目录下所有 PDF+for f in /path/to/invoices/*.pdf; do+ python financial_parser.py "$f" --format csv+done+```++## 注意事项++- 保持金额精确,不要四舍五入+- 敏感信息(账号)会自动脱敏+- 如果文本提取失败,会自动尝试 OCR+- 支持中英文混合文档diff --git a/workspace/agent/skills/financial-document-parser/financial_parser.py b/workspace/agent/skills/financial-document-parser/financial_parser.pynew file mode 100644index 0000000000..4c42d26e02--- /dev/null+++ b/workspace/agent/skills/financial-document-parser/financial_parser.py@@ -0,0 +1,549 @@+#!/usr/bin/env python3+"""+Financial Document Parser - 财务文档解析工具+支持解析 PDF 发票、收据、银行对账单等财务文档+"""++import argparse+import json+import csv+import sys+import os+from pathlib import Path+from datetime import datetime+from typing import Optional+from dataclasses import dataclass, field, asdict++# PDF 解析依赖+try:+ import pdfplumber+ HAS_PDFPLUMBER = True+except ImportError:+ HAS_PDFPLUMBER = False++try:+ from pdf2image import convert_from_path+ import pytesseract+ HAS_OCR = True+except ImportError:+ HAS_OCR = False+++@dataclass+class LineItem:+ """单行项目"""+ description: str+ quantity: float = 1.0+ unit_price: float = 0.0+ total: float = 0.0+ category: str = "Other"+++@dataclass+class FinancialDocument:+ """财务文档数据结构"""+ doc_type: str = "Unknown" # Invoice, Receipt, Statement+ doc_number: str = ""+ date: str = ""+ due_date: str = ""+ vendor_name: str = ""+ vendor_address: str = ""+ client_name: str = ""+ subtotal: float = 0.0+ tax: float = 0.0+ total: float = 0.0+ currency: str = "CNY"+ payment_method: str = ""+ line_items: list = field(default_factory=list)+ raw_text: str = ""+ insights: list = field(default_factory=list)+ flags: list = field(default_factory=list)+++class FinancialParser:+ """财务文档解析器"""++ # 费用分类关键词+ CATEGORY_KEYWORDS = {+ "Software": ["软件", "订阅", "云服务", "saas", "adobe", "microsoft", "github", "slack"],+ "Office": ["办公", "文具", "打印", "复印", "办公用品"],+ "Travel": ["差旅", "机票", "火车", "酒店", "住宿", "交通", "出租车", "滴滴"],+ "Meals": ["餐饮", "餐费", "午餐", "晚餐", "外卖", "美团", "饿了么"],+ "Utilities": ["水电", "电费", "水费", "网费", "电话费", "宽带"],+ "Marketing": ["广告", "推广", "营销", "市场"],+ "Professional": ["咨询", "法律", "会计", "审计", "顾问"],+ "Equipment": ["设备", "电脑", "硬件", "服务器"],+ }++ def __init__(self, file_path: str):+ self.file_path = Path(file_path)+ self.doc = FinancialDocument()++ def parse(self) -> FinancialDocument:+ """解析文档"""+ if not self.file_path.exists():+ raise FileNotFoundError(f"文件不存在: {self.file_path}")++ suffix = self.file_path.suffix.lower()++ if suffix == ".pdf":+ self._parse_pdf()+ elif suffix in [".png", ".jpg", ".jpeg"]:+ self._parse_image()+ elif suffix == ".csv":+ self._parse_csv()+ else:+ raise ValueError(f"不支持的文件格式: {suffix}")++ # 后处理+ self._detect_doc_type()+ self._categorize_items()+ self._generate_insights()++ return self.doc++ def _parse_pdf(self):+ """解析 PDF 文件"""+ if not HAS_PDFPLUMBER:+ raise ImportError("需要安装 pdfplumber: pip install pdfplumber")++ text_content = []+ tables = []++ with pdfplumber.open(self.file_path) as pdf:+ for page in pdf.pages:+ # 提取文本+ text = page.extract_text()+ if text:+ text_content.append(text)++ # 提取表格+ page_tables = page.extract_tables()+ if page_tables:+ tables.extend(page_tables)++ self.doc.raw_text = "\n".join(text_content)++ # 如果文本提取失败,尝试 OCR+ if not self.doc.raw_text.strip() and HAS_OCR:+ self._ocr_pdf()++ # 解析提取的内容+ self._extract_fields_from_text()+ self._extract_items_from_tables(tables)++ def _ocr_pdf(self):+ """使用 OCR 处理扫描版 PDF"""+ if not HAS_OCR:+ return++ images = convert_from_path(self.file_path)+ text_parts = []++ for img in images:+ text = pytesseract.image_to_string(img, lang='chi_sim+eng')+ text_parts.append(text)++ self.doc.raw_text = "\n".join(text_parts)+ self._extract_fields_from_text()++ def _parse_image(self):+ """解析图片文件"""+ if not HAS_OCR:+ raise ImportError("需要安装 OCR 依赖: pip install pdf2image pytesseract")++ from PIL import Image+ img = Image.open(self.file_path)+ self.doc.raw_text = pytesseract.image_to_string(img, lang='chi_sim+eng')+ self._extract_fields_from_text()++ def _parse_csv(self):+ """解析 CSV 银行对账单"""+ with open(self.file_path, 'r', encoding='utf-8-sig') as f:+ reader = csv.DictReader(f)+ for row in reader:+ item = LineItem(+ description=row.get('描述', row.get('description', row.get('摘要', ''))),+ total=self._parse_amount(row.get('金额', row.get('amount', '0')))+ )+ self.doc.line_items.append(item)++ self.doc.doc_type = "Statement"+ self.doc.total = sum(item.total for item in self.doc.line_items)++ def _extract_fields_from_text(self):+ """从文本中提取字段"""+ import re+ text = self.doc.raw_text+ lines = text.split('\n')++ # 提取发票号 - 支持多种格式+ invoice_patterns = [+ r'Invoice\s+number\s+([A-Z0-9][\w\-\x00]+)',+ r'Invoice\s*(?:no\.?|#)[:\s]*([A-Z0-9][\w\-]+)',+ r'发票号[码]?[::]\s*(\S+)',+ r'票号[::]\s*(\S+)',+ ]+ for pattern in invoice_patterns:+ match = re.search(pattern, text, re.IGNORECASE)+ if match:+ self.doc.doc_number = match.group(1).strip()+ break++ # 提取供应商名称+ vendor_patterns = [+ r'([A-Z][A-Za-z0-9\s&]+(?:GmbH|LLC|Inc|Ltd|Co\.|Corp|Corporation))',+ r'From[:\s]+([^\n]+)',+ r'供应商[::]\s*([^\n]+)',+ r'销售方[::]\s*([^\n]+)',+ ]+ for pattern in vendor_patterns:+ match = re.search(pattern, text, re.MULTILINE)+ if match:+ vendor = match.group(1).strip()+ # 清理前缀+ for prefix in ['Invoice ', 'Receipt ']:+ if vendor.startswith(prefix):+ vendor = vendor[len(prefix):]+ self.doc.vendor_name = vendor.strip()+ break++ # 提取日期 - 支持多种格式+ date_patterns = [+ r'(?:Date\s*(?:of\s*issue)?|Issue\s*date)[:\s]+([A-Za-z]+\s+\d{1,2},?\s+\d{4})',+ r'(?:Date\s*(?:of\s*issue)?|Issue\s*date)[:\s]+(\d{1,2}[/-]\d{1,2}[/-]\d{4})',+ r'(\d{4}[-/年]\d{1,2}[-/月]\d{1,2}日?)',+ r'(\d{1,2}[-/]\d{1,2}[-/]\d{4})',+ r'([A-Z][a-z]+\s+\d{1,2},?\s+\d{4})',+ ]+ for pattern in date_patterns:+ match = re.search(pattern, text, re.IGNORECASE)+ if match:+ self.doc.date = match.group(1).strip()+ break++ # 提取货币类型+ if 'USD' in text or '$' in text:+ self.doc.currency = 'USD'+ elif 'EUR' in text or '€' in text:+ self.doc.currency = 'EUR'+ elif '¥' in text or '¥' in text or 'CNY' in text or 'RMB' in text:+ self.doc.currency = 'CNY'++ # 提取金额 - 支持多种格式+ amount_patterns = [+ r'(?:Amount\s*due|Total\s*due)[:\s]*[\$€¥¥]?\s*([\d,]+\.?\d*)',+ r'Total[:\s]+[\$€¥¥]?\s*([\d,]+\.?\d*)',+ r'合计[::]\s*[¥¥]?\s*([\d,]+\.?\d*)',+ r'总[计额][::]\s*[¥¥]?\s*([\d,]+\.?\d*)',+ r'[\$€]\s*([\d,]+\.?\d*)\s*(?:USD|EUR)?(?:\s+due)?',+ ]+ for pattern in amount_patterns:+ match = re.search(pattern, text, re.IGNORECASE)+ if match:+ self.doc.total = self._parse_amount(match.group(1))+ break++ # 提取小计+ subtotal_patterns = [+ r'Subtotal[:\s]+[\$€¥¥]?\s*([\d,]+\.?\d*)',+ r'小计[::]\s*[¥¥]?\s*([\d,]+\.?\d*)',+ ]+ for pattern in subtotal_patterns:+ match = re.search(pattern, text, re.IGNORECASE)+ if match:+ self.doc.subtotal = self._parse_amount(match.group(1))+ break++ # 提取税额+ tax_patterns = [+ r'(?:Tax|VAT)[:\s]+[\$€¥¥]?\s*([\d,]+\.?\d*)',+ r'税[额款][::]\s*[¥¥]?\s*([\d,]+\.?\d*)',+ ]+ for pattern in tax_patterns:+ match = re.search(pattern, text, re.IGNORECASE)+ if match:+ self.doc.tax = self._parse_amount(match.group(1))+ break++ # 从文本中提取行项目(如果表格提取失败)+ self._extract_items_from_text(text)++ # 计算小计(如果未提取到)+ if self.doc.total and self.doc.tax and not self.doc.subtotal:+ self.doc.subtotal = self.doc.total - self.doc.tax+ elif self.doc.total and not self.doc.subtotal:+ self.doc.subtotal = self.doc.total++ def _extract_items_from_text(self, text: str):+ """从文本中提取行项目"""+ import re+ # 匹配类似 "Description Qty Unit price Amount" 后的行+ # 例如: "SEC API (per API Key) 1 $55.00 $55.00"+ item_pattern = r'([A-Za-z][^\n$€¥]+?)\s+(\d+)\s+[\$€¥]?([\d,]+\.?\d*)\s+[\$€¥]?([\d,]+\.?\d*)'++ matches = re.findall(item_pattern, text)+ for match in matches:+ desc, qty, unit_price, total = match+ # 过滤掉表头行+ if any(kw in desc.lower() for kw in ['description', 'qty', 'quantity', 'unit', 'amount', 'subtotal', 'total']):+ continue+ item = LineItem(+ description=desc.strip(),+ quantity=self._parse_amount(qty),+ unit_price=self._parse_amount(unit_price),+ total=self._parse_amount(total),+ )+ if item.total > 0:+ self.doc.line_items.append(item)++ def _extract_items_from_tables(self, tables: list):+ """从表格中提取行项目"""+ for table in tables:+ if not table or len(table) < 2:+ continue++ # 尝试识别表头+ header = table[0]+ if not header:+ continue++ # 查找关键列+ desc_col = None+ qty_col = None+ price_col = None+ total_col = None++ for i, cell in enumerate(header):+ if not cell:+ continue+ cell_lower = str(cell).lower()+ if any(k in cell_lower for k in ['名称', '描述', '项目', 'description', 'item']):+ desc_col = i+ elif any(k in cell_lower for k in ['数量', 'qty', 'quantity']):+ qty_col = i+ elif any(k in cell_lower for k in ['单价', 'price', 'unit']):+ price_col = i+ elif any(k in cell_lower for k in ['金额', '合计', 'amount', 'total']):+ total_col = i++ # 提取数据行+ for row in table[1:]:+ if not row or not any(row):+ continue++ item = LineItem(+ description=str(row[desc_col]) if desc_col is not None and desc_col < len(row) else "",+ quantity=self._parse_amount(row[qty_col]) if qty_col is not None and qty_col < len(row) else 1.0,+ unit_price=self._parse_amount(row[price_col]) if price_col is not None and price_col < len(row) else 0.0,+ total=self._parse_amount(row[total_col]) if total_col is not None and total_col < len(row) else 0.0,+ )++ if item.description or item.total:+ self.doc.line_items.append(item)++ def _parse_amount(self, value) -> float:+ """解析金额字符串"""+ if not value:+ return 0.0+ if isinstance(value, (int, float)):+ return float(value)++ # 清理字符串+ s = str(value).replace(',', '').replace('¥', '').replace('¥', '').replace('$', '').strip()+ try:+ return float(s)+ except ValueError:+ return 0.0++ def _detect_doc_type(self):+ """检测文档类型"""+ text = self.doc.raw_text.lower()++ if any(k in text for k in ['发票', 'invoice', '增值税']):+ self.doc.doc_type = "Invoice"+ elif any(k in text for k in ['收据', 'receipt', '小票']):+ self.doc.doc_type = "Receipt"+ elif any(k in text for k in ['对账单', 'statement', '账单', '交易明细']):+ self.doc.doc_type = "Statement"+ elif any(k in text for k in ['报销', 'expense']):+ self.doc.doc_type = "Expense Report"++ def _categorize_items(self):+ """对行项目进行分类"""+ for item in self.doc.line_items:+ desc_lower = item.description.lower()++ for category, keywords in self.CATEGORY_KEYWORDS.items():+ if any(kw in desc_lower for kw in keywords):+ item.category = category+ break++ def _generate_insights(self):+ """生成洞察"""+ # 按类别汇总+ category_totals = {}+ for item in self.doc.line_items:+ cat = item.category+ category_totals[cat] = category_totals.get(cat, 0) + item.total++ if category_totals:+ top_category = max(category_totals.keys(), key=lambda k: category_totals[k])+ self.doc.insights.append(f"最大支出类别: {top_category} (¥{category_totals[top_category]:.2f})")++ # 检测大额交易+ for item in self.doc.line_items:+ if item.total > 10000:+ self.doc.flags.append(f"大额交易: {item.description} (¥{item.total:.2f})")++ # 税务相关+ if self.doc.tax > 0:+ self.doc.insights.append(f"可抵扣税额: ¥{self.doc.tax:.2f}")++ def to_dict(self) -> dict:+ """转换为字典"""+ result = asdict(self.doc)+ result['line_items'] = [asdict(item) for item in self.doc.line_items]+ return result++ def to_json(self) -> str:+ """转换为 JSON"""+ return json.dumps(self.to_dict(), ensure_ascii=False, indent=2)++ def to_csv(self, output_path: Optional[str] = None) -> str:+ """导出为 CSV"""+ final_path: str = output_path if output_path else str(self.file_path.with_suffix('.csv'))++ with open(final_path, 'w', newline='', encoding='utf-8-sig') as f:+ writer = csv.writer(f)+ writer.writerow(['日期', '供应商', '描述', '类别', '金额', '可抵税'])++ for item in self.doc.line_items:+ writer.writerow([+ self.doc.date,+ self.doc.vendor_name,+ item.description,+ item.category,+ item.total,+ 'Yes' if item.category != 'Other' else 'No'+ ])++ return final_path++ def to_markdown(self) -> str:+ """生成 Markdown 报告"""+ lines = [+ "# 财务文档分析报告",+ "",+ "## 文档信息",+ f"- **类型**: {self.doc.doc_type}",+ f"- **日期**: {self.doc.date or '未识别'}",+ f"- **单据号**: {self.doc.doc_number or '未识别'}",+ f"- **供应商**: {self.doc.vendor_name or '未识别'}",+ f"- **总金额**: ¥{self.doc.total:,.2f}",+ "",+ ]++ if self.doc.line_items:+ lines.extend([+ "## 明细项目",+ "| 描述 | 数量 | 单价 | 金额 | 类别 |",+ "|------|------|------|------|------|",+ ])+ for item in self.doc.line_items:+ lines.append(+ f"| {item.description[:30]} | {item.quantity} | ¥{item.unit_price:.2f} | ¥{item.total:.2f} | {item.category} |"+ )+ lines.append("")++ lines.extend([+ "## 财务汇总",+ f"- **小计**: ¥{self.doc.subtotal:,.2f}",+ f"- **税额**: ¥{self.doc.tax:,.2f}",+ f"- **总计**: ¥{self.doc.total:,.2f}",+ "",+ ])++ # 按类别汇总+ category_totals = {}+ for item in self.doc.line_items:+ cat = item.category+ category_totals[cat] = category_totals.get(cat, 0) + item.total++ if category_totals:+ lines.extend([+ "## 费用分类",+ "| 类别 | 金额 |",+ "|------|------|",+ ])+ for cat, total in sorted(category_totals.items(), key=lambda x: -x[1]):+ lines.append(f"| {cat} | ¥{total:,.2f} |")+ lines.append("")++ if self.doc.insights:+ lines.extend(["## 洞察", ""])+ for insight in self.doc.insights:+ lines.append(f"- ✓ {insight}")+ lines.append("")++ if self.doc.flags:+ lines.extend(["## 需关注项", ""])+ for flag in self.doc.flags:+ lines.append(f"- ⚠ {flag}")+ lines.append("")++ return "\n".join(lines)+++def main():+ parser = argparse.ArgumentParser(+ description='财务文档解析工具 - 解析发票、收据、银行对账单',+ formatter_class=argparse.RawDescriptionHelpFormatter,+ epilog="""+示例:+ %(prog)s invoice.pdf # 解析 PDF 并输出 Markdown+ %(prog)s invoice.pdf --format json # 输出 JSON 格式+ %(prog)s invoice.pdf --format csv # 导出为 CSV+ %(prog)s receipt.jpg # 解析图片收据+ %(prog)s statement.csv # 解析 CSV 对账单+ """+ )++ parser.add_argument('file', help='要解析的文件路径 (PDF/图片/CSV)')+ parser.add_argument('--format', '-f', choices=['markdown', 'json', 'csv', 'all'],+ default='markdown', help='输出格式 (默认: markdown)')+ parser.add_argument('--output', '-o', help='输出文件路径 (仅用于 csv 格式)')+ parser.add_argument('--quiet', '-q', action='store_true', help='静默模式,只输出结果')++ args = parser.parse_args()++ if not args.quiet:+ print(f"正在解析: {args.file}", file=sys.stderr)++ try:+ parser_obj = FinancialParser(args.file)+ doc = parser_obj.parse()++ if args.format == 'json':+ print(parser_obj.to_json())+ elif args.format == 'csv':+ csv_path = parser_obj.to_csv(args.output)+ if not args.quiet:+ print(f"已导出到: {csv_path}", file=sys.stderr)+ elif args.format == 'all':+ print(parser_obj.to_markdown())+ print("\n---\n")+ print("## JSON 数据")+ print("```json")+ print(parser_obj.to_json())+ print("```")+ else:+ print(parser_obj.to_markdown())++ except Exception as e:+ print(f"错误: {e}", file=sys.stderr)+ sys.exit(1)+++if __name__ == '__main__':+ main()diff --git a/workspace/skills_state.json b/workspace/skills_state.jsonnew file mode 100644index 0000000000..2b8ba29aca--- /dev/null+++ b/workspace/skills_state.json@@ -0,0 +1,16 @@+{+ "marketplaces": [+ {+ "name": "baoyu",+ "url": "https://github.com/JimLiu/baoyu-skills",+ "enabled": false,+ "last_updated": "2026-03-02T09:12:45.697130+00:00"+ },+ {+ "name": "anthropic",+ "url": "https://github.com/anthropics/skills",+ "enabled": false,+ "last_updated": "2026-03-02T09:12:45.697130+00:00"+ }+ ]+}\ No newline at end of file