Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
refactor(workspace): add e2b and docker workspace, and the web ui & example (#1650)
DavdGao22ac303f1be9
diff --git a/.gitignore b/.gitignoreindex 8e9705140..a84acd686 100644--- a/.gitignore+++ b/.gitignore@@ -148,4 +148,14 @@ package-lock.json*.tsbuildinfo.wireit/.angular/-uv.lock\ No newline at end of file+uv.lock++# JS/Node frontend (examples/web_ui)+*.local+.eslintcache+.vite/+npm-debug.log*+pnpm-debug.log*+yarn-debug.log*+yarn-error.log*+lerna-debug.log*\ No newline at end of filediff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex a6dadac4e..fa2041103 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -13,6 +13,10 @@ repos:- id: check-toml- id: check-docstring-first- id: check-json+ exclude: |+ (?x)^(+ .*tsconfig(\.[^.]+)?\.json+ )$- id: fix-encoding-pragma- id: detect-private-key- id: trailing-whitespacediff --git a/examples/agent_service/README.md b/examples/agent_service/README.mdindex e69de29bb..d626adee3 100644--- a/examples/agent_service/README.md+++ b/examples/agent_service/README.md@@ -0,0 +1,78 @@+# Agent Service++Agent service is a FastAPI-based, multi-tenant and multi-session service built with AgentScope 2.0.++This example demonstrates++- how to set up the agent service with Redis storage, and+- how to launch the service and its companion Web UI++Details about the agent service please refer to the [tutorial](https://docs.agentscope.io/v2/deploy/agent-service).++## Prerequisites++- Python ≥ 3.11+- Node.js ≥ 20 with `npx`+- [optional] Gaode/AMap API key in `AMAP_API_KEY` (for the `amap` MCP)++## Quickstart++Install AgentScope from PyPI or source:++```bash+uv pip install agentscope+# or+# uv pip install -e [full]+```++Install Redis and start it as backend storage:++```bash+# macOS (Homebrew)+brew install redis+brew services start redis++# Linux (systemd)+sudo apt install redis-server+sudo systemctl start redis-server++# Docker (cross-platform)+docker run --rm -p 6379:6379 redis:7+```++Start the agent service:++```bash+cd examples/agent_service++python main.py+```++Launch the Web UI in a separate terminal to experience a chat-style interface:++```bash+cd examples/web_ui/++pnpm install+# or npm install++# Run in dev mode+pnpm dev+```++After that, you can set the API endpoint `http://localhost:8000` in the Web UI and start experiencing the agent service.++<img src="https://gw.alicdn.com/imgextra/i2/O1CN01Phmg1G1brIVC8WXyU_!!6000000003518-2-tps-2938-1736.png" alt="Web UI Screenshot" width="100%">++## What Next++- You can customize the service in `main.py` by adding your own MCPs, middlewares, or workspace manager implementations.++- Experience the agent service, including+ - human-in-the-loop interactions & permission system+<img src="https://gw.alicdn.com/imgextra/i1/O1CN01vGGiBw20agWwpzmjy_!!6000000006866-2-tps-2934-1732.png" alt="Permission System" width="100%">++ - schedule tasks+<img src="https://gw.alicdn.com/imgextra/i1/O1CN01Xi3Qw71E2haKKu4z0_!!6000000000294-2-tps-2932-1738.png" alt="Schedule Tasks" width="100%">++ - and more! (stay tuned for future updates)\ No newline at end of filediff --git a/examples/agent_service/main.py b/examples/agent_service/main.pyindex ded377dde..fc2917d0c 100644--- a/examples/agent_service/main.py+++ b/examples/agent_service/main.py@@ -13,30 +13,42 @@ from agentscope.app import ()from agentscope.mcp import MCPClient, StdioMCPConfig, HttpMCPConfig++default_mcps = [+ MCPClient(+ name="browser-use",+ mcp_config=StdioMCPConfig(+ command="npx",+ args=["@playwright/mcp@latest"],+ ),+ is_stateful=True,+ ),+]++if os.getenv("AMAP_API_KEY"):+ default_mcps.append(+ MCPClient(+ name="amap",+ mcp_config=HttpMCPConfig(+ url=f"https://mcp.amap.com/mcp?key="+ f"{os.environ['AMAP_API_KEY']}",+ ),+ is_stateful=False,+ ),+ )+app = create_app(RedisStorage(- # connection_pool=fakeredis.aioredis.FakeRedis().connection_pool,+ host="localhost",+ port=6379,),workspace_manager=LocalWorkspaceManager(- basedir="/Users/david/Documents/Python/agents/agentscope_2/workdir",- default_mcps=[- MCPClient(- name="browser-use",- mcp_config=StdioMCPConfig(- command="npx",- args=["install @playwright/browser-use"],- ),- is_stateful=True,- ),- MCPClient(- name="amap",- mcp_config=HttpMCPConfig(- url=f"https://mcp.amap.com/mcp?key="- f"{os.environ['GAODE_API_KEY']}",- ),- is_stateful=False,- ),- ],+ basedir=os.path.join(+ os.path.dirname(os.path.abspath(__file__)),+ "workspaces",+ ),+ # The default MCP servers that will be added into the workspace+ default_mcps=default_mcps,),extra_middlewares=[Middleware(@@ -48,7 +60,9 @@ app = create_app(],)+if __name__ == "__main__":+ # Start the serviceuvicorn.run("main:app",host="0.0.0.0",diff --git a/examples/web_ui/.gitignore b/examples/web_ui/.gitignorenew file mode 100644index 000000000..6f6850afc--- /dev/null+++ b/examples/web_ui/.gitignore@@ -0,0 +1,42 @@+/tmp+/out-tsc++node_modules+npm-debug.log*+yarn-debug.log*+yarn-error.log*+/.pnp+.pnp.js++.vscode/*++# OS files+.DS_Store++dist+build+out+.eslintcache+*.log*++.env+.env.*+__pycache__/+*.db+*.sqlite+*.sqlite3++.idea/+.vscode+*.suo+*.ntvs*+*.njsproj+*.sln+*.sw?++# Mintlify+docs/.mintlify+docs/node_modules+docs/.next+docs/.cache+docs/api-reference/generated\ No newline at end of filediff --git a/examples/web_ui/.husky/pre-commit b/examples/web_ui/.husky/pre-commitnew file mode 100644index 000000000..2312dc587--- /dev/null+++ b/examples/web_ui/.husky/pre-commit@@ -0,0 +1 @@+npx lint-stageddiff --git a/examples/web_ui/.prettierignore b/examples/web_ui/.prettierignorenew file mode 100644index 000000000..823768851--- /dev/null+++ b/examples/web_ui/.prettierignore@@ -0,0 +1,38 @@+# Dependencies+node_modules+pnpm-lock.yaml++# Build outputs+dist+build+.next+out++# Cache+.cache+.turbo+.vite++# Logs+*.log+logs++# Environment+.env+.env.*++# IDE+.vscode+.idea++# OS+.DS_Store+Thumbs.db++# Generated files+coverage+*.min.js+*.min.css++# Claude+.claudediff --git a/examples/web_ui/.prettierrc b/examples/web_ui/.prettierrcnew file mode 100644index 000000000..b0d954cde--- /dev/null+++ b/examples/web_ui/.prettierrc@@ -0,0 +1,10 @@+{+ "useTabs": true,+ "tabWidth": 4,+ "singleQuote": true,+ "semi": true,+ "trailingComma": "all",+ "printWidth": 100,+ "bracketSpacing": true,+ "arrowParens": "always"+}diff --git a/examples/web_ui/backend/package.json b/examples/web_ui/backend/package.jsonnew file mode 100644index 000000000..322febc08--- /dev/null+++ b/examples/web_ui/backend/package.json@@ -0,0 +1,22 @@+{+ "name": "backend",+ "version": "1.0.0",+ "private": true,+ "scripts": {+ "dev": "nodemon --watch src --ext ts --exec ts-node src/index.ts",+ "build": "tsc",+ "start": "node dist/index.js"+ },+ "dependencies": {+ "express": "^4.19.2",+ "cors": "^2.8.5"+ },+ "devDependencies": {+ "@types/express": "^4.17.21",+ "@types/cors": "^2.8.17",+ "@types/node": "^20.14.0",+ "nodemon": "^3.1.4",+ "ts-node": "^10.9.2",+ "typescript": "^5.5.2"+ }+}diff --git a/examples/web_ui/backend/src/index.ts b/examples/web_ui/backend/src/index.tsnew file mode 100644index 000000000..ecb854d0c--- /dev/null+++ b/examples/web_ui/backend/src/index.ts@@ -0,0 +1,16 @@+import express from 'express';+import cors from 'cors';++const app = express();+const PORT = process.env.PORT || 3000;++app.use(cors());+app.use(express.json());++app.get('/api/health', (_req, res) => {+ res.json({ status: 'ok' });+});++app.listen(PORT, () => {+ console.log(`Server running on http://localhost:${PORT}`);+});diff --git a/examples/web_ui/backend/tsconfig.json b/examples/web_ui/backend/tsconfig.jsonnew file mode 100644index 000000000..2f7d84efd--- /dev/null+++ b/examples/web_ui/backend/tsconfig.json@@ -0,0 +1,16 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "module": "commonjs",+ "lib": ["ES2020"],+ "outDir": "./dist",+ "rootDir": "./src",+ "strict": true,+ "esModuleInterop": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "resolveJsonModule": true+ },+ "include": ["src"],+ "exclude": ["node_modules", "dist"]+}diff --git a/examples/web_ui/frontend/README.md b/examples/web_ui/frontend/README.mdnew file mode 100644index 000000000..c2d615ffd--- /dev/null+++ b/examples/web_ui/frontend/README.md@@ -0,0 +1,73 @@+# React + TypeScript + Vite++This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.++Currently, two official plugins are available:++- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)+- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)++## React Compiler++The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).++## Expanding the ESLint configuration++If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:++```js+export default defineConfig([+ globalIgnores(['dist']),+ {+ files: ['**/*.{ts,tsx}'],+ extends: [+ // Other configs...++ // Remove tseslint.configs.recommended and replace with this+ tseslint.configs.recommendedTypeChecked,+ // Alternatively, use this for stricter rules+ tseslint.configs.strictTypeChecked,+ // Optionally, add this for stylistic rules+ tseslint.configs.stylisticTypeChecked,++ // Other configs...+ ],+ languageOptions: {+ parserOptions: {+ project: ['./tsconfig.node.json', './tsconfig.app.json'],+ tsconfigRootDir: import.meta.dirname,+ },+ // other options...+ },+ },+]);+```++You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:++```js+// eslint.config.js+import reactX from 'eslint-plugin-react-x';+import reactDom from 'eslint-plugin-react-dom';++export default defineConfig([+ globalIgnores(['dist']),+ {+ files: ['**/*.{ts,tsx}'],+ extends: [+ // Other configs...+ // Enable lint rules for React+ reactX.configs['recommended-typescript'],+ // Enable lint rules for React DOM+ reactDom.configs.recommended,+ ],+ languageOptions: {+ parserOptions: {+ project: ['./tsconfig.node.json', './tsconfig.app.json'],+ tsconfigRootDir: import.meta.dirname,+ },+ // other options...+ },+ },+]);+```diff --git a/examples/web_ui/frontend/components.json b/examples/web_ui/frontend/components.jsonnew file mode 100644index 000000000..c18236d46--- /dev/null+++ b/examples/web_ui/frontend/components.json@@ -0,0 +1,25 @@+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "radix-nova",+ "rsc": false,+ "tsx": true,+ "tailwind": {+ "config": "",+ "css": "src/index.css",+ "baseColor": "neutral",+ "cssVariables": true,+ "prefix": ""+ },+ "iconLibrary": "lucide",+ "rtl": false,+ "aliases": {+ "components": "@/components",+ "utils": "@/lib/utils",+ "ui": "@/components/ui",+ "lib": "@/lib",+ "hooks": "@/hooks"+ },+ "menuColor": "default",+ "menuAccent": "subtle",+ "registries": {}+}diff --git a/examples/web_ui/frontend/eslint.config.js b/examples/web_ui/frontend/eslint.config.jsnew file mode 100644index 000000000..8ae0d0ede--- /dev/null+++ b/examples/web_ui/frontend/eslint.config.js@@ -0,0 +1,53 @@+import js from '@eslint/js';+import globals from 'globals';+import importX from 'eslint-plugin-import-x';+import reactHooks from 'eslint-plugin-react-hooks';+import reactRefresh from 'eslint-plugin-react-refresh';+import tseslint from 'typescript-eslint';+import { defineConfig, globalIgnores } from 'eslint/config';++export default defineConfig([+ globalIgnores(['dist']),+ {+ files: ['**/*.{ts,tsx}'],+ plugins: {+ 'import-x': importX,+ },+ extends: [+ js.configs.recommended,+ tseslint.configs.recommended,+ reactHooks.configs.flat.recommended,+ reactRefresh.configs.vite,+ ],+ languageOptions: {+ globals: globals.browser,+ },+ rules: {+ 'import-x/order': [+ 'error',+ {+ groups: ['builtin', 'external', 'internal', 'index'],+ 'newlines-between': 'always',+ alphabetize: {+ order: 'asc',+ caseInsensitive: true,+ },+ },+ ],+ 'react-hooks/set-state-in-effect': 'off',+ 'react-refresh/only-export-components': 'warn',+ '@typescript-eslint/no-unused-expressions': 'off',+ '@typescript-eslint/only-throw-error': 'off',+ 'preserve-caught-error': 'off',+ },+ },+ {+ files: ['**/components/ui/**/*.{ts,tsx}'],+ rules: {+ '@typescript-eslint/no-explicit-any': 'off',+ '@typescript-eslint/no-unused-vars': 'off',+ 'react-refresh/only-export-components': 'off',+ 'import-x/order': 'off',+ },+ },+]);diff --git a/examples/web_ui/frontend/index.html b/examples/web_ui/frontend/index.htmlnew file mode 100644index 000000000..4f4a319dc--- /dev/null+++ b/examples/web_ui/frontend/index.html@@ -0,0 +1,13 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <link rel="icon" type="image/svg+xml" href="/agentscope.svg" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <title>AgentScope</title>+ </head>+ <body>+ <div id="root"></div>+ <script type="module" src="/src/main.tsx"></script>+ </body>+</html>diff --git a/examples/web_ui/frontend/package.json b/examples/web_ui/frontend/package.jsonnew file mode 100644index 000000000..7b9d191a5--- /dev/null+++ b/examples/web_ui/frontend/package.json@@ -0,0 +1,61 @@+{+ "name": "frontend",+ "private": true,+ "version": "0.0.0",+ "type": "module",+ "scripts": {+ "dev": "vite",+ "build": "tsc -b && vite build",+ "lint": "eslint .",+ "lint:fix": "eslint . --fix",+ "preview": "vite preview"+ },+ "dependencies": {+ "@agentscope-ai/agentscope": "^0.0.5",+ "@fontsource-variable/geist": "^5.2.8",+ "@tailwindcss/vite": "^4.3.0",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1",+ "cron-parser": "^5.5.0",+ "date-fns": "^4.1.0",+ "framer-motion": "^12.40.0",+ "i18next": "^26.2.0",+ "i18next-browser-languagedetector": "^8.2.1",+ "lucide": "^1.3.0",+ "lucide-react": "^1.16.0",+ "mime-types": "^3.0.2",+ "next-themes": "^0.4.6",+ "onborda": "^1.2.5",+ "radix-ui": "^1.4.3",+ "react": "^19.2.6",+ "react-day-picker": "^10.0.1",+ "react-dom": "^19.2.6",+ "react-i18next": "^17.0.8",+ "react-markdown": "^10.1.0",+ "react-router-dom": "^7.15.1",+ "remark-gfm": "^4.0.1",+ "shadcn": "^4.7.0",+ "sonner": "^2.0.7",+ "tailwind-merge": "^3.6.0",+ "tailwindcss": "^4.3.0",+ "tw-animate-css": "^1.4.0",+ "vaul": "^1.1.2"+ },+ "devDependencies": {+ "@eslint/js": "^10.0.1",+ "@types/mime-types": "^3.0.1",+ "@types/node": "^24.12.3",+ "@types/react": "^19.2.14",+ "@types/react-dom": "^19.2.3",+ "@vitejs/plugin-react": "^6.0.1",+ "eslint": "^10.3.0",+ "eslint-plugin-import-x": "^4.16.2",+ "eslint-plugin-react-hooks": "^7.1.1",+ "eslint-plugin-react-refresh": "^0.5.2",+ "globals": "^17.6.0",+ "typescript": "~6.0.2",+ "typescript-eslint": "^8.59.2",+ "vite": "^8.0.12",+ "vite-plugin-svgr": "^5.2.0"+ }+}diff --git a/examples/web_ui/frontend/public/agentscope.svg b/examples/web_ui/frontend/public/agentscope.svgnew file mode 100644index 000000000..e781d9c87--- /dev/null+++ b/examples/web_ui/frontend/public/agentscope.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="550" height="550" viewBox="0 0 550 550"><defs><linearGradient x1="0.01500389538705349" y1="0.4831196665763855" x2="0.9407116114637801" y2="0.3076102348892569" id="master_svg0_8_2390"><stop offset="0%" stop-color="#01C5FF" stop-opacity="1"/><stop offset="100%" stop-color="#019DFB" stop-opacity="1"/></linearGradient><linearGradient x1="0.21085502207279205" y1="0.38703426718711853" x2="0.9523109409029081" y2="0.390888421140005" id="master_svg1_8_1638"><stop offset="0%" stop-color="#4701EF" stop-opacity="1"/><stop offset="100%" stop-color="#395EEF" stop-opacity="1"/></linearGradient></defs><g><g></g><g><g><path d="M275.4998779296875,211.25Q275.4998779296875,279.5,373.4999779296875,310.5Q338.4998779296875,287.5,343.9998779296875,232Q344.4969779296875,227.19400000000002,345.9004779296875,222.498Q352.96577792968753,198.857,382.9998779296875,178L415.9998779296875,193.5L469.7738779296875,193.5C477.0958779296875,193.5,481.9218779296875,185.91559999999998,478.3148779296875,179.543Q441.5068779296875,114.5,372.9998779296875,114.5C343.9998779296875,114.5,275.4998779296875,143,275.4998779296875,211.25Z" fill="url(#master_svg0_8_2390)" fill-opacity="1"/></g><g><path d="M343.9999162890625,231.99999791015625Q337.9999162890625,287.5000079101562,373.5000462890625,310.5000079101562L433.4998462890625,333.00010791015626Q449.4994462890625,314.2500079101562,449.4994462890625,295.5000079101562Q449.4994462890625,276.7500079101562,433.4998462890625,258.0000079101562L345.9004862890625,222.49810791015625Q344.4970462890625,227.19412791015625,343.9999162890625,231.99999791015625Z" fill="#0064FC" fill-opacity="1"/></g><g><path d="M122.9998779296875,351.5C124.3900479296875,350.6567,125.7727179296875,349.8325,127.1479779296875,349.0269Q125.0392779296875,350.2098,122.9998779296875,351.5ZM127.1479779296875,349.0269Q150.3716779296875,336,181.9998779296875,336C186.2692779296875,335.7983,190.4211779296875,335.9808,194.4638779296875,336.502C250.5488779296875,343.7327,285.6218779296875,416.14300000000003,321.9998779296875,432Q350.1248779296875,444,377.9998779296875,444Q405.8748779296875,444,433.4998779296875,432Q489.9998779296875,400,489.9998779296875,344.5Q489.9998779296875,283,433.4998779296875,258Q449.4998779296875,276.75,449.4998779296875,295.5Q449.4998779296875,314.25,433.4998779296875,333C394.3168779296875,374.257,360.65987792968747,359.947,319.4498779296875,342.4251C286.9518779296875,328.6077,249.7568779296875,312.7935,201.4527779296875,320.6594C179.2413779296875,324.2763,154.6808779296875,332.9,127.1479779296875,349.0269Z" fill="url(#master_svg1_8_1638)" fill-opacity="1"/></g><g><path d="M61,437.99973876953123L133.8305,437.99973876953123C141.5661,437.99973876953123,148.608,433.53913876953123,151.9131,426.54513876953126L194.464,336.50202976953125C190.421,335.98083496953126,186.269,335.79829376953126,182,335.99999996953125Q147.4999,335.99999996953125,122.9999,351.5000387695313C93.5,373.5000387695313,87,387.0000387695313,61,437.99973876953123Z" fill="#0064FC" fill-opacity="1"/></g><g><path d="M61,438.00038301849366C87,387.00038301849366,93.5,373.50038301849366,122.9999,351.50038301849366C152.2215,333.77438301849367,178.132,324.45738301849366,201.453,320.65938301849366L256.597,207.04148301849364C259.081,201.92438301849364,259.26800000000003,195.99188301849364,257.11199999999997,190.72838301849367L227.948,119.52337301849366C225.653,113.91851301849366,217.805,113.67667301849366,215.169,119.12954301849365L61,438.00038301849366Z" fill="#01C8FF" fill-opacity="1"/></g></g></g></svg>\ No newline at end of filediff --git a/examples/web_ui/frontend/src/App.css b/examples/web_ui/frontend/src/App.cssnew file mode 100644index 000000000..5a05fcc70--- /dev/null+++ b/examples/web_ui/frontend/src/App.css@@ -0,0 +1,145 @@+.counter {+ font-size: 16px;+ padding: 5px 10px;+ border-radius: 5px;+ color: var(--accent);+ background: var(--accent-bg);+ border: 2px solid transparent;+ transition: border-color 0.3s;+ margin-bottom: 24px;++ &:hover {+ border-color: var(--accent-border);+ }+ &:focus-visible {+ outline: 2px solid var(--accent);+ outline-offset: 2px;+ }+}++#center {+ display: flex;+ flex-direction: column;+ gap: 25px;+ place-content: center;+ place-items: center;+ flex-grow: 1;++ @media (max-width: 1024px) {+ padding: 32px 20px 24px;+ gap: 18px;+ }+}++#next-steps {+ display: flex;+ border-top: 1px solid var(--border);+ text-align: left;++ & > div {+ flex: 1 1 0;+ padding: 32px;+ @media (max-width: 1024px) {+ padding: 24px 20px;+ }+ }++ .icon {+ margin-bottom: 16px;+ width: 22px;+ height: 22px;+ }++ @media (max-width: 1024px) {+ flex-direction: column;+ text-align: center;+ }+}++#docs {+ border-right: 1px solid var(--border);++ @media (max-width: 1024px) {+ border-right: none;+ border-bottom: 1px solid var(--border);+ }+}++#next-steps ul {+ list-style: none;+ padding: 0;+ display: flex;+ gap: 8px;+ margin: 32px 0 0;++ .logo {+ height: 18px;+ }++ a {+ color: var(--text-h);+ font-size: 16px;+ border-radius: 6px;+ background: var(--social-bg);+ display: flex;+ padding: 6px 12px;+ align-items: center;+ gap: 8px;+ text-decoration: none;+ transition: box-shadow 0.3s;++ &:hover {+ box-shadow: var(--shadow);+ }+ .button-icon {+ height: 18px;+ width: 18px;+ }+ }++ @media (max-width: 1024px) {+ margin-top: 20px;+ flex-wrap: wrap;+ justify-content: center;++ li {+ flex: 1 1 calc(50% - 8px);+ }++ a {+ width: 100%;+ justify-content: center;+ box-sizing: border-box;+ }+ }+}++#spacer {+ height: 88px;+ border-top: 1px solid var(--border);+ @media (max-width: 1024px) {+ height: 48px;+ }+}++.ticks {+ position: relative;+ width: 100%;++ &::before,+ &::after {+ content: '';+ position: absolute;+ top: -4.5px;+ border: 5px solid transparent;+ }++ &::before {+ left: 0;+ border-left-color: var(--border);+ }+ &::after {+ right: 0;+ border-right-color: var(--border);+ }+}diff --git a/examples/web_ui/frontend/src/App.tsx b/examples/web_ui/frontend/src/App.tsxnew file mode 100644index 000000000..5cf918fd1--- /dev/null+++ b/examples/web_ui/frontend/src/App.tsx@@ -0,0 +1,64 @@+import { Onborda, OnbordaProvider } from 'onborda';+import { useMemo, useState } from 'react';+import { createBrowserRouter, RouterProvider, useNavigate } from 'react-router-dom';+import { Toaster } from 'sonner';++import { AppLayout } from '@/components/layout/AppLayout';+import { buildChatTour } from '@/components/tour/chatTourSteps';+import { TourCard } from '@/components/tour/TourCard';+import { useTranslation } from '@/i18n/useI18n';+import { ChatPage } from '@/pages/chat';+import { CredentialPage } from '@/pages/credential';+import { SchedulePage } from '@/pages/schedule';+import { SetupPage } from '@/pages/setup';++function SetupPageRoute() {+ const navigate = useNavigate();+ return (+ <>+ <div className="h-screen">+ <SetupPage onComplete={() => navigate('/')} />+ </div>+ <Toaster richColors position="top-right" />+ </>+ );+}++const router = createBrowserRouter([+ {+ element: <AppLayout />,+ children: [+ { path: '/', element: <ChatPage /> },+ { path: '/chat/:agentId/:sessionId', element: <ChatPage /> },+ { path: '/schedule', element: <SchedulePage /> },+ { path: '/credential', element: <CredentialPage /> },+ ],+ },+ { path: '/setup', element: <SetupPageRoute /> },+]);++function App() {+ const { t } = useTranslation();+ const [setupComplete, setSetupComplete] = useState(() => !!localStorage.getItem('server_url'));+ const tours = useMemo(() => [buildChatTour(t)], [t]);++ if (!setupComplete) {+ return <SetupPage onComplete={() => setSetupComplete(true)} />;+ }++ return (+ <OnbordaProvider>+ <Onborda+ steps={tours}+ cardComponent={TourCard}+ shadowOpacity="0.6"+ cardTransition={{ type: 'spring', duration: 0.4 }}+ >+ <RouterProvider router={router} />+ <Toaster richColors position="top-right" />+ </Onborda>+ </OnbordaProvider>+ );+}++export default App;diff --git a/examples/web_ui/frontend/src/api/agent.ts b/examples/web_ui/frontend/src/api/agent.tsnew file mode 100644index 000000000..86036631d--- /dev/null+++ b/examples/web_ui/frontend/src/api/agent.ts@@ -0,0 +1,19 @@+import { client } from './client';+import type {+ AgentListResponse,+ AgentRecord,+ CreateAgentRequest,+ CreateAgentResponse,+ UpdateAgentRequest,+} from './types';++export const agentApi = {+ list: () => client.get<AgentListResponse>('/agent/'),++ create: (body: CreateAgentRequest) => client.post<CreateAgentResponse>('/agent/', body),++ update: (agentId: string, body: UpdateAgentRequest) =>+ client.patch<AgentRecord>(`/agent/${agentId}`, body),++ delete: (agentId: string) => client.delete(`/agent/${agentId}`),+};diff --git a/examples/web_ui/frontend/src/api/chat.ts b/examples/web_ui/frontend/src/api/chat.tsnew file mode 100644index 000000000..4bb4f6dc7--- /dev/null+++ b/examples/web_ui/frontend/src/api/chat.ts@@ -0,0 +1,28 @@+import { client } from './client';+import type { AgentEvent, ChatRequest } from './types';++export const chatApi = {+ stream: async function* (body: ChatRequest, signal?: AbortSignal): AsyncGenerator<AgentEvent> {+ const res = await client.stream('/chat/', { method: 'POST', body, signal });++ const reader = res.body!.getReader();+ const decoder = new TextDecoder();+ let buffer = '';++ while (true) {+ const { done, value } = await reader.read();+ if (done) break;++ buffer += decoder.decode(value, { stream: true });+ const lines = buffer.split('\n');+ buffer = lines.pop() ?? '';++ for (const line of lines) {+ if (line.startsWith('data: ')) {+ const json = line.slice(6).trim();+ if (json) yield JSON.parse(json) as AgentEvent;+ }+ }+ }+ },+};diff --git a/examples/web_ui/frontend/src/api/client.ts b/examples/web_ui/frontend/src/api/client.tsnew file mode 100644index 000000000..e8d071472--- /dev/null+++ b/examples/web_ui/frontend/src/api/client.ts@@ -0,0 +1,111 @@+import { toast } from 'sonner';++export const getBaseUrl = () => localStorage.getItem('server_url') ?? '';+export const getUserId = () => localStorage.getItem('username') ?? '';++/**+ * Structured error thrown for non-2xx HTTP responses.+ * `message` contains the human-readable detail extracted from the backend.+ */+export class ApiError extends Error {+ readonly status: number;+ readonly detail: string;++ constructor(status: number, detail: string) {+ super(detail);+ this.name = 'ApiError';+ this.status = status;+ this.detail = detail;+ }+}++interface RequestOptions {+ method?: string;+ body?: unknown;+ params?: Record<string, string>;+ /** When true, suppresses the automatic error toast. Useful when the caller shows its own inline error UI. */+ silent?: boolean;+}++function buildHeaders(hasBody: boolean): Record<string, string> {+ const headers: Record<string, string> = { 'X-User-ID': getUserId() };+ if (hasBody) headers['Content-Type'] = 'application/json';+ return headers;+}++/** Parse the response body and extract the `detail` field if the backend returned JSON. */+async function extractErrorDetail(res: Response): Promise<string> {+ const text = await res.text();+ try {+ const json = JSON.parse(text) as { detail?: unknown };+ if (typeof json.detail === 'string') return json.detail;+ if (json.detail !== undefined) return JSON.stringify(json.detail);+ } catch {+ // not JSON – fall through+ }+ return text || res.statusText;+}++async function request<T>(path: string, options: RequestOptions = {}): Promise<T> {+ const { method = 'GET', body, params, silent = false } = options;+ const url = new URL(path, getBaseUrl());+ if (params) {+ Object.entries(params).forEach(([k, v]) => url.searchParams.set(k, v));+ }++ const res = await fetch(url.toString(), {+ method,+ headers: buildHeaders(body !== undefined),+ body: body ? JSON.stringify(body) : undefined,+ });++ if (!res.ok) {+ const detail = await extractErrorDetail(res);+ const error = new ApiError(res.status, detail);+ if (!silent) toast.error(detail);+ throw error;+ }++ if (res.status === 204) return undefined as T;+ return res.json() as Promise<T>;+}++async function streamRequest(+ path: string,+ options: RequestOptions & { signal?: AbortSignal } = {},+): Promise<Response> {+ const { method = 'GET', body, params, signal, silent = false } = options;+ const url = new URL(path, getBaseUrl());+ if (params) {+ Object.entries(params).forEach(([k, v]) => url.searchParams.set(k, v));+ }++ const res = await fetch(url.toString(), {+ method,+ headers: buildHeaders(body !== undefined),+ body: body ? JSON.stringify(body) : undefined,+ signal,+ });++ if (!res.ok) {+ const detail = await extractErrorDetail(res);+ const error = new ApiError(res.status, detail);+ if (!silent) toast.error(detail);+ throw error;+ }++ return res;+}++export const client = {+ get: <T>(path: string, params?: Record<string, string>) =>+ request<T>(path, { method: 'GET', params }),+ post: <T>(path: string, body?: unknown, params?: Record<string, string>) =>+ request<T>(path, { method: 'POST', body, params }),+ patch: <T>(path: string, body?: unknown, params?: Record<string, string>) =>+ request<T>(path, { method: 'PATCH', body, params }),+ delete: <T = void>(path: string, params?: Record<string, string>) =>+ request<T>(path, { method: 'DELETE', params }),+ stream: (path: string, options?: RequestOptions & { signal?: AbortSignal }) =>+ streamRequest(path, options),+};diff --git a/examples/web_ui/frontend/src/api/credential.ts b/examples/web_ui/frontend/src/api/credential.tsnew file mode 100644index 000000000..49e486d5b--- /dev/null+++ b/examples/web_ui/frontend/src/api/credential.ts@@ -0,0 +1,23 @@+import { client } from './client';+import type {+ CreateCredentialRequest,+ CreateCredentialResponse,+ CredentialListResponse,+ CredentialRecord,+ CredentialSchemasResponse,+ UpdateCredentialRequest,+} from './types';++export const credentialApi = {+ list: () => client.get<CredentialListResponse>('/credential/'),++ schemas: () => client.get<CredentialSchemasResponse>('/credential/schemas'),++ create: (body: CreateCredentialRequest) =>+ client.post<CreateCredentialResponse>('/credential/', body),++ update: (credentialId: string, body: UpdateCredentialRequest) =>+ client.patch<CredentialRecord>(`/credential/${credentialId}`, body),++ delete: (credentialId: string) => client.delete(`/credential/${credentialId}`),+};diff --git a/examples/web_ui/frontend/src/api/index.ts b/examples/web_ui/frontend/src/api/index.tsnew file mode 100644index 000000000..810b20143--- /dev/null+++ b/examples/web_ui/frontend/src/api/index.ts@@ -0,0 +1,8 @@+export * from './types';+export { agentApi } from './agent';+export { sessionApi } from './session';+export { credentialApi } from './credential';+export { chatApi } from './chat';+export { workspaceApi } from './workspace';+export { scheduleApi } from './schedule';+export { modelApi } from './model';diff --git a/examples/web_ui/frontend/src/api/model.ts b/examples/web_ui/frontend/src/api/model.tsnew file mode 100644index 000000000..cf5abb15d--- /dev/null+++ b/examples/web_ui/frontend/src/api/model.ts@@ -0,0 +1,6 @@+import { client } from './client';+import type { ListModelResponse } from './types';++export const modelApi = {+ list: (provider: string) => client.get<ListModelResponse>('/model/', { provider }),+};diff --git a/examples/web_ui/frontend/src/api/schedule.ts b/examples/web_ui/frontend/src/api/schedule.tsnew file mode 100644index 000000000..83c576d97--- /dev/null+++ b/examples/web_ui/frontend/src/api/schedule.ts@@ -0,0 +1,24 @@+import { client } from './client';+import type {+ CreateScheduleRequest,+ CreateScheduleResponse,+ ScheduleListResponse,+ ScheduleRecord,+ SessionListResponse,+ UpdateScheduleRequest,+} from './types';++export const scheduleApi = {+ list: () => client.get<ScheduleListResponse>('/schedule/'),++ create: (body: CreateScheduleRequest) =>+ client.post<CreateScheduleResponse>('/schedule/', body),++ update: (scheduleId: string, body: UpdateScheduleRequest) =>+ client.patch<ScheduleRecord>(`/schedule/${scheduleId}`, body),++ delete: (scheduleId: string) => client.delete(`/schedule/${scheduleId}`),++ listSessions: (scheduleId: string) =>+ client.get<SessionListResponse>(`/schedule/${scheduleId}/sessions`),+};diff --git a/examples/web_ui/frontend/src/api/session.ts b/examples/web_ui/frontend/src/api/session.tsnew file mode 100644index 000000000..aa8162a9a--- /dev/null+++ b/examples/web_ui/frontend/src/api/session.ts@@ -0,0 +1,33 @@+import { client } from './client';+import type {+ CreateSessionRequest,+ CreateSessionResponse,+ SessionListResponse,+ SessionRecord,+ UpdateSessionRequest,+ Msg,+} from './types';++export interface MessagesResponse {+ messages: Msg[];+ is_running: boolean;+}++export const sessionApi = {+ list: (agentId: string) => client.get<SessionListResponse>('/sessions/', { agent_id: agentId }),++ create: (body: CreateSessionRequest) => client.post<CreateSessionResponse>('/sessions/', body),++ update: (sessionId: string, agentId: string, body: UpdateSessionRequest) =>+ client.patch<SessionRecord>(`/sessions/${sessionId}`, body, { agent_id: agentId }),++ delete: (sessionId: string, agentId: string) =>+ client.delete(`/sessions/${sessionId}`, { agent_id: agentId }),++ messages: (sessionId: string, agentId: string, offset = 0, limit = 50) =>+ client.get<MessagesResponse>(`/sessions/${sessionId}/messages`, {+ agent_id: agentId,+ offset: String(offset),+ limit: String(limit),+ }),+};diff --git a/examples/web_ui/frontend/src/api/types.ts b/examples/web_ui/frontend/src/api/types.tsnew file mode 100644index 000000000..2b69405b7--- /dev/null+++ b/examples/web_ui/frontend/src/api/types.ts@@ -0,0 +1,307 @@+// ─── Shared ───────────────────────────────────────────────────────────────────++export interface RecordBase {+ id: string;+ created_at: string;+ updated_at: string;+}++export interface ChatModelConfig {+ type: string;+ credential_id: string;+ model: string;+ parameters: Record<string, unknown>;+}++export interface ContextConfig {+ trigger_ratio?: number;+ reserve_ratio?: number;+ tool_result_limit?: number;+ compression_prompt?: string;+ summary_template?: string;+}++export interface ReActConfig {+ max_iters?: number;+ stop_on_reject?: boolean;+}++// ─── Agent ────────────────────────────────────────────────────────────────────++export interface AgentData {+ id: string;+ name: string;+ system_prompt: string;+ context_config: ContextConfig;+ react_config: ReActConfig;+}++export interface AgentRecord extends RecordBase {+ user_id: string;+ data: AgentData;+}++export interface CreateAgentRequest {+ name: string;+ system_prompt?: string;+ context_config?: ContextConfig;+ react_config?: ReActConfig;+}++export interface CreateAgentResponse {+ agent_id: string;+}++export interface UpdateAgentRequest {+ name?: string;+ system_prompt?: string;+ context_config?: ContextConfig;+ react_config?: ReActConfig;+}++export interface AgentListResponse {+ agents: AgentRecord[];+ total: number;+}++// ─── Session ──────────────────────────────────────────────────────────────────++export type SessionSource = 'user' | 'schedule';++export interface SessionConfig {+ name: string;+ chat_model_config: ChatModelConfig;+ workspace_id: string;+}++// TODO: update when Python side is finalised+export type AgentState = Record<string, unknown>;++export interface SessionRecord extends RecordBase {+ user_id: string;+ agent_id: string;+ source: SessionSource;+ source_schedule_id: string | null;+ config: SessionConfig;+ state: AgentState;+}++export interface CreateSessionRequest {+ agent_id: string;+ workspace_id?: string;+ chat_model_config?: ChatModelConfig | null;+}++export interface CreateSessionResponse {+ session_id: string;+}++export interface UpdateSessionRequest {+ name?: string;+ chat_model_config?: ChatModelConfig;+ permission_mode?: PermissionMode;+}++export interface SessionListResponse {+ sessions: SessionRecord[];+ total: number;+}++// ─── Credential ───────────────────────────────────────────────────────────────++export interface CredentialSchemaProperty {+ type?: string;+ format?: string;+ description?: string;+ default?: unknown;+ const?: unknown;+ anyOf?: Array<{ type: string }>;+ title?: string;+ writeOnly?: boolean;+}++export interface CredentialSchema {+ title: string;+ type: string;+ properties: Record<string, CredentialSchemaProperty>;+ required?: string[];+}++export interface CredentialSchemasResponse {+ schemas: CredentialSchema[];+}++export interface CredentialRecord extends RecordBase {+ user_id: string;+ data: Record<string, unknown>;+}++export interface CreateCredentialRequest {+ data: Record<string, unknown>;+}++export interface CreateCredentialResponse {+ credential_id: string;+}++export interface UpdateCredentialRequest {+ data: Record<string, unknown>;+}++export interface CredentialListResponse {+ credentials: CredentialRecord[];+ total: number;+}++// ─── Chat ─────────────────────────────────────────────────────────────────────++export type { Msg, ContentBlock } from '@agentscope-ai/agentscope/message';+export type { AgentEvent } from '@agentscope-ai/agentscope/event';+import type {+ UserConfirmResultEvent,+ ExternalExecutionResultEvent,+} from '@agentscope-ai/agentscope/event';+import type { Msg } from '@agentscope-ai/agentscope/message';++export interface ChatRequest {+ agent_id: string;+ session_id: string;+ input: Msg | Msg[] | UserConfirmResultEvent | ExternalExecutionResultEvent | null;+}++// ─── MCP ──────────────────────────────────────────────────────────────────────++export interface StdioMCPConfig {+ type: 'stdio_mcp';+ command: string;+ args?: string[] | null;+ env?: Record<string, string> | null;+ cwd?: string | null;+ encoding_error_handler?: 'strict' | 'ignore' | 'replace';+}++export interface HttpMCPConfig {+ type: 'http_mcp';+ url: string;+ headers?: Record<string, string> | null;+ timeout?: number | null;+}++export interface MCPClient {+ name: string;+ is_stateful: boolean;+ mcp_config: StdioMCPConfig | HttpMCPConfig;+}++export interface ToolInfo {+ name: string;+ description?: string | null;+}++export interface MCPClientStatus extends MCPClient {+ is_healthy: boolean;+ tools: ToolInfo[];+}++// ─── Skill ────────────────────────────────────────────────────────────────────++export interface Skill {+ name: string;+ description: string;+ dir: string;+ markdown: string;+ updated_at: number;+}++export interface AddSkillRequest {+ skill_path: string;+}++// ─── Schedule ─────────────────────────────────────────────────────────────────++export type PermissionMode =+ | 'default'+ | 'accept_edits'+ | 'explore'+ | 'bypass'+ | 'dont_ask'+ | (string & {});++export type ScheduleSource = 'USER' | 'AGENT';++export interface ScheduleData {+ name: string;+ description: string;+ enabled: boolean;+ timezone: string;+ cron_expression: string;+ started_at: string;+ ended_at: string | null;+ chat_model_config: ChatModelConfig;+ stateful: boolean;+ permission_mode: PermissionMode;+ source: ScheduleSource;+ source_session_id: string;+}++export interface ScheduleRecord extends RecordBase {+ user_id: string;+ agent_id: string;+ data: ScheduleData;+}++export interface CreateScheduleRequest {+ name: string;+ description?: string;+ cron_expression: string;+ timezone?: string;+ agent_id: string;+ chat_model_config: ChatModelConfig;+ enabled?: boolean;+ stateful?: boolean;+ permission_mode?: PermissionMode;+}++export interface CreateScheduleResponse {+ schedule_id: string;+}++export interface UpdateScheduleRequest {+ name?: string;+ description?: string;+ cron_expression?: string;+ timezone?: string;+ enabled?: boolean;+ stateful?: boolean;+ permission_mode?: PermissionMode;+}++export interface ScheduleListResponse {+ schedules: ScheduleRecord[];+ total: number;+}++// ─── Model ────────────────────────────────────────────────────────────────────++export interface ModelCard {+ type: 'chat_model';+ name: string;+ label: string;+ status: 'active' | 'deprecated' | 'sunset';+ deprecated_at: string | null;+ input_types: string[];+ output_types: string[];+ context_size: number;+ output_size: number;+ parameter_schema: Record<string, unknown>;+ parameters_overrides: Record<string, Record<string, unknown>>;+}++export interface ListModelRequest {+ provider: string;+}++export interface ListModelResponse {+ models: ModelCard[];+ total: number;+}diff --git a/examples/web_ui/frontend/src/api/workspace.ts b/examples/web_ui/frontend/src/api/workspace.tsnew file mode 100644index 000000000..2c8e37b9b--- /dev/null+++ b/examples/web_ui/frontend/src/api/workspace.ts@@ -0,0 +1,38 @@+import { client } from './client';+import type { AddSkillRequest, MCPClient, MCPClientStatus, Skill } from './types';++export const workspaceApi = {+ mcp: {+ list: (agentId: string, sessionId: string) =>+ client.get<MCPClientStatus[]>('/workspace/mcp', {+ agent_id: agentId,+ session_id: sessionId,+ }),++ add: (agentId: string, sessionId: string, mcp: MCPClient) =>+ client.post<void>('/workspace/mcp', mcp, { agent_id: agentId, session_id: sessionId }),++ remove: (mcpName: string, agentId: string, sessionId: string) =>+ client.delete(`/workspace/mcp/${mcpName}`, {+ agent_id: agentId,+ session_id: sessionId,+ }),+ },++ skill: {+ list: (agentId: string, sessionId: string) =>+ client.get<Skill[]>('/workspace/skill', { agent_id: agentId, session_id: sessionId }),++ add: (agentId: string, sessionId: string, body: AddSkillRequest) =>+ client.post<void>('/workspace/skill', body, {+ agent_id: agentId,+ session_id: sessionId,+ }),++ remove: (skillName: string, agentId: string, sessionId: string) =>+ client.delete(`/workspace/skill/${skillName}`, {+ agent_id: agentId,+ session_id: sessionId,+ }),+ },+};diff --git a/examples/web_ui/frontend/src/assets/images/agentscope.svg b/examples/web_ui/frontend/src/assets/images/agentscope.svgnew file mode 100644index 000000000..e781d9c87--- /dev/null+++ b/examples/web_ui/frontend/src/assets/images/agentscope.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="550" height="550" viewBox="0 0 550 550"><defs><linearGradient x1="0.01500389538705349" y1="0.4831196665763855" x2="0.9407116114637801" y2="0.3076102348892569" id="master_svg0_8_2390"><stop offset="0%" stop-color="#01C5FF" stop-opacity="1"/><stop offset="100%" stop-color="#019DFB" stop-opacity="1"/></linearGradient><linearGradient x1="0.21085502207279205" y1="0.38703426718711853" x2="0.9523109409029081" y2="0.390888421140005" id="master_svg1_8_1638"><stop offset="0%" stop-color="#4701EF" stop-opacity="1"/><stop offset="100%" stop-color="#395EEF" stop-opacity="1"/></linearGradient></defs><g><g></g><g><g><path d="M275.4998779296875,211.25Q275.4998779296875,279.5,373.4999779296875,310.5Q338.4998779296875,287.5,343.9998779296875,232Q344.4969779296875,227.19400000000002,345.9004779296875,222.498Q352.96577792968753,198.857,382.9998779296875,178L415.9998779296875,193.5L469.7738779296875,193.5C477.0958779296875,193.5,481.9218779296875,185.91559999999998,478.3148779296875,179.543Q441.5068779296875,114.5,372.9998779296875,114.5C343.9998779296875,114.5,275.4998779296875,143,275.4998779296875,211.25Z" fill="url(#master_svg0_8_2390)" fill-opacity="1"/></g><g><path d="M343.9999162890625,231.99999791015625Q337.9999162890625,287.5000079101562,373.5000462890625,310.5000079101562L433.4998462890625,333.00010791015626Q449.4994462890625,314.2500079101562,449.4994462890625,295.5000079101562Q449.4994462890625,276.7500079101562,433.4998462890625,258.0000079101562L345.9004862890625,222.49810791015625Q344.4970462890625,227.19412791015625,343.9999162890625,231.99999791015625Z" fill="#0064FC" fill-opacity="1"/></g><g><path d="M122.9998779296875,351.5C124.3900479296875,350.6567,125.7727179296875,349.8325,127.1479779296875,349.0269Q125.0392779296875,350.2098,122.9998779296875,351.5ZM127.1479779296875,349.0269Q150.3716779296875,336,181.9998779296875,336C186.2692779296875,335.7983,190.4211779296875,335.9808,194.4638779296875,336.502C250.5488779296875,343.7327,285.6218779296875,416.14300000000003,321.9998779296875,432Q350.1248779296875,444,377.9998779296875,444Q405.8748779296875,444,433.4998779296875,432Q489.9998779296875,400,489.9998779296875,344.5Q489.9998779296875,283,433.4998779296875,258Q449.4998779296875,276.75,449.4998779296875,295.5Q449.4998779296875,314.25,433.4998779296875,333C394.3168779296875,374.257,360.65987792968747,359.947,319.4498779296875,342.4251C286.9518779296875,328.6077,249.7568779296875,312.7935,201.4527779296875,320.6594C179.2413779296875,324.2763,154.6808779296875,332.9,127.1479779296875,349.0269Z" fill="url(#master_svg1_8_1638)" fill-opacity="1"/></g><g><path d="M61,437.99973876953123L133.8305,437.99973876953123C141.5661,437.99973876953123,148.608,433.53913876953123,151.9131,426.54513876953126L194.464,336.50202976953125C190.421,335.98083496953126,186.269,335.79829376953126,182,335.99999996953125Q147.4999,335.99999996953125,122.9999,351.5000387695313C93.5,373.5000387695313,87,387.0000387695313,61,437.99973876953123Z" fill="#0064FC" fill-opacity="1"/></g><g><path d="M61,438.00038301849366C87,387.00038301849366,93.5,373.50038301849366,122.9999,351.50038301849366C152.2215,333.77438301849367,178.132,324.45738301849366,201.453,320.65938301849366L256.597,207.04148301849364C259.081,201.92438301849364,259.26800000000003,195.99188301849364,257.11199999999997,190.72838301849367L227.948,119.52337301849366C225.653,113.91851301849366,217.805,113.67667301849366,215.169,119.12954301849365L61,438.00038301849366Z" fill="#01C8FF" fill-opacity="1"/></g></g></g></svg>\ No newline at end of filediff --git a/examples/web_ui/frontend/src/assets/images/line-corner.svg b/examples/web_ui/frontend/src/assets/images/line-corner.svgnew file mode 100644index 000000000..07c5909da--- /dev/null+++ b/examples/web_ui/frontend/src/assets/images/line-corner.svg@@ -0,0 +1,3 @@+<svg viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="gray">+ <path d="M2 0 L2 14 L8 14" stroke-width="0.7" stroke-linecap="round" stroke-linejoin="round"/>+</svg>diff --git a/examples/web_ui/frontend/src/assets/images/line-vertical.svg b/examples/web_ui/frontend/src/assets/images/line-vertical.svgnew file mode 100644index 000000000..9815fe501--- /dev/null+++ b/examples/web_ui/frontend/src/assets/images/line-vertical.svg@@ -0,0 +1,3 @@+<svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="gray">+ <path d="M2 0 L2 16" stroke-width="0.7" stroke-linecap="round"/>+</svg>diff --git a/examples/web_ui/frontend/src/assets/images/mcp.svg b/examples/web_ui/frontend/src/assets/images/mcp.svgnew file mode 100644index 000000000..4c9a39e69--- /dev/null+++ b/examples/web_ui/frontend/src/assets/images/mcp.svg@@ -0,0 +1,6 @@+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M2 11.5L11.18 2.32C12.5 1 14.62 1 15.94 2.32C17.26 3.64 17.26 5.76 15.94 7.08L8.88 14.14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>+ <path d="M8.97 14.04L15.94 7.08C17.26 5.76 19.38 5.76 20.7 7.08L20.74 7.12C22.06 8.44 22.06 10.56 20.7 11.88L13.03 19.55C12.6 19.98 12.6 20.67 13.03 21.1L14.78 22.85" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>+ <path d="M13.56 4.7L6.62 11.64C5.3 12.96 5.3 15.08 6.62 16.4C7.94 17.72 10.06 17.72 11.38 16.4L18.34 9.44" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>+</svg>+diff --git a/examples/web_ui/frontend/src/components/badge/InputTypeBadges.tsx b/examples/web_ui/frontend/src/components/badge/InputTypeBadges.tsxnew file mode 100644index 000000000..351afa506--- /dev/null+++ b/examples/web_ui/frontend/src/components/badge/InputTypeBadges.tsx@@ -0,0 +1,65 @@+import { Type, Image, Video, AudioLines } from 'lucide-react';+import type { LucideIcon } from 'lucide-react';++import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';+import { cn } from '@/lib/utils';++// ─── Config ───────────────────────────────────────────────────────────────────++interface ModalityConfig {+ /** The MIME main-type prefix this slot matches, e.g. "image" */+ mainType: string;+ /** Lucide icon to render */+ Icon: LucideIcon;+ /** Fallback label shown in tooltip when no subtypes are present */+ label: string;+ /** text/plain is a special case — matched by exact MIME type */+ exactMatch?: string;+}++const MODALITIES: ModalityConfig[] = [+ { mainType: 'text', exactMatch: 'text/plain', Icon: Type, label: 'text/plain' },+ { mainType: 'image', Icon: Image, label: 'image' },+ { mainType: 'video', Icon: Video, label: 'video' },+ { mainType: 'audio', Icon: AudioLines, label: 'audio' },+];++// ─── Component ────────────────────────────────────────────────────────────────++interface InputTypeBadgesProps {+ /** Array of MIME types, e.g. ["text/plain", "image/jpeg", "audio/mp3"] */+ inputTypes: string[];+ className?: string;+}++export function InputTypeBadges({ inputTypes, className }: InputTypeBadgesProps) {+ return (+ <TooltipProvider>+ <div className={cn('flex flex-row gap-x-1', className)}>+ {MODALITIES.map(({ mainType, exactMatch, Icon, label }) => {+ // Find matching MIME types from the model's input_types+ const matched = exactMatch+ ? inputTypes.filter((t) => t === exactMatch)+ : inputTypes.filter((t) => t.startsWith(mainType + '/'));++ const supported = matched.length > 0;+ const tooltipText = supported ? matched.join(', ') : label;++ return (+ <Tooltip key={mainType}>+ <TooltipTrigger asChild>+ <Icon+ size={18}+ className={supported ? 'stroke-primary' : 'opacity-30'}+ />+ </TooltipTrigger>+ <TooltipContent>+ <span>{tooltipText}</span>+ </TooltipContent>+ </Tooltip>+ );+ })}+ </div>+ </TooltipProvider>+ );+}diff --git a/examples/web_ui/frontend/src/components/badge/StatusBadge.tsx b/examples/web_ui/frontend/src/components/badge/StatusBadge.tsxnew file mode 100644index 000000000..07695cb58--- /dev/null+++ b/examples/web_ui/frontend/src/components/badge/StatusBadge.tsx@@ -0,0 +1,55 @@+import { CheckCircle, XCircle } from 'lucide-react';++import { Badge } from '@/components/ui/badge';+import { Spinner } from '@/components/ui/spinner';+import { useTranslation } from '@/i18n/useI18n';+import { cn } from '@/lib/utils';++/**+ * Displays a status badge with icon and label based on execution status.+ * @param root0 - Component props.+ * @param root0.className - Optional CSS class.+ * @param root0.status - The execution status to display.+ * @returns A styled Badge component.+ */+export function StatusBadge({+ className,+ status,+}: {+ className?: string;+ status: 'running' | 'completed' | 'failed';+}) {+ const { t } = useTranslation();+ switch (status) {+ case 'running':+ return (+ <Badge variant="secondary" className={className}>+ <Spinner data-icon="inline-start" />+ {t('common.running')}+ </Badge>+ );+ case 'completed':+ return (+ <Badge+ className={cn(+ 'bg-green-50 text-green-700 dark:bg-green-950 dark:text-green-300',+ className,+ )}+ >+ <CheckCircle className="size-5" />+ {t('common.completed')}+ </Badge>+ );+ case 'failed':+ return (+ <Badge+ className={cn(+ 'bg-red-50 text-red-700 dark:bg-red-950 dark:text-red-300 border-none',+ )}+ >+ <XCircle className="size-5" />+ {t('common.failed')}+ </Badge>+ );+ }+}diff --git a/examples/web_ui/frontend/src/components/chat/ChatContent.tsx b/examples/web_ui/frontend/src/components/chat/ChatContent.tsxnew file mode 100644index 000000000..499bdc5e3--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/ChatContent.tsx@@ -0,0 +1,115 @@+import type { ContentBlock, Msg, ToolCallBlock } from '@agentscope-ai/agentscope/message';+import React from 'react';+import { useRef, useEffect } from 'react';++import { EmptyMessage } from './Empty';+import { MessageBubble } from '@/components/chat/MessageBubble';+import { TextInput } from '@/components/chat/TextInput.tsx';+import { cn } from '@/lib/utils';++interface ChatContentProps {+ msgs: Msg[];+ sending: boolean;+ disabled: boolean;+ onSend: (content: ContentBlock[]) => void;+ onUserConfirm: (+ toolCall: ToolCallBlock,+ confirm: boolean,+ replyId: string,+ rules?: ToolCallBlock['suggested_rules'],+ ) => void;+ autoComplete?: (input: string) => string | null;+ className?: string;+ /** @see TextInputProps.allowedInputTypes */+ allowedInputTypes: string[];+ /** @see TextInputProps.fileProcessor */+ fileProcessor: (file: File) => Promise<ContentBlock | null>;+}++const ChatContentComponent: React.FC<ChatContentProps> = ({+ msgs,+ sending,+ disabled,+ onSend,+ onUserConfirm,+ autoComplete,+ className,+ allowedInputTypes,+ fileProcessor,+}) => {+ const scrollAreaRef = useRef<HTMLDivElement>(null);+ const prevMsgCountRef = useRef<number>(0);+ const wasNearBottomRef = useRef<boolean>(true);++ // Auto-scroll to bottom only if user is already near the bottom+ useEffect(() => {+ const currentCount = msgs.length;+ const prevCount = prevMsgCountRef.current;++ const shouldCheck =+ (currentCount > prevCount && prevCount > 0) || (sending && prevCount > 0);++ if (shouldCheck && scrollAreaRef.current) {+ const { scrollHeight } = scrollAreaRef.current;++ // Check if user was near bottom before content changed+ const isNearBottom = wasNearBottomRef.current;++ if (isNearBottom) {+ scrollAreaRef.current.scrollTo({+ top: scrollHeight,+ behavior: 'smooth',+ });+ }+ }++ prevMsgCountRef.current = currentCount;+ }, [msgs, sending]);++ // Track if user is near bottom whenever they scroll+ useEffect(() => {+ const scrollArea = scrollAreaRef.current;+ if (!scrollArea) return;++ const handleScroll = () => {+ const { scrollTop, scrollHeight, clientHeight } = scrollArea;+ wasNearBottomRef.current = scrollTop + clientHeight >= scrollHeight - 50;+ };++ scrollArea.addEventListener('scroll', handleScroll);+ return () => scrollArea.removeEventListener('scroll', handleScroll);+ }, []);++ return (+ <div className={cn('flex flex-col h-full w-full items-center p-2 gap-4', className)}>+ <div+ ref={scrollAreaRef}+ className="flex-1 w-full max-w-full overflow-auto no-scrollbar overflow-x-hidden"+ >+ <div className="flex flex-col gap-4 size-full max-w-full">+ {msgs.length > 0 ? (+ msgs.map((message) => (+ <MessageBubble+ key={message.id}+ message={message}+ onUserConfirm={onUserConfirm}+ />+ ))+ ) : (+ <EmptyMessage />+ )}+ </div>+ </div>+ <TextInput+ className="min-w-full max-w-full w-full"+ onSend={onSend}+ disabled={disabled}+ autoComplete={autoComplete}+ allowedInputTypes={allowedInputTypes}+ fileProcessor={fileProcessor}+ />+ </div>+ );+};++export const ChatContent = React.memo(ChatContentComponent);diff --git a/examples/web_ui/frontend/src/components/chat/ConfirmCard.tsx b/examples/web_ui/frontend/src/components/chat/ConfirmCard.tsxnew file mode 100644index 000000000..b7ee0b592--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/ConfirmCard.tsx@@ -0,0 +1,150 @@+import type { ToolCallBlock } from '@agentscope-ai/agentscope/message';+import { ChevronRight } from 'lucide-react';+import { useEffect, useState } from 'react';++import { getDisplayName, renderConfirmBody } from './tool-renderers';+import { Button } from '@/components/ui/button';+import { Kbd } from '@/components/ui/kbd';+import { useTranslation } from '@/i18n/useI18n';+import { cn } from '@/lib/utils';++type SelectOption = 'yes' | 'yes_with_rule' | 'no';++export function ConfirmCard({+ toolCall,+ onUserConfirm,+}: {+ toolCall: ToolCallBlock;+ onUserConfirm: (confirm: boolean, rules?: ToolCallBlock['suggested_rules']) => void;+}) {+ const { t } = useTranslation();+ const hasSuggestedRules = !!toolCall.suggested_rules?.length;+ const options: SelectOption[] = hasSuggestedRules+ ? ['yes', 'yes_with_rule', 'no']+ : ['yes', 'no'];+ const [selected, setSelected] = useState<SelectOption>('yes');++ useEffect(() => {+ const handleKeyDown = (e: KeyboardEvent) => {+ const currentIndex = options.indexOf(selected);+ switch (e.key) {+ case 'ArrowUp':+ e.preventDefault();+ setSelected(options[(currentIndex - 1 + options.length) % options.length]);+ break;+ case 'ArrowDown':+ e.preventDefault();+ setSelected(options[(currentIndex + 1) % options.length]);+ break;+ case 'Enter':+ e.preventDefault();+ if (selected === 'yes_with_rule') {+ onUserConfirm(true, [toolCall.suggested_rules![0]]);+ } else {+ onUserConfirm(selected === 'yes');+ }+ break;+ }+ };++ window.addEventListener('keydown', handleKeyDown);+ return () => window.removeEventListener('keydown', handleKeyDown);+ }, [onUserConfirm, selected, options]);++ return (+ <div className="ring ring-border rounded-xl w-full p-4 space-y-4 text-sm">+ <div className="flex flex-col gap-y-2">+ <strong className="text-secondary-foreground">{getDisplayName(toolCall, t)}</strong>+ <div className="px-4 py-2 bg-white rounded-sm">+ {renderConfirmBody(toolCall, t)}+ </div>+ </div>+ <div className="flex flex-col">+ <strong className="text-secondary-foreground mb-1">+ {t('chat.confirmToolCall')}+ </strong>+ <Button+ className={cn(+ 'flex justify-start cursor-pointer',+ selected === 'yes' ? 'text-primary' : 'text-muted-foreground',+ )}+ size="sm"+ variant="ghost"+ onMouseEnter={() => setSelected('yes')}+ onClick={(e) => {+ e.stopPropagation();+ e.preventDefault();+ onUserConfirm(true);+ }}+ >+ <ChevronRight+ className={cn('size-4', selected === 'yes' ? 'visible' : 'invisible')}+ />+ 1. {t('common.yes')}+ <div className={cn(selected === 'yes' ? 'text-muted-foreground' : 'invisible')}>+ (<Kbd>Enter</Kbd> {t('confirmCard.toConfirm')})+ </div>+ </Button>+ {hasSuggestedRules && (+ <Button+ className={cn(+ 'flex justify-start cursor-pointer',+ selected === 'yes_with_rule' ? 'text-primary' : 'text-muted-foreground',+ )}+ size="sm"+ variant="ghost"+ onMouseEnter={() => setSelected('yes_with_rule')}+ onClick={(e) => {+ e.stopPropagation();+ e.preventDefault();+ onUserConfirm(true, [toolCall.suggested_rules![0]]);+ }}+ >+ <ChevronRight+ className={cn(+ 'size-4',+ selected === 'yes_with_rule' ? 'visible' : 'invisible',+ )}+ />+ 2.{' '}+ {t('confirmCard.yesWithRule', {+ toolName: toolCall.suggested_rules![0].tool_name,+ ruleContent: toolCall.suggested_rules![0].rule_content,+ })}+ <div+ className={cn(+ selected === 'yes_with_rule'+ ? 'text-muted-foreground'+ : 'invisible',+ )}+ >+ (<Kbd>Enter</Kbd> {t('confirmCard.toConfirm')})+ </div>+ </Button>+ )}+ <Button+ className={cn(+ 'flex justify-start cursor-pointer',+ selected === 'no' ? 'text-primary' : 'text-muted-foreground',+ )}+ size="sm"+ variant="ghost"+ onMouseEnter={() => setSelected('no')}+ onClick={(e) => {+ e.stopPropagation();+ e.preventDefault();+ onUserConfirm(false);+ }}+ >+ <ChevronRight+ className={cn('size-4', selected === 'no' ? 'visible' : 'invisible')}+ />+ {hasSuggestedRules ? '3' : '2'}. {t('common.no')}+ <div className={cn(selected === 'no' ? 'text-muted-foreground' : 'invisible')}>+ (<Kbd>Enter</Kbd> {t('confirmCard.toConfirm')})+ </div>+ </Button>+ </div>+ </div>+ );+}diff --git a/examples/web_ui/frontend/src/components/chat/Empty.tsx b/examples/web_ui/frontend/src/components/chat/Empty.tsxnew file mode 100644index 000000000..3f3b9cf87--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/Empty.tsx@@ -0,0 +1,30 @@+import { MessagesSquare } from 'lucide-react';++import {+ Empty,+ EmptyDescription,+ EmptyHeader,+ EmptyMedia,+ EmptyTitle,+} from '@/components/ui/empty';+import { useTranslation } from '@/i18n/useI18n';++/**+ * Empty state component shown when there are no messages.+ * @returns An empty state element with icon and description.+ */+export function EmptyMessage() {+ const { t } = useTranslation();++ return (+ <Empty className="size-full">+ <EmptyHeader>+ <EmptyMedia variant="icon">+ <MessagesSquare />+ </EmptyMedia>+ <EmptyTitle>{t('chat.noMessages')}</EmptyTitle>+ <EmptyDescription>{t('chat.noMessagesDesc')}</EmptyDescription>+ </EmptyHeader>+ </Empty>+ );+}diff --git a/examples/web_ui/frontend/src/components/chat/MessageBubble.tsx b/examples/web_ui/frontend/src/components/chat/MessageBubble.tsxnew file mode 100644index 000000000..28e18119d--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/MessageBubble.tsx@@ -0,0 +1,485 @@+import type {+ ContentBlock,+ Msg,+ ToolCallBlock,+ ToolResultBlock,+} from '@agentscope-ai/agentscope/message';+import { ArrowDown, ArrowUp, Circle, Copy } from 'lucide-react';+import type { ReactNode } from 'react';+import ReactMarkdown from 'react-markdown';+import remarkGfm from 'remark-gfm';++import { ConfirmCard } from './ConfirmCard';+import { getDisplayName, renderCallArgs, renderResult } from './tool-renderers';+import lineCornerSvg from '@/assets/images/line-corner.svg';+import lineVerticalSvg from '@/assets/images/line-vertical.svg';+import { Badge } from '@/components/ui/badge';+import { Button } from '@/components/ui/button';+import { useTranslation } from '@/i18n/useI18n';+import { formatNumber } from '@/utils/common';++// Tool call group, containing multiple tool_call and tool_result pairs+interface ToolCallGroupBlock {+ type: 'tool_call_group';+ id: string;+ groupType: 'read_group' | 'glob_group' | 'grep_group' | 'tool_group';+ calls: Array<{+ call: ToolCallBlock;+ result?: ToolResultBlock;+ }>;+}++// Extend ContentBlock type to include ToolCallGroupBlock+type ExtendedContentBlock = ContentBlock | ToolCallGroupBlock;++/**+ * Combine adjacent tool_call and tool_result in message content into tool_call_group+ * Consecutive Read/Glob/Grep tools will be grouped into their respective groups+ * Other tools will be mixed into tool_group+ * @param content+ * @returns The processed content with tool calls grouped together for better rendering.+ */+function groupToolCalls(content: ContentBlock[]): ExtendedContentBlock[] {+ const result: ExtendedContentBlock[] = [];+ let currentGroup: Array<{ call: ToolCallBlock; result?: ToolResultBlock }> = [];+ let currentGroupType: 'read_group' | 'glob_group' | 'grep_group' | 'tool_group' | null = null;++ const getGroupType = (+ toolName: string,+ ): 'read_group' | 'glob_group' | 'grep_group' | 'tool_group' => {+ if (toolName === 'Read') return 'read_group';+ if (toolName === 'Glob') return 'glob_group';+ if (toolName === 'Grep') return 'grep_group';+ return 'tool_group';+ };++ const flushCurrentGroup = () => {+ if (currentGroup.length > 0 && currentGroupType) {+ result.push({+ type: 'tool_call_group',+ id: crypto.randomUUID(),+ groupType: currentGroupType,+ calls: currentGroup,+ });+ currentGroup = [];+ currentGroupType = null;+ }+ };++ for (const block of content) {+ if (block.type === 'tool_call') {+ const toolGroupType = getGroupType(block.name);++ // If it's Read/Glob/Grep and the group type is different from the current one, start a new group+ if (toolGroupType !== 'tool_group' && currentGroupType !== toolGroupType) {+ flushCurrentGroup();+ currentGroupType = toolGroupType;+ } else if (toolGroupType === 'tool_group' && currentGroupType !== 'tool_group') {+ // If it's another tool and the current group is not tool_group, start a new group+ flushCurrentGroup();+ currentGroupType = 'tool_group';+ } else if (!currentGroupType) {+ // If there's no current group yet, set the group type+ currentGroupType = toolGroupType;+ }++ // Collect tool_call+ currentGroup.push({ call: block });+ } else if (block.type === 'tool_result') {+ // Find the corresponding tool_call and add result+ const matchingCall = currentGroup.find((item) => item.call.id === block.id);+ if (matchingCall) {+ matchingCall.result = block;+ } else {+ // If no corresponding call is found, create a new group (this should not happen in theory)+ currentGroup.push({+ call: {+ type: 'tool_call',+ id: block.id,+ name: block.name,+ input: '',+ state: 'pending',+ },+ result: block,+ });+ }+ } else {+ // When encountering a non-tool_call/tool_result block, end the current group+ flushCurrentGroup();+ result.push(block);+ }+ }++ // Process the last group+ flushCurrentGroup();++ return result;+}++/**+ * Get the appropriate line connector image based on position in a list.+ * @param index - The current item index+ * @param total - The total number of items+ * @returns The appropriate line connector image (corner or vertical)+ */+function getLineImage(index: number, total: number): string {+ return index === total - 1 ? lineCornerSvg : lineVerticalSvg;+}++/**+ * The ToolStateIcon component renders an icon representing the state of a tool call based on its states.+ * @param root0+ * @param root0.states+ * @returns A ReactNode representing the icon corresponding to the tool call state.+ */+function ToolStateIcon({ states }: { states: (ToolResultBlock['state'] | undefined)[] }) {+ // If any of the states is 'running' or any one is undefined+ if (states.includes('running') || states.includes(undefined)) {+ return (+ <Circle className="size-2.5 text-muted-foreground fill-muted-foreground animate-pulse shrink-0" />+ );+ }++ // If all the states are 'success', show success;+ if (states.every((state) => state === 'success')) {+ return <Circle className="size-2.5 text-green-500 fill-green-500 shrink-0" />;+ }++ // If any of the states is 'error', show error;+ if (states.some((state) => state === 'error')) {+ return <Circle className="size-2.5 text-red-500 fill-red-500 shrink-0" />;+ }++ // if any of the states is 'interrupted', show interrupted;+ if (states.some((state) => state === 'interrupted')) {+ return <Circle className="size-2.5 text-yellow-500 fill-yellow-500 shrink-0" />;+ }++ // Return a default icon if none of the above conditions are met+ return <Circle className="size-2.5 text-muted-foreground fill-muted-foreground shrink-0" />;+}++/**+ * Renders a grouped list of tool calls (Read / Glob / Grep) with a header and indented items.+ * @param root0 - The component props+ * @param root0.calls - Array of tool calls with their results+ * @param root0.label - The label to display for the group+ * @param root0.paramKey - The parameter key to extract from each call+ * @param root0.inline - Whether to display items inline or stacked+ * @returns A ReactNode representing the grouped tool call list+ */+function ToolCallGroupList({+ calls,+ label,+ inline,+}: {+ calls: Array<{ call: ToolCallBlock; result?: ToolResultBlock }>;+ label: ReactNode;+ inline?: boolean;+}) {+ return (+ <div className="flex flex-col w-full">+ <div className="flex flex-row gap-x-2 w-full max-w-full items-center">+ <ToolStateIcon states={calls.map((item) => item.result?.state)} />+ {label}+ </div>+ <div className={`flex ${inline ? 'flex-row' : 'flex-col'} gap-x-2 pl-6 max-w-full`}>+ {calls.map((item, index) => (+ <div+ key={index}+ className="flex flex-row gap-x-2 w-full max-w-full items-stretch"+ >+ <div className="flex-shrink-0 h-full items-center">+ <img+ src={getLineImage(index, calls.length)}+ alt=""+ className="w-3 h-full"+ />+ </div>+ <div className="truncate flex-1 min-w-0 text-sm">+ {renderCallArgs(item.call, () => '')}+ </div>+ </div>+ ))}+ </div>+ </div>+ );+}++/**+ * The RenderToolCallGroup component renders a group of tool calls and their results in a structured format.+ *+ * @param root0+ * @param root0.block+ * @param root0.index+ * @param root0.onUserConfirm+ * @returns A ReactNode representing the rendered tool call group.+ */+function ToolCallGroup({+ block,+ index,+ onUserConfirm,+}: {+ block: ToolCallGroupBlock;+ index: number;+ onUserConfirm?: (+ toolCallBlock: ToolCallBlock,+ confirm: boolean,+ rules?: ToolCallBlock['suggested_rules'],+ ) => void;+}): ReactNode {+ const { t } = useTranslation();+ if (block.calls.length === 0) return null;++ const firstNeedConfirm = block.calls.findIndex((item) => item.call.state === 'asking');++ const renderToolCalls =+ firstNeedConfirm === -1 ? block.calls : block.calls.slice(0, firstNeedConfirm + 1);++ const elements: ReactNode[] = [];++ if (block.groupType === 'read_group') {+ elements.push(+ <ToolCallGroupList+ key="read"+ calls={renderToolCalls}+ label={+ <span className="text-sm">+ <strong className="truncate text-primary">{t('tool.read.name')} </strong>+ {t('tool.read.fileCount', { count: renderToolCalls.length })}+ </span>+ }+ />,+ );+ } else if (block.groupType === 'glob_group' || block.groupType === 'grep_group') {+ elements.push(+ <ToolCallGroupList+ key="search"+ calls={renderToolCalls}+ inline+ label={+ <strong className="truncate text-primary text-sm">+ {block.groupType === 'glob_group'+ ? t('tool.glob.name')+ : t('tool.grep.name')}+ </strong>+ }+ />,+ );+ } else {+ for (const { call, result } of renderToolCalls) {+ const displayName = getDisplayName(call, t);+ const args = renderCallArgs(call, t);+ const resultContent = result ? renderResult(call, result, t) : null;++ elements.push(+ <div className="flex flex-col w-full max-w-full text-sm">+ <div className="flex flex-row gap-x-2 w-full max-w-full items-center">+ <ToolStateIcon states={[result?.state]} />+ <span className="truncate">+ <strong className="truncate text-primary">{displayName}</strong>+ {args && <>({args})</>}+ </span>+ </div>+ {resultContent && (+ <div className="flex flex-row gap-x-2 pl-6 max-w-full">+ <div className="flex-shrink-0">+ <img src={lineCornerSvg} alt="" className="w-3 h-4" />+ </div>+ {resultContent}+ </div>+ )}+ </div>,+ );+ }+ }++ // Need to confirm+ if (firstNeedConfirm !== -1) {+ const { call } = block.calls[firstNeedConfirm];+ elements.push(+ <ConfirmCard+ toolCall={call}+ onUserConfirm={(confirm, rules) => {+ if (onUserConfirm) onUserConfirm(call, confirm, rules);+ }}+ />,+ );+ }++ return (+ <div key={index} className="flex flex-col gap-y-4 text-muted-foreground">+ {elements}+ </div>+ );+}++/**+ * Renders a content block based on its type.+ *+ * @param block - The content block to render.+ * @param index - The index of the block in the content array.+ * @param onUserConfirm+ * @returns A React element representing the rendered block.+ */+function renderBlock(+ block: ExtendedContentBlock,+ index: number,+ onUserConfirm?: (+ toolCallBlock: ToolCallBlock,+ confirm: boolean,+ rules?: ToolCallBlock['suggested_rules'],+ ) => void,+ t?: (key: string) => string,+) {+ switch (block.type) {+ case 'tool_call_group':+ return <ToolCallGroup block={block} index={index} onUserConfirm={onUserConfirm} />;+ case 'text':+ return (+ <div className="prose text-sm w-full min-w-full">+ <ReactMarkdown+ remarkPlugins={[remarkGfm]}+ // rehypePlugins={[rehypeRaw]}+ components={{+ code: ({ className, children, ...props }) => {+ const isInline = !String(className ?? '').startsWith('language-');+ if (isInline) {+ return (+ <code className={`${className ?? ''} break-all`} {...props}>+ {children}+ </code>+ );+ }+ return (+ <div className="relative w-full">+ <Button+ size="icon-xs"+ variant="ghost"+ className="absolute top-0 right-0 z-10"+ onClick={async (e) => {+ e.preventDefault();+ e.stopPropagation();+ await navigator.clipboard.writeText(+ String(children),+ );+ }}+ >+ <Copy />+ </Button>+ <div className="overflow-x-auto max-w-full w-full">+ <code className={className} {...props}>+ {children}+ </code>+ </div>+ </div>+ );+ },+ }}+ >+ {block.text}+ </ReactMarkdown>+ </div>+ );++ case 'thinking':+ return (+ <details key={index} className="text-xs text-muted-foreground">+ <summary className="cursor-pointer select-none">+ {t ? t('messageBubble.thinking') : 'Thinking'}+ </summary>+ <p className="mt-1 whitespace-pre-wrap">{block.thinking}</p>+ </details>+ );++ case 'data': {+ const dataType = block.source.media_type.split('/')[0];+ let data: string;+ if (block.source.type === 'url') {+ data = block.source.url;+ } else {+ data = `data:${block.source.media_type};base64,${block.source.data}`;+ }+ switch (dataType) {+ case 'image':+ return <img src={data} alt="Uploaded image" />;+ case 'audio':+ return <audio controls src={data} />;+ case 'video':+ return <video controls src={data} />;+ }+ return null;+ }+ default:+ return null;+ }+}++interface MessageBubbleProps {+ message: Msg;+ onUserConfirm: (+ toolCallBlock: ToolCallBlock,+ confirm: boolean,+ replyId: string,+ rules?: ToolCallBlock['suggested_rules'],+ ) => void;+}++/**+ * A message bubble component that displays a chat message.+ *+ * @param root0 - The component props.+ * @param root0.message - The message object to display.+ * @param root0.onUserConfirm+ * @returns A MessageBubble component.+ */+export function MessageBubble({ message, onUserConfirm }: MessageBubbleProps) {+ const isUser = message.role === 'user';+ const { t } = useTranslation();++ const renderContent = () => {+ if (typeof message.content === 'string') {+ return <p className="whitespace-pre-wrap">{message.content}</p>;+ }+ // Combine adjacent tool_call and tool_result into tool_call_group+ const processedContent = groupToolCalls(message.content);+ return processedContent.map((block, i) =>+ renderBlock(+ block,+ i,+ (+ toolCall: ToolCallBlock,+ confirm: boolean,+ rules?: ToolCallBlock['suggested_rules'],+ ) => {+ onUserConfirm(toolCall, confirm, message.id, rules);+ toolCall.state = confirm ? 'allowed' : 'finished';+ // Remove confirmation UI while preserving denied state+ },+ t,+ ),+ );+ };++ return (+ <div+ className={`flex flex-col w-full max-w-full ${isUser ? 'items-end' : 'items-start'} mb-4`}+ >+ <div+ className={`p-4 rounded-xl space-y-2 max-w-full ${isUser ? 'w-fit bg-secondary' : 'w-full min-w-full'}`}+ >+ {renderContent()}+ </div>+ {isUser ? null : (+ <div className="flex flex-row text-muted-foreground gap-x-4 px-2">+ <Badge variant="secondary">+ <ArrowUp data-icon="inline-start" />+ {formatNumber(message.usage?.inputTokens || 0)}+ <ArrowDown data-icon="inline-start" className="ml-1" />+ {formatNumber(message.usage?.outputTokens || 0)}+ </Badge>+ </div>+ )}+ </div>+ );+}diff --git a/examples/web_ui/frontend/src/components/chat/TextInput.tsx b/examples/web_ui/frontend/src/components/chat/TextInput.tsxnew file mode 100644index 000000000..202abbe78--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/TextInput.tsx@@ -0,0 +1,366 @@+import type { ContentBlock, TextBlock } from '@agentscope-ai/agentscope/message';+import { Paperclip, Send, Loader2, X } from 'lucide-react';+import React, {+ useState,+ useRef,+ useMemo,+ type KeyboardEvent,+ useImperativeHandle,+ forwardRef,+} from 'react';++import { Button } from '../ui/button';+import { Kbd } from '../ui/kbd';+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';+import { useTranslation } from '@/i18n/useI18n.ts';+import { cn } from '@/lib/utils';+import { isMac } from '@/utils/platform';++/**+ * Represents a file that has been selected and processed (or is being processed).+ */+interface ProcessedFile {+ /** Original file name for display */+ name: string;+ /** Processing status */+ status: 'processing' | 'done';+ /** The resulting ContentBlock after processing (available when status === 'done') */+ block: ContentBlock | null;+}++interface TextInputProps {+ onSend: (blocks: ContentBlock[]) => void;+ placeholder?: string;+ autoComplete?: (input: string) => string | null;+ disabled?: boolean;+ className?: string;+ /**+ * Controls which file types the file picker accepts.+ * Uses standard MIME types and file extensions, e.g.:+ * - Images: "image/*" or "image/jpeg", "image/png"+ * - Audio: "audio/*" or "audio/mpeg", "audio/wav"+ * - Video: "video/*"+ * - Plain text:"text/plain"+ * - PDF: "application/pdf"+ * - Word: ".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"+ * - Excel: ".xls,.xlsx,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"+ *+ * When undefined → no restriction (all files allowed).+ * When empty array [] → attachment button is disabled (model accepts no files).+ */+ allowedInputTypes?: string[];+ /**+ * Called immediately when a file is selected (at attach time, NOT at send time).+ * Should resolve to a ContentBlock to include in the message, or null to skip the file.+ * Runs concurrently for all selected files; the UI shows a loading state per file while processing.+ */+ fileProcessor: (file: File) => Promise<ContentBlock | null>;+}++export interface TextInputRef {+ focus: () => void;+}++/**+ * A text input component with file attachment support and autocomplete functionality.+ *+ * @param root0 - The component props.+ * @param root0.onSend - Callback function to handle sending content blocks.+ * @param root0.placeholder - Placeholder text for the input field.+ * @param root0.autoComplete - Function to provide autocomplete suggestions.+ * @param root0.disabled - Whether the input is disabled.+ * @param root0.className - Additional CSS classes for styling.+ * @returns A TextInput component.+ */+export const TextInput = forwardRef<TextInputRef, TextInputProps>(+ (+ {+ onSend,+ placeholder,+ autoComplete,+ disabled = false,+ className,+ allowedInputTypes,+ fileProcessor,+ },+ ref,+ ) => {+ const { t } = useTranslation();+ const defaultPlaceholder = placeholder || t('chat.inputPlaceholder');+ const [value, setValue] = useState('');+ const [files, setFiles] = useState<ProcessedFile[]>([]);+ const [isFocused, setIsFocused] = useState(false);+ const textareaRef = useRef<HTMLTextAreaElement>(null);+ const fileInputRef = useRef<HTMLInputElement>(null);+ const measureRef = useRef<HTMLSpanElement>(null);++ // Derive the accept attribute for the hidden file input+ const acceptAttr =+ allowedInputTypes && allowedInputTypes.length > 0+ ? allowedInputTypes.join(',')+ : undefined;++ // Attachment button is disabled when the model explicitly accepts no file types+ const attachDisabled =+ disabled || (allowedInputTypes !== undefined && allowedInputTypes.length === 0);++ // Whether any file is still being processed (block send until all done)+ const hasProcessing = files.some((f) => f.status === 'processing');++ useImperativeHandle(ref, () => ({+ focus: () => textareaRef.current?.focus(),+ }));++ // Calculate autocomplete suggestion using useMemo+ const suggestion = useMemo(() => {+ if (autoComplete && value && isFocused) {+ const result = autoComplete(value);+ // Only return the part after the cursor+ if (result && result.startsWith(value)) {+ return result.substring(value.length);+ }+ return result || '';+ }+ return '';+ }, [value, autoComplete, isFocused]);++ const handleKeyDown = (e: KeyboardEvent<HTMLTextAreaElement>) => {+ // Tab key to select autocomplete+ if (e.key === 'Tab' && suggestion) {+ e.preventDefault();+ setValue(value + suggestion);+ return;+ }++ // Enter to send message, Shift+Enter for new line+ if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) {+ e.preventDefault();+ handleSend();+ }+ };++ const handleSend = () => {+ if (!value.trim() || disabled || hasProcessing) return;++ const blocks: ContentBlock[] = [];++ // Add text block+ if (value.trim()) {+ const textBlock: TextBlock = {+ id: crypto.randomUUID(),+ type: 'text',+ text: value.trim(),+ };+ blocks.push(textBlock);+ }++ // Add processed file blocks (skip errored ones)+ files.forEach((f) => {+ if (f.status === 'done' && f.block) {+ blocks.push(f.block);+ }+ });++ onSend?.(blocks);+ setValue('');+ setFiles([]);+ };++ const handleFileSelect = (e: React.ChangeEvent<HTMLInputElement>) => {+ if (!e.target.files) return;+ const selected = Array.from(e.target.files);+ // Reset input value so the same file can be re-selected+ e.target.value = '';++ selected.forEach((file) => {+ // Insert a placeholder in processing state+ const placeholder: ProcessedFile = {+ name: file.name,+ status: 'processing',+ block: null,+ };++ setFiles((prev) => [...prev, placeholder]);++ fileProcessor(file)+ .then((block) => {+ setFiles(+ (prev) =>+ prev+ .map((f) =>+ f.name === file.name && f.status === 'processing'+ ? block+ ? { ...f, status: 'done', block }+ : null+ : f,+ )+ .filter(Boolean) as ProcessedFile[],+ );+ })+ .catch(() => {+ // Caller is responsible for error notification (e.g. toast).+ // Just silently remove the entry here.+ setFiles((prev) =>+ prev.filter(+ (f) => !(f.name === file.name && f.status === 'processing'),+ ),+ );+ });+ });+ };++ return (+ <div+ id="tour-chat-input"+ className={cn(+ 'flex flex-col gap-2 rounded-2xl border bg-background p-3',+ className,+ )}+ data-tour="chat-input"+ >+ {/* File list */}+ {files.length > 0 && (+ <div className="flex flex-wrap gap-2">+ {files.map((file, index) => (+ <div+ key={index}+ className="flex items-center gap-1 rounded bg-muted px-2 py-1 text-sm"+ >+ {file.status === 'processing' && (+ <Loader2 className="h-3 w-3 shrink-0 animate-spin text-muted-foreground" />+ )}+ <span className="max-w-[200px] truncate">{file.name}</span>+ <button+ onClick={() => setFiles(files.filter((_, i) => i !== index))}+ className="text-muted-foreground hover:text-foreground"+ >+ <X className="h-3 w-3" />+ </button>+ </div>+ ))}+ </div>+ )}++ {/* Input area */}+ <div className="relative">+ <div className="relative">+ {/* Hidden measurement element */}+ <span+ ref={measureRef}+ className="invisible absolute whitespace-pre text-sm"+ style={{+ font: 'inherit',+ padding: '0.5rem 0.75rem',+ lineHeight: '1.5em',+ }}+ >+ {value}+ </span>++ <textarea+ ref={textareaRef}+ value={value}+ onChange={(e) => setValue(e.target.value)}+ onKeyDown={handleKeyDown}+ onFocus={() => setIsFocused(true)}+ onBlur={() => setIsFocused(false)}+ placeholder={defaultPlaceholder}+ disabled={disabled}+ rows={3}+ className="w-full resize-none rounded-md border-0 bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"+ style={{+ maxHeight: 'calc(1.5em * 6)',+ lineHeight: '1.5em',+ overflowY: 'auto',+ }}+ autoFocus={true}+ />++ {/* Autocomplete suggestion - using absolute positioning overlay */}+ {suggestion && isFocused && (+ <div+ className="pointer-events-none absolute left-0 top-0 px-3 py-2 text-sm"+ style={{+ lineHeight: '1.5em',+ whiteSpace: 'pre-wrap',+ wordWrap: 'break-word',+ }}+ >+ {/* Invisible input text */}+ <span className="invisible">{value}</span>+ {/* Suggestion text */}+ <span className="text-muted-foreground">{suggestion}</span>+ {/* Tab hint */}+ <span className="ml-2 text-xs text-muted-foreground/60">+ <Kbd>Tab</Kbd> {t('textInput.toComplete')}+ </span>+ </div>+ )}+ </div>++ {/* Button row */}+ <div className="mt-2 flex items-center justify-between">+ <div>+ <span+ className={`text-muted-foreground text-sm ${!isFocused && 'hidden'}`}+ >+ <Kbd>{isMac() ? '⇧' : 'Shift'}</Kbd> + <Kbd>Enter</Kbd>{' '}+ {t('textInput.newLine')}+ </span>+ </div>+ <div className="flex gap-2">+ {/* Attachment button */}+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ type="button"+ variant="ghost"+ size="icon-sm"+ onClick={() => fileInputRef.current?.click()}+ disabled={attachDisabled}+ className="shrink-0 rounded-full"+ >+ <Paperclip className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ {attachDisabled && allowedInputTypes?.length === 0+ ? t('textInput.attachNotSupported')+ : t('textInput.attach')}+ </TooltipContent>+ </Tooltip>++ {/* Send button */}+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ type="button"+ onClick={handleSend}+ disabled={disabled || !value.trim() || hasProcessing}+ size="icon-sm"+ className="shrink-0 rounded-full"+ >+ <Send className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>{t('textInput.send')}</TooltipContent>+ </Tooltip>++ {/* Hidden file input */}+ <input+ ref={fileInputRef}+ type="file"+ multiple+ accept={acceptAttr}+ onChange={handleFileSelect}+ className="hidden"+ />+ </div>+ </div>+ </div>+ </div>+ );+ },+);++TextInput.displayName = 'TextInput';diff --git a/examples/web_ui/frontend/src/components/chat/tool-renderers/BashRenderer.tsx b/examples/web_ui/frontend/src/components/chat/tool-renderers/BashRenderer.tsxnew file mode 100644index 000000000..194338ae3--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/tool-renderers/BashRenderer.tsx@@ -0,0 +1,41 @@+import type { ToolRenderer } from './types';++function parseInput(input: string): Record<string, unknown> {+ try {+ return JSON.parse(input);+ } catch {+ return {};+ }+}++export const BashRenderer: ToolRenderer = {+ getDisplayName: () => 'Bash',++ renderCallArgs: (call) => {+ const { command } = parseInput(call.input) as { command?: string };+ return command || call.input;+ },++ renderResult: (call, result, t) => {+ if (call.state === 'asking' || !result || result.state === 'running') {+ return t('common.running');+ }+ if (result.state === 'interrupted') {+ return t('common.interrupted');+ }+ return undefined;+ },++ renderConfirmBody: (call) => {+ const { command, description } = parseInput(call.input) as {+ command?: string;+ description?: string;+ };+ return (+ <div className="w-full max-w-full overflow-hidden text-ellipsis truncate">+ <div className="text-secondary-foreground font-mono">{command}</div>+ {description && <div className="text-muted-foreground">{description}</div>}+ </div>+ );+ },+};diff --git a/examples/web_ui/frontend/src/components/chat/tool-renderers/DefaultRenderer.tsx b/examples/web_ui/frontend/src/components/chat/tool-renderers/DefaultRenderer.tsxnew file mode 100644index 000000000..a7a85c80d--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/tool-renderers/DefaultRenderer.tsx@@ -0,0 +1,76 @@+import type { ToolCallBlock, ToolResultBlock } from '@agentscope-ai/agentscope/message';+import * as mime from 'mime-types';+import type { ReactNode } from 'react';++import type { TFunction } from './types';++function processToolInput(input: string): string {+ try {+ const obj = JSON.parse(input);+ const entries = Object.entries(obj).map(([k, v]) => `${k}: "${v}"`);+ return entries.join('\n');+ } catch {+ return input;+ }+}++export function defaultGetDisplayName(call: ToolCallBlock): string {+ return call.name;+}++export function defaultRenderCallArgs(call: ToolCallBlock): ReactNode {+ if (call.input.length <= 2) return null;+ return processToolInput(call.input);+}++export function defaultRenderResult(+ call: ToolCallBlock,+ result: ToolResultBlock,+ t: TFunction,+ maxLines = 7,+): ReactNode {+ if (call.state === 'asking' || !result || result.state === 'running') {+ return <span>{t('common.running')} ...</span>;+ }+ if (result.state === 'interrupted') {+ return <span>{t('common.interrupted')}</span>;+ }++ let resultStr: string;+ if (typeof result.output === 'string') {+ resultStr = result.output;+ } else {+ const parts = result.output.map((b) => {+ if (b.type === 'text') return b.text;+ const mainType = b.source.media_type.split('/')[0].toUpperCase();+ const ext = (mime.extension(b.source.media_type) || 'bin').toLowerCase();+ return `[${mainType}.${ext}]`;+ });+ resultStr = parts.join('\n');+ }++ let lines = resultStr.split('\n');+ if (lines.length > maxLines) {+ const total = lines.length;+ lines = lines.slice(0, maxLines);+ lines.push(t('tool.moreLines', { count: total - maxLines }));+ }++ return (+ <div className="flex flex-col flex-1 min-w-0">+ {lines.map((line, i) => (+ <div key={i} className="truncate">+ {line}+ </div>+ ))}+ </div>+ );+}++export function defaultRenderConfirmBody(call: ToolCallBlock): ReactNode {+ return (+ <div className="w-full max-w-full overflow-hidden text-ellipsis truncate">+ <div className="text-secondary-foreground">{call.input}</div>+ </div>+ );+}diff --git a/examples/web_ui/frontend/src/components/chat/tool-renderers/ReadRenderer.tsx b/examples/web_ui/frontend/src/components/chat/tool-renderers/ReadRenderer.tsxnew file mode 100644index 000000000..e9c60f4cb--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/tool-renderers/ReadRenderer.tsx@@ -0,0 +1,27 @@+import type { ToolRenderer } from './types';++function parseInput(input: string): Record<string, unknown> {+ try {+ return JSON.parse(input);+ } catch {+ return {};+ }+}++export const ReadRenderer: ToolRenderer = {+ getDisplayName: () => 'Read',++ renderCallArgs: (call) => {+ const { file_path } = parseInput(call.input) as { file_path?: string };+ return file_path || call.input;+ },++ renderConfirmBody: (call) => {+ const { file_path } = parseInput(call.input) as { file_path?: string };+ return (+ <div className="w-full max-w-full overflow-hidden text-ellipsis truncate">+ <div className="text-secondary-foreground">{file_path}</div>+ </div>+ );+ },+};diff --git a/examples/web_ui/frontend/src/components/chat/tool-renderers/SearchRenderer.tsx b/examples/web_ui/frontend/src/components/chat/tool-renderers/SearchRenderer.tsxnew file mode 100644index 000000000..d89943ecf--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/tool-renderers/SearchRenderer.tsx@@ -0,0 +1,18 @@+import type { ToolRenderer } from './types';++function parseInput(input: string): Record<string, unknown> {+ try {+ return JSON.parse(input);+ } catch {+ return {};+ }+}++export const SearchRenderer: ToolRenderer = {+ getDisplayName: (call) => call.name,++ renderCallArgs: (call) => {+ const { pattern } = parseInput(call.input) as { pattern?: string };+ return pattern || call.input;+ },+};diff --git a/examples/web_ui/frontend/src/components/chat/tool-renderers/WriteRenderer.tsx b/examples/web_ui/frontend/src/components/chat/tool-renderers/WriteRenderer.tsxnew file mode 100644index 000000000..1d858b78c--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/tool-renderers/WriteRenderer.tsx@@ -0,0 +1,27 @@+import type { ToolRenderer } from './types';++function parseInput(input: string): Record<string, unknown> {+ try {+ return JSON.parse(input);+ } catch {+ return {};+ }+}++export const WriteRenderer: ToolRenderer = {+ getDisplayName: (call) => call.name,++ renderCallArgs: (call) => {+ const { file_path } = parseInput(call.input) as { file_path?: string };+ return file_path || call.input;+ },++ renderConfirmBody: (call) => {+ const { file_path } = parseInput(call.input) as { file_path?: string };+ return (+ <div className="w-full max-w-full overflow-hidden text-ellipsis truncate">+ <div className="text-secondary-foreground">{file_path}</div>+ </div>+ );+ },+};diff --git a/examples/web_ui/frontend/src/components/chat/tool-renderers/index.ts b/examples/web_ui/frontend/src/components/chat/tool-renderers/index.tsnew file mode 100644index 000000000..b03d3c4da--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/tool-renderers/index.ts@@ -0,0 +1,51 @@+import type { ToolCallBlock, ToolResultBlock } from '@agentscope-ai/agentscope/message';+import type { ReactNode } from 'react';++import { BashRenderer } from './BashRenderer';+import {+ defaultGetDisplayName,+ defaultRenderCallArgs,+ defaultRenderResult,+ defaultRenderConfirmBody,+} from './DefaultRenderer';+import { ReadRenderer } from './ReadRenderer';+import { SearchRenderer } from './SearchRenderer';+import type { TFunction, ToolRenderer } from './types';+import { WriteRenderer } from './WriteRenderer';++const renderers: Record<string, ToolRenderer> = {+ Bash: BashRenderer,+ Read: ReadRenderer,+ Write: WriteRenderer,+ Edit: WriteRenderer,+ Glob: SearchRenderer,+ Grep: SearchRenderer,+};++function getRenderer(toolName: string): ToolRenderer {+ return renderers[toolName] ?? {};+}++export function getDisplayName(call: ToolCallBlock, t: TFunction): string {+ const r = getRenderer(call.name);+ return r.getDisplayName?.(call, t) ?? defaultGetDisplayName(call);+}++export function renderCallArgs(call: ToolCallBlock, t: TFunction): ReactNode {+ const r = getRenderer(call.name);+ return r.renderCallArgs?.(call, t) ?? defaultRenderCallArgs(call);+}++export function renderResult(+ call: ToolCallBlock,+ result: ToolResultBlock,+ t: TFunction,+): ReactNode {+ const r = getRenderer(call.name);+ return r.renderResult?.(call, result, t) ?? defaultRenderResult(call, result, t);+}++export function renderConfirmBody(call: ToolCallBlock, t: TFunction): ReactNode {+ const r = getRenderer(call.name);+ return r.renderConfirmBody?.(call, t) ?? defaultRenderConfirmBody(call);+}diff --git a/examples/web_ui/frontend/src/components/chat/tool-renderers/types.ts b/examples/web_ui/frontend/src/components/chat/tool-renderers/types.tsnew file mode 100644index 000000000..07e87523a--- /dev/null+++ b/examples/web_ui/frontend/src/components/chat/tool-renderers/types.ts@@ -0,0 +1,11 @@+import type { ToolCallBlock, ToolResultBlock } from '@agentscope-ai/agentscope/message';+import type { ReactNode } from 'react';++export type TFunction = (key: string, params?: Record<string, unknown>) => string;++export interface ToolRenderer {+ getDisplayName?: (call: ToolCallBlock, t: TFunction) => string;+ renderCallArgs?: (call: ToolCallBlock, t: TFunction) => ReactNode;+ renderResult?: (call: ToolCallBlock, result: ToolResultBlock, t: TFunction) => ReactNode;+ renderConfirmBody?: (call: ToolCallBlock, t: TFunction) => ReactNode;+}diff --git a/examples/web_ui/frontend/src/components/dialog/AddSkillDialog.tsx b/examples/web_ui/frontend/src/components/dialog/AddSkillDialog.tsxnew file mode 100644index 000000000..53234533b--- /dev/null+++ b/examples/web_ui/frontend/src/components/dialog/AddSkillDialog.tsx@@ -0,0 +1,76 @@+import { useState, type ReactNode } from 'react';++import { Button } from '@/components/ui/button';+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+} from '@/components/ui/dialog';+import { Input } from '@/components/ui/input';+import { Label } from '@/components/ui/label';++interface AddSkillDialogProps {+ children: ReactNode;+ onAdd: (skillPath: string) => Promise<void>;+}++export function AddSkillDialog({ children, onAdd }: AddSkillDialogProps) {+ const [open, setOpen] = useState(false);+ const [skillPath, setSkillPath] = useState('');+ const [loading, setLoading] = useState(false);+ const [error, setError] = useState<string | null>(null);++ const handleSubmit = async () => {+ if (!skillPath.trim()) return;+ setLoading(true);+ setError(null);+ try {+ await onAdd(skillPath.trim());+ setSkillPath('');+ setOpen(false);+ } catch (e) {+ setError((e as Error).message);+ } finally {+ setLoading(false);+ }+ };++ return (+ <Dialog open={open} onOpenChange={setOpen}>+ <DialogTrigger asChild>{children}</DialogTrigger>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>Add Skill</DialogTitle>+ <DialogDescription>+ Enter the path to a skill directory to add it to the workspace.+ </DialogDescription>+ </DialogHeader>+ <div className="flex flex-col gap-y-2">+ <Label htmlFor="skill-path">Skill Path</Label>+ <Input+ id="skill-path"+ placeholder="/path/to/skill"+ value={skillPath}+ onChange={(e) => setSkillPath(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === 'Enter') handleSubmit();+ }}+ />+ {error && <p className="text-destructive text-sm">{error}</p>}+ </div>+ <DialogFooter>+ <Button variant="outline" onClick={() => setOpen(false)} disabled={loading}>+ Cancel+ </Button>+ <Button onClick={handleSubmit} disabled={loading || !skillPath.trim()}>+ {loading ? 'Adding…' : 'Add'}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+}diff --git a/examples/web_ui/frontend/src/components/dialog/AgentDialog.tsx b/examples/web_ui/frontend/src/components/dialog/AgentDialog.tsxnew file mode 100644index 000000000..fb0469127--- /dev/null+++ b/examples/web_ui/frontend/src/components/dialog/AgentDialog.tsx@@ -0,0 +1,251 @@+import { PlusCircle } from 'lucide-react';+import { useState } from 'react';+import { useTranslation } from 'react-i18next';++import { Button } from '@/components/ui/button';+import { Checkbox } from '@/components/ui/checkbox';+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+} from '@/components/ui/dialog';+import {+ Field,+ FieldDescription,+ FieldGroup,+ FieldLabel,+ FieldLegend,+ FieldSeparator,+ FieldSet,+} from '@/components/ui/field';+import { Input } from '@/components/ui/input';+import { Textarea } from '@/components/ui/textarea';+import { useAgents } from '@/hooks/useAgents';++interface Props {+ onCreated?: () => void;+ triggerId?: string;+}++export function AgentDialog({ onCreated, triggerId }: Props) {+ const { create } = useAgents();+ const { t } = useTranslation();+ const [open, setOpen] = useState(false);+ const [submitting, setSubmitting] = useState(false);++ const [name, setName] = useState('');+ const [systemPrompt, setSystemPrompt] = useState("You're a helpful assistant.");+ const [triggerRatio, setTriggerRatio] = useState('');+ const [reserveRatio, setReserveRatio] = useState('');+ const [toolResultLimit, setToolResultLimit] = useState('');+ const [compressionPrompt, setCompressionPrompt] = useState('');+ const [summaryTemplate, setSummaryTemplate] = useState('');+ const [maxIters, setMaxIters] = useState('');+ const [stopOnReject, setStopOnReject] = useState(false);++ const handleSubmit = async () => {+ const context_config = {+ ...(triggerRatio !== '' && { trigger_ratio: parseFloat(triggerRatio) }),+ ...(reserveRatio !== '' && { reserve_ratio: parseFloat(reserveRatio) }),+ ...(toolResultLimit !== '' && { tool_result_limit: parseInt(toolResultLimit) }),+ ...(compressionPrompt !== '' && { compression_prompt: compressionPrompt }),+ ...(summaryTemplate !== '' && { summary_template: summaryTemplate }),+ };+ const react_config = {+ ...(maxIters !== '' && { max_iters: parseInt(maxIters) }),+ stop_on_reject: stopOnReject,+ };+ setSubmitting(true);+ try {+ await create({ name, system_prompt: systemPrompt, context_config, react_config });+ setOpen(false);+ onCreated?.();+ } finally {+ setSubmitting(false);+ }+ };++ return (+ <Dialog open={open} onOpenChange={setOpen}>+ <DialogTrigger asChild>+ <Button id={triggerId} size="sm">+ <PlusCircle />+ <span>{t('dialog-agent-create.trigger')}</span>+ </Button>+ </DialogTrigger>+ <DialogContent className="max-w-lg max-h-[80vh] overflow-y-auto">+ <DialogHeader>+ <DialogTitle>{t('dialog-agent-create.title')}</DialogTitle>+ </DialogHeader>+ <FieldGroup>+ <FieldSet>+ <FieldLegend>{t('dialog-agent-create.identity.legend')}</FieldLegend>+ <FieldDescription>+ {t('dialog-agent-create.identity.description')}+ </FieldDescription>+ <FieldGroup>+ <Field>+ <FieldLabel htmlFor="agent-name">+ {t('dialog-agent-create.identity.name.label')}+ </FieldLabel>+ <Input+ id="agent-name"+ placeholder={t('dialog-agent-create.identity.name.placeholder')}+ value={name}+ onChange={(e) => setName(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="agent-prompt">+ {t('dialog-agent-create.identity.systemPrompt.label')}+ </FieldLabel>+ <Textarea+ id="agent-prompt"+ rows={4}+ placeholder={t(+ 'dialog-agent-create.identity.systemPrompt.placeholder',+ )}+ value={systemPrompt}+ onChange={(e) => setSystemPrompt(e.target.value)}+ />+ </Field>+ </FieldGroup>+ </FieldSet>+ <FieldSeparator />+ <FieldSet>+ <FieldLegend>{t('dialog-agent-create.contextConfig.legend')}</FieldLegend>+ <FieldDescription>+ {t('dialog-agent-create.contextConfig.description')}+ </FieldDescription>+ <FieldGroup>+ <Field>+ <FieldLabel htmlFor="trigger-ratio">+ {t('dialog-agent-create.contextConfig.triggerRatio.label')}+ </FieldLabel>+ <Input+ id="trigger-ratio"+ type="number"+ min={0.01}+ max={0.89}+ step={0.01}+ placeholder={t(+ 'dialog-agent-create.contextConfig.triggerRatio.placeholder',+ )}+ value={triggerRatio}+ onChange={(e) => setTriggerRatio(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="reserve-ratio">+ {t('dialog-agent-create.contextConfig.reserveRatio.label')}+ </FieldLabel>+ <Input+ id="reserve-ratio"+ type="number"+ min={0.01}+ max={0.89}+ step={0.01}+ placeholder={t(+ 'dialog-agent-create.contextConfig.reserveRatio.placeholder',+ )}+ value={reserveRatio}+ onChange={(e) => setReserveRatio(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="tool-result-limit">+ {t('dialog-agent-create.contextConfig.toolResultLimit.label')}+ </FieldLabel>+ <Input+ id="tool-result-limit"+ type="number"+ min={100}+ step={100}+ placeholder={t(+ 'dialog-agent-create.contextConfig.toolResultLimit.placeholder',+ )}+ value={toolResultLimit}+ onChange={(e) => setToolResultLimit(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="compression-prompt">+ {t('dialog-agent-create.contextConfig.compressionPrompt.label')}+ </FieldLabel>+ <Textarea+ id="compression-prompt"+ rows={2}+ placeholder={t(+ 'dialog-agent-create.contextConfig.compressionPrompt.placeholder',+ )}+ value={compressionPrompt}+ onChange={(e) => setCompressionPrompt(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="summary-template">+ {t('dialog-agent-create.contextConfig.summaryTemplate.label')}+ </FieldLabel>+ <Textarea+ id="summary-template"+ rows={2}+ placeholder={t(+ 'dialog-agent-create.contextConfig.summaryTemplate.placeholder',+ )}+ value={summaryTemplate}+ onChange={(e) => setSummaryTemplate(e.target.value)}+ />+ </Field>+ </FieldGroup>+ </FieldSet>+ <FieldSeparator />+ <FieldSet>+ <FieldLegend>{t('dialog-agent-create.reactConfig.legend')}</FieldLegend>+ <FieldDescription>+ {t('dialog-agent-create.reactConfig.description')}+ </FieldDescription>+ <FieldGroup>+ <Field>+ <FieldLabel htmlFor="max-iters">+ {t('dialog-agent-create.reactConfig.maxIters.label')}+ </FieldLabel>+ <Input+ id="max-iters"+ type="number"+ min={1}+ step={1}+ placeholder={t(+ 'dialog-agent-create.reactConfig.maxIters.placeholder',+ )}+ value={maxIters}+ onChange={(e) => setMaxIters(e.target.value)}+ />+ </Field>+ <Field orientation="horizontal">+ <Checkbox+ id="stop-on-reject"+ checked={stopOnReject}+ onCheckedChange={(v) => setStopOnReject(v === true)}+ />+ <FieldLabel htmlFor="stop-on-reject" className="font-normal">+ {t('dialog-agent-create.reactConfig.stopOnReject.label')}+ </FieldLabel>+ </Field>+ </FieldGroup>+ </FieldSet>+ <Field orientation="horizontal">+ <Button onClick={handleSubmit} disabled={!name.trim() || submitting}>+ <PlusCircle />+ {submitting ? t('common.creating') : t('common.create')}+ </Button>+ <Button variant="outline" onClick={() => setOpen(false)}>+ {t('common.cancel')}+ </Button>+ </Field>+ </FieldGroup>+ </DialogContent>+ </Dialog>+ );+}diff --git a/examples/web_ui/frontend/src/components/dialog/CreateCredentialDialog.tsx b/examples/web_ui/frontend/src/components/dialog/CreateCredentialDialog.tsxnew file mode 100644index 000000000..7bcd0b5d1--- /dev/null+++ b/examples/web_ui/frontend/src/components/dialog/CreateCredentialDialog.tsx@@ -0,0 +1,137 @@+import { useState, useEffect } from 'react';++import { credentialApi } from '@/api';+import type { CredentialSchema } from '@/api';+import { SchemaForm } from '@/components/form/SchemaForm';+import { Button } from '@/components/ui/button';+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ DialogFooter,+} from '@/components/ui/dialog';+import { Field, FieldGroup, FieldLabel } from '@/components/ui/field.tsx';+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from '@/components/ui/select';+import { useCredentials } from '@/hooks/useCredentials';+import { useTranslation } from '@/i18n/useI18n.ts';++interface Props {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ onCreated?: () => void;+ defaultType?: string;+}++export function CreateCredentialDialog({ open, onOpenChange, onCreated, defaultType }: Props) {+ const { create } = useCredentials();+ const { t } = useTranslation();+ const [schemas, setSchemas] = useState<CredentialSchema[]>([]);+ const [loadingSchemas, setLoadingSchemas] = useState(false);+ const [selectedType, setSelectedType] = useState('');+ const [values, setValues] = useState<Record<string, string | boolean>>({});+ const [submitting, setSubmitting] = useState(false);++ useEffect(() => {+ if (!open) return;+ setLoadingSchemas(true);+ credentialApi+ .schemas()+ .then((res) => {+ setSchemas(res.schemas);+ if (res.schemas.length > 0) {+ const first = (res.schemas[0].properties.type?.const as string) ?? '';+ setSelectedType(defaultType ?? first);+ }+ })+ .finally(() => setLoadingSchemas(false));+ }, [open, defaultType]);++ const selectedSchema = schemas.find(+ (s) => (s.properties.type?.const as string) === selectedType,+ );++ const handleTypeChange = (type: string) => {+ setSelectedType(type);+ setValues({});+ };++ const handleSubmit = async () => {+ if (!selectedSchema) return;+ setSubmitting(true);+ try {+ const data: Record<string, unknown> = { type: selectedType };+ for (const [key, prop] of Object.entries(selectedSchema.properties)) {+ if (key === 'id' || key === 'type' || prop.const !== undefined) continue;+ const val = values[key];+ if (val !== undefined && val !== '') data[key] = val;+ }+ await create({ data });+ onOpenChange(false);+ onCreated?.();+ } finally {+ setSubmitting(false);+ }+ };++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>{t('dialog-credential-create.title')}</DialogTitle>+ </DialogHeader>+ <FieldGroup>+ <Field>+ <FieldLabel>{t('dialog-credential-create.selectType')}</FieldLabel>+ <Select+ value={selectedType}+ onValueChange={handleTypeChange}+ disabled={loadingSchemas}+ >+ <SelectTrigger>+ <SelectValue+ placeholder={+ loadingSchemas+ ? t('common.loading')+ : t('dialog-credential-create.selectTypePlaceholder')+ }+ />+ </SelectTrigger>+ <SelectContent>+ {schemas.map((s) => (+ <SelectItem+ key={s.properties.type?.const as string}+ value={s.properties.type?.const as string}+ >+ {s.title}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </Field>+ {selectedSchema && (+ <SchemaForm+ schema={selectedSchema}+ values={values}+ onChange={(key, val) => setValues((prev) => ({ ...prev, [key]: val }))}+ />+ )}+ </FieldGroup>+ <DialogFooter>+ <Button variant="outline" onClick={() => onOpenChange(false)}>+ {t('common.cancel')}+ </Button>+ <Button onClick={handleSubmit} disabled={submitting || !selectedSchema}>+ {submitting ? t('common.creating') : t('common.create')}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+}diff --git a/examples/web_ui/frontend/src/components/dialog/DeleteAgentDialog.tsx b/examples/web_ui/frontend/src/components/dialog/DeleteAgentDialog.tsxnew file mode 100644index 000000000..b51101616--- /dev/null+++ b/examples/web_ui/frontend/src/components/dialog/DeleteAgentDialog.tsx@@ -0,0 +1,37 @@+import { useTranslation } from 'react-i18next';++import { DeleteDialog } from './DeleteDialog';+import type { AgentRecord } from '@/api';+import { useAgents } from '@/hooks/useAgents';++interface Props {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ agent: AgentRecord;+ onDeleted?: () => void;+}++export function DeleteAgentDialog({ open, onOpenChange, agent, onDeleted }: Props) {+ const { remove } = useAgents();+ const { t } = useTranslation();++ return (+ <DeleteDialog+ open={open}+ onOpenChange={onOpenChange}+ title={t('dialog-agent-delete.title')}+ description={+ <>+ <span className="font-medium text-foreground">{agent.data.name}</span>+ {' — '}+ {t('dialog-agent-delete.description')}+ </>+ }+ confirmLabel={t('dialog-agent-delete.confirm')}+ onConfirm={async () => {+ await remove(agent.id);+ onDeleted?.();+ }}+ />+ );+}diff --git a/examples/web_ui/frontend/src/components/dialog/DeleteDialog.tsx b/examples/web_ui/frontend/src/components/dialog/DeleteDialog.tsxnew file mode 100644index 000000000..e502ee87b--- /dev/null+++ b/examples/web_ui/frontend/src/components/dialog/DeleteDialog.tsx@@ -0,0 +1,70 @@+import { Loader2, CheckCircle, CircleAlert } from 'lucide-react';+import { useState } from 'react';+import type { ReactNode } from 'react';++import { Button } from '@/components/ui/button';+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ DialogDescription,+ DialogFooter,+} from '@/components/ui/dialog';+import { useTranslation } from '@/i18n/useI18n';++interface Props {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ title: string;+ description?: ReactNode;+ confirmLabel?: string;+ onConfirm: () => Promise<void>;+}++export function DeleteDialog({+ open,+ onOpenChange,+ title,+ description,+ confirmLabel,+ onConfirm,+}: Props) {+ const { t } = useTranslation();+ const [deleting, setDeleting] = useState(false);++ const handleConfirm = async () => {+ setDeleting(true);+ try {+ await onConfirm();+ onOpenChange(false);+ } finally {+ setDeleting(false);+ }+ };++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="max-w-sm">+ <DialogHeader>+ <DialogTitle>{title}</DialogTitle>+ {description && <DialogDescription>{description}</DialogDescription>}+ </DialogHeader>+ <DialogFooter>+ <Button variant="ghost" onClick={() => onOpenChange(false)} disabled={deleting}>+ <CircleAlert className="size-3.5" />+ {t('common.cancel')}+ </Button>+ <Button onClick={handleConfirm} disabled={deleting} autoFocus>+ {deleting ? (+ <Loader2 className="size-3.5 animate-spin" />+ ) : (+ <CheckCircle className="size-3.5" />+ )}+ {confirmLabel ?? t('common.confirm')}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+}diff --git a/examples/web_ui/frontend/src/components/dialog/EditAgentDialog.tsx b/examples/web_ui/frontend/src/components/dialog/EditAgentDialog.tsxnew file mode 100644index 000000000..1e5de73fc--- /dev/null+++ b/examples/web_ui/frontend/src/components/dialog/EditAgentDialog.tsx@@ -0,0 +1,258 @@+import { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';++import type { AgentRecord } from '@/api';+import { Button } from '@/components/ui/button';+import { Checkbox } from '@/components/ui/checkbox';+import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog';+import {+ Field,+ FieldDescription,+ FieldGroup,+ FieldLabel,+ FieldLegend,+ FieldSeparator,+ FieldSet,+} from '@/components/ui/field';+import { Input } from '@/components/ui/input';+import { Textarea } from '@/components/ui/textarea';+import { useAgents } from '@/hooks/useAgents';++interface Props {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ agent: AgentRecord;+ onUpdated?: () => void;+}++export function EditAgentDialog({ open, onOpenChange, agent, onUpdated }: Props) {+ const { update } = useAgents();+ const { t } = useTranslation();+ const [submitting, setSubmitting] = useState(false);++ const [name, setName] = useState('');+ const [systemPrompt, setSystemPrompt] = useState('');+ const [triggerRatio, setTriggerRatio] = useState('');+ const [reserveRatio, setReserveRatio] = useState('');+ const [toolResultLimit, setToolResultLimit] = useState('');+ const [compressionPrompt, setCompressionPrompt] = useState('');+ const [summaryTemplate, setSummaryTemplate] = useState('');+ const [maxIters, setMaxIters] = useState('');+ const [stopOnReject, setStopOnReject] = useState(false);++ useEffect(() => {+ if (!open) return;+ const d = agent.data;+ setName(d.name);+ setSystemPrompt(d.system_prompt);+ setTriggerRatio(d.context_config?.trigger_ratio?.toString() ?? '');+ setReserveRatio(d.context_config?.reserve_ratio?.toString() ?? '');+ setToolResultLimit(d.context_config?.tool_result_limit?.toString() ?? '');+ setCompressionPrompt(d.context_config?.compression_prompt ?? '');+ setSummaryTemplate(d.context_config?.summary_template ?? '');+ setMaxIters(d.react_config?.max_iters?.toString() ?? '');+ setStopOnReject(d.react_config?.stop_on_reject ?? false);+ }, [open, agent]);++ const handleSubmit = async () => {+ const context_config = {+ ...(triggerRatio !== '' && { trigger_ratio: parseFloat(triggerRatio) }),+ ...(reserveRatio !== '' && { reserve_ratio: parseFloat(reserveRatio) }),+ ...(toolResultLimit !== '' && { tool_result_limit: parseInt(toolResultLimit) }),+ ...(compressionPrompt !== '' && { compression_prompt: compressionPrompt }),+ ...(summaryTemplate !== '' && { summary_template: summaryTemplate }),+ };+ const react_config = {+ ...(maxIters !== '' && { max_iters: parseInt(maxIters) }),+ stop_on_reject: stopOnReject,+ };+ setSubmitting(true);+ try {+ await update(agent.id, {+ name,+ system_prompt: systemPrompt,+ context_config,+ react_config,+ });+ onOpenChange(false);+ onUpdated?.();+ } finally {+ setSubmitting(false);+ }+ };++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="max-w-lg max-h-[80vh] overflow-y-auto">+ <DialogHeader>+ <DialogTitle>{t('dialog-agent-edit.title')}</DialogTitle>+ </DialogHeader>+ <FieldGroup>+ <FieldSet>+ <FieldLegend>{t('dialog-agent-create.identity.legend')}</FieldLegend>+ <FieldDescription>+ {t('dialog-agent-create.identity.description')}+ </FieldDescription>+ <FieldGroup>+ <Field>+ <FieldLabel htmlFor="edit-name">+ {t('dialog-agent-create.identity.name.label')}+ </FieldLabel>+ <Input+ id="edit-name"+ placeholder={t('dialog-agent-create.identity.name.placeholder')}+ value={name}+ onChange={(e) => setName(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="edit-prompt">+ {t('dialog-agent-create.identity.systemPrompt.label')}+ </FieldLabel>+ <Textarea+ id="edit-prompt"+ rows={4}+ placeholder={t(+ 'dialog-agent-create.identity.systemPrompt.placeholder',+ )}+ value={systemPrompt}+ onChange={(e) => setSystemPrompt(e.target.value)}+ />+ </Field>+ </FieldGroup>+ </FieldSet>+ <FieldSeparator />+ <FieldSet>+ <FieldLegend>{t('dialog-agent-create.contextConfig.legend')}</FieldLegend>+ <FieldDescription>+ {t('dialog-agent-create.contextConfig.description')}+ </FieldDescription>+ <FieldGroup>+ <Field>+ <FieldLabel htmlFor="edit-trigger-ratio">+ {t('dialog-agent-create.contextConfig.triggerRatio.label')}+ </FieldLabel>+ <Input+ id="edit-trigger-ratio"+ type="number"+ min={0.01}+ max={0.89}+ step={0.01}+ placeholder={t(+ 'dialog-agent-create.contextConfig.triggerRatio.placeholder',+ )}+ value={triggerRatio}+ onChange={(e) => setTriggerRatio(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="edit-reserve-ratio">+ {t('dialog-agent-create.contextConfig.reserveRatio.label')}+ </FieldLabel>+ <Input+ id="edit-reserve-ratio"+ type="number"+ min={0.01}+ max={0.89}+ step={0.01}+ placeholder={t(+ 'dialog-agent-create.contextConfig.reserveRatio.placeholder',+ )}+ value={reserveRatio}+ onChange={(e) => setReserveRatio(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="edit-tool-result-limit">+ {t('dialog-agent-create.contextConfig.toolResultLimit.label')}+ </FieldLabel>+ <Input+ id="edit-tool-result-limit"+ type="number"+ min={100}+ step={100}+ placeholder={t(+ 'dialog-agent-create.contextConfig.toolResultLimit.placeholder',+ )}+ value={toolResultLimit}+ onChange={(e) => setToolResultLimit(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="edit-compression-prompt">+ {t('dialog-agent-create.contextConfig.compressionPrompt.label')}+ </FieldLabel>+ <Textarea+ id="edit-compression-prompt"+ rows={2}+ placeholder={t(+ 'dialog-agent-create.contextConfig.compressionPrompt.placeholder',+ )}+ value={compressionPrompt}+ onChange={(e) => setCompressionPrompt(e.target.value)}+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="edit-summary-template">+ {t('dialog-agent-create.contextConfig.summaryTemplate.label')}+ </FieldLabel>+ <Textarea+ id="edit-summary-template"+ rows={2}+ placeholder={t(+ 'dialog-agent-create.contextConfig.summaryTemplate.placeholder',+ )}+ value={summaryTemplate}+ onChange={(e) => setSummaryTemplate(e.target.value)}+ />+ </Field>+ </FieldGroup>+ </FieldSet>+ <FieldSeparator />+ <FieldSet>+ <FieldLegend>{t('dialog-agent-create.reactConfig.legend')}</FieldLegend>+ <FieldDescription>+ {t('dialog-agent-create.reactConfig.description')}+ </FieldDescription>+ <FieldGroup>+ <Field>+ <FieldLabel htmlFor="edit-max-iters">+ {t('dialog-agent-create.reactConfig.maxIters.label')}+ </FieldLabel>+ <Input+ id="edit-max-iters"+ type="number"+ min={1}+ step={1}+ placeholder={t(+ 'dialog-agent-create.reactConfig.maxIters.placeholder',+ )}+ value={maxIters}+ onChange={(e) => setMaxIters(e.target.value)}+ />+ </Field>+ <Field orientation="horizontal">+ <Checkbox+ id="edit-stop-on-reject"+ checked={stopOnReject}+ onCheckedChange={(v) => setStopOnReject(v === true)}+ />+ <FieldLabel htmlFor="edit-stop-on-reject" className="font-normal">+ {t('dialog-agent-create.reactConfig.stopOnReject.label')}+ </FieldLabel>+ </Field>+ </FieldGroup>+ </FieldSet>+ <Field orientation="horizontal">+ <Button onClick={handleSubmit} disabled={!name.trim() || submitting}>+ {submitting ? t('common.saving') : t('common.save')}+ </Button>+ <Button variant="outline" onClick={() => onOpenChange(false)}>+ {t('common.cancel')}+ </Button>+ </Field>+ </FieldGroup>+ </DialogContent>+ </Dialog>+ );+}diff --git a/examples/web_ui/frontend/src/components/dialog/EditCredentialDialog.tsx b/examples/web_ui/frontend/src/components/dialog/EditCredentialDialog.tsxnew file mode 100644index 000000000..7828508e5--- /dev/null+++ b/examples/web_ui/frontend/src/components/dialog/EditCredentialDialog.tsx@@ -0,0 +1,105 @@+import { useState, useEffect } from 'react';++import { credentialApi } from '@/api';+import type { CredentialRecord, CredentialSchema } from '@/api';+import { SchemaForm } from '@/components/form/SchemaForm';+import { Button } from '@/components/ui/button';+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ DialogFooter,+} from '@/components/ui/dialog';+import { useCredentials } from '@/hooks/useCredentials';+import { useTranslation } from '@/i18n/useI18n';++interface Props {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ credential: CredentialRecord;+ onUpdated?: () => void;+}++export function EditCredentialDialog({ open, onOpenChange, credential, onUpdated }: Props) {+ const { update } = useCredentials();+ const { t } = useTranslation();+ const [schema, setSchema] = useState<CredentialSchema | null>(null);+ const [loadingSchema, setLoadingSchema] = useState(false);+ const [values, setValues] = useState<Record<string, string | boolean>>({});+ const [submitting, setSubmitting] = useState(false);++ const type = credential.data.type as string | undefined;++ useEffect(() => {+ if (!open || !type) return;+ setLoadingSchema(true);+ credentialApi+ .schemas()+ .then((res) => {+ const matched = res.schemas.find(+ (s) => (s.properties.type?.const as string) === type,+ );+ setSchema(matched ?? null);+ // Pre-fill values from existing credential data (excluding writeOnly fields)+ if (matched) {+ const prefill: Record<string, string | boolean> = {};+ for (const [key, prop] of Object.entries(matched.properties)) {+ if (key === 'id' || key === 'type' || prop.const !== undefined) continue;+ if (prop.writeOnly) continue; // don't pre-fill secrets like api_key+ const existing = credential.data[key];+ if (existing !== undefined) {+ prefill[key] = existing as string | boolean;+ }+ }+ setValues(prefill);+ }+ })+ .finally(() => setLoadingSchema(false));+ }, [open, type, credential.data]);++ const handleSubmit = async () => {+ if (!schema) return;+ setSubmitting(true);+ try {+ const data: Record<string, unknown> = { ...credential.data };+ for (const [key, prop] of Object.entries(schema.properties)) {+ if (key === 'id' || key === 'type' || prop.const !== undefined) continue;+ const val = values[key];+ if (val !== undefined && val !== '') data[key] = val;+ }+ await update(credential.id, { data });+ onOpenChange(false);+ onUpdated?.();+ } finally {+ setSubmitting(false);+ }+ };++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>{t('dialog-credential-edit.title')}</DialogTitle>+ </DialogHeader>+ {loadingSchema ? (+ <p className="text-muted-foreground text-sm">{t('common.loading')}</p>+ ) : schema ? (+ <SchemaForm+ schema={schema}+ values={values}+ onChange={(key, val) => setValues((prev) => ({ ...prev, [key]: val }))}+ />+ ) : null}+ <DialogFooter>+ <Button variant="outline" onClick={() => onOpenChange(false)}>+ {t('common.cancel')}+ </Button>+ <Button onClick={handleSubmit} disabled={submitting || !schema}>+ {submitting ? t('common.saving') : t('common.save')}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+}diff --git a/examples/web_ui/frontend/src/components/dialog/MCPDialog.tsx b/examples/web_ui/frontend/src/components/dialog/MCPDialog.tsxnew file mode 100644index 000000000..f5be36df4--- /dev/null+++ b/examples/web_ui/frontend/src/components/dialog/MCPDialog.tsx@@ -0,0 +1,203 @@+import { PlusCircle, Loader2, Check } from 'lucide-react';+import { CircleAlert } from 'lucide-react';+import { useState, useCallback } from 'react';+import type { ReactNode } from 'react';++import type { MCPClient, StdioMCPConfig, HttpMCPConfig } from '@/api/types';+import { Alert, AlertDescription } from '@/components/ui/alert.tsx';+import { Button } from '@/components/ui/button.tsx';+import { Checkbox } from '@/components/ui/checkbox.tsx';+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+} from '@/components/ui/dialog.tsx';+import {+ Field,+ FieldContent,+ FieldDescription,+ FieldGroup,+ FieldLabel,+ FieldSet,+} from '@/components/ui/field.tsx';+import { InputGroup, InputGroupTextarea } from '@/components/ui/input-group.tsx';+import { useTranslation } from '@/i18n/useI18n.ts';++type Status = 'idle' | 'loading' | 'success' | 'error';++interface Props {+ children: ReactNode;+ onAdd: (mcps: MCPClient[]) => Promise<void>;+}++function parseMcpConfig(+ raw: string,+ keepAlive: boolean,+ t: (key: string, opts?: Record<string, string>) => string,+): MCPClient[] {+ let parsed: unknown;+ try {+ parsed = JSON.parse(raw);+ } catch (e) {+ throw new Error(t('dialog-mcp-create.parseError', { message: (e as Error).message }));+ }++ const obj = parsed as Record<string, unknown>;+ const servers = obj.mcpServers as Record<string, Record<string, unknown>> | undefined;+ if (!servers || typeof servers !== 'object') {+ throw new Error(t('dialog-mcp-create.missingMcpServers'));+ }++ const entries = Object.entries(servers);+ if (entries.length === 0) {+ throw new Error(t('dialog-mcp-create.emptyMcpServers'));+ }++ return entries.map(([name, config]) => {+ let mcp_config: StdioMCPConfig | HttpMCPConfig;+ if ('url' in config) {+ mcp_config = {+ type: 'http_mcp',+ url: config.url as string,+ headers: (config.headers as Record<string, string> | undefined) ?? null,+ timeout: (config.timeout as number | undefined) ?? null,+ };+ } else {+ mcp_config = {+ type: 'stdio_mcp',+ command: config.command as string,+ args: (config.args as string[] | undefined) ?? null,+ env: (config.env as Record<string, string> | undefined) ?? null,+ cwd: (config.cwd as string | undefined) ?? null,+ };+ }+ return { name, is_stateful: keepAlive, mcp_config };+ });+}++export const CreateMCPDialog = ({ children, onAdd }: Props) => {+ const { t } = useTranslation();+ const [open, setOpen] = useState(false);+ const [configValue, setConfigValue] = useState('');+ const [keepAlive, setKeepAlive] = useState(true);+ const [status, setStatus] = useState<Status>('idle');+ const [errorMsg, setErrorMsg] = useState('');++ const reset = useCallback(() => {+ setConfigValue('');+ setKeepAlive(true);+ setStatus('idle');+ setErrorMsg('');+ }, []);++ const handleOpenChange = useCallback(+ (next: boolean) => {+ if (!next) reset();+ setOpen(next);+ },+ [reset],+ );++ const handleAdd = useCallback(async () => {+ setErrorMsg('');+ let mcpClients: MCPClient[];+ try {+ mcpClients = parseMcpConfig(configValue, keepAlive, t);+ } catch (e) {+ setErrorMsg((e as Error).message);+ setStatus('error');+ return;+ }++ setStatus('loading');+ try {+ await onAdd(mcpClients);+ setStatus('success');+ setTimeout(() => {+ handleOpenChange(false);+ }, 1500);+ } catch (e) {+ // ApiErrors are already shown via the global toast in client.ts.+ // Show only local validation errors (e.g. duplicate name) inline.+ const isApiError = e instanceof Error && e.name === 'ApiError';+ if (!isApiError) {+ setErrorMsg(e instanceof Error ? e.message : String(e));+ }+ setStatus('idle');+ }+ }, [configValue, keepAlive, t, onAdd, handleOpenChange]);++ return (+ <Dialog open={open} onOpenChange={handleOpenChange}>+ <DialogTrigger asChild>{children}</DialogTrigger>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>{t('dialog-mcp-create.title')}</DialogTitle>+ <DialogDescription>{t('dialog-mcp-create.description')}</DialogDescription>+ </DialogHeader>+ <FieldSet>+ <FieldGroup>+ <Field>+ <FieldContent>+ <FieldLabel>{t('dialog-mcp-create.configLabel')}</FieldLabel>+ </FieldContent>+ <InputGroup>+ <InputGroupTextarea+ className="max-h-100"+ value={configValue}+ onChange={(e) => setConfigValue(e.target.value)}+ placeholder={+ '{\n "mcpServers": {\n "playwright": {\n "command": "npx",\n "args": ["@playwright/mcp@latest"]\n }\n }\n}'+ }+ />+ </InputGroup>+ </Field>+ <Field orientation="horizontal">+ <Checkbox+ id="mcp-keep-alive"+ checked={keepAlive}+ onCheckedChange={(v) => setKeepAlive(v === true)}+ />+ <FieldContent>+ <FieldLabel htmlFor="mcp-keep-alive">+ {t('dialog-mcp-create.keepAlive')}+ </FieldLabel>+ <FieldDescription>+ {t('dialog-mcp-create.keepAliveDesc')}+ </FieldDescription>+ </FieldContent>+ </Field>+ </FieldGroup>+ </FieldSet>+ {errorMsg && (+ <Alert variant="destructive">+ <CircleAlert />+ <AlertDescription>{errorMsg}</AlertDescription>+ </Alert>+ )}+ <DialogFooter>+ <Button+ onClick={handleAdd}+ disabled={status === 'loading' || status === 'success'}+ >+ {status === 'loading' && <Loader2 className="animate-spin" />}+ {status === 'success' && <Check />}+ {status !== 'loading' && status !== 'success' && <PlusCircle />}+ {status === 'loading'+ ? t('dialog-mcp-create.adding')+ : status === 'success'+ ? t('dialog-mcp-create.added')+ : t('common.add')}+ </Button>+ <Button variant="ghost" onClick={() => handleOpenChange(false)}>+ {t('common.cancel')}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+};diff --git a/examples/web_ui/frontend/src/components/dialog/RenameSessionDialog.tsx b/examples/web_ui/frontend/src/components/dialog/RenameSessionDialog.tsxnew file mode 100644index 000000000..14e63243d--- /dev/null+++ b/examples/web_ui/frontend/src/components/dialog/RenameSessionDialog.tsx@@ -0,0 +1,77 @@+import { useState, useEffect } from 'react';++import { Button } from '@/components/ui/button';+import {+ Dialog,+ DialogContent,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from '@/components/ui/dialog';+import { Field, FieldGroup, FieldLabel } from '@/components/ui/field';+import { Input } from '@/components/ui/input';+import { useTranslation } from '@/i18n/useI18n';++interface Props {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ currentName: string;+ onConfirm: (name: string) => Promise<void>;+}++export function RenameSessionDialog({ open, onOpenChange, currentName, onConfirm }: Props) {+ const { t } = useTranslation();+ const [name, setName] = useState(currentName);+ const [loading, setLoading] = useState(false);++ useEffect(() => {+ if (open) setName(currentName);+ }, [open, currentName]);++ const handleConfirm = async () => {+ if (!name.trim()) return;+ setLoading(true);+ try {+ await onConfirm(name.trim());+ onOpenChange(false);+ } finally {+ setLoading(false);+ }+ };++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>{t('dialog-session-rename.title')}</DialogTitle>+ </DialogHeader>+ <FieldGroup>+ <Field>+ <FieldLabel>{t('dialog-session-rename.label')}</FieldLabel>+ <Input+ value={name}+ onChange={(e) => setName(e.target.value)}+ placeholder={t('dialog-session-rename.placeholder')}+ onKeyDown={(e) => {+ if (e.key === 'Enter') handleConfirm();+ }}+ autoFocus+ />+ </Field>+ </FieldGroup>+ <DialogFooter>+ <Button+ variant="outline"+ onClick={() => onOpenChange(false)}+ disabled={loading}+ >+ {t('common.cancel')}+ </Button>+ <Button onClick={handleConfirm} disabled={loading || !name.trim()}>+ {loading ? t('common.saving') : t('dialog-session-rename.confirm')}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+}diff --git a/examples/web_ui/frontend/src/components/drawer/WorkspaceDrawer.tsx b/examples/web_ui/frontend/src/components/drawer/WorkspaceDrawer.tsxnew file mode 100644index 000000000..bb158d9da--- /dev/null+++ b/examples/web_ui/frontend/src/components/drawer/WorkspaceDrawer.tsx@@ -0,0 +1,229 @@+import { Search, Trash, PlusCircle } from 'lucide-react';+import { type ReactNode, useState } from 'react';++import type { MCPClient, MCPClientStatus, Skill } from '@/api';+import { AddSkillDialog } from '@/components/dialog/AddSkillDialog.tsx';+import { DeleteDialog } from '@/components/dialog/DeleteDialog.tsx';+import { CreateMCPDialog } from '@/components/dialog/MCPDialog.tsx';+import { Button } from '@/components/ui/button';+import {+ Drawer,+ DrawerContent,+ DrawerDescription,+ DrawerFooter,+ DrawerHeader,+ DrawerTitle,+ DrawerTrigger,+} from '@/components/ui/drawer';+import { InputGroup, InputGroupAddon, InputGroupInput } from '@/components/ui/input-group';+import { Item, ItemActions, ItemContent, ItemDescription, ItemTitle } from '@/components/ui/item';+import { Kbd, KbdGroup } from '@/components/ui/kbd';+import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs.tsx';+import { useTranslation } from '@/i18n/useI18n.ts';++interface WorkspaceDrawerProps {+ children: ReactNode;+ mcps: MCPClientStatus[];+ loading?: boolean;+ onAdd: (mcps: MCPClient[]) => Promise<void>;+ onRemove: (name: string) => Promise<void>;+ skills: Skill[];+ skillsLoading?: boolean;+ onAddSkill: (skillPath: string) => Promise<void>;+ onRemoveSkill: (name: string) => Promise<void>;+}++export function WorkspaceDrawer({+ children,+ mcps,+ loading = false,+ onAdd,+ onRemove,+ skills,+ skillsLoading = false,+ onAddSkill,+ onRemoveSkill,+}: WorkspaceDrawerProps) {+ const { t } = useTranslation();+ const [search, setSearch] = useState('');+ const [skillSearch, setSkillSearch] = useState('');+ const [activeTab, setActiveTab] = useState('mcp');+ const [deleteOpen, setDeleteOpen] = useState(false);+ const [deleteTarget, setDeleteTarget] = useState<string | null>(null);+ const [skillDeleteOpen, setSkillDeleteOpen] = useState(false);+ const [skillDeleteTarget, setSkillDeleteTarget] = useState<string | null>(null);++ const filtered = search+ ? mcps.filter((m) => m.name.toLowerCase().includes(search.toLowerCase()))+ : mcps;++ const filteredSkills = skillSearch+ ? skills.filter((s) => s.name.toLowerCase().includes(skillSearch.toLowerCase()))+ : skills;++ return (+ <Drawer direction="right">+ <DrawerTrigger asChild>{children}</DrawerTrigger>+ <DrawerContent>+ <DrawerHeader>+ <DrawerTitle>Workspace</DrawerTitle>+ <DrawerDescription>Where the agent works.</DrawerDescription>+ </DrawerHeader>+ <div className="flex flex-col no-scrollbar overflow-y-auto px-4 gap-y-2">+ <Tabs defaultValue="mcp" onValueChange={setActiveTab}>+ <TabsList className={'w-full'}>+ <TabsTrigger value={'mcp'}>MCP</TabsTrigger>+ <TabsTrigger value={'skill'}>SKILL</TabsTrigger>+ </TabsList>+ <TabsContent value={'mcp'} asChild>+ <div className="flex flex-col no-scrollbar overflow-y-auto gap-y-2">+ <span className={'text-muted-foreground text-sm'}>+ The MCP servers equipped in the workspace.+ </span>+ <InputGroup className="mt-4">+ <InputGroupInput+ placeholder="Search MCP in the workspace"+ value={search}+ onChange={(e) => setSearch(e.target.value)}+ />+ <InputGroupAddon align="inline-end">+ <Search />+ </InputGroupAddon>+ </InputGroup>+ {loading ? (+ <p className="text-muted-foreground text-sm text-center py-4">+ Loading…+ </p>+ ) : filtered.length === 0 ? (+ <p className="text-muted-foreground text-sm text-center py-4">+ No MCPs found+ </p>+ ) : (+ filtered.map((mcp) => (+ <Item key={mcp.name} variant="outline">+ <ItemContent>+ <ItemTitle className="flex items-center gap-x-2">+ <span+ className={`size-2 shrink-0 rounded-full ${mcp.is_healthy ? 'bg-green-500' : 'bg-red-500'}`}+ />+ {mcp.name}+ </ItemTitle>+ <ItemDescription>+ <KbdGroup>+ <Kbd>+ {mcp.mcp_config.type === 'stdio_mcp'+ ? 'STDIO'+ : 'HTTP'}+ </Kbd>+ <Kbd>{mcp.tools.length} tools</Kbd>+ </KbdGroup>+ </ItemDescription>+ </ItemContent>+ <ItemActions>+ <Button+ variant="outline"+ size="icon-sm"+ onClick={() => {+ setDeleteTarget(mcp.name);+ setDeleteOpen(true);+ }}+ >+ <Trash />+ </Button>+ </ItemActions>+ </Item>+ ))+ )}+ </div>+ </TabsContent>+ <TabsContent value={'skill'} asChild>+ <div className="flex flex-col no-scrollbar overflow-y-auto gap-y-2">+ <span className={'text-muted-foreground text-sm'}>+ The skills equipped in the workspace.+ </span>+ <InputGroup className="mt-4">+ <InputGroupInput+ placeholder="Search skills in the workspace"+ value={skillSearch}+ onChange={(e) => setSkillSearch(e.target.value)}+ />+ <InputGroupAddon align="inline-end">+ <Search />+ </InputGroupAddon>+ </InputGroup>+ {skillsLoading ? (+ <p className="text-muted-foreground text-sm text-center py-4">+ Loading…+ </p>+ ) : filteredSkills.length === 0 ? (+ <p className="text-muted-foreground text-sm text-center py-4">+ No skills found+ </p>+ ) : (+ filteredSkills.map((skill) => (+ <Item key={skill.name} variant="outline">+ <ItemContent>+ <ItemTitle>{skill.name}</ItemTitle>+ <ItemDescription>+ {skill.description}+ </ItemDescription>+ </ItemContent>+ <ItemActions>+ <Button+ variant="outline"+ size="icon-sm"+ onClick={() => {+ setSkillDeleteTarget(skill.name);+ setSkillDeleteOpen(true);+ }}+ >+ <Trash />+ </Button>+ </ItemActions>+ </Item>+ ))+ )}+ </div>+ </TabsContent>+ </Tabs>+ </div>++ <DrawerFooter>+ {activeTab === 'mcp' ? (+ <CreateMCPDialog onAdd={onAdd}>+ <Button variant="default">+ <PlusCircle />+ Add MCP+ </Button>+ </CreateMCPDialog>+ ) : (+ <AddSkillDialog onAdd={onAddSkill}>+ <Button variant="default">+ <PlusCircle />+ Add Skill+ </Button>+ </AddSkillDialog>+ )}+ </DrawerFooter>+ </DrawerContent>+ <DeleteDialog+ open={deleteOpen}+ onOpenChange={setDeleteOpen}+ title={t('dialog-mcp-delete.title', { name: deleteTarget ?? '' })}+ description={t('dialog-mcp-delete.description')}+ onConfirm={async () => {+ if (deleteTarget) await onRemove(deleteTarget);+ }}+ />+ <DeleteDialog+ open={skillDeleteOpen}+ onOpenChange={setSkillDeleteOpen}+ title={`Remove skill "${skillDeleteTarget ?? ''}"`}+ description="Are you sure you want to remove this skill from the workspace?"+ onConfirm={async () => {+ if (skillDeleteTarget) await onRemoveSkill(skillDeleteTarget);+ }}+ />+ </Drawer>+ );+}diff --git a/examples/web_ui/frontend/src/components/form/SchemaForm.tsx b/examples/web_ui/frontend/src/components/form/SchemaForm.tsxnew file mode 100644index 000000000..f40a3978d--- /dev/null+++ b/examples/web_ui/frontend/src/components/form/SchemaForm.tsx@@ -0,0 +1,68 @@+import type { CredentialSchema } from '@/api';+import { Checkbox } from '@/components/ui/checkbox';+import { Field, FieldGroup, FieldLabel } from '@/components/ui/field.tsx';+import { Input } from '@/components/ui/input';++const SKIP_FIELDS = new Set(['id', 'type']);++interface Props {+ schema: CredentialSchema;+ values: Record<string, string | boolean>;+ onChange: (key: string, value: string | boolean) => void;+}++export function SchemaForm({ schema, values, onChange }: Props) {+ const entries = Object.entries(schema.properties).filter(+ ([key, prop]) => !SKIP_FIELDS.has(key) && prop.const === undefined,+ );++ return (+ <FieldGroup>+ {entries.map(([key, prop]) => {+ const isRequired = schema.required?.includes(key) ?? false;+ const isPassword = prop.format === 'password';+ const effectiveType =+ prop.type ?? prop.anyOf?.find((t) => t.type !== 'null')?.type ?? 'string';+ const isBoolean = effectiveType === 'boolean';+ const label = prop.title ?? key.replace(/_/g, ' ');++ if (isBoolean) {+ return (+ <Field key={key}>+ <div className="flex items-center gap-x-2">+ <Checkbox+ id={key}+ checked={!!values[key]}+ onCheckedChange={(checked) => onChange(key, !!checked)}+ />+ <FieldLabel htmlFor={key}>{label}</FieldLabel>+ </div>+ </Field>+ );+ }++ return (+ <Field key={key}>+ <FieldLabel htmlFor={key}>+ {label}+ {isRequired && <span className="text-destructive ml-0.5">*</span>}+ </FieldLabel>+ <Input+ id={key}+ type={+ isPassword+ ? 'password'+ : effectiveType === 'number' || effectiveType === 'integer'+ ? 'number'+ : 'text'+ }+ value={(values[key] as string) ?? ''}+ onChange={(e) => onChange(key, e.target.value)}+ placeholder={prop.description}+ />+ </Field>+ );+ })}+ </FieldGroup>+ );+}diff --git a/examples/web_ui/frontend/src/components/layout/AppLayout.tsx b/examples/web_ui/frontend/src/components/layout/AppLayout.tsxnew file mode 100644index 000000000..a8f43713a--- /dev/null+++ b/examples/web_ui/frontend/src/components/layout/AppLayout.tsx@@ -0,0 +1,17 @@+import { Outlet } from 'react-router-dom';++import { AppSidebar } from '@/components/layout/AppSidebar';+import { SidebarInset, SidebarProvider } from '@/components/ui/sidebar';++export function AppLayout() {+ return (+ <div className="h-screen flex">+ <SidebarProvider>+ <AppSidebar />+ <SidebarInset className="flex-1 overflow-hidden">+ <Outlet />+ </SidebarInset>+ </SidebarProvider>+ </div>+ );+}diff --git a/examples/web_ui/frontend/src/components/layout/AppSidebar.tsx b/examples/web_ui/frontend/src/components/layout/AppSidebar.tsxnew file mode 100644index 000000000..eec4e3d90--- /dev/null+++ b/examples/web_ui/frontend/src/components/layout/AppSidebar.tsx@@ -0,0 +1,133 @@+import { BotMessageSquare, Calendars, Compass, KeyRound, Languages, Settings } from 'lucide-react';+import { useOnborda } from 'onborda';+import { useNavigate, useLocation } from 'react-router-dom';++import AgentScope from '@/assets/images/agentscope.svg?react';+import { CHAT_TOUR_NAME } from '@/components/tour/chatTourSteps';+import {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupContent,+ SidebarHeader,+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+} from '@/components/ui/sidebar';+import i18n from '@/i18n';+import { useTranslation } from '@/i18n/useI18n';++export function AppSidebar() {+ const navigate = useNavigate();+ const location = useLocation();+ const { t } = useTranslation();+ const { startOnborda } = useOnborda();++ const handleStartTour = () => {+ if (location.pathname !== '/') {+ // Page not mounted yet — leave a flag, navigate, and let the+ // ChatTourController auto-trigger after ChatPage mounts.+ sessionStorage.setItem('force_tour', '1');+ navigate('/');+ } else {+ startOnborda(CHAT_TOUR_NAME);+ }+ };++ const handleToggleLanguage = () => {+ const next = i18n.language.startsWith('zh') ? 'en' : 'zh';+ i18n.changeLanguage(next);+ };++ return (+ <Sidebar collapsible="none" className="w-[calc(var(--sidebar-width-icon)+1px)]! border-r">+ <SidebarHeader>+ <div className="flex items-center justify-center h-12 mt-2">+ <AgentScope className="size-8 items-center justify-center rounded-lg" />+ </div>+ </SidebarHeader>+ <SidebarContent>+ <SidebarGroup>+ <SidebarGroupContent>+ <SidebarMenu>+ <SidebarMenuItem key={'chat'}>+ <SidebarMenuButton+ tooltip={{ children: t('common.chat'), hidden: false }}+ isActive={location.pathname === '/'}+ onClick={() => navigate('/')}+ className="px-2.5 md:px-2"+ >+ <BotMessageSquare />+ </SidebarMenuButton>+ </SidebarMenuItem>+ <SidebarMenuItem>+ <SidebarMenuButton+ tooltip={{ children: t('common.schedule'), hidden: false }}+ isActive={location.pathname === '/schedule'}+ onClick={() => navigate('/schedule')}+ className="px-2"+ >+ <Calendars />+ </SidebarMenuButton>+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarGroupContent>+ </SidebarGroup>+ <SidebarGroup>+ <SidebarGroupContent>+ <SidebarMenu>+ <SidebarMenuItem>+ <SidebarMenuButton+ tooltip={{ children: t('common.credential'), hidden: false }}+ isActive={location.pathname === '/credential'}+ onClick={() => navigate('/credential')}+ className="px-2"+ >+ <KeyRound />+ </SidebarMenuButton>+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarGroupContent>+ </SidebarGroup>+ </SidebarContent>+ <SidebarFooter>+ <SidebarMenu>+ <SidebarMenuItem>+ <SidebarMenuButton+ tooltip={{+ children: i18n.language.startsWith('zh')+ ? t('common.switchToEn')+ : t('common.switchToZh'),+ hidden: false,+ }}+ onClick={handleToggleLanguage}+ className="px-2"+ >+ <Languages />+ </SidebarMenuButton>+ </SidebarMenuItem>+ <SidebarMenuItem>+ <SidebarMenuButton+ tooltip={{ children: t('tour.trigger'), hidden: false }}+ onClick={handleStartTour}+ className="px-2"+ >+ <Compass />+ </SidebarMenuButton>+ </SidebarMenuItem>+ <SidebarMenuItem>+ <SidebarMenuButton+ tooltip={{ children: t('common.settings'), hidden: false }}+ isActive={location.pathname === '/setup'}+ onClick={() => navigate('/setup')}+ className="px-2"+ >+ <Settings />+ </SidebarMenuButton>+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarFooter>+ </Sidebar>+ );+}diff --git a/examples/web_ui/frontend/src/components/popover/ModelParametersPopover.tsx b/examples/web_ui/frontend/src/components/popover/ModelParametersPopover.tsxnew file mode 100644index 000000000..4700972da--- /dev/null+++ b/examples/web_ui/frontend/src/components/popover/ModelParametersPopover.tsx@@ -0,0 +1,202 @@+import { SlidersHorizontal } from 'lucide-react';+import { useCallback, useEffect, useState } from 'react';++import type { ChatModelConfig, ModelCard } from '@/api';+import { Button } from '@/components/ui/button';+import { Input } from '@/components/ui/input';+import { Label } from '@/components/ui/label';+import {+ Popover,+ PopoverContent,+ PopoverDescription,+ PopoverHeader,+ PopoverTitle,+ PopoverTrigger,+} from '@/components/ui/popover';+import { Switch } from '@/components/ui/switch';+import { useTranslation } from '@/i18n/useI18n';++interface ParameterProperty {+ type?: string;+ title?: string;+ description?: string;+ default?: unknown;+ minimum?: number;+ maximum?: number;+ exclusiveMinimum?: number;+ exclusiveMaximum?: number;+ anyOf?: Array<{ type: string }>;+}++interface ParameterSchema {+ title?: string;+ description?: string;+ type?: string;+ properties?: Record<string, ParameterProperty>;+ required?: string[];+}++interface Props {+ selectedModel: ChatModelConfig | null;+ modelCard: ModelCard | null;+ onChange: (parameters: Record<string, unknown>) => void;+}++export function ModelParametersPopover({ selectedModel, modelCard, onChange }: Props) {+ const [values, setValues] = useState<Record<string, unknown>>({});+ const { t } = useTranslation();++ const schema = modelCard?.parameter_schema as ParameterSchema | undefined;+ const properties = schema?.properties ?? {};+ const required = schema?.required ?? [];+ const entries = Object.entries(properties);++ useEffect(() => {+ setValues(selectedModel?.parameters ?? {});+ }, [selectedModel?.model]);++ const handleChange = useCallback(+ (key: string, value: unknown) => {+ const next = { ...values, [key]: value };+ if (value === '' || value === undefined) {+ delete next[key];+ }+ setValues(next);+ onChange(next);+ },+ [values, onChange],+ );++ const disabled = !selectedModel;++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button variant="ghost" size="icon-sm" disabled={disabled}>+ <SlidersHorizontal className="size-4" />+ </Button>+ </PopoverTrigger>+ <PopoverContent align="start" className="w-80 max-h-96 overflow-y-auto">+ <PopoverHeader>+ <PopoverTitle>{t('model-parameters.title')}</PopoverTitle>+ <PopoverDescription>{t('model-parameters.description')}</PopoverDescription>+ </PopoverHeader>+ {entries.length === 0 ? (+ <p className="text-muted-foreground text-xs">{t('model-parameters.empty')}</p>+ ) : (+ <div className="grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-3">+ {entries.map(([key, prop]) => {+ const effectiveType =+ prop.type ??+ prop.anyOf?.find((t) => t.type !== 'null')?.type ??+ 'string';+ const isBoolean = effectiveType === 'boolean';+ const isNumber =+ effectiveType === 'number' || effectiveType === 'integer';+ const label = prop.title ?? key;+ const isRequired = required.includes(key);++ if (isBoolean) {+ return (+ <>+ <Label+ key={`${key}-label`}+ htmlFor={`param-${key}`}+ className="whitespace-nowrap"+ >+ {label}+ </Label>+ <Switch+ key={`${key}-input`}+ id={`param-${key}`}+ checked={+ values[key] !== undefined+ ? !!values[key]+ : !!prop.default+ }+ onCheckedChange={(checked) =>+ handleChange(key, !!checked)+ }+ />+ </>+ );+ }++ return (+ <>+ <Label+ key={`${key}-label`}+ htmlFor={`param-${key}`}+ className="whitespace-nowrap"+ >+ {label}+ {isRequired && (+ <span className="text-destructive ml-0.5">*</span>+ )}+ </Label>+ <Input+ key={`${key}-input`}+ id={`param-${key}`}+ type={isNumber ? 'number' : 'text'}+ value={values[key] !== undefined ? String(values[key]) : ''}+ placeholder={+ prop.default !== undefined+ ? String(prop.default)+ : undefined+ }+ min={prop.minimum}+ max={prop.maximum}+ step={+ isNumber && effectiveType === 'number'+ ? 'any'+ : undefined+ }+ onChange={(e) => {+ const raw = e.target.value;+ if (isNumber) {+ handleChange(+ key,+ raw === '' ? undefined : Number(raw),+ );+ } else {+ handleChange(key, raw);+ }+ }}+ onBlur={(e) => {+ if (!isNumber || e.target.value === '') return;+ let num = Number(e.target.value);+ if (prop.minimum !== undefined && num < prop.minimum)+ num = prop.minimum;+ if (prop.maximum !== undefined && num > prop.maximum)+ num = prop.maximum;+ if (+ prop.exclusiveMinimum !== undefined &&+ num <= prop.exclusiveMinimum+ )+ num =+ prop.exclusiveMinimum ++ (effectiveType === 'integer'+ ? 1+ : Number.EPSILON);+ if (+ prop.exclusiveMaximum !== undefined &&+ num >= prop.exclusiveMaximum+ )+ num =+ prop.exclusiveMaximum -+ (effectiveType === 'integer'+ ? 1+ : Number.EPSILON);+ if (num !== Number(e.target.value))+ handleChange(key, num);+ }}+ />+ </>+ );+ })}+ </div>+ )}+ </PopoverContent>+ </Popover>+ );+}diff --git a/examples/web_ui/frontend/src/components/select/LlmSelect.tsx b/examples/web_ui/frontend/src/components/select/LlmSelect.tsxnew file mode 100644index 000000000..4ecff6bd3--- /dev/null+++ b/examples/web_ui/frontend/src/components/select/LlmSelect.tsx@@ -0,0 +1,125 @@+import { ChevronDown, PlusCircle } from 'lucide-react';+import { useEffect } from 'react';++import type { ChatModelConfig } from '@/api';+import { Button } from '@/components/ui/button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuSub,+ DropdownMenuSubContent,+ DropdownMenuSubTrigger,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { useAvailableModels } from '@/hooks/useAvailableModels';+import { useTranslation } from '@/i18n/useI18n.ts';++interface Props {+ value?: ChatModelConfig | null;+ onChange?: (value: ChatModelConfig) => void;+ onAddCredential?: () => void;+ refetchTrigger?: number;+}++export function LlmSelect({ value, onChange, onAddCredential, refetchTrigger }: Props) {+ const { groups, loading, refetch } = useAvailableModels();+ const { t } = useTranslation();+ const hasOptions = Object.keys(groups).length > 0;++ useEffect(() => {+ if (refetchTrigger !== undefined && refetchTrigger > 0) refetch();+ }, [refetchTrigger, refetch]);++ const handleSelect = (type: string, credentialId: string, model: string) => {+ onChange?.({ type, credential_id: credentialId, model, parameters: {} });+ };++ const displayLabel = value?.model+ ? value.model+ : loading+ ? t('llm-select.loading')+ : t('llm-select.placeholder');++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm" className="justify-between gap-1">+ <span className="truncate">{displayLabel}</span>+ <ChevronDown className="size-3.5 opacity-50" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="min-w-48 max-h-72 overflow-y-auto">+ {!loading && !hasOptions ? (+ <div className="px-2 py-3 text-center text-sm text-muted-foreground">+ <p className="font-medium">{t('llm-select.empty.title')}</p>+ <p className="text-xs mt-1">{t('llm-select.empty.description')}</p>+ </div>+ ) : (+ Object.entries(groups).map(([type, items], idx) => {+ const isSingle = items.length === 1;+ return (+ <DropdownMenuGroup key={type}>+ {idx > 0 && <DropdownMenuSeparator />}+ <DropdownMenuLabel>+ {type.replace(/_credential$/, '')}+ </DropdownMenuLabel>+ {isSingle+ ? items[0].models.map((m) => (+ <DropdownMenuItem+ key={m.name}+ onSelect={() =>+ handleSelect(+ type,+ items[0].credential.id,+ m.name,+ )+ }+ >+ {m.label}+ </DropdownMenuItem>+ ))+ : items.map(({ credential, models }) => {+ const credName =+ (credential.data.name as string) ||+ credential.id.slice(0, 8);+ return (+ <DropdownMenuSub key={credential.id}>+ <DropdownMenuSubTrigger>+ {credName}+ </DropdownMenuSubTrigger>+ <DropdownMenuSubContent className="max-h-60 overflow-y-auto">+ {models.map((m) => (+ <DropdownMenuItem+ key={m.name}+ onSelect={() =>+ handleSelect(+ type,+ credential.id,+ m.name,+ )+ }+ >+ {m.label}+ </DropdownMenuItem>+ ))}+ </DropdownMenuSubContent>+ </DropdownMenuSub>+ );+ })}+ </DropdownMenuGroup>+ );+ })+ )}+ <DropdownMenuSeparator />+ <DropdownMenuItem onSelect={onAddCredential}>+ <PlusCircle className="size-4" />+ <span>{t('llm-select.addCredential')}</span>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/examples/web_ui/frontend/src/components/select/PermissionModeSelect.tsx b/examples/web_ui/frontend/src/components/select/PermissionModeSelect.tsxnew file mode 100644index 000000000..f2f9fb02a--- /dev/null+++ b/examples/web_ui/frontend/src/components/select/PermissionModeSelect.tsx@@ -0,0 +1,75 @@+import { ChevronDown, UserRoundKey } from 'lucide-react';++import type { PermissionMode } from '@/api/types';+import { Button } from '@/components/ui/button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';+import { useTranslation } from '@/i18n/useI18n.ts';+import { cn } from '@/lib/utils.ts';++const PERMISSION_MODES: { value: PermissionMode; label: string }[] = [+ { value: 'default', label: 'Default' },+ { value: 'accept_edits', label: 'Accept Edits' },+ { value: 'explore', label: 'Explore' },+ { value: 'bypass', label: 'Bypass' },+ { value: 'dont_ask', label: "Don't Ask" },+];++interface Props {+ className?: string;+ value?: PermissionMode;+ disabled?: boolean;+ onChange?: (value: PermissionMode) => void;+}++export function PermissionModeSelect({ className, value, disabled, onChange }: Props) {+ const { t } = useTranslation();++ const displayLabel = value+ ? (PERMISSION_MODES.find((m) => m.value === value)?.label ?? value)+ : t('permission-mode.placeholder');++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button+ variant="outline"+ size="sm"+ className={cn('justify-between gap-1', className)}+ disabled={disabled}+ tooltip={t('permission-mode.trigger-tooltip')}+ >+ <div className="flex flex-row items-center gap-x-2">+ <UserRoundKey />+ <span className="truncate">{displayLabel}</span>+ </div>+ <ChevronDown className="size-3.5 opacity-50" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="min-w-48">+ <DropdownMenuGroup>+ <DropdownMenuLabel>{t('permission-mode.label')}</DropdownMenuLabel>+ {PERMISSION_MODES.map((mode) => (+ <Tooltip key={mode.value}>+ <TooltipTrigger asChild>+ <DropdownMenuItem onSelect={() => onChange?.(mode.value)}>+ {mode.label}+ </DropdownMenuItem>+ </TooltipTrigger>+ <TooltipContent side="right">+ {t(`permission-mode.${mode.value}-tooltip`)}+ </TooltipContent>+ </Tooltip>+ ))}+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/examples/web_ui/frontend/src/components/select/TimezoneSelect.tsx b/examples/web_ui/frontend/src/components/select/TimezoneSelect.tsxnew file mode 100644index 000000000..4e532f227--- /dev/null+++ b/examples/web_ui/frontend/src/components/select/TimezoneSelect.tsx@@ -0,0 +1,89 @@+import { ChevronDown, Globe, Search } from 'lucide-react';+import * as React from 'react';++import { Button } from '@/components/ui/button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { Input } from '@/components/ui/input';+import { cn } from '@/lib/utils.ts';++const LOCAL_TIMEZONE = Intl.DateTimeFormat().resolvedOptions().timeZone;++const ALL_TIMEZONES: string[] = Intl.supportedValuesOf('timeZone');++interface Props {+ className?: string;+ value?: string;+ onChange?: (value: string) => void;+ disabled?: boolean;+}++export function TimezoneSelect({ className, value, onChange, disabled }: Props) {+ const [search, setSearch] = React.useState('');+ const inputRef = React.useRef<HTMLInputElement>(null);++ const filtered = React.useMemo(() => {+ if (!search.trim()) return ALL_TIMEZONES;+ const q = search.toLowerCase();+ return ALL_TIMEZONES.filter((tz) => tz.toLowerCase().includes(q));+ }, [search]);++ const displayLabel = value || LOCAL_TIMEZONE;++ return (+ <DropdownMenu+ onOpenChange={(open) => {+ if (open) setSearch('');+ }}+ >+ <DropdownMenuTrigger asChild>+ <Button+ variant="outline"+ size="sm"+ className={cn('justify-between gap-1', className)}+ disabled={disabled}+ >+ <div className="flex flex-row items-center gap-x-2">+ <Globe className="size-3.5" />+ <span className="truncate text-xs">{displayLabel}</span>+ </div>+ <ChevronDown className="size-3.5 opacity-50" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="w-64">+ <div className="flex items-center gap-2 px-2 py-1.5 border-b">+ <Search className="size-3.5 opacity-50" />+ <Input+ ref={inputRef}+ value={search}+ onChange={(e) => setSearch(e.target.value)}+ placeholder="Search timezone..."+ className="h-6 border-0 shadow-none focus-visible:ring-0 text-xs px-0"+ onKeyDown={(e) => e.stopPropagation()}+ />+ </div>+ <div className="max-h-60 overflow-y-auto">+ {filtered.length === 0 ? (+ <div className="px-2 py-4 text-center text-xs text-muted-foreground">+ No timezone found+ </div>+ ) : (+ filtered.map((tz) => (+ <DropdownMenuItem+ key={tz}+ onSelect={() => onChange?.(tz)}+ className="text-xs"+ >+ {tz}+ </DropdownMenuItem>+ ))+ )}+ </div>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/examples/web_ui/frontend/src/components/tour/ChatTourController.tsx b/examples/web_ui/frontend/src/components/tour/ChatTourController.tsxnew file mode 100644index 000000000..1df22e356--- /dev/null+++ b/examples/web_ui/frontend/src/components/tour/ChatTourController.tsx@@ -0,0 +1,61 @@+import { useOnborda } from 'onborda';+import { useEffect, useRef } from 'react';++import { CHAT_TOUR_NAME } from './chatTourSteps';++interface Props {+ agentsCount: number;+ sessionsCount: number;+ /** Force-open the sidebar so #tour-create-session exists in the DOM. */+ onEnsureSidebarOpen?: () => void;+}++const TOUR_DONE_KEY = 'chat_tour_done';+const FORCE_TOUR_KEY = 'force_tour';++export const ChatTourController = ({ agentsCount, sessionsCount, onEnsureSidebarOpen }: Props) => {+ const { currentStep, currentTour, setCurrentStep, startOnborda } = useOnborda();+ const startCountsRef = useRef({ agents: agentsCount, sessions: sessionsCount });+ const startedRef = useRef(false);++ // Auto-start on mount: first-time visitors, or manual trigger via sessionStorage.+ useEffect(() => {+ if (startedRef.current) return;+ const force = sessionStorage.getItem(FORCE_TOUR_KEY) === '1';+ const done = localStorage.getItem(TOUR_DONE_KEY) === '1';+ if (force) sessionStorage.removeItem(FORCE_TOUR_KEY);+ if (!force && done) return;+ startedRef.current = true;+ onEnsureSidebarOpen?.();+ // Defer one tick so target elements are mounted.+ const id = window.setTimeout(() => startOnborda(CHAT_TOUR_NAME), 300);+ return () => window.clearTimeout(id);+ }, [onEnsureSidebarOpen, startOnborda]);++ // Snapshot the agents/sessions count when entering each step so we can+ // detect "user just created one" rather than "they already had some."+ useEffect(() => {+ if (currentTour !== CHAT_TOUR_NAME) return;+ if (currentStep === 0) startCountsRef.current.agents = agentsCount;+ if (currentStep === 1) startCountsRef.current.sessions = sessionsCount;+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [currentStep, currentTour]);++ // Step 0 → 1: agent created+ useEffect(() => {+ if (currentTour !== CHAT_TOUR_NAME || currentStep !== 0) return;+ if (agentsCount > startCountsRef.current.agents) setCurrentStep(1);+ }, [agentsCount, currentStep, currentTour, setCurrentStep]);++ // Step 1 → 2: session created+ useEffect(() => {+ if (currentTour !== CHAT_TOUR_NAME || currentStep !== 1) return;+ if (sessionsCount > startCountsRef.current.sessions) setCurrentStep(2);+ }, [sessionsCount, currentStep, currentTour, setCurrentStep]);++ // Mark tour as done when finished — triggered when the user reaches the last step+ // and the cards's Finish button calls closeOnborda (which sets the flag inside TourCard).+ // Nothing else to do here.++ return null;+};diff --git a/examples/web_ui/frontend/src/components/tour/TourCard.tsx b/examples/web_ui/frontend/src/components/tour/TourCard.tsxnew file mode 100644index 000000000..322b1543d--- /dev/null+++ b/examples/web_ui/frontend/src/components/tour/TourCard.tsx@@ -0,0 +1,73 @@+import { X } from 'lucide-react';+import { useOnborda, type CardComponentProps } from 'onborda';++import { Button } from '@/components/ui/button';+import { Card, CardContent, CardFooter, CardHeader, CardTitle } from '@/components/ui/card';+import { useTranslation } from '@/i18n/useI18n';++export const TourCard = ({+ step,+ currentStep,+ totalSteps,+ nextStep,+ prevStep,+ arrow,+}: CardComponentProps) => {+ const { t } = useTranslation();+ const { closeOnborda } = useOnborda();++ const isFirst = currentStep === 0;+ const isLast = currentStep === totalSteps - 1;++ const handleClose = () => {+ localStorage.setItem('chat_tour_done', '1');+ closeOnborda();+ };++ const handleNext = () => {+ if (isLast) {+ handleClose();+ return;+ }+ nextStep();+ };++ return (+ <>+ {/* Arrow inherits color via `currentColor`; force it to the card's+ background so the triangle visually merges with the card. */}+ <span style={{ color: 'var(--card)' }}>{arrow}</span>++ <Card size="sm" className="w-80 shadow-lg">+ <CardHeader className="flex flex-row items-start justify-between gap-2">+ <CardTitle>{step.title}</CardTitle>+ <button+ onClick={handleClose}+ className="text-muted-foreground hover:text-foreground -mt-1"+ aria-label={t('tour.skip')}+ >+ <X className="size-4" />+ </button>+ </CardHeader>+ <CardContent className="text-muted-foreground text-sm leading-relaxed">+ {step.content}+ </CardContent>+ <CardFooter className="flex items-center justify-between">+ <span className="text-muted-foreground text-xs">+ {t('tour.step', { current: currentStep + 1, total: totalSteps })}+ </span>+ <div className="flex items-center gap-2">+ {!isFirst && (+ <Button size="sm" variant="ghost" onClick={prevStep}>+ {t('tour.prev')}+ </Button>+ )}+ <Button size="sm" onClick={handleNext}>+ {isLast ? t('tour.finish') : t('tour.next')}+ </Button>+ </div>+ </CardFooter>+ </Card>+ </>+ );+};diff --git a/examples/web_ui/frontend/src/components/tour/chatTourSteps.ts b/examples/web_ui/frontend/src/components/tour/chatTourSteps.tsnew file mode 100644index 000000000..dcb772bac--- /dev/null+++ b/examples/web_ui/frontend/src/components/tour/chatTourSteps.ts@@ -0,0 +1,60 @@+import type { TFunction } from 'i18next';+import type { Tour } from 'onborda/dist/types';++export const CHAT_TOUR_NAME = 'chat-onboarding';++export const buildChatTour = (t: TFunction): Tour => ({+ tour: CHAT_TOUR_NAME,+ steps: [+ {+ icon: null,+ title: t('tour.createAgent.title'),+ content: t('tour.createAgent.content'),+ selector: '#tour-create-agent',+ side: 'bottom',+ showControls: false,+ pointerPadding: 8,+ pointerRadius: 8,+ },+ {+ icon: null,+ title: t('tour.createSession.title'),+ content: t('tour.createSession.content'),+ selector: '#tour-create-session',+ side: 'right',+ showControls: false,+ pointerPadding: 6,+ pointerRadius: 6,+ },+ {+ icon: null,+ title: t('tour.llmSelect.title'),+ content: t('tour.llmSelect.content'),+ selector: '#tour-llm-select',+ side: 'bottom',+ showControls: false,+ pointerPadding: 6,+ pointerRadius: 8,+ },+ {+ icon: null,+ title: t('tour.permissionMode.title'),+ content: t('tour.permissionMode.content'),+ selector: '#tour-permission-mode',+ side: 'bottom-right',+ showControls: false,+ pointerPadding: 6,+ pointerRadius: 8,+ },+ {+ icon: null,+ title: t('tour.chatInput.title'),+ content: t('tour.chatInput.content'),+ selector: '#tour-chat-input',+ side: 'top',+ showControls: false,+ pointerPadding: 6,+ pointerRadius: 16,+ },+ ],+});diff --git a/examples/web_ui/frontend/src/components/ui/alert.tsx b/examples/web_ui/frontend/src/components/ui/alert.tsxnew file mode 100644index 000000000..929a85c81--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/alert.tsx@@ -0,0 +1,73 @@+import * as React from 'react';+import { cva, type VariantProps } from 'class-variance-authority';++import { cn } from '@/lib/utils';++const alertVariants = cva(+ "group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",+ {+ variants: {+ variant: {+ default: 'bg-card text-card-foreground',+ destructive:+ 'bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current',+ },+ },+ defaultVariants: {+ variant: 'default',+ },+ },+);++function Alert({+ className,+ variant,+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>) {+ return (+ <div+ data-slot="alert"+ role="alert"+ className={cn(alertVariants({ variant }), className)}+ {...props}+ />+ );+}++function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="alert-title"+ className={cn(+ 'font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground',+ className,+ )}+ {...props}+ />+ );+}++function AlertDescription({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="alert-description"+ className={cn(+ 'text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4',+ className,+ )}+ {...props}+ />+ );+}++function AlertAction({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="alert-action"+ className={cn('absolute top-2 right-2', className)}+ {...props}+ />+ );+}++export { Alert, AlertTitle, AlertDescription, AlertAction };diff --git a/examples/web_ui/frontend/src/components/ui/badge.tsx b/examples/web_ui/frontend/src/components/ui/badge.tsxnew file mode 100644index 000000000..44d458289--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/badge.tsx@@ -0,0 +1,46 @@+import * as React from 'react';+import { cva, type VariantProps } from 'class-variance-authority';+import { Slot } from 'radix-ui';++import { cn } from '@/lib/utils';++const badgeVariants = cva(+ 'group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!',+ {+ variants: {+ variant: {+ default: 'bg-primary text-primary-foreground [a]:hover:bg-primary/80',+ secondary: 'bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80',+ destructive:+ 'bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20',+ outline:+ 'border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',+ ghost: 'hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50',+ link: 'text-primary underline-offset-4 hover:underline',+ },+ },+ defaultVariants: {+ variant: 'default',+ },+ },+);++function Badge({+ className,+ variant = 'default',+ asChild = false,+ ...props+}: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & { asChild?: boolean }) {+ const Comp = asChild ? Slot.Root : 'span';++ return (+ <Comp+ data-slot="badge"+ data-variant={variant}+ className={cn(badgeVariants({ variant }), className)}+ {...props}+ />+ );+}++export { Badge, badgeVariants };diff --git a/examples/web_ui/frontend/src/components/ui/button-group.tsx b/examples/web_ui/frontend/src/components/ui/button-group.tsxnew file mode 100644index 000000000..99b788835--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/button-group.tsx@@ -0,0 +1,78 @@+import { cva, type VariantProps } from 'class-variance-authority';+import { Slot } from 'radix-ui';++import { cn } from '@/lib/utils';+import { Separator } from '@/components/ui/separator';++const buttonGroupVariants = cva(+ "group/button-group flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",+ {+ variants: {+ orientation: {+ horizontal:+ '[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg!',+ vertical:+ 'flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg!',+ },+ },+ defaultVariants: {+ orientation: 'horizontal',+ },+ },+);++function ButtonGroup({+ className,+ orientation,+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof buttonGroupVariants>) {+ return (+ <div+ role="group"+ data-slot="button-group"+ data-orientation={orientation}+ className={cn(buttonGroupVariants({ orientation }), className)}+ {...props}+ />+ );+}++function ButtonGroupText({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<'div'> & {+ asChild?: boolean;+}) {+ const Comp = asChild ? Slot.Root : 'div';++ return (+ <Comp+ className={cn(+ "flex items-center gap-2 rounded-lg border bg-muted px-2.5 text-sm font-medium [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ />+ );+}++function ButtonGroupSeparator({+ className,+ orientation = 'vertical',+ ...props+}: React.ComponentProps<typeof Separator>) {+ return (+ <Separator+ data-slot="button-group-separator"+ orientation={orientation}+ className={cn(+ 'relative self-stretch bg-input data-horizontal:mx-px data-horizontal:w-auto data-vertical:my-px data-vertical:h-auto',+ className,+ )}+ {...props}+ />+ );+}++export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };diff --git a/examples/web_ui/frontend/src/components/ui/button.tsx b/examples/web_ui/frontend/src/components/ui/button.tsxnew file mode 100644index 000000000..72a82d700--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/button.tsx@@ -0,0 +1,86 @@+import * as React from 'react';+import { cva, type VariantProps } from 'class-variance-authority';+import { Slot } from 'radix-ui';++import { cn } from '@/lib/utils';+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip.tsx';++const buttonVariants = cva(+ "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ {+ variants: {+ variant: {+ default: 'bg-primary text-primary-foreground [a]:hover:bg-primary/80',+ outline:+ 'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',+ secondary:+ 'bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',+ ghost: 'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50',+ destructive:+ 'bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40',+ link: 'text-primary underline-offset-4 hover:underline',+ },+ size: {+ default:+ 'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",+ lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',+ icon: 'size-8',+ 'icon-xs':+ "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",+ 'icon-sm':+ "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3.5",+ 'icon-lg': 'size-9',+ },+ },+ defaultVariants: {+ variant: 'default',+ size: 'default',+ },+ },+);++function Button({+ className,+ variant = 'default',+ size = 'default',+ asChild = false,+ tooltip = undefined,+ ...props+}: React.ComponentProps<'button'> &+ VariantProps<typeof buttonVariants> & {+ asChild?: boolean;+ tooltip?: string;+ }) {+ const Comp = asChild ? Slot.Root : 'button';++ if (tooltip === undefined) {+ return (+ <Comp+ data-slot="button"+ data-variant={variant}+ data-size={size}+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ />+ );+ }++ return (+ <Tooltip>+ <TooltipTrigger>+ <Comp+ data-slot="button"+ data-variant={variant}+ data-size={size}+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ />+ </TooltipTrigger>+ <TooltipContent>{tooltip}</TooltipContent>+ </Tooltip>+ );+}++export { Button, buttonVariants };diff --git a/examples/web_ui/frontend/src/components/ui/calendar.tsx b/examples/web_ui/frontend/src/components/ui/calendar.tsxnew file mode 100644index 000000000..0546839d8--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/calendar.tsx@@ -0,0 +1,198 @@+import * as React from 'react';+import { DayPicker, getDefaultClassNames, type DayButton, type Locale } from 'react-day-picker';++import { cn } from '@/lib/utils';+import { Button, buttonVariants } from '@/components/ui/button';+import { ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon } from 'lucide-react';++function Calendar({+ className,+ classNames,+ showOutsideDays = true,+ captionLayout = 'label',+ buttonVariant = 'ghost',+ locale,+ formatters,+ components,+ ...props+}: React.ComponentProps<typeof DayPicker> & {+ buttonVariant?: React.ComponentProps<typeof Button>['variant'];+}) {+ const defaultClassNames = getDefaultClassNames();++ return (+ <DayPicker+ showOutsideDays={showOutsideDays}+ className={cn(+ 'group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent',+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,+ className,+ )}+ captionLayout={captionLayout}+ locale={locale}+ formatters={{+ formatMonthDropdown: (date) =>+ date.toLocaleString(locale?.code, { month: 'short' }),+ ...formatters,+ }}+ classNames={{+ root: cn('w-fit', defaultClassNames.root),+ months: cn('relative flex flex-col gap-4 md:flex-row', defaultClassNames.months),+ month: cn('flex w-full flex-col gap-4', defaultClassNames.month),+ nav: cn(+ 'absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1',+ defaultClassNames.nav,+ ),+ button_previous: cn(+ buttonVariants({ variant: buttonVariant }),+ 'size-(--cell-size) p-0 select-none aria-disabled:opacity-50',+ defaultClassNames.button_previous,+ ),+ button_next: cn(+ buttonVariants({ variant: buttonVariant }),+ 'size-(--cell-size) p-0 select-none aria-disabled:opacity-50',+ defaultClassNames.button_next,+ ),+ month_caption: cn(+ 'flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)',+ defaultClassNames.month_caption,+ ),+ dropdowns: cn(+ 'flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium',+ defaultClassNames.dropdowns,+ ),+ dropdown_root: cn(+ 'relative rounded-(--cell-radius)',+ defaultClassNames.dropdown_root,+ ),+ dropdown: cn('absolute inset-0 bg-popover opacity-0', defaultClassNames.dropdown),+ caption_label: cn(+ 'font-medium select-none',+ captionLayout === 'label'+ ? 'text-sm'+ : 'flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground',+ defaultClassNames.caption_label,+ ),+ table: 'w-full border-collapse',+ weekdays: cn('flex', defaultClassNames.weekdays),+ weekday: cn(+ 'flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none',+ defaultClassNames.weekday,+ ),+ week: cn('mt-2 flex w-full', defaultClassNames.week),+ week_number_header: cn(+ 'w-(--cell-size) select-none',+ defaultClassNames.week_number_header,+ ),+ week_number: cn(+ 'text-[0.8rem] text-muted-foreground select-none',+ defaultClassNames.week_number,+ ),+ day: cn(+ 'group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)',+ props.showWeekNumber+ ? '[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)'+ : '[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)',+ defaultClassNames.day,+ ),+ range_start: cn(+ 'relative isolate z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted',+ defaultClassNames.range_start,+ ),+ range_middle: cn('rounded-none', defaultClassNames.range_middle),+ range_end: cn(+ 'relative isolate z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted',+ defaultClassNames.range_end,+ ),+ today: cn(+ 'rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none',+ defaultClassNames.today,+ ),+ outside: cn(+ 'text-muted-foreground aria-selected:text-muted-foreground',+ defaultClassNames.outside,+ ),+ disabled: cn('text-muted-foreground opacity-50', defaultClassNames.disabled),+ hidden: cn('invisible', defaultClassNames.hidden),+ ...classNames,+ }}+ components={{+ Root: ({ className, rootRef, ...props }) => {+ return (+ <div+ data-slot="calendar"+ ref={rootRef}+ className={cn(className)}+ {...props}+ />+ );+ },+ Chevron: ({ className, orientation, ...props }) => {+ if (orientation === 'left') {+ return <ChevronLeftIcon className={cn('size-4', className)} {...props} />;+ }++ if (orientation === 'right') {+ return <ChevronRightIcon className={cn('size-4', className)} {...props} />;+ }++ return <ChevronDownIcon className={cn('size-4', className)} {...props} />;+ },+ DayButton: ({ ...props }) => <CalendarDayButton locale={locale} {...props} />,+ WeekNumber: ({ children, ...props }) => {+ return (+ <td {...props}>+ <div className="flex size-(--cell-size) items-center justify-center text-center">+ {children}+ </div>+ </td>+ );+ },+ ...components,+ }}+ {...props}+ />+ );+}++function CalendarDayButton({+ className,+ day,+ modifiers,+ locale,+ ...props+}: React.ComponentProps<typeof DayButton> & { locale?: Partial<Locale> }) {+ const defaultClassNames = getDefaultClassNames();++ const ref = React.useRef<HTMLButtonElement>(null);+ React.useEffect(() => {+ if (modifiers.focused) ref.current?.focus();+ }, [modifiers.focused]);++ return (+ <Button+ ref={ref}+ variant="ghost"+ size="icon"+ data-day={day.date.toLocaleDateString(locale?.code)}+ data-selected-single={+ modifiers.selected &&+ !modifiers.range_start &&+ !modifiers.range_end &&+ !modifiers.range_middle+ }+ data-range-start={modifiers.range_start}+ data-range-end={modifiers.range_end}+ data-range-middle={modifiers.range_middle}+ className={cn(+ 'relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70',+ defaultClassNames.day,+ className,+ )}+ {...props}+ />+ );+}++export { Calendar, CalendarDayButton };diff --git a/examples/web_ui/frontend/src/components/ui/card.tsx b/examples/web_ui/frontend/src/components/ui/card.tsxnew file mode 100644index 000000000..464f21506--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/card.tsx@@ -0,0 +1,95 @@+import * as React from 'react';++import { cn } from '@/lib/utils';++function Card({+ className,+ size = 'default',+ ...props+}: React.ComponentProps<'div'> & { size?: 'default' | 'sm' }) {+ return (+ <div+ data-slot="card"+ data-size={size}+ className={cn(+ 'group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl',+ className,+ )}+ {...props}+ />+ );+}++function CardHeader({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="card-header"+ className={cn(+ 'group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3',+ className,+ )}+ {...props}+ />+ );+}++function CardTitle({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="card-title"+ className={cn(+ 'font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm',+ className,+ )}+ {...props}+ />+ );+}++function CardDescription({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="card-description"+ className={cn('text-sm text-muted-foreground', className)}+ {...props}+ />+ );+}++function CardAction({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="card-action"+ className={cn(+ 'col-start-2 row-span-2 row-start-1 self-start justify-self-end',+ className,+ )}+ {...props}+ />+ );+}++function CardContent({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="card-content"+ className={cn('px-4 group-data-[size=sm]/card:px-3', className)}+ {...props}+ />+ );+}++function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="card-footer"+ className={cn(+ 'flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3',+ className,+ )}+ {...props}+ />+ );+}++export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };diff --git a/examples/web_ui/frontend/src/components/ui/checkbox.tsx b/examples/web_ui/frontend/src/components/ui/checkbox.tsxnew file mode 100644index 000000000..95be4aede--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/checkbox.tsx@@ -0,0 +1,27 @@+import * as React from 'react';+import { Checkbox as CheckboxPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';+import { CheckIcon } from 'lucide-react';++function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {+ return (+ <CheckboxPrimitive.Root+ data-slot="checkbox"+ className={cn(+ 'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary',+ className,+ )}+ {...props}+ >+ <CheckboxPrimitive.Indicator+ data-slot="checkbox-indicator"+ className="grid place-content-center text-current transition-none [&>svg]:size-3.5"+ >+ <CheckIcon />+ </CheckboxPrimitive.Indicator>+ </CheckboxPrimitive.Root>+ );+}++export { Checkbox };diff --git a/examples/web_ui/frontend/src/components/ui/dialog.tsx b/examples/web_ui/frontend/src/components/ui/dialog.tsxnew file mode 100644index 000000000..7cde926a5--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/dialog.tsx@@ -0,0 +1,147 @@+import * as React from 'react';+import { Dialog as DialogPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';+import { Button } from '@/components/ui/button';+import { XIcon } from 'lucide-react';++function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />;+}++function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;+}++function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;+}++function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;+}++function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"+ className={cn(+ 'fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',+ className,+ )}+ {...props}+ />+ );+}++function DialogContent({+ className,+ children,+ showCloseButton = true,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Content> & {+ showCloseButton?: boolean;+}) {+ return (+ <DialogPortal>+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={cn(+ 'fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',+ className,+ )}+ {...props}+ >+ {children}+ {showCloseButton && (+ <DialogPrimitive.Close data-slot="dialog-close" asChild>+ <Button variant="ghost" className="absolute top-2 right-2" size="icon-sm">+ <XIcon />+ <span className="sr-only">Close</span>+ </Button>+ </DialogPrimitive.Close>+ )}+ </DialogPrimitive.Content>+ </DialogPortal>+ );+}++function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="dialog-header"+ className={cn('flex flex-col gap-2', className)}+ {...props}+ />+ );+}++function DialogFooter({+ className,+ showCloseButton = false,+ children,+ ...props+}: React.ComponentProps<'div'> & {+ showCloseButton?: boolean;+}) {+ return (+ <div+ data-slot="dialog-footer"+ className={cn(+ '-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end',+ className,+ )}+ {...props}+ >+ {children}+ {showCloseButton && (+ <DialogPrimitive.Close asChild>+ <Button variant="outline">Close</Button>+ </DialogPrimitive.Close>+ )}+ </div>+ );+}++function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={cn('font-heading text-base leading-none font-medium', className)}+ {...props}+ />+ );+}++function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={cn(+ 'text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground',+ className,+ )}+ {...props}+ />+ );+}++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+};diff --git a/examples/web_ui/frontend/src/components/ui/drawer.tsx b/examples/web_ui/frontend/src/components/ui/drawer.tsxnew file mode 100644index 000000000..d84d97563--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/drawer.tsx@@ -0,0 +1,120 @@+'use client';++import * as React from 'react';+import { Drawer as DrawerPrimitive } from 'vaul';++import { cn } from '@/lib/utils';++function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {+ return <DrawerPrimitive.Root data-slot="drawer" {...props} />;+}++function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {+ return <DrawerPrimitive.Trigger data-slot="drawer-trigger" {...props} />;+}++function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {+ return <DrawerPrimitive.Portal data-slot="drawer-portal" {...props} />;+}++function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {+ return <DrawerPrimitive.Close data-slot="drawer-close" {...props} />;+}++function DrawerOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {+ return (+ <DrawerPrimitive.Overlay+ data-slot="drawer-overlay"+ className={cn(+ 'fixed inset-0 z-50 bg-black/10 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',+ className,+ )}+ {...props}+ />+ );+}++function DrawerContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Content>) {+ return (+ <DrawerPortal data-slot="drawer-portal">+ <DrawerOverlay />+ <DrawerPrimitive.Content+ data-slot="drawer-content"+ className={cn(+ 'group/drawer-content fixed z-50 flex h-auto flex-col bg-popover text-sm text-popover-foreground data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm',+ className,+ )}+ {...props}+ >+ <div className="mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />+ {children}+ </DrawerPrimitive.Content>+ </DrawerPortal>+ );+}++function DrawerHeader({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="drawer-header"+ className={cn(+ 'flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left',+ className,+ )}+ {...props}+ />+ );+}++function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="drawer-footer"+ className={cn('mt-auto flex flex-col gap-2 p-4', className)}+ {...props}+ />+ );+}++function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {+ return (+ <DrawerPrimitive.Title+ data-slot="drawer-title"+ className={cn('font-heading text-base font-medium text-foreground', className)}+ {...props}+ />+ );+}++function DrawerDescription({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Description>) {+ return (+ <DrawerPrimitive.Description+ data-slot="drawer-description"+ className={cn('text-sm text-muted-foreground', className)}+ {...props}+ />+ );+}++export {+ Drawer,+ DrawerPortal,+ DrawerOverlay,+ DrawerTrigger,+ DrawerClose,+ DrawerContent,+ DrawerHeader,+ DrawerFooter,+ DrawerTitle,+ DrawerDescription,+};diff --git a/examples/web_ui/frontend/src/components/ui/dropdown-menu.tsx b/examples/web_ui/frontend/src/components/ui/dropdown-menu.tsxnew file mode 100644index 000000000..be727355e--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/dropdown-menu.tsx@@ -0,0 +1,248 @@+import * as React from 'react';+import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';+import { CheckIcon, ChevronRightIcon } from 'lucide-react';++function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {+ return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />;+}++function DropdownMenuPortal({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {+ return <DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />;+}++function DropdownMenuTrigger({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {+ return <DropdownMenuPrimitive.Trigger data-slot="dropdown-menu-trigger" {...props} />;+}++function DropdownMenuContent({+ className,+ align = 'start',+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {+ return (+ <DropdownMenuPrimitive.Portal>+ <DropdownMenuPrimitive.Content+ data-slot="dropdown-menu-content"+ sideOffset={sideOffset}+ align={align}+ className={cn(+ 'z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:overflow-hidden data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',+ className,+ )}+ {...props}+ />+ </DropdownMenuPrimitive.Portal>+ );+}++function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {+ return <DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />;+}++function DropdownMenuItem({+ className,+ inset,+ variant = 'default',+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {+ inset?: boolean;+ variant?: 'default' | 'destructive';+}) {+ return (+ <DropdownMenuPrimitive.Item+ data-slot="dropdown-menu-item"+ data-inset={inset}+ data-variant={variant}+ className={cn(+ "group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",+ className,+ )}+ {...props}+ />+ );+}++function DropdownMenuCheckboxItem({+ className,+ children,+ checked,+ inset,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {+ inset?: boolean;+}) {+ return (+ <DropdownMenuPrimitive.CheckboxItem+ data-slot="dropdown-menu-checkbox-item"+ data-inset={inset}+ className={cn(+ "relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ checked={checked}+ {...props}+ >+ <span+ className="pointer-events-none absolute right-2 flex items-center justify-center"+ data-slot="dropdown-menu-checkbox-item-indicator"+ >+ <DropdownMenuPrimitive.ItemIndicator>+ <CheckIcon />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.CheckboxItem>+ );+}++function DropdownMenuRadioGroup({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {+ return <DropdownMenuPrimitive.RadioGroup data-slot="dropdown-menu-radio-group" {...props} />;+}++function DropdownMenuRadioItem({+ className,+ children,+ inset,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {+ inset?: boolean;+}) {+ return (+ <DropdownMenuPrimitive.RadioItem+ data-slot="dropdown-menu-radio-item"+ data-inset={inset}+ className={cn(+ "relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ >+ <span+ className="pointer-events-none absolute right-2 flex items-center justify-center"+ data-slot="dropdown-menu-radio-item-indicator"+ >+ <DropdownMenuPrimitive.ItemIndicator>+ <CheckIcon />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.RadioItem>+ );+}++function DropdownMenuLabel({+ className,+ inset,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {+ inset?: boolean;+}) {+ return (+ <DropdownMenuPrimitive.Label+ data-slot="dropdown-menu-label"+ data-inset={inset}+ className={cn(+ 'px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7',+ className,+ )}+ {...props}+ />+ );+}++function DropdownMenuSeparator({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {+ return (+ <DropdownMenuPrimitive.Separator+ data-slot="dropdown-menu-separator"+ className={cn('-mx-1 my-1 h-px bg-border', className)}+ {...props}+ />+ );+}++function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>) {+ return (+ <span+ data-slot="dropdown-menu-shortcut"+ className={cn(+ 'ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground',+ className,+ )}+ {...props}+ />+ );+}++function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {+ return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />;+}++function DropdownMenuSubTrigger({+ className,+ inset,+ children,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {+ inset?: boolean;+}) {+ return (+ <DropdownMenuPrimitive.SubTrigger+ data-slot="dropdown-menu-sub-trigger"+ data-inset={inset}+ className={cn(+ "flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ >+ {children}+ <ChevronRightIcon className="ml-auto" />+ </DropdownMenuPrimitive.SubTrigger>+ );+}++function DropdownMenuSubContent({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {+ return (+ <DropdownMenuPrimitive.SubContent+ data-slot="dropdown-menu-sub-content"+ className={cn(+ 'z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',+ className,+ )}+ {...props}+ />+ );+}++export {+ DropdownMenu,+ DropdownMenuPortal,+ DropdownMenuTrigger,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuLabel,+ DropdownMenuItem,+ DropdownMenuCheckboxItem,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,+ DropdownMenuSeparator,+ DropdownMenuShortcut,+ DropdownMenuSub,+ DropdownMenuSubTrigger,+ DropdownMenuSubContent,+};diff --git a/examples/web_ui/frontend/src/components/ui/empty.tsx b/examples/web_ui/frontend/src/components/ui/empty.tsxnew file mode 100644index 000000000..13df5f267--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/empty.tsx@@ -0,0 +1,94 @@+import { cva, type VariantProps } from 'class-variance-authority';++import { cn } from '@/lib/utils';++function Empty({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="empty"+ className={cn(+ 'flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance',+ className,+ )}+ {...props}+ />+ );+}++function EmptyHeader({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="empty-header"+ className={cn('flex max-w-sm flex-col items-center gap-2', className)}+ {...props}+ />+ );+}++const emptyMediaVariants = cva(+ 'mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0',+ {+ variants: {+ variant: {+ default: 'bg-transparent',+ icon: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4",+ },+ },+ defaultVariants: {+ variant: 'default',+ },+ },+);++function EmptyMedia({+ className,+ variant = 'default',+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof emptyMediaVariants>) {+ return (+ <div+ data-slot="empty-icon"+ data-variant={variant}+ className={cn(emptyMediaVariants({ variant, className }))}+ {...props}+ />+ );+}++function EmptyTitle({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="empty-title"+ className={cn('font-heading text-sm font-medium tracking-tight', className)}+ {...props}+ />+ );+}++function EmptyDescription({ className, ...props }: React.ComponentProps<'p'>) {+ return (+ <div+ data-slot="empty-description"+ className={cn(+ 'text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',+ className,+ )}+ {...props}+ />+ );+}++function EmptyContent({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="empty-content"+ className={cn(+ 'flex w-full max-w-sm min-w-0 flex-col items-center gap-2.5 text-sm text-balance',+ className,+ )}+ {...props}+ />+ );+}++export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia };diff --git a/examples/web_ui/frontend/src/components/ui/field.tsx b/examples/web_ui/frontend/src/components/ui/field.tsxnew file mode 100644index 000000000..67fb9ef8e--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/field.tsx@@ -0,0 +1,227 @@+import { useMemo } from 'react';+import { cva, type VariantProps } from 'class-variance-authority';++import { cn } from '@/lib/utils';+import { Label } from '@/components/ui/label';+import { Separator } from '@/components/ui/separator';++function FieldSet({ className, ...props }: React.ComponentProps<'fieldset'>) {+ return (+ <fieldset+ data-slot="field-set"+ className={cn(+ 'flex flex-col gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3',+ className,+ )}+ {...props}+ />+ );+}++function FieldLegend({+ className,+ variant = 'legend',+ ...props+}: React.ComponentProps<'legend'> & { variant?: 'legend' | 'label' }) {+ return (+ <legend+ data-slot="field-legend"+ data-variant={variant}+ className={cn(+ 'mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base',+ className,+ )}+ {...props}+ />+ );+}++function FieldGroup({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="field-group"+ className={cn(+ 'group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4',+ className,+ )}+ {...props}+ />+ );+}++const fieldVariants = cva('group/field flex w-full gap-2 data-[invalid=true]:text-destructive', {+ variants: {+ orientation: {+ vertical: 'flex-col *:w-full [&>.sr-only]:w-auto',+ horizontal:+ 'flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',+ responsive:+ 'flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px',+ },+ },+ defaultVariants: {+ orientation: 'vertical',+ },+});++function Field({+ className,+ orientation = 'vertical',+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof fieldVariants>) {+ return (+ <div+ role="group"+ data-slot="field"+ data-orientation={orientation}+ className={cn(fieldVariants({ orientation }), className)}+ {...props}+ />+ );+}++function FieldContent({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="field-content"+ className={cn(+ 'group/field-content flex flex-1 flex-col gap-0.5 leading-snug',+ className,+ )}+ {...props}+ />+ );+}++function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>) {+ return (+ <Label+ data-slot="field-label"+ className={cn(+ 'group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10',+ 'has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col',+ className,+ )}+ {...props}+ />+ );+}++function FieldTitle({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="field-label"+ className={cn(+ 'flex w-fit items-center gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50',+ className,+ )}+ {...props}+ />+ );+}++function FieldDescription({ className, ...props }: React.ComponentProps<'p'>) {+ return (+ <p+ data-slot="field-description"+ className={cn(+ 'text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5',+ 'last:mt-0 nth-last-2:-mt-1',+ '[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',+ className,+ )}+ {...props}+ />+ );+}++function FieldSeparator({+ children,+ className,+ ...props+}: React.ComponentProps<'div'> & {+ children?: React.ReactNode;+}) {+ return (+ <div+ data-slot="field-separator"+ data-content={!!children}+ className={cn(+ 'relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2',+ className,+ )}+ {...props}+ >+ <Separator className="absolute inset-0 top-1/2" />+ {children && (+ <span+ className="relative mx-auto block w-fit bg-background px-2 text-muted-foreground"+ data-slot="field-separator-content"+ >+ {children}+ </span>+ )}+ </div>+ );+}++function FieldError({+ className,+ children,+ errors,+ ...props+}: React.ComponentProps<'div'> & {+ errors?: Array<{ message?: string } | undefined>;+}) {+ const content = useMemo(() => {+ if (children) {+ return children;+ }++ if (!errors?.length) {+ return null;+ }++ const uniqueErrors = [...new Map(errors.map((error) => [error?.message, error])).values()];++ if (uniqueErrors?.length == 1) {+ return uniqueErrors[0]?.message;+ }++ return (+ <ul className="ml-4 flex list-disc flex-col gap-1">+ {uniqueErrors.map(+ (error, index) => error?.message && <li key={index}>{error.message}</li>,+ )}+ </ul>+ );+ }, [children, errors]);++ if (!content) {+ return null;+ }++ return (+ <div+ role="alert"+ data-slot="field-error"+ className={cn('text-sm font-normal text-destructive', className)}+ {...props}+ >+ {content}+ </div>+ );+}++export {+ Field,+ FieldLabel,+ FieldDescription,+ FieldError,+ FieldGroup,+ FieldLegend,+ FieldSeparator,+ FieldSet,+ FieldContent,+ FieldTitle,+};diff --git a/examples/web_ui/frontend/src/components/ui/input-group.tsx b/examples/web_ui/frontend/src/components/ui/input-group.tsxnew file mode 100644index 000000000..c34d8c6ae--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/input-group.tsx@@ -0,0 +1,143 @@+import * as React from 'react';+import { cva, type VariantProps } from 'class-variance-authority';++import { cn } from '@/lib/utils';+import { Button } from '@/components/ui/button';+import { Input } from '@/components/ui/input';+import { Textarea } from '@/components/ui/textarea';++function InputGroup({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="input-group"+ role="group"+ className={cn(+ 'group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5',+ className,+ )}+ {...props}+ />+ );+}++const inputGroupAddonVariants = cva(+ "flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",+ {+ variants: {+ align: {+ 'inline-start':+ 'order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]',+ 'inline-end': 'order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]',+ 'block-start':+ 'order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2',+ 'block-end':+ 'order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2',+ },+ },+ defaultVariants: {+ align: 'inline-start',+ },+ },+);++function InputGroupAddon({+ className,+ align = 'inline-start',+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>) {+ return (+ <div+ role="group"+ data-slot="input-group-addon"+ data-align={align}+ className={cn(inputGroupAddonVariants({ align }), className)}+ onClick={(e) => {+ if ((e.target as HTMLElement).closest('button')) {+ return;+ }+ e.currentTarget.parentElement?.querySelector('input')?.focus();+ }}+ {...props}+ />+ );+}++const inputGroupButtonVariants = cva('flex items-center gap-2 text-sm shadow-none', {+ variants: {+ size: {+ xs: "h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",+ sm: '',+ 'icon-xs': 'size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0',+ 'icon-sm': 'size-8 p-0 has-[>svg]:p-0',+ },+ },+ defaultVariants: {+ size: 'xs',+ },+});++function InputGroupButton({+ className,+ type = 'button',+ variant = 'ghost',+ size = 'xs',+ ...props+}: Omit<React.ComponentProps<typeof Button>, 'size'> &+ VariantProps<typeof inputGroupButtonVariants>) {+ return (+ <Button+ type={type}+ data-size={size}+ variant={variant}+ className={cn(inputGroupButtonVariants({ size }), className)}+ {...props}+ />+ );+}++function InputGroupText({ className, ...props }: React.ComponentProps<'span'>) {+ return (+ <span+ className={cn(+ "flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ />+ );+}++function InputGroupInput({ className, ...props }: React.ComponentProps<'input'>) {+ return (+ <Input+ data-slot="input-group-control"+ className={cn(+ 'flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent',+ className,+ )}+ {...props}+ />+ );+}++function InputGroupTextarea({ className, ...props }: React.ComponentProps<'textarea'>) {+ return (+ <Textarea+ data-slot="input-group-control"+ className={cn(+ 'flex-1 resize-none rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent',+ className,+ )}+ {...props}+ />+ );+}++export {+ InputGroup,+ InputGroupAddon,+ InputGroupButton,+ InputGroupText,+ InputGroupInput,+ InputGroupTextarea,+};diff --git a/examples/web_ui/frontend/src/components/ui/input.tsx b/examples/web_ui/frontend/src/components/ui/input.tsxnew file mode 100644index 000000000..a7378aee1--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/input.tsx@@ -0,0 +1,19 @@+import * as React from 'react';++import { cn } from '@/lib/utils';++function Input({ className, type, ...props }: React.ComponentProps<'input'>) {+ return (+ <input+ type={type}+ data-slot="input"+ className={cn(+ 'h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',+ className,+ )}+ {...props}+ />+ );+}++export { Input };diff --git a/examples/web_ui/frontend/src/components/ui/item.tsx b/examples/web_ui/frontend/src/components/ui/item.tsxnew file mode 100644index 000000000..335cf6106--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/item.tsx@@ -0,0 +1,185 @@+import * as React from 'react';+import { cva, type VariantProps } from 'class-variance-authority';+import { Slot } from 'radix-ui';++import { cn } from '@/lib/utils';+import { Separator } from '@/components/ui/separator';++function ItemGroup({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ role="list"+ data-slot="item-group"+ className={cn(+ 'group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2',+ className,+ )}+ {...props}+ />+ );+}++function ItemSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {+ return (+ <Separator+ data-slot="item-separator"+ orientation="horizontal"+ className={cn('my-2', className)}+ {...props}+ />+ );+}++const itemVariants = cva(+ 'group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted',+ {+ variants: {+ variant: {+ default: 'border-transparent',+ outline: 'border-border',+ muted: 'border-transparent bg-muted/50',+ },+ size: {+ default: 'gap-2.5 px-3 py-2.5',+ sm: 'gap-2.5 px-3 py-2.5',+ xs: 'gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0',+ },+ },+ defaultVariants: {+ variant: 'default',+ size: 'default',+ },+ },+);++function Item({+ className,+ variant = 'default',+ size = 'default',+ asChild = false,+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof itemVariants> & { asChild?: boolean }) {+ const Comp = asChild ? Slot.Root : 'div';+ return (+ <Comp+ data-slot="item"+ data-variant={variant}+ data-size={size}+ className={cn(itemVariants({ variant, size, className }))}+ {...props}+ />+ );+}++const itemMediaVariants = cva(+ 'flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none',+ {+ variants: {+ variant: {+ default: 'bg-transparent',+ icon: "[&_svg:not([class*='size-'])]:size-4",+ image: 'size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover',+ },+ },+ defaultVariants: {+ variant: 'default',+ },+ },+);++function ItemMedia({+ className,+ variant = 'default',+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof itemMediaVariants>) {+ return (+ <div+ data-slot="item-media"+ data-variant={variant}+ className={cn(itemMediaVariants({ variant, className }))}+ {...props}+ />+ );+}++function ItemContent({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="item-content"+ className={cn(+ 'flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none',+ className,+ )}+ {...props}+ />+ );+}++function ItemTitle({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="item-title"+ className={cn(+ 'line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4',+ className,+ )}+ {...props}+ />+ );+}++function ItemDescription({ className, ...props }: React.ComponentProps<'p'>) {+ return (+ <p+ data-slot="item-description"+ className={cn(+ 'line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary',+ className,+ )}+ {...props}+ />+ );+}++function ItemActions({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="item-actions"+ className={cn('flex items-center gap-2', className)}+ {...props}+ />+ );+}++function ItemHeader({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="item-header"+ className={cn('flex basis-full items-center justify-between gap-2', className)}+ {...props}+ />+ );+}++function ItemFooter({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="item-footer"+ className={cn('flex basis-full items-center justify-between gap-2', className)}+ {...props}+ />+ );+}++export {+ Item,+ ItemMedia,+ ItemContent,+ ItemActions,+ ItemGroup,+ ItemSeparator,+ ItemTitle,+ ItemDescription,+ ItemHeader,+ ItemFooter,+};diff --git a/examples/web_ui/frontend/src/components/ui/kbd.tsx b/examples/web_ui/frontend/src/components/ui/kbd.tsxnew file mode 100644index 000000000..2d871e6f2--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/kbd.tsx@@ -0,0 +1,26 @@+import { cn } from '@/lib/utils';++function Kbd({ className, ...props }: React.ComponentProps<'kbd'>) {+ return (+ <kbd+ data-slot="kbd"+ className={cn(+ "pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3",+ className,+ )}+ {...props}+ />+ );+}++function KbdGroup({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <kbd+ data-slot="kbd-group"+ className={cn('inline-flex items-center gap-1', className)}+ {...props}+ />+ );+}++export { Kbd, KbdGroup };diff --git a/examples/web_ui/frontend/src/components/ui/label.tsx b/examples/web_ui/frontend/src/components/ui/label.tsxnew file mode 100644index 000000000..52311decf--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/label.tsx@@ -0,0 +1,19 @@+import * as React from 'react';+import { Label as LabelPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';++function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {+ return (+ <LabelPrimitive.Root+ data-slot="label"+ className={cn(+ 'flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',+ className,+ )}+ {...props}+ />+ );+}++export { Label };diff --git a/examples/web_ui/frontend/src/components/ui/popover.tsx b/examples/web_ui/frontend/src/components/ui/popover.tsxnew file mode 100644index 000000000..280845495--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/popover.tsx@@ -0,0 +1,72 @@+import * as React from 'react';+import { Popover as PopoverPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';++function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {+ return <PopoverPrimitive.Root data-slot="popover" {...props} />;+}++function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;+}++function PopoverContent({+ className,+ align = 'center',+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Content>) {+ return (+ <PopoverPrimitive.Portal>+ <PopoverPrimitive.Content+ data-slot="popover-content"+ align={align}+ sideOffset={sideOffset}+ className={cn(+ 'z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',+ className,+ )}+ {...props}+ />+ </PopoverPrimitive.Portal>+ );+}++function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {+ return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />;+}++function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="popover-header"+ className={cn('flex flex-col gap-0.5 text-sm', className)}+ {...props}+ />+ );+}++function PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {+ return <div data-slot="popover-title" className={cn('font-medium', className)} {...props} />;+}++function PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {+ return (+ <p+ data-slot="popover-description"+ className={cn('text-muted-foreground', className)}+ {...props}+ />+ );+}++export {+ Popover,+ PopoverAnchor,+ PopoverContent,+ PopoverDescription,+ PopoverHeader,+ PopoverTitle,+ PopoverTrigger,+};diff --git a/examples/web_ui/frontend/src/components/ui/select.tsx b/examples/web_ui/frontend/src/components/ui/select.tsxnew file mode 100644index 000000000..4d8d80c0f--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/select.tsx@@ -0,0 +1,183 @@+import * as React from 'react';+import { Select as SelectPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';+import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from 'lucide-react';++function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) {+ return <SelectPrimitive.Root data-slot="select" {...props} />;+}++function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>) {+ return (+ <SelectPrimitive.Group+ data-slot="select-group"+ className={cn('scroll-my-1 p-1', className)}+ {...props}+ />+ );+}++function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>) {+ return <SelectPrimitive.Value data-slot="select-value" {...props} />;+}++function SelectTrigger({+ className,+ size = 'default',+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {+ size?: 'sm' | 'default';+}) {+ return (+ <SelectPrimitive.Trigger+ data-slot="select-trigger"+ data-size={size}+ className={cn(+ "flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDownIcon className="pointer-events-none size-4 text-muted-foreground" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+ );+}++function SelectContent({+ className,+ children,+ position = 'item-aligned',+ align = 'center',+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Content>) {+ return (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ data-slot="select-content"+ data-align-trigger={position === 'item-aligned'}+ className={cn(+ 'relative z-50 max-h-(--radix-select-content-available-height) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',+ position === 'popper' &&+ 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',+ className,+ )}+ position={position}+ align={align}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ data-position={position}+ className={cn(+ 'data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)',+ position === 'popper' && '',+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+ );+}++function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>) {+ return (+ <SelectPrimitive.Label+ data-slot="select-label"+ className={cn('px-1.5 py-1 text-xs text-muted-foreground', className)}+ {...props}+ />+ );+}++function SelectItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Item>) {+ return (+ <SelectPrimitive.Item+ data-slot="select-item"+ className={cn(+ "relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",+ className,+ )}+ {...props}+ >+ <span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center">+ <SelectPrimitive.ItemIndicator>+ <CheckIcon className="pointer-events-none" />+ </SelectPrimitive.ItemIndicator>+ </span>+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+ );+}++function SelectSeparator({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {+ return (+ <SelectPrimitive.Separator+ data-slot="select-separator"+ className={cn('pointer-events-none -mx-1 my-1 h-px bg-border', className)}+ {...props}+ />+ );+}++function SelectScrollUpButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {+ return (+ <SelectPrimitive.ScrollUpButton+ data-slot="select-scroll-up-button"+ className={cn(+ "z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ >+ <ChevronUpIcon />+ </SelectPrimitive.ScrollUpButton>+ );+}++function SelectScrollDownButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {+ return (+ <SelectPrimitive.ScrollDownButton+ data-slot="select-scroll-down-button"+ className={cn(+ "z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ >+ <ChevronDownIcon />+ </SelectPrimitive.ScrollDownButton>+ );+}++export {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+ SelectLabel,+ SelectScrollDownButton,+ SelectScrollUpButton,+ SelectSeparator,+ SelectTrigger,+ SelectValue,+};diff --git a/examples/web_ui/frontend/src/components/ui/separator.tsx b/examples/web_ui/frontend/src/components/ui/separator.tsxnew file mode 100644index 000000000..c36614fd9--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/separator.tsx@@ -0,0 +1,28 @@+'use client';++import * as React from 'react';+import { Separator as SeparatorPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';++function Separator({+ className,+ orientation = 'horizontal',+ decorative = true,+ ...props+}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {+ return (+ <SeparatorPrimitive.Root+ data-slot="separator"+ decorative={decorative}+ orientation={orientation}+ className={cn(+ 'shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch',+ className,+ )}+ {...props}+ />+ );+}++export { Separator };diff --git a/examples/web_ui/frontend/src/components/ui/sheet.tsx b/examples/web_ui/frontend/src/components/ui/sheet.tsxnew file mode 100644index 000000000..9d019dabf--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/sheet.tsx@@ -0,0 +1,128 @@+import * as React from 'react';+import { Dialog as SheetPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';+import { Button } from '@/components/ui/button';+import { XIcon } from 'lucide-react';++function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {+ return <SheetPrimitive.Root data-slot="sheet" {...props} />;+}++function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>) {+ return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;+}++function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>) {+ return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;+}++function SheetPortal({ ...props }: React.ComponentProps<typeof SheetPrimitive.Portal>) {+ return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;+}++function SheetOverlay({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {+ return (+ <SheetPrimitive.Overlay+ data-slot="sheet-overlay"+ className={cn(+ 'fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0',+ className,+ )}+ {...props}+ />+ );+}++function SheetContent({+ className,+ children,+ side = 'right',+ showCloseButton = true,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Content> & {+ side?: 'top' | 'right' | 'bottom' | 'left';+ showCloseButton?: boolean;+}) {+ return (+ <SheetPortal>+ <SheetOverlay />+ <SheetPrimitive.Content+ data-slot="sheet-content"+ data-side={side}+ className={cn(+ 'fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10',+ className,+ )}+ {...props}+ >+ {children}+ {showCloseButton && (+ <SheetPrimitive.Close data-slot="sheet-close" asChild>+ <Button variant="ghost" className="absolute top-3 right-3" size="icon-sm">+ <XIcon />+ <span className="sr-only">Close</span>+ </Button>+ </SheetPrimitive.Close>+ )}+ </SheetPrimitive.Content>+ </SheetPortal>+ );+}++function SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="sheet-header"+ className={cn('flex flex-col gap-0.5 p-4', className)}+ {...props}+ />+ );+}++function SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="sheet-footer"+ className={cn('mt-auto flex flex-col gap-2 p-4', className)}+ {...props}+ />+ );+}++function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>) {+ return (+ <SheetPrimitive.Title+ data-slot="sheet-title"+ className={cn('font-heading text-base font-medium text-foreground', className)}+ {...props}+ />+ );+}++function SheetDescription({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Description>) {+ return (+ <SheetPrimitive.Description+ data-slot="sheet-description"+ className={cn('text-sm text-muted-foreground', className)}+ {...props}+ />+ );+}++export {+ Sheet,+ SheetTrigger,+ SheetClose,+ SheetContent,+ SheetHeader,+ SheetFooter,+ SheetTitle,+ SheetDescription,+};diff --git a/examples/web_ui/frontend/src/components/ui/sidebar.tsx b/examples/web_ui/frontend/src/components/ui/sidebar.tsxnew file mode 100644index 000000000..13415de1f--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/sidebar.tsx@@ -0,0 +1,673 @@+'use client';++import * as React from 'react';+import { cva, type VariantProps } from 'class-variance-authority';+import { Slot } from 'radix-ui';++import { useIsMobile } from '@/hooks/use-mobile';+import { cn } from '@/lib/utils';+import { Button } from '@/components/ui/button';+import { Input } from '@/components/ui/input';+import { Separator } from '@/components/ui/separator';+import {+ Sheet,+ SheetContent,+ SheetDescription,+ SheetHeader,+ SheetTitle,+} from '@/components/ui/sheet';+import { Skeleton } from '@/components/ui/skeleton';+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';+import { PanelLeftIcon } from 'lucide-react';++const SIDEBAR_COOKIE_NAME = 'sidebar_state';+const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;+const SIDEBAR_WIDTH = '16rem';+const SIDEBAR_WIDTH_MOBILE = '18rem';+const SIDEBAR_WIDTH_ICON = '3rem';+const SIDEBAR_KEYBOARD_SHORTCUT = 'b';++type SidebarContextProps = {+ state: 'expanded' | 'collapsed';+ open: boolean;+ setOpen: (open: boolean) => void;+ openMobile: boolean;+ setOpenMobile: (open: boolean) => void;+ isMobile: boolean;+ toggleSidebar: () => void;+};++const SidebarContext = React.createContext<SidebarContextProps | null>(null);++function useSidebar() {+ const context = React.useContext(SidebarContext);+ if (!context) {+ throw new Error('useSidebar must be used within a SidebarProvider.');+ }++ return context;+}++function SidebarProvider({+ defaultOpen = true,+ open: openProp,+ onOpenChange: setOpenProp,+ className,+ style,+ children,+ ...props+}: React.ComponentProps<'div'> & {+ defaultOpen?: boolean;+ open?: boolean;+ onOpenChange?: (open: boolean) => void;+}) {+ const isMobile = useIsMobile();+ const [openMobile, setOpenMobile] = React.useState(false);++ // This is the internal state of the sidebar.+ // We use openProp and setOpenProp for control from outside the component.+ const [_open, _setOpen] = React.useState(defaultOpen);+ const open = openProp ?? _open;+ const setOpen = React.useCallback(+ (value: boolean | ((value: boolean) => boolean)) => {+ const openState = typeof value === 'function' ? value(open) : value;+ if (setOpenProp) {+ setOpenProp(openState);+ } else {+ _setOpen(openState);+ }++ // This sets the cookie to keep the sidebar state.+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;+ },+ [setOpenProp, open],+ );++ // Helper to toggle the sidebar.+ const toggleSidebar = React.useCallback(() => {+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);+ }, [isMobile, setOpen, setOpenMobile]);++ // Adds a keyboard shortcut to toggle the sidebar.+ React.useEffect(() => {+ const handleKeyDown = (event: KeyboardEvent) => {+ if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {+ event.preventDefault();+ toggleSidebar();+ }+ };++ window.addEventListener('keydown', handleKeyDown);+ return () => window.removeEventListener('keydown', handleKeyDown);+ }, [toggleSidebar]);++ // We add a state so that we can do data-state="expanded" or "collapsed".+ // This makes it easier to style the sidebar with Tailwind classes.+ const state = open ? 'expanded' : 'collapsed';++ const contextValue = React.useMemo<SidebarContextProps>(+ () => ({+ state,+ open,+ setOpen,+ isMobile,+ openMobile,+ setOpenMobile,+ toggleSidebar,+ }),+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar],+ );++ return (+ <SidebarContext.Provider value={contextValue}>+ <div+ data-slot="sidebar-wrapper"+ style={+ {+ '--sidebar-width': SIDEBAR_WIDTH,+ '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,+ ...style,+ } as React.CSSProperties+ }+ className={cn(+ 'group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar',+ className,+ )}+ {...props}+ >+ {children}+ </div>+ </SidebarContext.Provider>+ );+}++function Sidebar({+ side = 'left',+ variant = 'sidebar',+ collapsible = 'offcanvas',+ className,+ children,+ dir,+ ...props+}: React.ComponentProps<'div'> & {+ side?: 'left' | 'right';+ variant?: 'sidebar' | 'floating' | 'inset';+ collapsible?: 'offcanvas' | 'icon' | 'none';+}) {+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();++ if (collapsible === 'none') {+ return (+ <div+ data-slot="sidebar"+ className={cn(+ 'flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground',+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+ }++ if (isMobile) {+ return (+ <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>+ <SheetContent+ dir={dir}+ data-sidebar="sidebar"+ data-slot="sidebar"+ data-mobile="true"+ className="w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"+ style={+ {+ '--sidebar-width': SIDEBAR_WIDTH_MOBILE,+ } as React.CSSProperties+ }+ side={side}+ >+ <SheetHeader className="sr-only">+ <SheetTitle>Sidebar</SheetTitle>+ <SheetDescription>Displays the mobile sidebar.</SheetDescription>+ </SheetHeader>+ <div className="flex h-full w-full flex-col">{children}</div>+ </SheetContent>+ </Sheet>+ );+ }++ return (+ <div+ className="group peer hidden text-sidebar-foreground md:block"+ data-state={state}+ data-collapsible={state === 'collapsed' ? collapsible : ''}+ data-variant={variant}+ data-side={side}+ data-slot="sidebar"+ >+ {/* This is what handles the sidebar gap on desktop */}+ <div+ data-slot="sidebar-gap"+ className={cn(+ 'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',+ 'group-data-[collapsible=offcanvas]:w-0',+ 'group-data-[side=right]:rotate-180',+ variant === 'floating' || variant === 'inset'+ ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'+ : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)',+ )}+ />+ <div+ data-slot="sidebar-container"+ data-side={side}+ className={cn(+ 'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex',+ // Adjust the padding for floating and inset variants.+ variant === 'floating' || variant === 'inset'+ ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'+ : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l',+ className,+ )}+ {...props}+ >+ <div+ data-sidebar="sidebar"+ data-slot="sidebar-inner"+ className="flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border"+ >+ {children}+ </div>+ </div>+ </div>+ );+}++function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>) {+ const { toggleSidebar } = useSidebar();++ return (+ <Button+ data-sidebar="trigger"+ data-slot="sidebar-trigger"+ variant="ghost"+ size="icon-sm"+ className={cn(className)}+ onClick={(event) => {+ onClick?.(event);+ toggleSidebar();+ }}+ {...props}+ >+ <PanelLeftIcon />+ <span className="sr-only">Toggle Sidebar</span>+ </Button>+ );+}++function SidebarRail({ className, ...props }: React.ComponentProps<'button'>) {+ const { toggleSidebar } = useSidebar();++ return (+ <button+ data-sidebar="rail"+ data-slot="sidebar-rail"+ aria-label="Toggle Sidebar"+ tabIndex={-1}+ onClick={toggleSidebar}+ title="Toggle Sidebar"+ className={cn(+ 'absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2',+ 'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',+ '[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',+ 'group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar',+ '[[data-side=left][data-collapsible=offcanvas]_&]:-right-2',+ '[[data-side=right][data-collapsible=offcanvas]_&]:-left-2',+ className,+ )}+ {...props}+ />+ );+}++function SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {+ return (+ <main+ data-slot="sidebar-inset"+ className={cn(+ 'relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2',+ className,+ )}+ {...props}+ />+ );+}++function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>) {+ return (+ <Input+ data-slot="sidebar-input"+ data-sidebar="input"+ className={cn('h-8 w-full bg-background shadow-none', className)}+ {...props}+ />+ );+}++function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="sidebar-header"+ data-sidebar="header"+ className={cn('flex flex-col gap-2 p-2', className)}+ {...props}+ />+ );+}++function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="sidebar-footer"+ data-sidebar="footer"+ className={cn('flex flex-col gap-2 p-2', className)}+ {...props}+ />+ );+}++function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>) {+ return (+ <Separator+ data-slot="sidebar-separator"+ data-sidebar="separator"+ className={cn('mx-2 w-auto bg-sidebar-border', className)}+ {...props}+ />+ );+}++function SidebarContent({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="sidebar-content"+ data-sidebar="content"+ className={cn(+ 'no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden',+ className,+ )}+ {...props}+ />+ );+}++function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="sidebar-group"+ data-sidebar="group"+ className={cn('relative flex w-full min-w-0 flex-col p-2', className)}+ {...props}+ />+ );+}++function SidebarGroupLabel({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<'div'> & { asChild?: boolean }) {+ const Comp = asChild ? Slot.Root : 'div';++ return (+ <Comp+ data-slot="sidebar-group-label"+ data-sidebar="group-label"+ className={cn(+ 'flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',+ className,+ )}+ {...props}+ />+ );+}++function SidebarGroupAction({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<'button'> & { asChild?: boolean }) {+ const Comp = asChild ? Slot.Root : 'button';++ return (+ <Comp+ data-slot="sidebar-group-action"+ data-sidebar="group-action"+ className={cn(+ 'absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0',+ className,+ )}+ {...props}+ />+ );+}++function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="sidebar-group-content"+ data-sidebar="group-content"+ className={cn('w-full text-sm', className)}+ {...props}+ />+ );+}++function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>) {+ return (+ <ul+ data-slot="sidebar-menu"+ data-sidebar="menu"+ className={cn('flex w-full min-w-0 flex-col gap-y-1', className)}+ {...props}+ />+ );+}++function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>) {+ return (+ <li+ data-slot="sidebar-menu-item"+ data-sidebar="menu-item"+ className={cn('group/menu-item relative', className)}+ {...props}+ />+ );+}++const sidebarMenuButtonVariants = cva(+ 'peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate',+ {+ variants: {+ variant: {+ default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',+ outline:+ 'bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]',+ },+ size: {+ default: 'h-8 text-sm',+ sm: 'h-7 text-xs',+ lg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!',+ },+ },+ defaultVariants: {+ variant: 'default',+ size: 'default',+ },+ },+);++function SidebarMenuButton({+ asChild = false,+ isActive = false,+ variant = 'default',+ size = 'default',+ tooltip,+ className,+ ...props+}: React.ComponentProps<'button'> & {+ asChild?: boolean;+ isActive?: boolean;+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;+} & VariantProps<typeof sidebarMenuButtonVariants>) {+ const Comp = asChild ? Slot.Root : 'button';+ const { isMobile, state } = useSidebar();++ const button = (+ <Comp+ data-slot="sidebar-menu-button"+ data-sidebar="menu-button"+ data-size={size}+ data-active={isActive}+ className={cn(sidebarMenuButtonVariants({ variant, size }), className)}+ {...props}+ />+ );++ if (!tooltip) {+ return button;+ }++ if (typeof tooltip === 'string') {+ tooltip = {+ children: tooltip,+ };+ }++ return (+ <Tooltip>+ <TooltipTrigger asChild>{button}</TooltipTrigger>+ <TooltipContent+ side="right"+ align="center"+ hidden={state !== 'collapsed' || isMobile}+ {...tooltip}+ />+ </Tooltip>+ );+}++function SidebarMenuAction({+ className,+ asChild = false,+ showOnHover = false,+ ...props+}: React.ComponentProps<'button'> & {+ asChild?: boolean;+ showOnHover?: boolean;+}) {+ const Comp = asChild ? Slot.Root : 'button';++ return (+ <Comp+ data-slot="sidebar-menu-action"+ data-sidebar="menu-action"+ className={cn(+ 'absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0',+ showOnHover &&+ 'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0',+ className,+ )}+ {...props}+ />+ );+}++function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="sidebar-menu-badge"+ data-sidebar="menu-badge"+ className={cn(+ 'pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground',+ className,+ )}+ {...props}+ />+ );+}++function SidebarMenuSkeleton({+ className,+ showIcon = false,+ ...props+}: React.ComponentProps<'div'> & {+ showIcon?: boolean;+}) {+ // Random width between 50 to 90%.+ const [width] = React.useState(() => {+ return `${Math.floor(Math.random() * 40) + 50}%`;+ });++ return (+ <div+ data-slot="sidebar-menu-skeleton"+ data-sidebar="menu-skeleton"+ className={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}+ {...props}+ >+ {showIcon && (+ <Skeleton className="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />+ )}+ <Skeleton+ className="h-4 max-w-(--skeleton-width) flex-1"+ data-sidebar="menu-skeleton-text"+ style={+ {+ '--skeleton-width': width,+ } as React.CSSProperties+ }+ />+ </div>+ );+}++function SidebarMenuSub({ className, ...props }: React.ComponentProps<'ul'>) {+ return (+ <ul+ data-slot="sidebar-menu-sub"+ data-sidebar="menu-sub"+ className={cn(+ 'mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden',+ className,+ )}+ {...props}+ />+ );+}++function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>) {+ return (+ <li+ data-slot="sidebar-menu-sub-item"+ data-sidebar="menu-sub-item"+ className={cn('group/menu-sub-item relative', className)}+ {...props}+ />+ );+}++function SidebarMenuSubButton({+ asChild = false,+ size = 'md',+ isActive = false,+ className,+ ...props+}: React.ComponentProps<'a'> & {+ asChild?: boolean;+ size?: 'sm' | 'md';+ isActive?: boolean;+}) {+ const Comp = asChild ? Slot.Root : 'a';++ return (+ <Comp+ data-slot="sidebar-menu-sub-button"+ data-sidebar="menu-sub-button"+ data-size={size}+ data-active={isActive}+ className={cn(+ 'flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground',+ className,+ )}+ {...props}+ />+ );+}++export {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupAction,+ SidebarGroupContent,+ SidebarGroupLabel,+ SidebarHeader,+ SidebarInput,+ SidebarInset,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuBadge,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarMenuSkeleton,+ SidebarMenuSub,+ SidebarMenuSubButton,+ SidebarMenuSubItem,+ SidebarProvider,+ SidebarRail,+ SidebarSeparator,+ SidebarTrigger,+ useSidebar,+};diff --git a/examples/web_ui/frontend/src/components/ui/skeleton.tsx b/examples/web_ui/frontend/src/components/ui/skeleton.tsxnew file mode 100644index 000000000..08d25b07e--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/skeleton.tsx@@ -0,0 +1,13 @@+import { cn } from '@/lib/utils';++function Skeleton({ className, ...props }: React.ComponentProps<'div'>) {+ return (+ <div+ data-slot="skeleton"+ className={cn('animate-pulse rounded-md bg-muted', className)}+ {...props}+ />+ );+}++export { Skeleton };diff --git a/examples/web_ui/frontend/src/components/ui/sonner.tsx b/examples/web_ui/frontend/src/components/ui/sonner.tsxnew file mode 100644index 000000000..54c6e72ba--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/sonner.tsx@@ -0,0 +1,43 @@+import { useTheme } from 'next-themes';+import { Toaster as Sonner, type ToasterProps } from 'sonner';+import {+ CircleCheckIcon,+ InfoIcon,+ TriangleAlertIcon,+ OctagonXIcon,+ Loader2Icon,+} from 'lucide-react';++const Toaster = ({ ...props }: ToasterProps) => {+ const { theme = 'system' } = useTheme();++ return (+ <Sonner+ theme={theme as ToasterProps['theme']}+ className="toaster group"+ icons={{+ success: <CircleCheckIcon className="size-4" />,+ info: <InfoIcon className="size-4" />,+ warning: <TriangleAlertIcon className="size-4" />,+ error: <OctagonXIcon className="size-4" />,+ loading: <Loader2Icon className="size-4 animate-spin" />,+ }}+ style={+ {+ '--normal-bg': 'var(--popover)',+ '--normal-text': 'var(--popover-foreground)',+ '--normal-border': 'var(--border)',+ '--border-radius': 'var(--radius)',+ } as React.CSSProperties+ }+ toastOptions={{+ classNames: {+ toast: 'cn-toast',+ },+ }}+ {...props}+ />+ );+};++export { Toaster };diff --git a/examples/web_ui/frontend/src/components/ui/spinner.tsx b/examples/web_ui/frontend/src/components/ui/spinner.tsxnew file mode 100644index 000000000..5510dca91--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/spinner.tsx@@ -0,0 +1,15 @@+import { cn } from '@/lib/utils';+import { Loader2Icon } from 'lucide-react';++function Spinner({ className, ...props }: React.ComponentProps<'svg'>) {+ return (+ <Loader2Icon+ role="status"+ aria-label="Loading"+ className={cn('size-4 animate-spin', className)}+ {...props}+ />+ );+}++export { Spinner };diff --git a/examples/web_ui/frontend/src/components/ui/switch.tsx b/examples/web_ui/frontend/src/components/ui/switch.tsxnew file mode 100644index 000000000..83412df90--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/switch.tsx@@ -0,0 +1,31 @@+import * as React from 'react';+import { Switch as SwitchPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';++function Switch({+ className,+ size = 'default',+ ...props+}: React.ComponentProps<typeof SwitchPrimitive.Root> & {+ size?: 'sm' | 'default';+}) {+ return (+ <SwitchPrimitive.Root+ data-slot="switch"+ data-size={size}+ className={cn(+ 'peer group/switch relative inline-flex shrink-0 items-center rounded-full border border-transparent transition-all outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-[18.4px] data-[size=default]:w-[32px] data-[size=sm]:h-[14px] data-[size=sm]:w-[24px] dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50',+ className,+ )}+ {...props}+ >+ <SwitchPrimitive.Thumb+ data-slot="switch-thumb"+ className="pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 group-data-[size=default]/switch:data-checked:translate-x-[calc(100%-2px)] group-data-[size=sm]/switch:data-checked:translate-x-[calc(100%-2px)] dark:data-checked:bg-primary-foreground group-data-[size=default]/switch:data-unchecked:translate-x-0 group-data-[size=sm]/switch:data-unchecked:translate-x-0 dark:data-unchecked:bg-foreground"+ />+ </SwitchPrimitive.Root>+ );+}++export { Switch };diff --git a/examples/web_ui/frontend/src/components/ui/tabs.tsx b/examples/web_ui/frontend/src/components/ui/tabs.tsxnew file mode 100644index 000000000..976701bee--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/tabs.tsx@@ -0,0 +1,78 @@+import * as React from 'react';+import { cva, type VariantProps } from 'class-variance-authority';+import { Tabs as TabsPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';++function Tabs({+ className,+ orientation = 'horizontal',+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Root>) {+ return (+ <TabsPrimitive.Root+ data-slot="tabs"+ data-orientation={orientation}+ className={cn('group/tabs flex gap-2 data-horizontal:flex-col', className)}+ {...props}+ />+ );+}++const tabsListVariants = cva(+ 'group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none',+ {+ variants: {+ variant: {+ default: 'bg-muted',+ line: 'gap-1 bg-transparent',+ },+ },+ defaultVariants: {+ variant: 'default',+ },+ },+);++function TabsList({+ className,+ variant = 'default',+ ...props+}: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>) {+ return (+ <TabsPrimitive.List+ data-slot="tabs-list"+ data-variant={variant}+ className={cn(tabsListVariants({ variant }), className)}+ {...props}+ />+ );+}++function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>) {+ return (+ <TabsPrimitive.Trigger+ data-slot="tabs-trigger"+ className={cn(+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ 'group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent',+ 'data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground',+ 'after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100',+ className,+ )}+ {...props}+ />+ );+}++function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>) {+ return (+ <TabsPrimitive.Content+ data-slot="tabs-content"+ className={cn('flex-1 text-sm outline-none', className)}+ {...props}+ />+ );+}++export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };diff --git a/examples/web_ui/frontend/src/components/ui/textarea.tsx b/examples/web_ui/frontend/src/components/ui/textarea.tsxnew file mode 100644index 000000000..590c9c89c--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/textarea.tsx@@ -0,0 +1,18 @@+import * as React from 'react';++import { cn } from '@/lib/utils';++function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {+ return (+ <textarea+ data-slot="textarea"+ className={cn(+ 'flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',+ className,+ )}+ {...props}+ />+ );+}++export { Textarea };diff --git a/examples/web_ui/frontend/src/components/ui/tooltip.tsx b/examples/web_ui/frontend/src/components/ui/tooltip.tsxnew file mode 100644index 000000000..86f7cdbe7--- /dev/null+++ b/examples/web_ui/frontend/src/components/ui/tooltip.tsx@@ -0,0 +1,53 @@+'use client';++import * as React from 'react';+import { Tooltip as TooltipPrimitive } from 'radix-ui';++import { cn } from '@/lib/utils';++function TooltipProvider({+ delayDuration = 0,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {+ return (+ <TooltipPrimitive.Provider+ data-slot="tooltip-provider"+ delayDuration={delayDuration}+ {...props}+ />+ );+}++function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {+ return <TooltipPrimitive.Root data-slot="tooltip" {...props} />;+}++function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />;+}++function TooltipContent({+ className,+ sideOffset = 0,+ children,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Content>) {+ return (+ <TooltipPrimitive.Portal>+ <TooltipPrimitive.Content+ data-slot="tooltip-content"+ sideOffset={sideOffset}+ className={cn(+ 'z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',+ className,+ )}+ {...props}+ >+ {children}+ <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" />+ </TooltipPrimitive.Content>+ </TooltipPrimitive.Portal>+ );+}++export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };diff --git a/examples/web_ui/frontend/src/context/ChatContext.tsx b/examples/web_ui/frontend/src/context/ChatContext.tsxnew file mode 100644index 000000000..48ac64fe6--- /dev/null+++ b/examples/web_ui/frontend/src/context/ChatContext.tsx@@ -0,0 +1,45 @@+import { createContext, useContext, useState } from 'react';+import type { ReactNode } from 'react';++interface ChatContextValue {+ /** Currently selected agent ID, or null if none selected. */+ selectedAgentId: string | null;+ setSelectedAgentId: (id: string | null) => void;+ /** Currently selected session ID, or null if none selected. */+ selectedSessionId: string | null;+ setSelectedSessionId: (id: string | null) => void;+}++const ChatContext = createContext<ChatContextValue | null>(null);++/**+ * Provides shared chat state (selected agent and session) to the component tree.+ * Wrap the chat page root with this provider.+ */+export function ChatProvider({ children }: { children: ReactNode }) {+ const [selectedAgentId, setSelectedAgentId] = useState<string | null>(null);+ const [selectedSessionId, setSelectedSessionId] = useState<string | null>(null);++ return (+ <ChatContext.Provider+ value={{+ selectedAgentId,+ setSelectedAgentId,+ selectedSessionId,+ setSelectedSessionId,+ }}+ >+ {children}+ </ChatContext.Provider>+ );+}++/**+ * Consumes ChatContext. Must be called inside a ChatProvider.+ * @throws if used outside of ChatProvider+ */+export function useChatContext() {+ const ctx = useContext(ChatContext);+ if (!ctx) throw new Error('useChatContext must be used within <ChatProvider>');+ return ctx;+}diff --git a/examples/web_ui/frontend/src/hooks/use-mobile.ts b/examples/web_ui/frontend/src/hooks/use-mobile.tsnew file mode 100644index 000000000..bcebea3b8--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/use-mobile.ts@@ -0,0 +1,19 @@+import * as React from 'react';++const MOBILE_BREAKPOINT = 768;++export function useIsMobile() {+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined);++ React.useEffect(() => {+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);+ const onChange = () => {+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);+ };+ mql.addEventListener('change', onChange);+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);+ return () => mql.removeEventListener('change', onChange);+ }, []);++ return !!isMobile;+}diff --git a/examples/web_ui/frontend/src/hooks/useAgents.ts b/examples/web_ui/frontend/src/hooks/useAgents.tsnew file mode 100644index 000000000..11aae7161--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useAgents.ts@@ -0,0 +1,62 @@+import { useState, useEffect, useCallback } from 'react';++import { agentApi } from '../api';+import type { AgentRecord, CreateAgentRequest, UpdateAgentRequest } from '../api';++/**+ * Manages the full agent list with CRUD operations.+ * Fetches on mount and automatically re-fetches after each mutation.+ */+export function useAgents() {+ const [agents, setAgents] = useState<AgentRecord[]>([]);+ const [loading, setLoading] = useState(false);+ const [error, setError] = useState<Error | null>(null);++ const refetch = useCallback(async () => {+ setLoading(true);+ setError(null);+ try {+ const res = await agentApi.list();+ setAgents(res.agents);+ } catch (e) {+ setError(e as Error);+ } finally {+ setLoading(false);+ }+ }, []);++ useEffect(() => {+ refetch();+ }, [refetch]);++ /** Creates a new agent and refreshes the list. */+ const create = useCallback(+ async (body: CreateAgentRequest) => {+ const res = await agentApi.create(body);+ await refetch();+ return res;+ },+ [refetch],+ );++ /** Partially updates an agent and refreshes the list. */+ const update = useCallback(+ async (agentId: string, body: UpdateAgentRequest) => {+ const res = await agentApi.update(agentId, body);+ await refetch();+ return res;+ },+ [refetch],+ );++ /** Deletes an agent and refreshes the list. */+ const remove = useCallback(+ async (agentId: string) => {+ await agentApi.delete(agentId);+ await refetch();+ },+ [refetch],+ );++ return { agents, loading, error, refetch, create, update, remove };+}diff --git a/examples/web_ui/frontend/src/hooks/useAvailableModels.ts b/examples/web_ui/frontend/src/hooks/useAvailableModels.tsnew file mode 100644index 000000000..f5cd535c2--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useAvailableModels.ts@@ -0,0 +1,55 @@+import { useState, useEffect, useCallback } from 'react';++import { credentialApi, modelApi } from '@/api';+import type { CredentialRecord, ModelCard } from '@/api';++export interface CredentialWithModels {+ credential: CredentialRecord;+ models: ModelCard[];+}++/**+ * Fetches all credentials and their available models, grouped by provider type.+ * Provider type is read from `credential.data.type`.+ * Credentials without a `type` field or whose model fetch fails are silently skipped.+ */+export function useAvailableModels() {+ const [groups, setGroups] = useState<Record<string, CredentialWithModels[]>>({});+ const [loading, setLoading] = useState(false);+ const [error, setError] = useState<Error | null>(null);++ const refetch = useCallback(async () => {+ setLoading(true);+ setError(null);+ try {+ const { credentials } = await credentialApi.list();+ const result: Record<string, CredentialWithModels[]> = {};++ await Promise.all(+ credentials.map(async (credential) => {+ const type = credential.data.type as string | undefined;+ if (!type) return;+ if (!result[type]) result[type] = [];+ try {+ const { models } = await modelApi.list(type);+ result[type].push({ credential, models });+ } catch {+ result[type].push({ credential, models: [] });+ }+ }),+ );++ setGroups(result);+ } catch (e) {+ setError(e as Error);+ } finally {+ setLoading(false);+ }+ }, []);++ useEffect(() => {+ refetch();+ }, [refetch]);++ return { groups, loading, error, refetch };+}diff --git a/examples/web_ui/frontend/src/hooks/useChat.ts b/examples/web_ui/frontend/src/hooks/useChat.tsnew file mode 100644index 000000000..8eaa22542--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useChat.ts@@ -0,0 +1,48 @@+import { useState, useCallback, useRef } from 'react';++import { chatApi } from '@/api';+import type { AgentEvent, ChatRequest } from '@/api';++/**+ * Drives a streaming chat session with an agent.+ *+ * Collects SSE AgentEvent frames into `events` as they arrive.+ * Call `abort()` to cancel an in-flight stream.+ */+export function useChat() {+ const [events, setEvents] = useState<AgentEvent[]>([]);+ const [streaming, setStreaming] = useState(false);+ const [error, setError] = useState<Error | null>(null);+ const abortRef = useRef<AbortController | null>(null);++ /**+ * Sends a message and streams the agent's reply into `events`.+ * Cancels any previous in-flight stream before starting.+ */+ const send = useCallback(async (body: ChatRequest) => {+ abortRef.current?.abort();+ const controller = new AbortController();+ abortRef.current = controller;++ setEvents([]);+ setStreaming(true);+ setError(null);++ try {+ for await (const event of chatApi.stream(body, controller.signal)) {+ setEvents((prev) => [...prev, event]);+ }+ } catch (e) {+ if ((e as Error).name !== 'AbortError') setError(e as Error);+ } finally {+ setStreaming(false);+ }+ }, []);++ /** Cancels the current in-flight stream. */+ const abort = useCallback(() => {+ abortRef.current?.abort();+ }, []);++ return { events, streaming, error, send, abort };+}diff --git a/examples/web_ui/frontend/src/hooks/useCredentials.ts b/examples/web_ui/frontend/src/hooks/useCredentials.tsnew file mode 100644index 000000000..64609610a--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useCredentials.ts@@ -0,0 +1,62 @@+import { useState, useEffect, useCallback } from 'react';++import { credentialApi } from '../api';+import type { CredentialRecord, CreateCredentialRequest, UpdateCredentialRequest } from '../api';++/**+ * Manages API key credentials with CRUD operations.+ * Fetches on mount and automatically re-fetches after each mutation.+ */+export function useCredentials() {+ const [credentials, setCredentials] = useState<CredentialRecord[]>([]);+ const [loading, setLoading] = useState(false);+ const [error, setError] = useState<Error | null>(null);++ const refetch = useCallback(async () => {+ setLoading(true);+ setError(null);+ try {+ const res = await credentialApi.list();+ setCredentials(res.credentials);+ } catch (e) {+ setError(e as Error);+ } finally {+ setLoading(false);+ }+ }, []);++ useEffect(() => {+ refetch();+ }, [refetch]);++ /** Stores a new credential and refreshes the list. */+ const create = useCallback(+ async (body: CreateCredentialRequest) => {+ const res = await credentialApi.create(body);+ await refetch();+ return res;+ },+ [refetch],+ );++ /** Replaces a credential's payload and refreshes the list. */+ const update = useCallback(+ async (credentialId: string, body: UpdateCredentialRequest) => {+ const res = await credentialApi.update(credentialId, body);+ await refetch();+ return res;+ },+ [refetch],+ );++ /** Permanently deletes a credential and refreshes the list. */+ const remove = useCallback(+ async (credentialId: string) => {+ await credentialApi.delete(credentialId);+ await refetch();+ },+ [refetch],+ );++ return { credentials, loading, error, refetch, create, update, remove };+}diff --git a/examples/web_ui/frontend/src/hooks/useMessages.ts b/examples/web_ui/frontend/src/hooks/useMessages.tsnew file mode 100644index 000000000..398ef66a2--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useMessages.ts@@ -0,0 +1,148 @@+import { EventType } from '@agentscope-ai/agentscope/event';+import type {+ AgentEvent,+ ReplyStartEvent,+ UserConfirmResultEvent,+} from '@agentscope-ai/agentscope/event';+import { appendEvent, AssistantMsg, UserMsg } from '@agentscope-ai/agentscope/message';+import type { Msg, ContentBlock } from '@agentscope-ai/agentscope/message';+import type { ToolCallBlock } from '@agentscope-ai/agentscope/message';+import { useState, useCallback, useRef, useEffect } from 'react';++import { sessionApi } from '@/api';+import { chatApi } from '@/api';+import type { ChatRequest } from '@/api/types';++export function useMessages(agentId: string | null, sessionId: string | null) {+ const [msgs, setMsgs] = useState<Msg[]>([]);+ const [loading, setLoading] = useState(false);+ const [streaming, setStreaming] = useState(false);+ const [error, setError] = useState<Error | null>(null);++ const msgsRef = useRef<Msg[]>([]);+ const currentReplyRef = useRef<Msg | null>(null);+ const abortRef = useRef<AbortController | null>(null);+ const rafRef = useRef<number | null>(null);++ const scheduleUpdate = useCallback(() => {+ if (rafRef.current !== null) return;+ rafRef.current = requestAnimationFrame(() => {+ rafRef.current = null;+ setMsgs([...msgsRef.current]);+ });+ }, []);++ const processEvent = useCallback(+ (event: AgentEvent) => {+ if (event.type === EventType.REPLY_START) {+ const e = event as ReplyStartEvent;+ const msg = AssistantMsg({ id: e.reply_id, name: e.name, content: [] });+ msgsRef.current = [...msgsRef.current, msg];+ currentReplyRef.current = msg;+ } else if (currentReplyRef.current) {+ appendEvent(currentReplyRef.current, event);+ }+ scheduleUpdate();+ },+ [scheduleUpdate],+ );++ // Load history when sessionId changes+ useEffect(() => {+ msgsRef.current = [];+ currentReplyRef.current = null;+ setMsgs([]);+ setError(null);++ if (!agentId || !sessionId) return;++ let cancelled = false;+ setLoading(true);+ (async () => {+ try {+ const { messages, is_running } = await sessionApi.messages(sessionId, agentId);+ if (cancelled) return;+ msgsRef.current = messages;+ setStreaming(is_running);+ scheduleUpdate();+ } catch (e) {+ if (!cancelled) setError(e as Error);+ } finally {+ if (!cancelled) setLoading(false);+ }+ })();++ return () => {+ cancelled = true;+ };+ }, [agentId, sessionId, scheduleUpdate]);++ const runStream = useCallback(+ async (request: ChatRequest) => {+ abortRef.current?.abort();+ const controller = new AbortController();+ abortRef.current = controller;++ setStreaming(true);+ setError(null);++ try {+ for await (const event of chatApi.stream(request, controller.signal)) {+ processEvent(event);+ }+ } catch (e) {+ if ((e as Error).name !== 'AbortError') setError(e as Error);+ } finally {+ setStreaming(false);+ currentReplyRef.current = null;+ }+ },+ [processEvent],+ );++ const send = useCallback(+ async (content: ContentBlock[]) => {+ if (!agentId || !sessionId) return;++ const userMsg = UserMsg({ name: 'user', content });+ msgsRef.current = [...msgsRef.current, userMsg];+ scheduleUpdate();++ await runStream({ agent_id: agentId, session_id: sessionId, input: userMsg });+ },+ [agentId, sessionId, scheduleUpdate, runStream],+ );++ const onUserConfirm = useCallback(+ async (+ toolCall: ToolCallBlock,+ confirm: boolean,+ replyId: string,+ rules?: ToolCallBlock['suggested_rules'],+ ) => {+ if (!agentId || !sessionId) return;++ // Restore the ref so continuation events (no REPLY_START) have a target+ currentReplyRef.current = msgsRef.current.find((m) => m.id === replyId) ?? null;++ const event: UserConfirmResultEvent = {+ type: EventType.USER_CONFIRM_RESULT,+ id: crypto.randomUUID(),+ created_at: new Date().toISOString(),+ reply_id: replyId,+ confirm_results: [+ { confirmed: confirm, tool_call: toolCall, rules: rules ?? null },+ ],+ };++ await runStream({ agent_id: agentId, session_id: sessionId, input: event });+ },+ [agentId, sessionId, runStream],+ );++ const abort = useCallback(() => {+ abortRef.current?.abort();+ }, []);++ return { msgs, loading, streaming, error, send, onUserConfirm, abort };+}diff --git a/examples/web_ui/frontend/src/hooks/useModels.ts b/examples/web_ui/frontend/src/hooks/useModels.tsnew file mode 100644index 000000000..fd83acb40--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useModels.ts@@ -0,0 +1,33 @@+import { useState, useCallback } from 'react';++import { modelApi } from '../api';+import type { ModelCard } from '../api';++/**+ * Fetches candidate models for a given provider on demand.+ * Does not auto-fetch — call `fetch(provider)` explicitly.+ */+export function useModels() {+ const [models, setModels] = useState<ModelCard[]>([]);+ const [loading, setLoading] = useState(false);+ const [error, setError] = useState<Error | null>(null);++ /**+ * Loads the model list for the specified provider type.+ * @param provider - e.g. "openai", "dashscope"+ */+ const fetch = useCallback(async (provider: string) => {+ setLoading(true);+ setError(null);+ try {+ const res = await modelApi.list(provider);+ setModels(res.models);+ } catch (e) {+ setError(e as Error);+ } finally {+ setLoading(false);+ }+ }, []);++ return { models, loading, error, fetch };+}diff --git a/examples/web_ui/frontend/src/hooks/useSchedules.ts b/examples/web_ui/frontend/src/hooks/useSchedules.tsnew file mode 100644index 000000000..8ce529b90--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useSchedules.ts@@ -0,0 +1,62 @@+import { useState, useEffect, useCallback } from 'react';++import { scheduleApi } from '../api';+import type { ScheduleRecord, CreateScheduleRequest, UpdateScheduleRequest } from '../api';++/**+ * Manages scheduled agent tasks with CRUD operations.+ * Fetches on mount and automatically re-fetches after each mutation.+ */+export function useSchedules() {+ const [schedules, setSchedules] = useState<ScheduleRecord[]>([]);+ const [loading, setLoading] = useState(false);+ const [error, setError] = useState<Error | null>(null);++ const refetch = useCallback(async () => {+ setLoading(true);+ setError(null);+ try {+ const res = await scheduleApi.list();+ setSchedules(res.schedules);+ } catch (e) {+ setError(e as Error);+ } finally {+ setLoading(false);+ }+ }, []);++ useEffect(() => {+ refetch();+ }, [refetch]);++ /** Creates a new schedule, registers it with the scheduler, and refreshes the list. */+ const create = useCallback(+ async (body: CreateScheduleRequest) => {+ const res = await scheduleApi.create(body);+ await refetch();+ return res;+ },+ [refetch],+ );++ /** Updates a schedule's config, reschedules the job, and refreshes the list. */+ const update = useCallback(+ async (scheduleId: string, body: UpdateScheduleRequest) => {+ const res = await scheduleApi.update(scheduleId, body);+ await refetch();+ return res;+ },+ [refetch],+ );++ /** Deletes a schedule, removes the job from the scheduler, and refreshes the list. */+ const remove = useCallback(+ async (scheduleId: string) => {+ await scheduleApi.delete(scheduleId);+ await refetch();+ },+ [refetch],+ );++ return { schedules, loading, error, refetch, create, update, remove };+}diff --git a/examples/web_ui/frontend/src/hooks/useSessions.ts b/examples/web_ui/frontend/src/hooks/useSessions.tsnew file mode 100644index 000000000..9b1fcc841--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useSessions.ts@@ -0,0 +1,70 @@+import { useState, useEffect, useCallback } from 'react';++import { sessionApi } from '../api';+import type { SessionRecord, CreateSessionRequest, UpdateSessionRequest } from '../api';++/**+ * Manages sessions for a given agent.+ * Clears and re-fetches whenever agentId changes.+ *+ * @param agentId - The agent whose sessions to load. Pass null to skip fetching.+ */+export function useSessions(agentId: string | null) {+ const [sessions, setSessions] = useState<SessionRecord[]>([]);+ const [loading, setLoading] = useState(false);+ const [error, setError] = useState<Error | null>(null);++ const refetch = useCallback(async () => {+ if (!agentId) {+ setSessions([]);+ return;+ }+ setLoading(true);+ setError(null);+ try {+ const res = await sessionApi.list(agentId);+ setSessions(res.sessions);+ } catch (e) {+ setError(e as Error);+ } finally {+ setLoading(false);+ }+ }, [agentId]);++ useEffect(() => {+ refetch();+ }, [refetch]);++ /** Creates a new session and refreshes the list. */+ const create = useCallback(+ async (body: CreateSessionRequest) => {+ const res = await sessionApi.create(body);+ await refetch();+ return res;+ },+ [refetch],+ );++ /** Updates a session's model config and refreshes the list. */+ const update = useCallback(+ async (sessionId: string, body: UpdateSessionRequest) => {+ if (!agentId) throw new Error('No agent selected');+ const res = await sessionApi.update(sessionId, agentId, body);+ await refetch();+ return res;+ },+ [agentId, refetch],+ );++ /** Deletes a session and refreshes the list. */+ const remove = useCallback(+ async (sessionId: string) => {+ if (!agentId) throw new Error('No agent selected');+ await sessionApi.delete(sessionId, agentId);+ await refetch();+ },+ [agentId, refetch],+ );++ return { sessions, loading, error, refetch, create, update, remove };+}diff --git a/examples/web_ui/frontend/src/hooks/useSkills.ts b/examples/web_ui/frontend/src/hooks/useSkills.tsnew file mode 100644index 000000000..db6f153d6--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useSkills.ts@@ -0,0 +1,59 @@+import { useState, useEffect, useCallback } from 'react';++import { skillApi } from '../api';+import type { Skill } from '../api';++/**+ * Manages skills available in a session's workspace.+ * Re-fetches whenever agentId or sessionId changes.+ *+ * @param agentId - The owning agent. Pass null to skip fetching.+ * @param sessionId - The target session. Pass null to skip fetching.+ */+export function useSkills(agentId: string | null, sessionId: string | null) {+ const [skills, setSkills] = useState<Skill[]>([]);+ const [loading, setLoading] = useState(false);+ const [error, setError] = useState<Error | null>(null);++ const refetch = useCallback(async () => {+ if (!agentId || !sessionId) {+ setSkills([]);+ return;+ }+ setLoading(true);+ setError(null);+ try {+ setSkills(await skillApi.list(agentId, sessionId));+ } catch (e) {+ setError(e as Error);+ } finally {+ setLoading(false);+ }+ }, [agentId, sessionId]);++ useEffect(() => {+ refetch();+ }, [refetch]);++ /** Adds a skill from the given path and refreshes the list. */+ const add = useCallback(+ async (skillPath: string) => {+ if (!agentId || !sessionId) throw new Error('No agent/session selected');+ await skillApi.add(agentId, sessionId, { skill_path: skillPath });+ await refetch();+ },+ [agentId, sessionId, refetch],+ );++ /** Removes a skill by name and refreshes the list. */+ const remove = useCallback(+ async (skillName: string) => {+ if (!agentId || !sessionId) throw new Error('No agent/session selected');+ await skillApi.remove(skillName, agentId, sessionId);+ await refetch();+ },+ [agentId, sessionId, refetch],+ );++ return { skills, loading, error, refetch, add, remove };+}diff --git a/examples/web_ui/frontend/src/hooks/useWorkspace.ts b/examples/web_ui/frontend/src/hooks/useWorkspace.tsnew file mode 100644index 000000000..0dd8bfcea--- /dev/null+++ b/examples/web_ui/frontend/src/hooks/useWorkspace.ts@@ -0,0 +1,114 @@+import { useState, useEffect, useCallback } from 'react';++import { workspaceApi } from '@/api';+import type { MCPClient, MCPClientStatus, Skill } from '@/api';++export function useWorkspace(agentId: string | null, sessionId: string | null) {+ const [mcps, setMcps] = useState<MCPClientStatus[]>([]);+ const [skills, setSkills] = useState<Skill[]>([]);+ const [loading, setLoading] = useState(false);+ const [skillsLoading, setSkillsLoading] = useState(false);+ const [error, setError] = useState<Error | null>(null);++ const refetch = useCallback(async () => {+ if (!agentId || !sessionId) {+ setMcps([]);+ return;+ }+ setLoading(true);+ setError(null);+ try {+ setMcps(await workspaceApi.mcp.list(agentId, sessionId));+ } catch (e) {+ setError(e as Error);+ } finally {+ setLoading(false);+ }+ }, [agentId, sessionId]);++ const refetchSkills = useCallback(async () => {+ if (!agentId || !sessionId) {+ setSkills([]);+ return;+ }+ setSkillsLoading(true);+ try {+ setSkills(await workspaceApi.skill.list(agentId, sessionId));+ } catch (e) {+ setError(e as Error);+ } finally {+ setSkillsLoading(false);+ }+ }, [agentId, sessionId]);++ useEffect(() => {+ refetch();+ }, [refetch]);+ useEffect(() => {+ refetchSkills();+ }, [refetchSkills]);++ const addMcps = useCallback(+ async (clients: MCPClient[]) => {+ if (!agentId || !sessionId) throw new Error('No agent/session selected');+ const existingNames = new Set(mcps.map((m) => m.name));+ for (const mcp of clients) {+ if (existingNames.has(mcp.name)) {+ throw new Error(`MCP server "${mcp.name}" already exists in this workspace.`);+ }+ }+ const batchNames = new Set<string>();+ for (const mcp of clients) {+ if (batchNames.has(mcp.name)) {+ throw new Error(`Duplicate MCP server name "${mcp.name}" in configuration.`);+ }+ batchNames.add(mcp.name);+ }+ for (const mcp of clients) {+ await workspaceApi.mcp.add(agentId, sessionId, mcp);+ }+ await refetch();+ },+ [agentId, sessionId, mcps, refetch],+ );++ const removeMcp = useCallback(+ async (mcpName: string) => {+ if (!agentId || !sessionId) throw new Error('No agent/session selected');+ await workspaceApi.mcp.remove(mcpName, agentId, sessionId);+ await refetch();+ },+ [agentId, sessionId, refetch],+ );++ const addSkill = useCallback(+ async (skillPath: string) => {+ if (!agentId || !sessionId) throw new Error('No agent/session selected');+ await workspaceApi.skill.add(agentId, sessionId, { skill_path: skillPath });+ await refetchSkills();+ },+ [agentId, sessionId, refetchSkills],+ );++ const removeSkill = useCallback(+ async (skillName: string) => {+ if (!agentId || !sessionId) throw new Error('No agent/session selected');+ await workspaceApi.skill.remove(skillName, agentId, sessionId);+ await refetchSkills();+ },+ [agentId, sessionId, refetchSkills],+ );++ return {+ mcps,+ loading,+ error,+ refetch,+ addMcps,+ removeMcp,+ skills,+ skillsLoading,+ addSkill,+ removeSkill,+ };+}diff --git a/examples/web_ui/frontend/src/i18n/index.ts b/examples/web_ui/frontend/src/i18n/index.tsnew file mode 100644index 000000000..a6750f4c8--- /dev/null+++ b/examples/web_ui/frontend/src/i18n/index.ts@@ -0,0 +1,25 @@+import i18n from 'i18next';+import LanguageDetector from 'i18next-browser-languagedetector';+import { initReactI18next } from 'react-i18next';++import enTranslations from './locales/en.json';+import zhTranslations from './locales/zh.json';++i18n.use(LanguageDetector)+ .use(initReactI18next)+ .init({+ resources: {+ en: { translation: enTranslations },+ zh: { translation: zhTranslations },+ },+ fallbackLng: 'en',+ interpolation: {+ escapeValue: false,+ },+ detection: {+ order: ['localStorage', 'navigator'],+ caches: ['localStorage'],+ },+ });++export default i18n;diff --git a/examples/web_ui/frontend/src/i18n/locales/en.json b/examples/web_ui/frontend/src/i18n/locales/en.jsonnew file mode 100644index 000000000..448de2411--- /dev/null+++ b/examples/web_ui/frontend/src/i18n/locales/en.json@@ -0,0 +1,301 @@+{+ "common": {+ "add": "Add",+ "agent": "Agent",+ "cancel": "Cancel",+ "chat": "Chat",+ "close": "Close",+ "confirm": "Confirm",+ "create": "Create",+ "creating": "Creating…",+ "credential": "Credentials",+ "date": "Date",+ "delete": "Delete",+ "deleting": "Deleting…",+ "disabled": "Disabled",+ "edit": "Edit",+ "error": "Something went wrong",+ "information": "Information",+ "interrupted": "Interrupted",+ "loading": "Loading...",+ "model": "Model",+ "name": "Name",+ "no": "No",+ "noData": "No data",+ "completed": "Completed",+ "failed": "Failed",+ "running": "Running",+ "save": "Save",+ "saving": "Saving…",+ "schedule": "Schedule",+ "selectAgent": "Select an agent",+ "settings": "Settings",+ "switchToZh": "切换为中文",+ "switchToEn": "Switch to English",+ "success": "Success",+ "time": "Time",+ "yes": "Yes"+ },+ "tool": {+ "moreLines": "... {{count}} more lines",+ "read": {+ "name": "Read",+ "fileCount": "{{count}} file(s)"+ },+ "glob": {+ "name": "Glob"+ },+ "grep": {+ "name": "Grep"+ }+ },+ "textInput": {+ "toComplete": "to complete",+ "newLine": "new line",+ "attach": "Attach file",+ "attachNotSupported": "This model does not support file attachments",+ "send": "Send"+ },+ "confirmCard": {+ "toConfirm": "to confirm",+ "yesWithRule": "Yes, and allow {{toolName}} to execute {{ruleContent}} for this session"+ },+ "messageBubble": {+ "thinking": "Thinking"+ },+ "chat": {+ "inputPlaceholder": "Type a message...",+ "placeholder": "Type a message...",+ "send": "Send",+ "confirmToolCall": "Allow this action?",+ "newSession": "New Session",+ "noSessions": "No sessions yet",+ "noMessages": "No Messages Yet",+ "noMessagesDesc": "Start your conversation by sending a message",+ "agent": {+ "selectPlaceholder": "Select an agent",+ "emptyTitle": "No agents",+ "emptyDescription": "Create an agent to get started."+ },+ "session": {+ "label": "Session",+ "emptyTitle": "No sessions",+ "emptyNoAgent": "Select an agent first.",+ "emptyHasAgent": "Create a session to start chatting."+ }+ },+ "dialog-agent-create": {+ "title": "Create agent",+ "trigger": "Create agent",+ "identity": {+ "legend": "Agent Identity",+ "description": "Name and instructions that define this agent's behaviour.",+ "name": { "label": "Name", "placeholder": "My agent" },+ "systemPrompt": {+ "label": "System prompt",+ "placeholder": "You're a helpful assistant."+ }+ },+ "contextConfig": {+ "legend": "Context Config",+ "description": "Controls how the context window is managed and compressed.",+ "triggerRatio": { "label": "Trigger ratio", "placeholder": "e.g. 0.75 (0.01–0.89)" },+ "reserveRatio": { "label": "Reserve ratio", "placeholder": "e.g. 0.25 (0.01–0.89)" },+ "toolResultLimit": {+ "label": "Tool result limit",+ "placeholder": "Max chars per tool result"+ },+ "compressionPrompt": {+ "label": "Compression prompt",+ "placeholder": "Override the default compression instruction"+ },+ "summaryTemplate": {+ "label": "Summary template",+ "placeholder": "Override the default summary output template"+ }+ },+ "reactConfig": {+ "legend": "ReAct Config",+ "description": "Controls the reasoning and action loop behaviour.",+ "maxIters": { "label": "Max iterations", "placeholder": "Max ReAct loop iterations" },+ "stopOnReject": { "label": "Stop on reject" }+ }+ },+ "dialog-agent-edit": {+ "title": "Edit agent"+ },+ "dialog-agent-delete": {+ "title": "Delete agent",+ "description": "This action cannot be undone.",+ "confirm": "Delete"+ },+ "dialog-session-delete": {+ "title": "Delete session",+ "description": "This action cannot be undone."+ },+ "dialog-session-rename": {+ "title": "Rename session",+ "label": "Name",+ "placeholder": "Session name",+ "confirm": "Rename"+ },+ "session-menu": {+ "rename": "Rename",+ "delete": "Delete"+ },+ "dialog-credential-create": {+ "title": "Add credential",+ "selectType": "Provider",+ "selectTypePlaceholder": "Select a provider"+ },+ "dialog-credential-edit": {+ "title": "Edit Credential"+ },+ "credential": {+ "addConfig": "Add configuration",+ "noProviders": "No providers available",+ "noConfigs": "No configurations",+ "selectHint": "No credential selected",+ "selectHintDescription": "Select a credential from the sidebar to view its details.",+ "availableModels": "Available Models",+ "noModels": "No models available",+ "noModelsDescription": "This provider returned no models.",+ "deleteTitle": "Delete \"{{name}}\"?",+ "deleteDescription": "This action cannot be undone. The credential will be permanently removed.",+ "subtitle": "Model API credential configuration",+ "reasoning": "Reasoning",+ "maxContext": "Max. Context",+ "maxOutput": "Max. Output",+ "inputTypes": "Input",+ "outputTypes": "Output"+ },+ "llm-select": {+ "placeholder": "Select a model",+ "loading": "Loading…",+ "empty": {+ "title": "No models available",+ "description": "Add a credential to get started.",+ "addButton": "Add credential"+ },+ "addCredential": "Add Credential"+ },+ "permission-mode": {+ "placeholder": "Select permission mode",+ "trigger-tooltip": "Permission Mode",+ "label": "Permission Mode",+ "default-tooltip": "Default mode: all operations require explicit permission (most secure)",+ "accept_edits-tooltip": "Auto-allow file reads/writes in working directories and filesystem commands; other operations follow normal rules",+ "explore-tooltip": "Read-only mode: allow read/grep/glob tools, deny write/edit/bash modification tools",+ "bypass-tooltip": "All operations automatically allowed without any permission checks (use in trusted/sandbox environments)",+ "dont_ask-tooltip": "Convert all ASK decisions to DENY; suitable for scheduled tasks or background execution when user is unavailable"+ },+ "dialog-mcp-create": {+ "title": "Add MCP Servers",+ "description": "Add new MCP server(s) by configuration.",+ "configLabel": "MCP Configuration",+ "keepAlive": "Keep Alive",+ "keepAliveDesc": "Maintain state across interactions. Enable for browser-use or other long-running MCPs.",+ "adding": "Adding…",+ "added": "Added",+ "parseError": "Invalid JSON configuration: {{message}}",+ "missingMcpServers": "Configuration must contain a \"mcpServers\" object.",+ "emptyMcpServers": "No MCP servers found in configuration."+ },+ "dialog-mcp-delete": {+ "title": "Delete MCP server \"{{name}}\"?",+ "description": "This action cannot be undone."+ },+ "schedule": {+ "calendar": "Calendar",+ "createSchedule": {+ "description": "Set up a recurring or one-time scheduled task for an agent.",+ "descriptionLabel": "Description",+ "descriptionPlaceholder": "Describe what this schedule should do...",+ "namePlaceholder": "e.g. Daily Report",+ "title": "Create Schedule"+ },+ "deleteSchedule": {+ "description": "This action cannot be undone. The scheduled task will be permanently removed.",+ "successToast": "Schedule deleted successfully.",+ "title": "Delete Schedule"+ },+ "endAt": "End Date",+ "end_at": "End At",+ "executionHistory": "Execution History",+ "freqDaily": "Daily",+ "freqMonthly": "Monthly",+ "freqOnce": "Once",+ "freqWeekly": "Weekly",+ "frequency": "Frequency",+ "friday": "Fri",+ "list": "List",+ "monday": "Mon",+ "more": "more",+ "nextMonth": "Next Month",+ "nextYear": "Next Year",+ "noExecutions": "No executions yet",+ "noExecutionsDescription": "This schedule has not been executed yet.",+ "noSchedules": "No schedules",+ "noSchedulesDescription": "Create a schedule to automate agent tasks.",+ "pickDate": "Pick a date",+ "permissionMode": "Permission Mode",+ "timezone": "Timezone",+ "triggerTime": "Trigger Time",+ "createdAt": "Created At",+ "dayOfMonthSuffix": "",+ "stateful": "Stateful",+ "statefulDesc": "Reuse one session across all fires to accumulate context. Disabled: every fire creates a fresh session.",+ "previousMonth": "Previous Month",+ "previousYear": "Previous Year",+ "saturday": "Sat",+ "startAt": "Start At",+ "sunday": "Sun",+ "thursday": "Thu",+ "today": "Today",+ "tuesday": "Tue",+ "wednesday": "Wed"+ },+ "model-parameters": {+ "title": "Model Parameters",+ "description": "Adjust inference parameters for the selected model.",+ "empty": "No configurable parameters."+ },+ "setup": {+ "title": "Connect to Service",+ "description": "Enter your server URL and username to get started.",+ "serverUrl": "Server URL",+ "serverUrlPlaceholder": "https://...",+ "username": "Username",+ "usernamePlaceholder": "Your username",+ "submit": "Get Started",+ "hint": "This is a frontend-only application, and all data are served from the Server URL above. The username is used solely for server-side authentication."+ },+ "tour": {+ "trigger": "Take a tour",+ "prev": "Back",+ "next": "Next",+ "finish": "Finish",+ "skip": "Skip",+ "step": "Step {{current}} / {{total}}",+ "createAgent": {+ "title": "Create an agent",+ "content": "Start by creating an agent — your chat partner."+ },+ "createSession": {+ "title": "Create a session",+ "content": "Click + to start a new session."+ },+ "llmSelect": {+ "title": "Pick a model",+ "content": "Choose a model; add a credential from the dropdown if needed."+ },+ "permissionMode": {+ "title": "Permission mode",+ "content": "Decide whether tool calls need confirmation."+ },+ "chatInput": {+ "title": "Start chatting",+ "content": "Type a message and press Enter. Paperclip attaches files."+ }+ }+}diff --git a/examples/web_ui/frontend/src/i18n/locales/zh.json b/examples/web_ui/frontend/src/i18n/locales/zh.jsonnew file mode 100644index 000000000..f926c642f--- /dev/null+++ b/examples/web_ui/frontend/src/i18n/locales/zh.json@@ -0,0 +1,292 @@+{+ "common": {+ "add": "添加",+ "agent": "Agent",+ "cancel": "取消",+ "chat": "聊天",+ "close": "关闭",+ "confirm": "确认",+ "create": "创建",+ "creating": "创建中…",+ "credential": "凭证",+ "date": "日期",+ "delete": "删除",+ "deleting": "删除中…",+ "disabled": "已禁用",+ "edit": "编辑",+ "error": "出错了",+ "information": "信息",+ "interrupted": "已中断",+ "loading": "加载中...",+ "model": "模型",+ "name": "名称",+ "no": "否",+ "noData": "暂无数据",+ "completed": "已完成",+ "failed": "已失败",+ "running": "运行中",+ "save": "保存",+ "saving": "保存中…",+ "schedule": "日程",+ "selectAgent": "选择 Agent",+ "settings": "设置",+ "switchToZh": "切换为中文",+ "switchToEn": "Switch to English",+ "success": "成功",+ "time": "时间",+ "yes": "是"+ },+ "tool": {+ "moreLines": "... 还有 {{count}} 行",+ "read": {+ "name": "读取",+ "fileCount": "{{count}} 个文件"+ },+ "glob": {+ "name": "Glob"+ },+ "grep": {+ "name": "Grep"+ }+ },+ "textInput": {+ "toComplete": "补全",+ "newLine": "换行",+ "attach": "添加附件",+ "attachNotSupported": "当前模型不支持文件附件",+ "send": "发送"+ },+ "confirmCard": {+ "toConfirm": "确认",+ "yesWithRule": "是,且该次对话中都允许 {{toolName}} 执行 {{ruleContent}}"+ },+ "messageBubble": {+ "thinking": "思考中"+ },+ "chat": {+ "inputPlaceholder": "输入消息...",+ "placeholder": "输入消息...",+ "send": "发送",+ "confirmToolCall": "允许此操作?",+ "newSession": "新会话",+ "noSessions": "暂无会话",+ "noMessages": "暂无消息",+ "noMessagesDesc": "发送一条消息开始新的对话",+ "agent": {+ "selectPlaceholder": "选择 Agent",+ "emptyTitle": "暂无 Agent",+ "emptyDescription": "创建一个 Agent 开始使用。"+ },+ "session": {+ "label": "会话",+ "emptyTitle": "暂无会话",+ "emptyNoAgent": "请先选择一个 Agent。",+ "emptyHasAgent": "创建会话开始对话。"+ }+ },+ "dialog-agent-create": {+ "title": "创建 Agent",+ "trigger": "创建 Agent",+ "identity": {+ "legend": "Agent 身份",+ "description": "定义此 Agent 行为的名称和指令。",+ "name": { "label": "名称", "placeholder": "我的 Agent" },+ "systemPrompt": { "label": "系统提示词", "placeholder": "你是一个有帮助的助手。" }+ },+ "contextConfig": {+ "legend": "上下文配置",+ "description": "控制上下文窗口的管理和压缩方式。",+ "triggerRatio": { "label": "触发比例", "placeholder": "例如 0.75(0.01–0.89)" },+ "reserveRatio": { "label": "保留比例", "placeholder": "例如 0.25(0.01–0.89)" },+ "toolResultLimit": {+ "label": "工具结果限制",+ "placeholder": "每个工具结果的最大字符数"+ },+ "compressionPrompt": { "label": "压缩提示词", "placeholder": "覆盖默认压缩指令" },+ "summaryTemplate": { "label": "摘要模板", "placeholder": "覆盖默认摘要输出模板" }+ },+ "reactConfig": {+ "legend": "ReAct 配置",+ "description": "控制推理和行动循环的行为。",+ "maxIters": { "label": "最大迭代次数", "placeholder": "ReAct 循环最大迭代次数" },+ "stopOnReject": { "label": "拒绝时停止" }+ }+ },+ "dialog-agent-edit": {+ "title": "编辑 Agent"+ },+ "dialog-agent-delete": {+ "title": "删除 Agent",+ "description": "此操作无法撤销。",+ "confirm": "删除"+ },+ "dialog-session-delete": {+ "title": "删除会话",+ "description": "此操作无法撤销。"+ },+ "dialog-session-rename": {+ "title": "重命名会话",+ "label": "名称",+ "placeholder": "会话名称",+ "confirm": "重命名"+ },+ "session-menu": {+ "rename": "重命名",+ "delete": "删除"+ },+ "dialog-credential-create": {+ "title": "添加凭证",+ "selectType": "提供商",+ "selectTypePlaceholder": "选择提供商"+ },+ "dialog-credential-edit": {+ "title": "编辑凭证"+ },+ "credential": {+ "addConfig": "添加配置",+ "noProviders": "暂无可用提供商",+ "noConfigs": "暂无配置",+ "selectHint": "未选择凭证",+ "selectHintDescription": "从左侧选择一个凭证以查看详情。",+ "availableModels": "可用模型",+ "noModels": "暂无可用模型",+ "noModelsDescription": "该提供商未返回任何模型。",+ "deleteTitle": "确定要删除 API 凭证 \"{{name}}\" 吗?",+ "deleteDescription": "此操作无法撤销",+ "subtitle": "模型 API 授权配置",+ "reasoning": "推理模型",+ "maxContext": "最大上下文",+ "maxOutput": "最大输出",+ "inputTypes": "输入模态",+ "outputTypes": "输出模态"+ },+ "llm-select": {+ "placeholder": "选择模型",+ "loading": "加载中…",+ "empty": {+ "title": "暂无可用模型",+ "description": "请先添加凭证。",+ "addButton": "添加凭证"+ },+ "addCredential": "添加凭证"+ },+ "permission-mode": {+ "placeholder": "选择权限模式",+ "trigger-tooltip": "权限模式",+ "label": "权限模式",+ "default-tooltip": "默认模式:所有操作需要明确授权(最安全)",+ "accept_edits-tooltip": "自动允许工作目录内的文件读写及文件系统命令(mkdir、rm、mv 等),其他操作按正常规则处理",+ "explore-tooltip": "只读模式:允许读取/Grep/Glob 工具,禁止写入/编辑/Bash 等修改操作",+ "bypass-tooltip": "所有操作自动允许,无需权限检查(适用于可信/沙箱环境)",+ "dont_ask-tooltip": "将所有 ASK 决策转为 DENY,适合定时任务或用户不在场时的后台执行"+ },+ "dialog-mcp-create": {+ "title": "添加 MCP 服务器",+ "description": "通过配置添加新的 MCP 服务器。",+ "configLabel": "MCP 配置",+ "keepAlive": "保持连接",+ "keepAliveDesc": "在交互间保持状态。适用于浏览器操作或其他长时间运行的 MCP。",+ "adding": "添加中…",+ "added": "已添加",+ "parseError": "JSON 配置无效:{{message}}",+ "missingMcpServers": "配置中必须包含 \"mcpServers\" 对象。",+ "emptyMcpServers": "配置中未找到 MCP 服务器。"+ },+ "dialog-mcp-delete": {+ "title": "确定要删除 MCP 服务器 \"{{name}}\" 吗?",+ "description": "此操作无法撤销。"+ },+ "schedule": {+ "calendar": "日历",+ "createSchedule": {+ "description": "为 Agent 设置定时或一次性的计划任务。",+ "descriptionLabel": "描述",+ "descriptionPlaceholder": "描述这个计划任务的用途...",+ "namePlaceholder": "例如:每日报告",+ "title": "创建日程"+ },+ "deleteSchedule": {+ "description": "此操作无法撤销,计划任务将被永久删除。",+ "successToast": "日程已删除。",+ "title": "删除日程"+ },+ "endAt": "结束日期",+ "end_at": "结束时间",+ "executionHistory": "执行历史",+ "freqDaily": "每天",+ "freqMonthly": "每月",+ "freqOnce": "一次",+ "freqWeekly": "每周",+ "frequency": "频率",+ "friday": "周五",+ "list": "列表",+ "monday": "周一",+ "more": "更多",+ "nextMonth": "下个月",+ "nextYear": "下一年",+ "noExecutions": "暂无执行记录",+ "noExecutionsDescription": "该日程尚未执行过。",+ "noSchedules": "暂无日程",+ "noSchedulesDescription": "创建日程以自动化 Agent 任务。",+ "pickDate": "选择日期",+ "permissionMode": "权限模式",+ "timezone": "时区",+ "triggerTime": "触发时间",+ "createdAt": "创建时间",+ "dayOfMonthSuffix": "日",+ "stateful": "有状态",+ "statefulDesc": "开启后,每次触发复用同一个会话以累积上下文;关闭则每次触发都创建新会话。",+ "previousMonth": "上个月",+ "previousYear": "上一年",+ "saturday": "周六",+ "startAt": "开始时间",+ "sunday": "周日",+ "thursday": "周四",+ "today": "今天",+ "tuesday": "周二",+ "wednesday": "周三"+ },+ "model-parameters": {+ "title": "模型参数",+ "description": "调整所选模型的推理参数。",+ "empty": "暂无可配置参数。"+ },+ "setup": {+ "title": "连接到服务器",+ "description": "请输入服务器地址和用户名以开始使用。",+ "serverUrl": "服务器地址",+ "serverUrlPlaceholder": "https://...",+ "username": "用户名",+ "usernamePlaceholder": "请输入用户名",+ "submit": "开始使用",+ "hint": "此应用进提供前端服务,所有数据均来自填写的服务器地址,用户名仅用于服务端鉴权。"+ },+ "tour": {+ "trigger": "新手引导",+ "prev": "上一步",+ "next": "下一步",+ "finish": "完成",+ "skip": "跳过",+ "step": "第 {{current}} / {{total}} 步",+ "createAgent": {+ "title": "创建 Agent",+ "content": "先创建一个 Agent —— 与你对话的智能体。"+ },+ "createSession": {+ "title": "创建会话",+ "content": "点 + 新建会话,开始对话。"+ },+ "llmSelect": {+ "title": "选择模型",+ "content": "为本次对话选一个模型;没有凭证可在下拉中添加。"+ },+ "permissionMode": {+ "title": "权限模式",+ "content": "决定工具调用是否需要确认。"+ },+ "chatInput": {+ "title": "开始对话",+ "content": "输入消息回车发送,回形针可附加文件。"+ }+ }+}diff --git a/examples/web_ui/frontend/src/i18n/useI18n.ts b/examples/web_ui/frontend/src/i18n/useI18n.tsnew file mode 100644index 000000000..3809460eb--- /dev/null+++ b/examples/web_ui/frontend/src/i18n/useI18n.ts@@ -0,0 +1,5 @@+import { useTranslation as useI18nextTranslation } from 'react-i18next';++export const useTranslation = () => {+ return useI18nextTranslation('translation');+};diff --git a/examples/web_ui/frontend/src/index.css b/examples/web_ui/frontend/src/index.cssnew file mode 100644index 000000000..1f350b61a--- /dev/null+++ b/examples/web_ui/frontend/src/index.css@@ -0,0 +1,272 @@+@import 'tailwindcss';+@import 'tw-animate-css';+@import 'shadcn/tailwind.css';+@import '@fontsource-variable/geist';++html,+body,+#root {+ height: 100%;+ width: 100%;+}++@custom-variant dark (&:is(.dark *));++:root {+ --text: #6b6375;+ --text-h: #08060d;+ --bg: #fff;+ --border: oklch(0.922 0 0);+ --code-bg: #f4f3ec;+ --accent: oklch(0.97 0 0);+ --accent-bg: rgba(170, 59, 255, 0.1);+ --accent-border: rgba(170, 59, 255, 0.5);+ --social-bg: rgba(244, 243, 236, 0.5);+ --shadow: rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;++ --sans: system-ui, 'Segoe UI', Roboto, sans-serif;+ --heading: system-ui, 'Segoe UI', Roboto, sans-serif;+ --mono: ui-monospace, Consolas, monospace;++ font: 18px/145% var(--sans);+ letter-spacing: 0.18px;+ color-scheme: light dark;+ color: var(--text);+ background: var(--bg);+ font-synthesis: none;+ text-rendering: optimizeLegibility;+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;++ @media (max-width: 1024px) {+ font-size: 16px;+ }++ --background: oklch(1 0 0);++ --foreground: oklch(0.145 0 0);++ --card: oklch(1 0 0);++ --card-foreground: oklch(0.145 0 0);++ --popover: oklch(1 0 0);++ --popover-foreground: oklch(0.145 0 0);++ --primary: oklch(0.205 0 0);++ --primary-foreground: oklch(0.985 0 0);++ --secondary: oklch(0.97 0 0);++ --secondary-foreground: oklch(0.205 0 0);++ --muted: oklch(0.97 0 0);++ --muted-foreground: oklch(0.556 0 0);++ --accent-foreground: oklch(0.205 0 0);++ --destructive: oklch(0.577 0.245 27.325);++ --input: oklch(0.922 0 0);++ --ring: oklch(0.708 0 0);++ --chart-1: oklch(0.87 0 0);++ --chart-2: oklch(0.556 0 0);++ --chart-3: oklch(0.439 0 0);++ --chart-4: oklch(0.371 0 0);++ --chart-5: oklch(0.269 0 0);++ --radius: 0.625rem;++ --sidebar: oklch(0.985 0 0);++ --sidebar-foreground: oklch(0.145 0 0);++ --sidebar-primary: oklch(0.205 0 0);++ --sidebar-primary-foreground: oklch(0.985 0 0);++ --sidebar-accent: oklch(0.97 0 0);++ --sidebar-accent-foreground: oklch(0.205 0 0);++ --sidebar-border: oklch(0.922 0 0);++ --sidebar-ring: oklch(0.708 0 0);+}++@media (prefers-color-scheme: dark) {+ :root {+ --text: #9ca3af;+ --text-h: #f3f4f6;+ --bg: #16171d;+ --border: #2e303a;+ --code-bg: #1f2028;+ --accent: #c084fc;+ --accent-bg: rgba(192, 132, 252, 0.15);+ --accent-border: rgba(192, 132, 252, 0.5);+ --social-bg: rgba(47, 48, 58, 0.5);+ --shadow: rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;+ }++ #social .button-icon {+ filter: invert(1) brightness(2);+ }+}++#root {+ width: 100%;+ max-width: 100%;+ margin: 0 auto;+ text-align: left;+ border-inline: 1px solid var(--border);+ min-height: 100svh;+ display: flex;+ flex-direction: column;+ box-sizing: border-box;+}++body {+ margin: 0;+}++h1,+h2 {+ font-family: var(--heading);+ font-weight: 500;+ color: var(--text-h);+}++h1 {+ font-size: 56px;+ letter-spacing: -1.68px;+ margin: 32px 0;+ @media (max-width: 1024px) {+ font-size: 36px;+ margin: 20px 0;+ }+}+h2 {+ font-size: 24px;+ line-height: 118%;+ letter-spacing: -0.24px;+ margin: 0 0 8px;+ @media (max-width: 1024px) {+ font-size: 16px;+ }+}+p {+ margin: 0;+}++/*code,*/+/*.counter {*/+/* font-family: var(--mono);*/+/* display: inline-flex;*/+/* border-radius: 4px;*/+/* color: var(--text-h);*/+/*}*/++/*code {*/+/* font-size: 15px;*/+/* line-height: 135%;*/+/* padding: 4px 8px;*/+/* background: var(--code-bg);*/+/*}*/++@theme inline {+ --font-heading: var(--font-sans);+ --font-sans: 'Geist Variable', sans-serif;+ --color-sidebar-ring: var(--sidebar-ring);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar: var(--sidebar);+ --color-chart-5: var(--chart-5);+ --color-chart-4: var(--chart-4);+ --color-chart-3: var(--chart-3);+ --color-chart-2: var(--chart-2);+ --color-chart-1: var(--chart-1);+ --color-ring: var(--ring);+ --color-input: var(--input);+ --color-border: var(--border);+ --color-destructive: var(--destructive);+ --color-accent-foreground: var(--accent-foreground);+ --color-accent: var(--accent);+ --color-muted-foreground: var(--muted-foreground);+ --color-muted: var(--muted);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-secondary: var(--secondary);+ --color-primary-foreground: var(--primary-foreground);+ --color-primary: var(--primary);+ --color-popover-foreground: var(--popover-foreground);+ --color-popover: var(--popover);+ --color-card-foreground: var(--card-foreground);+ --color-card: var(--card);+ --color-foreground: var(--foreground);+ --color-background: var(--background);+ --radius-sm: calc(var(--radius) * 0.6);+ --radius-md: calc(var(--radius) * 0.8);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) * 1.4);+ --radius-2xl: calc(var(--radius) * 1.8);+ --radius-3xl: calc(var(--radius) * 2.2);+ --radius-4xl: calc(var(--radius) * 2.6);+}++.dark {+ --background: oklch(0.145 0 0);+ --foreground: oklch(0.985 0 0);+ --card: oklch(0.205 0 0);+ --card-foreground: oklch(0.985 0 0);+ --popover: oklch(0.205 0 0);+ --popover-foreground: oklch(0.985 0 0);+ --primary: oklch(0.922 0 0);+ --primary-foreground: oklch(0.205 0 0);+ --secondary: oklch(0.269 0 0);+ --secondary-foreground: oklch(0.985 0 0);+ --muted: oklch(0.269 0 0);+ --muted-foreground: oklch(0.708 0 0);+ --accent: oklch(0.269 0 0);+ --accent-foreground: oklch(0.985 0 0);+ --destructive: oklch(0.704 0.191 22.216);+ --border: oklch(1 0 0 / 10%);+ --input: oklch(1 0 0 / 15%);+ --ring: oklch(0.556 0 0);+ --chart-1: oklch(0.87 0 0);+ --chart-2: oklch(0.556 0 0);+ --chart-3: oklch(0.439 0 0);+ --chart-4: oklch(0.371 0 0);+ --chart-5: oklch(0.269 0 0);+ --sidebar: oklch(0.205 0 0);+ --sidebar-foreground: oklch(0.985 0 0);+ --sidebar-primary: oklch(0.488 0.243 264.376);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.269 0 0);+ --sidebar-accent-foreground: oklch(0.985 0 0);+ --sidebar-border: oklch(1 0 0 / 10%);+ --sidebar-ring: oklch(0.556 0 0);+}++@layer base {+ * {+ @apply border-border outline-ring/50;+ }+ body {+ @apply bg-background text-foreground;+ }+ html {+ @apply font-sans;+ }+}diff --git a/examples/web_ui/frontend/src/main.tsx b/examples/web_ui/frontend/src/main.tsxnew file mode 100644index 000000000..e75b41735--- /dev/null+++ b/examples/web_ui/frontend/src/main.tsx@@ -0,0 +1,15 @@+import { StrictMode } from 'react';+import { createRoot } from 'react-dom/client';++import './index.css';+import './i18n';+import App from './App.tsx';+import { TooltipProvider } from '@/components/ui/tooltip.tsx';++createRoot(document.getElementById('root')!).render(+ <StrictMode>+ <TooltipProvider>+ <App />+ </TooltipProvider>+ </StrictMode>,+);diff --git a/examples/web_ui/frontend/src/pages/chat/index.tsx b/examples/web_ui/frontend/src/pages/chat/index.tsxnew file mode 100644index 000000000..963a40687--- /dev/null+++ b/examples/web_ui/frontend/src/pages/chat/index.tsx@@ -0,0 +1,580 @@+import {+ Ellipsis,+ MessageSquareDashed,+ PanelLeft,+ PanelLeftClose,+ Pencil,+ Plus,+ Settings2,+ Toolbox,+ Trash2,+} from 'lucide-react';+import { useState, useEffect, useMemo } from 'react';+import { useParams } from 'react-router-dom';++import type { ChatModelConfig } from '@/api';+import type { SessionRecord } from '@/api';+import { ChatContent } from '@/components/chat/ChatContent.tsx';+import { AgentDialog } from '@/components/dialog/AgentDialog';+import { CreateCredentialDialog } from '@/components/dialog/CreateCredentialDialog';+import { DeleteAgentDialog } from '@/components/dialog/DeleteAgentDialog';+import { EditAgentDialog } from '@/components/dialog/EditAgentDialog';+import { RenameSessionDialog } from '@/components/dialog/RenameSessionDialog';+import { WorkspaceDrawer } from '@/components/drawer/WorkspaceDrawer.tsx';+import { ModelParametersPopover } from '@/components/popover/ModelParametersPopover';+import { LlmSelect } from '@/components/select/LlmSelect';+import { PermissionModeSelect } from '@/components/select/PermissionModeSelect.tsx';+import { ChatTourController } from '@/components/tour/ChatTourController';+import { Button } from '@/components/ui/button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import {+ Empty,+ EmptyHeader,+ EmptyTitle,+ EmptyDescription,+ EmptyContent,+ EmptyMedia,+} from '@/components/ui/empty';+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from '@/components/ui/select';+import {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupAction,+ SidebarGroupContent,+ SidebarGroupLabel,+ SidebarHeader,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuButton,+ SidebarMenuItem,+} from '@/components/ui/sidebar';+import { ChatProvider, useChatContext } from '@/context/ChatContext';+import { useAgents } from '@/hooks/useAgents';+import { useAvailableModels } from '@/hooks/useAvailableModels';+import { useMessages } from '@/hooks/useMessages';+import { useSessions } from '@/hooks/useSessions';+import { useWorkspace } from '@/hooks/useWorkspace.ts';+import { useTranslation } from '@/i18n/useI18n.ts';++const ChatPageInner = () => {+ const { selectedAgentId, setSelectedAgentId, selectedSessionId, setSelectedSessionId } =+ useChatContext();+ const { agentId: urlAgentId, sessionId: urlSessionId } = useParams<{+ agentId?: string;+ sessionId?: string;+ }>();+ const { t } = useTranslation();+ const { agents, refetch: refetchAgents } = useAgents();+ const {+ sessions,+ create: createSession,+ update: updateSession,+ remove: removeSession,+ } = useSessions(selectedAgentId);++ // Fetch available model list, used to auto-select the first model when none is specified+ const { groups } = useAvailableModels();++ const [sidebarOpen, setSidebarOpen] = useState(true);+ const [selectedModel, setSelectedModel] = useState<ChatModelConfig | null>(null);+ const [selectedPermissionMode, setSelectedPermissionMode] = useState<string>('default');+ const [editOpen, setEditOpen] = useState(false);+ const [deleteOpen, setDeleteOpen] = useState(false);+ const [credentialOpen, setCredentialOpen] = useState(false);+ const [credentialRefetchTrigger, setCredentialRefetchTrigger] = useState(0);+ const [renameOpen, setRenameOpen] = useState(false);+ const [renameSession, setRenameSession] = useState<SessionRecord | null>(null);++ const { msgs, streaming, send, onUserConfirm } = useMessages(+ selectedAgentId,+ selectedSessionId,+ );+ const {+ mcps,+ loading: mcpsLoading,+ addMcps,+ removeMcp,+ skills,+ skillsLoading,+ addSkill,+ removeSkill,+ } = useWorkspace(selectedAgentId, selectedSessionId);++ const selectedAgent = agents.find((a) => a.id === selectedAgentId) ?? null;++ const selectedModelCard = useMemo(() => {+ if (!selectedModel) return null;+ const items = groups[selectedModel.type];+ if (!items) return null;+ for (const { models } of items) {+ const card = models.find((m) => m.name === selectedModel.model);+ if (card) return card;+ }+ return null;+ }, [groups, selectedModel?.type, selectedModel?.model]);++ // Auto-select agent on load — prefer URL param, fallback to first agent+ useEffect(() => {+ if (!selectedAgentId && agents.length > 0) {+ const target = urlAgentId && agents.find((a) => a.id === urlAgentId);+ setSelectedAgentId(target ? target.id : agents[0].id);+ }+ }, [agents, selectedAgentId, setSelectedAgentId, urlAgentId]);++ // Keep selectedSessionId in sync when sessions list changes — prefer URL param+ useEffect(() => {+ if (sessions.length === 0) {+ setSelectedSessionId(null);+ } else if (!sessions.find((s) => s.id === selectedSessionId)) {+ const target = urlSessionId && sessions.find((s) => s.id === urlSessionId);+ setSelectedSessionId(target ? target.id : sessions[0].id);+ }+ }, [sessions]);++ // Extract the first available model from groups, used as the fallback default selection.+ // groups shape: { [type]: { credential, models[] }[] }+ const getFirstAvailableModel = (): ChatModelConfig | null => {+ const firstType = Object.keys(groups)[0];+ if (!firstType) return null;++ const items = groups[firstType];+ if (!items || items.length === 0) return null;++ const firstItem = items[0];+ const firstModel = (firstItem.models as { name?: string; id?: string }[])[0];+ if (!firstModel) return null;++ const modelName = firstModel.name ?? firstModel.id ?? null;+ if (!modelName) return null;++ return {+ type: firstType,+ credential_id: firstItem.credential.id,+ model: modelName,+ parameters: {},+ };+ };++ // Sync selectedModel with the current session's chat_model_config.+ // Re-runs when: the selected session changes, the sessions list changes,+ // or the available models list finishes loading.+ useEffect(() => {+ const session = sessions.find((s) => s.id === selectedSessionId);+ const sessionModel = session?.config.chat_model_config ?? null;++ if (sessionModel) {+ // Case 1: the current session already has a model configured — use it directly.+ setSelectedModel(sessionModel);+ } else {+ // Case 2: no model configured on the current session (or no session selected).+ // Try to auto-select the first available model to reduce manual work.+ const firstModel = getFirstAvailableModel();+ if (firstModel) {+ // A model is available — set it as the current selection.+ // Persistence notes:+ // - If a session exists, persist the selection via updateSession below.+ // - If no session exists yet, handleCreateSession will carry selectedModel on creation.+ setSelectedModel(firstModel);++ // If there is an active session without a model, persist the auto-selected model to it.+ if (selectedSessionId && selectedAgentId) {+ updateSession(selectedSessionId, { chat_model_config: firstModel });+ }+ } else {+ // Case 3: no model configured and no credentials added yet — clear the selection.+ setSelectedModel(null);+ }+ }+ }, [selectedSessionId, sessions, groups]);++ // Sync selectedPermissionMode when switching sessions.+ useEffect(() => {+ const session = sessions.find((s) => s.id === selectedSessionId);+ const mode = (session?.state?.permission_context as Record<string, unknown>)+ ?.mode as string;+ setSelectedPermissionMode(mode ?? 'default');+ }, [selectedSessionId]);++ const handleLlmChange = async (config: ChatModelConfig) => {+ setSelectedModel(config);+ if (selectedSessionId && selectedAgentId) {+ await updateSession(selectedSessionId, { chat_model_config: config });+ }+ };++ const handleParametersChange = async (parameters: Record<string, unknown>) => {+ if (!selectedModel) return;+ const updated = { ...selectedModel, parameters };+ setSelectedModel(updated);+ if (selectedSessionId && selectedAgentId) {+ await updateSession(selectedSessionId, { chat_model_config: updated });+ }+ };++ const handleCreateSession = async () => {+ if (!selectedAgentId) return;+ const res = await createSession({+ agent_id: selectedAgentId,+ ...(selectedModel ? { chat_model_config: selectedModel } : {}),+ });+ setSelectedSessionId(res.session_id);+ };++ const handleAgentDeleted = async () => {+ setSelectedAgentId(null);+ setSelectedSessionId(null);+ await refetchAgents();+ };++ const handleDeleteSession = async (sessionId: string) => {+ await removeSession(sessionId);+ };++ const handleRenameConfirm = async (name: string) => {+ if (!renameSession) return;+ await updateSession(renameSession.id, { name });+ };++ return (+ <div className="flex h-full w-full">+ {sidebarOpen && (+ <Sidebar collapsible="none" className="w-80">+ <SidebarHeader>+ <div className="flex flex-col gap-y-2">+ <span className="text-muted-foreground text-xs">+ {localStorage.getItem('server_url')}+ </span>+ <div className="flex flex-row gap-x-2 items-center">+ <Select+ value={selectedAgentId ?? ''}+ onValueChange={setSelectedAgentId}+ >+ <SelectTrigger className="w-full" size="sm">+ <SelectValue+ placeholder={t('chat.agent.selectPlaceholder')}+ />+ </SelectTrigger>+ <SelectContent position="popper">+ {agents.length === 0 ? (+ <Empty className="border-none py-4">+ <EmptyHeader>+ <EmptyTitle>+ {t('chat.agent.emptyTitle')}+ </EmptyTitle>+ <EmptyDescription>+ {t('chat.agent.emptyDescription')}+ </EmptyDescription>+ </EmptyHeader>+ </Empty>+ ) : (+ agents.map((agent) => (+ <SelectItem key={agent.id} value={agent.id}>+ {agent.data.name}+ </SelectItem>+ ))+ )}+ </SelectContent>+ </Select>+ <Button+ size="icon-sm"+ variant="ghost"+ disabled={!selectedAgentId}+ onClick={() => setEditOpen(true)}+ >+ <Settings2 />+ </Button>+ <Button+ size="icon-sm"+ variant="ghost"+ disabled={!selectedAgentId}+ onClick={() => setDeleteOpen(true)}+ >+ <Trash2 className="text-destructive" />+ </Button>+ </div>+ <AgentDialog onCreated={refetchAgents} triggerId="tour-create-agent" />+ </div>+ </SidebarHeader>+ <SidebarContent className="my-5">+ {/*<SidebarGroup>*/}+ {/* <SidebarGroupContent>*/}+ {/* <Tabs defaultValue="mcp" onValueChange={() => {}}>*/}+ {/* <TabsList className={'w-full'}>*/}+ {/* <TabsTrigger value={'mcp'}>会话</TabsTrigger>*/}+ {/* <TabsTrigger value={'skill'}>定时任务</TabsTrigger>*/}+ {/* </TabsList>*/}+ {/* <TabsContent value={'mcp'} asChild></TabsContent>*/}+ {/* </Tabs>*/}+ {/* </SidebarGroupContent>*/}+ {/*</SidebarGroup>*/}+ <SidebarGroup>+ <SidebarGroupLabel>{t('chat.session.label')}</SidebarGroupLabel>+ <SidebarGroupAction>+ <Button+ id="tour-create-session"+ size="icon-xs"+ variant="default"+ disabled={!selectedAgentId}+ onClick={handleCreateSession}+ >+ <Plus />+ </Button>+ </SidebarGroupAction>+ <SidebarGroupContent>+ {sessions.length === 0 ? (+ <Empty className="border-none py-4 min-h-50">+ <EmptyHeader>+ <EmptyMedia variant="icon">+ <MessageSquareDashed />+ </EmptyMedia>+ <EmptyTitle>{t('chat.session.emptyTitle')}</EmptyTitle>+ <EmptyDescription>+ {selectedAgentId+ ? t('chat.session.emptyHasAgent')+ : t('chat.session.emptyNoAgent')}+ </EmptyDescription>+ </EmptyHeader>+ <EmptyContent>+ <Button+ variant="outline"+ size="sm"+ disabled={!selectedAgentId}+ onClick={handleCreateSession}+ >+ Create Session+ </Button>+ </EmptyContent>+ </Empty>+ ) : (+ <SidebarMenu>+ {sessions.map((session) => (+ <SidebarMenuItem key={session.id}>+ <SidebarMenuButton+ isActive={selectedSessionId === session.id}+ onClick={() => setSelectedSessionId(session.id)}+ >+ <span className="truncate">+ {session.config.name || session.id}+ </span>+ </SidebarMenuButton>+ <SidebarMenuAction showOnHover>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Ellipsis />+ </DropdownMenuTrigger>+ <DropdownMenuContent+ side="right"+ align="start"+ >+ <DropdownMenuItem+ onClick={() => {+ setRenameSession(session);+ setRenameOpen(true);+ }}+ >+ <Pencil />+ {t('session-menu.rename')}+ </DropdownMenuItem>+ <DropdownMenuItem+ variant="destructive"+ onClick={() =>+ handleDeleteSession(session.id)+ }+ >+ <Trash2 />+ {t('session-menu.delete')}+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </SidebarMenuAction>+ </SidebarMenuItem>+ ))}+ </SidebarMenu>+ )}+ </SidebarGroupContent>+ </SidebarGroup>+ </SidebarContent>+ <SidebarFooter />+ </Sidebar>+ )}+ <main className="flex size-full pt-2">+ <Button+ variant="ghost"+ size="icon-sm"+ onClick={() => setSidebarOpen((prev) => !prev)}+ className="ml-2 mr-4"+ >+ {sidebarOpen ? (+ <PanelLeftClose className="size-4" />+ ) : (+ <PanelLeft className="size-4" />+ )}+ </Button>+ <div className="flex flex-col flex-1 min-h-0">+ <div className="flex flex-row gap-x-2 justify-between">+ <div id="tour-llm-select" className="flex flex-row items-center gap-x-1">+ <LlmSelect+ value={selectedModel}+ onChange={handleLlmChange}+ onAddCredential={() => setCredentialOpen(true)}+ refetchTrigger={credentialRefetchTrigger}+ />+ <ModelParametersPopover+ selectedModel={selectedModel}+ modelCard={selectedModelCard}+ onChange={handleParametersChange}+ />+ </div>+ <div id="tour-permission-mode" className="flex flex-row gap-x-2">+ <PermissionModeSelect+ value={selectedPermissionMode}+ disabled={!selectedSessionId}+ onChange={(mode) => {+ setSelectedPermissionMode(mode);+ if (selectedSessionId) {+ updateSession(selectedSessionId, { permission_mode: mode });+ }+ }}+ />+ </div>+ </div>+ <div className="flex flex-1 justify-center min-h-0 overflow-hidden">+ <ChatContent+ className={'max-w-xl'}+ msgs={msgs}+ sending={streaming}+ disabled={selectedModel === null}+ onSend={send}+ onUserConfirm={onUserConfirm}+ allowedInputTypes={(selectedModelCard?.input_types ?? []).filter(+ (t) =>+ /^(image|video|audio|text)\/.+/.test(t) ||+ t === 'application/pdf' ||+ t.startsWith('application/vnd.') ||+ t.startsWith('application/msword') ||+ t.startsWith('application/vnd.openxmlformats'),+ )}+ fileProcessor={async (file) => {+ const filePath = (file as File & { path?: string }).path;++ // ── Electron environment: have real local path ──+ if (filePath) {+ return {+ id: crypto.randomUUID(),+ type: 'data' as const,+ source: {+ type: 'url' as const,+ url: `file://${filePath}`,+ media_type: file.type || 'application/octet-stream',+ },+ name: file.name,+ };+ }++ // ── Browser environment: only File object in memory ──+ // text/plain → read as text, wrap in TextBlock+ if (file.type === 'text/plain') {+ const text = await file.text();+ // TODO: handle oversized text files — e.g. truncate, split into+ // chunks, or warn the user when text.length exceeds the model's+ // context window limit.+ return {+ id: crypto.randomUUID(),+ type: 'text' as const,+ text: `[File: ${file.name}]\n${text}`,+ };+ }++ // image/audio/video → read as base64, wrap in DataBlock+ const buffer = await file.arrayBuffer();+ const bytes = new Uint8Array(buffer);+ let binary = '';+ for (let i = 0; i < bytes.byteLength; i++) {+ binary += String.fromCharCode(bytes[i]);+ }+ const base64 = btoa(binary);+ return {+ id: crypto.randomUUID(),+ type: 'data' as const,+ source: {+ type: 'base64' as const,+ media_type: file.type || 'application/octet-stream',+ data: base64,+ },+ name: file.name,+ };+ }}+ />+ </div>+ </div>+ <div className="flex h-full px-2">+ <WorkspaceDrawer+ mcps={mcps}+ loading={mcpsLoading}+ onAdd={addMcps}+ onRemove={removeMcp}+ skills={skills}+ skillsLoading={skillsLoading}+ onAddSkill={addSkill}+ onRemoveSkill={removeSkill}+ >+ <Button size="icon-sm" variant="ghost">+ <Toolbox />+ </Button>+ </WorkspaceDrawer>+ </div>+ </main>+ {selectedAgent && (+ <>+ <EditAgentDialog+ open={editOpen}+ onOpenChange={setEditOpen}+ agent={selectedAgent}+ onUpdated={refetchAgents}+ />+ <DeleteAgentDialog+ open={deleteOpen}+ onOpenChange={setDeleteOpen}+ agent={selectedAgent}+ onDeleted={handleAgentDeleted}+ />+ </>+ )}+ <CreateCredentialDialog+ open={credentialOpen}+ onOpenChange={setCredentialOpen}+ onCreated={() => setCredentialRefetchTrigger((n) => n + 1)}+ />+ <RenameSessionDialog+ open={renameOpen}+ onOpenChange={setRenameOpen}+ currentName={renameSession?.config.name ?? renameSession?.id ?? ''}+ onConfirm={handleRenameConfirm}+ />+ <ChatTourController+ agentsCount={agents.length}+ sessionsCount={sessions.length}+ onEnsureSidebarOpen={() => setSidebarOpen(true)}+ />+ </div>+ );+};++export const ChatPage = () => (+ <ChatProvider>+ <ChatPageInner />+ </ChatProvider>+);diff --git a/examples/web_ui/frontend/src/pages/credential/index.tsx b/examples/web_ui/frontend/src/pages/credential/index.tsxnew file mode 100644index 000000000..007727704--- /dev/null+++ b/examples/web_ui/frontend/src/pages/credential/index.tsx@@ -0,0 +1,397 @@+import { Eye, EyeOff, Plus, Pencil, Trash2 } from 'lucide-react';+import { useState, useEffect, useCallback } from 'react';++import { credentialApi, modelApi } from '@/api';+import type { CredentialRecord, CredentialSchema, ModelCard } from '@/api';+import { InputTypeBadges } from '@/components/badge/InputTypeBadges';+import { CreateCredentialDialog } from '@/components/dialog/CreateCredentialDialog';+import { DeleteDialog } from '@/components/dialog/DeleteDialog';+import { EditCredentialDialog } from '@/components/dialog/EditCredentialDialog';+import { Badge } from '@/components/ui/badge';+import { Button } from '@/components/ui/button';+import { Card, CardAction, CardContent, CardHeader, CardTitle } from '@/components/ui/card';+import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from '@/components/ui/empty';+import { Separator } from '@/components/ui/separator';+import {+ Sidebar,+ SidebarContent,+ SidebarGroup,+ SidebarGroupAction,+ SidebarGroupContent,+ SidebarGroupLabel,+ SidebarHeader,+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+} from '@/components/ui/sidebar';+import { Skeleton } from '@/components/ui/skeleton';+import { useCredentials } from '@/hooks/useCredentials';+import { useTranslation } from '@/i18n/useI18n';+import { formatNumber } from '@/utils/common.ts';++// ─── Masked value ─────────────────────────────────────────────────────────────++function MaskedValue({ value }: { value: string }) {+ const [visible, setVisible] = useState(false);+ const masked = value.length > 8 ? value.slice(0, 4) + '••••••••' + value.slice(-4) : '••••••••';+ return (+ <span className="flex items-center gap-x-1.5 font-mono text-sm">+ {visible ? value : masked}+ <Button size={'icon-sm'} variant={'ghost'} onClick={() => setVisible((v) => !v)}>+ {visible ? <EyeOff /> : <Eye />}+ </Button>+ </span>+ );+}++// ─── Model Card ───────────────────────────────────────────────────────────────++function ModelCardItem({ model }: { model: ModelCard }) {+ const { t } = useTranslation();+ const ctx = model.context_size ? formatNumber(model.context_size) : null;++ const output = model.output_size ? formatNumber(model.output_size) : null;++ const statusVariant =+ model.status === 'active'+ ? 'default'+ : model.status === 'deprecated'+ ? 'secondary'+ : 'outline';++ const reasoning = model.input_types.includes('application/x-thinking');++ return (+ <Card className="shadow">+ <CardHeader>+ <CardTitle+ className="text-sm font-semibold leading-tight truncate"+ title={model.name}+ >+ {model.label || model.name}+ </CardTitle>+ {reasoning ? (+ <CardAction>+ <Badge variant={'outline'}>{t('credential.reasoning')}</Badge>+ </CardAction>+ ) : null}+ </CardHeader>+ <CardContent className="flex flex-col">+ {model.status !== 'active' && (+ <Badge variant={statusVariant} className="text-xs">+ {model.status}+ </Badge>+ )}++ <div className="flex justify-between items-center text-[14px]">+ <span className="text-muted-foreground">{t('credential.maxContext')}</span>+ <span>{ctx}</span>+ </div>+ <div className="flex justify-between items-center text-[14px]">+ <span className="text-muted-foreground">{t('credential.maxOutput')}</span>+ <span>{output}</span>+ </div>+ <div className="flex justify-between items-center text-[14px]">+ <span className="text-muted-foreground">{t('credential.inputTypes')}</span>+ <InputTypeBadges inputTypes={model.input_types} />+ </div>+ <div className="flex justify-between items-center text-[14px]">+ <span className="text-muted-foreground">{t('credential.outputTypes')}</span>+ <InputTypeBadges inputTypes={model.output_types} />+ </div>+ </CardContent>+ </Card>+ );+}++// ─── Detail panel ─────────────────────────────────────────────────────────────++interface DetailPanelProps {+ credential: CredentialRecord;+ schema: CredentialSchema | null;+ onEdit: () => void;+ onDelete: () => void;+}++function DetailPanel({ credential, schema, onEdit, onDelete }: DetailPanelProps) {+ const { t } = useTranslation();+ const [models, setModels] = useState<ModelCard[]>([]);+ const [modelsLoading, setModelsLoading] = useState(false);++ const type = credential.data.type as string | undefined;++ useEffect(() => {+ if (!type) return;+ setModelsLoading(true);+ modelApi+ .list(type)+ .then((res) => setModels(res.models))+ .catch(() => setModels([]))+ .finally(() => setModelsLoading(false));+ }, [credential.id, type]);++ // Fields to display: use schema properties order, skip id/type/const fields+ const displayFields = schema+ ? Object.entries(schema.properties).filter(+ ([key, prop]) => key !== 'id' && key !== 'type' && prop.const === undefined,+ )+ : Object.entries(credential.data)+ .filter(([key]) => key !== 'id' && key !== 'type')+ .map(+ ([key]) =>+ [key, { title: key, writeOnly: false }] as [+ string,+ { title: string; writeOnly: boolean },+ ],+ );++ const name = (credential.data.name as string | undefined) ?? credential.id;++ return (+ <div className="flex flex-col gap-y-6 p-6 overflow-y-auto h-full">+ {/* Header */}+ <div className="flex items-start justify-between gap-x-4">+ <div>+ <h2 className="text-lg font-semibold">{name}</h2>+ <p className="text-muted-foreground text-sm">{type}</p>+ </div>+ <div className="flex items-center gap-x-2 shrink-0">+ <Button size="icon-sm" variant="outline" onClick={onEdit}>+ <Pencil />+ </Button>+ <Button size="icon-sm" variant="destructive" onClick={onDelete}>+ <Trash2 />+ </Button>+ </div>+ </div>++ {/* Fields */}+ <div className="flex flex-col gap-y-3">+ {displayFields.map(([key, prop]) => {+ const schemaProp = prop as {+ title?: string;+ writeOnly?: boolean;+ format?: string;+ };+ const label = schemaProp.title ?? key.replace(/_/g, ' ');+ const isSecret = schemaProp.writeOnly || schemaProp.format === 'password';+ const val = credential.data[key];+ if (val === undefined || val === null) return null;+ const strVal = String(val);+ return (+ <div key={key} className="flex flex-col gap-y-0.5">+ <span className="text-muted-foreground text-xs uppercase tracking-wide">+ {label}+ </span>+ {isSecret ? (+ <MaskedValue value={strVal} />+ ) : (+ <span className="text-sm font-mono break-all">{strVal}</span>+ )}+ </div>+ );+ })}+ </div>++ <Separator />++ {/* Available Models */}+ <div className="flex flex-col gap-y-4">+ <h3 className="text-sm font-semibold">+ {t('credential.availableModels')}({models.length})+ </h3>+ {modelsLoading ? (+ <div className="grid grid-cols-2 xl:grid-cols-3 gap-3">+ {Array.from({ length: 4 }).map((_, i) => (+ <Skeleton key={i} className="h-20 rounded-lg" />+ ))}+ </div>+ ) : models.length === 0 ? (+ <Empty className="border-none py-6">+ <EmptyHeader>+ <EmptyTitle>{t('credential.noModels')}</EmptyTitle>+ <EmptyDescription>+ {t('credential.noModelsDescription')}+ </EmptyDescription>+ </EmptyHeader>+ </Empty>+ ) : (+ <div className="grid grid-cols-2 xl:grid-cols-3 gap-3">+ {models.map((m) => (+ <ModelCardItem key={m.name} model={m} />+ ))}+ </div>+ )}+ </div>+ </div>+ );+}++// ─── Page ─────────────────────────────────────────────────────────────────────++export const CredentialPage = () => {+ const { t } = useTranslation();+ const { credentials, loading, remove, refetch } = useCredentials();+ const [schemas, setSchemas] = useState<CredentialSchema[]>([]);+ const [selectedId, setSelectedId] = useState<string | null>(null);+ const [createOpen, setCreateOpen] = useState(false);+ const [createDefaultType, setCreateDefaultType] = useState<string | undefined>();+ const [editOpen, setEditOpen] = useState(false);+ const [deleteOpen, setDeleteOpen] = useState(false);++ useEffect(() => {+ credentialApi.schemas().then((res) => setSchemas(res.schemas));+ }, []);++ // Auto-select first credential+ useEffect(() => {+ if (!selectedId && credentials.length > 0) {+ setSelectedId(credentials[0].id);+ }+ }, [credentials, selectedId]);++ const selectedCredential = credentials.find((c) => c.id === selectedId) ?? null;+ const selectedSchema = selectedCredential+ ? (schemas.find(+ (s) =>+ (s.properties.type?.const as string) ===+ (selectedCredential.data.type as string),+ ) ?? null)+ : null;++ // Group credentials by type, then list all schema types (even empty ones)+ const groupedByType: Array<{ type: string; title: string; records: CredentialRecord[] }> =+ schemas.map((s) => {+ const type = s.properties.type?.const as string;+ return {+ type,+ title: s.title,+ records: credentials.filter((c) => c.data.type === type),+ };+ });++ const handleOpenCreate = useCallback((type?: string) => {+ setCreateDefaultType(type);+ setCreateOpen(true);+ }, []);++ const handleDelete = useCallback(async () => {+ if (!selectedCredential) return;+ await remove(selectedCredential.id);+ setSelectedId(null);+ }, [selectedCredential, remove]);++ return (+ <div className="flex h-full w-full">+ {/* Left sidebar */}+ <Sidebar collapsible="none" className="w-72 border-r">+ <SidebarHeader className={'flex flex-col mt-5 gap-y-1'}>+ <div className="text-lg font-semibold">{t('common.credential')}</div>+ <div className="text-muted-foreground text-xs">{t('credential.subtitle')}</div>+ </SidebarHeader>+ {/*<Separator />*/}+ <SidebarContent>+ {loading ? (+ <div className="flex flex-col gap-y-2 p-4">+ {Array.from({ length: 3 }).map((_, i) => (+ <Skeleton key={i} className="h-8 rounded" />+ ))}+ </div>+ ) : groupedByType.length === 0 ? (+ <Empty className="border-none py-8">+ <EmptyHeader>+ <EmptyTitle>{t('credential.noProviders')}</EmptyTitle>+ </EmptyHeader>+ </Empty>+ ) : (+ groupedByType.map(({ type, title, records }) => (+ <SidebarGroup key={type}>+ <SidebarGroupLabel>{title}</SidebarGroupLabel>+ <SidebarGroupAction+ title={t('credential.addConfig')}+ onClick={() => handleOpenCreate(type)}+ >+ <Button variant="ghost" size={'icon-sm'}>+ <Plus />+ </Button>+ </SidebarGroupAction>+ <SidebarGroupContent>+ {records.length > 0 && (+ <SidebarMenu>+ {records.map((rec) => {+ const name =+ (rec.data.name as string | undefined) ?? rec.id;+ return (+ <SidebarMenuItem key={rec.id}>+ <SidebarMenuButton+ isActive={selectedId === rec.id}+ onClick={() => setSelectedId(rec.id)}+ >+ <span className="truncate">{name}</span>+ </SidebarMenuButton>+ </SidebarMenuItem>+ );+ })}+ </SidebarMenu>+ )}+ </SidebarGroupContent>+ </SidebarGroup>+ ))+ )}+ </SidebarContent>+ </Sidebar>++ {/* Right detail */}+ <main className="flex-1 min-h-0 overflow-hidden">+ {selectedCredential ? (+ <DetailPanel+ credential={selectedCredential}+ schema={selectedSchema}+ onEdit={() => setEditOpen(true)}+ onDelete={() => setDeleteOpen(true)}+ />+ ) : (+ <div className="flex h-full items-center justify-center">+ <Empty className="border-none">+ <EmptyHeader>+ <EmptyTitle>{t('credential.selectHint')}</EmptyTitle>+ <EmptyDescription>+ {t('credential.selectHintDescription')}+ </EmptyDescription>+ </EmptyHeader>+ </Empty>+ </div>+ )}+ </main>++ {/* Dialogs */}+ <CreateCredentialDialog+ open={createOpen}+ onOpenChange={setCreateOpen}+ defaultType={createDefaultType}+ onCreated={() => refetch()}+ />+ {selectedCredential && (+ <>+ <EditCredentialDialog+ open={editOpen}+ onOpenChange={setEditOpen}+ credential={selectedCredential}+ onUpdated={() => refetch()}+ />+ <DeleteDialog+ open={deleteOpen}+ onOpenChange={setDeleteOpen}+ title={t('credential.deleteTitle', {+ name:+ (selectedCredential.data.name as string | undefined) ??+ selectedCredential.id,+ })}+ description={t('credential.deleteDescription')}+ onConfirm={handleDelete}+ />+ </>+ )}+ </div>+ );+};diff --git a/examples/web_ui/frontend/src/pages/schedule/calendar-tab-page.tsx b/examples/web_ui/frontend/src/pages/schedule/calendar-tab-page.tsxnew file mode 100644index 000000000..4cd8f59cb--- /dev/null+++ b/examples/web_ui/frontend/src/pages/schedule/calendar-tab-page.tsx@@ -0,0 +1,340 @@+import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from 'lucide-react';+import { useEffect, useRef, useState } from 'react';++import type { ScheduleEvent } from './event';+import { Button } from '@/components/ui/button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';+import { useTranslation } from '@/i18n/useI18n';++interface DateCellProps {+ day: number;+ isToday: boolean;+ events: ScheduleEvent[];+ onEventClick: (event: ScheduleEvent) => void;+ moreText: string;+}++/**+ * DateCell component that dynamically adjusts the number of visible events based on cell height.+ * @param root0+ * @param root0.day+ * @param root0.isToday+ * @param root0.events+ * @param root0.onEventClick+ * @param root0.moreText+ * @returns A calendar date cell element.+ */+function DateCell({ day, isToday, events, onEventClick, moreText }: DateCellProps) {+ const cellRef = useRef<HTMLDivElement>(null);+ const [maxVisibleEvents, setMaxVisibleEvents] = useState(3);++ useEffect(() => {+ if (!cellRef.current) return;++ const resizeObserver = new ResizeObserver((entries) => {+ for (const entry of entries) {+ const cellHeight = entry.contentRect.height;+ // Calculate available height for events+ // Cell padding: 8px (p-2)+ // Date header: ~28px (w-6 h-6 + mb-1)+ // Event item height: ~24px (text-xs + py-0.5 + space-y-1)+ // More indicator: ~20px+ const padding = 8;+ const headerHeight = 28;+ const eventHeight = 24;+ const moreIndicatorHeight = 20;++ const availableHeight = cellHeight - padding - headerHeight - moreIndicatorHeight;+ const maxEvents = Math.max(0, Math.floor(availableHeight / eventHeight));+ setMaxVisibleEvents(maxEvents);+ }+ });++ resizeObserver.observe(cellRef.current);++ return () => {+ resizeObserver.disconnect();+ };+ }, []);++ return (+ <div+ ref={cellRef}+ className="border-border! border-r border-b p-2 hover:bg-accent cursor-pointer overflow-hidden"+ >+ <div className="flex items-start justify-between mb-1">+ <div className="w-6 h-6 flex items-center justify-center">+ <div+ className={`text-sm ${+ isToday+ ? 'bg-primary text-primary-foreground rounded-full w-6 h-6 flex items-center justify-center'+ : ''+ }`}+ >+ {day}+ </div>+ </div>+ </div>+ {/* Event indicators */}+ <div className="space-y-1">+ {events.slice(0, maxVisibleEvents).map((event) => (+ <div+ key={event.id}+ className="flex flex-row justify-between text-xs py-0.5 px-1 text-secondary-foreground rounded-sm cursor-pointer hover:bg-primary/20"+ title={`${event.time} - ${event.title}`}+ onClick={(e) => {+ e.stopPropagation();+ onEventClick(event);+ }}+ >+ <div className="flex flex-row flex-1 items-center gap-x-1 overflow-hidden">+ <div className="w-1 min-w-1 max-w-1 bg-primary border-primary h-full rounded" />+ <span className="truncate">{event.title}</span>+ </div>+ <span>{event.time}</span>+ </div>+ ))}+ {events.length > maxVisibleEvents && (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <div className="text-xs text-muted-foreground px-1 cursor-pointer hover:text-foreground hover:underline">+ +{events.length - maxVisibleEvents} {moreText}+ </div>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="max-w-64">+ {events.slice(maxVisibleEvents).map((event) => (+ <DropdownMenuItem+ key={event.id}+ onClick={() => onEventClick(event)}+ className="text-xs"+ >+ <span className="font-medium">{event.time}</span>+ <span className="truncate ml-2">{event.title}</span>+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ )}+ </div>+ </div>+ );+}++interface Props {+ events: ScheduleEvent[];+ onEventClick: (event: ScheduleEvent) => void;+ currentDate: Date;+ onMonthChange: (date: Date) => void;+}++/**+ * The calendar tab page component that displays events in a monthly calendar view.+ *+ * @param root0 - The component props.+ * @param root0.events - Array of schedule events to display.+ * @param root0.onEventClick - Callback when an event is clicked.+ * @param root0.currentDate - The currently displayed date.+ * @param root0.onMonthChange - Callback when the month is changed.+ * @returns A CalendarTabPage component.+ */+export function CalendarTabPage({ events, onEventClick, currentDate, onMonthChange }: Props) {+ const { t } = useTranslation();+ const goToPrevMonth = () => {+ onMonthChange(new Date(year, month - 1, 1));+ };++ const goToNextMonth = () => {+ onMonthChange(new Date(year, month + 1, 1));+ };++ const goToPrevYear = () => {+ onMonthChange(new Date(year - 1, month, 1));+ };++ const goToNextYear = () => {+ onMonthChange(new Date(year + 1, month, 1));+ };++ const goToToday = () => {+ onMonthChange(new Date());+ };++ const year = currentDate.getFullYear();+ const month = currentDate.getMonth();++ // Get the first and last day of the current month+ const firstDay = new Date(year, month, 1);+ const lastDay = new Date(year, month + 1, 0);++ // Get the day of the week for the first day of the month (0-6, 0 is Sunday)+ const firstDayOfWeek = firstDay.getDay();++ // Get the last few days of the previous month+ const prevMonthLastDay = new Date(year, month, 0).getDate();+ const prevMonthDays = Array.from(+ { length: firstDayOfWeek },+ (_, i) => prevMonthLastDay - firstDayOfWeek + i + 1,+ );++ // Get all days of the current month+ const currentMonthDays = Array.from({ length: lastDay.getDate() }, (_, i) => i + 1);++ // Calculate the actual number of weeks needed for this month+ const totalDaysNeeded = prevMonthDays.length + currentMonthDays.length;+ const weeksNeeded = Math.ceil(totalDaysNeeded / 7);+ const totalCells = weeksNeeded * 7;+ const remainingCells = totalCells - prevMonthDays.length - currentMonthDays.length;+ const nextMonthDays = Array.from({ length: remainingCells }, (_, i) => i + 1);++ const weekDays = [+ t('schedule.sunday'),+ t('schedule.monday'),+ t('schedule.tuesday'),+ t('schedule.wednesday'),+ t('schedule.thursday'),+ t('schedule.friday'),+ t('schedule.saturday'),+ ];++ // Get events for a specific date+ const getEventsForDate = (date: Date) => {+ const y = date.getFullYear();+ const m = String(date.getMonth() + 1).padStart(2, '0');+ const d = String(date.getDate()).padStart(2, '0');+ const dateStr = `${y}-${m}-${d}`;+ return events.filter((event) => event.date === dateStr);+ };++ return (+ <div className="flex flex-col size-full">+ <div className="flex items-center justify-between p-4">+ <h2 className="text-xl font-semibold">+ {new Date(year, month).toLocaleDateString('en-US', {+ year: 'numeric',+ month: 'long',+ })}+ </h2>+ <div className="flex items-center gap-2">+ <Button variant="outline" size="sm" onClick={goToToday}>+ {t('schedule.today')}+ </Button>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button variant="outline" size="icon-sm" onClick={goToPrevYear}>+ <ChevronsLeft className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>{t('schedule.previousYear')}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button variant="outline" size="icon-sm" onClick={goToPrevMonth}>+ <ChevronLeft className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>{t('schedule.previousMonth')}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button variant="outline" size="icon-sm" onClick={goToNextMonth}>+ <ChevronRight className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>{t('schedule.nextMonth')}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button variant="outline" size="icon-sm" onClick={goToNextYear}>+ <ChevronsRight className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>{t('schedule.nextYear')}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ </div>++ <div className="flex-1 flex flex-col">+ {/* Week day headers */}+ <div className="grid grid-cols-7 border-b border-border!">+ {weekDays.map((day) => (+ <div+ key={day}+ className="text-center py-2 text-sm font-medium text-muted-foreground"+ >+ {day}+ </div>+ ))}+ </div>++ {/* Date grid */}+ <div+ className={`flex-1 grid grid-cols-7`}+ style={{ gridTemplateRows: `repeat(${weeksNeeded}, minmax(0, 1fr))` }}+ >+ {/* Previous month dates */}+ {prevMonthDays.map((day, index) => (+ <div+ key={`prev-${index}`}+ className="border-r border-b border-border! p-2 text-muted-foreground/50"+ >+ <div className="text-sm">{day}</div>+ </div>+ ))}++ {/* Current month dates */}+ {currentMonthDays.map((day) => {+ const date = new Date(year, month, day);+ const isToday =+ date.getDate() === new Date().getDate() &&+ date.getMonth() === new Date().getMonth() &&+ date.getFullYear() === new Date().getFullYear();+ const dayEvents = getEventsForDate(date);++ return (+ <DateCell+ key={`current-${day}`}+ day={day}+ isToday={isToday}+ events={dayEvents}+ onEventClick={onEventClick}+ moreText={t('schedule.more')}+ />+ );+ })}++ {/* Next month dates */}+ {nextMonthDays.map((day, index) => (+ <div+ key={`next-${index}`}+ className="border-border! border-r border-b p-2 text-muted-foreground/50"+ >+ <div className="text-sm">{day}</div>+ </div>+ ))}+ </div>+ </div>+ </div>+ );+}diff --git a/examples/web_ui/frontend/src/pages/schedule/create-schedule-dialog.tsx b/examples/web_ui/frontend/src/pages/schedule/create-schedule-dialog.tsxnew file mode 100644index 000000000..a14d503eb--- /dev/null+++ b/examples/web_ui/frontend/src/pages/schedule/create-schedule-dialog.tsx@@ -0,0 +1,342 @@+import { format } from 'date-fns';+import { ChevronDownIcon } from 'lucide-react';+import * as React from 'react';++import type { ChatModelConfig, PermissionMode } from '@/api';+import { LlmSelect } from '@/components/select/LlmSelect';+import { PermissionModeSelect } from '@/components/select/PermissionModeSelect';+import { TimezoneSelect } from '@/components/select/TimezoneSelect';+import { Button } from '@/components/ui/button';+import { Calendar } from '@/components/ui/calendar';+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from '@/components/ui/dialog';+import { Field, FieldGroup, FieldLabel } from '@/components/ui/field';+import { Input } from '@/components/ui/input';+import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from '@/components/ui/select';+import { Switch } from '@/components/ui/switch';+import { Textarea } from '@/components/ui/textarea';+import { useAgents } from '@/hooks/useAgents';+import { useSchedules } from '@/hooks/useSchedules';+import { useTranslation } from '@/i18n/useI18n';++interface Props {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ onCreated?: () => void;+}++type FreqType = 'once' | 'daily' | 'weekly' | 'monthly';++function getDefaultForm() {+ const now = new Date();+ const hh = String(now.getHours()).padStart(2, '0');+ const mm = String(now.getMinutes()).padStart(2, '0');+ return {+ name: '',+ description: '',+ freq: 'daily' as FreqType,+ date: now,+ time: `${hh}:${mm}`,+ endDate: undefined as Date | undefined,+ agentId: '',+ chatModelConfig: null as ChatModelConfig | null,+ permissionMode: 'dont_ask' as PermissionMode,+ timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,+ stateful: false,+ };+}++function buildCronExpr(freq: FreqType, time: string, date: Date | undefined): string {+ const [h, m] = time.split(':').map(Number);+ switch (freq) {+ case 'daily':+ return `${m} ${h} * * *`;+ case 'weekly': {+ const weekday = date ? date.getDay() : 1;+ return `${m} ${h} * * ${weekday}`;+ }+ case 'monthly': {+ const monthDay = date ? date.getDate() : 1;+ return `${m} ${h} ${monthDay} * *`;+ }+ default:+ return '';+ }+}++function DatePickerButton({+ date,+ onSelect,+ placeholder,+ disabled,+}: {+ date: Date | undefined;+ onSelect: (d: Date | undefined) => void;+ placeholder: string;+ disabled?: boolean;+}) {+ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button+ variant="outline"+ disabled={disabled}+ size="sm"+ className="w-32 justify-between font-normal"+ >+ {date ? format(date, 'PPP') : placeholder}+ <ChevronDownIcon className="text-muted-foreground opacity-50" />+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-auto p-0" align="start">+ <Calendar+ mode="single"+ selected={date}+ onSelect={onSelect}+ captionLayout="dropdown"+ />+ </PopoverContent>+ </Popover>+ );+}++export function CreateScheduleDialog({ open, onOpenChange, onCreated }: Props) {+ const { t } = useTranslation();+ const { create } = useSchedules();+ const { agents } = useAgents();+ const [form, setForm] = React.useState(getDefaultForm);+ const [loading, setLoading] = React.useState(false);+ const [error, setError] = React.useState('');++ React.useEffect(() => {+ if (open) {+ setForm(getDefaultForm());+ setError('');+ }+ }, [open]);++ React.useEffect(() => {+ if (agents.length > 0 && !form.agentId) {+ setForm((prev) => ({ ...prev, agentId: agents[0].id }));+ }+ }, [agents, form.agentId]);++ const set = <K extends keyof ReturnType<typeof getDefaultForm>>(+ key: K,+ value: ReturnType<typeof getDefaultForm>[K],+ ) => setForm((prev) => ({ ...prev, [key]: value }));++ const isValid =+ form.name.trim() && !!form.date && !!form.time && !!form.agentId && !!form.chatModelConfig;++ const handleSubmit = async () => {+ setError('');+ if (!isValid) return;+ setLoading(true);+ try {+ let cronExpression: string;++ const d = new Date(form.date!);+ const [h, m] = form.time.split(':').map(Number);+ d.setHours(h, m, 0, 0);++ if (form.freq === 'once') {+ cronExpression = `${m} ${h} ${d.getDate()} ${d.getMonth() + 1} *`;+ } else {+ cronExpression = buildCronExpr(form.freq, form.time, form.date);+ }++ await create({+ name: form.name.trim(),+ description: form.description.trim(),+ cron_expression: cronExpression,+ timezone: form.timezone,+ agent_id: form.agentId,+ chat_model_config: form.chatModelConfig!,+ enabled: true,+ stateful: form.stateful,+ permission_mode: form.permissionMode,+ });+ onCreated?.();+ onOpenChange(false);+ } catch (e) {+ setError(String(e));+ } finally {+ setLoading(false);+ }+ };++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="w-[560px] max-w-[560px]">+ <DialogHeader>+ <DialogTitle>{t('schedule.createSchedule.title')}</DialogTitle>+ <DialogDescription className="tracking-tight">+ {t('schedule.createSchedule.description')}+ </DialogDescription>+ </DialogHeader>++ <div className="no-scrollbar -mx-4 max-h-[75vh] overflow-y-auto px-4">+ <FieldGroup className="[&>[data-orientation=horizontal]>:last-child]:w-48">+ <Field>+ <FieldLabel>{t('common.name')}</FieldLabel>+ <Input+ className="text-sm h-8"+ value={form.name}+ onChange={(e) => set('name', e.target.value)}+ placeholder={t('schedule.createSchedule.namePlaceholder')}+ />+ </Field>++ <Field>+ <FieldLabel>{t('schedule.createSchedule.descriptionLabel')}</FieldLabel>+ <Textarea+ value={form.description}+ onChange={(e) => set('description', e.target.value)}+ placeholder={t('schedule.createSchedule.descriptionPlaceholder')}+ className="min-h-[150px]"+ />+ </Field>++ <div className="flex gap-3">+ <Field className="flex-1">+ <FieldLabel>{t('common.date')}</FieldLabel>+ <DatePickerButton+ date={form.date}+ onSelect={(d) => d && set('date', d)}+ placeholder={t('schedule.pickDate')}+ />+ </Field>+ <Field className="w-48">+ <FieldLabel>{t('common.time')}</FieldLabel>+ <Input+ type="time"+ value={form.time}+ onChange={(e) => set('time', e.target.value)}+ className="max-h-7 h-7 text-sm appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"+ />+ </Field>+ </div>++ <Field orientation={'horizontal'}>+ <FieldLabel>{t('schedule.timezone')}</FieldLabel>+ <TimezoneSelect+ className={''}+ value={form.timezone}+ onChange={(v) => set('timezone', v)}+ />+ </Field>++ <Field orientation={'horizontal'}>+ <FieldLabel>{t('schedule.frequency')}</FieldLabel>+ <Select+ value={form.freq}+ onValueChange={(v) => set('freq', v as FreqType)}+ >+ <SelectTrigger size="sm">+ <SelectValue />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="once">{t('schedule.freqOnce')}</SelectItem>+ <SelectItem value="daily">{t('schedule.freqDaily')}</SelectItem>+ <SelectItem value="weekly">+ {t('schedule.freqWeekly')}+ </SelectItem>+ <SelectItem value="monthly">+ {t('schedule.freqMonthly')}+ </SelectItem>+ </SelectContent>+ </Select>+ </Field>++ <Field orientation={'horizontal'}>+ <FieldLabel+ className={form.freq === 'once' ? 'text-muted-foreground' : ''}+ >+ {t('schedule.endAt')}+ </FieldLabel>+ <DatePickerButton+ date={form.freq === 'once' ? undefined : form.endDate}+ onSelect={(d) => set('endDate', d)}+ placeholder={t('schedule.pickDate')}+ disabled={form.freq === 'once'}+ />+ </Field>++ <Field orientation={'horizontal'}>+ <FieldLabel>{t('common.agent')}</FieldLabel>+ <Select value={form.agentId} onValueChange={(v) => set('agentId', v)}>+ <SelectTrigger className="w-full" size="sm">+ <SelectValue placeholder={t('common.selectAgent')} />+ </SelectTrigger>+ <SelectContent>+ {agents.map((agent) => (+ <SelectItem key={agent.id} value={agent.id}>+ {agent.data.name}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </Field>++ <Field orientation={'horizontal'}>+ <FieldLabel>{t('common.model')}</FieldLabel>+ <LlmSelect+ value={form.chatModelConfig}+ onChange={(v) => set('chatModelConfig', v)}+ />+ </Field>++ <Field orientation={'horizontal'}>+ <FieldLabel>{t('schedule.permissionMode')}</FieldLabel>+ <PermissionModeSelect+ className="w-full"+ value={form.permissionMode}+ onChange={(v) => set('permissionMode', v)}+ />+ </Field>++ <Field>+ <div className="flex flex-row items-center justify-between">+ <div className="flex flex-col gap-y-0.5">+ <FieldLabel>{t('schedule.stateful')}</FieldLabel>+ <span className="text-xs text-muted-foreground">+ {t('schedule.statefulDesc')}+ </span>+ </div>+ <Switch+ checked={form.stateful}+ onCheckedChange={(v) => set('stateful', v)}+ />+ </div>+ </Field>++ {error && <p className="text-sm text-destructive">{error}</p>}+ </FieldGroup>+ </div>++ <DialogFooter>+ <Button size="sm" variant="outline" onClick={() => onOpenChange(false)}>+ {t('common.cancel')}+ </Button>+ <Button size="sm" onClick={handleSubmit} disabled={loading || !isValid}>+ {t('common.create')}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+}diff --git a/examples/web_ui/frontend/src/pages/schedule/empty-state.tsx b/examples/web_ui/frontend/src/pages/schedule/empty-state.tsxnew file mode 100644index 000000000..7a655768c--- /dev/null+++ b/examples/web_ui/frontend/src/pages/schedule/empty-state.tsx@@ -0,0 +1,46 @@+import { Calendar } from 'lucide-react';+import type { ReactNode } from 'react';++import {+ Empty,+ EmptyContent,+ EmptyDescription,+ EmptyHeader,+ EmptyMedia,+ EmptyTitle,+} from '@/components/ui/empty';+import { useTranslation } from '@/i18n/useI18n';++interface EmptyStateProps {+ title?: string;+ description?: string;+ action?: ReactNode;+}++/**+ * Empty state component for schedule page+ *+ * @param root0 - Component props+ * @param root0.title - Title text+ * @param root0.description - Description text+ * @param root0.action - Action element (e.g., button)+ * @returns EmptyState component+ */+export function EmptyState({ title, description, action }: EmptyStateProps) {+ const { t } = useTranslation();++ return (+ <Empty className="size-full">+ <EmptyHeader>+ <EmptyMedia variant="icon">+ <Calendar />+ </EmptyMedia>+ <EmptyTitle>{title || t('schedule.noSchedules')}</EmptyTitle>+ <EmptyDescription>+ {description || t('schedule.noSchedulesDescription')}+ </EmptyDescription>+ </EmptyHeader>+ <EmptyContent>{action}</EmptyContent>+ </Empty>+ );+}diff --git a/examples/web_ui/frontend/src/pages/schedule/event.tsx b/examples/web_ui/frontend/src/pages/schedule/event.tsxnew file mode 100644index 000000000..9a3083ab7--- /dev/null+++ b/examples/web_ui/frontend/src/pages/schedule/event.tsx@@ -0,0 +1,9 @@+export interface ScheduleEvent {+ id: string;+ title: string;+ date: string; // ISO format: YYYY-MM-DD+ time: string; // 24-hour format: HH:mm+ content: string;+ location?: string;+ attendees?: string[];+}diff --git a/examples/web_ui/frontend/src/pages/schedule/index.tsx b/examples/web_ui/frontend/src/pages/schedule/index.tsxnew file mode 100644index 000000000..78d8faf11--- /dev/null+++ b/examples/web_ui/frontend/src/pages/schedule/index.tsx@@ -0,0 +1,132 @@+import { CronExpressionParser } from 'cron-parser';+import { Calendar, List, Plus } from 'lucide-react';+import * as React from 'react';++import type { ScheduleEvent } from './event';+import type { ScheduleRecord } from '@/api';+import { Button } from '@/components/ui/button';+import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';+import { useSchedules } from '@/hooks/useSchedules';+import { useTranslation } from '@/i18n/useI18n';+import { CalendarTabPage } from '@/pages/schedule/calendar-tab-page';+import { CreateScheduleDialog } from '@/pages/schedule/create-schedule-dialog';+import { ListTabPage } from '@/pages/schedule/list-tab-page';+import { ScheduleDetailDrawer } from '@/pages/schedule/schedule-detail-drawer';++function expandScheduleToEvents(+ schedule: ScheduleRecord,+ rangeStart: Date,+ rangeEnd: Date,+): ScheduleEvent[] {+ const events: ScheduleEvent[] = [];+ const { data } = schedule;+ try {+ const interval = CronExpressionParser.parse(data.cron_expression, {+ currentDate: rangeStart,+ endDate: rangeEnd,+ });+ const startTs = new Date(data.started_at).getTime();+ const endTs = data.ended_at ? new Date(data.ended_at).getTime() : null;+ while (interval.hasNext()) {+ const date = interval.next().toDate();+ const ts = date.getTime();+ if (ts < startTs) continue;+ if (endTs && ts > endTs) break;+ const localDate = `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;+ const localTime = `${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}`;+ events.push({+ id: `${schedule.id}:${ts}`,+ title: data.name,+ date: localDate,+ time: localTime,+ content: data.description,+ });+ }+ } catch {+ // invalid cron expr — skip+ }+ return events;+}++export function SchedulePage() {+ const { t } = useTranslation();+ const { schedules, remove, refetch } = useSchedules();+ const [viewMode, setViewMode] = React.useState<'calendar' | 'list'>('calendar');+ const [currentDate, setCurrentDate] = React.useState(new Date());+ const [selectedSchedule, setSelectedSchedule] = React.useState<ScheduleRecord | null>(null);+ const [isCreateOpen, setIsCreateOpen] = React.useState(false);++ const rangeStart = React.useMemo(+ () => new Date(currentDate.getFullYear(), currentDate.getMonth(), 1),+ [currentDate],+ );+ const rangeEnd = React.useMemo(+ () => new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0, 23, 59, 59),+ [currentDate],+ );++ const events = React.useMemo(() => {+ return schedules+ .filter((s) => s.data.enabled)+ .flatMap((s) => expandScheduleToEvents(s, rangeStart, rangeEnd));+ }, [schedules, rangeStart, rangeEnd]);++ const handleEventClick = (event: ScheduleEvent) => {+ const scheduleId = event.id.split(':')[0];+ const schedule = schedules.find((s) => s.id === scheduleId);+ if (schedule) setSelectedSchedule(schedule);+ };++ return (+ <div className="w-full h-full flex flex-col bg-sidebar overflow-hidden">+ <div className="flex items-center justify-between p-4 flex-shrink-0">+ <span className="text-2xl font-semibold">{t('common.schedule')}</span>+ <div className="flex items-center gap-2">+ <Button size="icon-sm" onClick={() => setIsCreateOpen(true)}>+ <Plus />+ </Button>+ <Tabs+ value={viewMode}+ onValueChange={(value) => setViewMode(value as 'calendar' | 'list')}+ >+ <TabsList>+ <TabsTrigger value="calendar" className="border-none w-[100px]">+ <Calendar className="h-4 w-4" />+ <span>{t('schedule.calendar')}</span>+ </TabsTrigger>+ <TabsTrigger value="list" className="border-none w-[100px]">+ <List className="h-4 w-4" />+ <span>{t('schedule.list')}</span>+ </TabsTrigger>+ </TabsList>+ </Tabs>+ </div>+ </div>++ <div className="flex-1 overflow-hidden rounded-t-3xl bg-white">+ {viewMode === 'calendar' && (+ <CalendarTabPage+ events={events}+ onEventClick={handleEventClick}+ currentDate={currentDate}+ onMonthChange={setCurrentDate}+ />+ )}+ {viewMode === 'list' && <ListTabPage />}+ </div>++ <ScheduleDetailDrawer+ schedule={selectedSchedule}+ open={!!selectedSchedule}+ onOpenChange={(open) => !open && setSelectedSchedule(null)}+ onDelete={remove}+ />++ <CreateScheduleDialog+ open={isCreateOpen}+ onOpenChange={setIsCreateOpen}+ onCreated={refetch}+ />+ </div>+ );+}diff --git a/examples/web_ui/frontend/src/pages/schedule/list-tab-page.tsx b/examples/web_ui/frontend/src/pages/schedule/list-tab-page.tsxnew file mode 100644index 000000000..1d0aad36f--- /dev/null+++ b/examples/web_ui/frontend/src/pages/schedule/list-tab-page.tsx@@ -0,0 +1,141 @@+import { CronExpressionParser } from 'cron-parser';+import { format } from 'date-fns';+import { CalendarIcon } from 'lucide-react';+import * as React from 'react';+import { type DateRange } from 'react-day-picker';++import type { ScheduleRecord } from '@/api';+import { Button } from '@/components/ui/button';+import { Calendar } from '@/components/ui/calendar';+import { Field } from '@/components/ui/field';+import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';+import { useSchedules } from '@/hooks/useSchedules';+import { useTranslation } from '@/i18n/useI18n';+import { EmptyState } from '@/pages/schedule/empty-state';+import { ScheduleCard } from '@/pages/schedule/schedule-card';+import { ScheduleDetailDrawer } from '@/pages/schedule/schedule-detail-drawer';++function scheduleHasOccurrencesInRange(+ schedule: ScheduleRecord,+ rangeStart: Date,+ rangeEnd: Date,+): boolean {+ const { data } = schedule;+ try {+ const interval = CronExpressionParser.parse(data.cron_expression, {+ currentDate: rangeStart,+ endDate: rangeEnd,+ });++ const startTs = new Date(data.started_at).getTime();+ const endTs = data.ended_at ? new Date(data.ended_at).getTime() : null;++ while (interval.hasNext()) {+ const date = interval.next().toDate();+ const ts = date.getTime();++ if (ts < startTs) continue;+ if (endTs && ts > endTs) break;++ return true;+ }++ return false;+ } catch {+ return true;+ }+}++export function ListTabPage() {+ const { t } = useTranslation();+ const { schedules, loading, remove } = useSchedules();+ const [selectedSchedule, setSelectedSchedule] = React.useState<ScheduleRecord | null>(null);+ const [dateRange, setDateRange] = React.useState<DateRange | undefined>(undefined);++ const filteredSchedules = React.useMemo(() => {+ if (!dateRange?.from) {+ return schedules;+ }++ const rangeStart = dateRange.from;+ const rangeEnd = dateRange.to || dateRange.from;++ return schedules.filter((schedule) =>+ scheduleHasOccurrencesInRange(schedule, rangeStart, rangeEnd),+ );+ }, [schedules, dateRange]);++ if (loading) {+ return (+ <div className="flex items-center justify-center h-full">+ <div className="text-muted-foreground">{t('common.loading')}</div>+ </div>+ );+ }++ return (+ <div className="flex flex-col size-full">+ <div className="flex flex-row w-full p-4 justify-between">+ <Field className="flex flex-row w-fit">+ <Popover>+ <PopoverTrigger asChild>+ <Button+ variant="outline"+ id="date-picker-range"+ className="justify-start px-2.5 font-normal"+ size="sm"+ >+ <CalendarIcon />+ {dateRange?.from ? (+ dateRange.to ? (+ <>+ {format(dateRange.from, 'LLL dd, y')} -{' '}+ {format(dateRange.to, 'LLL dd, y')}+ </>+ ) : (+ format(dateRange.from, 'LLL dd, y')+ )+ ) : (+ <span className="text-muted-foreground">+ {t('schedule.pickDate')}+ </span>+ )}+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-auto p-0" align="start">+ <Calendar+ mode="range"+ defaultMonth={dateRange?.from}+ selected={dateRange}+ onSelect={setDateRange}+ numberOfMonths={2}+ />+ </PopoverContent>+ </Popover>+ </Field>+ </div>+ <div className="size-full overflow-y-auto p-4">+ {filteredSchedules.length === 0 ? (+ <EmptyState />+ ) : (+ <div className="space-y-3">+ {filteredSchedules.map((schedule) => (+ <ScheduleCard+ key={schedule.id}+ schedule={schedule}+ onClick={() => setSelectedSchedule(schedule)}+ />+ ))}+ </div>+ )}+ </div>++ <ScheduleDetailDrawer+ schedule={selectedSchedule}+ open={!!selectedSchedule}+ onOpenChange={(open) => !open && setSelectedSchedule(null)}+ onDelete={remove}+ />+ </div>+ );+}diff --git a/examples/web_ui/frontend/src/pages/schedule/schedule-card.tsx b/examples/web_ui/frontend/src/pages/schedule/schedule-card.tsxnew file mode 100644index 000000000..c47b1a4ba--- /dev/null+++ b/examples/web_ui/frontend/src/pages/schedule/schedule-card.tsx@@ -0,0 +1,50 @@+import { Pause, Calendar, ArrowRight, Bot, ClipboardClock, BotOff } from 'lucide-react';++import { parseCronExpression, getFrequencyLabel } from './schedule-utils';+import type { ScheduleRecord } from '@/api';+import { Badge } from '@/components/ui/badge';+import { Item, ItemContent, ItemDescription, ItemMedia, ItemTitle } from '@/components/ui/item';+import { useTranslation } from '@/i18n/useI18n';++interface ScheduleCardProps {+ schedule: ScheduleRecord;+ onClick: () => void;+}++export function ScheduleCard({ schedule, onClick }: ScheduleCardProps) {+ const { t } = useTranslation();+ const { data } = schedule;+ const parsed = parseCronExpression(data.cron_expression, data.started_at);++ return (+ <Item className="cursor-pointer hover:shadow-md" variant="outline" onClick={onClick}>+ <ItemMedia variant="icon">{data.enabled ? <Bot /> : <BotOff />}</ItemMedia>+ <ItemContent>+ <ItemTitle className="font-[550] truncate max-w-full">{data.name}</ItemTitle>+ <ItemDescription className="flex gap-x-2 items-center text-xs truncate overflow-hidden">+ {!data.enabled && (+ <Badge variant="secondary" className="gap-1">+ <Pause className="h-3 w-3" />+ {t('common.disabled')}+ </Badge>+ )}+ <Badge variant="link" className="pl-0">+ <Calendar data-icon="inline-start" />+ {new Date(data.started_at).toLocaleDateString()}+ {data.ended_at && (+ <div className="flex items-center gap-1">+ <ArrowRight className="size-3 text-muted-foreground" />+ {new Date(data.ended_at).toLocaleDateString()}+ </div>+ )}+ <div>{parsed.time}</div>+ </Badge>+ <Badge variant="link">+ <ClipboardClock data-icon="inline-start" />+ {getFrequencyLabel(parsed, t)}+ </Badge>+ </ItemDescription>+ </ItemContent>+ </Item>+ );+}diff --git a/examples/web_ui/frontend/src/pages/schedule/schedule-detail-drawer.tsx b/examples/web_ui/frontend/src/pages/schedule/schedule-detail-drawer.tsxnew file mode 100644index 000000000..4313bb321--- /dev/null+++ b/examples/web_ui/frontend/src/pages/schedule/schedule-detail-drawer.tsx@@ -0,0 +1,217 @@+import { Trash2 } from 'lucide-react';+import * as React from 'react';+import { useNavigate } from 'react-router-dom';++import { parseCronExpression, getFrequencyLabel } from './schedule-utils';+import type { ScheduleRecord, SessionRecord } from '@/api';+import { scheduleApi } from '@/api';+import { StatusBadge } from '@/components/badge/StatusBadge';+import { DeleteDialog } from '@/components/dialog/DeleteDialog';+import { Button } from '@/components/ui/button';+import {+ Drawer,+ DrawerContent,+ DrawerDescription,+ DrawerFooter,+ DrawerHeader,+ DrawerTitle,+} from '@/components/ui/drawer';+import { Separator } from '@/components/ui/separator';+import { useAgents } from '@/hooks/useAgents';+import { useTranslation } from '@/i18n/useI18n';++interface ScheduleDetailDrawerProps {+ schedule: ScheduleRecord | null;+ open: boolean;+ onOpenChange: (open: boolean) => void;+ onDelete: (scheduleId: string) => Promise<void>;+}++export function ScheduleDetailDrawer({+ schedule,+ open,+ onOpenChange,+ onDelete,+}: ScheduleDetailDrawerProps) {+ const { t } = useTranslation();+ const { agents } = useAgents();+ const navigate = useNavigate();+ const [openDeleteDialog, setOpenDeleteDialog] = React.useState(false);+ const [sessions, setSessions] = React.useState<SessionRecord[]>([]);+ const [sessionsLoading, setSessionsLoading] = React.useState(false);++ React.useEffect(() => {+ if (!schedule || !open) {+ setSessions([]);+ return;+ }+ setSessionsLoading(true);+ scheduleApi+ .listSessions(schedule.id)+ .then((res) => setSessions(res.sessions))+ .catch(() => setSessions([]))+ .finally(() => setSessionsLoading(false));+ }, [schedule, open]);++ const handleDelete = async () => {+ if (!schedule) return;+ await onDelete(schedule.id);+ onOpenChange(false);+ };++ if (!schedule) return null;++ const { data } = schedule;+ const parsed = parseCronExpression(data.cron_expression, data.started_at);+ const agentName =+ agents.find((a) => a.id === schedule.agent_id)?.data.name ?? schedule.agent_id;++ const weekdayNames = [+ t('schedule.sunday'),+ t('schedule.monday'),+ t('schedule.tuesday'),+ t('schedule.wednesday'),+ t('schedule.thursday'),+ t('schedule.friday'),+ t('schedule.saturday'),+ ];++ let triggerTimeDisplay = parsed.time;+ switch (parsed.frequency) {+ case 'weekly':+ triggerTimeDisplay = `${weekdayNames[parsed.weekday ?? 0]} ${parsed.time}`;+ break;+ case 'monthly':+ triggerTimeDisplay = `${parsed.dayOfMonth ?? 1}${t('schedule.dayOfMonthSuffix')} ${parsed.time}`;+ break;+ case 'once':+ triggerTimeDisplay = parsed.date+ ? `${parsed.date.toLocaleDateString()} ${parsed.time}`+ : parsed.time;+ break;+ }+ triggerTimeDisplay += ` (${data.timezone})`;++ const scheduleInfoItems = [+ {+ title: t('schedule.frequency'),+ content: getFrequencyLabel(parsed, t),+ },+ {+ title: t('schedule.triggerTime'),+ content: triggerTimeDisplay,+ },+ {+ title: t('schedule.createdAt'),+ content: new Date(schedule.created_at).toLocaleString(),+ },+ {+ title: t('schedule.end_at'),+ content: data.ended_at ? new Date(data.ended_at).toLocaleString() : t('common.noData'),+ },+ {+ title: t('common.agent'),+ content: agentName,+ },+ {+ title: t('schedule.permissionMode'),+ content: data.permission_mode,+ },+ {+ title: t('schedule.stateful'),+ content: data.stateful ? t('common.yes') : t('common.no'),+ },+ ];++ return (+ <>+ <Drawer open={open} onOpenChange={onOpenChange} direction="right">+ <DrawerContent className="max-h-full h-full min-w-[30rem] ml-auto border-none ring-none! shadow-none!">+ <DrawerHeader>+ <DrawerTitle>{data.name}</DrawerTitle>+ <DrawerDescription>{data.description}</DrawerDescription>+ </DrawerHeader>+ <div className="flex flex-1 flex-col overflow-hidden gap-y-4 p-4">+ <div className="flex flex-col space-y-2">+ <h3 className="text-sm font-semibold text-secondary-foreground">+ {t('common.information')}+ </h3>+ <div className="flex flex-col gap-2">+ {scheduleInfoItems.map((item) => (+ <div+ key={item.title}+ className="flex flex-row justify-between text-xs px-2.5 py-2 font-mono rounded-md ring ring-border items-center"+ >+ <span className="font-medium">+ {item.title.toUpperCase()}+ </span>+ <span className="ml-auto text-muted-foreground">+ {item.content}+ </span>+ </div>+ ))}+ </div>+ </div>+ <Separator />+ <div className="space-y-2 flex flex-col flex-1 overflow-hidden">+ <h3 className="text-sm font-semibold">+ {t('schedule.executionHistory')}+ </h3>+ <div className="flex-1 overflow-y-auto space-y-1">+ {sessionsLoading && (+ <div className="text-center py-4 text-muted-foreground text-sm">+ {t('common.loading')}+ </div>+ )}+ {!sessionsLoading && sessions.length === 0 && (+ <div className="text-center py-4 text-muted-foreground text-sm">+ {t('common.noData')}+ </div>+ )}+ {!sessionsLoading &&+ sessions.map((session) => (+ <div+ key={session.id}+ className="flex flex-row justify-between text-xs px-2.5 py-2 font-mono rounded-md ring ring-border items-center cursor-pointer hover:bg-muted/50 transition-colors"+ onClick={() => {+ navigate(+ `/chat/${schedule.agent_id}/${session.id}`,+ );+ onOpenChange(false);+ }}+ >+ <span className="text-muted-foreground">+ {new Date(session.created_at).toLocaleString()}+ </span>+ <StatusBadge status="completed" />+ </div>+ ))}+ </div>+ </div>+ </div>+ <DrawerFooter>+ <Button+ variant="destructive"+ size="sm"+ onClick={(e) => {+ e.preventDefault();+ setOpenDeleteDialog(true);+ }}+ >+ <Trash2 className="size-3" />+ {t('common.delete')}+ </Button>+ </DrawerFooter>+ </DrawerContent>+ </Drawer>++ <DeleteDialog+ open={openDeleteDialog}+ onOpenChange={setOpenDeleteDialog}+ title={t('schedule.deleteSchedule.title')}+ description={t('schedule.deleteSchedule.description')}+ onConfirm={handleDelete}+ />+ </>+ );+}diff --git a/examples/web_ui/frontend/src/pages/schedule/schedule-utils.ts b/examples/web_ui/frontend/src/pages/schedule/schedule-utils.tsnew file mode 100644index 000000000..db9155e67--- /dev/null+++ b/examples/web_ui/frontend/src/pages/schedule/schedule-utils.ts@@ -0,0 +1,50 @@+export interface ParsedSchedule {+ frequency: 'daily' | 'weekly' | 'monthly' | 'once' | 'custom';+ time: string; // HH:mm format+ weekday?: number; // 0-6 for weekly+ dayOfMonth?: number; // 1-31 for monthly+ date?: Date; // for once+}++export function parseCronExpression(cronExpression: string, startedAt: string): ParsedSchedule {+ const parts = cronExpression.trim().split(/\s+/);+ if (parts.length !== 5) {+ return { frequency: 'custom', time: '00:00' };+ }++ const [minute, hour, day, month, weekday] = parts;+ const time = `${hour.padStart(2, '0')}:${minute.padStart(2, '0')}`;++ if (day === '*' && month === '*' && weekday === '*') {+ return { frequency: 'daily', time };+ }++ if (day === '*' && month === '*' && weekday !== '*') {+ return { frequency: 'weekly', time, weekday: parseInt(weekday) };+ }++ if (day !== '*' && month === '*' && weekday === '*') {+ return { frequency: 'monthly', time, dayOfMonth: parseInt(day) };+ }++ if (day !== '*' && month !== '*') {+ return { frequency: 'once', time, date: new Date(startedAt) };+ }++ return { frequency: 'custom', time };+}++export function getFrequencyLabel(parsed: ParsedSchedule, t: (key: string) => string): string {+ switch (parsed.frequency) {+ case 'daily':+ return t('schedule.freqDaily');+ case 'weekly':+ return t('schedule.freqWeekly');+ case 'monthly':+ return t('schedule.freqMonthly');+ case 'once':+ return t('schedule.freqOnce');+ default:+ return 'Custom';+ }+}diff --git a/examples/web_ui/frontend/src/pages/setup/index.tsx b/examples/web_ui/frontend/src/pages/setup/index.tsxnew file mode 100644index 000000000..6997409c1--- /dev/null+++ b/examples/web_ui/frontend/src/pages/setup/index.tsx@@ -0,0 +1,83 @@+import { useState } from 'react';++import { Button } from '@/components/ui/button.tsx';+import {+ Card,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+} from '@/components/ui/card.tsx';+import { Field, FieldDescription, FieldGroup, FieldLabel } from '@/components/ui/field.tsx';+import { Input } from '@/components/ui/input.tsx';+import { useTranslation } from '@/i18n/useI18n.ts';+import { cn } from '@/lib/utils.ts';++interface Props {+ onComplete: () => void;+ className?: string;+}++export const SetupPage = ({ onComplete, className }: Props) => {+ const { t } = useTranslation();+ const [url, setUrl] = useState(() => localStorage.getItem('server_url') ?? '');+ const [username, setUsername] = useState(() => localStorage.getItem('username') ?? '');++ const handleSubmit = (e: React.FormEvent) => {+ e.preventDefault();+ localStorage.setItem('server_url', url);+ localStorage.setItem('username', username);+ onComplete();+ };++ return (+ <div className="flex items-center justify-center h-full">+ <div className={cn('flex flex-col gap-6 w-full max-w-sm', className)}>+ <Card>+ <CardHeader>+ <CardTitle>{t('setup.title')}</CardTitle>+ <CardDescription>{t('setup.description')}</CardDescription>+ </CardHeader>+ <CardContent>+ <form onSubmit={handleSubmit}>+ <FieldGroup>+ <Field>+ <FieldLabel htmlFor="server-url-input">+ {t('setup.serverUrl')}+ </FieldLabel>+ <Input+ id="server-url-input"+ type="url"+ placeholder={t('setup.serverUrlPlaceholder')}+ value={url}+ onChange={(e) => setUrl(e.target.value)}+ required+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="username-input">+ {t('setup.username')}+ </FieldLabel>+ <Input+ id="username-input"+ type="text"+ placeholder={t('setup.usernamePlaceholder')}+ value={username}+ onChange={(e) => setUsername(e.target.value)}+ required+ />+ </Field>+ <Field>+ <Button type="submit" className="w-full">+ {t('setup.submit')}+ </Button>+ </Field>+ </FieldGroup>+ </form>+ </CardContent>+ </Card>+ <FieldDescription className="px-6 text-center">{t('setup.hint')}</FieldDescription>+ </div>+ </div>+ );+};diff --git a/examples/web_ui/frontend/src/utils/common.ts b/examples/web_ui/frontend/src/utils/common.tsnew file mode 100644index 000000000..965647b88--- /dev/null+++ b/examples/web_ui/frontend/src/utils/common.ts@@ -0,0 +1,117 @@+/**+ * Copy a string to the system clipboard.+ *+ * @param text The text content to copy.+ * @returns A promise that resolves to true if the copy succeeds; false otherwise.+ */+export const copyToClipboard = async (text: string): Promise<boolean> => {+ try {+ await navigator.clipboard.writeText(text);+ return true;+ } catch (err) {+ console.error('Failed to copy text: ', err);+ return false;+ }+};++/**+ * Format a number to a human-readable string with commas and suffixes+ * @param num - The number to format+ * @returns Formatted string (e.g., "1,000", "10.2k", "1.5M")+ */+export function formatNumber(num: number): string {+ if (num < 1000) {+ return num.toLocaleString();+ }++ const units = [+ { value: 1e9, suffix: 'B' },+ { value: 1e6, suffix: 'M' },+ { value: 1e3, suffix: 'k' },+ ];++ for (const { value, suffix } of units) {+ if (num >= value) {+ const formatted = num / value;+ // Keep 1-2 decimal places, remove trailing zeros+ const decimals = formatted >= 10 ? 1 : 2;+ return formatted.toFixed(decimals).replace(/\.0+$/, '') + suffix;+ }+ }++ return num.toLocaleString();+}++/**+ * Format a duration in seconds into a human-readable string with appropriate units.+ * Converts seconds to milliseconds for values less than 1 second.+ *+ * @param seconds - The duration in seconds to format+ * @returns Formatted string with unit (e.g., "500.00ms" or "2.50s")+ */+export const formatDurationWithUnit = (seconds: number): string => {+ if (seconds < 1) {+ return `${(seconds * 1000).toFixed(2)}ms`;+ }+ return `${seconds.toFixed(2)}s`;+};++/**+ * Format a duration in seconds into a numeric value with appropriate scaling.+ * Converts seconds to milliseconds for values less than 1 second.+ *+ * @param seconds - The duration in seconds to format+ * @returns Formatted number (in milliseconds if < 1 second, otherwise in seconds)+ */+export const formatDuration = (seconds: number): number => {+ if (seconds < 1) {+ return parseFloat((seconds * 1000).toFixed(2));+ }+ return parseFloat(seconds.toFixed(2));+};++/**+ * Format a duration in seconds into a human-readable string with appropriate units (seconds, minutes, hours).+ *+ * @param seconds - The duration in seconds to format+ * @param decimals - The number of decimal places to show (default: 1)+ * @returns Formatted string with appropriate time unit (e.g., "45.2s", "2m 30.0s", "1h 15m 30.5s")+ */+export const formatTime = (seconds: number, decimals: number = 1): string => {+ // If duration is less than 60 seconds, display in seconds with specified decimal places+ if (seconds < 60) {+ return `${seconds.toFixed(decimals)}s`;+ }+ // If duration is between 60 seconds and 1 hour, display in minutes and seconds+ else if (seconds < 3600) {+ const minutes = Math.floor(seconds / 60);+ const remainingSeconds = seconds % 60;+ // If there are no remaining seconds, only show minutes+ if (remainingSeconds === 0) {+ return `${minutes}min`;+ }+ // Otherwise, show both minutes and seconds with specified decimal places+ return `${minutes}min ${remainingSeconds.toFixed(decimals)}s`;+ }+ // If duration is 1 hour or more, display in hours, minutes, and seconds+ else {+ const hours = Math.floor(seconds / 3600);+ const minutes = Math.floor((seconds % 3600) / 60);+ const remainingSeconds = seconds % 60;++ // Only show hours if minutes and seconds are both zero+ if (minutes === 0 && remainingSeconds === 0) {+ return `${hours}h`;+ }+ // Show hours and minutes if seconds is zero+ else if (remainingSeconds === 0) {+ return `${hours}h ${minutes}min`;+ }+ // Show hours and seconds if minutes is zero+ else if (minutes === 0) {+ return `${hours}h ${remainingSeconds.toFixed(decimals)}s`;+ }+ // Show all components: hours, minutes, and seconds+ return `${hours}h ${minutes}min ${remainingSeconds.toFixed(decimals)}s`;+ }+};diff --git a/examples/web_ui/frontend/src/utils/platform.ts b/examples/web_ui/frontend/src/utils/platform.tsnew file mode 100644index 000000000..419c32990--- /dev/null+++ b/examples/web_ui/frontend/src/utils/platform.ts@@ -0,0 +1,33 @@+export type Platform = 'darwin' | 'win32' | 'linux';++/**+ * Gets the current platform (darwin, win32, or linux).+ *+ * @returns The platform identifier.+ */+export function getPlatform(): Platform {+ // Use modern userAgentData API if available+ const uaData = (navigator as Navigator & { userAgentData?: { platform: string } })+ .userAgentData;+ if (uaData?.platform) {+ const platform = uaData.platform.toLowerCase();+ if (platform.includes('mac')) return 'darwin';+ if (platform.includes('win')) return 'win32';+ return 'linux';+ }++ // Fallback to userAgent string+ const userAgent = navigator.userAgent.toLowerCase();+ if (userAgent.includes('mac')) return 'darwin';+ if (userAgent.includes('win')) return 'win32';+ return 'linux';+}++/**+ * Checks if the current platform is macOS.+ *+ * @returns True if the platform is macOS, false otherwise.+ */+export function isMac(): boolean {+ return getPlatform() === 'darwin';+}diff --git a/examples/web_ui/frontend/src/vite-env.d.ts b/examples/web_ui/frontend/src/vite-env.d.tsnew file mode 100644index 000000000..b1f45c786--- /dev/null+++ b/examples/web_ui/frontend/src/vite-env.d.ts@@ -0,0 +1,2 @@+/// <reference types="vite/client" />+/// <reference types="vite-plugin-svgr/client" />diff --git a/examples/web_ui/frontend/tsconfig.app.json b/examples/web_ui/frontend/tsconfig.app.jsonnew file mode 100644index 000000000..95f078cff--- /dev/null+++ b/examples/web_ui/frontend/tsconfig.app.json@@ -0,0 +1,31 @@+{+ "compilerOptions": {+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",+ "target": "es2023",+ "lib": ["ES2023", "DOM"],+ "module": "esnext",+ "types": ["vite/client", "vite-plugin-svgr/client"],+ "skipLibCheck": true,++ /* Bundler mode */+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "verbatimModuleSyntax": true,+ "moduleDetection": "force",+ "noEmit": true,+ "jsx": "react-jsx",++ /* Linting */+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "erasableSyntaxOnly": true,+ "noFallthroughCasesInSwitch": true,++ /* Shadcn UI */+ "baseUrl": ".",+ "paths": {+ "@/*": ["./src/*"]+ }+ },+ "include": ["src"]+}diff --git a/examples/web_ui/frontend/tsconfig.json b/examples/web_ui/frontend/tsconfig.jsonnew file mode 100644index 000000000..6c4e12ba0--- /dev/null+++ b/examples/web_ui/frontend/tsconfig.json@@ -0,0 +1,10 @@+{+ "files": [],+ "references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }],+ "compilerOptions": {+ "baseUrl": ".",+ "paths": {+ "@/*": ["./src/*"]+ }+ }+}diff --git a/examples/web_ui/frontend/tsconfig.node.json b/examples/web_ui/frontend/tsconfig.node.jsonnew file mode 100644index 000000000..6a12664e3--- /dev/null+++ b/examples/web_ui/frontend/tsconfig.node.json@@ -0,0 +1,24 @@+{+ "compilerOptions": {+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",+ "target": "es2023",+ "lib": ["ES2023"],+ "module": "esnext",+ "types": ["node"],+ "skipLibCheck": true,++ /* Bundler mode */+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "verbatimModuleSyntax": true,+ "moduleDetection": "force",+ "noEmit": true,++ /* Linting */+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "erasableSyntaxOnly": true,+ "noFallthroughCasesInSwitch": true+ },+ "include": ["vite.config.ts"]+}diff --git a/examples/web_ui/frontend/vite.config.ts b/examples/web_ui/frontend/vite.config.tsnew file mode 100644index 000000000..1b61890ec--- /dev/null+++ b/examples/web_ui/frontend/vite.config.ts@@ -0,0 +1,24 @@+import path from 'path';++import tailwindcss from '@tailwindcss/vite';+import react from '@vitejs/plugin-react';+import { defineConfig } from 'vite';+import svgr from 'vite-plugin-svgr';++export default defineConfig({+ plugins: [react(), tailwindcss(), svgr()],+ server: {+ proxy: {+ '/api': 'http://localhost:3000',+ },+ },+ resolve: {+ alias: {+ '@': path.resolve(__dirname, './src'),+ 'next/navigation': path.resolve(__dirname, './src/lib/next-navigation-shim.ts'),+ },+ },+ optimizeDeps: {+ include: ['mime-types'],+ },+});diff --git a/examples/web_ui/package.json b/examples/web_ui/package.jsonnew file mode 100644index 000000000..607a4e714--- /dev/null+++ b/examples/web_ui/package.json@@ -0,0 +1,36 @@+{+ "name": "new-studio",+ "version": "1.0.0",+ "private": true,+ "scripts": {+ "dev:frontend": "pnpm --filter frontend dev",+ "dev:backend": "pnpm --filter backend dev",+ "dev": "concurrently \"pnpm dev:frontend\" \"pnpm dev:backend\"",+ "build:frontend": "pnpm --filter frontend build",+ "build:backend": "pnpm --filter backend build",+ "build": "pnpm build:frontend && pnpm build:backend",+ "format": "prettier --write . && pnpm --filter frontend lint:fix",+ "format:check": "prettier --check . && pnpm --filter frontend lint",+ "prepare": "husky"+ },+ "lint-staged": {+ "frontend/**/*.{ts,tsx}": [+ "prettier --write",+ "cd frontend && pnpm eslint --fix"+ ],+ "backend/**/*.{ts,js}": [+ "prettier --write"+ ],+ "*.{json,css,md,html,yaml,yml}": [+ "prettier --write"+ ]+ },+ "devDependencies": {+ "concurrently": "^8.2.2",+ "eslint-config-prettier": "^10.1.8",+ "eslint-plugin-prettier": "^5.5.5",+ "husky": "^9.1.7",+ "lint-staged": "^17.0.5",+ "prettier": "^3.8.3"+ }+}diff --git a/examples/web_ui/pnpm-lock.yaml b/examples/web_ui/pnpm-lock.yamlnew file mode 100644index 000000000..46e22833a--- /dev/null+++ b/examples/web_ui/pnpm-lock.yaml@@ -0,0 +1,9207 @@+lockfileVersion: '9.0'++settings:+ autoInstallPeers: true+ excludeLinksFromLockfile: false++importers:++ .:+ devDependencies:+ concurrently:+ specifier: ^8.2.2+ version: 8.2.2+ eslint-config-prettier:+ specifier: ^10.1.8+ version: 10.1.8([email protected]([email protected]))+ eslint-plugin-prettier:+ specifier: ^5.5.5+ version: 5.5.5([email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected])+ husky:+ specifier: ^9.1.7+ version: 9.1.7+ lint-staged:+ specifier: ^17.0.5+ version: 17.0.5+ prettier:+ specifier: ^3.8.3+ version: 3.8.3++ backend:+ dependencies:+ cors:+ specifier: ^2.8.5+ version: 2.8.6+ express:+ specifier: ^4.19.2+ version: 4.22.2+ devDependencies:+ '@types/cors':+ specifier: ^2.8.17+ version: 2.8.19+ '@types/express':+ specifier: ^4.17.21+ version: 4.17.25+ '@types/node':+ specifier: ^20.14.0+ version: 20.19.41+ nodemon:+ specifier: ^3.1.4+ version: 3.1.14+ ts-node:+ specifier: ^10.9.2+ version: 10.9.2(@types/[email protected])([email protected])+ typescript:+ specifier: ^5.5.2+ version: 5.9.3++ frontend:+ dependencies:+ '@agentscope-ai/agentscope':+ specifier: ^0.0.5+ version: 0.0.5+ '@fontsource-variable/geist':+ specifier: ^5.2.8+ version: 5.2.8+ '@tailwindcss/vite':+ specifier: ^4.3.0+ class-variance-authority:+ specifier: ^0.7.1+ version: 0.7.1+ clsx:+ specifier: ^2.1.1+ version: 2.1.1+ cron-parser:+ specifier: ^5.5.0+ version: 5.5.0+ date-fns:+ specifier: ^4.1.0+ version: 4.1.0+ framer-motion:+ specifier: ^12.40.0+ i18next:+ specifier: ^26.2.0+ version: 26.2.0([email protected])+ i18next-browser-languagedetector:+ specifier: ^8.2.1+ version: 8.2.1+ lucide:+ specifier: ^1.3.0+ version: 1.3.0+ lucide-react:+ specifier: ^1.16.0+ version: 1.16.0([email protected])+ mime-types:+ specifier: ^3.0.2+ version: 3.0.2+ next-themes:+ specifier: ^0.4.6+ onborda:+ specifier: ^1.2.5+ version: 1.2.5(@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected](@babel/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ radix-ui:+ specifier: ^1.4.3+ version: 1.4.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react:+ specifier: ^19.2.6+ version: 19.2.6+ react-day-picker:+ specifier: ^10.0.1+ version: 10.0.1(@types/[email protected])([email protected])+ react-dom:+ specifier: ^19.2.6+ version: 19.2.6([email protected])+ react-i18next:+ specifier: ^17.0.8+ version: 17.0.8([email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])+ react-markdown:+ specifier: ^10.1.0+ version: 10.1.0(@types/[email protected])([email protected])+ react-router-dom:+ specifier: ^7.15.1+ remark-gfm:+ specifier: ^4.0.1+ version: 4.0.1+ shadcn:+ specifier: ^4.7.0+ sonner:+ specifier: ^2.0.7+ tailwind-merge:+ specifier: ^3.6.0+ version: 3.6.0+ tailwindcss:+ specifier: ^4.3.0+ version: 4.3.0+ tw-animate-css:+ specifier: ^1.4.0+ version: 1.4.0+ vaul:+ specifier: ^1.1.2+ version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ devDependencies:+ '@eslint/js':+ specifier: ^10.0.1+ version: 10.0.1([email protected]([email protected]))+ '@types/mime-types':+ specifier: ^3.0.1+ version: 3.0.1+ '@types/node':+ specifier: ^24.12.3+ version: 24.12.4+ '@types/react':+ specifier: ^19.2.14+ version: 19.2.14+ '@types/react-dom':+ specifier: ^19.2.3+ version: 19.2.3(@types/[email protected])+ '@vitejs/plugin-react':+ specifier: ^6.0.1+ eslint:+ specifier: ^10.3.0+ version: 10.3.0([email protected])+ eslint-plugin-import-x:+ specifier: ^4.16.2+ version: 4.16.2(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))+ eslint-plugin-react-hooks:+ specifier: ^7.1.1+ version: 7.1.1([email protected]([email protected]))+ eslint-plugin-react-refresh:+ specifier: ^0.5.2+ version: 0.5.2([email protected]([email protected]))+ globals:+ specifier: ^17.6.0+ version: 17.6.0+ typescript:+ specifier: ~6.0.2+ version: 6.0.3+ typescript-eslint:+ specifier: ^8.59.2+ vite:+ specifier: ^8.0.12+ vite-plugin-svgr:+ specifier: ^5.2.0+ version: 5.2.0([email protected])([email protected](@types/[email protected])([email protected])([email protected]))++packages:++ '@agentscope-ai/[email protected]':+ resolution: {integrity: sha512-luEpnLrTLM7bpjgZdDFAwSMDx8S7qIA0l2OM+PdDqOUBJUzkjRvlYEI8Dm+UvnWDQjmxnd6R7PFK6cJrjFPAAg==}++ '@babel/[email protected]':+ resolution: {integrity: sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-RpLYy2sb51oNLjuu1iD3bwBqCBWUzjO0ocp+iaCP/lJtb2CPLcnC2Fftw+4sAzaMELGeWTgExSKADbdo0GFVzA==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0++ '@babel/[email protected]':+ resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0++ '@babel/[email protected]':+ resolution: {integrity: sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-mq8e+laIk94/yFec3DxSjCRD2Z0TAjhVbEJY3UQrlwVo15Lmt7C2wAUbK4bjnTs4APkwsYLTahXRraQXhb1WCg==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0++ '@babel/[email protected]':+ resolution: {integrity: sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==}+ engines: {node: '>=6.0.0'}+ hasBin: true++ '@babel/[email protected]':+ resolution: {integrity: sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@babel/[email protected]':+ resolution: {integrity: sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@babel/[email protected]':+ resolution: {integrity: sha512-jppVbf8IV9iWWwWTQIxJMAJCWBuuKx71475wHwYytrRGQ2CWiDvYlADQno3tcYpS/T2UUWFQp3nVtYfK/YBQrA==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@babel/[email protected]':+ resolution: {integrity: sha512-0YWL2RFxOqEm9Efk5PvreamxPME8OyY0wM5wh5lHjF+VtVhdneCWGzZeSqzOfiobVqQaNCd2z0tQvnI9DaPWPw==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@babel/[email protected]':+ resolution: {integrity: sha512-+bQy5WOI2V6LJZpPVxY+yp66XdZ2yifu0Mc1aP5CQKgjn4QM5IN2i5fAZ4xKop47pr8rpVhiAeu+nDQa12C8+g==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@babel/[email protected]':+ resolution: {integrity: sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==}+ engines: {node: '>=6.9.0'}++ '@cfworker/[email protected]':+ resolution: {integrity: sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og==}++ '@cspotcode/[email protected]':+ resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}+ engines: {node: '>=12'}++ '@date-fns/[email protected]':+ resolution: {integrity: sha512-P5LUNhtbj6YfI3iJjw5EL9eUAG6OitD0W3fWQcpQjDRc/QIsL0tRNuO1PcDvPccWL1fSTXXdE1ds+l95DV/OFA==}++ '@dotenvx/[email protected]':+ resolution: {integrity: sha512-qlQFhHUjhRDybrinqLAD0MClVZDOrsq80O8eD5iSjz3Qa/4f3Jg7SQrOaSobrRyP1QaWIYLGtGpj2c7H0D8NUw==}+ hasBin: true++ '@ecies/[email protected]':+ resolution: {integrity: sha512-patgsRPKGkhhoBjETV4XxD0En4ui5fbX0hzayqI3M8tvNMGUoUvmyYAIWwlxBc1KX5cturfqByYdj5bYGRpN9g==}+ engines: {bun: '>=1', deno: '>=2.7.10', node: '>=16'}+ peerDependencies:+ '@noble/ciphers': ^1.0.0++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==}++ '@eslint-community/[email protected]':+ resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ peerDependencies:+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0++ '@eslint-community/[email protected]':+ resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}+ engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-eIJYKTCECbP/nsKaaruF6LW967mtbQbsw4JTtSVkUQc9MneSkbrgPJAbKl9nWr0ZeowV8BfsarBmPpBzGelA2w==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}+ peerDependencies:+ eslint: ^10.0.0+ peerDependenciesMeta:+ eslint:+ optional: true++ '@eslint/[email protected]':+ resolution: {integrity: sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==}+ peerDependencies:+ react: '>=16.8.0'+ react-dom: '>=16.8.0'++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==}++ '@fontsource-variable/[email protected]':+ resolution: {integrity: sha512-cJ6m9e+8MQ5dCYJsLylfZrgBh6KkG4bOLckB35Tr9J/EqdkEM6QllH5PxqP1dhTvFup+HtMRPuz9xOjxXJggxw==}++ '@hono/[email protected]':+ resolution: {integrity: sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==}+ engines: {node: '>=18.14.1'}+ peerDependencies:+ hono: ^4++ '@humanfs/[email protected]':+ resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==}+ engines: {node: '>=18.18.0'}++ '@humanfs/[email protected]':+ resolution: {integrity: sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==}+ engines: {node: '>=18.18.0'}++ '@humanfs/[email protected]':+ resolution: {integrity: sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==}+ engines: {node: '>=18.18.0'}++ '@humanwhocodes/[email protected]':+ resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}+ engines: {node: '>=12.22'}++ '@humanwhocodes/[email protected]':+ resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}+ engines: {node: '>=18.18'}++ '@img/[email protected]':+ resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}+ engines: {node: '>=18'}++ '@img/[email protected]':+ resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==}+ cpu: [arm64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==}+ cpu: [x64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==}+ cpu: [arm]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@img/[email protected]':+ resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@img/[email protected]':+ resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@img/[email protected]':+ resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@img/[email protected]':+ resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [wasm32]++ '@img/[email protected]':+ resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [win32]++ '@img/[email protected]':+ resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [ia32]+ os: [win32]++ '@img/[email protected]':+ resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [win32]++ '@inquirer/[email protected]':+ resolution: {integrity: sha512-doc2sWgJpbFQ64UflSVd17ibMGDuxO1yKgOgLMwavzESnXjFWJqUeG8saYosqKpHp4kWiM5x1nXvEjbpx90gzw==}+ engines: {node: '>=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0'}++ '@inquirer/[email protected]':+ resolution: {integrity: sha512-wkGPC7yJ5WJk1DJ5SX7fzk+gfj4BM8cf5dDDi71B/551xHrdsZVRJOC0WyikXd0pEsb/9cLniuE4atbsMqmFkw==}+ engines: {node: '>=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0'}+ peerDependencies:+ '@types/node': '>=18'+ peerDependenciesMeta:+ '@types/node':+ optional: true++ '@inquirer/[email protected]':+ resolution: {integrity: sha512-a4Q5BXHQAHa9eO202sTaFCHFYVB3x5fauDuThEAdZ9gfn76pSxiKU7wWcEH0N1O0XmQvNfQNU6QXpiRxmYQx+A==}+ engines: {node: '>=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0'}+ peerDependencies:+ '@types/node': '>=18'+ peerDependenciesMeta:+ '@types/node':+ optional: true++ '@inquirer/[email protected]':+ resolution: {integrity: sha512-NsSs4kzfm12lNetHwAn3GEuH317IzpwrMCbOuMIVytpjnJ90YYHNwdRgYGuKmVxwuIqSgqk3M5qqQt1cDk0tGQ==}+ engines: {node: '>=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0'}++ '@inquirer/[email protected]':+ resolution: {integrity: sha512-aetVUNeKNc/VriqXlw1NRSW0zhMBB0W4bNbWRJgzRl/3d0QNDQFfk0GO5SDdtjMZVg6o8ZKEiadd7SCCzoOn5Q==}+ engines: {node: '>=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0'}+ peerDependencies:+ '@types/node': '>=18'+ peerDependenciesMeta:+ '@types/node':+ optional: true++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}++ '@modelcontextprotocol/[email protected]':+ resolution: {integrity: sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ==}+ engines: {node: '>=18'}+ peerDependencies:+ '@cfworker/json-schema': ^4.1.1+ zod: ^3.25 || ^4.0+ peerDependenciesMeta:+ '@cfworker/json-schema':+ optional: true++ '@mswjs/[email protected]':+ resolution: {integrity: sha512-VVPPgHyQ6ShqnrmDWuxjmUIsO9gWyOZFmuOfLd9LfBGQJwZfy0gvv9pbHSJuoFNIYC7ZDX9aoFwowjcdSC4E8w==}+ engines: {node: '>=18'}++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==}++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==}+ peerDependencies:+ '@emnapi/core': ^1.7.1+ '@emnapi/runtime': ^1.7.1++ '@next/[email protected]':+ resolution: {integrity: sha512-gd8HoHN4ufj73WmR3JmVolrpJR47ILK6LouP5xElPglaVxir6e1a7VzvTvDWkOoPXT9rkkTzyCxBu4yeZfZwcw==}++ '@next/[email protected]':+ resolution: {integrity: sha512-ZJGkkcNfYgrrMkqOdZ7zoLa1TOy0qpcMfk/z4Mh/FKUz40gVO+HNQWqmLxf67Z5WB64DRp0dhEbyHfel+6sJUg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]++ '@next/[email protected]':+ resolution: {integrity: sha512-v/YLBHIY132Ced3puBJ7YJKw1lqsCrgcNo2aRJlCEyQrrCeRJlvGlnmxhPxNQI3KE3N1DN5r9TPNPvka3nq5RQ==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]++ '@next/[email protected]':+ resolution: {integrity: sha512-RPOvqlYBbcQjkz9VQQDZ2T2bARIjXZV1KFlt+V2Mr6SW/e4I9fcKsaA0hdyf2FHoTlsV2xnBd5Y912rP/1Ce6w==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@next/[email protected]':+ resolution: {integrity: sha512-URUTu1+dMkxJsPFgm+OeEvq9wf5sujw0EvgYy80TDGHTSLTnIHeqb0Eu8A3sC95IRgjejQL+kC4mw+4yPxiAXA==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@next/[email protected]':+ resolution: {integrity: sha512-DOj182mPV8G3UkrayLoREM5YEYI+Dk5wv7Ox9xl1fFibAELEsFD0lDPfHIeILlutMMfdyhlzYPELG3peuKaurw==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@next/[email protected]':+ resolution: {integrity: sha512-HKQ5SP/V/ub73UvF7n/zeJlxk2kLmtL7Wzrg4WfmkjmNos5onJ2tKu7yZOPdL18A6Svfn3max29ym+ry7NkK4g==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@next/[email protected]':+ resolution: {integrity: sha512-LZXpTlPyS5v7HhSmnvsLGP3iIYgYOBnc8r8ArlT55sGHV89bR2HlDdBjWQ+PY6SJMmk8TuVGFuxalnP3k/0Dwg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]++ '@next/[email protected]':+ resolution: {integrity: sha512-F0+4i0h9J6C4eE3EAPWsoCk7UW/dbzOjyzxY0qnDUOYFu6FFmdZ6l97/XdV3/Nz3VYyO7UWjyEJUXkGqcoXfMA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]++ '@noble/[email protected]':+ resolution: {integrity: sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==}+ engines: {node: ^14.21.3 || >=16}++ '@noble/[email protected]':+ resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==}+ engines: {node: ^14.21.3 || >=16}++ '@noble/[email protected]':+ resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==}+ engines: {node: ^14.21.3 || >=16}++ '@nodelib/[email protected]':+ resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}+ engines: {node: '>= 8'}++ '@nodelib/[email protected]':+ resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}+ engines: {node: '>= 8'}++ '@nodelib/[email protected]':+ resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}+ engines: {node: '>= 8'}++ '@open-draft/[email protected]':+ resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==}++ '@open-draft/[email protected]':+ resolution: {integrity: sha512-XW375UK8/9SqUVNVa6M0yEy8+iTi4QN5VZ7aZuRFQmy76LRwI9wy5F4YIBU6T+eTe2/DNDo8tqu8RHlwLHM6RA==}++ '@open-draft/[email protected]':+ resolution: {integrity: sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==}++ '@open-draft/[email protected]':+ resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==}++ '@oxc-project/[email protected]':+ resolution: {integrity: sha512-ibD2usx9JRu7f5pu2tMKMI4cpA4NgXJQoYRP4pQ7Pxmn1l6k/53qWtQWZayhYy3X4QZkt90Ot+mJEaeXouio6Q==}++ '@package-json/[email protected]':+ resolution: {integrity: sha512-uu43FGU34B5VM9mCNjXCwLaGHYjXdNincqKLaraaCW+7S2+SmiBg1Nv8bPnmschrIfZmfKNY9f3fC376MRrObw==}++ '@pkgr/[email protected]':+ resolution: {integrity: sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==}+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-XM+E4WXl0OqUJFovy6GjmxxFyx9opfCAIUku4dlKRd5YEPqt4kALOkQOp0Of6reHuUkJuiPBEc5k0o4z4lTC8A==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Yq6lvO9HQyPwev1onK1daHCHqXVLzPhSVjmsNjCa2Zcxy2f7uJD2itDtxknv6FzAKCwD1qQkeVDmX/cev13n/g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QM70k4Zwjttifr5a4sZFts9fn8FzHYvQ5PiB19O2HsYibaHSVt9fH9rzB0XZo/YcM+b7t/p7lYCT/F5eOeF5yQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-qgTkjNT1CfKMoP0rcasmlH2r1DAiYicWsDsufxl940sT2wHNEWWv6FMWIQXWhVdmC1d/HYfbhQx60KYyAtKxjg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-EB1FktTz5xRRi2Er974AUQZWg2yVBb1yjip38/lgwtCVRd3a+maUoGHN/xs9Yv8SY8QwbSEb+YrxGadVWbEutA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ycS4rbwURavDPVjCb5iS3aG4lURFDILi6sKI/WITUMZ13gMmn/xGjpLoqBAalhJaDk8I3UbCM5GzKHrnzwHbvg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/UuCrDBWravcaMix4TdT+qlNdVwOM1Nck9kWx/vafXsdfj1ChfhOdfi3cy9SGBpWgTXwYCuboT/oYpJy3clqfw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-4ol06/1bLoFu1nwUqzdD4Y5RZ9oDdKeiHIsntug54Hcr1pgaHiPqHFEaXI1IFP/EsOfROQZ8Mig9VTIRza6Tjg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-fJI3I0r3C3Oj/zdBCpaCmBRZYf07xpaq4yCfDDoSFm+beWNzbIl26puW8RraUdugoJw/95zerNOn6jasAhzSmg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [android]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-cKnAhWEsV7TPcA/5EAteDp6KcJZBQ2G+BqE7zayMMi7kMvwRsbv7WT9aOnn0WNl4SKEIf43vjS31iUPu80nzXg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [darwin]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-YKrVwQjIRBPo+5G/u03wGjbdy4q7pyzCe93DK9VJ7zkVmeg8LJ7GbgsiHWdR4xSoe4CAXRD7Bcjgbtr64bkXNg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [darwin]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-z/oBsREo46SsFqBwYtFe0kpJeBijAT48O/WXLI4suiCLBkr03RTtTJMCzSdDd2znlh8VJizL09XVkQgk8IZonw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [freebsd]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-ik8q7GM11zxvYxFc2PeDcT6TBvhCQMaUxfph/M5l9sKuTs/Sjg3L+Byw0F7w0ZVLBZmx30P+gG0ECzzN+MFcmQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-QoSx2EkyrrdZ6kcyE8stqZ62t0Yra8Fs5ia9lOxJrh6TMQJK7gQKmscdTHf7pOXKREKrVwOtJcQG3qVSfc866A==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-uwNwFpwKeNiZawfAWBgg0VIztPTV3ihhh1vV334h9ivnNLorxnQMU6Fz8wG1Zb4Qh9LC1/MkcyT3YlDXG3Rsgg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-zY1bul7OWr7DFBiJ++wofXvnr8B45ce3QsQUhKrIhXsygAh7bTkwyeM1bi1a2g5C/yC/N8TZyGDEoMfm/l9mpg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-0frlsT/f4Ft6I7SMESTKnF3cZsdicQn1dCMkF/jT9wDLE+gGoiQfv1nmT9e+s7s/fekvvy6tZM2jHvI2tkbJDQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-XABVmGp9Tg0WspTVvwduTc4fpqy6JnAUrSQe6OuyqD/03nI7r0O9OWUkMIwFrjKAIqolvqoA4ZrJppgwE0Gxmw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-bV4fzswuzVcKD90o/VM6QqKxnxlDq0g2BISDLNVmxrnhpv1DDbyPhCIjYfvzYLV+MvkKKnQt2Q6AO86SEBULUQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-/Mh0Zhq3OP7fVs0kcQHZP6lZEthMGTaSf8UBQYSFEZDWGXXlEC+nJ6EqenaK2t4LBXMe3A+K/G2BVXXdtOr4PQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [openharmony]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-+1xc9X45l8ufsBAm6Gjvx2qDRIY9lTVt0cgWNcJ+1gdhXvkbxePA60yRTwSTuXL09CMhyJmjpV7E3NoyxbqFQQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [wasm32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-1D+UqZdfnuR+Jy1GgMJwi85bD40H21uNmOPRWQhw4oRSuolZ/B5rixZ45DK2KXOTCvmVCecauWgEhbw8bI7tOw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [win32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-INAycaWuhlOK3wk4mRHGsdgwYWmd9cChdPdE9bwWmy6rn9VqVNYNFGhOdXrofXUxwHIncSiPNb8tNm8knDVIeQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [win32]++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==}++ '@rolldown/[email protected]':+ resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==}++ '@rollup/[email protected]':+ resolution: {integrity: sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0+ peerDependenciesMeta:+ rollup:+ optional: true++ '@sec-ant/[email protected]':+ resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==}++ '@sindresorhus/[email protected]':+ resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==}+ engines: {node: '>=18'}++ '@svgr/[email protected]':+ resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==}+ engines: {node: '>=14'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@svgr/[email protected]':+ resolution: {integrity: sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==}+ engines: {node: '>=14'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@svgr/[email protected]':+ resolution: {integrity: sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==}+ engines: {node: '>=14'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@svgr/[email protected]':+ resolution: {integrity: sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==}+ engines: {node: '>=14'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@svgr/[email protected]':+ resolution: {integrity: sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==}+ engines: {node: '>=14'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@svgr/[email protected]':+ resolution: {integrity: sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==}+ engines: {node: '>=14'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@svgr/[email protected]':+ resolution: {integrity: sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==}+ engines: {node: '>=14'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@svgr/[email protected]':+ resolution: {integrity: sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==}+ engines: {node: '>=12'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@svgr/[email protected]':+ resolution: {integrity: sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==}+ engines: {node: '>=14'}+ peerDependencies:+ '@babel/core': ^7.0.0-0++ '@svgr/[email protected]':+ resolution: {integrity: sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==}+ engines: {node: '>=14'}++ '@svgr/[email protected]':+ resolution: {integrity: sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==}+ engines: {node: '>=14'}++ '@svgr/[email protected]':+ resolution: {integrity: sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==}+ engines: {node: '>=14'}+ peerDependencies:+ '@svgr/core': '*'++ '@swc/[email protected]':+ resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [android]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [freebsd]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==}+ engines: {node: '>= 20'}+ cpu: [arm]+ os: [linux]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]+ bundledDependencies:+ - '@napi-rs/wasm-runtime'+ - '@emnapi/core'+ - '@emnapi/runtime'+ - '@tybys/wasm-util'+ - '@emnapi/wasi-threads'+ - tslib++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==}+ engines: {node: '>= 20'}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==}+ peerDependencies:+ vite: ^5.2.0 || ^6 || ^7 || ^8++ '@ts-morph/[email protected]':+ resolution: {integrity: sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==}++ '@tsconfig/[email protected]':+ resolution: {integrity: sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==}++ '@tsconfig/[email protected]':+ resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==}++ '@tsconfig/[email protected]':+ resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==}++ '@tsconfig/[email protected]':+ resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==}++ '@tybys/[email protected]':+ resolution: {integrity: sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==}++ '@types/[email protected]':+ resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}++ '@types/[email protected]':+ resolution: {integrity: sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-02S5fmqeoKzVZCHPZid4b8JH2eM5HzQLZWN2FohQEy/0eXTq8VXZfSN6Pcr3F6N9R/vNrj7cpgbhjie6m/1tCA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-xRMsfuQbnRq1Ef+C+RKaENOxXX87Ygl38W1vDfPHRku02TgQr+Qd8iivLtAMcR0KF5/29xlnFihkTlbqFrGOVQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==}++ '@types/[email protected]':+ resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-ECymXOukMnOoVkC2bb1Vc/w/836DXncOg5m8Xj1RH7xSHZJWNYY6Zh7EH477vcnD5egKNNfy2RpNOmuChhFPgQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-GUUEShf+PBCGW2KaXwcIt3Yk+e3pkKwWKb9GSyM9WQVE+ep2jzmHdGsHzu4wgcZy5fN9FBdVzjpBQsYlpfpgLA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-GZHUBZR9hckSUhrxmp1nG6NwdpM9fCunJwyThLW1X3AyHgd9IlHb6VANpQQqDr2o/qQp6McZ3y/IA2rVzKzSbw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==}+ peerDependencies:+ '@types/react': ^19.2.0++ '@types/[email protected]':+ resolution: {integrity: sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==}++ '@types/[email protected]':+ resolution: {integrity: sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==}++ '@types/[email protected]':+ resolution: {integrity: sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-GGmQVGpQWUe5qglJozEjZV/5dyxbOOZ0LHe/lqyWssB88Y4svNfst0uqBVscdDeIKl5Jy5+aPSvy7mI9tYRguw==}++ '@types/[email protected]':+ resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}++ '@types/[email protected]':+ resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==}++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-PwFvSKsXGShKGW6n5bZOhGHEcCZXM8HofLK9fNsEwZXzFRjoY+XT1Vsf1zgyXdwTr0ZYz1/2tkZ0DBTT9jZjhw==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ '@typescript-eslint/parser': ^8.59.3+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-HPwA+hVkfcriajbNvTmZv4VRauibay+cWArYUYq7u7W7PmGShMxbPxLvrwDme55a6d5alG3nrYfhyJ/G28XlLg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-ECiUWa/KYRGDFUqTNehaRgzDshnJfkTABJxVemHk4ko22gcr0ukloKjWvyQ64g8YCV/UI47kN1dbmjf/GaQYng==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-t2LvZnoEfzKtnPjgeEu41xw5gxq9mQVfYy4OoZ4Vlt0sk3JwxmhCca/AR7DwOiHrjWgjAj6as4AhRLKSDfvZIA==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-PcIJHjmaREXLgIAIzLnSY9VucEzz8FKXsRgFa1DmdGCK/5tJpW03TKJF01Q6VZd1lLdz2sIKPWaDUZN9dp//dw==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-g71d8QD8UaiHGvrJwyIS1hCX5r63w6Jll+4VEYhEAHXTDIqX1JgxhTAbEHtKntL9kuc4jRo7/GWw5xfCepSccQ==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-ePFoH0g4ludssdRFqqDxQePCxU4WQyRa9+XVwjm7yLn0FKhMeoetC+qBEEI1Eyb1pGSDveTIT09Bvw2WhlGayg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-CbRjVRAf7Lr9Kr8RopKcbY45p2VfmmHrm0ygOCYFi7oU8q19m0Fs/6iHS7kNOmwpp+ob07ZVcAqlxUod9lYdmg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-JAvT14goBzRzzzZyqq3P9BLArIxTtQURUtFgQ/V7FO+eU+Gg6ES+5ymOPP1wRxXcxAYeivCk4uS3jCKWI1K8Zg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-f1UQF7ggd42YiwI5wGrRaPsa+P0CINBlrkLPmGfpq/u/I/oVtecoEIfFR9ag/oa1sLOsRNZ6xehf6qMZhQGBDg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@ungap/[email protected]':+ resolution: {integrity: sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==}++ '@unrs/[email protected]':+ resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==}+ cpu: [arm]+ os: [android]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==}+ cpu: [arm64]+ os: [android]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==}+ cpu: [arm64]+ os: [darwin]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==}+ cpu: [x64]+ os: [darwin]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==}+ cpu: [x64]+ os: [freebsd]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==}+ cpu: [arm]+ os: [linux]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==}+ cpu: [arm]+ os: [linux]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==}+ cpu: [riscv64]+ os: [linux]+ libc: [musl]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==}+ cpu: [arm64]+ os: [win32]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==}+ cpu: [ia32]+ os: [win32]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==}+ cpu: [x64]+ os: [win32]++ '@vitejs/[email protected]':+ resolution: {integrity: sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ peerDependencies:+ '@rolldown/plugin-babel': ^0.1.7 || ^0.2.0+ babel-plugin-react-compiler: ^1.0.0+ vite: ^8.0.0+ peerDependenciesMeta:+ '@rolldown/plugin-babel':+ optional: true+ babel-plugin-react-compiler:+ optional: true++ resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}+ peerDependencies:+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0++ resolution: {integrity: sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==}+ engines: {node: '>=0.4.0'}++ resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==}+ engines: {node: '>=0.4.0'}+ hasBin: true++ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}+ engines: {node: '>= 14'}++ resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}+ peerDependencies:+ ajv: ^8.0.0+ peerDependenciesMeta:+ ajv:+ optional: true++ resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==}++ resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==}++ resolution: {integrity: sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==}++ resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}++ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}++ resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==}++ resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==}++ resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}+ engines: {node: 18 || 20 || >=22}++ resolution: {integrity: sha512-Asa2krT+XTPZINCS+2QcyS8WTkObE77RwkydwF7h6DmnKqbvlalz93m/dnphUyCa6SWSP51VgtEUf2FN+gelFQ==}+ engines: {node: '>=6.0.0'}+ hasBin: true++ resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==}+ engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}++ resolution: {integrity: sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==}+ engines: {node: 18 || 20 || >=22}++ resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==}+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}+ hasBin: true++ resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-hVLMUZFgR4JJ6ACt1uEESvQN1/dBVqPAKY0hgrV70eN3391K6juAfTjKZLKvOMsx8PxA7gsY1/tLMMTcfFLLpw==}++ resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}++ resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}++ resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==}++ resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==}++ resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==}++ resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==}++ resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}+ engines: {node: '>= 8.10.0'}++ resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}++ resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-xRwvIOMGrfOAnM1JYtqQImuaNtDEv9v6oIYAs4LIHwTiKee8uwvIi363igssOC0O5U04i4AlENs79LQLu9tEMw==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==}+ engines: {node: '>= 12'}++ resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}++ resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==}++ resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}+ engines: {node: '>=7.0.0'}++ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}++ resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==}++ resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}+ engines: {node: '>=16'}++ resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-ObxuY6vnbWTN6Od72xfwN9DbzC7Y2vv8u1Soi9ahRKL37gb6y1qk6/dgjs+3JWuXJHWvsg3BXIwzd/rkmAwavg==}+ engines: {node: '>= 12.0.0'}++ resolution: {integrity: sha512-1dP4gpXFhei8IOtlXRE/T/4H88ElHgTiUzh71YUmtjTEHMSRS2Z/fgOxHSxxusGHogsRfxNq1vyAwxSC+EVyDg==}+ engines: {node: ^14.13.0 || >=16.0.0}+ hasBin: true++ resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}++ resolution: {integrity: sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==}++ resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==}+ engines: {node: '>=6.6.0'}++ resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==}+ engines: {node: '>= 0.10'}++ resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==}+ engines: {node: '>=14'}+ peerDependencies:+ typescript: '>=4.9.5'+ peerDependenciesMeta:+ typescript:+ optional: true++ resolution: {integrity: sha512-hr4ihw+DBqcvrsEDioRO31Z17x71pUYoNe/4h6Z0wB72p7MU7/9gH8Q3s12NFhHPfYBBOV3qyfUxmr/Yn3shnQ==}+ engines: {node: '>=14'}+ peerDependencies:+ typescript: '>=4.9.5'+ peerDependenciesMeta:+ typescript:+ optional: true++ resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==}++ resolution: {integrity: sha512-oML4lKUXxizYswqmxuOCpgFS8BNUJpIu6k/2HVHyaL8Ynnf3wdf9tkns0yRdJLSIjkJ+b0DXHMZEHGpMwjnPww==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}+ engines: {node: '>=4'}+ hasBin: true++ resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}++ resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}+ engines: {node: '>= 12'}++ resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==}+ engines: {node: '>=0.11'}++ resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==}++ resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: true++ resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}+ engines: {node: '>=6.0'}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: true++ resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==}++ resolution: {integrity: sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==}+ peerDependencies:+ babel-plugin-macros: ^3.1.0+ peerDependenciesMeta:+ babel-plugin-macros:+ optional: true++ resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}++ resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-H9LMLr5zwIbSxrmvikGuI/5KGhZ8E2zH3stkMgM5LpOWDutGM2JZaj460Udnf1a+946zc7YBgrqEWwbk7zHvGw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==}+ engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}++ resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}++ resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==}++ resolution: {integrity: sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==}+ engines: {node: '>=0.3.1'}++ resolution: {integrity: sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==}+ engines: {node: '>=0.3.1'}++ resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}++ resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-wG99Zcfcys9fZux7Cft8BAX/YrOJLJSZ3jyYPfhZHqN2E+Ffx+QXBDsv3gubEgPtV6dTzJMSQUwk1H98/t/0wQ==}+ engines: {bun: '>=1', deno: '>=2', node: '>=16'}++ resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}++ resolution: {integrity: sha512-LUPZhKzZPYSPme1jEYohpkA+ybYCJztr1quAdBd7E7h3+VOBVcKkwwtBJu41nrjawrRzfb8mtMfzWozoaK0ZIQ==}++ resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}++ resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}++ resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-QyL119InA+XXEkNLNTPCXPugSvOfhwv0JOlGNzvxs0hZaiHLNvXSpudUWsOlsXGWJh8G6ckCScEkVHfX3kw/2Q==}+ engines: {node: '>=10.13.0'}++ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}+ engines: {node: '>=0.12'}++ resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==}++ resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==}++ resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==}+ hasBin: true+ peerDependencies:+ eslint: '>=7.0.0'++ resolution: {integrity: sha512-K9Hb+yRaGAGUbwjhFNHvSmmkZs9+zbuoe3kFQ4V1wYjrepUFYM2dZAfNtjbbj3qsPfUfsA68Bx/ICWQMi+C8Eg==}+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}+ peerDependencies:+ unrs-resolver: ^1.0.0+ peerDependenciesMeta:+ unrs-resolver:+ optional: true++ resolution: {integrity: sha512-rM9K8UBHcWKpzQzStn1YRN2T5NvdeIfSVoKu/lKF41znQXHAUcBbYXe5wd6GNjZjTrP7viQ49n1D83x/2gYgIw==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ '@typescript-eslint/utils': ^8.56.0+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ eslint-import-resolver-node: '*'+ peerDependenciesMeta:+ '@typescript-eslint/utils':+ optional: true+ eslint-import-resolver-node:+ optional: true++ resolution: {integrity: sha512-hscXkbqUZ2sPithAuLm5MXL+Wph+U7wHngPBv9OMWwlP8iaflyxpjTYZkmdgB4/vPIhemRlBEoLrH7UC1n7aUw==}+ engines: {node: ^14.18.0 || >=16.0.0}+ peerDependencies:+ '@types/eslint': '>=8.0.0'+ eslint: '>=8.0.0'+ eslint-config-prettier: '>= 7.0.0 <10.0.0 || >=10.1.0'+ prettier: '>=3.0.0'+ peerDependenciesMeta:+ '@types/eslint':+ optional: true+ eslint-config-prettier:+ optional: true++ resolution: {integrity: sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==}+ engines: {node: '>=18'}+ peerDependencies:+ eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0++ resolution: {integrity: sha512-hmgTH57GfzoTFjVN0yBwTggnsVUF2tcqi7RJZHqi9lIezSs4eFyAMktA68YD4r5kNw1mxyY4dmkyoFDb3FIqrA==}+ peerDependencies:+ eslint: ^9 || ^10++ resolution: {integrity: sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}++ resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}++ resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}++ resolution: {integrity: sha512-XbEXaRva5cF0ZQB8w6MluHA0kZZfV2DuCMJ3ozyEOHLwDpZX2Lmm/7Pp0xdJmI0GL1W05VH5VwIFHEm1Vcw2gw==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}+ hasBin: true+ peerDependencies:+ jiti: '*'+ peerDependenciesMeta:+ jiti:+ optional: true++ resolution: {integrity: sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}++ resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}+ engines: {node: '>=4'}+ hasBin: true++ resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==}+ engines: {node: '>=0.10'}++ resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}+ engines: {node: '>=4.0'}++ resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}+ engines: {node: '>=4.0'}++ resolution: {integrity: sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==}++ resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}++ resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==}++ resolution: {integrity: sha512-70QWGkr4snxr0OXLRWsFLeRBIRPuQOvt4s8QYjmUlmlkyTZkRqS7EDVRZtzU3TiyDbXSzaOeF0XUKy8PchzukQ==}+ engines: {node: '>=18.0.0'}++ resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==}+ engines: {node: '>=18.0.0'}++ resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==}+ engines: {node: ^18.19.0 || >=20.5.0}++ resolution: {integrity: sha512-5Kb34ipNX694DH48vN9irak1Qx30nb0PLYHXfJgw4YEjiC3ZEmZJhwOp+VfiCYwFzvFTdB9QkArYS5kXa2cx2A==}+ engines: {node: '>= 16'}+ peerDependencies:+ express: '>= 4.11'++ resolution: {integrity: sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==}+ engines: {node: '>= 0.10.0'}++ resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==}+ engines: {node: '>= 18'}++ resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}++ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}++ resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==}++ resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}+ engines: {node: '>=8.6.0'}++ resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}++ resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}++ resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==}++ resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==}++ resolution: {integrity: sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==}++ resolution: {integrity: sha512-rLV8JHxTyhVmFYhBJuMujcrHqOT2cnO5Zxj37qROj23CP39GXubJRBUFF0z8KFK77Uc0SukZUf7JZhsVEQ6n8w==}++ resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==}++ resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}+ engines: {node: '>=12.0.0'}+ peerDependencies:+ picomatch: ^3 || ^4+ peerDependenciesMeta:+ picomatch:+ optional: true++ resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}+ engines: {node: ^12.20 || >= 14.13}++ resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}+ engines: {node: '>=16.0.0'}++ resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==}+ engines: {node: '>= 18.0.0'}++ resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}+ engines: {node: '>=16'}++ resolution: {integrity: sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==}++ resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}+ engines: {node: '>=12.20.0'}++ resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-uaBd3qC1v3KQqBEjwTUd183K6PbS+j0yR9w9VmEOLWA/tnUcSn8Xa3uck7t4dgpDoUss8xQTcj8W2L07lrnLFg==}+ peerDependencies:+ '@emotion/is-prop-valid': '*'+ react: ^18.0.0 || ^19.0.0+ react-dom: ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@emotion/is-prop-valid':+ optional: true+ react:+ optional: true+ react-dom:+ optional: true++ resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-eKpRKAovdpZtR1WopLHxlBWvAgPny3c4gX1G5Jhwmmw4XJj0ifSD5qB5TOo8hmA0wlRKDAOAhEE1yVPgs6Fgcg==}+ engines: {node: '>=14.14'}++ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}+ os: [darwin]++ resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}++ resolution: {integrity: sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==}++ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}+ engines: {node: '>=6.9.0'}++ resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}+ engines: {node: 6.* || 8.* || >= 10.*}++ resolution: {integrity: sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==}+ engines: {node: '>=14.16'}++ resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==}++ resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}+ engines: {node: '>=10.13.0'}++ resolution: {integrity: sha512-sepffkT8stwnIYbsMBpoCHJuJM5l98FUF2AnE07hfvE0m/qp3R586hw4jF4uadbhvg1ooIdzuu7CsfD2jzCaNA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}++ resolution: {integrity: sha512-BBvQ/406p+4CZbTpCbVPSxfzrZrbnuWSP1ELYgyS6B+hNeKzgrdB4JczCa5VZUBQrDa9hUngm0KnexY6pJRN5Q==}+ engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0}++ resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==}+ engines: {node: '>=6.0'}++ resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==}++ resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==}++ resolution: {integrity: sha512-1TJ6Fih/b8h5TIcv+1+Hw0PDQWJTKDKzFZzcKOiW1wJza3XoAQlkCuXLbymPYB8+ZQyw8mHvdw560e8zVFIWyA==}++ resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==}++ resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==}++ resolution: {integrity: sha512-RWzP96k/yv0PQfyXnWjs6zot20TqfpfsNXhOnev8d1InAxubW93L11/oNUc3tQqn2G0bSdAOBpX+2uDFHV7kdQ==}+ engines: {node: '>=16.9.0'}++ resolution: {integrity: sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==}++ resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==}++ resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}+ engines: {node: '>= 14'}++ resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}+ engines: {node: '>=10.17.0'}++ resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==}+ engines: {node: '>=18.18.0'}++ resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}+ engines: {node: '>=18'}+ hasBin: true++ resolution: {integrity: sha512-bZg8+4bdmaOiApD7N7BPT9W8MLZG+nPTOFlLiJiT8uzKXFjhxw4v2ierCXOwB5sFDMtuA5G4kgYZ0AznZxQ/cw==}++ resolution: {integrity: sha512-zwBHldHdTmwN7r6UNc7lC6GWNN+YYg3DrRSeHR5PRRBf5QnJZcYHrQc0uaU26qZeYxR7iFZD+Y315dPnKP47wA==}+ peerDependencies:+ typescript: ^5 || ^6+ peerDependenciesMeta:+ typescript:+ optional: true++ resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==}++ resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}+ engines: {node: '>= 4'}++ resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==}+ engines: {node: '>= 4'}++ resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}+ engines: {node: '>=0.8.19'}++ resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}++ resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==}++ resolution: {integrity: sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==}+ engines: {node: '>= 12'}++ resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}+ engines: {node: '>= 0.10'}++ resolution: {integrity: sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==}++ resolution: {integrity: sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==}++ resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}++ resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==}++ resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+ hasBin: true++ resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==}++ resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==}+ engines: {node: '>=14.16'}+ hasBin: true++ resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==}++ resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}+ engines: {node: '>=0.12.0'}++ resolution: {integrity: sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}++ resolution: {integrity: sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==}+ engines: {node: '>=16'}++ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}++ resolution: {integrity: sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}+ hasBin: true++ resolution: {integrity: sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw==}++ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}++ resolution: {integrity: sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==}+ hasBin: true++ resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}+ hasBin: true++ resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}+ engines: {node: '>=6'}+ hasBin: true++ resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}++ resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}++ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}++ resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}++ resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==}++ resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}++ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}+ engines: {node: '>=6'}+ hasBin: true++ resolution: {integrity: sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==}++ resolution: {integrity: sha512-tWPGKMZf/8UPim+fcW2EfcQ/d/7aKUrP6IECz9G3Tu6Q5dX0orSleqJ9z6sSw7qrQkjF8/Edo4DvsWBZ8H+HNg==}+ hasBin: true++ resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}++ resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [android]++ resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [darwin]++ resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [darwin]++ resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [freebsd]++ resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm]+ os: [linux]++ resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [win32]++ resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [win32]++ resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==}+ engines: {node: '>= 12.0.0'}++ resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}++ resolution: {integrity: sha512-d12yC+/e8RhBjZtaxZn71FyrgU/P5e+uAPifhCLwdosQZP/zamSdKRWDC30ocVIbzDKiFG1McHc/LUgB92GIPw==}+ engines: {node: '>=22.22.1'}+ hasBin: true++ resolution: {integrity: sha512-7I5knELsJKTUjXG+A6BkKAiGkW1i25fNa/xlUl9hFtk15WbE9jndA89xu5FzQKrY5llajE1hfZZFMILXkDHk/Q==}+ engines: {node: '>=22.13.0'}++ resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==}++ resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==}++ resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}++ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}++ resolution: {integrity: sha512-dYwyPzb4MEKpGUmNYk3WKWPnMrHs3FKM+q94kAnJrcDIqqn1hq2xY8scaS2ovsOCM5D51ey2gaRG3PBb1vgoYQ==}+ peerDependencies:+ react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0++ resolution: {integrity: sha512-8/98ZCQjNDdfOjSycUujwqxKNrq97WPzdlNBR6tG7BqZgiOFQqzJuFapIpjPceW57sJv3zGIBg0L3SWR7c4fqA==}++ resolution: {integrity: sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}++ resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==}++ resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}++ resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==}++ resolution: {integrity: sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==}++ resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==}++ resolution: {integrity: sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==}++ resolution: {integrity: sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==}++ resolution: {integrity: sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==}++ resolution: {integrity: sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==}++ resolution: {integrity: sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==}++ resolution: {integrity: sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==}++ resolution: {integrity: sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==}++ resolution: {integrity: sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==}++ resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==}++ resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==}++ resolution: {integrity: sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==}++ resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==}++ resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==}++ resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}++ resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==}++ resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==}++ resolution: {integrity: sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==}++ resolution: {integrity: sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==}++ resolution: {integrity: sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==}++ resolution: {integrity: sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==}++ resolution: {integrity: sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==}++ resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==}++ resolution: {integrity: sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==}++ resolution: {integrity: sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==}++ resolution: {integrity: sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==}++ resolution: {integrity: sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==}++ resolution: {integrity: sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==}++ resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==}++ resolution: {integrity: sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==}++ resolution: {integrity: sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==}++ resolution: {integrity: sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==}++ resolution: {integrity: sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==}++ resolution: {integrity: sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==}++ resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==}++ resolution: {integrity: sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==}++ resolution: {integrity: sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==}++ resolution: {integrity: sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==}++ resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==}++ resolution: {integrity: sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==}++ resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==}++ resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==}++ resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==}++ resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}+ engines: {node: '>=8.6'}++ resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==}+ engines: {node: '>=4'}+ hasBin: true++ resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==}+ engines: {node: 18 || 20 || >=22}++ resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}++ resolution: {integrity: sha512-HxU3ZaBwNPVQUBQf1xxgq+7JrPNZvjLVxgbpEZL7RrWJnsxOf0/OM+yrHG9ogLQ31Do/r57Oz2gQWPK+6q62mg==}++ resolution: {integrity: sha512-8nadJAJjTtqRkmRF36FoJTrywK9nnFmnPwnSMyxaOCU7GDjN9RTMJIxx9De8ErM+vpPhMccr/6fo5WciyQLnMQ==}++ resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==}++ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}++ resolution: {integrity: sha512-ALe+N10S72cyx94cMcy3Zs4HhXCj35sgeAL4c+WTvKi0zWnbd8/h0lcFqv0mb2P+aSgAdD7p9HzvA0DiUPxsyg==}+ engines: {node: '>=18'}+ hasBin: true+ peerDependencies:+ typescript: '>= 4.8.x'+ peerDependenciesMeta:+ typescript:+ optional: true++ resolution: {integrity: sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==}+ engines: {node: ^20.17.0 || >=22.9.0}++ resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==}+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}+ hasBin: true++ resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==}+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}+ hasBin: true++ resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}++ resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==}+ peerDependencies:+ react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc+ react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc++ resolution: {integrity: sha512-qOVgKJg1+At15NpeUP+eJgCHvTCgXsogweq87Ri/Ix7PkqQHg4sdaXmSFqKlgaIXE4kW0g25LE68W87UANlHtw==}+ engines: {node: '>=20.9.0'}+ hasBin: true+ peerDependencies:+ '@opentelemetry/api': ^1.1.0+ '@playwright/test': ^1.51.1+ babel-plugin-react-compiler: '*'+ react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0+ react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0+ sass: ^1.3.0+ peerDependenciesMeta:+ '@opentelemetry/api':+ optional: true+ '@playwright/test':+ optional: true+ babel-plugin-react-compiler:+ optional: true+ sass:+ optional: true++ resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}++ resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}+ engines: {node: '>=10.5.0'}+ deprecated: Use your platform's native DOMException instead++ resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}++ resolution: {integrity: sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==}++ resolution: {integrity: sha512-jakjZi93UtB3jHMWsXL68FXSAosbLfY0In5gtKq3niLSkrWznrVBzXFNOEMJUfc9+Ke7SHWoAZsiMkNP3vq6Jw==}+ engines: {node: '>=10'}+ hasBin: true++ resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==}+ engines: {node: '>= 10'}++ resolution: {integrity: sha512-KEWEhIqE5wtfzEIZbDCLH51VFZ6Z3ZSa6sIOg/E/tBV8S51flyqBOXi+bRxlOYKDf8i327zG9eSTb8IJxvm3Zg==}++ resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-S9EtQpKr8oYz7j0Bmr0w7BdG4Q4ud6QuNxBsSShzcf9khhuLEEjkbhYYMmdMlVa56QK/rXW/9pc8JJvBXUhOeA==}+ peerDependencies:+ '@radix-ui/react-portal': '>=1.1.1'+ framer-motion: '>=11'+ next: '>=13'+ react: '>=18'+ react-dom: '>=18'++ resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}++ resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-AoMplt2UalrpgUDMh3L09QWjNRlgJPipclQvA6sYAaeF6nHNBMgmikAZGmcYLn8on4d9sQY9Q8bOLfrBS7Lc8g==}+ hasBin: true+ peerDependencies:+ ws: ^8.18.0+ zod: ^3.25 || ^4.0+ peerDependenciesMeta:+ ws:+ optional: true+ zod:+ optional: true++ resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==}++ resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==}++ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}++ resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==}++ resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==}++ resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==}++ resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}++ resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==}+ engines: {node: '>=8.6'}++ resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==}+ engines: {node: '>=16.20.0'}++ resolution: {integrity: sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}+ engines: {node: ^10 || ^12 || >=14}++ resolution: {integrity: sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==}+ engines: {node: ^10 || ^12 || >=14}++ resolution: {integrity: sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-SxToR7P8Y2lWmv/kTzVLC1t/GDI2WGjMwNhLLE9qtH8Q13C+aEmuRlzDst4Up4s0Wc8sF2M+J57iB3cMLqftfg==}+ engines: {node: '>=6.0.0'}++ resolution: {integrity: sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==}+ engines: {node: '>=14'}+ hasBin: true++ resolution: {integrity: sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==}++ resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}+ engines: {node: '>= 0.10'}++ resolution: {integrity: sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==}++ resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==}+ engines: {node: '>=0.6'}++ resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}++ resolution: {integrity: sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==}+ engines: {node: '>= 0.10'}++ resolution: {integrity: sha512-eNh6BlwcYInWaJtRv18mXQ06Ys/H6rdTZAnTaSdOYJuTpwP1JMCHNd1FDRadA+gbeinq+psdULN5Xnowy9mV8w==}+ engines: {node: '>=18'}+ peerDependencies:+ '@types/react': '>=16.8.0'+ react: '>=16.8.0'+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==}+ peerDependencies:+ react: ^19.2.6++ resolution: {integrity: sha512-0ooKbGLU8JXhe1zwpQUWIeXSgLPOfwJmgheWRIUpcoA0CpyabpGhayjdG+/eA5esC1AQ8h2jWpXjJfzQzeDOCw==}+ peerDependencies:+ i18next: '>= 26.2.0'+ react: '>= 16.8.0'+ react-dom: '*'+ react-native: '*'+ typescript: ^5 || ^6+ peerDependenciesMeta:+ react-dom:+ optional: true+ react-native:+ optional: true+ typescript:+ optional: true++ resolution: {integrity: sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==}+ peerDependencies:+ '@types/react': '>=18'+ react: '>=18'++ resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-AzF62gjY6U9rkMq4RfP/r2EVtQ7DMfNMjyOp/flLTCrtRylLiK4wT4pSq6O8rOXZ2eXdZYJPEYe+ifomiv+Igg==}+ engines: {node: '>=20.0.0'}+ peerDependencies:+ react: '>=18'+ react-dom: '>=18'++ resolution: {integrity: sha512-R8rl9HhgikFYoPJymnUtPXWbnDb3oget6lQnfIoupbt61aT9aOhRkDsY2XRhZRyX1Z/8a5sL74fXmFNm3NRK5A==}+ engines: {node: '>=20.0.0'}+ peerDependencies:+ react: '>=18'+ react-dom: '>=18'+ peerDependenciesMeta:+ react-dom:+ optional: true++ resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}+ engines: {node: '>=8.10.0'}++ resolution: {integrity: sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==}+ engines: {node: '>= 4'}++ resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}++ resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==}++ resolution: {integrity: sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==}++ resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==}++ resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}++ resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-ILJRqVWBCTlg9r42fFgwVZx1gnFAcQF8mRoMkbgQfIrjEDf9nbBFDFx00oloOa+Q869FUtaYDXZvEfnecQSCoQ==}++ resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}+ engines: {iojs: '>=1.0.0', node: '>=0.10.0'}++ resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==}++ resolution: {integrity: sha512-X0KQHljNnEkWNqqiz9zJrGunh1B0HgOxLXvnFpCOcadzcy5qohZ3tqMEUg00vncoRovXuK3ZqCT9KnnKzoInFQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true++ resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}+ engines: {node: '>= 18'}++ resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}++ resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==}++ resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}++ resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}++ resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}++ resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}+ hasBin: true++ resolution: {integrity: sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==}+ engines: {node: '>=10'}+ hasBin: true++ resolution: {integrity: sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==}+ engines: {node: '>= 18'}++ resolution: {integrity: sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==}+ engines: {node: '>= 18'}++ resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==}++ resolution: {integrity: sha512-kjnC1DXBHcxaOaOXBHBeRtltsDG2nUiUni+jP92M9gYdW12rsmx92UsfpH7o5tDRs7I1ZZPSQJQGv3UaRfCiuw==}++ resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}++ resolution: {integrity: sha512-70fwnesNrY1GgeD7Kdzn+3SsYeyfibm8immsA5L68+OusoPTvYF01oWExl8/latKpMpvVXcbgdbbE6VFBJQ38w==}+ hasBin: true++ resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}++ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}++ resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}++ resolution: {integrity: sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==}++ resolution: {integrity: sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==}+ peerDependencies:+ react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc++ resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}++ resolution: {integrity: sha512-zC8zGoGkmc8J9ndvml8Xksr1Amk9qBujgbF0JAIWO7kXr43w0h/0GJNM/Vustixu+YE8N/MTrQ7N31FvHUACxQ==}++ resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}++ resolution: {integrity: sha512-o3yWv49B/o4QZk5ZcsALc6t0+eCelPc44zZsLtCQnZPDwFpDYSWcDnrv2TtMmMbQ7uKo3J0HTURCqckw23czNQ==}+ engines: {node: '>=12.0.0'}++ resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==}++ resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==}+ engines: {node: '>=0.6.19'}++ resolution: {integrity: sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA==}++ resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-IIaP0g3iy9Cyy18w3M9YcaDudujEAVHKt3a3QJg1+sr/oX96TbaGUubG0hJyCjCBThFH+tFpcIyoUHUn1ogaLA==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==}++ resolution: {integrity: sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==}+ engines: {node: '>=14.16'}++ resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==}++ resolution: {integrity: sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==}++ resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==}+ engines: {node: '>= 12.0.0'}+ peerDependencies:+ '@babel/core': '*'+ babel-plugin-macros: '*'+ react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0'+ peerDependenciesMeta:+ '@babel/core':+ optional: true+ babel-plugin-macros:+ optional: true++ resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==}++ resolution: {integrity: sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==}+ engines: {node: ^14.18.0 || >=16.0.0}++ resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==}++ resolution: {integrity: sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==}++ resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}++ resolution: {integrity: sha512-dAqSqE/RabpBKI8+h26GfLq6Vb3JVXs30XYQjdMjaj/c2tS8IYYMbIzP599KtRj7c57/wYApb3QjgRgXmrCukA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==}+ engines: {node: '>=12.0.0'}++ resolution: {integrity: sha512-uiHN8PIB1VmWyS98eZYja4xzlYqeFZVjb4OuYlJQnZAuJhMw4PbKQOKgHKhBdJR3FE/t5mUQ1Kd80++B+qhD1Q==}++ resolution: {integrity: sha512-ELrFxuqsDdHUwoh0XxDbxuLD3Wnz49Z57IFvTtvWy1hJdcMZjXLIuonjilCiWHlT2GbE4Wlv1wKVTzDFnXH1aw==}+ hasBin: true++ resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}+ engines: {node: '>=8.0'}++ resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}+ engines: {node: '>=0.6'}++ resolution: {integrity: sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==}+ hasBin: true++ resolution: {integrity: sha512-LktZQb3IeoUWB9lqR5EWTHgW/VTITCXg4D21M+lvybRVdylLrRMnqaIONLVb5mav8vM19m44HIcGq4qASeu2Qw==}+ engines: {node: '>=16'}++ resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}+ hasBin: true++ resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}++ resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}++ resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==}+ engines: {node: '>=18.12'}+ peerDependencies:+ typescript: '>=4.8.4'++ resolution: {integrity: sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==}++ resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==}+ hasBin: true+ peerDependencies:+ '@swc/core': '>=1.2.50'+ '@swc/wasm': '>=1.2.50'+ '@types/node': '*'+ typescript: '>=2.7'+ peerDependenciesMeta:+ '@swc/core':+ optional: true+ '@swc/wasm':+ optional: true++ resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}++ resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==}++ resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-8ZiHFm91orbSAe2PSAiSVBVko18pbhbiB3U9GglSzF/zCGkR+rxpHx6sEMCUm4kxY4LjDIUGgCfUMtwfZfjfUA==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==}+ engines: {node: '>= 0.6'}++ resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==}+ engines: {node: '>= 18'}++ resolution: {integrity: sha512-KgusgyDgG4LI8Ih/sWaCtZ06tckLAS5CvT5A4D1Q7bYVoAAyzwiZvE4BmwDHkhRVkvhRBepKeASoFzQetha7Fg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}+ engines: {node: '>=14.17'}+ hasBin: true++ resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}+ engines: {node: '>=14.17'}+ hasBin: true++ resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==}++ resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}++ resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}++ resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==}++ resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==}++ resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==}++ resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==}++ resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==}++ resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==}++ resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}+ engines: {node: '>= 10.0.0'}++ resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==}++ resolution: {integrity: sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw==}++ resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==}+ hasBin: true+ peerDependencies:+ browserslist: '>= 4.21.0'++ resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}++ resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0++ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}++ resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==}+ engines: {node: '>= 0.4.0'}++ resolution: {integrity: sha512-vzi9uRZ926x4XV73S/4qQaTwPXM2JBj6/6lI/byHH1jOpCzb0zDbfytgA9LcN/hzb2l7WQSQnxITOVx5un/wGw==}+ hasBin: true++ resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==}++ resolution: {integrity: sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==}+ engines: {node: ^20.17.0 || >=22.9.0}++ resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}+ engines: {node: '>= 0.8'}++ resolution: {integrity: sha512-ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==}+ peerDependencies:+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc++ resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==}++ resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}++ resolution: {integrity: sha512-qj2eAKF8C6PZWemVTvQA0xgQIcP1hHU6Buh7fl6BhvayWwnuxE+z417miKxeDvRWbDrupQ1oK99hfxElopJ3sQ==}+ peerDependencies:+ vite: '>=3.0.0'++ resolution: {integrity: sha512-MFtjBYgzmSxmgA4RAfjIyXWpGe1oALnjgUTzzV7QLx/TKxCzjtMH6Fd9/eVK+5Fg1qNoz5VAwsmMs/NofrmJvw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true+ peerDependencies:+ '@types/node': ^20.19.0 || >=22.12.0+ '@vitejs/devtools': ^0.1.18+ esbuild: ^0.27.0 || ^0.28.0+ jiti: '>=1.21.0'+ less: ^4.0.0+ sass: ^1.70.0+ sass-embedded: ^1.70.0+ stylus: '>=0.54.8'+ sugarss: ^5.0.0+ terser: ^5.16.0+ tsx: ^4.8.1+ yaml: ^2.4.2+ peerDependenciesMeta:+ '@types/node':+ optional: true+ '@vitejs/devtools':+ optional: true+ esbuild:+ optional: true+ jiti:+ optional: true+ less:+ optional: true+ sass:+ optional: true+ sass-embedded:+ optional: true+ stylus:+ optional: true+ sugarss:+ optional: true+ terser:+ optional: true+ tsx:+ optional: true+ yaml:+ optional: true++ resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==}++ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}+ engines: {node: '>= 8'}+ hasBin: true++ resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==}+ engines: {node: ^16.13.0 || >=18.0.0}+ hasBin: true++ resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-SGcvg80f0wUy2/fXES19feHMz8E0JoXv2uNgHOu4Dgi2OrCy1lqwFYEJz1BLbDI0exjPMe/ZdzZ/YpGECBG/aQ==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}++ resolution: {integrity: sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}++ resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==}+ engines: {node: '>= 14.6'}+ hasBin: true++ resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-Yw0hUB6UA3o4YUgKy3oSe9a4cxoaZ9sBfYDw+JSxo6Id0KoJGoxzPA24qqUXYKBWABs/zDSGTz9kww7t3F0XGw==}+ engines: {node: '>=18.19'}++ resolution: {integrity: sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==}+ peerDependencies:+ zod: ^3.25.28 || ^4++ resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ zod: ^3.25.0 || ^4.0.0++ resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}++ resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==}++ resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}++snapshots:++ '@agentscope-ai/[email protected]':+ dependencies:+ '@cfworker/json-schema': 4.1.1+ '@modelcontextprotocol/sdk': 1.29.0(@cfworker/[email protected])([email protected])+ gray-matter: 4.0.3+ jsonrepair: 3.14.0+ mime-types: 3.0.2+ ollama: 0.6.3+ openai: 6.38.0([email protected])+ string-format: 2.0.0+ uuid: 13.0.2+ zod: 4.4.3+ zod-to-json-schema: 3.25.2([email protected])+ transitivePeerDependencies:+ - supports-color+ - ws++ '@babel/[email protected]':+ dependencies:+ '@babel/helper-validator-identifier': 7.28.5+ js-tokens: 4.0.0+ picocolors: 1.1.1++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.29.0+ '@babel/generator': 7.29.1+ '@babel/helper-compilation-targets': 7.28.6+ '@babel/helper-module-transforms': 7.28.6(@babel/[email protected])+ '@babel/helpers': 7.29.2+ '@babel/parser': 7.29.3+ '@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.4.3([email protected])+ gensync: 1.0.0-beta.2+ json5: 2.2.3+ semver: 6.3.1+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/parser': 7.29.3+ '@babel/types': 7.29.0+ '@jridgewell/gen-mapping': 0.3.13+ '@jridgewell/trace-mapping': 0.3.31+ jsesc: 3.1.0++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.29.0++ '@babel/[email protected]':+ dependencies:+ '@babel/compat-data': 7.29.3+ '@babel/helper-validator-option': 7.27.1+ browserslist: 4.28.2+ lru-cache: 5.1.1+ semver: 6.3.1++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-annotate-as-pure': 7.27.3+ '@babel/helper-member-expression-to-functions': 7.28.5+ '@babel/helper-optimise-call-expression': 7.27.1+ '@babel/helper-replace-supers': 7.28.6(@babel/[email protected])+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1+ '@babel/traverse': 7.29.0+ semver: 6.3.1+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/traverse': 7.29.0+ '@babel/types': 7.29.0+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/traverse': 7.29.0+ '@babel/types': 7.29.0+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-module-imports': 7.28.6+ '@babel/helper-validator-identifier': 7.28.5+ '@babel/traverse': 7.29.0+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.29.0++ '@babel/[email protected]': {}++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-member-expression-to-functions': 7.28.5+ '@babel/helper-optimise-call-expression': 7.27.1+ '@babel/traverse': 7.29.0+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/traverse': 7.29.0+ '@babel/types': 7.29.0+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]': {}++ '@babel/[email protected]': {}++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/template': 7.28.6+ '@babel/types': 7.29.0++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.29.0++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-plugin-utils': 7.28.6++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-plugin-utils': 7.28.6++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-module-transforms': 7.28.6(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.28.6+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-annotate-as-pure': 7.27.3+ '@babel/helper-create-class-features-plugin': 7.29.3(@babel/[email protected])+ '@babel/helper-plugin-utils': 7.28.6+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1+ '@babel/plugin-syntax-typescript': 7.28.6(@babel/[email protected])+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-plugin-utils': 7.28.6+ '@babel/helper-validator-option': 7.27.1+ '@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])+ '@babel/plugin-transform-modules-commonjs': 7.28.6(@babel/[email protected])+ '@babel/plugin-transform-typescript': 7.28.6(@babel/[email protected])+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.29.0+ '@babel/parser': 7.29.3+ '@babel/types': 7.29.0++ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.29.0+ '@babel/generator': 7.29.1+ '@babel/helper-globals': 7.28.0+ '@babel/parser': 7.29.3+ '@babel/template': 7.28.6+ '@babel/types': 7.29.0+ debug: 4.4.3([email protected])+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/helper-string-parser': 7.27.1+ '@babel/helper-validator-identifier': 7.28.5++ '@cfworker/[email protected]': {}++ '@cspotcode/[email protected]':+ dependencies:+ '@jridgewell/trace-mapping': 0.3.9++ '@date-fns/[email protected]': {}++ '@dotenvx/[email protected]':+ dependencies:+ commander: 11.1.0+ dotenv: 17.4.2+ eciesjs: 0.4.18+ execa: 5.1.1+ fdir: 6.5.0([email protected])+ ignore: 5.3.2+ object-treeify: 1.1.33+ picomatch: 4.0.4+ which: 4.0.0+ yocto-spinner: 1.2.0++ '@ecies/[email protected](@noble/[email protected])':+ dependencies:+ '@noble/ciphers': 1.3.0++ '@emnapi/[email protected]':+ dependencies:+ '@emnapi/wasi-threads': 1.2.1+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ dependencies:+ eslint: 10.3.0([email protected])+ eslint-visitor-keys: 3.4.3++ '@eslint-community/[email protected]': {}++ '@eslint/[email protected]':+ dependencies:+ '@eslint/object-schema': 3.0.5+ debug: 4.4.3([email protected])+ minimatch: 10.2.5+ transitivePeerDependencies:+ - supports-color++ '@eslint/[email protected]':+ dependencies:+ '@eslint/core': 1.2.1++ '@eslint/[email protected]':+ dependencies:+ '@types/json-schema': 7.0.15++ optionalDependencies:+ eslint: 10.3.0([email protected])++ '@eslint/[email protected]': {}++ '@eslint/[email protected]':+ dependencies:+ '@eslint/core': 1.2.1+ levn: 0.4.1++ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/utils': 0.2.11++ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/core': 1.7.5+ '@floating-ui/utils': 0.2.11++ dependencies:+ '@floating-ui/dom': 1.7.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ '@floating-ui/[email protected]': {}++ '@fontsource-variable/[email protected]': {}++ '@hono/[email protected]([email protected])':+ dependencies:+ hono: 4.12.18++ '@humanfs/[email protected]':+ dependencies:+ '@humanfs/types': 0.15.0++ '@humanfs/[email protected]':+ dependencies:+ '@humanfs/core': 0.19.2+ '@humanfs/types': 0.15.0+ '@humanwhocodes/retry': 0.4.3++ '@humanfs/[email protected]': {}++ '@humanwhocodes/[email protected]': {}++ '@humanwhocodes/[email protected]': {}++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-darwin-arm64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-darwin-x64': 1.2.4+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-arm64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-arm': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-ppc64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-riscv64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-s390x': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-x64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linuxmusl-arm64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linuxmusl-x64': 1.2.4+ optional: true++ '@img/[email protected]':+ dependencies:+ '@emnapi/runtime': 1.10.0+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@inquirer/[email protected]': {}++ '@inquirer/[email protected](@types/[email protected])':+ dependencies:+ '@inquirer/core': 11.1.10(@types/[email protected])+ '@inquirer/type': 4.0.5(@types/[email protected])+ optionalDependencies:+ '@types/node': 24.12.4++ '@inquirer/[email protected](@types/[email protected])':+ dependencies:+ '@inquirer/ansi': 2.0.5+ '@inquirer/figures': 2.0.5+ '@inquirer/type': 4.0.5(@types/[email protected])+ cli-width: 4.1.0+ fast-wrap-ansi: 0.2.0+ mute-stream: 3.0.0+ signal-exit: 4.1.0+ optionalDependencies:+ '@types/node': 24.12.4++ '@inquirer/[email protected]': {}++ '@inquirer/[email protected](@types/[email protected])':+ optionalDependencies:+ '@types/node': 24.12.4++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5+ '@jridgewell/trace-mapping': 0.3.31++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/gen-mapping': 0.3.13+ '@jridgewell/trace-mapping': 0.3.31++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.5.5++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.5.5++ dependencies:+ '@hono/node-server': 1.19.14([email protected])+ ajv: 8.20.0+ ajv-formats: 3.0.1([email protected])+ content-type: 1.0.5+ cors: 2.8.6+ cross-spawn: 7.0.6+ eventsource: 3.0.7+ eventsource-parser: 3.0.8+ express: 5.2.1+ express-rate-limit: 8.5.2([email protected])+ hono: 4.12.18+ jose: 6.2.3+ json-schema-typed: 8.0.2+ pkce-challenge: 5.0.1+ raw-body: 3.0.2+ zod: 3.25.76+ zod-to-json-schema: 3.25.2([email protected])+ optionalDependencies:+ '@cfworker/json-schema': 4.1.1+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@hono/node-server': 1.19.14([email protected])+ ajv: 8.20.0+ ajv-formats: 3.0.1([email protected])+ content-type: 1.0.5+ cors: 2.8.6+ cross-spawn: 7.0.6+ eventsource: 3.0.7+ eventsource-parser: 3.0.8+ express: 5.2.1+ express-rate-limit: 8.5.2([email protected])+ hono: 4.12.18+ jose: 6.2.3+ json-schema-typed: 8.0.2+ pkce-challenge: 5.0.1+ raw-body: 3.0.2+ zod: 4.4.3+ zod-to-json-schema: 3.25.2([email protected])+ optionalDependencies:+ '@cfworker/json-schema': 4.1.1+ transitivePeerDependencies:+ - supports-color++ '@mswjs/[email protected]':+ dependencies:+ '@open-draft/deferred-promise': 2.2.0+ '@open-draft/logger': 0.3.0+ '@open-draft/until': 2.1.0+ is-node-process: 1.2.0+ outvariant: 1.4.3+ strict-event-emitter: 0.5.1++ '@napi-rs/[email protected]':+ dependencies:+ '@emnapi/core': 1.10.0+ '@emnapi/runtime': 1.10.0+ '@tybys/wasm-util': 0.10.2+ optional: true++ dependencies:+ '@emnapi/core': 1.10.0+ '@emnapi/runtime': 1.10.0+ '@tybys/wasm-util': 0.10.2+ optional: true++ '@next/[email protected]': {}++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@noble/[email protected]': {}++ '@noble/[email protected]':+ dependencies:+ '@noble/hashes': 1.8.0++ '@noble/[email protected]': {}++ '@nodelib/[email protected]':+ dependencies:+ '@nodelib/fs.stat': 2.0.5+ run-parallel: 1.2.0++ '@nodelib/[email protected]': {}++ '@nodelib/[email protected]':+ dependencies:+ '@nodelib/fs.scandir': 2.1.5+ fastq: 1.20.1++ '@open-draft/[email protected]': {}++ '@open-draft/[email protected]': {}++ '@open-draft/[email protected]':+ dependencies:+ is-node-process: 1.2.0+ outvariant: 1.4.3++ '@open-draft/[email protected]': {}++ '@oxc-project/[email protected]': {}++ '@package-json/[email protected]': {}++ '@pkgr/[email protected]': {}++ '@radix-ui/[email protected]': {}++ '@radix-ui/[email protected]': {}++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-label': 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.1+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ use-sync-external-store: 1.6.0([email protected])+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/rect': 1.1.1+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected]': {}++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ dependencies:+ '@emnapi/core': 1.10.0+ '@emnapi/runtime': 1.10.0+ '@napi-rs/wasm-runtime': 1.1.4(@emnapi/[email protected])(@emnapi/[email protected])+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]':+ optional: true++ '@rolldown/[email protected]': {}++ '@rolldown/[email protected]': {}++ '@rollup/[email protected]':+ dependencies:+ '@types/estree': 1.0.9+ estree-walker: 2.0.2+ picomatch: 4.0.4++ '@sec-ant/[email protected]': {}++ '@sindresorhus/[email protected]': {}++ '@svgr/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0++ '@svgr/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0++ '@svgr/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0++ '@svgr/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0++ '@svgr/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0++ '@svgr/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0++ '@svgr/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0++ '@svgr/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0++ '@svgr/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@svgr/babel-plugin-add-jsx-attribute': 8.0.0(@babel/[email protected])+ '@svgr/babel-plugin-remove-jsx-attribute': 8.0.0(@babel/[email protected])+ '@svgr/babel-plugin-remove-jsx-empty-expression': 8.0.0(@babel/[email protected])+ '@svgr/babel-plugin-replace-jsx-attribute-value': 8.0.0(@babel/[email protected])+ '@svgr/babel-plugin-svg-dynamic-title': 8.0.0(@babel/[email protected])+ '@svgr/babel-plugin-svg-em-dimensions': 8.0.0(@babel/[email protected])+ '@svgr/babel-plugin-transform-react-native-svg': 8.1.0(@babel/[email protected])+ '@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/[email protected])++ '@svgr/[email protected]([email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@svgr/babel-preset': 8.1.0(@babel/[email protected])+ camelcase: 6.3.0+ cosmiconfig: 8.3.6([email protected])+ snake-case: 3.0.4+ transitivePeerDependencies:+ - supports-color+ - typescript++ '@svgr/[email protected]':+ dependencies:+ '@babel/types': 7.29.0+ entities: 4.5.0++ dependencies:+ '@babel/core': 7.29.0+ '@svgr/babel-preset': 8.1.0(@babel/[email protected])+ '@svgr/core': 8.1.0([email protected])+ '@svgr/hast-util-to-babel-ast': 8.0.0+ svg-parser: 2.0.4+ transitivePeerDependencies:+ - supports-color++ '@swc/[email protected]':+ dependencies:+ tslib: 2.8.1++ '@tailwindcss/[email protected]':+ dependencies:+ '@jridgewell/remapping': 2.3.5+ enhanced-resolve: 5.21.3+ jiti: 2.7.0+ lightningcss: 1.32.0+ magic-string: 0.30.21+ source-map-js: 1.2.1+ tailwindcss: 4.3.0++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optionalDependencies:+ '@tailwindcss/oxide-android-arm64': 4.3.0+ '@tailwindcss/oxide-darwin-arm64': 4.3.0+ '@tailwindcss/oxide-darwin-x64': 4.3.0+ '@tailwindcss/oxide-freebsd-x64': 4.3.0+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.0+ '@tailwindcss/oxide-linux-arm64-gnu': 4.3.0+ '@tailwindcss/oxide-linux-arm64-musl': 4.3.0+ '@tailwindcss/oxide-linux-x64-gnu': 4.3.0+ '@tailwindcss/oxide-linux-x64-musl': 4.3.0+ '@tailwindcss/oxide-wasm32-wasi': 4.3.0+ '@tailwindcss/oxide-win32-arm64-msvc': 4.3.0+ '@tailwindcss/oxide-win32-x64-msvc': 4.3.0++ '@tailwindcss/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':+ dependencies:+ '@tailwindcss/node': 4.3.0+ '@tailwindcss/oxide': 4.3.0+ tailwindcss: 4.3.0++ '@ts-morph/[email protected]':+ dependencies:+ fast-glob: 3.3.3+ minimatch: 10.2.5+ path-browserify: 1.0.1++ '@tsconfig/[email protected]': {}++ '@tsconfig/[email protected]': {}++ '@tsconfig/[email protected]': {}++ '@tsconfig/[email protected]': {}++ '@tybys/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@types/[email protected]':+ dependencies:+ '@types/connect': 3.4.38+ '@types/node': 20.19.41++ '@types/[email protected]':+ dependencies:+ '@types/node': 20.19.41++ '@types/[email protected]':+ dependencies:+ '@types/node': 20.19.41++ '@types/[email protected]':+ dependencies:+ '@types/ms': 2.1.0++ '@types/[email protected]': {}++ '@types/[email protected]':+ dependencies:+ '@types/estree': 1.0.9++ '@types/[email protected]': {}++ '@types/[email protected]':+ dependencies:+ '@types/node': 20.19.41+ '@types/qs': 6.15.1+ '@types/range-parser': 1.2.7+ '@types/send': 1.2.1++ '@types/[email protected]':+ dependencies:+ '@types/body-parser': 1.19.6+ '@types/express-serve-static-core': 4.19.8+ '@types/qs': 6.15.1+ '@types/serve-static': 1.15.10++ '@types/[email protected]':+ dependencies:+ '@types/unist': 3.0.3++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected]':+ dependencies:+ '@types/unist': 3.0.3++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected]':+ dependencies:+ undici-types: 6.21.0++ '@types/[email protected]':+ dependencies:+ undici-types: 7.16.0++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected](@types/[email protected])':+ dependencies:+ '@types/react': 19.2.14++ '@types/[email protected]':+ dependencies:+ csstype: 3.2.3++ '@types/[email protected]':+ dependencies:+ '@types/mime': 1.3.5+ '@types/node': 20.19.41++ '@types/[email protected]':+ dependencies:+ '@types/node': 20.19.41++ '@types/[email protected]':+ dependencies:+ '@types/http-errors': 2.0.5+ '@types/node': 20.19.41+ '@types/send': 0.17.6++ '@types/[email protected]':+ dependencies:+ '@types/node': 24.12.4++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':+ dependencies:+ '@eslint-community/regexpp': 4.12.2+ '@typescript-eslint/scope-manager': 8.59.3+ '@typescript-eslint/visitor-keys': 8.59.3+ eslint: 10.3.0([email protected])+ ignore: 7.0.5+ natural-compare: 1.4.0+ ts-api-utils: 2.5.0([email protected])+ typescript: 6.0.3+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@typescript-eslint/scope-manager': 8.59.3+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/typescript-estree': 8.59.3([email protected])+ '@typescript-eslint/visitor-keys': 8.59.3+ debug: 4.4.3([email protected])+ eslint: 10.3.0([email protected])+ typescript: 6.0.3+ transitivePeerDependencies:+ - supports-color++ '@typescript-eslint/[email protected]([email protected])':+ dependencies:+ '@typescript-eslint/tsconfig-utils': 8.59.3([email protected])+ '@typescript-eslint/types': 8.59.3+ debug: 4.4.3([email protected])+ typescript: 6.0.3+ transitivePeerDependencies:+ - supports-color++ '@typescript-eslint/[email protected]':+ dependencies:+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/visitor-keys': 8.59.3++ '@typescript-eslint/[email protected]([email protected])':+ dependencies:+ typescript: 6.0.3++ dependencies:+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/typescript-estree': 8.59.3([email protected])+ debug: 4.4.3([email protected])+ eslint: 10.3.0([email protected])+ ts-api-utils: 2.5.0([email protected])+ typescript: 6.0.3+ transitivePeerDependencies:+ - supports-color++ '@typescript-eslint/[email protected]': {}++ '@typescript-eslint/[email protected]([email protected])':+ dependencies:+ '@typescript-eslint/project-service': 8.59.3([email protected])+ '@typescript-eslint/tsconfig-utils': 8.59.3([email protected])+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/visitor-keys': 8.59.3+ debug: 4.4.3([email protected])+ minimatch: 10.2.5+ semver: 7.8.0+ tinyglobby: 0.2.16+ ts-api-utils: 2.5.0([email protected])+ typescript: 6.0.3+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))+ '@typescript-eslint/scope-manager': 8.59.3+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/typescript-estree': 8.59.3([email protected])+ eslint: 10.3.0([email protected])+ typescript: 6.0.3+ transitivePeerDependencies:+ - supports-color++ '@typescript-eslint/[email protected]':+ dependencies:+ '@typescript-eslint/types': 8.59.3+ eslint-visitor-keys: 5.0.1++ '@ungap/[email protected]': {}++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ dependencies:+ '@napi-rs/wasm-runtime': 0.2.12+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':+ dependencies:+ '@rolldown/pluginutils': 1.0.0-rc.7++ dependencies:+ mime-types: 2.1.35+ negotiator: 0.6.3++ dependencies:+ mime-types: 3.0.2+ negotiator: 1.0.0++ dependencies:+ acorn: 8.16.0++ dependencies:+ acorn: 8.16.0++ [email protected]: {}++ [email protected]: {}++ optionalDependencies:+ ajv: 8.20.0++ dependencies:+ fast-deep-equal: 3.1.3+ fast-json-stable-stringify: 2.1.0+ json-schema-traverse: 0.4.1+ uri-js: 4.4.1++ dependencies:+ fast-deep-equal: 3.1.3+ fast-uri: 3.1.2+ json-schema-traverse: 1.0.0+ require-from-string: 2.0.2++ dependencies:+ environment: 1.1.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ color-convert: 2.0.1++ [email protected]: {}++ dependencies:+ normalize-path: 3.0.0+ picomatch: 2.3.2++ [email protected]: {}++ dependencies:+ sprintf-js: 1.0.3++ [email protected]: {}++ dependencies:+ tslib: 2.8.1++ [email protected]: {}++ dependencies:+ tslib: 2.8.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ bytes: 3.1.2+ content-type: 1.0.5+ debug: 2.6.9+ depd: 2.0.0+ destroy: 1.2.0+ http-errors: 2.0.1+ iconv-lite: 0.4.24+ on-finished: 2.4.1+ qs: 6.15.1+ raw-body: 2.5.3+ type-is: 1.6.18+ unpipe: 1.0.0+ transitivePeerDependencies:+ - supports-color++ dependencies:+ bytes: 3.1.2+ content-type: 1.0.5+ debug: 4.4.3([email protected])+ http-errors: 2.0.1+ iconv-lite: 0.7.2+ on-finished: 2.4.1+ qs: 6.15.1+ raw-body: 3.0.2+ type-is: 2.1.0+ transitivePeerDependencies:+ - supports-color++ dependencies:+ balanced-match: 4.0.4++ dependencies:+ fill-range: 7.1.1++ dependencies:+ baseline-browser-mapping: 2.10.29+ caniuse-lite: 1.0.30001792+ electron-to-chromium: 1.5.355+ node-releases: 2.0.44+ update-browserslist-db: 1.2.3([email protected])++ dependencies:+ run-applescript: 7.1.0++ [email protected]: {}++ dependencies:+ es-errors: 1.3.0+ function-bind: 1.1.2++ dependencies:+ call-bind-apply-helpers: 1.0.2+ get-intrinsic: 1.3.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ ansi-styles: 4.3.0+ supports-color: 7.2.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ anymatch: 3.1.3+ braces: 3.0.3+ glob-parent: 5.1.2+ is-binary-path: 2.1.0+ is-glob: 4.0.3+ normalize-path: 3.0.0+ readdirp: 3.6.0+ optionalDependencies:+ fsevents: 2.3.3++ dependencies:+ clsx: 2.1.1++ dependencies:+ restore-cursor: 5.1.0++ [email protected]: {}++ dependencies:+ slice-ansi: 8.0.0+ string-width: 8.2.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ string-width: 4.2.3+ strip-ansi: 6.0.1+ wrap-ansi: 7.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ color-name: 1.1.4++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ chalk: 4.1.2+ date-fns: 2.30.0+ lodash: 4.18.1+ rxjs: 7.8.2+ shell-quote: 1.8.3+ spawn-command: 0.0.2+ supports-color: 8.1.1+ tree-kill: 1.2.2+ yargs: 17.7.2++ dependencies:+ safe-buffer: 5.2.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ object-assign: 4.1.1+ vary: 1.1.2++ dependencies:+ import-fresh: 3.3.1+ js-yaml: 4.1.1+ parse-json: 5.2.0+ path-type: 4.0.0+ optionalDependencies:+ typescript: 6.0.3++ dependencies:+ env-paths: 2.2.1+ import-fresh: 3.3.1+ js-yaml: 4.1.1+ parse-json: 5.2.0+ optionalDependencies:+ typescript: 6.0.3++ [email protected]: {}++ dependencies:+ luxon: 3.7.2++ dependencies:+ path-key: 3.1.1+ shebang-command: 2.0.0+ which: 2.0.2++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@babel/runtime': 7.29.2++ [email protected]: {}++ dependencies:+ ms: 2.0.0++ dependencies:+ ms: 2.1.3+ optionalDependencies:+ supports-color: 5.5.0++ dependencies:+ character-entities: 2.0.2++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ bundle-name: 4.1.0+ default-browser-id: 5.0.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ dequal: 2.0.3++ [email protected]: {}++ [email protected]: {}++ dependencies:+ no-case: 3.0.4+ tslib: 2.8.1++ [email protected]: {}++ dependencies:+ call-bind-apply-helpers: 1.0.2+ es-errors: 1.3.0+ gopd: 1.2.0++ dependencies:+ '@ecies/ciphers': 0.2.6(@noble/[email protected])+ '@noble/ciphers': 1.3.0+ '@noble/curves': 1.9.7+ '@noble/hashes': 1.8.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ graceful-fs: 4.2.11+ tapable: 2.3.3++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-arrayish: 0.2.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ es-errors: 1.3.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ eslint: 10.3.0([email protected])++ dependencies:+ get-tsconfig: 4.14.0+ stable-hash-x: 0.2.0+ optionalDependencies:+ unrs-resolver: 1.11.1++ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected])):+ dependencies:+ '@package-json/types': 0.0.12+ '@typescript-eslint/types': 8.59.3+ comment-parser: 1.4.6+ debug: 4.4.3([email protected])+ eslint: 10.3.0([email protected])+ eslint-import-context: 0.1.9([email protected])+ is-glob: 4.0.3+ minimatch: 10.2.5+ semver: 7.8.0+ stable-hash-x: 0.2.0+ unrs-resolver: 1.11.1+ optionalDependencies:+ transitivePeerDependencies:+ - supports-color++ [email protected]([email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected]):+ dependencies:+ eslint: 10.3.0([email protected])+ prettier: 3.8.3+ prettier-linter-helpers: 1.0.1+ synckit: 0.11.12+ optionalDependencies:+ eslint-config-prettier: 10.1.8([email protected]([email protected]))++ dependencies:+ '@babel/core': 7.29.0+ '@babel/parser': 7.29.3+ eslint: 10.3.0([email protected])+ hermes-parser: 0.25.1+ zod: 4.4.3+ zod-validation-error: 4.0.2([email protected])+ transitivePeerDependencies:+ - supports-color++ dependencies:+ eslint: 10.3.0([email protected])++ dependencies:+ '@types/esrecurse': 4.3.1+ '@types/estree': 1.0.9+ esrecurse: 4.3.0+ estraverse: 5.3.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))+ '@eslint-community/regexpp': 4.12.2+ '@eslint/config-array': 0.23.5+ '@eslint/config-helpers': 0.5.5+ '@eslint/core': 1.2.1+ '@eslint/plugin-kit': 0.7.1+ '@humanfs/node': 0.16.8+ '@humanwhocodes/module-importer': 1.0.1+ '@humanwhocodes/retry': 0.4.3+ '@types/estree': 1.0.9+ ajv: 6.15.0+ cross-spawn: 7.0.6+ debug: 4.4.3([email protected])+ escape-string-regexp: 4.0.0+ eslint-scope: 9.1.2+ eslint-visitor-keys: 5.0.1+ espree: 11.2.0+ esquery: 1.7.0+ esutils: 2.0.3+ fast-deep-equal: 3.1.3+ file-entry-cache: 8.0.0+ find-up: 5.0.0+ glob-parent: 6.0.2+ ignore: 5.3.2+ imurmurhash: 0.1.4+ is-glob: 4.0.3+ json-stable-stringify-without-jsonify: 1.0.1+ minimatch: 10.2.5+ natural-compare: 1.4.0+ optionator: 0.9.4+ optionalDependencies:+ jiti: 2.7.0+ transitivePeerDependencies:+ - supports-color++ dependencies:+ acorn: 8.16.0+ acorn-jsx: 5.3.2([email protected])+ eslint-visitor-keys: 5.0.1++ [email protected]: {}++ dependencies:+ estraverse: 5.3.0++ dependencies:+ estraverse: 5.3.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ eventsource-parser: 3.0.8++ dependencies:+ cross-spawn: 7.0.6+ get-stream: 6.0.1+ human-signals: 2.1.0+ is-stream: 2.0.1+ merge-stream: 2.0.0+ npm-run-path: 4.0.1+ onetime: 5.1.2+ signal-exit: 3.0.7+ strip-final-newline: 2.0.0++ dependencies:+ '@sindresorhus/merge-streams': 4.0.0+ cross-spawn: 7.0.6+ figures: 6.1.0+ get-stream: 9.0.1+ human-signals: 8.0.1+ is-plain-obj: 4.1.0+ is-stream: 4.0.1+ npm-run-path: 6.0.0+ pretty-ms: 9.3.0+ signal-exit: 4.1.0+ strip-final-newline: 4.0.0+ yoctocolors: 2.1.2++ dependencies:+ express: 5.2.1+ ip-address: 10.2.0++ dependencies:+ accepts: 1.3.8+ array-flatten: 1.1.1+ body-parser: 1.20.5+ content-disposition: 0.5.4+ content-type: 1.0.5+ cookie: 0.7.2+ cookie-signature: 1.0.7+ debug: 2.6.9+ depd: 2.0.0+ encodeurl: 2.0.0+ escape-html: 1.0.3+ etag: 1.8.1+ finalhandler: 1.3.2+ fresh: 0.5.2+ http-errors: 2.0.1+ merge-descriptors: 1.0.3+ methods: 1.1.2+ on-finished: 2.4.1+ parseurl: 1.3.3+ path-to-regexp: 0.1.13+ proxy-addr: 2.0.7+ qs: 6.15.1+ range-parser: 1.2.1+ safe-buffer: 5.2.1+ send: 0.19.2+ serve-static: 1.16.3+ setprototypeof: 1.2.0+ statuses: 2.0.2+ type-is: 1.6.18+ utils-merge: 1.0.1+ vary: 1.1.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ accepts: 2.0.0+ body-parser: 2.2.2+ content-disposition: 1.1.0+ content-type: 1.0.5+ cookie: 0.7.2+ cookie-signature: 1.2.2+ debug: 4.4.3([email protected])+ depd: 2.0.0+ encodeurl: 2.0.0+ escape-html: 1.0.3+ etag: 1.8.1+ finalhandler: 2.1.1+ fresh: 2.0.0+ http-errors: 2.0.1+ merge-descriptors: 2.0.0+ mime-types: 3.0.2+ on-finished: 2.4.1+ once: 1.4.0+ parseurl: 1.3.3+ proxy-addr: 2.0.7+ qs: 6.15.1+ range-parser: 1.2.1+ router: 2.2.0+ send: 1.2.1+ serve-static: 2.2.1+ statuses: 2.0.2+ type-is: 2.1.0+ vary: 1.1.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ is-extendable: 0.1.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@nodelib/fs.stat': 2.0.5+ '@nodelib/fs.walk': 1.2.8+ glob-parent: 5.1.2+ merge2: 1.4.1+ micromatch: 4.0.8++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ fast-string-truncated-width: 3.0.3++ [email protected]: {}++ dependencies:+ fast-string-width: 3.0.2++ dependencies:+ reusify: 1.1.0++ optionalDependencies:+ picomatch: 4.0.4++ dependencies:+ node-domexception: 1.0.0+ web-streams-polyfill: 3.3.3++ dependencies:+ is-unicode-supported: 2.1.0++ dependencies:+ flat-cache: 4.0.1++ dependencies:+ to-regex-range: 5.0.1++ dependencies:+ debug: 2.6.9+ encodeurl: 2.0.0+ escape-html: 1.0.3+ on-finished: 2.4.1+ parseurl: 1.3.3+ statuses: 2.0.2+ unpipe: 1.0.0+ transitivePeerDependencies:+ - supports-color++ dependencies:+ debug: 4.4.3([email protected])+ encodeurl: 2.0.0+ escape-html: 1.0.3+ on-finished: 2.4.1+ parseurl: 1.3.3+ statuses: 2.0.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ locate-path: 6.0.0+ path-exists: 4.0.0++ dependencies:+ flatted: 3.4.2+ keyv: 4.5.4++ [email protected]: {}++ dependencies:+ fetch-blob: 3.2.0++ [email protected]: {}++ dependencies:+ motion-dom: 12.40.0+ motion-utils: 12.39.0+ tslib: 2.8.1+ optionalDependencies:+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ [email protected]: {}++ [email protected]: {}++ dependencies:+ graceful-fs: 4.2.11+ jsonfile: 6.2.1+ universalify: 2.0.1++ optional: true++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ 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.3+ math-intrinsics: 1.1.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ dunder-proto: 1.0.1+ es-object-atoms: 1.1.1++ [email protected]: {}++ dependencies:+ '@sec-ant/readable-stream': 0.4.1+ is-stream: 4.0.1++ dependencies:+ resolve-pkg-maps: 1.0.0++ dependencies:+ is-glob: 4.0.3++ dependencies:+ is-glob: 4.0.3++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ js-yaml: 3.14.2+ kind-of: 6.0.3+ section-matter: 1.0.0+ strip-bom-string: 1.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ function-bind: 1.1.2++ dependencies:+ '@types/estree': 1.0.9+ '@types/hast': 3.0.4+ '@types/unist': 3.0.3+ comma-separated-tokens: 2.0.3+ devlop: 1.1.0+ estree-util-is-identifier-name: 3.0.0+ hast-util-whitespace: 3.0.0+ mdast-util-mdx-expression: 2.0.1+ mdast-util-mdx-jsx: 3.2.0+ mdast-util-mdxjs-esm: 2.0.1+ property-information: 7.1.0+ space-separated-tokens: 2.0.2+ style-to-js: 1.1.21+ unist-util-position: 5.0.0+ vfile-message: 4.0.3+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/hast': 3.0.4++ dependencies:+ '@types/set-cookie-parser': 2.4.10+ set-cookie-parser: 3.1.0++ [email protected]: {}++ dependencies:+ hermes-estree: 0.25.1++ [email protected]: {}++ dependencies:+ void-elements: 3.1.0++ [email protected]: {}++ dependencies:+ depd: 2.0.0+ inherits: 2.0.4+ setprototypeof: 1.2.0+ statuses: 2.0.2+ toidentifier: 1.0.1++ dependencies:+ agent-base: 7.1.4+ debug: 4.4.3([email protected])+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@babel/runtime': 7.29.2++ optionalDependencies:+ typescript: 6.0.3++ dependencies:+ safer-buffer: 2.1.2++ dependencies:+ safer-buffer: 2.1.2++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ parent-module: 1.0.1+ resolve-from: 4.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-alphabetical: 2.0.1+ is-decimal: 2.0.1++ [email protected]: {}++ dependencies:+ binary-extensions: 2.3.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ get-east-asian-width: 1.6.0++ dependencies:+ is-extglob: 2.1.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-docker: 3.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-inside-container: 1.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ argparse: 1.0.10+ esprima: 4.0.1++ dependencies:+ argparse: 2.0.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ universalify: 2.0.1+ optionalDependencies:+ graceful-fs: 4.2.11++ [email protected]: {}++ dependencies:+ json-buffer: 3.0.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ prelude-ls: 1.2.1+ type-check: 0.4.0++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ dependencies:+ detect-libc: 2.1.2+ optionalDependencies:+ lightningcss-android-arm64: 1.32.0+ lightningcss-darwin-arm64: 1.32.0+ lightningcss-darwin-x64: 1.32.0+ lightningcss-freebsd-x64: 1.32.0+ lightningcss-linux-arm-gnueabihf: 1.32.0+ lightningcss-linux-arm64-gnu: 1.32.0+ lightningcss-linux-arm64-musl: 1.32.0+ lightningcss-linux-x64-gnu: 1.32.0+ lightningcss-linux-x64-musl: 1.32.0+ lightningcss-win32-arm64-msvc: 1.32.0+ lightningcss-win32-x64-msvc: 1.32.0++ [email protected]: {}++ dependencies:+ listr2: 10.2.1+ picomatch: 4.0.4+ string-argv: 0.3.2+ tinyexec: 1.1.2+ optionalDependencies:+ yaml: 2.9.0++ dependencies:+ cli-truncate: 5.2.0+ eventemitter3: 5.0.4+ log-update: 6.1.0+ rfdc: 1.4.1+ wrap-ansi: 10.0.0++ dependencies:+ p-locate: 5.0.0++ [email protected]: {}++ dependencies:+ chalk: 5.6.2+ is-unicode-supported: 1.3.0++ dependencies:+ ansi-escapes: 7.3.0+ cli-cursor: 5.0.0+ slice-ansi: 7.1.2+ strip-ansi: 7.2.0+ wrap-ansi: 9.0.2++ [email protected]: {}++ dependencies:+ tslib: 2.8.1++ dependencies:+ yallist: 3.1.1++ dependencies:+ react: 19.2.6++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@types/mdast': 4.0.4+ escape-string-regexp: 5.0.0+ unist-util-is: 6.0.1+ unist-util-visit-parents: 6.0.2++ dependencies:+ '@types/mdast': 4.0.4+ '@types/unist': 3.0.3+ decode-named-character-reference: 1.3.0+ devlop: 1.1.0+ mdast-util-to-string: 4.0.0+ micromark: 4.0.2+ micromark-util-decode-numeric-character-reference: 2.0.2+ micromark-util-decode-string: 2.0.1+ micromark-util-normalize-identifier: 2.0.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2+ unist-util-stringify-position: 4.0.0+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/mdast': 4.0.4+ ccount: 2.0.1+ devlop: 1.1.0+ mdast-util-find-and-replace: 3.0.2+ micromark-util-character: 2.1.1++ dependencies:+ '@types/mdast': 4.0.4+ devlop: 1.1.0+ mdast-util-from-markdown: 2.0.3+ mdast-util-to-markdown: 2.1.2+ micromark-util-normalize-identifier: 2.0.1+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/mdast': 4.0.4+ mdast-util-from-markdown: 2.0.3+ mdast-util-to-markdown: 2.1.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/mdast': 4.0.4+ devlop: 1.1.0+ markdown-table: 3.0.4+ mdast-util-from-markdown: 2.0.3+ mdast-util-to-markdown: 2.1.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/mdast': 4.0.4+ devlop: 1.1.0+ mdast-util-from-markdown: 2.0.3+ mdast-util-to-markdown: 2.1.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ mdast-util-from-markdown: 2.0.3+ mdast-util-gfm-autolink-literal: 2.0.1+ mdast-util-gfm-footnote: 2.1.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.1.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/estree-jsx': 1.0.5+ '@types/hast': 3.0.4+ '@types/mdast': 4.0.4+ devlop: 1.1.0+ mdast-util-from-markdown: 2.0.3+ mdast-util-to-markdown: 2.1.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/estree-jsx': 1.0.5+ '@types/hast': 3.0.4+ '@types/mdast': 4.0.4+ '@types/unist': 3.0.3+ ccount: 2.0.1+ devlop: 1.1.0+ mdast-util-from-markdown: 2.0.3+ mdast-util-to-markdown: 2.1.2+ parse-entities: 4.0.2+ stringify-entities: 4.0.4+ unist-util-stringify-position: 4.0.0+ vfile-message: 4.0.3+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/estree-jsx': 1.0.5+ '@types/hast': 3.0.4+ '@types/mdast': 4.0.4+ devlop: 1.1.0+ mdast-util-from-markdown: 2.0.3+ mdast-util-to-markdown: 2.1.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/mdast': 4.0.4+ unist-util-is: 6.0.1++ dependencies:+ '@types/hast': 3.0.4+ '@types/mdast': 4.0.4+ '@ungap/structured-clone': 1.3.1+ devlop: 1.1.0+ micromark-util-sanitize-uri: 2.0.1+ trim-lines: 3.0.1+ unist-util-position: 5.0.0+ unist-util-visit: 5.1.0+ vfile: 6.0.3++ dependencies:+ '@types/mdast': 4.0.4+ '@types/unist': 3.0.3+ longest-streak: 3.1.0+ mdast-util-phrasing: 4.1.0+ mdast-util-to-string: 4.0.0+ micromark-util-classify-character: 2.0.1+ micromark-util-decode-string: 2.0.1+ unist-util-visit: 5.1.0+ zwitch: 2.0.4++ dependencies:+ '@types/mdast': 4.0.4++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ decode-named-character-reference: 1.3.0+ devlop: 1.1.0+ micromark-factory-destination: 2.0.1+ micromark-factory-label: 2.0.1+ micromark-factory-space: 2.0.1+ micromark-factory-title: 2.0.1+ micromark-factory-whitespace: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-chunked: 2.0.1+ micromark-util-classify-character: 2.0.1+ micromark-util-html-tag-name: 2.0.1+ micromark-util-normalize-identifier: 2.0.1+ micromark-util-resolve-all: 2.0.1+ micromark-util-subtokenize: 2.1.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-character: 2.1.1+ micromark-util-sanitize-uri: 2.0.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ devlop: 1.1.0+ micromark-core-commonmark: 2.0.3+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-normalize-identifier: 2.0.1+ micromark-util-sanitize-uri: 2.0.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ devlop: 1.1.0+ micromark-util-chunked: 2.0.1+ micromark-util-classify-character: 2.0.1+ micromark-util-resolve-all: 2.0.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ devlop: 1.1.0+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-types: 2.0.2++ dependencies:+ devlop: 1.1.0+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-extension-gfm-autolink-literal: 2.1.0+ micromark-extension-gfm-footnote: 2.1.0+ micromark-extension-gfm-strikethrough: 2.1.0+ micromark-extension-gfm-table: 2.1.1+ micromark-extension-gfm-tagfilter: 2.0.0+ micromark-extension-gfm-task-list-item: 2.1.0+ micromark-util-combine-extensions: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ devlop: 1.1.0+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-character: 2.1.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-symbol: 2.0.1++ dependencies:+ micromark-util-character: 2.1.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-chunked: 2.0.1+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-symbol: 2.0.1++ dependencies:+ decode-named-character-reference: 1.3.0+ micromark-util-character: 2.1.1+ micromark-util-decode-numeric-character-reference: 2.0.2+ micromark-util-symbol: 2.0.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ micromark-util-symbol: 2.0.1++ dependencies:+ micromark-util-types: 2.0.2++ dependencies:+ micromark-util-character: 2.1.1+ micromark-util-encode: 2.0.1+ micromark-util-symbol: 2.0.1++ dependencies:+ devlop: 1.1.0+ micromark-util-chunked: 2.0.1+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@types/debug': 4.1.13+ debug: 4.4.3([email protected])+ decode-named-character-reference: 1.3.0+ devlop: 1.1.0+ micromark-core-commonmark: 2.0.3+ micromark-factory-space: 2.0.1+ micromark-util-character: 2.1.1+ micromark-util-chunked: 2.0.1+ micromark-util-combine-extensions: 2.0.1+ micromark-util-decode-numeric-character-reference: 2.0.2+ micromark-util-encode: 2.0.1+ micromark-util-normalize-identifier: 2.0.1+ micromark-util-resolve-all: 2.0.1+ micromark-util-sanitize-uri: 2.0.1+ micromark-util-subtokenize: 2.1.0+ micromark-util-symbol: 2.0.1+ micromark-util-types: 2.0.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ braces: 3.0.3+ picomatch: 2.3.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ mime-db: 1.52.0++ dependencies:+ mime-db: 1.54.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ brace-expansion: 5.0.6++ [email protected]: {}++ dependencies:+ motion-utils: 12.39.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@inquirer/confirm': 6.0.13(@types/[email protected])+ '@mswjs/interceptors': 0.41.9+ '@open-draft/deferred-promise': 3.0.0+ '@types/statuses': 2.0.6+ cookie: 1.1.1+ graphql: 16.14.0+ headers-polyfill: 5.0.1+ is-node-process: 1.2.0+ outvariant: 1.4.3+ path-to-regexp: 6.3.0+ picocolors: 1.1.1+ rettime: 0.11.11+ statuses: 2.0.2+ strict-event-emitter: 0.5.1+ tough-cookie: 6.0.1+ type-fest: 5.6.0+ until-async: 3.0.2+ yargs: 17.7.2+ optionalDependencies:+ typescript: 6.0.3+ transitivePeerDependencies:+ - '@types/node'++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ [email protected](@babel/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@next/env': 16.2.6+ '@swc/helpers': 0.5.15+ baseline-browser-mapping: 2.10.29+ caniuse-lite: 1.0.30001792+ postcss: 8.4.31+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])+ optionalDependencies:+ '@next/swc-darwin-arm64': 16.2.6+ '@next/swc-darwin-x64': 16.2.6+ '@next/swc-linux-arm64-gnu': 16.2.6+ '@next/swc-linux-arm64-musl': 16.2.6+ '@next/swc-linux-x64-gnu': 16.2.6+ '@next/swc-linux-x64-musl': 16.2.6+ '@next/swc-win32-arm64-msvc': 16.2.6+ '@next/swc-win32-x64-msvc': 16.2.6+ sharp: 0.34.5+ transitivePeerDependencies:+ - '@babel/core'+ - babel-plugin-macros++ dependencies:+ lower-case: 2.0.2+ tslib: 2.8.1++ [email protected]: {}++ dependencies:+ data-uri-to-buffer: 4.0.1+ fetch-blob: 3.2.0+ formdata-polyfill: 4.0.10++ [email protected]: {}++ dependencies:+ chokidar: 3.6.0+ debug: 4.4.3([email protected])+ ignore-by-default: 1.0.1+ minimatch: 10.2.5+ pstree.remy: 1.1.8+ semver: 7.8.0+ simple-update-notifier: 2.0.0+ supports-color: 5.5.0+ touch: 3.1.1+ undefsafe: 2.0.5++ [email protected]: {}++ dependencies:+ path-key: 3.1.1++ dependencies:+ path-key: 4.0.0+ unicorn-magic: 0.3.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ whatwg-fetch: 3.6.20++ dependencies:+ ee-first: 1.1.1++ [email protected](@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected](@babel/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ dependencies:+ wrappy: 1.0.2++ dependencies:+ mimic-fn: 2.1.0++ dependencies:+ mimic-function: 5.0.1++ dependencies:+ default-browser: 5.5.0+ define-lazy-prop: 3.0.0+ is-in-ssh: 1.0.0+ is-inside-container: 1.0.0+ powershell-utils: 0.1.0+ wsl-utils: 0.3.1++ optionalDependencies:+ zod: 4.4.3++ dependencies:+ deep-is: 0.1.4+ fast-levenshtein: 2.0.6+ levn: 0.4.1+ prelude-ls: 1.2.1+ type-check: 0.4.0+ word-wrap: 1.2.5++ dependencies:+ chalk: 5.6.2+ cli-cursor: 5.0.0+ cli-spinners: 2.9.2+ is-interactive: 2.0.0+ is-unicode-supported: 2.1.0+ log-symbols: 6.0.0+ stdin-discarder: 0.2.2+ string-width: 7.2.0+ strip-ansi: 7.2.0++ [email protected]: {}++ dependencies:+ yocto-queue: 0.1.0++ dependencies:+ p-limit: 3.1.0++ dependencies:+ callsites: 3.1.0++ dependencies:+ '@types/unist': 2.0.11+ character-entities-legacy: 3.0.0+ character-reference-invalid: 2.0.1+ decode-named-character-reference: 1.3.0+ is-alphanumerical: 2.0.1+ is-decimal: 2.0.1+ is-hexadecimal: 2.0.1++ dependencies:+ '@babel/code-frame': 7.29.0+ error-ex: 1.3.4+ json-parse-even-better-errors: 2.3.1+ lines-and-columns: 1.2.4++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ cssesc: 3.0.0+ util-deprecate: 1.0.2++ dependencies:+ nanoid: 3.3.12+ picocolors: 1.1.1+ source-map-js: 1.2.1++ dependencies:+ nanoid: 3.3.12+ picocolors: 1.1.1+ source-map-js: 1.2.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ fast-diff: 1.3.0++ [email protected]: {}++ dependencies:+ parse-ms: 4.0.0++ dependencies:+ kleur: 3.0.3+ sisteransi: 1.0.5++ [email protected]: {}++ dependencies:+ forwarded: 0.2.0+ ipaddr.js: 1.9.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ side-channel: 1.1.0++ [email protected]: {}++ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-accessible-icon': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-accordion': 1.2.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-alert-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-aspect-ratio': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-avatar': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-checkbox': 1.3.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context-menu': 2.2.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dropdown-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-form': 0.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-hover-card': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-label': 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menubar': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-navigation-menu': 1.2.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-one-time-password-field': 0.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-password-toggle-field': 0.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-progress': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-radio-group': 1.3.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-scroll-area': 1.2.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-select': 2.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slider': 1.3.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-switch': 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tabs': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toast': 1.2.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toolbar': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tooltip': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ [email protected]: {}++ dependencies:+ bytes: 3.1.2+ http-errors: 2.0.1+ iconv-lite: 0.4.24+ unpipe: 1.0.0++ dependencies:+ bytes: 3.1.2+ http-errors: 2.0.1+ iconv-lite: 0.7.2+ unpipe: 1.0.0++ dependencies:+ '@date-fns/tz': 1.4.1+ date-fns: 4.1.0+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ scheduler: 0.27.0++ [email protected]([email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected]):+ dependencies:+ '@babel/runtime': 7.29.2+ html-parse-stringify: 3.0.1+ i18next: 26.2.0([email protected])+ react: 19.2.6+ use-sync-external-store: 1.6.0([email protected])+ optionalDependencies:+ react-dom: 19.2.6([email protected])+ typescript: 6.0.3++ dependencies:+ '@types/hast': 3.0.4+ '@types/mdast': 4.0.4+ '@types/react': 19.2.14+ devlop: 1.1.0+ hast-util-to-jsx-runtime: 2.3.6+ html-url-attributes: 3.0.1+ mdast-util-to-hast: 13.2.1+ react: 19.2.6+ remark-parse: 11.0.0+ remark-rehype: 11.1.2+ unified: 11.0.5+ unist-util-visit: 5.1.0+ vfile: 6.0.3+ transitivePeerDependencies:+ - supports-color++ dependencies:+ react: 19.2.6+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ dependencies:+ cookie: 1.1.1+ react: 19.2.6+ set-cookie-parser: 2.7.2+ optionalDependencies:+ react-dom: 19.2.6([email protected])++ dependencies:+ get-nonce: 1.0.1+ react: 19.2.6+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14++ [email protected]: {}++ dependencies:+ picomatch: 2.3.2++ dependencies:+ ast-types: 0.16.1+ esprima: 4.0.1+ source-map: 0.6.1+ tiny-invariant: 1.3.3+ tslib: 2.8.1++ dependencies:+ '@types/mdast': 4.0.4+ mdast-util-gfm: 3.1.0+ micromark-extension-gfm: 3.0.0+ remark-parse: 11.0.0+ remark-stringify: 11.0.0+ unified: 11.0.5+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/mdast': 4.0.4+ mdast-util-from-markdown: 2.0.3+ micromark-util-types: 2.0.2+ unified: 11.0.5+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@types/hast': 3.0.4+ '@types/mdast': 4.0.4+ mdast-util-to-hast: 13.2.1+ unified: 11.0.5+ vfile: 6.0.3++ dependencies:+ '@types/mdast': 4.0.4+ mdast-util-to-markdown: 2.1.2+ unified: 11.0.5++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ onetime: 7.0.0+ signal-exit: 4.1.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@oxc-project/types': 0.130.0+ '@rolldown/pluginutils': 1.0.1+ optionalDependencies:+ '@rolldown/binding-android-arm64': 1.0.1+ '@rolldown/binding-darwin-arm64': 1.0.1+ '@rolldown/binding-darwin-x64': 1.0.1+ '@rolldown/binding-freebsd-x64': 1.0.1+ '@rolldown/binding-linux-arm-gnueabihf': 1.0.1+ '@rolldown/binding-linux-arm64-gnu': 1.0.1+ '@rolldown/binding-linux-arm64-musl': 1.0.1+ '@rolldown/binding-linux-ppc64-gnu': 1.0.1+ '@rolldown/binding-linux-s390x-gnu': 1.0.1+ '@rolldown/binding-linux-x64-gnu': 1.0.1+ '@rolldown/binding-linux-x64-musl': 1.0.1+ '@rolldown/binding-openharmony-arm64': 1.0.1+ '@rolldown/binding-wasm32-wasi': 1.0.1+ '@rolldown/binding-win32-arm64-msvc': 1.0.1+ '@rolldown/binding-win32-x64-msvc': 1.0.1++ dependencies:+ debug: 4.4.3([email protected])+ depd: 2.0.0+ is-promise: 4.0.0+ parseurl: 1.3.3+ path-to-regexp: 8.4.2+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}++ dependencies:+ queue-microtask: 1.2.3++ dependencies:+ tslib: 2.8.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ extend-shallow: 2.0.1+ kind-of: 6.0.3++ [email protected]: {}++ [email protected]: {}++ dependencies:+ debug: 2.6.9+ depd: 2.0.0+ destroy: 1.2.0+ encodeurl: 2.0.0+ escape-html: 1.0.3+ etag: 1.8.1+ fresh: 0.5.2+ http-errors: 2.0.1+ mime: 1.6.0+ ms: 2.1.3+ on-finished: 2.4.1+ range-parser: 1.2.1+ statuses: 2.0.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ debug: 4.4.3([email protected])+ 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+ transitivePeerDependencies:+ - supports-color++ dependencies:+ encodeurl: 2.0.0+ escape-html: 1.0.3+ parseurl: 1.3.3+ send: 0.19.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ encodeurl: 2.0.0+ escape-html: 1.0.3+ parseurl: 1.3.3+ send: 1.2.1+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@babel/core': 7.29.0+ '@babel/parser': 7.29.3+ '@babel/plugin-transform-typescript': 7.28.6(@babel/[email protected])+ '@babel/preset-typescript': 7.28.5(@babel/[email protected])+ '@dotenvx/dotenvx': 1.66.0+ '@modelcontextprotocol/sdk': 1.29.0(@cfworker/[email protected])([email protected])+ '@types/validate-npm-package-name': 4.0.2+ browserslist: 4.28.2+ commander: 14.0.3+ cosmiconfig: 9.0.1([email protected])+ dedent: 1.7.2+ deepmerge: 4.3.1+ diff: 8.0.4+ execa: 9.6.1+ fast-glob: 3.3.3+ fs-extra: 11.3.5+ fuzzysort: 3.1.0+ https-proxy-agent: 7.0.6+ kleur: 4.1.5+ msw: 2.14.6(@types/[email protected])([email protected])+ node-fetch: 3.3.2+ open: 11.0.0+ ora: 8.2.0+ postcss: 8.5.14+ postcss-selector-parser: 7.1.1+ prompts: 2.4.2+ recast: 0.23.11+ stringify-object: 5.0.0+ tailwind-merge: 3.6.0+ ts-morph: 26.0.0+ tsconfig-paths: 4.2.0+ validate-npm-package-name: 7.0.2+ zod: 3.25.76+ zod-to-json-schema: 3.25.2([email protected])+ transitivePeerDependencies:+ - '@cfworker/json-schema'+ - '@types/node'+ - babel-plugin-macros+ - supports-color+ - typescript++ dependencies:+ '@img/colour': 1.1.0+ detect-libc: 2.1.2+ semver: 7.8.0+ optionalDependencies:+ '@img/sharp-darwin-arm64': 0.34.5+ '@img/sharp-darwin-x64': 0.34.5+ '@img/sharp-libvips-darwin-arm64': 1.2.4+ '@img/sharp-libvips-darwin-x64': 1.2.4+ '@img/sharp-libvips-linux-arm': 1.2.4+ '@img/sharp-libvips-linux-arm64': 1.2.4+ '@img/sharp-libvips-linux-ppc64': 1.2.4+ '@img/sharp-libvips-linux-riscv64': 1.2.4+ '@img/sharp-libvips-linux-s390x': 1.2.4+ '@img/sharp-libvips-linux-x64': 1.2.4+ '@img/sharp-libvips-linuxmusl-arm64': 1.2.4+ '@img/sharp-libvips-linuxmusl-x64': 1.2.4+ '@img/sharp-linux-arm': 0.34.5+ '@img/sharp-linux-arm64': 0.34.5+ '@img/sharp-linux-ppc64': 0.34.5+ '@img/sharp-linux-riscv64': 0.34.5+ '@img/sharp-linux-s390x': 0.34.5+ '@img/sharp-linux-x64': 0.34.5+ '@img/sharp-linuxmusl-arm64': 0.34.5+ '@img/sharp-linuxmusl-x64': 0.34.5+ '@img/sharp-wasm32': 0.34.5+ '@img/sharp-win32-arm64': 0.34.5+ '@img/sharp-win32-ia32': 0.34.5+ '@img/sharp-win32-x64': 0.34.5+ optional: true++ dependencies:+ shebang-regex: 3.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ es-errors: 1.3.0+ object-inspect: 1.13.4++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ get-intrinsic: 1.3.0+ object-inspect: 1.13.4++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ get-intrinsic: 1.3.0+ object-inspect: 1.13.4+ side-channel-map: 1.0.1++ dependencies:+ es-errors: 1.3.0+ object-inspect: 1.13.4+ side-channel-list: 1.0.1+ side-channel-map: 1.0.1+ side-channel-weakmap: 1.0.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ semver: 7.8.0++ [email protected]: {}++ dependencies:+ ansi-styles: 6.2.3+ is-fullwidth-code-point: 5.1.0++ dependencies:+ ansi-styles: 6.2.3+ is-fullwidth-code-point: 5.1.0++ dependencies:+ dot-case: 3.0.4+ tslib: 2.8.1++ dependencies:+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ emoji-regex: 8.0.0+ is-fullwidth-code-point: 3.0.0+ strip-ansi: 6.0.1++ dependencies:+ emoji-regex: 10.6.0+ get-east-asian-width: 1.6.0+ strip-ansi: 7.2.0++ dependencies:+ get-east-asian-width: 1.6.0+ strip-ansi: 7.2.0++ dependencies:+ character-entities-html4: 2.1.0+ character-entities-legacy: 3.0.0++ dependencies:+ get-own-enumerable-keys: 1.0.0+ is-obj: 3.0.0+ is-regexp: 3.1.0++ dependencies:+ ansi-regex: 5.0.1++ dependencies:+ ansi-regex: 6.2.2++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ style-to-object: 1.0.14++ dependencies:+ inline-style-parser: 0.2.7++ dependencies:+ client-only: 0.0.1+ react: 19.2.6+ optionalDependencies:+ '@babel/core': 7.29.0++ dependencies:+ has-flag: 3.0.0++ dependencies:+ has-flag: 4.0.0++ dependencies:+ has-flag: 4.0.0++ [email protected]: {}++ dependencies:+ '@pkgr/core': 0.2.9++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ fdir: 6.5.0([email protected])+ picomatch: 4.0.4++ [email protected]: {}++ dependencies:+ tldts-core: 7.0.30++ dependencies:+ is-number: 7.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ tldts: 7.0.30++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ typescript: 6.0.3++ dependencies:+ '@ts-morph/common': 0.27.0+ code-block-writer: 13.0.3++ dependencies:+ '@cspotcode/source-map-support': 0.8.1+ '@tsconfig/node10': 1.0.12+ '@tsconfig/node12': 1.0.11+ '@tsconfig/node14': 1.0.3+ '@tsconfig/node16': 1.0.4+ '@types/node': 20.19.41+ acorn: 8.16.0+ acorn-walk: 8.3.5+ arg: 4.1.3+ create-require: 1.1.1+ diff: 4.0.4+ make-error: 1.3.6+ typescript: 5.9.3+ v8-compile-cache-lib: 3.0.1+ yn: 3.1.1++ dependencies:+ json5: 2.2.3+ minimist: 1.2.8+ strip-bom: 3.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ prelude-ls: 1.2.1++ dependencies:+ tagged-tag: 1.0.0++ dependencies:+ media-typer: 0.3.0+ mime-types: 2.1.35++ dependencies:+ content-type: 2.0.0+ media-typer: 1.1.0+ mime-types: 3.0.2++ dependencies:+ '@typescript-eslint/eslint-plugin': 8.59.3(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ '@typescript-eslint/typescript-estree': 8.59.3([email protected])+ eslint: 10.3.0([email protected])+ typescript: 6.0.3+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@types/unist': 3.0.3+ bail: 2.0.2+ devlop: 1.1.0+ extend: 3.0.2+ is-plain-obj: 4.1.0+ trough: 2.2.0+ vfile: 6.0.3++ dependencies:+ '@types/unist': 3.0.3++ dependencies:+ '@types/unist': 3.0.3++ dependencies:+ '@types/unist': 3.0.3++ dependencies:+ '@types/unist': 3.0.3+ unist-util-is: 6.0.1++ dependencies:+ '@types/unist': 3.0.3+ unist-util-is: 6.0.1+ unist-util-visit-parents: 6.0.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ napi-postinstall: 0.3.4+ optionalDependencies:+ '@unrs/resolver-binding-android-arm-eabi': 1.11.1+ '@unrs/resolver-binding-android-arm64': 1.11.1+ '@unrs/resolver-binding-darwin-arm64': 1.11.1+ '@unrs/resolver-binding-darwin-x64': 1.11.1+ '@unrs/resolver-binding-freebsd-x64': 1.11.1+ '@unrs/resolver-binding-linux-arm-gnueabihf': 1.11.1+ '@unrs/resolver-binding-linux-arm-musleabihf': 1.11.1+ '@unrs/resolver-binding-linux-arm64-gnu': 1.11.1+ '@unrs/resolver-binding-linux-arm64-musl': 1.11.1+ '@unrs/resolver-binding-linux-ppc64-gnu': 1.11.1+ '@unrs/resolver-binding-linux-riscv64-gnu': 1.11.1+ '@unrs/resolver-binding-linux-riscv64-musl': 1.11.1+ '@unrs/resolver-binding-linux-s390x-gnu': 1.11.1+ '@unrs/resolver-binding-linux-x64-gnu': 1.11.1+ '@unrs/resolver-binding-linux-x64-musl': 1.11.1+ '@unrs/resolver-binding-wasm32-wasi': 1.11.1+ '@unrs/resolver-binding-win32-arm64-msvc': 1.11.1+ '@unrs/resolver-binding-win32-ia32-msvc': 1.11.1+ '@unrs/resolver-binding-win32-x64-msvc': 1.11.1++ [email protected]: {}++ dependencies:+ browserslist: 4.28.2+ escalade: 3.2.0+ picocolors: 1.1.1++ dependencies:+ punycode: 2.3.1++ dependencies:+ react: 19.2.6+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ detect-node-es: 1.1.0+ react: 19.2.6+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ transitivePeerDependencies:+ - '@types/react'+ - '@types/react-dom'++ dependencies:+ '@types/unist': 3.0.3+ unist-util-stringify-position: 4.0.0++ dependencies:+ '@types/unist': 3.0.3+ vfile-message: 4.0.3++ [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])):+ dependencies:+ '@rollup/pluginutils': 5.3.0+ '@svgr/core': 8.1.0([email protected])+ '@svgr/plugin-jsx': 8.1.0(@svgr/[email protected]([email protected]))+ transitivePeerDependencies:+ - rollup+ - supports-color+ - typescript++ dependencies:+ lightningcss: 1.32.0+ picomatch: 4.0.4+ postcss: 8.5.14+ rolldown: 1.0.1+ tinyglobby: 0.2.16+ optionalDependencies:+ '@types/node': 24.12.4+ fsevents: 2.3.3+ jiti: 2.7.0+ yaml: 2.9.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ isexe: 2.0.0++ dependencies:+ isexe: 3.1.5++ [email protected]: {}++ dependencies:+ ansi-styles: 6.2.3+ string-width: 8.2.1+ strip-ansi: 7.2.0++ dependencies:+ ansi-styles: 4.3.0+ string-width: 4.2.3+ strip-ansi: 6.0.1++ dependencies:+ ansi-styles: 6.2.3+ string-width: 7.2.0+ strip-ansi: 7.2.0++ [email protected]: {}++ dependencies:+ is-wsl: 3.1.1+ powershell-utils: 0.1.0++ [email protected]: {}++ [email protected]: {}++ optional: true++ [email protected]: {}++ dependencies:+ cliui: 8.0.1+ escalade: 3.2.0+ get-caller-file: 2.0.5+ require-directory: 2.1.1+ string-width: 4.2.3+ y18n: 5.0.8+ yargs-parser: 21.1.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ yoctocolors: 2.1.2++ [email protected]: {}++ dependencies:+ zod: 3.25.76++ dependencies:+ zod: 4.4.3++ dependencies:+ zod: 4.4.3++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}diff --git a/examples/web_ui/pnpm-workspace.yaml b/examples/web_ui/pnpm-workspace.yamlnew file mode 100644index 000000000..a71fb1f9e--- /dev/null+++ b/examples/web_ui/pnpm-workspace.yaml@@ -0,0 +1,6 @@+packages:+ - frontend+ - backend++ignoredBuiltDependencies:+ - mswdiff --git a/pyproject.toml b/pyproject.tomlindex 6c8698366..88ddd7f83 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -68,11 +68,17 @@ service = [storage = ["redis",]+# ------------ Workspace -----------+workspace = [+ "aiodocker",+ "e2b",+]# ------------ Full ------------full = ["agentscope[models]","agentscope[service]","agentscope[storage]",+ "agentscope[workspace]",]# ------------ Development ------------@@ -100,7 +106,14 @@ packages = { find = { where = ["src"] } }include-package-data = true[tool.setuptools.package-data]-"*" = ["py.typed"]+# ``"*"`` applies to every discovered package. Patterns:+# - ``py.typed`` marks the typed package per PEP 561.+# - ``_models/*.yaml`` reaches into the data-only ``_models/``+# subdirs that ship with each model provider (they have no+# ``__init__.py`` and are not packages, but the files still+# live alongside the parent package's source on disk).+"*" = ["py.typed", "_models/*.yaml"]+"agentscope.workspace._docker" = ["Dockerfile*.template"][build-system]requires = ["setuptools>=45", "wheel"]diff --git a/src/agentscope/app/_lifespan.py b/src/agentscope/app/_lifespan.pyindex da42de6ff..5c4449c04 100644--- a/src/agentscope/app/_lifespan.py+++ b/src/agentscope/app/_lifespan.py@@ -1,6 +1,6 @@# -*- coding: utf-8 -*-"""The lifespan of the agent service."""-from contextlib import asynccontextmanager+from contextlib import AsyncExitStack, asynccontextmanager, nullcontextfrom typing import TYPE_CHECKING, Any, AsyncIteratorfrom ._manager import BackgroundTaskManager, SchedulerManager, SessionManager@@ -17,14 +17,25 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]:On startup:- Opens the storage connection pool.+ - Enters the workspace manager (starts its TTL sweeper, if any).- Starts the session manager, background task manager, and scheduler.- Restores persisted schedules from storage into the in-memory scheduler.On shutdown:- Cancels in-flight sessions and background tasks.- Shuts down the scheduler (waits for running jobs to finish).+ - Exits the workspace manager (stops its sweeper and closes every+ cached workspace)."""- async with app.state.storage:+ workspace_manager = app.state.workspace_manager+ workspace_ctx = (+ workspace_manager if workspace_manager is not None else nullcontext()+ )++ async with AsyncExitStack() as stack:+ await stack.enter_async_context(app.state.storage)+ await stack.enter_async_context(workspace_ctx)+session_manager = SessionManager()app.state.session_manager = session_managerapp.state.background_task_manager = BackgroundTaskManager()@@ -33,7 +44,7 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]:storage=app.state.storage,session_manager=session_manager,background_task_manager=app.state.background_task_manager,- workspace_manager=app.state.workspace_manager,+ workspace_manager=workspace_manager,)app.state.scheduler_manager = schedulerawait scheduler.start()diff --git a/src/agentscope/app/_manager/__init__.py b/src/agentscope/app/_manager/__init__.pyindex 1f1733389..b0b755cd9 100644--- a/src/agentscope/app/_manager/__init__.py+++ b/src/agentscope/app/_manager/__init__.py@@ -3,6 +3,8 @@application-wide resources."""from ._background_task_manager import BackgroundTaskManager+from ._docker_workspace_manager import DockerWorkspaceManager+from ._e2b_workspace_manager import E2BWorkspaceManagerfrom ._scheduler import SchedulerManagerfrom ._session_manager import SessionManagerfrom ._workspace_manager import WorkspaceManagerBase, LocalWorkspaceManager@@ -10,6 +12,8 @@ from ._workspace_manager import WorkspaceManagerBase, LocalWorkspaceManager__all__ = ["BackgroundTaskManager",+ "DockerWorkspaceManager",+ "E2BWorkspaceManager","LocalWorkspaceManager","SchedulerManager","SessionManager",diff --git a/src/agentscope/app/_manager/_docker_workspace_manager.py b/src/agentscope/app/_manager/_docker_workspace_manager.pynew file mode 100644index 000000000..385de057c--- /dev/null+++ b/src/agentscope/app/_manager/_docker_workspace_manager.py@@ -0,0 +1,371 @@+# -*- coding: utf-8 -*-+"""DockerWorkspaceManager — lifecycle manager for :class:`DockerWorkspace`.++Mirrors :class:`LocalWorkspaceManager` 1:1 in its public surface+(``get_workspace`` / ``create_workspace`` / ``close`` / ``close_all``)+so that callers — notably :func:`agentscope.app._service.get_agent` —+do not branch on backend.++Differences from the local manager (allowed to surface only via the+constructor):++* Workdir layout is two levels — ``<basedir>/<user_id>/<agent_id>`` —+ and is bind-mounted to ``/workspace`` inside each container, so the+ agent always sees a flat ``/workspace`` regardless of host layout.+* ``workspace_id`` is forwarded into :class:`DockerWorkspace` so the+ container name (``as_ws_<workspace_id>``) is stable across process+ restarts. A cache miss after a restart deterministically re-attaches+ to the same container slot via ``containers.create_or_replace``.+* Idle workspaces are evicted by a dedicated background sweeper task+ started in :meth:`__aenter__` and cancelled in :meth:`__aexit__` —+ not lazily on each :meth:`get_workspace` call. This keeps idle+ resource consumption bounded even when no traffic is arriving.+* ``close_all`` shuts containers down in parallel+ (:func:`asyncio.gather`) — Docker ``kill + delete`` is slow enough+ that linear teardown on shutdown is noticeable.+"""++import asyncio+import os+import time+from typing import Self++from ..._logging import logger+from ...mcp import MCPClient+from ...workspace._docker import DockerWorkspace+from ...workspace._docker._make_dockerfile import (+ DEFAULT_BASE_IMAGE,+ DEFAULT_GATEWAY_PORT,+)+from ._workspace_manager import WorkspaceManagerBase++DEFAULT_SWEEP_INTERVAL = 300.0+++class DockerWorkspaceManager(WorkspaceManagerBase):+ """Manages :class:`DockerWorkspace` instances with TTL-based caching.++ The manager owns a single set of image-build parameters+ (``base_image`` / ``node_version`` / ``extra_pip``) shared by every+ workspace it produces; the resulting image is content-hashed so+ rebuilds are skipped on cache hits.++ Use the manager as an ``async with`` context manager: entering it+ starts the TTL sweeper task, exiting it stops the sweeper and then+ closes every cached workspace via :meth:`close_all`.+ """++ def __init__(+ self,+ basedir: str,+ *,+ base_image: str = DEFAULT_BASE_IMAGE,+ node_version: str | None = None,+ extra_pip: list[str] | None = None,+ gateway_port: int = DEFAULT_GATEWAY_PORT,+ env: dict[str, str] | None = None,+ default_mcps: list[MCPClient] | None = None,+ skill_paths: list[str] | None = None,+ ttl: float = 3600.0,+ sweep_interval: float = DEFAULT_SWEEP_INTERVAL,+ ) -> None:+ """Initialize the docker workspace manager.++ Args:+ basedir (`str`):+ Host root under which per-user/per-agent workdir are+ created (``<basedir>/<user_id>/<agent_id>``). Each+ workdir is bind-mounted to ``/workspace`` inside its+ container.+ base_image (`str`, defaults to `DEFAULT_BASE_IMAGE`):+ Base Docker image; must provide ``python3``.+ node_version (`str | None`, optional):+ Major Node.js version (e.g. ``"20"``) to bake into+ the image, or ``None`` to skip Node.+ extra_pip (`list[str] | None`, optional):+ Extra Python packages to install into the gateway+ venv at image-build time.+ gateway_port (`int`, defaults to `DEFAULT_GATEWAY_PORT`):+ TCP port the in-container gateway listens on (always+ exposed to a randomly assigned host port).+ env (`dict[str, str] | None`, optional):+ Environment variables to set inside every workspace's+ container.+ default_mcps (`list[MCPClient] | None`, optional):+ MCP clients seeded into brand-new workspaces. Ignored+ on subsequent restarts of a workdir that already+ persists ``.mcp``.+ skill_paths (`list[str] | None`, optional):+ Skill directories seeded into brand-new workspaces.+ ttl (`float`, defaults to `3600.0`):+ Seconds before an idle cached workspace is evicted+ and its container torn down.+ sweep_interval (`float`, defaults to `DEFAULT_SWEEP_INTERVAL`):+ How often (seconds) the background sweeper wakes up+ to look for idle workspaces. Defaults to 5 minutes.+ """+ self._basedir = os.path.abspath(basedir)+ self._base_image = base_image+ self._node_version = node_version+ self._extra_pip = list(extra_pip or [])+ self._gateway_port = gateway_port+ self._env = dict(env or {})+ self._default_mcps = list(default_mcps or [])+ self._skill_paths = list(skill_paths or [])+ self._ttl = ttl+ self._sweep_interval = sweep_interval++ # workspace_id → (workspace, last_access_monotonic)+ self._cache: dict[str, tuple[DockerWorkspace, float]] = {}+ self._lock = asyncio.Lock()+ self._sweep_task: asyncio.Task | None = None++ # ── isolation helpers ─────────────────────────────────────────++ def _workdir_for(self, user_id: str, agent_id: str) -> str:+ """Resolve the host workdir for ``(user_id, agent_id)``.++ Two-level layout — ``<basedir>/<user_id>/<agent_id>`` — so+ different users never share a bind-mount even when their+ ``agent_id`` collides.+ """+ return os.path.join(self._basedir, user_id, agent_id)++ # ── workspace construction ────────────────────────────────────++ async def _build_and_start(+ self,+ *,+ workspace_id: str,+ user_id: str,+ agent_id: str,+ ) -> DockerWorkspace:+ """Create a :class:`DockerWorkspace` for ``(user_id, agent_id)``+ and run its full ``initialize``.++ ``workspace_id`` is forwarded so the container name is+ deterministic and the same id round-trips through the cache.+ """+ workdir = self._workdir_for(user_id, agent_id)+ os.makedirs(workdir, exist_ok=True)+ ws = DockerWorkspace(+ workspace_id=workspace_id,+ workdir=workdir,+ base_image=self._base_image,+ node_version=self._node_version,+ extra_pip=self._extra_pip,+ gateway_port=self._gateway_port,+ env=self._env,+ default_mcps=self._default_mcps,+ skill_paths=self._skill_paths,+ )+ await ws.initialize()+ return ws++ # ── public API ────────────────────────────────────────────────++ async def get_workspace(+ self,+ user_id: str,+ agent_id: str,+ session_id: str,+ workspace_id: str,+ ) -> DockerWorkspace:+ """Return an initialised workspace, building one on cache miss.++ On miss the manager calls ``DockerWorkspace(workspace_id=…)``+ with a deterministic workdir derived from ``(user_id,+ agent_id)``. Image build, container creation and gateway+ startup all happen inside the workspace's ``initialize``.++ Eviction of idle workspaces is *not* performed here — the+ background sweeper started by :meth:`__aenter__` handles that.++ Args:+ user_id (`str`):+ Owning user identifier.+ agent_id (`str`):+ Agent identifier (controls the workdir).+ session_id (`str`):+ Session identifier (unused for isolation; sessions+ share a workdir and partition under+ ``sessions/<session_id>/``).+ workspace_id (`str`):+ Stable workspace identifier — used both as the cache+ key and the container name suffix.++ Returns:+ `DockerWorkspace`:+ A live, initialised workspace.+ """+ del session_id # accepted for interface parity; not used here++ async with self._lock:+ cached = self._cache.get(workspace_id)+ if cached is not None:+ ws, _ = cached+ self._cache[workspace_id] = (ws, time.monotonic())+ return ws++ # Cache miss: build under the lock to prevent two concurrent+ # get_workspace(workspace_id=X) calls from creating two+ # workspaces for the same id.+ async with self._lock:+ cached = self._cache.get(workspace_id)+ if cached is not None:+ ws, _ = cached+ self._cache[workspace_id] = (ws, time.monotonic())+ return ws++ ws = await self._build_and_start(+ workspace_id=workspace_id,+ user_id=user_id,+ agent_id=agent_id,+ )+ self._cache[workspace_id] = (ws, time.monotonic())+ return ws++ async def create_workspace(+ self,+ user_id: str,+ agent_id: str,+ session_id: str,+ ) -> DockerWorkspace:+ """Build a brand-new workspace and track it.++ A fresh ``workspace_id`` is allocated by+ :class:`DockerWorkspace` itself; the caller should persist+ ``workspace.workspace_id`` for later :meth:`get_workspace`+ calls.++ Args:+ user_id (`str`):+ Owning user identifier.+ agent_id (`str`):+ Agent identifier (controls the workdir).+ session_id (`str`):+ Session identifier (accepted for parity; not used+ here).++ Returns:+ `DockerWorkspace`:+ The newly built workspace, already initialised.+ """+ del session_id # accepted for interface parity; not used here++ workdir = self._workdir_for(user_id, agent_id)+ os.makedirs(workdir, exist_ok=True)+ ws = DockerWorkspace(+ workdir=workdir,+ base_image=self._base_image,+ node_version=self._node_version,+ extra_pip=self._extra_pip,+ gateway_port=self._gateway_port,+ env=self._env,+ default_mcps=self._default_mcps,+ skill_paths=self._skill_paths,+ )+ await ws.initialize()+ async with self._lock:+ self._cache[ws.workspace_id] = (ws, time.monotonic())+ return ws++ async def close(self, workspace_id: str) -> None:+ """Close and evict a single workspace from the cache.++ No-op when the workspace_id is not tracked.++ Args:+ workspace_id (`str`):+ The workspace to close.+ """+ async with self._lock:+ entry = self._cache.pop(workspace_id, None)+ if entry is None:+ return+ ws, _ = entry+ await self._safe_close(ws)++ async def close_all(self) -> None:+ """Close every cached workspace in parallel.++ Docker ``kill + delete`` is slow per container; doing it+ sequentially on app shutdown produces a noticeable stall, so+ we fan the calls out with :func:`asyncio.gather`.+ """+ async with self._lock:+ entries = list(self._cache.values())+ self._cache.clear()+ if not entries:+ return+ await asyncio.gather(+ *(self._safe_close(ws) for ws, _ in entries),+ return_exceptions=True,+ )++ # ── async context manager ─────────────────────────────────────++ async def __aenter__(self) -> Self:+ """Start the TTL sweeper task."""+ if self._sweep_task is None:+ self._sweep_task = asyncio.create_task(self._sweep_loop())+ return self++ async def __aexit__(self, *exc: object) -> None:+ """Stop the TTL sweeper task, then close every cached workspace."""+ if self._sweep_task is not None:+ self._sweep_task.cancel()+ try:+ await self._sweep_task+ except (asyncio.CancelledError, Exception):+ pass+ self._sweep_task = None+ await self.close_all()++ # ── background sweeper ───────────────────────────────────────++ async def _sweep_loop(self) -> None:+ """Periodically evict idle workspaces.++ Runs forever until cancelled. Each tick pops every cache entry+ whose last-access is older than ``ttl`` and closes it outside+ the lock; exceptions during close are logged and swallowed so+ one bad container does not poison the sweeper.+ """+ while True:+ try:+ await asyncio.sleep(self._sweep_interval)+ except asyncio.CancelledError:+ return+ try:+ await self._sweep_once()+ except Exception:+ logger.exception("Docker workspace sweeper tick failed")++ async def _sweep_once(self) -> None:+ """One sweeper tick: evict expired entries and close them."""+ now = time.monotonic()+ async with self._lock:+ expired_ids = [+ wid+ for wid, (_, ts) in self._cache.items()+ if now - ts > self._ttl+ ]+ evicted = [self._cache.pop(wid)[0] for wid in expired_ids]+ if not evicted:+ return+ await asyncio.gather(+ *(self._safe_close(ws) for ws in evicted),+ return_exceptions=True,+ )++ @staticmethod+ async def _safe_close(ws: DockerWorkspace) -> None:+ """Close a workspace, logging any failure instead of raising."""+ try:+ await ws.close()+ except Exception:+ logger.exception(+ "Failed to close DockerWorkspace %s",+ ws.workspace_id,+ )diff --git a/src/agentscope/app/_manager/_e2b_workspace_manager.py b/src/agentscope/app/_manager/_e2b_workspace_manager.pynew file mode 100644index 000000000..c16b208d1--- /dev/null+++ b/src/agentscope/app/_manager/_e2b_workspace_manager.py@@ -0,0 +1,387 @@+# -*- coding: utf-8 -*-+"""E2BWorkspaceManager — lifecycle manager for :class:`E2BWorkspace`.++Mirrors :class:`DockerWorkspaceManager` 1:1 in its public surface+(``get_workspace`` / ``create_workspace`` / ``close`` / ``close_all``)+so callers — notably :func:`agentscope.app._service.get_agent` —+do not branch on backend.++Differences from the Docker manager:++* No ``basedir`` / ``_workdir_for`` — E2B sandboxes carry their own+ filesystem state across pause/resume, so there is nothing to+ bind-mount and nothing to lay out on the host.+* No image build parameters (``base_image`` / ``node_version``); E2B+ attaches to a pre-built template plus a runtime bootstrap.+* Reattachment uses E2B sandbox metadata. The ``workspace_id`` is+ written into the sandbox's metadata at create time and looked up via+ ``AsyncSandbox.list(query=...)`` inside+ :meth:`E2BWorkspace.initialize`. The manager itself is metadata-blind+ — it just forwards ``workspace_id`` and lets the workspace handle the+ reattach.+* ``user_id`` / ``agent_id`` are surfaced as extra sandbox metadata+ (``agentscope.user.id`` / ``agentscope.agent.id``) so users can+ filter their own sandboxes in the E2B dashboard. They do **not**+ participate in cache key resolution; the cache is keyed strictly on+ ``workspace_id`` (same as Docker).+* Idle workspaces are evicted by a dedicated background sweeper task+ started in :meth:`__aenter__` and cancelled in :meth:`__aexit__` —+ not lazily on each :meth:`get_workspace` call.+* ``close_all`` fans calls out with :func:`asyncio.gather` because+ ``sandbox.pause()`` is a remote round-trip per sandbox; sequentialising+ it on app shutdown produces a noticeable stall.+"""++import asyncio+import time+from typing import Self++from ..._logging import logger+from ...mcp import MCPClient+from ...workspace import E2BWorkspace+from ...workspace._e2b._bootstrap import (+ DEFAULT_GATEWAY_PORT,+ DEFAULT_TEMPLATE,+ DEFAULT_TIMEOUT,+)+from ._workspace_manager import WorkspaceManagerBase++DEFAULT_SWEEP_INTERVAL = 300.0+++class E2BWorkspaceManager(WorkspaceManagerBase):+ """Manages :class:`E2BWorkspace` instances with TTL-based caching.++ Use the manager as an ``async with`` context manager: entering it+ starts the TTL sweeper task, exiting it stops the sweeper and then+ closes every cached workspace via :meth:`close_all`.+ """++ def __init__(+ self,+ *,+ template: str = DEFAULT_TEMPLATE,+ api_key: str = "",+ domain: str = "",+ timeout_seconds: int = DEFAULT_TIMEOUT,+ gateway_port: int = DEFAULT_GATEWAY_PORT,+ env: dict[str, str] | None = None,+ sandbox_metadata: dict[str, str] | None = None,+ extra_pip: list[str] | None = None,+ default_mcps: list[MCPClient] | None = None,+ skill_paths: list[str] | None = None,+ ttl: float = 3600.0,+ sweep_interval: float = DEFAULT_SWEEP_INTERVAL,+ ) -> None:+ """Initialize the E2B workspace manager.++ Args:+ template (`str`, defaults to `DEFAULT_TEMPLATE`):+ E2B template id passed to every workspace this+ manager produces. Defaults to ``"base"``.+ api_key (`str`, defaults to `""`):+ E2B API key. ``""`` falls back to the ``E2B_API_KEY``+ env var on the SDK side.+ domain (`str`, defaults to `""`):+ Optional custom E2B domain (self-hosted etc.).+ timeout_seconds (`int`, defaults to `DEFAULT_TIMEOUT`):+ Sandbox keep-alive timeout passed to+ ``AsyncSandbox.create`` / ``AsyncSandbox.connect``.+ gateway_port (`int`, defaults to `DEFAULT_GATEWAY_PORT`):+ TCP port the in-sandbox gateway listens on.+ env (`dict[str, str] | None`, optional):+ Environment variables baked into the sandbox at+ create time.+ sandbox_metadata (`dict[str, str] | None`, optional):+ Extra metadata merged with the per-workspace+ ``agentscope.workspace.id`` / ``agentscope.user.id`` /+ ``agentscope.agent.id`` keys. Useful for downstream+ E2B dashboard filtering.+ extra_pip (`list[str] | None`, optional):+ Extra Python packages to install into the gateway+ venv during bootstrap.+ default_mcps (`list[MCPClient] | None`, optional):+ MCP clients seeded into brand-new workspaces. Ignored+ on subsequent reattachments — the sandbox's persisted+ ``.mcp`` file wins.+ skill_paths (`list[str] | None`, optional):+ Skill directories seeded into brand-new workspaces.+ ttl (`float`, defaults to `3600.0`):+ Seconds before an idle cached workspace is evicted+ and its sandbox paused.+ sweep_interval (`float`, defaults to `DEFAULT_SWEEP_INTERVAL`):+ How often (seconds) the background sweeper wakes up+ to look for idle workspaces. Defaults to 5 minutes.+ """+ self._template = template+ self._api_key = api_key+ self._domain = domain+ self._timeout_seconds = timeout_seconds+ self._gateway_port = gateway_port+ self._env = dict(env or {})+ self._sandbox_metadata = dict(sandbox_metadata or {})+ self._extra_pip = list(extra_pip or [])+ self._default_mcps = list(default_mcps or [])+ self._skill_paths = list(skill_paths or [])+ self._ttl = ttl+ self._sweep_interval = sweep_interval++ # workspace_id → (workspace, last_access_monotonic)+ self._cache: dict[str, tuple[E2BWorkspace, float]] = {}+ self._lock = asyncio.Lock()+ self._sweep_task: asyncio.Task | None = None++ # ── metadata helper ───────────────────────────────────────────++ def _metadata_for(+ self,+ user_id: str,+ agent_id: str,+ ) -> dict[str, str]:+ """Build the extra sandbox metadata for ``(user_id, agent_id)``.++ ``E2BWorkspace`` always sets ``agentscope.workspace.id`` itself;+ we add the user/agent keys here so they show up alongside it+ in the E2B dashboard's metadata filter UI.+ """+ return {+ "agentscope.user.id": user_id,+ "agentscope.agent.id": agent_id,+ **self._sandbox_metadata,+ }++ # ── workspace construction ────────────────────────────────────++ async def _build_and_start(+ self,+ *,+ workspace_id: str | None,+ user_id: str,+ agent_id: str,+ ) -> E2BWorkspace:+ """Construct an :class:`E2BWorkspace` and run its full ``initialize``.++ ``workspace_id=None`` lets :class:`WorkspaceBase` allocate a+ fresh UUID — used by :meth:`create_workspace`. Otherwise the+ provided id is forwarded so reattachment by metadata works on+ the second call.+ """+ ws = E2BWorkspace(+ workspace_id=workspace_id,+ template=self._template,+ api_key=self._api_key,+ domain=self._domain,+ timeout_seconds=self._timeout_seconds,+ gateway_port=self._gateway_port,+ env=self._env,+ sandbox_metadata=self._metadata_for(user_id, agent_id),+ extra_pip=self._extra_pip,+ default_mcps=self._default_mcps,+ skill_paths=self._skill_paths,+ )+ await ws.initialize()+ return ws++ # ── public API ────────────────────────────────────────────────++ async def get_workspace(+ self,+ user_id: str,+ agent_id: str,+ session_id: str,+ workspace_id: str,+ ) -> E2BWorkspace:+ """Return an initialised workspace, reattaching on cache miss.++ On miss the manager calls ``E2BWorkspace(workspace_id=…)`` and+ relies on its ``initialize`` to find any existing sandbox via+ ``AsyncSandbox.list(query=SandboxQuery(metadata=...))`` and+ ``connect`` to it (auto-resuming if paused) — or to ``create``+ a fresh sandbox otherwise.++ Eviction of idle workspaces is *not* performed here — the+ background sweeper started by :meth:`__aenter__` handles that.++ Args:+ user_id (`str`):+ Owning user identifier (forwarded as sandbox metadata+ only — not part of the cache key).+ agent_id (`str`):+ Agent identifier (forwarded as sandbox metadata only+ — not part of the cache key).+ session_id (`str`):+ Session identifier (unused; sandboxes are+ per-workspace, sessions partition under+ ``sessions/<session_id>/``).+ workspace_id (`str`):+ Stable workspace identifier — the cache key and the+ value stored in the sandbox's+ ``agentscope.workspace.id`` metadata.++ Returns:+ `E2BWorkspace`:+ A live, initialised workspace.+ """+ del session_id # accepted for interface parity; not used here++ async with self._lock:+ cached = self._cache.get(workspace_id)+ if cached is not None:+ ws, _ = cached+ self._cache[workspace_id] = (ws, time.monotonic())+ return ws++ # Cache miss: build under the lock to prevent two concurrent+ # get_workspace(workspace_id=X) calls from creating two+ # workspaces (and thus two sandboxes) for the same id.+ async with self._lock:+ cached = self._cache.get(workspace_id)+ if cached is not None:+ ws, _ = cached+ self._cache[workspace_id] = (ws, time.monotonic())+ return ws++ ws = await self._build_and_start(+ workspace_id=workspace_id,+ user_id=user_id,+ agent_id=agent_id,+ )+ self._cache[workspace_id] = (ws, time.monotonic())+ return ws++ async def create_workspace(+ self,+ user_id: str,+ agent_id: str,+ session_id: str,+ ) -> E2BWorkspace:+ """Build a brand-new workspace and track it.++ A fresh ``workspace_id`` is allocated by+ :class:`WorkspaceBase`; the caller should persist+ ``workspace.workspace_id`` for later :meth:`get_workspace`+ calls.++ Args:+ user_id (`str`):+ Owning user identifier (forwarded as sandbox metadata).+ agent_id (`str`):+ Agent identifier (forwarded as sandbox metadata).+ session_id (`str`):+ Session identifier (accepted for parity; not used+ here).++ Returns:+ `E2BWorkspace`:+ The newly built workspace, already initialised.+ """+ del session_id # accepted for interface parity; not used here++ ws = await self._build_and_start(+ workspace_id=None,+ user_id=user_id,+ agent_id=agent_id,+ )+ async with self._lock:+ self._cache[ws.workspace_id] = (ws, time.monotonic())+ return ws++ async def close(self, workspace_id: str) -> None:+ """Close (= pause the sandbox) and evict a single workspace.++ No-op when the workspace_id is not tracked.++ Args:+ workspace_id (`str`):+ The workspace to close.+ """+ async with self._lock:+ entry = self._cache.pop(workspace_id, None)+ if entry is None:+ return+ ws, _ = entry+ await self._safe_close(ws)++ async def close_all(self) -> None:+ """Close every cached workspace in parallel.++ ``sandbox.pause()`` is a remote round-trip per sandbox; doing+ it sequentially on app shutdown produces a noticeable stall,+ so we fan the calls out with :func:`asyncio.gather`.+ """+ async with self._lock:+ entries = list(self._cache.values())+ self._cache.clear()+ if not entries:+ return+ await asyncio.gather(+ *(self._safe_close(ws) for ws, _ in entries),+ return_exceptions=True,+ )++ # ── async context manager ─────────────────────────────────────++ async def __aenter__(self) -> Self:+ """Start the TTL sweeper task."""+ if self._sweep_task is None:+ self._sweep_task = asyncio.create_task(self._sweep_loop())+ return self++ async def __aexit__(self, *exc: object) -> None:+ """Stop the TTL sweeper task, then close every cached workspace."""+ if self._sweep_task is not None:+ self._sweep_task.cancel()+ try:+ await self._sweep_task+ except (asyncio.CancelledError, Exception):+ pass+ self._sweep_task = None+ await self.close_all()++ # ── background sweeper ───────────────────────────────────────++ async def _sweep_loop(self) -> None:+ """Periodically pause idle workspaces.++ Runs forever until cancelled. Each tick pops every cache entry+ whose last-access is older than ``ttl`` and closes it outside+ the lock; exceptions during close are logged and swallowed so+ one bad sandbox does not poison the sweeper.+ """+ while True:+ try:+ await asyncio.sleep(self._sweep_interval)+ except asyncio.CancelledError:+ return+ try:+ await self._sweep_once()+ except Exception:+ logger.exception("E2B workspace sweeper tick failed")++ async def _sweep_once(self) -> None:+ """One sweeper tick: evict expired entries and close them."""+ now = time.monotonic()+ async with self._lock:+ expired_ids = [+ wid+ for wid, (_, ts) in self._cache.items()+ if now - ts > self._ttl+ ]+ evicted = [self._cache.pop(wid)[0] for wid in expired_ids]+ if not evicted:+ return+ await asyncio.gather(+ *(self._safe_close(ws) for ws in evicted),+ return_exceptions=True,+ )++ @staticmethod+ async def _safe_close(ws: E2BWorkspace) -> None:+ """Close a workspace, logging any failure instead of raising."""+ try:+ await ws.close()+ except Exception:+ logger.exception(+ "Failed to close E2BWorkspace %s",+ ws.workspace_id,+ )diff --git a/src/agentscope/app/_manager/_workspace_manager.py b/src/agentscope/app/_manager/_workspace_manager.pyindex d16ba1247..b4f921a56 100644--- a/src/agentscope/app/_manager/_workspace_manager.py+++ b/src/agentscope/app/_manager/_workspace_manager.py@@ -4,12 +4,25 @@ import asyncioimport osimport timefrom abc import ABC, abstractmethod+from typing import Self+from ..._logging import loggerfrom ...workspace import WorkspaceBase, LocalWorkspaceclass WorkspaceManagerBase(ABC):- """Abstract base for workspace managers."""+ """Abstract base for workspace managers.++ Subclasses are expected to be used as async context managers — entering+ the context activates any background machinery the subclass needs (e.g.+ a TTL sweeper task) and exiting it tears that machinery down and closes+ every cached workspace via :meth:`close_all`.++ The default ``__aenter__`` / ``__aexit__`` cover the common case where a+ subclass has no background machinery: enter is a no-op, exit just calls+ :meth:`close_all`. Subclasses that own background tasks should override+ both.+ """@abstractmethodasync def get_workspace(@@ -22,10 +35,14 @@ class WorkspaceManagerBase(ABC):"""Return an initialized workspace.Args:- user_id: The user id.- agent_id: The agent id.- session_id: The session id.- workspace_id: The workspace id (reconnection credential).+ user_id (`str`):+ The user id.+ agent_id (`str`):+ The agent id.+ session_id (`str`):+ The session id.+ workspace_id (`str`):+ The workspace id (reconnection credential)."""@abstractmethod@@ -43,22 +60,29 @@ class WorkspaceManagerBase(ABC):@abstractmethodasync def close_all(self) -> None:- """Close all cached workspaces (called on app shutdown)."""+ """Close every cached workspace.++ Pure "close all currently tracked workspaces" semantics — does not+ imply the manager itself is being torn down. Use ``async with`` (or+ :meth:`__aexit__` directly) for full manager shutdown.+ """++ async def __aenter__(self) -> Self:+ """Enter the manager's lifetime. Default is a no-op."""+ return self++ async def __aexit__(self, *exc: object) -> None:+ """Exit the manager's lifetime — closes all cached workspaces."""+ await self.close_all()class LocalWorkspaceManager(WorkspaceManagerBase):"""Manages LocalWorkspace instances with TTL-based lazy lifecycle.- Workspaces are keyed by ``workspace_id`` in the cache. On cache miss+ Workspaces are keyed by ``workspace_id`` in the cache. On cache missthe manager reconstructs the workspace from ``basedir/agent_id`` — theworkdir is deterministic for local workspaces so no storage lookup isneeded.-- Args:- basedir: Root directory under which per-agent workdirs are created.- default_mcps: MCP clients seeded into brand-new workspaces.- skill_paths: Skill directories seeded into brand-new workspaces.- ttl: Seconds before an idle cached workspace is evicted."""def __init__(@@ -68,6 +92,19 @@ class LocalWorkspaceManager(WorkspaceManagerBase):skill_paths: list[str] | None = None,ttl: float = 3600.0,) -> None:+ """Initialize the local workspace manager.++ Args:+ basedir (`str`):+ Root directory under which per-agent workdir are+ created.+ default_mcps (`list | None`, optional):+ MCP clients seeded into brand-new workspaces.+ skill_paths (`list[str] | None`, optional):+ Skill directories seeded into brand-new workspaces.+ ttl (`float`, defaults to `3600.0`):+ Seconds before an idle cached workspace is evicted.+ """self._basedir = os.path.abspath(basedir)self._default_mcps = default_mcps or []self._skill_paths = skill_paths or []@@ -76,15 +113,17 @@ class LocalWorkspaceManager(WorkspaceManagerBase):self._cache: dict[str, tuple[LocalWorkspace, float]] = {}self._lock = asyncio.Lock()- def _evict_expired(self, now: float) -> list[LocalWorkspace]:+ def _pop_expired(self, now: float) -> list[LocalWorkspace]:+ """Pop every cache entry whose last-access exceeds ``ttl``.++ Caller is responsible for closing the returned workspaces+ *outside* the manager lock so a slow ``close()`` does not stall+ unrelated ``get_workspace`` callers.+ """expired_ids = [wid for wid, (_, ts) in self._cache.items() if now - ts > self._ttl]- evicted = []- for wid in expired_ids:- ws, _ = self._cache.pop(wid)- evicted.append(ws)- return evicted+ return [self._cache.pop(wid)[0] for wid in expired_ids]async def get_workspace(self,@@ -94,22 +133,61 @@ class LocalWorkspaceManager(WorkspaceManagerBase):workspace_id: str,) -> LocalWorkspace:"""Return an initialized workspace, reconstructing from- disk on cache miss."""+ disk on cache miss.++ Mirrors the Docker / E2B managers' double-check pattern: a+ first lock acquisition handles the cache-hit fast path and+ collects expired entries; expired entries are then closed in+ parallel *outside* the lock; on a miss a second acquisition+ runs ``initialize()`` while holding the lock so two concurrent+ cache misses for the same ``workspace_id`` cannot create two+ workspaces.+ """+ del user_id # accepted for interface parity; not used here++ # Phase 1: cache hit + collect expired.async with self._lock:now = time.monotonic()- for ws in self._evict_expired(now):- await ws.close()-- if workspace_id in self._cache:- ws, _ = self._cache[workspace_id]+ expired = self._pop_expired(now)+ cached = self._cache.get(workspace_id)+ if cached is not None:+ ws, _ = cachedself._cache[workspace_id] = (ws, now)+ hit: LocalWorkspace | None = ws+ else:+ hit = None++ # Phase 2: close expired entries outside the lock, in parallel,+ # so a slow stdio MCP shutdown does not block unrelated callers.+ if expired:+ await asyncio.gather(+ *(self._safe_close(ws) for ws in expired),+ return_exceptions=True,+ )++ if hit is not None:+ return hit++ # Phase 3: build under the lock to prevent two concurrent+ # get_workspace(workspace_id=X) calls from creating two+ # workspaces for the same id.+ async with self._lock:+ cached = self._cache.get(workspace_id)+ if cached is not None:+ ws, _ = cached+ self._cache[workspace_id] = (ws, time.monotonic())return ws# Workdir is deterministic for local workspaces — no storage neededworkdir = os.path.join(self._basedir, agent_id)- ws = LocalWorkspace(workdir=workdir, skill_paths=self._skill_paths)+ ws = LocalWorkspace(+ workspace_id=workspace_id,+ workdir=workdir,+ default_mcps=self._default_mcps,+ skill_paths=self._skill_paths,+ )await ws.initialize()- self._cache[workspace_id] = (ws, now)+ self._cache[workspace_id] = (ws, time.monotonic())return wsasync def create_workspace(@@ -119,28 +197,54 @@ class LocalWorkspaceManager(WorkspaceManagerBase):session_id: str,) -> LocalWorkspace:"""Create a new workspace for the given agent and return it."""+ del user_id, session_id # accepted for interface parity++ workdir = os.path.join(self._basedir, agent_id)+ os.makedirs(workdir, exist_ok=True)+ ws = LocalWorkspace(+ workdir=workdir,+ default_mcps=self._default_mcps,+ skill_paths=self._skill_paths,+ )+ await ws.initialize()async with self._lock:- workdir = os.path.join(self._basedir, agent_id)- os.makedirs(workdir, exist_ok=True)- ws = LocalWorkspace(- workdir=workdir,- default_mcps=self._default_mcps,- skill_paths=self._skill_paths,- )- await ws.initialize()- self._cache[ws.id] = (ws, time.monotonic())- return ws+ self._cache[ws.workspace_id] = (ws, time.monotonic())+ return wsasync def close(self, workspace_id: str) -> None:"""Close and evict a single workspace from the cache."""async with self._lock:- if workspace_id in self._cache:- ws, _ = self._cache.pop(workspace_id)- await ws.close()+ entry = self._cache.pop(workspace_id, None)+ if entry is None:+ return+ ws, _ = entry+ await self._safe_close(ws)async def close_all(self) -> None:- """Close all cached workspaces."""+ """Close every cached workspace in parallel.++ Stdio MCP shutdown can be slow per workspace; doing it+ sequentially on app shutdown produces a noticeable stall, so+ we fan the calls out with :func:`asyncio.gather` (mirrors the+ Docker / E2B managers).+ """async with self._lock:- for ws, _ in self._cache.values():- await ws.close()+ entries = list(self._cache.values())self._cache.clear()+ if not entries:+ return+ await asyncio.gather(+ *(self._safe_close(ws) for ws, _ in entries),+ return_exceptions=True,+ )++ @staticmethod+ async def _safe_close(ws: LocalWorkspace) -> None:+ """Close a workspace, logging any failure instead of raising."""+ try:+ await ws.close()+ except Exception:+ logger.exception(+ "Failed to close LocalWorkspace %s",+ ws.workspace_id,+ )diff --git a/src/agentscope/app/_service/_agent.py b/src/agentscope/app/_service/_agent.pyindex 1981e61a6..2f88b6f5e 100644--- a/src/agentscope/app/_service/_agent.py+++ b/src/agentscope/app/_service/_agent.py@@ -66,25 +66,18 @@ async def get_agent(session_record.config.workspace_id,)- # TODO: should be configurable- from agentscope.tool import Bash, Read, Write, Edit-- toolkit = Toolkit(- tools=[Bash(), Read(), Write(), Edit()],- skills_or_loaders=[],- )-- for mcp_client in await workspace.list_mcps():- await toolkit.register_mcp(mcp_client)-return Agent(name=cfg.name,system_prompt=cfg.system_prompt,model=model,- toolkit=toolkit,+ toolkit=Toolkit(+ tools=await workspace.list_tools(),+ skills_or_loaders=await workspace.list_skills(),+ mcps=await workspace.list_mcps(),+ ),context_config=cfg.context_config,react_config=cfg.react_config,state=agent_state,middlewares=middlewares,- # workspace=workspace,+ offloader=workspace,)diff --git a/src/agentscope/mcp/_mcp_client.py b/src/agentscope/mcp/_mcp_client.pyindex 3fc48f87d..3438baccc 100644--- a/src/agentscope/mcp/_mcp_client.py+++ b/src/agentscope/mcp/_mcp_client.py@@ -154,7 +154,15 @@ class MCPClient(BaseModel):self._initialize_client()def _initialize_client(self) -> None:- """Initialize the underlying MCP client based on config type."""+ """Pre-build the stdio client context manager.++ Only the stdio transport is materialised at construction time —+ ``StdioServerParameters`` carry process-launch details that are+ cheap to bind upfront. HTTP transports are built lazily inside+ :meth:`connect` (or per-call inside :meth:`_get_client_gen` for+ stateless mode), since each ``streamable_http_client`` /+ ``sse_client`` is a one-shot context manager.+ """if self.mcp_config.type == "stdio_mcp":config = self.mcp_configself._client = stdio_client(@@ -282,19 +290,21 @@ class MCPClient(BaseModel):else:return self._create_http_client()- async def list_tools(self) -> list[ToolBase]:- """List available tools from the MCP server. If `enable_tools` and- `disable_tools` are not `None` in the constructor, the returned- tools will be filtered accordingly.+ async def list_raw_tools(self) -> list[mcp.types.Tool]:+ """List available tools from the MCP server in raw+ :class:`mcp.types.Tool` form, applying ``enable_tools`` and+ ``disable_tools`` filtering.++ The full (unfiltered) tool list is cached on ``_cached_tools`` so+ :meth:`get_tool` can resolve names that were filtered out as well.Returns:- `list[ToolBase]`:- List of available MCP tools.+ `list[mcp.types.Tool]`:+ Raw MCP tool descriptors after filtering.Raises:RuntimeError: If not connected (for stateful connections)."""- available_tools: list[mcp.types.Tool] = []if not self.is_stateful:# Stateless: create temporary sessionasync with self._get_client_gen() as cli:@@ -306,15 +316,13 @@ class MCPClient(BaseModel):await session.initialize()res = await session.list_tools()self._cached_tools = res.tools- available_tools = res.toolselse:# Stateful: use existing sessionself._validate_connection()res = await self._session.list_tools()self._cached_tools = res.tools- available_tools = res.tools- # Filter tools based on enable_tools and disable_tools+ available_tools: list = self._cached_toolsif self.enable_tools is not None:available_tools = [tool@@ -325,8 +333,23 @@ class MCPClient(BaseModel):available_tools = [_ for _ in available_tools if _.name not in self.disable_tools]+ return available_tools++ async def list_tools(self) -> list[ToolBase]:+ """List available tools from the MCP server as wrapped+ :class:`ToolBase` instances. If `enable_tools` and `disable_tools`+ are not `None` in the constructor, the returned tools will be+ filtered accordingly.- return [await self.get_tool(_.name) for _ in available_tools]+ Returns:+ `list[ToolBase]`:+ List of available MCP tools.++ Raises:+ RuntimeError: If not connected (for stateful connections).+ """+ raw_tools = await self.list_raw_tools()+ return [await self.get_tool(_.name) for _ in raw_tools]async def get_tool(self,@@ -351,9 +374,10 @@ class MCPClient(BaseModel):# Avoid circular import by importing herefrom ..tool import MCPTool- # Fetch tools if not cached+ # Fetch tools if not cached. Use list_raw_tools() to avoid the+ # recursion list_tools() → get_tool() → list_tools().if self._cached_tools is None:- await self.list_tools()+ await self.list_raw_tools()# Find target tooltarget_tool = Nonediff --git a/src/agentscope/tool/_tool_group.py b/src/agentscope/tool/_tool_group.pyindex e0c5e6dce..87857b0f2 100644--- a/src/agentscope/tool/_tool_group.py+++ b/src/agentscope/tool/_tool_group.py@@ -1,6 +1,6 @@# -*- coding: utf-8 -*-"""The tool group class."""-from typing import Literal+from typing import Literal, Sequencefrom ..mcp import MCPClientfrom ._base import ToolBase@@ -44,7 +44,8 @@ class ToolGroup:description: str | None = None,instructions: str | None = None,tools: list[ToolBase] | None = None,- skills_or_loaders: list[str | Skill | SkillLoaderBase] | None = None,+ skills_or_loaders: Sequence[str | Skill | SkillLoaderBase]+ | None = None,mcps: list[MCPClient] | None = None,) -> None:"""Initialize the tool group.diff --git a/src/agentscope/tool/_toolkit.py b/src/agentscope/tool/_toolkit.pyindex 993617442..726777c6a 100644--- a/src/agentscope/tool/_toolkit.py+++ b/src/agentscope/tool/_toolkit.py@@ -7,6 +7,7 @@ from typing import (AsyncGenerator,Type,Generator,+ Sequence,)import mcp@@ -87,7 +88,8 @@ class Toolkit:def __init__(self,tools: list[ToolBase] | None = None,- skills_or_loaders: list[str | Skill | SkillLoaderBase] | None = None,+ skills_or_loaders: Sequence[str | Skill | SkillLoaderBase]+ | None = None,mcps: list[MCPClient] | None = None,tool_groups: list[ToolGroup] | None = None,meta_tool_response_template: str = DEFAULT_META_TOOL_RESPONSE_TEMPLATE,diff --git a/src/agentscope/workspace/__init__.py b/src/agentscope/workspace/__init__.pyindex 39f0ba19c..875872eaa 100644--- a/src/agentscope/workspace/__init__.py+++ b/src/agentscope/workspace/__init__.py@@ -1,19 +1,18 @@# -*- coding: utf-8 -*-"""The workspace module in agentscope."""-from typing import Annotated, Union--from pydantic import Fieldfrom ._base import WorkspaceBasefrom ._local_workspace import LocalWorkspacefrom ._offload_protocol import Offloader+from ._docker import DockerWorkspace+from ._e2b import E2BWorkspace-AnyWorkspace = Annotated[Union[LocalWorkspace], Field(discriminator="type")]__all__ = [- "AnyWorkspace","WorkspaceBase","LocalWorkspace",+ "DockerWorkspace",+ "E2BWorkspace","Offloader",]diff --git a/src/agentscope/workspace/_base.py b/src/agentscope/workspace/_base.pyindex dab8de0d2..44592e89a 100644--- a/src/agentscope/workspace/_base.py+++ b/src/agentscope/workspace/_base.py@@ -1,92 +1,203 @@# -*- coding: utf-8 -*--"""The workspace base class."""-from abc import abstractmethod-from typing import Any-from uuid import uuid4+"""WorkspaceBase — abstract interface for agent workspaces.++A workspace provides:++- **Resources** — skills available to the agent.+- **Tools** — MCPs and built-in tools for operating on resources.+- **Offload** — persistence of compressed context and tool results+ for agentic retrieval.++Three concrete implementations:-from pydantic import BaseModel, Field+- `LocalWorkspace` — local filesystem.+- `DockerWorkspace` — Docker container.+- `E2BWorkspace` — E2B cloud sandbox.++Consumers:++- **Agent** — calls ``list_mcps``, ``list_skills``, ``list_tools``,+ ``offload_context``, ``offload_tool_result``.+- **User** — dynamically adds/removes MCPs and skills via+ ``add_mcp``, ``remove_mcp``, ``add_skill``, ``remove_skill``.+- **Developer** — manages lifecycle via ``initialize`` / ``close``.+"""++import uuid+from abc import abstractmethod+from typing import Selffrom ..mcp import MCPClient-from ..skill import Skillfrom ..message import Msg, ToolResultBlock+from ..skill import Skillfrom ..tool import ToolBase-class WorkspaceBase(BaseModel):- """Abstract base class representing the execution environment of an agent.+class WorkspaceBase:+ """Abstract base class for all workspace implementations.- Inherits from ``BaseModel`` so that each workspace instance is directly- serializable via ``model_dump()`` / ``model_validate()``. The ``type``- discriminator field enables the manager to reconstruct the correct- subclass from ``WorkspaceRecord.data`` without a separate factory.+ Subclasses provide concrete behaviour for one execution backend+ (local filesystem, Docker container, E2B sandbox). The base class+ only fixes the lifecycle contract (``initialize`` / ``close`` /+ ``reset``), the ``async with`` protocol, and the discovery /+ offload / add-remove method signatures consumed by ``Agent`` and+ by the workspace manager layer.- Subclasses must declare ``type: Literal["<name>"] = "<name>"`` and- implement all abstract methods.+ State held on the base class is intentionally minimal:+ ``workspace_id`` (stable identifier, generated if not given) and+ ``is_alive`` (lifecycle flag). All backend-specific state lives on+ the subclass."""- id: str = Field(default_factory=lambda: uuid4().hex)- """Unique workspace identifier, assigned at creation."""+ workspace_id: str+ """Unique identifier for this workspace instance."""- type: str- """Discriminator field — subclasses fix this to a Literal value."""+ is_alive: bool+ """If the workspace is still operational."""- model_config = {"arbitrary_types_allowed": True}+ def __init__(self, workspace_id: str | None) -> None:+ """Initialize the workspace base instance."""+ self.workspace_id = workspace_id or uuid.uuid4().hex+ self.is_alive = False++ # ── lifecycle (developer) ──────────────────────────────────────@abstractmethodasync def initialize(self) -> None:- """Initialize the workspace (connect MCPs, copy skills, etc.)."""+ """Provision resources, connect MCP servers, copy skills."""@abstractmethodasync def close(self) -> None:- """Close the workspace and release all resources."""+ """Release all resources and connections."""++ async def reset(self) -> None:+ """Reset the workspace to a clean state.++ Closes and removes all registered MCPs, deletes all skills,+ and wipes per-session state (offloaded context / tool results+ and any data files). Constructor-time ``default_mcps`` and+ ``skill_paths`` are **not** re-seeded — reset returns the+ workspace to an empty state, not its initial state.++ The default implementation is a no-op. Subclasses with user+ state must override this.+ """++ async def __aenter__(self) -> Self:+ """Context manager support for ``async with``. Calls ``initialize()``+ and returns the workspace instance.+ """+ await self.initialize()+ self.is_alive = True+ return self++ async def __aexit__(self, *exc: object) -> None:+ """Context manager support for ``async with``. Calls ``close()``+ and returns the workspace instance.+ """+ await self.close()+ self.is_alive = False++ # ── instructions ───────────────────────────────────────────────@abstractmethodasync def get_instructions(self) -> str:- """Return workspace instructions appended to the agent- system prompt."""+ """Workspace-specific system prompt fragment."""++ # ── for Agent: tool & resource discovery ───────────────────────@abstractmethodasync def list_tools(self) -> list[ToolBase]:- """Return all tools available in this workspace."""+ """Built-in tools scoped to this workspace."""@abstractmethod- async def list_skills(self) -> list[Skill]:- """Return all skills available in this workspace."""+ async def list_mcps(self) -> list[MCPClient]:+ """Active MCP clients (each provides its own tools)."""@abstractmethod- async def list_mcps(self) -> list[MCPClient]:- """Return all MCP clients attached to this workspace."""+ async def list_skills(self) -> list[Skill]:+ """Skills available in this workspace."""++ # ── for Agent: offload ─────────────────────────────────────────@abstractmethodasync def offload_context(self,session_id: str,msgs: list[Msg],- **kwargs: Any,) -> str:- """Offload compressed context to workspace-accessible storage."""+ """Persist compressed context for agentic retrieval.++ Args:+ session_id: Unique session identifier used to+ partition offloaded data.+ msgs: Conversation messages to offload.++ Returns:+ Path or identifier for the offloaded data.+ """@abstractmethodasync def offload_tool_result(self,session_id: str,tool_result: ToolResultBlock,- **kwargs: Any,) -> str:- """Offload a tool result to workspace-accessible storage."""+ """Persist a tool result for agentic retrieval.++ Args:+ session_id: Unique session identifier used to+ partition offloaded data.+ tool_result: The tool result block to offload.++ Returns:+ Path or identifier for the offloaded data.+ """++ # ── for User: dynamic MCP management ───────────────────────────@abstractmethod- async def add_mcp(self, mcp: MCPClient) -> None:- """Add an MCP client and connect it if stateful."""+ async def add_mcp(self, mcp_client: MCPClient) -> None:+ """Dynamically register a new MCP server.++ Args:+ mcp_client: An :class:`MCPClient` instance describing+ the MCP server to add.++ Raises:+ ValueError: If an MCP with the same name already exists.+ """@abstractmethod- async def remove_mcp(self, mcp_name: str) -> None:- """Remove an MCP client by name, disconnecting it if stateful."""+ async def remove_mcp(self, name: str) -> None:+ """Dynamically remove an MCP server by name.++ Args:+ name: Name of the MCP server to remove.+ """++ # ── for User: dynamic skill management ─────────────────────────@abstractmethodasync def add_skill(self, skill_path: str) -> None:- """Add a skill to the workspace by copying from the given path."""+ """Add a skill from a local directory path.++ The directory must contain a ``SKILL.md`` with ``name``+ and ``description`` in its YAML front matter.++ Args:+ skill_path: Absolute or relative path to the skill+ directory on the local filesystem.+ """@abstractmethod- async def remove_skill(self, skill_name: str) -> None:- """Remove a skill from the workspace by copying from the given path."""+ async def remove_skill(self, name: str) -> None:+ """Remove a skill by its agent-facing name.++ Args:+ name: The ``name`` field from the skill's+ ``SKILL.md`` front matter.++ Raises:+ KeyError: If the skill is not found in the workspace.+ """diff --git a/src/agentscope/workspace/_docker/Dockerfile.install_pypi.template b/src/agentscope/workspace/_docker/Dockerfile.install_pypi.templatenew file mode 100644index 000000000..1ab608035--- /dev/null+++ b/src/agentscope/workspace/_docker/Dockerfile.install_pypi.template@@ -0,0 +1,5 @@+# ``--no-deps``: see Dockerfile.install_src.template for the rationale.+# Gateway only needs ``agentscope.mcp.MCPClient`` and its lightweight+# transitive imports (mcp, pydantic, httpx, fastapi), all of which are+# pulled in by requirements.txt above.+RUN uv pip install --no-deps "agentscope=={agentscope_version}"diff --git a/src/agentscope/workspace/_docker/Dockerfile.install_src.template b/src/agentscope/workspace/_docker/Dockerfile.install_src.templatenew file mode 100644index 000000000..15a8fe959--- /dev/null+++ b/src/agentscope/workspace/_docker/Dockerfile.install_src.template@@ -0,0 +1,12 @@+# TODO(release): when agentscope is on PyPI, drop this whole block and use+# Dockerfile.install_pypi.template instead. Copying the source tree is a+# transitional dev-only path so the in-container gateway can `import agentscope`.+COPY agentscope_src /tmp/agentscope_src+# ``--no-deps``: the gateway only imports ``agentscope.mcp.MCPClient``,+# whose transitive needs (mcp, pydantic, httpx, fastapi) are already+# installed via requirements.txt above. Skipping agentscope's full+# dependency tree avoids dragging in heavy/Rust-built packages+# (ripgrep, tree_sitter, opentelemetry, anthropic/openai SDKs, …)+# which would otherwise require a C/Rust toolchain in the slim image.+RUN uv pip install --no-deps /tmp/agentscope_src \+ && rm -rf /tmp/agentscope_srcdiff --git a/src/agentscope/workspace/_docker/Dockerfile.node_copy.template b/src/agentscope/workspace/_docker/Dockerfile.node_copy.templatenew file mode 100644index 000000000..928606cd5--- /dev/null+++ b/src/agentscope/workspace/_docker/Dockerfile.node_copy.template@@ -0,0 +1,4 @@+COPY --from=node_stage /usr/local/bin/node /usr/local/bin/node+COPY --from=node_stage /usr/local/lib/node_modules /usr/local/lib/node_modules+RUN ln -sf /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \+ && ln -sf /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npxdiff --git a/src/agentscope/workspace/_docker/Dockerfile.node_from.template b/src/agentscope/workspace/_docker/Dockerfile.node_from.templatenew file mode 100644index 000000000..396843f3c--- /dev/null+++ b/src/agentscope/workspace/_docker/Dockerfile.node_from.template@@ -0,0 +1 @@+FROM node:{node_version}-slim AS node_stage\ No newline at end of filediff --git a/src/agentscope/workspace/_docker/Dockerfile.template b/src/agentscope/workspace/_docker/Dockerfile.templatenew file mode 100644index 000000000..74c01745a--- /dev/null+++ b/src/agentscope/workspace/_docker/Dockerfile.template@@ -0,0 +1,45 @@+# syntax=docker/dockerfile:1.6+{node_from_block}FROM {base_image}++# Install uv via Astral's official shell installer.+# We use this rather than ``COPY --from=ghcr.io/astral-sh/uv`` to avoid+# depending on GitHub Container Registry at build time (the GHCR blob CDN+# has been observed to time out from some networks). ``curl`` and+# ``ca-certificates`` are not present in ``python:*-slim`` so we apt them+# in first, then drop the apt cache to keep the layer small.+# ``UV_INSTALL_DIR`` redirects the installer's default ``~/.local/bin``+# target to ``/usr/local/bin`` so ``uv`` lands directly on PATH;+# ``INSTALLER_NO_MODIFY_PATH=1`` suppresses the installer's attempt to+# patch shell rc files (we don't need it — PATH already covers it).+RUN apt-get update \+ && apt-get install -y --no-install-recommends curl ca-certificates \+ && rm -rf /var/lib/apt/lists/* \+ && curl -LsSf https://astral.sh/uv/install.sh \+ | env UV_INSTALL_DIR=/usr/local/bin INSTALLER_NO_MODIFY_PATH=1 sh++{node_copy_block}ENV UV_PROJECT_ENVIRONMENT={gateway_home}/.venv \+ UV_LINK_MODE=copy \+ PATH={gateway_home}/.venv/bin:$PATH+WORKDIR {gateway_home}+RUN uv venv {gateway_home}/.venv++# TODO(release): once agentscope ships an extra such as `agentscope[gateway]`+# bundling fastapi/uvicorn/mcp, drop requirements.txt and fold these pins into+# the install step below — keeping a single `uv pip install agentscope[gateway]`.+COPY requirements.txt {gateway_home}/requirements.txt+# Note: aiodocker drives the legacy build endpoint, which does not+# support BuildKit cache mounts (``--mount=type=cache,...``). uv's+# in-package cache still works for single-build deduping; we just lose+# inter-build layer cache reuse — acceptable since the image tag hash+# already gates re-builds at the layer level.+RUN uv pip install -r {gateway_home}/requirements.txt++{install_agentscope_block}+# Standalone gateway script. We invoke this directly (not via+# ``python -m``) so Python does not auto-import+# ``agentscope.workspace.__init__`` and pull in its heavy module+# graph (skill, tool, …). The script imports only+# ``agentscope.mcp.MCPClient``.+COPY _mcp_gateway_app.py {gateway_home}/_mcp_gateway_app.py++WORKDIR {container_workdir}diff --git a/src/agentscope/workspace/_docker/__init__.py b/src/agentscope/workspace/_docker/__init__.pynew file mode 100644index 000000000..37eb79152--- /dev/null+++ b/src/agentscope/workspace/_docker/__init__.py@@ -0,0 +1,12 @@+# -*- coding: utf-8 -*-+"""Docker-backed workspace.++The container image is built on demand from a content-hashed Dockerfile+(see :mod:`._make_dockerfile`); a tag cache hit skips the build. MCP+servers run *inside* the container behind a FastAPI gateway and are+reached over HTTP — see :mod:`agentscope.workspace._gateway_client`.+"""++from ._docker_workspace import DockerWorkspace++__all__ = ["DockerWorkspace"]diff --git a/src/agentscope/workspace/_docker/_docker_workspace.py b/src/agentscope/workspace/_docker/_docker_workspace.pynew file mode 100644index 000000000..dd37122e8--- /dev/null+++ b/src/agentscope/workspace/_docker/_docker_workspace.py@@ -0,0 +1,1229 @@+# -*- coding: utf-8 -*-+"""DockerWorkspace — sandboxed workspace backed by a Docker container.++Architecture+------------++* Container lifecycle (build + run + stop) via **aiodocker**.+* MCP servers run *inside* the container behind a FastAPI gateway+ (see :mod:`agentscope.workspace._mcp_gateway`); the host talks to it+ over HTTP via :class:`GatewayClient` / :class:`GatewayMCPClient`.+* Optional bind-mounted host ``workdir`` makes the workspace+ persistent — ``.mcp`` (registered MCPs), ``skills/``, ``sessions/``+ and ``data/`` survive restarts. Without ``workdir`` the container+ is ephemeral.+* Image is content-hashed by Dockerfile + COPY payloads+ (see :mod:`._make_dockerfile`); a cache hit skips the build.++Persistence model mirrors :class:`agentscope.workspace.LocalWorkspace`:+on each :meth:`initialize`, MCPs are restored from ``<workdir>/.mcp``+if it exists (otherwise ``default_mcps`` are used and persisted).+Every :meth:`add_mcp` / :meth:`remove_mcp` rewrites the file.++The gateway bearer token is freshly generated on each ``initialize``+and shipped into the container via the gateway config file — it is+*not* persisted.+"""++import asyncio+import base64+import hashlib+import io+import json+import mimetypes+import os+import posixpath+import shlex+import shutil+import sys+import tarfile+import uuid+from copy import deepcopy+from dataclasses import dataclass+from typing import Any++from pydantic import AnyUrl++from ..._logging import logger+from ...mcp import MCPClient+from ...message import (+ Base64Source,+ DataBlock,+ Msg,+ TextBlock,+ ToolResultBlock,+ URLSource,+)+from ...skill import Skill+from ...tool import ToolBase+from .._base import WorkspaceBase+from .._gateway_client import (+ GatewayClient,+ GatewayMCPClient,+)+from ._make_dockerfile import (+ CONTAINER_DATA_DIR,+ CONTAINER_SESSIONS_DIR,+ CONTAINER_SKILLS_DIR,+ CONTAINER_WORKDIR,+ DEFAULT_BASE_IMAGE,+ DEFAULT_GATEWAY_PORT,+ GATEWAY_CONFIG,+ GATEWAY_HOME,+ GATEWAY_LOG,+ GATEWAY_SCRIPT,+ GATEWAY_VENV,+ prepare_build_context,+)+++_DEFAULT_INSTRUCTIONS = """<workspace>+You have a Docker-based workspace. All tool calls execute **inside the+container** at ``{workdir}``.++Layout:++```+{workdir}+├── data/ # offloaded multimodal files+├── skills/ # reusable skills+└── sessions/ # session context and tool results+```++Use the MCP-provided tools to interact with the container's filesystem+and processes.+</workspace>"""+++# ── small helpers ──────────────────────────────────────────────────+++@dataclass(frozen=True, slots=True)+class _ExecResult:+ """Result of running a command inside the container via ``docker exec``.++ Attributes:+ exit_code: Process exit code from the container.+ ``-1`` indicates the exec call timed out or the engine+ failed to report a code.+ stdout: Raw bytes captured from the command's stdout+ (channel ``1`` of the docker exec stream).+ stderr: Raw bytes captured from the command's stderr+ (channel ``2`` of the docker exec stream).+ """++ exit_code: int+ stdout: bytes+ stderr: bytes++ def ok(self) -> bool:+ """Return ``True`` iff the command exited with code ``0``."""+ return self.exit_code == 0+++# ── the workspace ──────────────────────────────────────────────────+++class DockerWorkspace(WorkspaceBase):+ """Workspace backed by a Docker container.++ ``default_mcps`` and ``skill_paths`` are seed-time inputs and are+ not retained as instance state past :meth:`initialize`.+ """++ def __init__(+ self,+ *,+ workspace_id: str | None = None,+ base_image: str = DEFAULT_BASE_IMAGE,+ workdir: str | None = None,+ node_version: str | None = None,+ extra_pip: list[str] | None = None,+ gateway_port: int = DEFAULT_GATEWAY_PORT,+ env: dict[str, str] | None = None,+ instructions: str = _DEFAULT_INSTRUCTIONS,+ default_mcps: list[MCPClient] | None = None,+ skill_paths: list[str] | None = None,+ ) -> None:+ """Construct a :class:`DockerWorkspace`.++ The workspace is *not* started here; call :meth:`initialize`+ (or use the workspace as an ``async`` context manager).++ Args:+ workspace_id (`str | None`, optional):+ Existing workspace identifier to adopt. ``None``+ generates a fresh UUID. When the same+ ``workspace_id`` is paired with a persistent+ ``workdir``, restarts are stable across processes.+ base_image (`str`, defaults to `DEFAULT_BASE_IMAGE`):+ Base Docker image. Must provide ``python3`` in+ ``$PATH`` (e.g. ``"python:3.11-slim"``). The image is+ rebuilt on top of this base via the dynamic+ Dockerfile (uv venv + agentscope install + optional+ node + ``extra_pip``).+ workdir (`str | None`, optional):+ Host directory bind-mounted to ``/workspace`` inside+ the container. ``None`` makes the workspace+ ephemeral — files written under ``/workspace`` live+ only in the container's writable layer and are lost+ on :meth:`close`. When set, the directory is created+ on demand and the ``.mcp`` / ``skills/`` /+ ``sessions/`` / ``data/`` layout is mirrored+ host-side.+ node_version (`str | None`, optional):+ Major Node.js version to bake into the image (e.g.+ ``"20"``). ``None`` skips Node entirely.+ extra_pip (`list[str] | None`, optional):+ Extra Python packages to install into the gateway+ venv at image-build time.+ gateway_port (`int`, defaults to `DEFAULT_GATEWAY_PORT`):+ TCP port the gateway listens on inside the+ container; always exposed to a randomly assigned+ host port.+ env (`dict[str, str] | None`, optional):+ Environment variables to set inside the container.+ instructions (`str`, defaults to `_DEFAULT_INSTRUCTIONS`):+ System-prompt fragment template returned by+ :meth:`get_instructions`. Supports the ``{workdir}``+ placeholder, replaced with the container-side path.+ default_mcps (`list[MCPClient] | None`, optional):+ Initial MCPs registered on first :meth:`initialize`.+ On subsequent restarts with a persistent ``workdir``+ these are ignored in favour of the persisted+ ``<workdir>/.mcp`` file.+ skill_paths (`list[str] | None`, optional):+ Local skill directories seeded into+ ``<workdir>/skills`` on first :meth:`initialize`+ (only when ``workdir`` is set; subsequent starts+ treat the host directory as the source of truth).+ """+ super().__init__(workspace_id=workspace_id)++ # ── serializable config ─────────────────────────────────+ self.base_image = base_image+ self.workdir = workdir+ self.node_version = node_version+ self.extra_pip: list[str] = list(extra_pip or [])+ self.gateway_port = gateway_port+ self.env: dict[str, str] = dict(env or {})+ self.instructions = instructions++ # ── seed-only ───────────────────────────────────────────+ self.default_mcps: list[MCPClient] = list(default_mcps or [])+ self.skill_paths: list[str] = list(skill_paths or [])++ # ── runtime state ───────────────────────────────────────+ self._client: Any = None # aiodocker.Docker+ self._container: Any = None+ self._port_mapping: dict[int, int] = {}+ self._image_tag: str = ""+ self._gateway: GatewayClient | None = None+ self._gateway_token: str = ""+ self._mcps: list[MCPClient] = []+ self._gateway_clients: dict[str, GatewayMCPClient] = {}+ self._mcp_lock = asyncio.Lock()+ self._skill_lock = asyncio.Lock()++ # ── lifecycle ───────────────────────────────────────────────++ async def initialize(self) -> None:+ """Build / reuse the image, start the container, launch the gateway.++ Steps:++ 1. Build the workspace image (or reuse a tag-cache hit).+ 2. Restore MCPs from ``<workdir>/.mcp`` if present, else seed+ from ``default_mcps``.+ 3. Mint a fresh gateway bearer token (not persisted).+ 4. Start the container with the gateway port mapped to a host+ port and ``workdir`` (if any) bind-mounted.+ 5. Drop ``gateway.config.json`` into the container, launch the+ gateway via ``python -m agentscope.workspace._mcp_gateway``,+ and wait for ``/health`` to return 200.+ 6. Pull the gateway-side MCP view back as+ :class:`GatewayMCPClient` instances.+ 7. Persist ``.mcp`` and seed skills (only when ``workdir`` is+ set).++ Idempotent — calling on an already-alive workspace is a no-op.++ Raises:+ RuntimeError: If the image build fails, the gateway port+ fails to bind, or the gateway does not become healthy+ within 30 seconds.+ """+ if self.is_alive:+ return++ import aiodocker++ self._client = aiodocker.Docker()++ await self._build_or_reuse_image()++ self._mcps = await self._restore_or_seed_mcps()++ self._gateway_token = uuid.uuid4().hex++ await self._create_and_start_container()++ await self._write_gateway_config()+ await self._start_gateway_process()++ host_port = self._port_mapping[self.gateway_port]+ self._gateway = GatewayClient(+ base_url=f"http://127.0.0.1:{host_port}",+ token=self._gateway_token,+ timeout=30.0,+ )+ await self._wait_for_gateway()++ # Pull back the gateway-side MCP view as GatewayMCPClient instances.+ # The gateway loaded these from the config we just wrote, so the set+ # matches self._mcps name-for-name.+ self._gateway_clients = {+ c.name: c for c in await self._gateway.list_mcps()+ }++ if self.workdir is not None:+ await self._save_mcp_file()+ await self._seed_skills()++ self.is_alive = True++ async def reset(self) -> None:+ """Return the workspace to an empty state.++ Deregisters every MCP from the gateway (``DELETE /mcps/{name}``+ for each), clears the local handles, and wipes ``.mcp``,+ ``skills/``, ``sessions/``, and ``data/`` inside the container.+ The gateway process keeps running with no upstream MCPs.+ ``default_mcps`` / ``skill_paths`` are not re-seeded.+ """+ async with self._mcp_lock, self._skill_lock:+ for gw_client in list(self._gateway_clients.values()):+ try:+ await gw_client.close()+ except Exception as e:+ logger.warning(+ "MCP %r close failed during reset: %s",+ gw_client.name,+ e,+ )+ self._gateway_clients.clear()+ self._mcps = []++ paths = [+ CONTAINER_SESSIONS_DIR,+ CONTAINER_DATA_DIR,+ CONTAINER_SKILLS_DIR,+ ]+ await self._exec(+ "rm -rf " + " ".join(shlex.quote(p) for p in paths),+ )++ # Rewrite ``.mcp`` to an empty list so a future restart does+ # not fall back to ``default_mcps`` (which would only happen+ # if the file were missing).+ if self.workdir is not None:+ await self._save_mcp_file()++ async def close(self) -> None:+ """Stop and remove the container; release the aiodocker client.++ The cached image and the host ``workdir`` are intentionally+ left behind — a subsequent :meth:`initialize` reuses both.+ Errors during gateway/container teardown are swallowed so+ that ``close`` is always safe to call (e.g. from+ ``__aexit__``).+ """+ if self._gateway is not None:+ try:+ await self._gateway.aclose()+ except Exception:+ pass+ self._gateway = None+ self._gateway_clients.clear()++ if self._container is not None:+ # Linux native docker preserves container-side ownership on+ # bind-mounted host paths verbatim — files written by the+ # in-container root process land on host as root, so a+ # non-root host user (CI runner, IDE user) cannot remove+ # them. macOS Docker Desktop / Windows Docker remap uids+ # transparently, so this only matters on Linux. Best-effort:+ # exec failures are swallowed, and we still tear the+ # container down.+ if self.workdir is not None and sys.platform == "linux":+ try:+ await self._exec(+ f"chown -R {os.getuid()}:{os.getgid()} "+ f"{shlex.quote(CONTAINER_WORKDIR)}",+ timeout=10.0,+ )+ except Exception:+ pass+ try:+ await self._container.kill()+ except Exception:+ pass+ try:+ await self._container.delete(force=True)+ except Exception:+ pass+ self._container = None++ if self._client is not None:+ try:+ await self._client.close()+ except Exception:+ pass+ self._client = None++ self.is_alive = False++ # ── instructions ────────────────────────────────────────────++ async def get_instructions(self) -> str:+ """Return the system-prompt fragment for this workspace.++ The configured ``instructions`` template is formatted with the+ container-side ``{workdir}`` (i.e. ``/workspace``), since the+ agent always sees container-internal paths.+ """+ return self.instructions.format(workdir=CONTAINER_WORKDIR)++ # ── tool / MCP / skill discovery ────────────────────────────++ async def list_tools(self) -> list[ToolBase]:+ """Built-in tools exposed by the workspace itself.++ Always empty — every tool reaches the agent through an MCP+ server registered on the in-container gateway.+ """+ return []++ async def list_mcps(self) -> list[MCPClient]:+ """Return one :class:`GatewayMCPClient` per registered MCP.++ Each entry's ``name`` matches the upstream MCP server name and+ all of its protocol calls (connect / close / list_tools /+ get_tool / tool ``__call__``) are routed over HTTP to the+ in-container gateway.+ """+ return list(self._gateway_clients.values())++ async def list_skills(self) -> list[Skill]:+ """Enumerate skills by scanning ``skills/`` inside the container.++ For each ``SKILL.md`` found, parses the YAML front-matter and+ yields a :class:`Skill`. Files missing a ``name`` or+ ``description`` field are skipped.++ Returns:+ Skills available to the agent. Empty when the directory+ is missing or contains no parseable ``SKILL.md`` files.+ """+ import frontmatter as fm++ result = await self._exec(+ f"find {CONTAINER_SKILLS_DIR} -name SKILL.md "+ f"2>/dev/null || true",+ )+ if not result.ok():+ return []+ listing = result.stdout.decode(errors="replace").strip()+ if not listing:+ return []++ skills: list[Skill] = []+ for md_path in (line.strip() for line in listing.split("\n")):+ if not md_path:+ continue+ try:+ raw = await self._read(md_path)+ doc = fm.loads(raw.decode("utf-8"))+ name = doc.get("name")+ desc = doc.get("description")+ if not name or not desc:+ continue+ skills.append(+ Skill(+ name=str(name),+ description=str(desc),+ dir=posixpath.dirname(md_path),+ markdown=doc.content or "",+ updated_at=0.0,+ ),+ )+ except Exception as e:+ logger.warning("Failed to load skill %s: %s", md_path, e)+ return skills++ # ── dynamic MCP management ──────────────────────────────────++ async def add_mcp(self, mcp_client: MCPClient) -> None:+ """Register a new MCP server on the in-container gateway.++ Serialises the supplied client, registers it on the gateway+ (which spawns the upstream MCP session inside the container),+ and adds the corresponding :class:`GatewayMCPClient` handle to+ :meth:`list_mcps`. The change is persisted to ``.mcp`` when+ ``workdir`` is set.++ Args:+ mcp_client: An :class:`MCPClient` describing the upstream+ server (stdio / HTTP / SSE config). Its+ ``model_dump()`` is what the gateway consumes, so any+ ``MCPClient`` subclass is accepted.++ Raises:+ ValueError: If an MCP with the same name is already+ registered in this workspace.+ RuntimeError: If the gateway rejects the registration+ (e.g. upstream command not found inside the+ container).+ """+ async with self._mcp_lock:+ if mcp_client.name in self._gateway_clients:+ raise ValueError(+ f"MCP {mcp_client.name!r} already exists in workspace.",+ )+ spec = mcp_client.model_dump(mode="json")+ gw_client = self._gateway.make_client(spec)+ await gw_client.connect()+ self._mcps.append(mcp_client)+ self._gateway_clients[gw_client.name] = gw_client+ if self.workdir is not None:+ await self._save_mcp_file()++ async def remove_mcp(self, name: str) -> None:+ """Unregister an MCP server by name.++ Tells the gateway to close the upstream session and drops the+ :class:`GatewayMCPClient` handle from :meth:`list_mcps`. The+ change is persisted to ``.mcp`` when ``workdir`` is set.++ Args:+ name: The ``name`` field of the registered MCP. If no+ MCP by that name exists, a warning is logged and the+ call is a no-op (matching the silent behaviour of the+ local workspace).+ """+ async with self._mcp_lock:+ gw_client = self._gateway_clients.pop(name, None)+ if gw_client is None:+ logger.warning("MCP %r not found in workspace", name)+ return+ try:+ await gw_client.close()+ except Exception as e:+ logger.warning("MCP %r close failed: %s", name, e)+ self._mcps = [m for m in self._mcps if m.name != name]+ if self.workdir is not None:+ await self._save_mcp_file()++ # ── dynamic skill management ────────────────────────────────++ async def add_skill(self, skill_path: str) -> None:+ """Copy a local skill directory into ``skills/`` inside the container.++ The directory must contain a ``SKILL.md`` with ``name`` and+ ``description`` fields in its YAML front matter (validated+ host-side before any container I/O). The directory is+ tarred and uploaded via ``put_archive``; a directory of the+ same basename already present in the container is rejected+ rather than overwritten.++ Args:+ skill_path: Absolute or relative path to a skill+ directory on the host filesystem.++ Raises:+ ValueError: If ``SKILL.md`` is missing, or a directory+ with the same basename already exists in the+ container's ``skills/``.+ """+ skill_md = os.path.join(skill_path, "SKILL.md")+ if not os.path.isfile(skill_md):+ raise ValueError(+ f"Invalid skill at {skill_path!r}: SKILL.md not found",+ )++ async with self._skill_lock:+ await self._exec(f"mkdir -p {CONTAINER_SKILLS_DIR}")+ dir_name = os.path.basename(os.path.abspath(skill_path))++ # Refuse to overwrite an existing directory of the same name —+ # mirrors the conflict-rejection behaviour of ``mkdir`` here+ # rather than LocalWorkspace's full hash-dedup index.+ check = await self._exec(+ f"test -e "+ f"{shlex.quote(CONTAINER_SKILLS_DIR + '/' + dir_name)}",+ )+ if check.ok():+ raise ValueError(+ f"Skill directory {dir_name!r} already exists in "+ f"{CONTAINER_SKILLS_DIR}",+ )++ buf = io.BytesIO()+ with tarfile.open(fileobj=buf, mode="w") as tf:+ tf.add(skill_path, arcname=dir_name)+ await self._container.put_archive(+ CONTAINER_SKILLS_DIR,+ buf.getvalue(),+ )+ logger.info(+ "DockerWorkspace: added skill %r at %s/%s",+ dir_name,+ CONTAINER_SKILLS_DIR,+ dir_name,+ )++ async def remove_skill(self, name: str) -> None:+ """Delete a skill directory by its agent-facing name.++ Looks up the skill by the ``name`` field of its+ ``SKILL.md``, then ``rm -rf`` its directory inside the+ container.++ Args:+ name: The agent-facing skill name (the ``name`` value in+ the SKILL.md front matter, *not* the directory name).++ Raises:+ KeyError: If no skill with that ``name`` is found.+ RuntimeError: If the in-container ``rm -rf`` returns a+ non-zero exit code.+ """+ skills = await self.list_skills()+ target_dir: str | None = None+ for s in skills:+ if s.name == name:+ target_dir = s.dir+ break+ if target_dir is None:+ available = [s.name for s in skills]+ raise KeyError(+ f"Skill {name!r} not found. Available: {available}",+ )+ result = await self._exec(f"rm -rf {shlex.quote(target_dir)}")+ if not result.ok():+ raise RuntimeError(+ f"Failed to remove skill {name!r}: "+ f"{result.stderr.decode(errors='replace')}",+ )++ # ── offload ─────────────────────────────────────────────────++ async def offload_context(+ self,+ session_id: str,+ msgs: list[Msg],+ ) -> str:+ """Persist a batch of messages as JSONL inside the container.++ Each message is appended to+ ``sessions/<session_id>/context.jsonl``. Inline base64+ :class:`DataBlock` payloads are extracted into the shared+ ``data/`` directory and rewritten as ``file://`` URL blocks+ before serialisation, keeping the JSONL line size bounded.++ Args:+ session_id (`str`):+ Session-scope key used to partition offloaded files+ (one subdirectory per session).+ msgs (`list[Msg]`):+ Messages to append. Not mutated — a deep copy is+ used internally so the caller's blocks remain+ base64-inline.++ Returns:+ `str`:+ The container-side path of the JSONL file that+ received the new lines.+ """+ base = f"{CONTAINER_SESSIONS_DIR}/{session_id}"+ path = f"{base}/context.jsonl"++ copied = deepcopy(msgs)+ lines: list[str] = []+ for msg in copied:+ if not isinstance(msg.content, str):+ content = []+ for block in msg.content:+ if isinstance(block, DataBlock) and isinstance(+ block.source,+ Base64Source,+ ):+ block = await self._offload_data_block(block)+ content.append(block)+ msg.content = content+ lines.append(msg.model_dump_json())++ await self._exec(f"mkdir -p {shlex.quote(base)}")+ existing = b""+ try:+ existing = await self._read(path)+ except (FileNotFoundError, OSError):+ pass+ await self._write(+ path,+ existing + ("\n".join(lines) + "\n").encode("utf-8"),+ )+ return path++ async def offload_tool_result(+ self,+ session_id: str,+ tool_result: ToolResultBlock,+ ) -> str:+ """Persist a single tool result as a flat text file.++ Writes ``sessions/<session_id>/tool_result-<id>.txt`` inside+ the container. Text blocks are concatenated verbatim;+ :class:`DataBlock` items are emitted as+ ``<data url='…' name='…' media_type='…'/>`` placeholders,+ with inline base64 payloads first offloaded to ``data/``.++ Args:+ session_id (`str`):+ Session-scope key used to partition offloaded files.+ tool_result (`ToolResultBlock`):+ The tool result block to persist.++ Returns:+ `str`:+ The container-side path of the offloaded text file.+ """+ base = f"{CONTAINER_SESSIONS_DIR}/{session_id}"+ path = f"{base}/tool_result-{tool_result.id}.txt"++ parts: list[str] = []+ if isinstance(tool_result.output, str):+ parts.append(tool_result.output)+ else:+ for block in tool_result.output:+ if isinstance(block, TextBlock):+ parts.append(block.text)+ elif isinstance(block, DataBlock):+ if isinstance(block.source, Base64Source):+ d = await self._offload_data_block(block)+ url = str(d.source.url)+ else:+ url = str(block.source.url)+ parts.append(+ f"<data url='{url}' name='{block.name}' "+ f"media_type='{block.source.media_type}'/>",+ )++ await self._exec(f"mkdir -p {shlex.quote(base)}")+ await self._write(path, "".join(parts).encode("utf-8"))+ return path++ # ── internals: image build ──────────────────────────────────++ async def _build_or_reuse_image(self) -> None:+ """Build the workspace image, or reuse a tag-cache hit.++ The tag is a content hash of the rendered Dockerfile plus+ every file copied into the build context. ``self._image_tag``+ is populated unconditionally so that the container-creation+ step has a stable reference, even on cache hits.++ Raises:+ RuntimeError: If a build error message comes through the+ docker stream.+ """+ ctx_dir, tag, _ = prepare_build_context(+ base_image=self.base_image,+ gateway_home=GATEWAY_HOME,+ container_workdir=CONTAINER_WORKDIR,+ node_version=self.node_version,+ extra_pip=self.extra_pip,+ )+ self._image_tag = tag++ try:+ try:+ await self._client.images.inspect(tag)+ logger.info("DockerWorkspace: image cache hit %r", tag)+ return+ except Exception:+ pass++ logger.info("DockerWorkspace: building image %r", tag)+ # The Docker daemon's POST /build endpoint requires the+ # build context as a tar archive in the request body.+ # docker-py hides this behind a ``path=`` shortcut that+ # tars the directory for you; aiodocker does *not* — we+ # have to tar ``ctx_dir`` ourselves and hand it over via+ # ``fileobj``. ``arcname="."`` puts every entry at the+ # tar root so the daemon finds ``./Dockerfile`` (and the+ # ``COPY`` source files) without an extra prefix.+ tar_buf = io.BytesIO()+ with tarfile.open(fileobj=tar_buf, mode="w") as tf:+ tf.add(str(ctx_dir), arcname=".")+ tar_buf.seek(0)+ # ``encoding="identity"`` tells aiodocker the body is a+ # plain (uncompressed) tar — without it, aiodocker would+ # gzip our already-tarred bytes and the daemon would+ # reject the malformed stream.+ stream = self._client.images.build(+ fileobj=tar_buf,+ encoding="identity",+ tag=tag,+ stream=True,+ rm=True,+ )+ # Buffer recent stream lines so that a failing RUN step's+ # stderr is included in the RuntimeError below — the+ # daemon's ``error`` chunk only carries a one-line summary+ # ("command returned non-zero code: 1") and the actual+ # diagnostic is in the preceding ``stream`` chunks.+ tail: list[str] = []+ tail_max = 200+ async for chunk in stream:+ if isinstance(chunk, dict):+ if "stream" in chunk:+ msg = str(chunk["stream"]).rstrip()+ if msg:+ logger.debug("[docker build] %s", msg)+ tail.append(msg)+ if len(tail) > tail_max:+ del tail[: len(tail) - tail_max]+ if "error" in chunk:+ log = "\n".join(tail)+ raise RuntimeError(+ f"docker build failed: {chunk['error']}\n"+ f"--- last {len(tail)} build log lines ---\n"+ f"{log}",+ )+ finally:+ shutil.rmtree(ctx_dir, ignore_errors=True)++ # ── internals: container lifecycle ──────────────────────────++ async def _create_and_start_container(self) -> None:+ """Create + start the workspace container.++ Wires up:++ * ``Cmd: ["sleep", "infinity"]`` so the container stays up+ even when the gateway is restarted.+ * ``ExposedPorts`` / ``PortBindings`` for ``gateway_port``+ (random host port, ``127.0.0.1`` only).+ * Optional bind mount ``host workdir → /workspace``.+ * ``agentscope.workspace.id`` label for later discovery.++ Resolves the assigned host port into ``self._port_mapping``+ and pre-creates the in-container persistence directories+ (``data/`` / ``skills/`` / ``sessions/``).++ Raises:+ RuntimeError: If the gateway port did not bind to any+ host port (typically a docker daemon issue).+ """+ config: dict[str, Any] = {+ "Image": self._image_tag,+ "Cmd": ["sleep", "infinity"],+ "WorkingDir": CONTAINER_WORKDIR,+ "Labels": {+ "agentscope.workspace": "true",+ "agentscope.workspace.id": self.workspace_id,+ },+ "ExposedPorts": {f"{self.gateway_port}/tcp": {}},+ }+ if self.env:+ config["Env"] = [f"{k}={v}" for k, v in self.env.items()]++ host_config: dict[str, Any] = {+ "PortBindings": {+ f"{self.gateway_port}/tcp": [+ {"HostIp": "127.0.0.1", "HostPort": ""},+ ],+ },+ }+ if self.workdir is not None:+ os.makedirs(self.workdir, exist_ok=True)+ host_config["Binds"] = [+ f"{os.path.abspath(self.workdir)}:{CONTAINER_WORKDIR}:rw",+ ]+ config["HostConfig"] = host_config++ self._container = await self._client.containers.create_or_replace(+ name=f"as_ws_{self.workspace_id}",+ config=config,+ )+ await self._container.start()++ info = await self._container.show()+ ports_info = info.get("NetworkSettings", {}).get("Ports") or {}+ bindings = ports_info.get(f"{self.gateway_port}/tcp", []) or []+ if not bindings:+ raise RuntimeError(+ f"gateway port {self.gateway_port} did not bind to a "+ "host port",+ )+ self._port_mapping[self.gateway_port] = int(bindings[0]["HostPort"])++ # Ensure the in-container persistence dirs exist (also makes a+ # newly-bind-mounted host workdir agentscope-shaped on first use).+ await self._exec(+ "mkdir -p "+ f"{shlex.quote(CONTAINER_DATA_DIR)} "+ f"{shlex.quote(CONTAINER_SKILLS_DIR)} "+ f"{shlex.quote(CONTAINER_SESSIONS_DIR)}",+ )++ async def _restore_or_seed_mcps(self) -> list[MCPClient]:+ """Decide the MCP set to ship to the gateway on startup.++ * No ``workdir`` → return ``default_mcps`` (purely ephemeral).+ * ``workdir`` set, ``<workdir>/.mcp`` missing → return+ ``default_mcps`` and let the next ``_save_mcp_file`` write+ it.+ * ``<workdir>/.mcp`` present → :meth:`MCPClient.model_validate`+ each entry and return them. A read / parse error is+ logged and the call falls back to ``default_mcps`` rather+ than crashing the whole workspace.++ Returns:+ The MCPClient instances to register on the gateway.+ """+ if self.workdir is None:+ return list(self.default_mcps)+ host_mcp = os.path.join(self.workdir, ".mcp")+ if not os.path.isfile(host_mcp):+ return list(self.default_mcps)+ try:+ with open(host_mcp, encoding="utf-8") as f:+ data = json.load(f)+ return [MCPClient.model_validate(m) for m in data]+ except Exception as e:+ logger.warning(+ "DockerWorkspace: failed to read %s, falling back to "+ "default_mcps: %s",+ host_mcp,+ e,+ )+ return list(self.default_mcps)++ async def _save_mcp_file(self) -> None:+ """Persist ``self._mcps`` to ``<workdir>/.mcp`` (host-side JSON).++ No-op when ``workdir`` is ``None``. Failures are logged but+ not raised — losing the persistence file should not+ propagate as an MCP-add/remove error to the caller.+ """+ if self.workdir is None:+ return+ host_mcp = os.path.join(self.workdir, ".mcp")+ try:+ os.makedirs(self.workdir, exist_ok=True)+ with open(host_mcp, "w", encoding="utf-8") as f:+ json.dump(+ [m.model_dump() for m in self._mcps],+ f,+ indent=2,+ ensure_ascii=False,+ )+ except Exception as e:+ logger.warning(+ "DockerWorkspace: failed to save %s: %s",+ host_mcp,+ e,+ )++ async def _write_gateway_config(self) -> None:+ """Drop the gateway's ``--config`` JSON into the container.++ The file at :data:`GATEWAY_CONFIG` carries the freshly minted+ bearer token plus the MCP server specs the gateway should+ bring up at start. This is the *only* path the bearer token+ crosses — it never lands on host disk.+ """+ cfg = {+ "token": self._gateway_token,+ "servers": [m.model_dump(mode="json") for m in self._mcps],+ }+ await self._exec(f"mkdir -p {shlex.quote(GATEWAY_HOME)}")+ await self._write(+ GATEWAY_CONFIG,+ json.dumps(cfg, indent=2, ensure_ascii=False).encode("utf-8"),+ )++ async def _start_gateway_process(self) -> None:+ """Launch the gateway inside the container as a detached process.++ Runs ``nohup python <GATEWAY_SCRIPT> --config <GATEWAY_CONFIG>+ --port <gateway_port>`` from the baked-in venv. The script is+ invoked by path (not via ``python -m``) so Python does not+ auto-import ``agentscope.workspace.__init__`` and the heavy+ module graph it pulls in. stdout/stderr are redirected to+ :data:`GATEWAY_LOG` so :meth:`_wait_for_gateway` can dump the+ tail when startup fails.++ We do not block on this exec call; readiness is detected via+ the ``/health`` poll instead.+ """+ cmd = (+ f"nohup {shlex.quote(GATEWAY_VENV + '/bin/python')} -u "+ f"{shlex.quote(GATEWAY_SCRIPT)} "+ f"--config {shlex.quote(GATEWAY_CONFIG)} "+ f"--port {self.gateway_port} "+ f"> {shlex.quote(GATEWAY_LOG)} 2>&1 &"+ )+ # Detach: we don't await stream completion, just kick it off.+ await self._exec(cmd)++ async def _wait_for_gateway(self, timeout: float = 30.0) -> None:+ """Block until the gateway answers ``/health`` with 200.++ Uses an exponentially-backed-off poll capped at 1 s. When+ the deadline expires, attempts to read the gateway log and+ surfaces the tail in the raised error so callers can see the+ actual startup failure.++ Args:+ timeout: Maximum seconds to wait for readiness.++ Raises:+ RuntimeError: If the gateway does not become healthy+ before the deadline.+ """+ assert self._gateway is not None+ deadline = asyncio.get_event_loop().time() + timeout+ delay = 0.1+ while asyncio.get_event_loop().time() < deadline:+ if await self._gateway.health():+ return+ await asyncio.sleep(delay)+ delay = min(delay * 1.5, 1.0)+ # Last-ditch: dump the gateway log to help debug startup failures.+ try:+ log = await self._read(GATEWAY_LOG)+ tail = log[-2000:].decode(errors="replace")+ except Exception:+ tail = "<no gateway log available>"+ raise RuntimeError(+ f"gateway did not become healthy within {timeout}s. "+ f"Tail of {GATEWAY_LOG}:\n{tail}",+ )++ async def _seed_skills(self) -> None:+ """Copy ``self.skill_paths`` into ``skills/`` once, on first init.++ Skips seeding when (a) ``workdir`` is unset, (b) ``skill_paths``+ is empty, or (c) the host-side ``skills/`` directory already+ contains entries — meaning the user (or a prior init) is the+ source of truth and we should not append duplicates.++ Failures on individual paths are logged and skipped rather+ than raised, so that one bad skill cannot block startup.+ """+ if not self.skill_paths or self.workdir is None:+ return+ skills_host = os.path.join(self.workdir, "skills")+ # The bind mount lazily materialises ``<workdir>/skills`` on+ # host the first time the container writes into it, so on a+ # fresh workdir the host path may not exist yet — create it+ # so the next check has something to inspect.+ os.makedirs(skills_host, exist_ok=True)+ if os.listdir(skills_host):+ # already seeded (or user pre-populated) — leave as-is.+ return+ for path in self.skill_paths:+ try:+ await self.add_skill(path)+ except Exception as e:+ logger.warning(+ "DockerWorkspace: skip skill %r: %s",+ path,+ e,+ )++ # ── internals: container I/O ────────────────────────────────++ async def _exec(+ self,+ command: str,+ *,+ timeout: float | None = None,+ ) -> _ExecResult:+ """Run ``sh -c <command>`` inside the container.++ The exec stream is consumed entirely so that ``stdout`` /+ ``stderr`` capture both stream channels in order. The+ container's ``CONTAINER_WORKDIR`` is used as the working+ directory.++ Args:+ command: Shell command string. Caller is responsible for+ quoting via :func:`shlex.quote`.+ timeout: Maximum seconds to wait for completion. ``None``+ waits indefinitely; on timeout an+ :class:`_ExecResult` with ``exit_code=-1`` and+ ``stderr=b"timed out"`` is returned (no exception).++ Returns:+ The captured exit code and IO streams.+ """++ async def _run() -> _ExecResult:+ exec_obj = await self._container.exec(+ cmd=["sh", "-c", command],+ workdir=CONTAINER_WORKDIR,+ )+ stdout: list[bytes] = []+ stderr: list[bytes] = []+ # ``exec_obj.start()`` returns aiodocker's ``Stream``+ # object — an async context manager wrapping a+ # persistent HTTP/1.1-Upgrade connection to the docker+ # daemon. Drain it with ``read_out()``: each call yields+ # a ``Message(stream=int, data=bytes)`` (channel 1 =+ # stdout, channel 2 = stderr), or ``None`` at EOF when+ # the exec process exits. ``async with`` is required —+ # without it the underlying ``ClientResponse`` is leaked+ # and asyncio logs ``Unclosed response`` at GC time,+ # which on a closed event loop manifests as ``Event loop+ # is closed`` errors during pytest teardown.+ async with exec_obj.start() as stream:+ while True:+ msg = await stream.read_out()+ if msg is None:+ break+ if msg.stream == 1:+ stdout.append(msg.data)+ else:+ stderr.append(msg.data)+ inspect = await exec_obj.inspect()+ code = inspect.get("ExitCode", -1)+ if code is None:+ code = -1+ return _ExecResult(+ exit_code=int(code),+ stdout=b"".join(stdout),+ stderr=b"".join(stderr),+ )++ if timeout is None:+ return await _run()+ try:+ return await asyncio.wait_for(_run(), timeout=timeout)+ except asyncio.TimeoutError:+ return _ExecResult(+ exit_code=-1,+ stdout=b"",+ stderr=b"timed out",+ )++ async def _read(self, path: str) -> bytes:+ """Fetch a file from the container as raw bytes.++ Uses ``get_archive`` (tarfile stream) and extracts the first+ regular member. Compatible with the two stream shapes that+ aiodocker emits (sync ``dict`` payload or async chunk stream).++ Args:+ path: Absolute container-side path of the file to read.++ Returns:+ The file contents.++ Raises:+ FileNotFoundError: If the path does not exist in the+ container, or if the tar stream contains no regular+ file at that path.+ """++ from aiodocker import exceptions as aiodocker_exceptions++ try:+ # ``get_archive`` returns an already-parsed+ # :class:`tarfile.TarFile` (the daemon serves the file+ # entry as a tar stream, aiodocker drains it into memory+ # for us). Iterate members and return the first regular+ # file's bytes.+ tar = await self._container.get_archive(path)+ except aiodocker_exceptions.DockerError as exc:+ # The daemon answers with 404 + ``"Could not find the file+ # ... in container ..."`` when ``path`` is missing.+ # Translate that to ``FileNotFoundError`` so callers can+ # use the standard exception type instead of leaking the+ # aiodocker-specific class.+ if exc.status == 404:+ raise FileNotFoundError(+ f"not found in container: {path}",+ ) from exc+ raise++ try:+ for member in tar.getmembers():+ if member.isfile():+ f = tar.extractfile(member)+ if f:+ return f.read()+ finally:+ tar.close()+ raise FileNotFoundError(f"not found in container: {path}")++ async def _write(self, path: str, data: bytes) -> None:+ """Write raw bytes to a file inside the container.++ Creates the parent directory with ``mkdir -p`` first, then+ uploads a single-entry tar via ``put_archive``. Overwrites+ an existing file at the same path.++ Args:+ path: Absolute container-side destination path.+ data: Raw file contents.+ """+ parent = posixpath.dirname(path) or "/"+ name = posixpath.basename(path)++ await self._exec(f"mkdir -p {shlex.quote(parent)}")+ buf = io.BytesIO()+ with tarfile.open(fileobj=buf, mode="w") as tf:+ info = tarfile.TarInfo(name=name)+ info.size = len(data)+ tf.addfile(info, io.BytesIO(data))+ await self._container.put_archive(parent, buf.getvalue())++ # ── internals: data offload ────────────────────────────────++ async def _offload_data_block(self, block: DataBlock) -> DataBlock:+ """Persist a base64 :class:`DataBlock` under ``data/``.++ The decoded payload is stored at+ ``data/<sha256-of-original-base64>.<ext>``, where ``<ext>`` is+ guessed from the block's media type. Hashing the *base64*+ text rather than the decoded bytes lets a second offload of+ the same block short-circuit (same key, same file).++ Args:+ block: An inline-base64 data block.++ Returns:+ A new :class:`DataBlock` whose source is a ``file://``+ URL pointing at the persisted file inside the container.+ Blocks already backed by a :class:`URLSource` are returned+ unchanged (nothing to persist).+ """+ if not isinstance(block.source, Base64Source):+ return block+ h = hashlib.sha256(block.source.data.encode()).hexdigest()+ ext = mimetypes.guess_extension(block.source.media_type) or ".bin"+ path = f"{CONTAINER_DATA_DIR}/{h}{ext}"+ await self._exec(f"mkdir -p {shlex.quote(CONTAINER_DATA_DIR)}")+ await self._write(path, base64.b64decode(block.source.data))+ return DataBlock(+ id=block.id,+ name=block.name,+ source=URLSource(+ url=AnyUrl(f"file://{path}"),+ media_type=block.source.media_type,+ ),+ )diff --git a/src/agentscope/workspace/_docker/_make_dockerfile.py b/src/agentscope/workspace/_docker/_make_dockerfile.pynew file mode 100644index 000000000..e60b005a5--- /dev/null+++ b/src/agentscope/workspace/_docker/_make_dockerfile.py@@ -0,0 +1,275 @@+# -*- coding: utf-8 -*-+"""Dockerfile generation + build-context preparation for DockerWorkspace.++The image is keyed by content hash of the Dockerfile text plus all+files COPYed into it. If the tag already exists locally the build is+skipped; otherwise the caller builds with the prepared context.++Two install modes are supported, picked automatically from the host's+``agentscope`` install:++* **released** — when ``agentscope`` is in site-packages, the container+ installs the same version from PyPI.+* **dev** — when running from a source checkout, the project tree is+ copied into the build context and installed via ``uv pip install+ /tmp/agentscope_src``. This is a transitional path used until+ agentscope is published; it is marked with TODOs in the templates so+ it is easy to delete later.++Public functions:++* :func:`render_dockerfile` — substitute placeholders in+ ``Dockerfile.template`` and return the rendered text.+* :func:`compute_image_tag` — sha256 of Dockerfile + COPY files;+ returns ``agentscope-workspace:<12hex>``.+* :func:`prepare_build_context` — assemble a temp directory holding+ the Dockerfile, ``requirements.txt``, and (in dev mode) the+ agentscope source tree. Returns ``(ctx_dir, tag, copy_files)``.+"""++import hashlib+import importlib.resources as _res+import shutil+import tempfile+from pathlib import Path++from .._utils import (+ _GATEWAY_BASE_REQUIREMENTS,+ _agentscope_source_root,+ _agentscope_version,+ _is_released_install,+ _is_source_ignored,+ _read_gateway_script_bytes,+)++# ── shared constants (also imported by _docker_workspace) ──────────++DEFAULT_BASE_IMAGE = "python:3.11-slim"+DEFAULT_GATEWAY_PORT = 5600++CONTAINER_WORKDIR = "/workspace"+CONTAINER_DATA_DIR = f"{CONTAINER_WORKDIR}/data"+CONTAINER_SKILLS_DIR = f"{CONTAINER_WORKDIR}/skills"+CONTAINER_SESSIONS_DIR = f"{CONTAINER_WORKDIR}/sessions"+CONTAINER_MCP_FILE = f"{CONTAINER_WORKDIR}/.mcp"++GATEWAY_HOME = "/root/.agentscope"+GATEWAY_VENV = f"{GATEWAY_HOME}/.venv"+GATEWAY_CONFIG = f"{GATEWAY_HOME}/gateway.config.json"+GATEWAY_LOG = f"{GATEWAY_HOME}/gateway.log"+# Standalone gateway script copied into the image. We invoke this+# directly rather than via ``python -m agentscope.workspace._mcp_gateway``+# so Python does not auto-import ``agentscope.workspace.__init__`` (which+# pulls in skill/tool/local_workspace/docker_workspace and their heavy+# transitive dependencies).+GATEWAY_SCRIPT = f"{GATEWAY_HOME}/_mcp_gateway_app.py"++IMAGE_REPO = "agentscope-workspace"++# ── template loading ───────────────────────────────────────────────++_TEMPLATE_PKG = "agentscope.workspace._docker"+_DOCKERFILE_TEMPLATE = "Dockerfile.template"+_DOCKERFILE_NODE_FROM_TEMPLATE = "Dockerfile.node_from.template"+_DOCKERFILE_NODE_COPY_TEMPLATE = "Dockerfile.node_copy.template"+_DOCKERFILE_INSTALL_PYPI_TEMPLATE = "Dockerfile.install_pypi.template"+_DOCKERFILE_INSTALL_SRC_TEMPLATE = "Dockerfile.install_src.template"+++def _read_template(name: str) -> str:+ """Read a packaged template file as text."""+ return _res.files(_TEMPLATE_PKG).joinpath(name).read_text(encoding="utf-8")+++# ── source-tree packaging (dev mode) ───────────────────────────────+++def _source_ignore(_dir: str, names: list[str]) -> list[str]:+ """``shutil.copytree`` ignore filter — defers+ to :func:`_is_source_ignored`."""+ return [n for n in names if _is_source_ignored(n)]+++def _hash_directory(root: Path) -> bytes:+ """Hash a directory tree's contents in a stable order."""+ h = hashlib.sha256()+ for p in sorted(root.rglob("*")):+ if not p.is_file():+ continue+ rel = p.relative_to(root).as_posix().encode("utf-8")+ h.update(b"\x00")+ h.update(rel)+ h.update(b"\x00")+ h.update(p.read_bytes())+ return h.digest()+++# ── public API ─────────────────────────────────────────────────────+++def render_dockerfile(+ *,+ base_image: str = DEFAULT_BASE_IMAGE,+ gateway_home: str = GATEWAY_HOME,+ container_workdir: str = CONTAINER_WORKDIR,+ node_version: str | None = None,+ install_agentscope_block: str = "",+) -> str:+ """Render the Dockerfile by substituting into the template files.++ Args:+ base_image: Base image (must already provide ``python3``).+ gateway_home: In-container directory for the gateway venv,+ script and config.+ container_workdir: Container-side workdir; bind-mounted from+ the host when the workspace's ``workdir`` is set, else+ an empty in-image directory.+ node_version: When given (e.g. ``"20"``) a ``node`` and ``npm``+ of that version are copied from the official Node slim+ image. ``None`` skips Node installation.+ install_agentscope_block: Pre-rendered block (no surrounding+ blank lines) that installs ``agentscope`` into the gateway+ venv. Built by :func:`prepare_build_context` from one of+ ``Dockerfile.install_{pypi,src}.template``.++ Returns:+ The full Dockerfile text.+ """+ if node_version:+ # Normalise trailing whitespace so the main template's surrounding+ # newlines fully control inter-section spacing — the template files+ # themselves are not relied on for exact terminal newlines.+ nf_raw = _read_template(_DOCKERFILE_NODE_FROM_TEMPLATE).format(+ node_version=node_version,+ )+ nc_raw = _read_template(_DOCKERFILE_NODE_COPY_TEMPLATE)+ node_from_block = nf_raw.rstrip() + "\n"+ node_copy_block = nc_raw.rstrip() + "\n\n"+ else:+ node_from_block = ""+ node_copy_block = ""++ return _read_template(_DOCKERFILE_TEMPLATE).format(+ base_image=base_image,+ gateway_home=gateway_home,+ container_workdir=container_workdir,+ node_from_block=node_from_block,+ node_copy_block=node_copy_block,+ install_agentscope_block=install_agentscope_block.rstrip() + "\n",+ )+++def _render_requirements(extra_pip: list[str]) -> str:+ """Render ``requirements.txt`` content for the gateway venv."""+ pinned = list(_GATEWAY_BASE_REQUIREMENTS) + list(extra_pip or [])+ return "\n".join(pinned) + "\n"+++def compute_image_tag(+ dockerfile_text: str,+ copy_files: dict[str, bytes],+) -> str:+ """Hash the Dockerfile and COPY payloads into a deterministic tag.++ Args:+ dockerfile_text: Full Dockerfile text.+ copy_files: Mapping of context-relative filename → bytes for+ every file referenced by a ``COPY`` instruction. Directory+ payloads (e.g. the agentscope source tree in dev mode) are+ represented as a single synthetic key whose value is the+ tree's content hash.++ Returns:+ Tag of the form ``agentscope-workspace:<12 hex chars>``.+ """+ h = hashlib.sha256()+ h.update(b"DOCKERFILE\x00")+ h.update(dockerfile_text.encode("utf-8"))+ for name in sorted(copy_files):+ h.update(b"\x00FILE\x00")+ h.update(name.encode("utf-8"))+ h.update(b"\x00")+ h.update(copy_files[name])+ return f"{IMAGE_REPO}:{h.hexdigest()[:12]}"+++def prepare_build_context(+ *,+ base_image: str = DEFAULT_BASE_IMAGE,+ gateway_home: str = GATEWAY_HOME,+ container_workdir: str = CONTAINER_WORKDIR,+ node_version: str | None = None,+ extra_pip: list[str] | None = None,+) -> tuple[Path, str, dict[str, bytes]]:+ """Assemble a temporary build context directory.++ Writes Dockerfile, ``requirements.txt`` and the agentscope payload+ (source tree in dev mode, nothing extra in released mode) into a+ fresh temp dir. The caller is responsible for removing the+ directory after the build completes.++ Returns:+ ``(ctx_dir, tag, copy_files)`` — ``ctx_dir`` holds the+ materialised files; ``tag`` is the deterministic image tag;+ ``copy_files`` is the same mapping that was hashed into the+ tag (handy for callers that want to recompute / verify).+ """+ extra_pip_list = list(extra_pip or [])++ released = _is_released_install()+ if released:+ version = _agentscope_version()+ install_block = _read_template(+ _DOCKERFILE_INSTALL_PYPI_TEMPLATE,+ ).format(agentscope_version=version)+ source_root: Path | None = None+ else:+ # TODO(release): drop this branch once agentscope is on PyPI; the+ # released path above subsumes it. The dev branch copies the project+ # tree into the build context so the in-container venv can install+ # the same code the host is running.+ install_block = _read_template(_DOCKERFILE_INSTALL_SRC_TEMPLATE)+ source_root = _agentscope_source_root()++ dockerfile_text = render_dockerfile(+ base_image=base_image,+ gateway_home=gateway_home,+ container_workdir=container_workdir,+ node_version=node_version,+ install_agentscope_block=install_block,+ )+ requirements_text = _render_requirements(extra_pip_list)++ # Read the gateway script bytes once — we both hash them into the+ # image tag (so script edits invalidate the image cache) and write+ # them into the build context so the Dockerfile can ``COPY`` them+ # to ``GATEWAY_SCRIPT``.+ gateway_script_bytes = _read_gateway_script_bytes()++ copy_files: dict[str, bytes] = {+ "requirements.txt": requirements_text.encode("utf-8"),+ "_mcp_gateway_app.py": gateway_script_bytes,+ }+ if source_root is not None:+ # Synthetic entry: the directory tree is too large to inline, so we+ # hash it once and stash the digest under a stable key. Image-tag+ # determinism depends only on this digest, not on the temp path.+ copy_files["agentscope_src/"] = _hash_directory(source_root)++ tag = compute_image_tag(dockerfile_text, copy_files)++ ctx_dir = Path(tempfile.mkdtemp(prefix="as-ws-build-"))+ (ctx_dir / "Dockerfile").write_text(dockerfile_text, encoding="utf-8")+ (ctx_dir / "requirements.txt").write_bytes(+ copy_files["requirements.txt"],+ )+ (ctx_dir / "_mcp_gateway_app.py").write_bytes(gateway_script_bytes)+ if source_root is not None:+ shutil.copytree(+ source_root,+ ctx_dir / "agentscope_src",+ ignore=_source_ignore,+ symlinks=False,+ )++ return ctx_dir, tag, copy_filesdiff --git a/src/agentscope/workspace/_e2b/__init__.py b/src/agentscope/workspace/_e2b/__init__.pynew file mode 100644index 000000000..ebd7f7b77--- /dev/null+++ b/src/agentscope/workspace/_e2b/__init__.py@@ -0,0 +1,12 @@+# -*- coding: utf-8 -*-+"""E2B-backed workspace package.++Re-exports :class:`E2BWorkspace` so callers can write+``from agentscope.workspace._e2b import E2BWorkspace`` without having to+poke at the underlying module layout.+"""++from ._e2b_workspace import E2BWorkspace+++__all__ = ["E2BWorkspace"]diff --git a/src/agentscope/workspace/_e2b/_bootstrap.py b/src/agentscope/workspace/_e2b/_bootstrap.pynew file mode 100644index 000000000..1a57c451d--- /dev/null+++ b/src/agentscope/workspace/_e2b/_bootstrap.py@@ -0,0 +1,194 @@+# -*- coding: utf-8 -*-+"""Bootstrap helpers for :class:`E2BWorkspace` first-time provisioning.++Unlike :class:`DockerWorkspace`, E2B has no image-build phase: it+attaches to a pre-built template (``base`` by default). The first+time we create a sandbox for a given ``workspace_id``, we run a+sequence of shell commands to install ``uv``, the gateway venv, the+gateway base requirements, and the ``agentscope`` package. After this+the gateway script is uploaded into the sandbox.++These artefacts persist across ``sandbox.pause()`` / ``resume`` so+the bootstrap cost is paid exactly once per sandbox lifetime.++Two install modes mirror Docker:++* **released** — ``agentscope`` is in site-packages on the host;+ install the same version from PyPI inside the sandbox.+* **dev** — running from a source checkout; tar the project tree on+ the host, upload it as a single blob, untar inside the sandbox, and+ ``uv pip install --no-deps`` it.++``--no-deps`` is mandatory: the gateway only imports+``agentscope.mcp.MCPClient`` whose transitive needs are+``mcp / pydantic / httpx`` (already installed via the gateway base+requirements). Pulling agentscope's full dep tree drags in heavy /+Rust-built packages (ripgrep, tree_sitter, opentelemetry, openai,+anthropic, dashscope) for which the sandbox base image typically has+no compiler, exactly the same trap we hit on Docker.+"""++import io+import tarfile++from ..._logging import logger+from .._utils import (+ _GATEWAY_BASE_REQUIREMENTS,+ _agentscope_source_root,+ _is_source_ignored,+)+++# ── shared constants ───────────────────────────────────────────────++#: Default E2B template. Matches the SDK's ``base`` template — has+#: Ubuntu + python3 + curl out of the box, which is everything the+#: bootstrap needs.+DEFAULT_TEMPLATE = "base"++#: Default keep-alive timeout in seconds for newly-created sandboxes.+DEFAULT_TIMEOUT = 300++#: Default port the in-sandbox gateway listens on.+DEFAULT_GATEWAY_PORT = 5600++#: Sandbox-side runtime user (E2B base image runs as ``user``, not+#: ``root``). All the per-workspace paths sit under its ``$HOME``.+SANDBOX_USER_HOME = "/home/user"++# Workspace-side persistent layout — mirrors the DockerWorkspace one.+SANDBOX_WORKDIR = f"{SANDBOX_USER_HOME}/workspace"+SANDBOX_DATA_DIR = f"{SANDBOX_WORKDIR}/data"+SANDBOX_SKILLS_DIR = f"{SANDBOX_WORKDIR}/skills"+SANDBOX_SESSIONS_DIR = f"{SANDBOX_WORKDIR}/sessions"+SANDBOX_MCP_FILE = f"{SANDBOX_WORKDIR}/.mcp"++# Gateway home — venv, script, config, logs.+GATEWAY_HOME = f"{SANDBOX_USER_HOME}/.agentscope"+GATEWAY_VENV = f"{GATEWAY_HOME}/.venv"+GATEWAY_VENV_PY = f"{GATEWAY_VENV}/bin/python"+GATEWAY_SCRIPT = f"{GATEWAY_HOME}/_mcp_gateway_app.py"+GATEWAY_CONFIG = f"{GATEWAY_HOME}/gateway.config.json"+GATEWAY_LOG = f"{GATEWAY_HOME}/gateway.log"++# uv binary lives under the user's local bin since we cannot write to+# /usr/local/bin without sudo on the default E2B image.+UV_BIN = f"{SANDBOX_USER_HOME}/.local/bin/uv"++#: Sandbox metadata key used to map workspace_id → sandbox_id. The+#: manager filters ``list_sandboxes`` by this key on cache miss to+#: locate (and resume) an existing sandbox.+METADATA_WORKSPACE_ID_KEY = "agentscope.workspace.id"++#: Tarball drop point for dev-mode ``agentscope`` source uploads.+DEV_SRC_TAR = "/tmp/agentscope_src.tar"+DEV_SRC_DIR = "/tmp/agentscope_src"++# ── source tarball (dev mode only) ─────────────────────────────────+++def _tar_filter(info: tarfile.TarInfo) -> tarfile.TarInfo | None:+ """``tarfile.add`` filter — skip caches, hidden files and heavy dirs.++ Returning ``None`` for an entry tells :meth:`tarfile.add` to also+ *stop recursing* into it, so the root archive entry (``arcname="."``)+ must be passed through unchanged — otherwise the entire tree is+ excluded and the resulting tarball is effectively empty.+ """+ if info.name == ".":+ return info+ name = info.name.split("/")[-1]+ if _is_source_ignored(name):+ return None+ return info+++def build_source_tarball() -> bytes:+ """Tar up the agentscope source tree for dev-mode upload.++ Returns the tar bytes (uncompressed); the sandbox will untar with+ ``tar -xf`` (no ``-z``).+ """+ root = _agentscope_source_root()+ buf = io.BytesIO()+ with tarfile.open(fileobj=buf, mode="w") as tf:+ tf.add(str(root), arcname=".", filter=_tar_filter)+ return buf.getvalue()+++# ── bootstrap command sequence ─────────────────────────────────────+++def bootstrap_commands(+ *,+ extra_pip: list[str] | None = None,+ install_agentscope_cmd: str,+) -> list[str]:+ """Return the shell commands to provision a fresh E2B sandbox.++ Args:+ extra_pip: Extra Python packages to install into the gateway+ venv alongside the base requirements.+ install_agentscope_cmd: Shell command that installs+ ``agentscope`` into the gateway venv. Built per install+ mode by :func:`render_install_agentscope_cmd` (released)+ or :func:`render_install_agentscope_cmd_dev` (dev).++ Returns:+ A list of shell command strings, to be executed in order.+ Each must exit 0; a non-zero exit aborts the bootstrap.+ """+ pip_pkgs = list(_GATEWAY_BASE_REQUIREMENTS) + list(extra_pip or [])+ pip_args = " ".join(pip_pkgs)++ return [+ # 1. Persistent layout. mkdir -p is cheap on resume too — keeps+ # the command idempotent in case bootstrap is re-run.+ f"mkdir -p {SANDBOX_DATA_DIR} {SANDBOX_SKILLS_DIR} "+ f"{SANDBOX_SESSIONS_DIR} {GATEWAY_HOME}",+ # 2. Astral uv — same shell installer as Docker. The base E2B+ # image already ships ``curl``; we land uv at+ # ``$HOME/.local/bin`` since the sandbox user has no sudo by+ # default. ``INSTALLER_NO_MODIFY_PATH=1`` suppresses shell+ # rc edits — we always invoke uv by full path here anyway.+ f"curl -LsSf https://astral.sh/uv/install.sh "+ f"| env UV_INSTALL_DIR={SANDBOX_USER_HOME}/.local/bin "+ f"INSTALLER_NO_MODIFY_PATH=1 sh",+ # 3. Gateway venv + base requirements.+ f"{UV_BIN} venv {GATEWAY_VENV}",+ f"{UV_BIN} pip install --python {GATEWAY_VENV_PY} {pip_args}",+ # 4. agentscope itself (mode-dependent).+ install_agentscope_cmd,+ ]+++def render_install_agentscope_cmd_released(version: str) -> str:+ """Released-mode install: pin the same version as the host."""+ return (+ f"{UV_BIN} pip install --python {GATEWAY_VENV_PY} "+ f"--no-deps 'agentscope=={version}'"+ )+++def render_install_agentscope_cmd_dev() -> str:+ """Dev-mode install: untar the uploaded tarball and ``pip install``.++ Caller is responsible for uploading the source tarball to+ :data:`DEV_SRC_TAR` before running this command.+ """+ return (+ f"mkdir -p {DEV_SRC_DIR} && "+ f"tar -xf {DEV_SRC_TAR} -C {DEV_SRC_DIR} && "+ f"{UV_BIN} pip install --python {GATEWAY_VENV_PY} "+ f"--no-deps {DEV_SRC_DIR} && "+ f"rm -rf {DEV_SRC_TAR} {DEV_SRC_DIR}"+ )+++def log_bootstrap_attempt(workspace_id: str, mode: str) -> None:+ """Single info-level log so first-time bootstraps are easy to spot."""+ logger.info(+ "E2BWorkspace: bootstrapping sandbox for workspace_id=%r (mode=%s)",+ workspace_id,+ mode,+ )diff --git a/src/agentscope/workspace/_e2b/_e2b_workspace.py b/src/agentscope/workspace/_e2b/_e2b_workspace.pynew file mode 100644index 000000000..b04727ac7--- /dev/null+++ b/src/agentscope/workspace/_e2b/_e2b_workspace.py@@ -0,0 +1,1034 @@+# -*- coding: utf-8 -*-+"""E2BWorkspace — sandboxed workspace backed by an E2B cloud sandbox.++Architecture+------------++Mirrors :class:`agentscope.workspace.DockerWorkspace` but swaps the+Docker engine for the E2B SDK (``e2b.AsyncSandbox``):++* **Lifecycle.** ``initialize()`` looks up an existing sandbox by+ metadata and either resumes it (``connect(sandbox_id=...)``+ auto-resumes paused sandboxes) or creates a fresh one and runs the+ bootstrap shell sequence. ``close()`` calls ``sandbox.pause()`` so+ the sandbox filesystem (skills, ``.mcp``, sessions, data) survives+ for the next ``initialize()``. There is no ``kill()`` path in this+ iteration.+* **Persistence.** Sandbox filesystem state is the persistence layer —+ there is no host-side ``workdir`` parameter. Pausing keeps the disk;+ resuming brings it back wholesale.+* **Bootstrap.** First-time provisioning installs uv + a gateway venv+ + agentscope (``--no-deps``) and uploads the gateway script. We+ detect whether bootstrap has already happened via a single+ ``files.exists(GATEWAY_SCRIPT)`` probe so the cost is paid exactly+ once per sandbox lifetime.+* **MCP gateway.** Identical to Docker: a FastAPI process inside the+ sandbox, host-side talks to it over HTTPS via E2B's proxy+ (``sandbox.get_host(port)`` + ``X-Access-Token`` header).+* **Service-layer index.** The host stores only ``workspace_id``;+ the sandbox carries ``METADATA_WORKSPACE_ID_KEY = workspace_id`` in+ its E2B metadata. Manager code calls ``AsyncSandbox.list(query=...)``+ with that filter to find the sandbox on cache miss.++Configuration is per-instance: every workspace owns one sandbox. The+manager handles cache, TTL eviction and metadata-based reattachment.+"""++import asyncio+import base64+import hashlib+import json+import mimetypes+import os+import posixpath+import shlex+import uuid+from copy import deepcopy+from dataclasses import dataclass+from typing import Any++from pydantic import AnyUrl++from ..._logging import logger+from ...mcp import MCPClient+from ...message import (+ Base64Source,+ DataBlock,+ Msg,+ TextBlock,+ ToolResultBlock,+ URLSource,+)+from ...skill import Skill+from ...tool import ToolBase+from .._base import WorkspaceBase+from .._gateway_client import (+ GatewayClient,+ GatewayMCPClient,+)+from ._bootstrap import (+ DEFAULT_GATEWAY_PORT,+ DEFAULT_TEMPLATE,+ DEFAULT_TIMEOUT,+ DEV_SRC_TAR,+ GATEWAY_CONFIG,+ GATEWAY_HOME,+ GATEWAY_LOG,+ GATEWAY_SCRIPT,+ GATEWAY_VENV_PY,+ METADATA_WORKSPACE_ID_KEY,+ SANDBOX_DATA_DIR,+ SANDBOX_MCP_FILE,+ SANDBOX_SESSIONS_DIR,+ SANDBOX_SKILLS_DIR,+ SANDBOX_WORKDIR,+ bootstrap_commands,+ build_source_tarball,+ log_bootstrap_attempt,+ render_install_agentscope_cmd_dev,+ render_install_agentscope_cmd_released,+)+from .._utils import (+ _agentscope_version,+ _is_released_install,+ _read_gateway_script_bytes,+)+++_DEFAULT_INSTRUCTIONS = """<workspace>+You have an E2B-based cloud workspace. All tool calls execute **inside+the sandbox** at ``{workdir}``.++Layout:++```+{workdir}+├── data/ # offloaded multimodal files+├── skills/ # reusable skills+└── sessions/ # session context and tool results+```++Use the MCP-provided tools to interact with the sandbox's filesystem+and processes.+</workspace>"""+++# ── small helpers ──────────────────────────────────────────────────+++@dataclass(frozen=True, slots=True)+class _ExecResult:+ """Result of running a command inside the sandbox via ``commands.run``.++ Attributes:+ exit_code: Process exit code from the sandbox. ``-1`` indicates+ the SDK raised before producing a result (e.g. timeout or+ connection error captured in :attr:`stderr`).+ stdout: Captured stdout as raw bytes.+ stderr: Captured stderr as raw bytes.+ """++ exit_code: int+ stdout: bytes+ stderr: bytes++ def ok(self) -> bool:+ """Return ``True`` iff the command exited with code ``0``."""+ return self.exit_code == 0+++# ── the workspace ──────────────────────────────────────────────────+++class E2BWorkspace(WorkspaceBase):+ """Workspace backed by an E2B cloud sandbox.++ ``default_mcps`` and ``skill_paths`` are seed-time inputs and are+ not retained as instance state past :meth:`initialize`.+ """++ def __init__(+ self,+ *,+ workspace_id: str | None = None,+ template: str = DEFAULT_TEMPLATE,+ api_key: str = "",+ domain: str = "",+ timeout_seconds: int = DEFAULT_TIMEOUT,+ gateway_port: int = DEFAULT_GATEWAY_PORT,+ env: dict[str, str] | None = None,+ sandbox_metadata: dict[str, str] | None = None,+ extra_pip: list[str] | None = None,+ instructions: str = _DEFAULT_INSTRUCTIONS,+ default_mcps: list[MCPClient] | None = None,+ skill_paths: list[str] | None = None,+ ) -> None:+ """Construct an :class:`E2BWorkspace`.++ The sandbox is *not* started here; call :meth:`initialize`+ (or use the workspace as an ``async`` context manager).++ Args:+ workspace_id (`str | None`, optional):+ Stable identifier; doubles as the value stored in the+ sandbox's ``agentscope.workspace.id`` metadata for+ later reattachment. ``None`` generates a fresh UUID.+ template (`str`, defaults to `DEFAULT_TEMPLATE`):+ E2B template id. Defaults to ``"base"`` — the stock+ Ubuntu image with python3 + curl, which is enough for+ the bootstrap to install uv on top.+ api_key (`str`, defaults to `""`):+ E2B API key. ``""`` falls back to the ``E2B_API_KEY``+ env var.+ domain (`str`, defaults to `""`):+ Optional custom E2B domain (self-hosted etc.).+ timeout_seconds (`int`, defaults to `DEFAULT_TIMEOUT`):+ Sandbox keep-alive timeout passed to ``create`` /+ ``connect``.+ gateway_port (`int`, defaults to `DEFAULT_GATEWAY_PORT`):+ TCP port the in-sandbox gateway listens on.+ env (`dict[str, str] | None`, optional):+ Environment variables baked into the sandbox at+ create time (``envs`` parameter on the SDK side).+ sandbox_metadata (`dict[str, str] | None`, optional):+ Extra metadata merged with+ ``{METADATA_WORKSPACE_ID_KEY: workspace_id}``. Useful+ for attaching ``user_id`` / ``agent_id`` for E2B+ dashboard filtering.+ extra_pip (`list[str] | None`, optional):+ Extra Python packages to install into the gateway+ venv during bootstrap.+ instructions (`str`, defaults to `_DEFAULT_INSTRUCTIONS`):+ System-prompt fragment template returned by+ :meth:`get_instructions`.+ default_mcps (`list[MCPClient] | None`, optional):+ Initial MCPs registered on first :meth:`initialize`.+ Subsequent restarts read ``$workdir/.mcp`` instead.+ skill_paths (`list[str] | None`, optional):+ Local skill directories seeded into+ ``$workdir/skills`` on first :meth:`initialize`.+ """+ super().__init__(workspace_id=workspace_id)++ # ── serializable config ─────────────────────────────────+ self.template = template+ self.api_key = api_key+ self.domain = domain+ self.timeout_seconds = timeout_seconds+ self.gateway_port = gateway_port+ self.env: dict[str, str] = dict(env or {})+ self.sandbox_metadata: dict[str, str] = dict(sandbox_metadata or {})+ self.extra_pip: list[str] = list(extra_pip or [])+ self.instructions = instructions++ # ── seed-only ───────────────────────────────────────────+ self.default_mcps: list[MCPClient] = list(default_mcps or [])+ self.skill_paths: list[str] = list(skill_paths or [])++ # ── runtime state ───────────────────────────────────────+ self._sandbox: Any = None # e2b.AsyncSandbox+ self._gateway: GatewayClient | None = None+ self._gateway_token: str = ""+ self._mcps: list[MCPClient] = []+ self._gateway_clients: dict[str, GatewayMCPClient] = {}+ self._mcp_lock = asyncio.Lock()+ self._skill_lock = asyncio.Lock()++ # ── lifecycle ───────────────────────────────────────────────++ @property+ def sandbox_id(self) -> str | None:+ """E2B sandbox id, or ``None`` if not started."""+ return self._sandbox.sandbox_id if self._sandbox else None++ async def initialize(self) -> None:+ """Reattach or create the sandbox, then start the gateway.++ Steps:++ 1. Look up an existing sandbox via+ ``AsyncSandbox.list(query=SandboxQuery(metadata=...))``.+ If found, ``AsyncSandbox.connect(sandbox_id=...)`` reattaches+ — it auto-resumes paused sandboxes.+ 2. If not found, ``AsyncSandbox.create(...)`` provisions a+ fresh sandbox tagged with our metadata and runs bootstrap+ (uv → gateway venv → agentscope ``--no-deps`` → upload+ gateway script).+ 3. If bootstrap output is missing on a reattached sandbox+ (e.g. a previous bootstrap was interrupted), run bootstrap+ again — detected by ``files.exists(GATEWAY_SCRIPT)``.+ 4. Restore MCPs from ``$workdir/.mcp`` if present, else seed+ from ``default_mcps``.+ 5. Mint a fresh gateway bearer token (not persisted).+ 6. Kill any leftover gateway process, drop a fresh+ ``gateway.config.json`` into the sandbox, launch the+ gateway, wait for ``/health``.+ 7. Pull the gateway-side MCP view back as+ :class:`GatewayMCPClient` instances.++ Idempotent — a no-op when already alive.+ """+ if self.is_alive:+ return++ await self._attach_or_create_sandbox()++ # If the gateway script is missing, the sandbox is fresh (or+ # a prior bootstrap was interrupted). Re-running bootstrap is+ # safe because every step is idempotent (mkdir -p, uv venv,+ # uv pip install).+ if not await self._sandbox.files.exists(GATEWAY_SCRIPT):+ # ``_exec`` pins ``cwd=SANDBOX_WORKDIR`` so the very first+ # bootstrap command (which itself is ``mkdir -p``) would+ # fail before it ran when the dir does not yet exist.+ # Create it directly via the SDK with no cwd to break the+ # chicken-and-egg.+ await self._sandbox.commands.run(+ f"mkdir -p {shlex.quote(SANDBOX_WORKDIR)}",+ )+ await self._run_bootstrap()++ self._mcps = await self._restore_or_seed_mcps()++ self._gateway_token = uuid.uuid4().hex++ # Stop any stale gateway from a previous resume cycle. Each+ # init mints a new bearer token, so an old gateway listening+ # on the port would happily accept old-token requests but+ # reject new ones — kill it before starting the new one.+ await self._exec(+ "pkill -f _mcp_gateway_app.py || true",+ )++ await self._write_gateway_config()+ await self._start_gateway_process()++ host = self._sandbox.get_host(self.gateway_port)+ self._gateway = GatewayClient(+ base_url=f"https://{host}",+ token=self._gateway_token,+ timeout=30.0,+ extra_headers=self._sandbox_proxy_headers(),+ )+ await self._wait_for_gateway()++ self._gateway_clients = {+ c.name: c for c in await self._gateway.list_mcps()+ }++ # Persist the MCP set unconditionally so a freshly seeded+ # ``self._mcps`` (default_mcps path) is rewritten as the+ # canonical ``.mcp`` for the next restart, and a restored set+ # is round-tripped harmlessly. ``_seed_skills`` itself is+ # idempotent — it short-circuits when the sandbox-side+ # ``skills/`` already has entries.+ await self._save_mcp_file()+ await self._seed_skills()++ self.is_alive = True++ async def reset(self) -> None:+ """Return the workspace to an empty state.++ Mirrors :meth:`DockerWorkspace.reset`: deregisters every MCP+ from the gateway, clears the local handles, and wipes+ ``.mcp``, ``skills/``, ``sessions/``, and ``data/`` inside the+ sandbox. The gateway process keeps running with no upstream+ MCPs. ``default_mcps`` / ``skill_paths`` are not re-seeded.+ """+ async with self._mcp_lock, self._skill_lock:+ for gw_client in list(self._gateway_clients.values()):+ try:+ await gw_client.close()+ except Exception as e:+ logger.warning(+ "MCP %r close failed during reset: %s",+ gw_client.name,+ e,+ )+ self._gateway_clients.clear()+ self._mcps = []++ paths = [+ SANDBOX_SESSIONS_DIR,+ SANDBOX_DATA_DIR,+ SANDBOX_SKILLS_DIR,+ ]+ await self._exec(+ "rm -rf " + " ".join(shlex.quote(p) for p in paths),+ )++ # Rewrite ``.mcp`` to an empty list so a future restart does+ # not fall back to ``default_mcps``.+ await self._save_mcp_file()++ async def close(self) -> None:+ """Pause the sandbox and release host-side resources.++ ``sandbox.pause()`` (not ``kill()``) keeps the sandbox's+ filesystem so the next :meth:`initialize` can reattach to it+ via metadata lookup. The host-side gateway client is closed+ first so its connection pool is released cleanly.++ Errors during teardown are swallowed so ``close`` is always+ safe to call (e.g. from ``__aexit__``).+ """+ if self._gateway is not None:+ try:+ await self._gateway.aclose()+ except Exception:+ pass+ self._gateway = None+ self._gateway_clients.clear()++ if self._sandbox is not None:+ try:+ await self._sandbox.pause()+ except Exception as e:+ logger.warning("E2BWorkspace: pause failed: %s", e)+ self._sandbox = None++ self.is_alive = False++ # ── instructions ────────────────────────────────────────────++ async def get_instructions(self) -> str:+ """Return the system-prompt fragment for this workspace.++ Substitutes ``{workdir}`` in the configured template with+ the sandbox-side path (``/home/user/workspace``). The agent+ always sees sandbox-internal paths.+ """+ return self.instructions.format(workdir=SANDBOX_WORKDIR)++ # ── tool / MCP / skill discovery ────────────────────────────++ async def list_tools(self) -> list[ToolBase]:+ """No built-in tools — every tool reaches the agent via MCP."""+ return []++ async def list_mcps(self) -> list[MCPClient]:+ """Return one :class:`GatewayMCPClient` per registered MCP.++ Each entry's ``name`` matches the upstream MCP server name and+ all of its protocol calls are routed over HTTPS to the+ in-sandbox gateway.+ """+ return list(self._gateway_clients.values())++ async def list_skills(self) -> list[Skill]:+ """Enumerate skills by scanning ``skills/`` inside the sandbox.++ Reads each ``SKILL.md`` via the SDK's ``files.read`` and parses+ the YAML front-matter. Files missing ``name`` or ``description``+ are skipped.+ """+ import frontmatter as fm++ result = await self._exec(+ f"find {SANDBOX_SKILLS_DIR} -name SKILL.md "+ f"2>/dev/null || true",+ )+ if not result.ok():+ return []+ listing = result.stdout.decode(errors="replace").strip()+ if not listing:+ return []++ skills: list[Skill] = []+ for md_path in (line.strip() for line in listing.split("\n")):+ if not md_path:+ continue+ try:+ raw = await self._read(md_path)+ doc = fm.loads(raw.decode("utf-8"))+ name = doc.get("name")+ desc = doc.get("description")+ if not name or not desc:+ continue+ skills.append(+ Skill(+ name=str(name),+ description=str(desc),+ dir=posixpath.dirname(md_path),+ markdown=doc.content or "",+ updated_at=0.0,+ ),+ )+ except Exception as e:+ logger.warning("Failed to load skill %s: %s", md_path, e)+ return skills++ # ── dynamic MCP management ──────────────────────────────────++ async def add_mcp(self, mcp_client: MCPClient) -> None:+ """Register a new MCP server on the in-sandbox gateway.++ Mirrors :meth:`DockerWorkspace.add_mcp` but persists ``.mcp``+ unconditionally — the sandbox filesystem is always+ persistent for E2B.+ """+ async with self._mcp_lock:+ if mcp_client.name in self._gateway_clients:+ raise ValueError(+ f"MCP {mcp_client.name!r} already exists in workspace.",+ )+ spec = mcp_client.model_dump(mode="json")+ assert self._gateway is not None+ gw_client = self._gateway.make_client(spec)+ await gw_client.connect()+ self._mcps.append(mcp_client)+ self._gateway_clients[gw_client.name] = gw_client+ await self._save_mcp_file()++ async def remove_mcp(self, name: str) -> None:+ """Unregister an MCP server by name.++ Mirrors :meth:`DockerWorkspace.remove_mcp`.+ """+ async with self._mcp_lock:+ gw_client = self._gateway_clients.pop(name, None)+ if gw_client is None:+ logger.warning("MCP %r not found in workspace", name)+ return+ try:+ await gw_client.close()+ except Exception as e:+ logger.warning("MCP %r close failed: %s", name, e)+ self._mcps = [m for m in self._mcps if m.name != name]+ await self._save_mcp_file()++ # ── dynamic skill management ────────────────────────────────++ async def add_skill(self, skill_path: str) -> None:+ """Upload a local skill directory into ``skills/`` inside the sandbox.++ The directory must contain a ``SKILL.md`` with ``name`` and+ ``description`` in its YAML front matter. A directory of the+ same basename already in the sandbox is rejected rather than+ overwritten.+ """+ skill_md = os.path.join(skill_path, "SKILL.md")+ if not os.path.isfile(skill_md):+ raise ValueError(+ f"Invalid skill at {skill_path!r}: SKILL.md not found",+ )++ async with self._skill_lock:+ await self._exec(f"mkdir -p {SANDBOX_SKILLS_DIR}")+ dir_name = os.path.basename(os.path.abspath(skill_path))++ check = await self._exec(+ f"test -e {shlex.quote(SANDBOX_SKILLS_DIR + '/' + dir_name)}",+ )+ if check.ok():+ raise ValueError(+ f"Skill directory {dir_name!r} already exists in "+ f"{SANDBOX_SKILLS_DIR}",+ )++ for root, _dirs, files in os.walk(skill_path):+ for fname in files:+ local = os.path.join(root, fname)+ rel = os.path.relpath(local, skill_path)+ remote = f"{SANDBOX_SKILLS_DIR}/{dir_name}/{rel}"+ with open(local, "rb") as f:+ data = f.read()+ await self._sandbox.files.write(remote, data)++ logger.info(+ "E2BWorkspace: added skill %r at %s/%s",+ dir_name,+ SANDBOX_SKILLS_DIR,+ dir_name,+ )++ async def remove_skill(self, name: str) -> None:+ """Delete a skill directory by its agent-facing name."""+ skills = await self.list_skills()+ target_dir: str | None = None+ for s in skills:+ if s.name == name:+ target_dir = s.dir+ break+ if target_dir is None:+ available = [s.name for s in skills]+ raise KeyError(+ f"Skill {name!r} not found. Available: {available}",+ )+ result = await self._exec(f"rm -rf {shlex.quote(target_dir)}")+ if not result.ok():+ raise RuntimeError(+ f"Failed to remove skill {name!r}: "+ f"{result.stderr.decode(errors='replace')}",+ )++ # ── offload ─────────────────────────────────────────────────++ async def offload_context(+ self,+ session_id: str,+ msgs: list[Msg],+ ) -> str:+ """Persist a batch of messages as JSONL inside the sandbox.++ Same shape as :meth:`DockerWorkspace.offload_context`: each+ :class:`Msg` becomes a line; inline base64 :class:`DataBlock`+ payloads are extracted into ``data/`` and replaced with+ ``file://`` URL blocks.+ """+ base = f"{SANDBOX_SESSIONS_DIR}/{session_id}"+ path = f"{base}/context.jsonl"++ copied = deepcopy(msgs)+ lines: list[str] = []+ for msg in copied:+ if not isinstance(msg.content, str):+ content = []+ for block in msg.content:+ if isinstance(block, DataBlock) and isinstance(+ block.source,+ Base64Source,+ ):+ block = await self._offload_data_block(block)+ content.append(block)+ msg.content = content+ lines.append(msg.model_dump_json())++ await self._exec(f"mkdir -p {shlex.quote(base)}")+ existing = b""+ try:+ existing = await self._read(path)+ except FileNotFoundError:+ pass+ await self._sandbox.files.write(+ path,+ existing + ("\n".join(lines) + "\n").encode("utf-8"),+ )+ return path++ async def offload_tool_result(+ self,+ session_id: str,+ tool_result: ToolResultBlock,+ ) -> str:+ """Persist a single tool result as a flat text file."""+ base = f"{SANDBOX_SESSIONS_DIR}/{session_id}"+ path = f"{base}/tool_result-{tool_result.id}.txt"++ parts: list[str] = []+ if isinstance(tool_result.output, str):+ parts.append(tool_result.output)+ else:+ for block in tool_result.output:+ if isinstance(block, TextBlock):+ parts.append(block.text)+ elif isinstance(block, DataBlock):+ if isinstance(block.source, Base64Source):+ d = await self._offload_data_block(block)+ url = str(d.source.url)+ else:+ url = str(block.source.url)+ parts.append(+ f"<data url='{url}' name='{block.name}' "+ f"media_type='{block.source.media_type}'/>",+ )++ await self._exec(f"mkdir -p {shlex.quote(base)}")+ await self._sandbox.files.write(+ path,+ "".join(parts).encode("utf-8"),+ )+ return path++ # ── internals: sandbox attach / create ─────────────────────++ async def _attach_or_create_sandbox(self) -> None:+ """Reattach to an existing sandbox by metadata, or create one.++ Resolution rule: a single sandbox is expected per+ ``workspace_id``. If multiple are returned (e.g. a leaked+ running + paused pair after an unclean shutdown) we attach to+ the newest by ``started_at`` and log a warning — manual+ cleanup is left to the operator.++ Always blocks until the sandbox's envd answers+ :meth:`AsyncSandbox.is_running` so the caller can issue+ ``commands`` / ``files`` calls without hitting transient+ "not yet routable" errors — typical on a paused sandbox that+ has just been auto-resumed via ``connect``.+ """+ from e2b import AsyncSandbox++ existing = await self._find_existing_sandbox()++ api_opts = self._api_opts()+ if existing is not None:+ self._sandbox = await AsyncSandbox.connect(+ sandbox_id=existing.sandbox_id,+ timeout=self.timeout_seconds,+ **api_opts,+ )+ else:+ merged_metadata = {+ METADATA_WORKSPACE_ID_KEY: self.workspace_id,+ **self.sandbox_metadata,+ }+ create_kwargs: dict[str, Any] = {+ "template": self.template,+ "timeout": self.timeout_seconds,+ "metadata": merged_metadata,+ **api_opts,+ }+ if self.env:+ create_kwargs["envs"] = self.env++ self._sandbox = await AsyncSandbox.create(**create_kwargs)++ await self._wait_until_running()++ async def _wait_until_running(self, timeout: float = 30.0) -> None:+ """Poll ``self._sandbox.is_running()`` until it answers ``True``.++ ``AsyncSandbox.create`` / ``AsyncSandbox.connect`` can return+ before the in-sandbox envd is routable. Subsequent+ ``commands.run`` / ``files.exists`` calls against an+ unrouted envd surface as transient SDK errors. We poll envd's+ own ``/health`` (which is what :meth:`AsyncSandbox.is_running`+ wraps — 502 → ``False``, 200 → ``True``) until it goes green.++ Args:+ timeout (`float`, defaults to `30.0`):+ Hard ceiling in seconds. Raises :class:`RuntimeError`+ if envd is still not routable after this long.+ """+ deadline = asyncio.get_event_loop().time() + timeout+ delay = 0.1+ while asyncio.get_event_loop().time() < deadline:+ try:+ if await self._sandbox.is_running():+ return+ except Exception as e: # noqa: BLE001+ # SDK can raise on transient network / proxy errors+ # while the sandbox is still provisioning. Treat as+ # "not yet" and keep polling.+ logger.debug(+ "E2BWorkspace: is_running probe error (will retry): %s",+ e,+ )+ await asyncio.sleep(delay)+ delay = min(delay * 1.5, 1.0)+ raise RuntimeError(+ f"E2B sandbox did not become ready within {timeout}s "+ f"(workspace_id={self.workspace_id!r})",+ )++ async def _find_existing_sandbox(self) -> Any:+ """List sandboxes filtered by ``workspace_id`` metadata.++ Returns the most recent :class:`SandboxInfo` (paused or+ running) or ``None`` if no match exists.+ """+ from e2b import AsyncSandbox+ from e2b.api.client.models.sandbox_state import SandboxState+ from e2b.sandbox.sandbox_api import SandboxQuery++ query = SandboxQuery(+ metadata={METADATA_WORKSPACE_ID_KEY: self.workspace_id},+ state=[SandboxState.PAUSED, SandboxState.RUNNING],+ )++ candidates: list[Any] = []+ paginator = AsyncSandbox.list(query=query, **self._api_opts())+ while paginator.has_next:+ try:+ page = await paginator.next_items()+ except Exception as e:+ logger.warning(+ "E2BWorkspace: list sandboxes failed: %s",+ e,+ )+ break+ candidates.extend(page)++ if not candidates:+ return None+ if len(candidates) > 1:+ logger.warning(+ "E2BWorkspace: %d sandboxes match workspace_id=%r; "+ "attaching to most recent",+ len(candidates),+ self.workspace_id,+ )+ candidates.sort(key=lambda s: s.started_at, reverse=True)+ return candidates[0]++ def _api_opts(self) -> dict[str, Any]:+ """Common ``api_key`` / ``domain`` opts forwarded to E2B SDK calls."""+ opts: dict[str, Any] = {}+ if self.api_key:+ opts["api_key"] = self.api_key+ if self.domain:+ opts["domain"] = self.domain+ return opts++ def _sandbox_proxy_headers(self) -> dict[str, str]:+ """Headers required by the E2B proxy to reach the gateway port.++ E2B's edge proxy gates non-default ports behind the+ ``X-Access-Token`` header tied to the sandbox. The token is+ exposed on the sandbox object as ``traffic_access_token``.+ """+ if self._sandbox is None:+ return {}+ token = getattr(self._sandbox, "traffic_access_token", None)+ if not token:+ return {}+ return {"X-Access-Token": token}++ # ── internals: bootstrap ────────────────────────────────────++ async def _run_bootstrap(self) -> None:+ """Provision a fresh sandbox: uv → venv → agentscope → script.++ Each command runs through :meth:`_exec`; a non-zero exit+ raises :class:`RuntimeError` with the captured stderr so+ startup failures are visible in logs (mirroring the docker+ build-tail strategy).+ """+ if _is_released_install():+ log_bootstrap_attempt(self.workspace_id, "released")+ install_cmd = render_install_agentscope_cmd_released(+ _agentscope_version(),+ )+ else:+ log_bootstrap_attempt(self.workspace_id, "dev")+ tar_bytes = build_source_tarball()+ await self._sandbox.files.write(DEV_SRC_TAR, tar_bytes)+ install_cmd = render_install_agentscope_cmd_dev()++ commands = bootstrap_commands(+ extra_pip=self.extra_pip,+ install_agentscope_cmd=install_cmd,+ )+ for cmd in commands:+ r = await self._exec(cmd, timeout=600.0)+ if not r.ok():+ raise RuntimeError(+ f"E2BWorkspace bootstrap failed (exit {r.exit_code}) "+ f"for: {cmd!r}\n"+ f"stderr: {r.stderr.decode(errors='replace')}\n"+ f"stdout: {r.stdout.decode(errors='replace')}",+ )++ # Upload the gateway script last so its presence is the+ # idempotency marker we probe in :meth:`initialize`.+ await self._sandbox.files.write(+ GATEWAY_SCRIPT,+ _read_gateway_script_bytes(),+ )++ # ── internals: gateway lifecycle ────────────────────────────++ async def _restore_or_seed_mcps(self) -> list[MCPClient]:+ """Decide the MCP set to ship to the gateway on startup.++ * ``$workdir/.mcp`` missing → return ``default_mcps``.+ * ``.mcp`` present → :meth:`MCPClient.model_validate` each+ entry. Read / parse error → log and fall back to+ ``default_mcps``.+ """+ try:+ raw = await self._read(SANDBOX_MCP_FILE)+ except FileNotFoundError:+ return list(self.default_mcps)+ try:+ data = json.loads(raw.decode("utf-8"))+ return [MCPClient.model_validate(m) for m in data]+ except Exception as e:+ logger.warning(+ "E2BWorkspace: failed to parse %s, falling back to "+ "default_mcps: %s",+ SANDBOX_MCP_FILE,+ e,+ )+ return list(self.default_mcps)++ async def _save_mcp_file(self) -> None:+ """Persist ``self._mcps`` to ``$workdir/.mcp`` inside the sandbox.++ Failures are logged but not raised.+ """+ payload = json.dumps(+ [m.model_dump(mode="json") for m in self._mcps],+ indent=2,+ ensure_ascii=False,+ )+ try:+ await self._exec(f"mkdir -p {shlex.quote(SANDBOX_WORKDIR)}")+ await self._sandbox.files.write(+ SANDBOX_MCP_FILE,+ payload.encode("utf-8"),+ )+ except Exception as e:+ logger.warning(+ "E2BWorkspace: failed to save %s: %s",+ SANDBOX_MCP_FILE,+ e,+ )++ async def _write_gateway_config(self) -> None:+ """Drop the gateway's ``--config`` JSON into the sandbox."""+ cfg = {+ "token": self._gateway_token,+ "servers": [m.model_dump(mode="json") for m in self._mcps],+ }+ await self._exec(f"mkdir -p {shlex.quote(GATEWAY_HOME)}")+ await self._sandbox.files.write(+ GATEWAY_CONFIG,+ json.dumps(cfg, indent=2, ensure_ascii=False).encode("utf-8"),+ )++ async def _start_gateway_process(self) -> None:+ """Launch the gateway inside the sandbox as a detached process."""+ cmd = (+ f"nohup {shlex.quote(GATEWAY_VENV_PY)} -u "+ f"{shlex.quote(GATEWAY_SCRIPT)} "+ f"--config {shlex.quote(GATEWAY_CONFIG)} "+ f"--port {self.gateway_port} "+ f"> {shlex.quote(GATEWAY_LOG)} 2>&1 &"+ )+ await self._exec(cmd)++ async def _wait_for_gateway(self, timeout: float = 30.0) -> None:+ """Block until the gateway answers ``/health`` with 200."""+ assert self._gateway is not None+ deadline = asyncio.get_event_loop().time() + timeout+ delay = 0.1+ while asyncio.get_event_loop().time() < deadline:+ if await self._gateway.health():+ return+ await asyncio.sleep(delay)+ delay = min(delay * 1.5, 1.0)+ try:+ log = await self._read(GATEWAY_LOG)+ tail = log[-2000:].decode(errors="replace")+ except Exception:+ tail = "<no gateway log available>"+ raise RuntimeError(+ f"gateway did not become healthy within {timeout}s. "+ f"Tail of {GATEWAY_LOG}:\n{tail}",+ )++ async def _seed_skills(self) -> None:+ """Copy ``self.skill_paths`` into ``skills/`` once, on first init.++ Skips seeding when ``skill_paths`` is empty or the sandbox-side+ ``skills/`` already contains entries — meaning the user (or a+ prior init) is the source of truth.+ """+ if not self.skill_paths:+ return+ listing = await self._exec(+ f"ls -A {shlex.quote(SANDBOX_SKILLS_DIR)} 2>/dev/null || true",+ )+ if listing.ok() and listing.stdout.strip():+ return+ for path in self.skill_paths:+ try:+ await self.add_skill(path)+ except Exception as e:+ logger.warning(+ "E2BWorkspace: skip skill %r: %s",+ path,+ e,+ )++ # ── internals: sandbox I/O ──────────────────────────────────++ async def _exec(+ self,+ command: str,+ *,+ timeout: float | None = None,+ ) -> _ExecResult:+ """Run ``sh -c <command>`` inside the sandbox via the SDK.++ ``commands.run`` raises :class:`CommandExitException` on+ non-zero exit by default; we catch it and translate into the+ same :class:`_ExecResult` shape Docker uses, so callers can do+ ``if not r.ok(): ...`` consistently. Other SDK errors also+ come back as a non-zero ``_ExecResult`` rather than bubbling up+ — long-running ``mkdir -p`` and ``find`` calls should never+ crash the workspace.+ """+ from e2b import CommandExitException++ kwargs: dict[str, Any] = {"cwd": SANDBOX_WORKDIR}+ if timeout is not None:+ kwargs["timeout"] = timeout+ try:+ res = await self._sandbox.commands.run(command, **kwargs)+ return _ExecResult(+ exit_code=int(res.exit_code or 0),+ stdout=(res.stdout or "").encode("utf-8"),+ stderr=(res.stderr or "").encode("utf-8"),+ )+ except CommandExitException as e:+ return _ExecResult(+ exit_code=int(e.exit_code or 1),+ stdout=(e.stdout or "").encode("utf-8"),+ stderr=(e.stderr or "").encode("utf-8"),+ )+ except Exception as e: # noqa: BLE001+ return _ExecResult(+ exit_code=-1,+ stdout=b"",+ stderr=str(e).encode("utf-8"),+ )++ async def _read(self, path: str) -> bytes:+ """Read a file from the sandbox.++ Translates the SDK's ``FileNotFoundException`` into the stdlib+ ``FileNotFoundError`` so callers can use the standard+ exception type (matching :meth:`DockerWorkspace._read`).+ """+ from e2b import FileNotFoundException++ try:+ data = await self._sandbox.files.read(path, format="bytes")+ except FileNotFoundException as exc:+ raise FileNotFoundError(+ f"not found in sandbox: {path}",+ ) from exc+ return bytes(data)++ # ── internals: data offload ────────────────────────────────++ async def _offload_data_block(self, block: DataBlock) -> DataBlock:+ """Persist a base64 :class:`DataBlock` under ``data/``.++ Mirrors :meth:`DockerWorkspace._offload_data_block` exactly,+ only the I/O primitive differs. Hashing the *base64* text+ rather than decoded bytes keeps the key short-circuit: a+ repeat offload of the same block writes the same file.+ """+ if not isinstance(block.source, Base64Source):+ return block+ h = hashlib.sha256(block.source.data.encode()).hexdigest()+ ext = mimetypes.guess_extension(block.source.media_type) or ".bin"+ path = f"{SANDBOX_DATA_DIR}/{h}{ext}"+ await self._exec(f"mkdir -p {shlex.quote(SANDBOX_DATA_DIR)}")+ await self._sandbox.files.write(+ path,+ base64.b64decode(block.source.data),+ )+ return DataBlock(+ id=block.id,+ name=block.name,+ source=URLSource(+ url=AnyUrl(f"file://{path}"),+ media_type=block.source.media_type,+ ),+ )diff --git a/src/agentscope/workspace/_gateway_client.py b/src/agentscope/workspace/_gateway_client.pynew file mode 100644index 000000000..6f05b0649--- /dev/null+++ b/src/agentscope/workspace/_gateway_client.py@@ -0,0 +1,634 @@+# -*- coding: utf-8 -*-+"""Host-side client for the in-workspace MCP gateway.++Three classes live here:++* :class:`GatewayClient` — workspace-side facade over the gateway's+ ``/health`` and ``/mcps`` endpoints. Used by ``DockerWorkspace`` (and+ later ``E2BWorkspace``) for top-level operations.++* :class:`GatewayMCPClient` — an :class:`MCPClient` subclass whose+ protocol behaviour is replaced by HTTP calls to the gateway. The+ field surface is identical to ``MCPClient`` (instances are built from+ ``MCPClient.model_dump()`` data the gateway returns), so callers+ that ``model_dump()`` it round-trip cleanly. Local stdio/HTTP+ session machinery is bypassed: ``model_post_init`` is a no-op,+ ``connect`` POSTs to ``/mcps``, ``close`` DELETEs ``/mcps/{name}``,+ and ``list_tools`` / ``get_tool`` fetch / wrap upstream tools.++* :class:`GatewayMCPTool` — :class:`ToolBase` subclass whose+ ``__call__`` posts to ``/mcps/{name}/tools/{tool}`` and reconstructs+ the returned ``ToolChunk``.+"""++import contextlib+from typing import Any, AsyncIterator++import httpx+import mcp.types+from pydantic import PrivateAttr++from ..mcp import MCPClient+from ..message import ToolResultState+from ..permission import (+ PermissionBehavior,+ PermissionDecision,+)+from ..tool import ToolBase, ToolChunk+++# ── tool ───────────────────────────────────────────────────────────+++class GatewayMCPTool(ToolBase):+ """An MCP tool whose ``__call__`` is a single HTTP POST to the gateway.++ Mirrors :class:`agentscope.tool.MCPTool` field-by-field so the toolkit+ treats it identically (same ``name`` format, same permission policy)+ — only the call path changes.+ """++ is_mcp: bool = True+ is_state_injected: bool = False++ def __init__(+ self,+ mcp_name: str,+ tool: mcp.types.Tool,+ gateway_url: str,+ token: str,+ http: httpx.AsyncClient | None = None,+ timeout: float | None = None,+ ) -> None:+ """Build a gateway-backed MCP tool.++ The instance mirrors the field surface of+ :class:`agentscope.tool.MCPTool` (``name``, ``description``,+ ``input_schema``, ``is_read_only``, …) so the host-side toolkit+ cannot tell the difference between a local MCP tool and one that+ forwards through the in-container gateway.++ Args:+ mcp_name: Name of the upstream MCP server this tool belongs+ to. Used both for the visible ``mcp__{mcp}__{tool}``+ name and for the gateway URL path.+ tool: Raw upstream tool descriptor as returned by the+ gateway. Its ``name`` is the upstream-side identifier+ (no ``mcp__`` prefix), ``inputSchema`` is forwarded+ verbatim, and ``annotations.readOnlyHint`` drives the+ permission policy.+ gateway_url: Host-visible base URL of the gateway, e.g.+ ``http://127.0.0.1:<host_port>``. Trailing slash is+ stripped.+ token: Bearer token the host injected into the gateway's+ config; sent as ``Authorization: Bearer …`` on every+ call.+ http: Shared :class:`httpx.AsyncClient` to reuse connection+ pooling across many tool calls. When ``None`` each+ ``__call__`` creates and disposes a one-shot client.+ timeout: Per-call HTTP timeout in seconds. Only consulted+ when ``http`` is ``None`` (the shared client carries+ its own timeout).+ """+ self.mcp_name = mcp_name+ self.name = f"mcp__{mcp_name}__{tool.name}"+ self.description = tool.description or ""++ schema = dict(tool.inputSchema) if tool.inputSchema else {}+ schema.setdefault("type", "object")+ schema.setdefault("properties", {})+ schema.setdefault("required", [])+ self.input_schema = schema++ self.is_concurrency_safe = False+ self.is_external_tool = False++ self.is_read_only = False+ if tool.annotations and hasattr(tool.annotations, "readOnlyHint"):+ self.is_read_only = tool.annotations.readOnlyHint or False++ self._tool = tool+ self._gateway_url = gateway_url.rstrip("/")+ self._token = token+ self._http = http+ self._timeout = timeout++ async def check_permissions(+ self,+ *_args: Any,+ **_kwargs: Any,+ ) -> PermissionDecision:+ """Default policy: read-only tools auto-allow, everything else+ defers to the user via ``ASK``. Mirrors+ :class:`agentscope.tool.MCPTool.check_permissions` so toolkit+ callers see identical behaviour through the gateway.+ """+ if self.is_read_only:+ return PermissionDecision(+ behavior=PermissionBehavior.ALLOW,+ message="This is a read-only MCP tool. Allowing execution.",+ )+ return PermissionDecision(+ behavior=PermissionBehavior.ASK,+ message="MCP tools must be explicitly allowed by the user.",+ )++ async def __call__(self, **kwargs: Any) -> ToolChunk:+ """Invoke the upstream tool by POSTing to+ ``/mcps/{mcp}/tools/{tool}`` on the gateway.++ Args:+ **kwargs: Tool arguments forwarded as the JSON body's+ ``arguments`` field; the gateway re-dispatches them to+ the upstream MCP session.++ Returns:+ `ToolChunk`:+ The reconstructed chunk returned by the upstream tool.+ 4xx / 5xx responses are surfaced as a+ ``ToolChunk(state=ERROR)`` so the agent loop can reason+ about the failure instead of crashing.++ Raises:+ RuntimeError: If the gateway returns 2xx but no ``chunk``+ payload (protocol violation on the gateway side).+ """+ url = (+ f"{self._gateway_url}/mcps/{self.mcp_name}"+ f"/tools/{self._tool.name}"+ )+ headers = _bearer_headers(self._token)+ async with _http_session(self._http, self._timeout) as http:+ resp = await http.post(+ url,+ json={"arguments": kwargs},+ headers=headers,+ )+ if resp.status_code >= 400:+ # Surface gateway-side error as a failed ToolChunk so+ # the agent loop can reason about it instead of crashing.+ detail = _safe_detail(resp)+ return ToolChunk(+ content=[{"type": "text", "text": detail}],+ state=ToolResultState.ERROR,+ )+ payload = resp.json()+ chunk_dict = payload.get("chunk")+ if chunk_dict is None:+ raise RuntimeError(+ f"gateway returned no chunk for {self.name!r}",+ )+ return ToolChunk.model_validate(chunk_dict)+++# ── pseudo MCP client ──────────────────────────────────────────────+++class GatewayMCPClient(MCPClient):+ """An :class:`MCPClient` whose protocol logic is replaced by HTTP.++ Constructed from the dict returned by ``GET /mcps`` (or freshly from+ user input via :meth:`GatewayClient.make_client`). The local MCP+ machinery is short-circuited entirely:++ * ``model_post_init`` does nothing (parent's ``_initialize_client``+ is never called — no stdio context manager is built).+ * ``connect`` POSTs to ``/mcps`` to register-and-start the upstream+ server inside the gateway.+ * ``close`` DELETEs ``/mcps/{name}``.+ * ``list_tools`` / ``get_tool`` fetch and wrap upstream tools.+ """++ _gateway_url: str = PrivateAttr(default="")+ _gateway_token: str = PrivateAttr(default="")+ _http_timeout: float | None = PrivateAttr(default=None)+ _http: httpx.AsyncClient | None = PrivateAttr(default=None)++ def model_post_init(self, __context: Any) -> None:+ """Skip the parent's stdio/HTTP client preparation.++ For a real :class:`MCPClient`, ``model_post_init`` builds the+ local stdio context manager (or wires up an HTTP client) so+ the in-process session can be opened. For+ :class:`GatewayMCPClient` all MCP-side work happens inside the+ gateway container; the host-side proxy needs no local session+ machinery, so this override is a no-op.+ """+ return++ # ── lifecycle ─────────────────────────────────────────────────++ def attach(+ self,+ *,+ gateway_url: str,+ token: str,+ http: httpx.AsyncClient | None,+ timeout: float | None,+ connected: bool = False,+ ) -> None:+ """Wire this client to a gateway transport.++ :class:`GatewayMCPClient` is normally produced by+ ``model_validate(spec)`` over a dict returned by the gateway's+ ``GET /mcps`` endpoint — that step recovers the public field+ surface but leaves all transport-related private attributes+ empty. ``attach`` injects them in a single call so subsequent+ :meth:`connect`, :meth:`close`, :meth:`list_raw_tools`, and+ :meth:`get_tool` can talk to the gateway. It is the only+ supported way to populate the transport state from outside the+ class — encapsulating the writes here keeps callers free of+ ``protected-access`` warnings.++ Args:+ gateway_url: Host-visible base URL of the gateway (e.g.+ ``http://127.0.0.1:<host_port>``). Trailing slash is+ stripped before storage.+ token: Bearer token the host generated for this gateway.+ Sent as ``Authorization: Bearer …`` on every request.+ http: Shared :class:`httpx.AsyncClient` provided by the+ owning :class:`GatewayClient` so connection pooling is+ shared across all derived clients and tools. When+ ``None`` each call creates a one-shot client.+ timeout: Default per-request timeout in seconds, used only+ when ``http`` is ``None``.+ connected: When ``True``, mark this client as already+ connected (i.e. the gateway is already maintaining the+ upstream session). Used by+ :meth:`GatewayClient.list_mcps` for clients that came+ back from the gateway as registered. Leave ``False``+ when the caller will call :meth:`connect` themselves.+ """+ self._gateway_url = gateway_url.rstrip("/")+ self._gateway_token = token+ self._http = http+ self._http_timeout = timeout+ if connected:+ self._is_connected = True++ async def connect(self) -> None:+ """Register this MCP on the gateway via ``POST /mcps``.++ Stateless MCPs are a no-op (the gateway invokes them on+ demand). Stateful MCPs are registered and started inside the+ gateway container; this method blocks until the gateway has+ confirmed the upstream connection.++ Raises:+ RuntimeError: If the client is already connected, or if+ the gateway returns a 4xx/5xx response.+ """+ if not self.is_stateful:+ return+ if self._is_connected:+ raise RuntimeError(+ f"MCP {self.name!r} is already connected. "+ "Call close() before reconnecting.",+ )+ body = self.model_dump(mode="json")+ async with _http_session(self._http, self._http_timeout) as http:+ resp = await http.post(+ f"{self._gateway_url}/mcps",+ json=body,+ headers=_bearer_headers(self._gateway_token),+ )+ if resp.status_code >= 400:+ raise RuntimeError(+ f"gateway failed to add MCP {self.name!r}: "+ f"{_safe_detail(resp)}",+ )+ self._is_connected = True++ async def close(self, ignore_errors: bool = True) -> None:+ """Deregister this MCP from the gateway via+ ``DELETE /mcps/{name}``.++ Stateless MCPs are a no-op. For stateful MCPs the gateway+ closes the upstream session before responding.++ Args:+ ignore_errors: When ``True`` (the default), suppress both+ "not connected" precondition failures and+ gateway-side 4xx/5xx responses; when ``False`` such+ conditions raise :class:`RuntimeError`. Mirrors+ :meth:`MCPClient.close` so callers can use the same+ shutdown idiom regardless of transport.+ """+ if not self.is_stateful:+ return+ if not self._is_connected:+ if ignore_errors:+ return+ raise RuntimeError(+ f"MCP {self.name!r} is not connected. Call connect() first.",+ )+ try:+ async with _http_session(self._http, self._http_timeout) as http:+ resp = await http.delete(+ f"{self._gateway_url}/mcps/{self.name}",+ headers=_bearer_headers(self._gateway_token),+ )+ if resp.status_code >= 400 and not ignore_errors:+ raise RuntimeError(+ f"gateway failed to remove MCP {self.name!r}: "+ f"{_safe_detail(resp)}",+ )+ except Exception:+ if not ignore_errors:+ raise+ self._is_connected = False++ # ── tool discovery ────────────────────────────────────────────++ async def list_raw_tools(self) -> list[mcp.types.Tool]:+ """Fetch the upstream tool list via ``GET /mcps/{name}/tools``.++ Returns the raw :class:`mcp.types.Tool` descriptors the gateway+ forwarded — i.e. with their **upstream** names (no ``mcp__``+ prefix) so the inherited :meth:`list_tools` / :meth:`get_tool`+ path can re-wrap them through :meth:`_wrap_tool` exactly as a+ local :class:`MCPClient` would. The full unfiltered list is+ cached on ``_cached_tools`` first; the returned list then has+ ``enable_tools`` / ``disable_tools`` filtering applied+ identically to :meth:`MCPClient.list_raw_tools`.++ Returns:+ `list[mcp.types.Tool]`:+ The upstream-named, post-filter tool descriptors.++ Raises:+ httpx.HTTPStatusError: If the gateway returns a non-2xx+ response.+ """+ async with _http_session(self._http, self._http_timeout) as http:+ resp = await http.get(+ f"{self._gateway_url}/mcps/{self.name}/tools",+ headers=_bearer_headers(self._gateway_token),+ )+ resp.raise_for_status()+ data = resp.json()++ raw_tools = [mcp.types.Tool.model_validate(d) for d in data]+ self._cached_tools = raw_tools++ # Honour the same enable/disable filtering MCPClient does locally —+ # gateway returns the unfiltered upstream view.+ if self.enable_tools is not None:+ raw_tools = [t for t in raw_tools if t.name in self.enable_tools]+ if self.disable_tools is not None:+ raw_tools = [+ t for t in raw_tools if t.name not in self.disable_tools+ ]+ return raw_tools++ async def get_tool( # type: ignore[override]+ self,+ name: str,+ ) -> GatewayMCPTool:+ """Look up a single tool by upstream name and wrap it.++ Falls back to :meth:`list_raw_tools` on cache miss, then+ searches ``_cached_tools`` (which holds the **unfiltered**+ upstream view) so tools that ``enable_tools`` /+ ``disable_tools`` would have hidden are still resolvable —+ matching :meth:`MCPClient.get_tool`'s behaviour.++ The wrapped tool inherits the gateway-wide HTTP timeout+ (``_http_timeout``, set via :meth:`attach`). Per-call execution+ timeout is the upstream MCP server's responsibility — it is+ carried in :attr:`MCPClient.execution_timeout`, serialised into+ the spec, and reconstructed on the gateway side; the host has+ no need to override it.++ Args:+ name: Upstream tool name (no ``mcp__`` prefix). The+ returned :class:`GatewayMCPTool` exposes the prefixed+ form via its own ``name`` attribute.++ Returns:+ `GatewayMCPTool`:+ A fresh wrapper around the upstream descriptor, ready+ to be ``await``-ed or registered with a toolkit.++ Raises:+ ValueError: If no tool with that upstream name exists on+ the gateway side.+ """+ if self._cached_tools is None:+ await self.list_raw_tools()+ for raw in self._cached_tools or []:+ if raw.name == name:+ return self._wrap_tool(raw)+ raise ValueError(+ f"Tool {name!r} not found in MCP {self.name!r}.",+ )++ # ── helpers ───────────────────────────────────────────────────++ def _wrap_tool(self, tool: mcp.types.Tool) -> GatewayMCPTool:+ """Build a :class:`GatewayMCPTool` bound to this client's+ gateway transport. Always uses the client-wide+ ``_http_timeout`` — there is no per-call override path.++ Args:+ tool: Raw upstream tool descriptor (typically pulled out of+ ``_cached_tools``).+ """+ return GatewayMCPTool(+ mcp_name=self.name,+ tool=tool,+ gateway_url=self._gateway_url,+ token=self._gateway_token,+ http=self._http,+ timeout=self._http_timeout,+ )+++# ── workspace-side facade ──────────────────────────────────────────+++class GatewayClient:+ """Workspace-side facade over the in-container MCP gateway.++ Owns a shared :class:`httpx.AsyncClient` so all derived+ :class:`GatewayMCPClient` and :class:`GatewayMCPTool` instances+ share connection pooling.++ The gateway ``base_url`` is the host-visible URL (e.g.+ ``http://127.0.0.1:<host_port>`` after Docker port mapping); the+ ``token`` is the bearer the host generated and shipped into the+ container's gateway config.+ """++ def __init__(+ self,+ base_url: str,+ token: str,+ timeout: float | None = None,+ extra_headers: dict[str, str] | None = None,+ ) -> None:+ """Build a workspace-side gateway facade.++ Args:+ base_url: Host-visible base URL of the gateway, e.g.+ ``http://127.0.0.1:<host_port>`` after Docker port+ mapping or ``https://<sandbox-id>.e2b.dev`` for E2B.+ Trailing slash is stripped.+ token: Bearer token shared with the gateway via its config+ file. Sent as ``Authorization: Bearer …`` on every+ request and propagated to every derived+ :class:`GatewayMCPClient` / :class:`GatewayMCPTool` via+ :meth:`make_client`.+ timeout: Default HTTP timeout in seconds, applied to the+ shared :class:`httpx.AsyncClient` (see+ :meth:`_client`) and propagated to every derived+ :class:`GatewayMCPClient` via :meth:`make_client`.+ There is no per-call override path; per-tool execution+ timeouts live on :attr:`MCPClient.execution_timeout`+ and are honoured upstream inside the gateway.+ extra_headers: Default headers applied to every request+ through the shared httpx client (in addition to the+ per-call bearer). :class:`E2BWorkspace` uses this to+ inject E2B's ``X-Access-Token`` proxy header.+ """+ self.base_url = base_url.rstrip("/")+ self.token = token+ self.timeout = timeout+ self.extra_headers: dict[str, str] = dict(extra_headers or {})+ self._http: httpx.AsyncClient | None = None++ def _client(self) -> httpx.AsyncClient:+ """Return (lazily creating on first use) the shared+ :class:`httpx.AsyncClient` reused by every gateway request."""+ if self._http is None:+ self._http = httpx.AsyncClient(+ timeout=self.timeout,+ headers=self.extra_headers or None,+ )+ return self._http++ def _headers(self) -> dict[str, str]:+ """Build the bearer-auth header dict for direct+ :class:`GatewayClient` calls (``/health``, ``/mcps``)."""+ return _bearer_headers(self.token)++ async def health(self) -> bool:+ """Probe ``/health`` — used by the workspace to wait for readiness."""+ try:+ resp = await self._client().get(f"{self.base_url}/health")+ except Exception:+ return False+ return resp.status_code == 200++ async def list_mcps(self) -> list[GatewayMCPClient]:+ """Fetch every MCP currently registered on the gateway.++ The returned clients are marked as already connected (via+ :meth:`GatewayMCPClient.attach`'s ``connected=True``) because+ the gateway is already maintaining their upstream sessions —+ the host should not invoke :meth:`GatewayMCPClient.connect`+ again.++ Returns:+ `list[GatewayMCPClient]`:+ One transport-wired client per registered MCP. The+ workspace's :meth:`list_mcps` implementation surfaces+ this list straight to its consumer.++ Raises:+ httpx.HTTPStatusError: If the gateway returns a non-2xx+ response.+ """+ resp = await self._client().get(+ f"{self.base_url}/mcps",+ headers=self._headers(),+ )+ resp.raise_for_status()+ return [self.make_client(spec, connected=True) for spec in resp.json()]++ def make_client(+ self,+ spec: dict[str, Any],+ *,+ connected: bool = False,+ ) -> GatewayMCPClient:+ """Build a :class:`GatewayMCPClient` wired to this gateway.++ Reconstructs the public field surface from ``spec`` via+ :meth:`MCPClient.model_validate`, then hands the+ transport-related private state to the new client through+ :meth:`GatewayMCPClient.attach`. Doing the wiring through+ ``attach`` keeps the writes inside the target class and avoids+ ``protected-access`` warnings on every assignment.++ Args:+ spec: A dict produced by ``MCPClient.model_dump(mode="json")``+ — typically the body returned by the gateway's+ ``GET /mcps`` endpoint, or built from user input by+ ``DockerWorkspace.add_mcp``.+ connected: When ``True``, mark the new client as already+ connected so :meth:`GatewayMCPClient.connect` need not+ run again. Set by :meth:`list_mcps` for clients that+ came back from the gateway already registered. Leave+ ``False`` for fresh clients the caller will explicitly+ ``await client.connect()`` on (the ``add_mcp`` path).++ Returns:+ `GatewayMCPClient`:+ A pydantic-valid client whose transport state is fully+ populated. Stateful clients still require an explicit+ ``await client.connect()`` unless ``connected=True``.+ """+ client = GatewayMCPClient.model_validate(spec)+ client.attach(+ gateway_url=self.base_url,+ token=self.token,+ http=self._client(),+ timeout=self.timeout,+ connected=connected,+ )+ return client++ async def aclose(self) -> None:+ """Close the shared HTTP client."""+ if self._http is not None:+ await self._http.aclose()+ self._http = None+++# ── module-private utilities ───────────────────────────────────────+++def _bearer_headers(token: str) -> dict[str, str]:+ if token:+ return {"Authorization": f"Bearer {token}"}+ return {}+++async def _http_session(+ shared: httpx.AsyncClient | None,+ timeout: float | None,+) -> AsyncIterator[httpx.AsyncClient]:+ """Yield a shared httpx client when injected, else a one-shot client.++ The shared variant lets the workspace pool connections across many+ tool calls without each call paying the TLS/handshake cost.+ """+ if shared is not None:+ yield shared+ else:+ async with httpx.AsyncClient(timeout=timeout) as http:+ yield http+++def _safe_detail(resp: httpx.Response) -> str:+ """Best-effort extraction of an HTTPException-style detail from a+ response."""+ try:+ body = resp.json()+ except Exception:+ return f"HTTP {resp.status_code}: {resp.text[:200]}"+ if isinstance(body, dict) and "detail" in body:+ return f"HTTP {resp.status_code}: {body['detail']}"+ return f"HTTP {resp.status_code}: {str(body)[:200]}"diff --git a/src/agentscope/workspace/_local_workspace.py b/src/agentscope/workspace/_local_workspace.pyindex 2f9c73d86..c13b0165b 100644--- a/src/agentscope/workspace/_local_workspace.py+++ b/src/agentscope/workspace/_local_workspace.py@@ -10,12 +10,12 @@ import reimport shutilfrom copy import deepcopyfrom pathlib import Path-from typing import Any, Literal, TypedDict+from typing import TypedDictimport aiofilesimport aiofiles.ospathimport frontmatter-from pydantic import AnyUrl, Field, PrivateAttr, field_validator+from pydantic import AnyUrlfrom ._base import WorkspaceBasefrom ..mcp import MCPClient@@ -126,34 +126,66 @@ class LocalWorkspace(WorkspaceBase):├── data/ # offloaded multimodal files├── skills/ # skill subdirectories└── sessions/ # per-session context and tool-result files-- ``workdir`` and ``type`` are the only fields serialised to- ``WorkspaceRecord.data``. ``default_mcps`` and ``skill_paths`` are- service-level defaults that are excluded from serialisation.""" # noqa: E501- type: Literal["local"] = "local"- workdir: str+ def __init__(+ self,+ *,+ workdir: str,+ workspace_id: str | None = None,+ default_mcps: list[MCPClient] | None = None,+ skill_paths: list[str] | None = None,+ instructions: str = _DEFAULT_WORKSPACE_INSTRUCTIONS,+ ) -> None:+ """Construct a :class:`LocalWorkspace`.++ Args:+ workdir (`str`):+ Filesystem path to the workspace root. Created on+ demand. Always resolved to an absolute path.+ workspace_id (`str | None`, optional):+ Existing workspace identifier to adopt. ``None``+ generates a fresh UUID.+ default_mcps (`list[MCPClient] | None`, optional):+ MCP clients seeded into a brand-new workspace.+ Ignored on subsequent restarts that already have a+ persisted ``<workdir>/.mcp`` file.+ skill_paths (`list[str] | None`, optional):+ Local skill directories seeded into+ ``<workdir>/skills`` on first :meth:`initialize`.+ instructions (`str`, defaults to \+ `_DEFAULT_WORKSPACE_INSTRUCTIONS`):+ System-prompt fragment template returned by+ :meth:`get_instructions`. Supports the ``{workdir}``+ placeholder.+ """+ super().__init__(workspace_id=workspace_id)- # Excluded from model_dump() — service-level defaults, not user state- default_mcps: list[MCPClient] = Field(default_factory=list, exclude=True)- skill_paths: list[str] = Field(default_factory=list, exclude=True)+ # ── serializable config ─────────────────────────────────+ self.workdir = os.path.abspath(workdir)+ self.instructions = instructions- # Runtime state — not Pydantic fields- _mcps: list[MCPClient] = PrivateAttr(default_factory=list)- _instructions: str = PrivateAttr(default=_DEFAULT_WORKSPACE_INSTRUCTIONS)+ # ── seed-only ───────────────────────────────────────────+ self.default_mcps: list[MCPClient] = list(default_mcps or [])+ self.skill_paths: list[str] = list(skill_paths or [])- @field_validator("workdir", mode="before")- @classmethod- def _normalise_workdir(cls, v: str) -> str:- return os.path.abspath(v)+ # ── runtime state ───────────────────────────────────────+ self._mcps: list[MCPClient] = []async def initialize(self) -> None:"""Initialise the workspace.MCP state is restored from ``.mcp`` if it exists; otherwise- ``default_mcps`` are used. ``skill_paths`` are seeded on first use.+ ``default_mcps`` are used and persisted so the next start picks+ them up from disk. ``skill_paths`` are seeded on first use.++ Idempotent: a no-op when the workspace is already alive."""+ if self.is_alive:+ return++ os.makedirs(self.workdir, exist_ok=True)+# Restore or seed MCPsmcp_file = os.path.join(self.workdir, ".mcp")if await aiofiles.ospath.exists(mcp_file):@@ -164,6 +196,7 @@ class LocalWorkspace(WorkspaceBase):]else:self._mcps = list(self.default_mcps)+ await self._save_mcp_file()for mcp in self._mcps:if mcp.is_stateful and not mcp.is_connected:@@ -265,9 +298,11 @@ class LocalWorkspace(WorkspaceBase):)await self._save_skills_file(skills_dir, skills_file)+ self.is_alive = True+async def get_instructions(self) -> str:"""Get the workspace instructions."""- return self._instructions.format(workdir=self.workdir)+ return self.instructions.format(workdir=self.workdir)async def _load_skills_file(self, skills_dir: str) -> _SkillsFile:"""Load the .skills index file, returning an empty structure if absent.@@ -441,7 +476,6 @@ class LocalWorkspace(WorkspaceBase):self,session_id: str,msgs: list[Msg],- **kwargs: Any,) -> str:"""Offload the compressed messages into the local directory forfurther processing.@@ -497,7 +531,6 @@ class LocalWorkspace(WorkspaceBase):self,session_id: str,tool_result: ToolResultBlock,- **kwargs: Any,) -> str:"""Offload the tool results into the local directory for agenticretrieval.@@ -556,17 +589,46 @@ class LocalWorkspace(WorkspaceBase):return pathasync def close(self) -> None:- """Close the workspace and clean up resources.+ """Close every stateful MCP attached to this workspace.- For LocalWorkspace, this is a no-op as there are no persistent- connections or resources to clean up.+ ``LocalWorkspace`` itself owns no resources (the workdir is+ the persistence layer and is left untouched), but stdio /+ stateful HTTP MCPs hold long-lived sessions that have to be+ closed explicitly. Stateless HTTP MCPs are skipped — they+ spin up an ad-hoc session per call and have nothing to close."""- # Close the MCP connectionfor mcp in self._mcps:- if (- mcp.is_stateful or mcp.mcp_config.type == "stdio_mcp"- ) and mcp.is_connected:+ if mcp.is_stateful and mcp.is_connected:await mcp.close()+ self.is_alive = False++ async def reset(self) -> None:+ """Return the workspace to an empty state.++ Closes and drops all MCPs (including the persisted ``.mcp``)+ and deletes ``skills/``, ``sessions/``, and ``data/``.+ ``default_mcps`` and ``skill_paths`` are not re-seeded.+ """+ for mcp in self._mcps:+ if mcp.is_stateful and mcp.is_connected:+ try:+ await mcp.close()+ except Exception as e:+ logger.warning(+ "MCP %r close failed during reset: %s",+ mcp.name,+ e,+ )+ self._mcps = []++ mcp_file = os.path.join(self.workdir, ".mcp")+ if await aiofiles.ospath.exists(mcp_file):+ await asyncio.to_thread(os.remove, mcp_file)++ for sub in ("skills", "sessions", "data"):+ path = os.path.join(self.workdir, sub)+ if await aiofiles.ospath.isdir(path):+ await asyncio.to_thread(shutil.rmtree, path)async def list_tools(self) -> list[ToolBase]:"""List all tools available in the workspace."""@@ -803,31 +865,31 @@ class LocalWorkspace(WorkspaceBase):except Exception as e:logger.warning("Failed to save .mcp to %s: %s", mcp_file, str(e))- async def add_mcp(self, mcp: MCPClient) -> None:+ async def add_mcp(self, mcp_client: MCPClient) -> None:"""Add an MCP client, connect it if stateful, and persist.Args:- mcp: The MCP client to add.+ mcp_client: The MCP client to add."""- if mcp.is_stateful and not mcp.is_connected:- await mcp.connect()- self._mcps.append(mcp)+ if mcp_client.is_stateful and not mcp_client.is_connected:+ await mcp_client.connect()+ self._mcps.append(mcp_client)await self._save_mcp_file()- async def remove_mcp(self, mcp_name: str) -> None:+ async def remove_mcp(self, name: str) -> None:"""Remove an MCP client by name, disconnecting it if stateful.Args:- mcp_name: The ``name`` field of the client to remove.+ name: The ``name`` field of the client to remove."""for i, mcp in enumerate(self._mcps):- if mcp.name == mcp_name:+ if mcp.name == name:if mcp.is_stateful and mcp.is_connected:await mcp.close()self._mcps.pop(i)await self._save_mcp_file()return- logger.warning("MCP client %r not found in workspace", mcp_name)+ logger.warning("MCP client %r not found in workspace", name)async def add_skill(self, skill_path: str) -> None:"""Add a skill to the workspace by copying from the given path.@@ -921,7 +983,7 @@ class LocalWorkspace(WorkspaceBase):)await self._save_skills_file(skills_dir, skills_file)- async def remove_skill(self, skill_name: str) -> None:+ async def remove_skill(self, name: str) -> None:"""Remove a skill from the workspace by its agent-facing name.The skill directory is deleted from disk and the ``.skills`` index is@@ -929,7 +991,7 @@ class LocalWorkspace(WorkspaceBase):logged and the method returns without error.Args:- skill_name (`str`):+ name (`str`):The agent-facing name of the skill to remove (as stored in the``.skills`` index, i.e. the ``name`` field from ``SKILL.md``possibly with a numeric suffix for de-duplication).@@ -939,7 +1001,7 @@ class LocalWorkspace(WorkspaceBase):if not await aiofiles.ospath.isdir(skills_dir):logger.warning("Skills directory does not exist; cannot remove skill %r",- skill_name,+ name,)return@@ -948,12 +1010,12 @@ class LocalWorkspace(WorkspaceBase):target_dir: str | None = Nonefor dir_name, entry in existing.items():- if entry["skill_name"] == skill_name:+ if entry["skill_name"] == name:target_dir = dir_namebreakif target_dir is None:- logger.warning("Skill %r not found in workspace", skill_name)+ logger.warning("Skill %r not found in workspace", name)returnskill_dir_path = os.path.join(skills_dir, target_dir)@@ -961,7 +1023,7 @@ class LocalWorkspace(WorkspaceBase):await asyncio.to_thread(shutil.rmtree, skill_dir_path)logger.info("Removed skill '%s' from %s",- skill_name,+ name,skill_dir_path,)else:diff --git a/src/agentscope/workspace/_mcp_gateway/__init__.py b/src/agentscope/workspace/_mcp_gateway/__init__.pynew file mode 100644index 000000000..f54f9adc8--- /dev/null+++ b/src/agentscope/workspace/_mcp_gateway/__init__.py@@ -0,0 +1,11 @@+# -*- coding: utf-8 -*-+"""In-workspace MCP gateway package.++The gateway is a single self-contained script that runs *inside* the+workspace environment (Docker / E2B). It is copied into the container+at image build time and executed by the workspace at startup.++The script must remain importable without ``agentscope`` installed —+the host reads it as raw text via :mod:`importlib.resources` and ships+it into the container.+"""diff --git a/src/agentscope/workspace/_mcp_gateway/__main__.py b/src/agentscope/workspace/_mcp_gateway/__main__.pynew file mode 100644index 000000000..1405c176a--- /dev/null+++ b/src/agentscope/workspace/_mcp_gateway/__main__.py@@ -0,0 +1,14 @@+# -*- coding: utf-8 -*-+"""``python -m agentscope.workspace._mcp_gateway`` entry point.++Inside the workspace container the gateway is launched as::++ python -m agentscope.workspace._mcp_gateway --config <path> --port <port>++so this module simply forwards to :func:`_mcp_gateway_app.main`.+"""++from ._mcp_gateway_app import main++if __name__ == "__main__":+ main()diff --git a/src/agentscope/workspace/_mcp_gateway/_mcp_gateway_app.py b/src/agentscope/workspace/_mcp_gateway/_mcp_gateway_app.pynew file mode 100644index 000000000..58b690bb7--- /dev/null+++ b/src/agentscope/workspace/_mcp_gateway/_mcp_gateway_app.py@@ -0,0 +1,242 @@+# -*- coding: utf-8 -*-+"""In-workspace MCP gateway — FastAPI router over agentscope MCPClients.++Runs *inside* the workspace environment as a standalone script+(``python /path/to/_mcp_gateway_app.py``). Reads ``--config`` JSON,+instantiates one :class:`agentscope.mcp.MCPClient` per configured server,+and exposes per-server HTTP endpoints. Each call is forwarded to the+underlying ``MCPClient`` (which owns the upstream session).++The script uses an absolute import for ``agentscope.mcp`` (rather than+a package-relative import) so it can be invoked directly without+loading ``agentscope.workspace.__init__`` — the latter eagerly imports+heavy modules (skill, tool, …) that are unnecessary for the gateway+and would force their dependencies into the in-container venv.++Endpoints+---------++ GET /health # liveness, no auth+ GET /mcps # [{name, tools}, ...]+ POST /mcps # body: MCPClient.model_dump()+ DELETE /mcps/{name}+ GET /mcps/{name}/tools # upstream tool schemas+ POST /mcps/{name}/tools/{tool} # body: {arguments: {...}}++Auth: every endpoint except ``/health`` requires+``Authorization: Bearer <token>`` when a token is configured.++Config schema::++ {+ "token": "bearer-token",+ "servers": [<MCPClient.model_dump()>, ...]+ }+"""++import argparse+import asyncio+import json+from typing import Any++from fastapi import Depends, FastAPI, HTTPException, Request+from fastapi.responses import PlainTextResponse++from agentscope.mcp import MCPClient+++# ── gateway state ──────────────────────────────────────────────────+++class _State:+ """Mutable runtime state shared by FastAPI routes."""++ def __init__(self) -> None:+ self.clients: dict[str, MCPClient] = {}+ self.token: str = ""+ self.lock = asyncio.Lock()+++def _make_auth_dep(state: _State) -> Any:+ """Build a Bearer-token auth dependency closed over the state.++ No-op when ``state.token`` is empty.+ """++ async def _auth(request: Request) -> None:+ if not state.token:+ return+ header = request.headers.get("authorization", "")+ if header != f"Bearer {state.token}":+ raise HTTPException(status_code=401, detail="unauthorized")++ return _auth+++# ── client construction ───────────────────────────────────────────+++async def _build_client(spec: dict[str, Any]) -> MCPClient:+ """Validate a config / request body into an :class:`MCPClient`,+ then connect if stateful so subsequent ``list_raw_tools`` /+ ``get_tool`` work without re-spawning the upstream session.+ """+ client = MCPClient.model_validate(spec)+ if client.is_stateful:+ await client.connect()+ # Prime the tool cache so /mcps/{name}/tools is cheap and stable.+ await client.list_raw_tools()+ return client+++# ── FastAPI app ────────────────────────────────────────────────────+++def _build_app(state: _State) -> FastAPI:+ """Build the FastAPI app with all routes wired against ``state``."""+ app = FastAPI(title="agentscope-workspace-mcp-gateway")+ auth = Depends(_make_auth_dep(state))++ @app.get("/health")+ async def _health() -> PlainTextResponse:+ return PlainTextResponse("ok")++ @app.get("/mcps", dependencies=[auth])+ async def _list_mcps() -> list[dict[str, Any]]:+ # Dump the full MCPClient field set so the host can rebuild+ # `GatewayMCPClient.model_validate(spec)` losslessly.+ return [c.model_dump(mode="json") for c in state.clients.values()]++ @app.post("/mcps", dependencies=[auth])+ async def _add_mcp(request: Request) -> dict[str, Any]:+ body = await request.json()+ name = body.get("name", "")+ if not name:+ raise HTTPException(400, "name required")+ async with state.lock:+ if name in state.clients:+ raise HTTPException(409, f"{name!r} already exists")+ try:+ client = await _build_client(body)+ except HTTPException:+ raise+ except Exception as e: # noqa: BLE001+ raise HTTPException(+ 500,+ f"connect failed: {e}",+ ) from e+ state.clients[name] = client+ return {"ok": True}++ @app.delete("/mcps/{name}", dependencies=[auth])+ async def _remove_mcp(name: str) -> dict[str, Any]:+ async with state.lock:+ client = state.clients.pop(name, None)+ if client is None:+ raise HTTPException(404, f"{name!r} not found")+ if client.is_stateful and client.is_connected:+ await client.close()+ return {"ok": True}++ @app.get("/mcps/{name}/tools", dependencies=[auth])+ async def _list_tools(name: str) -> list[dict[str, Any]]:+ client = state.clients.get(name)+ if client is None:+ raise HTTPException(404, f"{name!r} not found")+ # Send raw mcp.types.Tool over the wire so the host-side+ # GatewayMCPClient can re-wrap them via the standard MCPClient+ # path (preserves inputSchema, annotations.readOnlyHint, ...).+ raw = await client.list_raw_tools()+ return [t.model_dump(mode="json") for t in raw]++ @app.post("/mcps/{name}/tools/{tool}", dependencies=[auth])+ async def _call_tool(+ name: str,+ tool: str,+ request: Request,+ ) -> dict[str, Any]:+ client = state.clients.get(name)+ if client is None:+ raise HTTPException(404, f"{name!r} not found")+ body = await request.json()+ arguments = body.get("arguments") or {}+ try:+ tool_obj = await client.get_tool(tool)+ chunk = await tool_obj(**arguments)+ except ValueError as e:+ raise HTTPException(404, str(e)) from e+ except Exception as e: # noqa: BLE001+ raise HTTPException(500, str(e)) from e+ # ToolChunk is a pydantic model — let host reconstruct it.+ return {"chunk": chunk.model_dump(mode="json")}++ return app+++# ── lifecycle ──────────────────────────────────────────────────────+++async def _connect_initial(+ state: _State,+ server_cfgs: list[dict[str, Any]],+) -> None:+ """Connect every server listed in the static config file."""+ for cfg in server_cfgs:+ client = await _build_client(cfg)+ if client.name in state.clients:+ if client.is_stateful and client.is_connected:+ await client.close()+ raise ValueError(+ f"Duplicated server name in config: {client.name!r}",+ )+ state.clients[client.name] = client+ print(f"[gateway] connected {client.name!r}", flush=True)+++async def _run(config_path: str, port: int) -> None:+ """Read config, connect upstreams, start uvicorn, clean up on exit."""+ with open(config_path, encoding="utf-8") as f:+ config = json.load(f)++ state = _State()+ state.token = config.get("token", "") or ""+ await _connect_initial(state, config.get("servers", []) or [])++ app = _build_app(state)+ print(+ f"[gateway] serving {len(state.clients)} MCPs on :{port}",+ flush=True,+ )++ import uvicorn++ uvi_cfg = uvicorn.Config(+ app,+ host="0.0.0.0", # noqa: S104 — gateway listens inside container+ port=port,+ log_level="warning",+ )+ server = uvicorn.Server(uvi_cfg)+ try:+ await server.serve()+ finally:+ for client in list(state.clients.values()):+ if client.is_stateful and client.is_connected:+ await client.close()+++def main() -> None:+ """CLI entry point — invoked via+ ``python -m agentscope.workspace._mcp_gateway``.+ """+ parser = argparse.ArgumentParser(+ description="In-workspace MCP gateway (FastAPI)",+ )+ parser.add_argument("--config", required=True)+ parser.add_argument("--port", type=int, default=5600)+ args = parser.parse_args()+ asyncio.run(_run(args.config, args.port))+++if __name__ == "__main__":+ main()diff --git a/src/agentscope/workspace/_offload_protocol.py b/src/agentscope/workspace/_offload_protocol.pyindex f178962f8..93a6ecbe5 100644--- a/src/agentscope/workspace/_offload_protocol.py+++ b/src/agentscope/workspace/_offload_protocol.py@@ -1,6 +1,6 @@# -*- coding: utf-8 -*-"""The offload protocol."""-from typing import Protocol, Any+from typing import Protocolfrom ..message import Msg, ToolResultBlock@@ -12,7 +12,6 @@ class Offloader(Protocol):self,session_id: str,msgs: list[Msg],- **kwargs: Any,) -> str:"""Offload compressed context to workspace-accessible storage.@@ -31,7 +30,6 @@ class Offloader(Protocol):self,session_id: str,tool_result: ToolResultBlock,- **kwargs: Any,) -> str:"""Offload a tool result to workspace-accessible storage.diff --git a/src/agentscope/workspace/_utils.py b/src/agentscope/workspace/_utils.pynew file mode 100644index 000000000..132dd135b--- /dev/null+++ b/src/agentscope/workspace/_utils.py@@ -0,0 +1,163 @@+# -*- coding: utf-8 -*-+"""Host-side helpers shared by Docker + E2B backends.++Pure functions for detecting the local ``agentscope`` install (released+vs dev), iterating the source tree with a stable ignore set, and+reading the gateway script bundled with the package. No Docker / E2B+SDK dependency lives here — both backends import the same helpers so+their install logic stays byte-for-byte in sync.++All names in this module are package-private (leading underscore).+External code should not import from here directly; the two backends+that consume these helpers live next to it under+``agentscope.workspace``.+"""++import importlib.resources as _res+from pathlib import Path+++# ── shared constants ───────────────────────────────────────────────++#: Minimum Python packages the gateway script needs at runtime.+#: Both Docker (image build) and E2B (sandbox bootstrap) install this+#: same tuple into the gateway venv before adding ``agentscope`` itself.+_GATEWAY_BASE_REQUIREMENTS: tuple[str, ...] = (+ "mcp",+ "uvicorn",+ "fastapi",+)++#: Basename set excluded when packaging the agentscope source tree+#: into a build / bootstrap context (dev-mode only — released installs+#: pull from PyPI and never copy the tree).+_SOURCE_IGNORE_NAMES: frozenset[str] = frozenset(+ {+ "__pycache__",+ "node_modules",+ "build",+ "dist",+ "venv",+ "workdir",+ "examples",+ "tests",+ "docs",+ "assets",+ "scripts",+ "dump.rdb",+ "uv.lock",+ },+)+++def _is_source_ignored(name: str) -> bool:+ """Whether a single basename should be excluded from the source payload.++ Args:+ name (`str`):+ Basename to check (e.g. ``"__pycache__"``, ``".git"``,+ ``"foo.pyc"``).++ Returns:+ `bool`:+ ``True`` if the name matches the ignore set / hidden-file+ rule / cache-extension rule; ``False`` otherwise.+ """+ if name.startswith("."):+ return True+ if name in _SOURCE_IGNORE_NAMES:+ return True+ return name.endswith(".pyc") or name.endswith(".egg-info")+++# ── agentscope install detection ───────────────────────────────────+++def _agentscope_module_path() -> Path:+ """Return the filesystem path of the imported ``agentscope`` package.++ Returns:+ `Path`:+ The directory containing ``agentscope/__init__.py``.+ """+ import agentscope # local import — keeps module import cheap++ file = getattr(agentscope, "__file__", None)+ if not file:+ raise RuntimeError(+ "agentscope has no __file__ attribute; cannot locate package",+ )+ return Path(file).resolve().parent+++def _is_released_install() -> bool:+ """Return ``True`` if the imported ``agentscope`` lives in site-packages.++ Used to pick between PyPI install (released) and source-tree+ upload (dev) when provisioning the gateway venv inside a+ container or sandbox.+ """+ parts = _agentscope_module_path().parts+ return "site-packages" in parts or "dist-packages" in parts+++def _agentscope_version() -> str:+ """Return the installed ``agentscope`` version string.++ Falls back to :func:`importlib.metadata.version` when the package+ has no ``__version__`` attribute.+ """+ import agentscope++ version = getattr(agentscope, "__version__", None)+ if not version:+ try:+ from importlib.metadata import version as _v++ version = _v("agentscope")+ except Exception as e: # noqa: BLE001+ raise RuntimeError(+ "cannot determine agentscope version",+ ) from e+ return version+++def _agentscope_source_root() -> Path:+ """Locate the project root containing ``pyproject.toml`` + ``src/``.++ Only valid in dev mode. Walks up from the package directory until+ a ``pyproject.toml`` is found alongside a ``src/`` (or+ ``agentscope/``) directory.++ Returns:+ `Path`:+ The project root path.+ """+ pkg = _agentscope_module_path()+ for parent in [pkg, *pkg.parents]:+ if (parent / "pyproject.toml").is_file() and (+ (parent / "src").is_dir() or (parent / "agentscope").is_dir()+ ):+ return parent+ raise RuntimeError(+ f"cannot locate agentscope project root from {pkg}",+ )+++# ── gateway script ─────────────────────────────────────────────────+++def _read_gateway_script_bytes() -> bytes:+ """Read the standalone gateway script as bytes via ``importlib.resources``.++ The script ships at+ ``agentscope/workspace/_mcp_gateway/_mcp_gateway_app.py``. Both+ backends copy it to a fixed in-container / in-sandbox path so the+ launch command can invoke it directly, avoiding ``python -m`` and+ the heavy ``agentscope.workspace.__init__`` import graph.+ """+ return (+ _res.files("agentscope.workspace._mcp_gateway")+ .joinpath("_mcp_gateway_app.py")+ .read_bytes()+ )diff --git a/tests/workspace_docker_test.py b/tests/workspace_docker_test.pynew file mode 100644index 000000000..1e3acef22--- /dev/null+++ b/tests/workspace_docker_test.py@@ -0,0 +1,803 @@+# -*- coding: utf-8 -*-+# pylint: disable=protected-access+"""Test cases for DockerWorkspace.++Mirrors the structure of ``workspace_local_test.py`` so that the two+backends are validated against the same surface contract:++* offload_context (text + DataBlock + dedup)+* offload_tool_result (string + multimodal blocks)+* skill seeding / listing+* lifecycle (initialize idempotent, close, workspace_id stability)++Two practical differences vs. the local tests:++1. Paths *returned* by DockerWorkspace are container-side+ (``/workspace/sessions/...``). Host-side file checks therefore+ compose paths against ``self.temp_dir.name``, which is bind-mounted+ to ``CONTAINER_WORKDIR`` inside the container.++2. ``DataBlock`` URLs persisted by DockerWorkspace use the container+ path (``file:///workspace/data/<hash>.png``). We assert the URL+ string against the container path and verify the file's *bytes* via+ the corresponding host-side path.++The whole module is skipped when no Docker daemon is reachable.+"""+import base64+import hashlib+import os+import re+import shutil+import subprocess+import tempfile+import unittest+import uuid+from typing import Any+from unittest.async_case import IsolatedAsyncioTestCase+from urllib.parse import urlparse++import aiofiles++from agentscope.message import (+ Base64Source,+ DataBlock,+ Msg,+ TextBlock,+ ToolResultBlock,+ ToolResultState,+ URLSource,+ UserMsg,+ AssistantMsg,+)+from agentscope.permission import PermissionBehavior, PermissionDecision+from agentscope.tool import ToolBase, ToolChunk+from agentscope.workspace import DockerWorkspace+from agentscope.workspace._docker._make_dockerfile import (+ CONTAINER_SESSIONS_DIR,+ CONTAINER_SKILLS_DIR,+)+++# ── docker daemon detection ────────────────────────────────────────+++def _docker_available() -> bool:+ """Return ``True`` iff the Docker daemon is reachable.++ Probes via the ``docker`` CLI rather than the aiodocker async client+ so the check is cheap and synchronous (runs at module import time).+ """+ if shutil.which("docker") is None:+ return False+ try:+ result = subprocess.run(+ ["docker", "info"],+ capture_output=True,+ timeout=5,+ check=False,+ )+ return result.returncode == 0+ except (subprocess.TimeoutExpired, FileNotFoundError, OSError):+ return False+++_DOCKER_OK = _docker_available()+_SKIP_REASON = "Docker daemon not available"+++# ── helper tool for agent-integration test ────────────────────────+++class _LongResultTool(ToolBase):+ """Mock tool that returns a long string + base64 DataBlock."""++ name: str = "long_result_tool"+ description: str = "A tool that returns a long string."+ input_schema: dict[str, Any] = {+ "type": "object",+ "properties": {},+ "required": [],+ }+ is_concurrency_safe: bool = True+ is_read_only: bool = True+ is_external_tool: bool = False+ is_mcp: bool = False++ async def check_permissions(+ self,+ *_args: Any,+ **_kwargs: Any,+ ) -> PermissionDecision:+ """Always allow."""+ return PermissionDecision(+ behavior=PermissionBehavior.ALLOW,+ decision_reason="Mock tool always allows",+ message="Mock tool always allows",+ )++ async def __call__(self, **_kwargs: Any) -> ToolChunk:+ """Long text + base64 DataBlock so we exercise both offload paths."""+ return ToolChunk(+ content=[+ TextBlock(text="0" * 30000),+ DataBlock(+ name="fake_image.png",+ source=Base64Source(+ data="AAECAwQF",+ media_type="image/png",+ ),+ ),+ ],+ state=ToolResultState.SUCCESS,+ )+++# ── offload tests ─────────────────────────────────────────────────++[email protected](_DOCKER_OK, _SKIP_REASON)+class TestDockerWorkspaceOffload(IsolatedAsyncioTestCase):+ """Test cases for DockerWorkspace offload functionality."""++ async def asyncSetUp(self) -> None:+ """Build a fresh workspace bound to a temp host dir.++ The workspace_id is randomised so test runs do not collide on+ the deterministic ``as_ws_<workspace_id>`` container name.+ """+ # pylint: disable=consider-using-with+ self.temp_dir = tempfile.TemporaryDirectory()+ self.workspace = DockerWorkspace(+ workspace_id=f"test-{uuid.uuid4().hex[:8]}",+ workdir=self.temp_dir.name,+ )+ await self.workspace.initialize()++ async def asyncTearDown(self) -> None:+ """Stop the container and clean up the temp host dir."""+ try:+ await self.workspace.close()+ finally:+ self.temp_dir.cleanup()++ async def test_offload_context_pure_text(self) -> None:+ """Text-only offload: returned path is container-side, lines match.++ Verifies:+ 1. The returned path is the *container-side* JSONL path.+ 2. The host-mirror file (under the bind-mounted workdir) contains+ one ``model_dump_json()`` line per input message.+ """+ session_id = "test_session_pure_text"+ msgs = [+ UserMsg(name="user", content="Hello, world!"),+ AssistantMsg(name="assistant", content="Hi there!"),+ ]++ file_path = await self.workspace.offload_context(session_id, msgs)++ # Returned path is container-side (/workspace/sessions/...).+ expected_container_path = (+ f"{CONTAINER_SESSIONS_DIR}/{session_id}/context.jsonl"+ )+ self.assertEqual(file_path, expected_container_path)++ # Host-side mirror of that path (bind mount).+ host_path = os.path.join(+ self.temp_dir.name,+ "sessions",+ session_id,+ "context.jsonl",+ )+ self.assertTrue(os.path.exists(host_path))++ async with aiofiles.open(host_path, "r") as f:+ content = await f.read()+ lines = content.strip().split("\n")+ self.assertEqual(len(lines), 2)+ self.assertListEqual(lines, [m.model_dump_json() for m in msgs])++ async def test_offload_context_multiple_calls(self) -> None:+ """Repeated calls append to the same file (proper JSONL).++ Verifies:+ 1. Both calls return the same container-side path.+ 2. The host-mirror file ends up with one line per message,+ preserving order.+ """+ session_id = "test_session_multiple"+ msgs1 = [+ UserMsg(name="user", content="First message"),+ AssistantMsg(name="assistant", content="First response"),+ ]+ msgs2 = [+ UserMsg(name="user", content="Second message"),+ AssistantMsg(name="assistant", content="Second response"),+ ]++ path1 = await self.workspace.offload_context(session_id, msgs1)+ path2 = await self.workspace.offload_context(session_id, msgs2)+ self.assertEqual(path1, path2)++ host_path = os.path.join(+ self.temp_dir.name,+ "sessions",+ session_id,+ "context.jsonl",+ )+ async with aiofiles.open(host_path, "r") as f:+ content = await f.read()+ lines = content.strip().split("\n")+ self.assertEqual(len(lines), 4)+ self.assertListEqual(+ lines,+ [m.model_dump_json() for m in msgs1 + msgs2],+ )+ for line in lines:+ self.assertIsNotNone(Msg.model_validate_json(line))++ async def test_offload_context_with_datablock(self) -> None:+ """DataBlock(Base64Source) is rewritten to URLSource on a+ separate file.++ Verifies:+ 1. The decoded payload lands on disk under ``<workdir>/data/``+ (container-side ``/workspace/data/``).+ 2. The offloaded JSONL line carries a ``URLSource`` whose URL is+ the *container* path (``file:///workspace/data/<hash>.<ext>``).+ 3. Decoded bytes match the original.+ """+ session_id = "test_session_datablock"+ b64_data = base64.b64encode(+ b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x01"+ b"\x00\x00\x00\x01\x08\x02\x00\x00\x00\x90wS\xde",+ ).decode()+ data_block = DataBlock(+ source=Base64Source(data=b64_data, media_type="image/png"),+ name="test_image",+ )+ msgs = [+ UserMsg(+ name="user",+ content=[TextBlock(text="Check this image:"), data_block],+ ),+ ]++ file_path = await self.workspace.offload_context(session_id, msgs)+ host_path = os.path.join(+ self.temp_dir.name,+ "sessions",+ session_id,+ "context.jsonl",+ )+ self.assertTrue(os.path.exists(host_path))++ async with aiofiles.open(host_path, "r") as f:+ content = await f.read()+ loaded_msg = Msg.model_validate_json(content.strip())++ # The DataBlock's source should now be URLSource pointing to a+ # container-side file://...+ self.assertEqual(len(loaded_msg.content), 2)+ data_url = str(loaded_msg.content[1].source.url)+ self.assertTrue(data_url.startswith("file:///workspace/data/"))++ # Verify the bytes via the host-side mirror.+ container_path = urlparse(data_url).path # /workspace/data/<hash>.png+ rel = os.path.relpath(container_path, "/workspace")+ host_data_path = os.path.join(self.temp_dir.name, rel)+ self.assertTrue(os.path.exists(host_data_path))+ async with aiofiles.open(host_data_path, "rb") as f:+ saved = await f.read()+ self.assertEqual(saved, base64.b64decode(b64_data))++ # Sanity-check the returned (container) JSONL path too.+ self.assertEqual(+ file_path,+ f"{CONTAINER_SESSIONS_DIR}/{session_id}/context.jsonl",+ )++ async def test_offload_data_block_deduplication(self) -> None:+ """Two identical DataBlocks share a single persisted file.++ Verifies:+ 1. Both ``_offload_data_block`` calls return DataBlocks pointing+ at the same URL.+ 2. Only one file ends up in ``<workdir>/data/``.+ """+ b64_data = base64.b64encode(b"test content").decode()+ block1 = DataBlock(+ source=Base64Source(data=b64_data, media_type="text/plain"),+ name="file1",+ )+ block2 = DataBlock(+ source=Base64Source(data=b64_data, media_type="text/plain"),+ name="file2",+ )++ result1 = await self.workspace._offload_data_block(block1)+ result2 = await self.workspace._offload_data_block(block2)+ self.assertEqual(str(result1.source.url), str(result2.source.url))++ # Check the host-mirror data dir has exactly one file.+ host_data_dir = os.path.join(self.temp_dir.name, "data")+ self.assertTrue(os.path.isdir(host_data_dir))+ files = os.listdir(host_data_dir)+ self.assertEqual(len(files), 1)++ # Hash key is sha256 of the *base64 string* (matches LocalWorkspace).+ expected_name = hashlib.sha256(b64_data.encode()).hexdigest() + ".txt"+ self.assertIn(expected_name, files)++ async def test_offload_data_block_url_source(self) -> None:+ """A DataBlock that already has a URLSource is returned unchanged.++ Verifies:+ 1. ``_offload_data_block`` is a no-op for URL-sourced blocks.+ 2. No file lands in ``<workdir>/data/``.+ """+ from pydantic import AnyUrl++ block = DataBlock(+ source=URLSource(+ url=AnyUrl("https://example.com/image.png"),+ media_type="image/png",+ ),+ name="remote_image",+ )++ result = await self.workspace._offload_data_block(block)+ self.assertDictEqual(result.model_dump(), block.model_dump())++ host_data_dir = os.path.join(self.temp_dir.name, "data")+ if os.path.isdir(host_data_dir):+ self.assertEqual(len(os.listdir(host_data_dir)), 0)++ async def test_offload_tool_result_string(self) -> None:+ """String-output tool result writes the raw string to disk.++ Verifies:+ 1. The returned path is the container-side ``tool_result-<id>.txt``.+ 2. The host-mirror file contains exactly the output string.+ """+ session_id = "test_session_tool_result"+ tool_result = ToolResultBlock(+ id="tool_123",+ name="test_tool",+ output="Tool execution successful!",+ state=ToolResultState.SUCCESS,+ )++ file_path = await self.workspace.offload_tool_result(+ session_id,+ tool_result,+ )+ self.assertEqual(+ file_path,+ f"{CONTAINER_SESSIONS_DIR}/{session_id}/"+ f"tool_result-{tool_result.id}.txt",+ )++ host_path = os.path.join(+ self.temp_dir.name,+ "sessions",+ session_id,+ f"tool_result-{tool_result.id}.txt",+ )+ self.assertTrue(os.path.exists(host_path))+ async with aiofiles.open(host_path, "r") as f:+ self.assertEqual(await f.read(), "Tool execution successful!")++ async def test_offload_tool_result_with_blocks(self) -> None:+ """Multimodal tool result: text concatenated, DataBlock placeholder.++ Verifies:+ 1. The text portion is preserved verbatim.+ 2. The DataBlock is rendered as+ ``<data url='…' name='…' media_type='…'/>`` with a+ container-side URL.+ 3. The decoded payload is reachable via the host mirror.+ """+ session_id = "test_session_tool_result_blocks"+ b64_data = base64.b64encode(b"test file content").decode()+ data_block = DataBlock(+ source=Base64Source(data=b64_data, media_type="text/plain"),+ name="output.txt",+ )+ tool_result = ToolResultBlock(+ id="tool_456",+ name="file_tool",+ output=[+ TextBlock(text="File created successfully: "),+ data_block,+ ],+ state=ToolResultState.SUCCESS,+ )++ file_path = await self.workspace.offload_tool_result(+ session_id,+ tool_result,+ )+ host_path = os.path.join(+ self.temp_dir.name,+ "sessions",+ session_id,+ f"tool_result-{tool_result.id}.txt",+ )+ self.assertTrue(os.path.exists(host_path))+ async with aiofiles.open(host_path, "r") as f:+ content = await f.read()++ self.assertTrue(content.startswith("File created successfully: "))+ self.assertIn("<data url='file:///workspace/data/", content)+ self.assertIn("name='output.txt'", content)+ self.assertIn("media_type='text/plain'", content)+ self.assertTrue(content.endswith("/>"))++ # The data file is reachable via the host mirror.+ match = re.search(r"url='([^']+)'", content)+ self.assertIsNotNone(match)+ container_path = urlparse(match.group(1)).path+ rel = os.path.relpath(container_path, "/workspace")+ host_data_path = os.path.join(self.temp_dir.name, rel)+ self.assertTrue(os.path.exists(host_data_path))++ # And the returned path is container-side.+ self.assertEqual(+ file_path,+ f"{CONTAINER_SESSIONS_DIR}/{session_id}/"+ f"tool_result-{tool_result.id}.txt",+ )+++# ── skill tests ────────────────────────────────────────────────────++[email protected](_DOCKER_OK, _SKIP_REASON)+class TestDockerWorkspaceSkills(IsolatedAsyncioTestCase):+ """Test cases for DockerWorkspace skill management."""++ async def asyncSetUp(self) -> None:+ """Build separate temp dirs for the workspace and the skill source."""+ # pylint: disable=consider-using-with+ self.temp_dir = tempfile.TemporaryDirectory()+ self.test_skills_dir = tempfile.TemporaryDirectory()+ self.workspace: DockerWorkspace | None = None++ async def asyncTearDown(self) -> None:+ """Stop the workspace if started, then drop both temp dirs."""+ try:+ if self.workspace is not None:+ await self.workspace.close()+ finally:+ self.temp_dir.cleanup()+ self.test_skills_dir.cleanup()++ def _create_test_skill(+ self,+ skill_name: str,+ description: str,+ additional_files: dict[str, str] | None = None,+ ) -> str:+ """Create a host-side skill directory containing SKILL.md.++ Args:+ skill_name: Name written to the SKILL.md front matter and+ used as the directory basename.+ description: ``description`` field for the front matter.+ additional_files: Optional ``{filename: content}`` map of+ supplementary files written alongside SKILL.md.++ Returns:+ Absolute path to the created directory.+ """+ skill_dir = os.path.join(self.test_skills_dir.name, skill_name)+ os.makedirs(skill_dir, exist_ok=True)+ skill_md = (+ f"---\nname: {skill_name}\ndescription: {description}\n---\n\n"+ f"# {skill_name}\n\n{description}\n"+ )+ with open(+ os.path.join(skill_dir, "SKILL.md"),+ "w",+ encoding="utf-8",+ ) as f:+ f.write(skill_md)+ if additional_files:+ for filename, content in additional_files.items():+ with open(+ os.path.join(skill_dir, filename),+ "w",+ encoding="utf-8",+ ) as f:+ f.write(content)+ return skill_dir++ async def test_initialize_copy_skills(self) -> None:+ """``skill_paths`` are copied into the container's ``skills/``.++ Verifies:+ 1. Both seed skills appear under ``<workdir>/skills/`` (host+ mirror) — directory + SKILL.md + supplementary files.+ """+ skill1 = self._create_test_skill(+ "test_skill_1",+ "First test skill",+ {"tool.py": "def t():\n pass\n"},+ )+ skill2 = self._create_test_skill(+ "test_skill_2",+ "Second test skill",+ {"helper.py": "def h():\n return 42\n"},+ )++ self.workspace = DockerWorkspace(+ workspace_id=f"test-{uuid.uuid4().hex[:8]}",+ workdir=self.temp_dir.name,+ skill_paths=[skill1, skill2],+ )+ await self.workspace.initialize()++ skills_host = os.path.join(self.temp_dir.name, "skills")+ self.assertTrue(os.path.isdir(skills_host))+ for name, extra in (+ ("test_skill_1", "tool.py"),+ ("test_skill_2", "helper.py"),+ ):+ target = os.path.join(skills_host, name)+ self.assertTrue(os.path.isdir(target))+ self.assertTrue(+ os.path.isfile(os.path.join(target, "SKILL.md")),+ )+ self.assertTrue(os.path.isfile(os.path.join(target, extra)))++ async def test_list_skills(self) -> None:+ """``list_skills`` enumerates skills via in-container ``find``.++ Verifies:+ 1. Every seeded skill is returned with the right name + dir.+ 2. The dir field uses the *container-side* path.+ """+ skill1 = self._create_test_skill(+ "list_skill_1",+ "First skill for listing",+ )+ skill2 = self._create_test_skill(+ "list_skill_2",+ "Second skill for listing",+ )++ self.workspace = DockerWorkspace(+ workspace_id=f"test-{uuid.uuid4().hex[:8]}",+ workdir=self.temp_dir.name,+ skill_paths=[skill1, skill2],+ )+ await self.workspace.initialize()++ skills = await self.workspace.list_skills()+ self.assertEqual(len(skills), 2)+ skills_sorted = sorted(skills, key=lambda s: s.name)++ self.assertEqual(skills_sorted[0].name, "list_skill_1")+ self.assertEqual(+ skills_sorted[0].description,+ "First skill for listing",+ )+ self.assertEqual(+ skills_sorted[0].dir,+ f"{CONTAINER_SKILLS_DIR}/list_skill_1",+ )++ self.assertEqual(skills_sorted[1].name, "list_skill_2")+ self.assertEqual(+ skills_sorted[1].description,+ "Second skill for listing",+ )+ self.assertEqual(+ skills_sorted[1].dir,+ f"{CONTAINER_SKILLS_DIR}/list_skill_2",+ )++ async def test_list_skills_empty(self) -> None:+ """Empty workspace → empty skill list (no errors)."""+ self.workspace = DockerWorkspace(+ workspace_id=f"test-{uuid.uuid4().hex[:8]}",+ workdir=self.temp_dir.name,+ )+ await self.workspace.initialize()+ skills = await self.workspace.list_skills()+ self.assertListEqual(skills, [])++ async def test_add_skill_then_list(self) -> None:+ """``add_skill`` after init shows up in subsequent ``list_skills``."""+ self.workspace = DockerWorkspace(+ workspace_id=f"test-{uuid.uuid4().hex[:8]}",+ workdir=self.temp_dir.name,+ )+ await self.workspace.initialize()+ self.assertListEqual(await self.workspace.list_skills(), [])++ new_skill = self._create_test_skill(+ "added_skill",+ "Added at runtime",+ )+ await self.workspace.add_skill(new_skill)++ skills = await self.workspace.list_skills()+ self.assertEqual(len(skills), 1)+ self.assertEqual(skills[0].name, "added_skill")+ self.assertEqual(skills[0].description, "Added at runtime")++ async def test_add_skill_invalid_no_md(self) -> None:+ """``add_skill`` rejects directories without SKILL.md."""+ self.workspace = DockerWorkspace(+ workspace_id=f"test-{uuid.uuid4().hex[:8]}",+ workdir=self.temp_dir.name,+ )+ await self.workspace.initialize()++ invalid = os.path.join(self.test_skills_dir.name, "no_md")+ os.makedirs(invalid, exist_ok=True)+ with open(+ os.path.join(invalid, "tool.py"),+ "w",+ encoding="utf-8",+ ) as f:+ f.write("def t():\n pass\n")++ with self.assertRaises(ValueError):+ await self.workspace.add_skill(invalid)+++# ── lifecycle tests ───────────────────────────────────────────────++[email protected](_DOCKER_OK, _SKIP_REASON)+class TestDockerWorkspaceLifecycle(IsolatedAsyncioTestCase):+ """Test cases for DockerWorkspace lifecycle (init / close / restart)."""++ async def asyncSetUp(self) -> None:+ """Per-test temp workdir; workspace built lazily inside each test."""+ # pylint: disable=consider-using-with+ self.temp_dir = tempfile.TemporaryDirectory()+ self.workspace_id = f"test-{uuid.uuid4().hex[:8]}"++ async def asyncTearDown(self) -> None:+ """Best-effort cleanup of the temp workdir."""+ self.temp_dir.cleanup()++ async def test_initialize_idempotent(self) -> None:+ """Calling ``initialize`` on a live workspace is a no-op."""+ ws = DockerWorkspace(+ workspace_id=self.workspace_id,+ workdir=self.temp_dir.name,+ )+ try:+ await ws.initialize()+ self.assertTrue(ws.is_alive)+ container = ws._container++ await ws.initialize() # second call — must be a no-op+ self.assertTrue(ws.is_alive)+ self.assertIs(ws._container, container)+ finally:+ await ws.close()++ async def test_close_marks_inactive(self) -> None:+ """``close`` flips ``is_alive`` and tears the container down."""+ ws = DockerWorkspace(+ workspace_id=self.workspace_id,+ workdir=self.temp_dir.name,+ )+ await ws.initialize()+ self.assertTrue(ws.is_alive)+ await ws.close()+ self.assertFalse(ws.is_alive)+ self.assertIsNone(ws._container)+ self.assertIsNone(ws._client)++ async def test_list_mcps_empty(self) -> None:+ """No MCPs registered → ``list_mcps`` returns an empty list."""+ ws = DockerWorkspace(+ workspace_id=self.workspace_id,+ workdir=self.temp_dir.name,+ )+ try:+ await ws.initialize()+ self.assertListEqual(await ws.list_mcps(), [])+ finally:+ await ws.close()++ async def test_list_tools_empty(self) -> None:+ """``list_tools`` is always empty — every tool is an MCP tool."""+ ws = DockerWorkspace(+ workspace_id=self.workspace_id,+ workdir=self.temp_dir.name,+ )+ try:+ await ws.initialize()+ self.assertListEqual(await ws.list_tools(), [])+ finally:+ await ws.close()++ async def test_workdir_persistence_across_restart(self) -> None:+ """Same ``workspace_id`` + same ``workdir`` → state survives close.++ Specifically: an offloaded session file written before ``close``+ is still readable from the host mirror after a fresh+ ``initialize`` (the new container re-bind-mounts the same host+ workdir).+ """+ session_id = "persisted_session"+ msg = UserMsg(name="user", content="durable line")++ ws1 = DockerWorkspace(+ workspace_id=self.workspace_id,+ workdir=self.temp_dir.name,+ )+ await ws1.initialize()+ await ws1.offload_context(session_id, [msg])+ await ws1.close()++ host_path = os.path.join(+ self.temp_dir.name,+ "sessions",+ session_id,+ "context.jsonl",+ )+ self.assertTrue(os.path.exists(host_path))++ ws2 = DockerWorkspace(+ workspace_id=self.workspace_id,+ workdir=self.temp_dir.name,+ )+ try:+ await ws2.initialize()+ # The container mounts the same host dir; the file should+ # still be visible via the host mirror.+ self.assertTrue(os.path.exists(host_path))+ async with aiofiles.open(host_path, "r") as f:+ content = await f.read()+ self.assertEqual(content.strip(), msg.model_dump_json())+ finally:+ await ws2.close()++ async def test_reset_clears_sessions_and_data(self) -> None:+ """``reset`` removes ``sessions/`` and ``data/`` (host-visible)."""+ ws = DockerWorkspace(+ workspace_id=self.workspace_id,+ workdir=self.temp_dir.name,+ )+ try:+ await ws.initialize()++ # Seed both directories via offload_*.+ session_id = "reset_session"+ await ws.offload_context(+ session_id,+ [UserMsg(name="user", content="hi")],+ )+ await ws._offload_data_block(+ DataBlock(+ source=Base64Source(+ data=base64.b64encode(b"x").decode(),+ media_type="text/plain",+ ),+ name="x",+ ),+ )+ sessions_host = os.path.join(self.temp_dir.name, "sessions")+ data_host = os.path.join(self.temp_dir.name, "data")+ self.assertTrue(os.path.isdir(sessions_host))+ self.assertTrue(os.path.isdir(data_host))++ await ws.reset()+ self.assertFalse(os.path.exists(sessions_host))+ self.assertFalse(os.path.exists(data_host))+ finally:+ await ws.close()+++if __name__ == "__main__":+ unittest.main()diff --git a/tests/workspace_e2b_test.py b/tests/workspace_e2b_test.pynew file mode 100644index 000000000..384c9f6cd--- /dev/null+++ b/tests/workspace_e2b_test.py@@ -0,0 +1,72 @@+# -*- coding: utf-8 -*-+"""Test cases for E2BWorkspace.++The whole module is skipped when the ``E2B_API_KEY`` environment variable is+not set, because every test requires a live E2B cloud sandbox.+"""+import os+import unittest+from unittest.async_case import IsolatedAsyncioTestCase++from agentscope.mcp import MCPClient, StdioMCPConfig+from agentscope.workspace import E2BWorkspace+++# ── E2B availability check ─────────────────────────────────────────++_E2B_API_KEY = os.getenv("E2B_API_KEY", "")+_SKIP_REASON = "E2B_API_KEY environment variable is not set"+++# ── lifecycle tests ────────────────────────────────────────────────++[email protected](_E2B_API_KEY, _SKIP_REASON)+class TestE2BWorkspaceLifecycle(IsolatedAsyncioTestCase):+ """Test cases for E2BWorkspace lifecycle and MCP integration.++ Each test creates a real E2B cloud sandbox and tears it down+ (``pause``) afterwards. The suite is skipped entirely when+ ``E2B_API_KEY`` is absent so that CI runs without E2B credentials+ are unaffected.+ """++ async def asyncSetUp(self) -> None:+ """No shared setup — each test manages its own workspace."""++ async def asyncTearDown(self) -> None:+ """No shared teardown — each test closes its own workspace."""++ async def test_initialize_and_list_mcps(self) -> None:+ """``initialize`` starts the sandbox and ``list_mcps`` enumerates MCPs.++ Verifies:+ 1. The workspace initializes without raising.+ 2. ``list_mcps`` returns at least the seeded MCP (browser-use).+ 3. Each MCP exposes at least one tool via ``list_raw_tools``.+ 4. ``close`` (sandbox pause) completes without raising.+ """+ workspace = E2BWorkspace(+ api_key=_E2B_API_KEY,+ default_mcps=[+ MCPClient(+ name="browser-use",+ mcp_config=StdioMCPConfig(+ command="npx",+ args=["@playwright/mcp@latest"],+ ),+ is_stateful=True,+ ),+ ],+ )++ await workspace.initialize()++ mcps = await workspace.list_mcps()+ self.assertGreater(len(mcps), 0)++ for mcp in mcps:+ tools = await mcp.list_raw_tools()+ self.assertGreater(len(tools), 0)++ await workspace.close()