Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat: workflow-scoped panels + delegation upgrades + LLM defaults refresh
trohitg580c5155af93
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 190fc76a..cb991feb 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -58,9 +58,6 @@ jobs:publish-npm:name: Publish to npm (with provenance)- # Disabled: npmjs publish is currently turned off per ops decision.- # Flip back to ``if: ${{ true }}`` (or remove the line) to re-enable.- if: ${{ false }}needs: build-for-publishruns-on: ubuntu-latestpermissions:@@ -152,7 +149,7 @@ jobs:# Create GitHub Release with auto-generated notescreate-github-release:name: Create GitHub Release- needs: [publish-github-packages]+ needs: [publish-npm, publish-github-packages]runs-on: ubuntu-latestpermissions:contents: writediff --git a/CLAUDE.md b/CLAUDE.mdindex 9ae54641..2e49267c 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -5229,4 +5229,10 @@ This function:- **Execution correlation IDs**: `handle_execute_node` issues a `uuid4().hex` token at request entry, propagates it through every `node_status` / `node_output` broadcast for the run, and returns it in the response payload as `execution_id`. Frontend `ExecutionResult.executionId` carries it; `OutputSection` dedups runs by it instead of `JSON.stringify(outputs)` (which collapsed distinct executions whose payloads matched). Same trace-id pattern as OpenTelemetry / HTTP request ids.- **`clear_node_status` idle reset**: `StatusBroadcaster.clear_node_status(node_id)` resets the slot to `{status: "idle", data: {}, cleared: true}` instead of `del`'ing it. Deleting created a race window where the in-flight execution's `success` broadcast re-created the entry and stuck the UI on "completed" for a cancelled node. Idle reset preserves entry identity so subsequent broadcasts update normally; the `cleared: true` flag distinguishes "never ran" from "explicitly cleared."- **`get_node_output` race**: in-memory `_outputs` cache re-population after a DB-fallback `await` previously overwrote a fresh in-memory write with a stale DB value. Fix uses nested `dict.setdefault` (atomic at the CPython GIL level -- no lock needed). `store_node_output` and `clear_all_outputs` had no real race because asyncio coroutines do not preempt at synchronous statements. Reference for the Python concurrency model: https://docs.python.org/3/library/asyncio-task.html#asyncio-await+- **`NodeUserError` (services.plugin)**: typed exception for user/LLM-correctable failures (string not found, command not found, bad cwd, missing required field, operator-only Twitter query, Python sandbox `import`, Node.js sidecar down). `BaseNode.execute()` catches it specifically: single WARN line in the operator log (no traceback) + structured `{success: False, error_type: "NodeUserError", error: ...}` envelope. Genuine bugs still flow through the generic `except Exception` branch and keep their full stacktrace via `logger.exception`. Adopted across `fileRead` / `fileModify` / `fsSearch` / `process_manager` / `pythonExecutor` / `javascriptExecutor` / `typescriptExecutor`. Reach for it whenever the LLM (or user) can fix the input and retry — never for actual server bugs.+- **Process manager Windows shim resolution**: `process_service.start()` resolves `argv[0]` via `shutil.which()` before `asyncio.create_subprocess_exec`. On Windows, `shutil.which` honours `PATHEXT` and returns the absolute `.cmd` path (e.g. `C:\...\npm.cmd`); `CreateProcessW` then launches it directly. No `cmd /c` wrap — same canonical idiom used by `browser_service`, `claude_code_service`, `claude_oauth`, `himalaya_service`. Without this, bare `argv[0]="npm"` raises `WinError 2` because `CreateProcessW` does NOT apply `PATHEXT` to bare names. Missing binary → early `Command not found: '<bin>'. Check spelling or ensure the binary is on PATH.` envelope (no traceback).+- **Telegram message auto-split**: Telegram Bot API caps `sendMessage.text` at 4096 chars (per https://core.telegram.org/bots/api). `TelegramService.send_message` splits longer text at paragraph → line → sentence → space → hard-cut boundaries via `_split_text` helper, sends each chunk threaded under the previous (`reply_to_message_id` cascade), returns first message's metadata + `parts` + `message_ids[]`. Captions on `send_photo` / `send_document` still take the legacy path and will fail on >1024 chars — separate fix once needed (constants `_TG_TEXT_LIMIT=3500`, `_TG_CAPTION_LIMIT=900` in `_service.py` already account for ~20% HTML expansion from markdown→HTML conversion in `_resolve_body`).+- **Google OAuth scope expansion**: Google's authorisation server legitimately returns a wider scope set than requested when the OAuth Client's "Data Access" page lists extra scopes (commonly `cloud-platform`) or when `include_granted_scopes` replays a previously-granted scope. `oauthlib` does strict set-equality and aborts with `Warning: Scope has changed`. As of 2026 (`google-auth-oauthlib` 1.2.4, `oauthlib` upstream issue #562 still open), no constructor flag, context manager, or `expected_scopes` argument exists — the documented relief is the env var. `services/google_oauth.py` sets `OAUTHLIB_RELAX_TOKEN_SCOPE=1` via `os.environ.setdefault` BEFORE the `google_auth_oauthlib.flow` import (oauthlib reads it once at parameters-module import; request-time setting races under uvicorn workers), paired with `warnings.filterwarnings(message=r"Scope has changed.*")` to keep the operator log clean. Long-term root cause: audit the Cloud Console Data Access page and remove `cloud-platform` if no handler uses it.+- **Code-executor error mapping** (`pythonExecutor` / `javascriptExecutor` / `typescriptExecutor`): wrap user-code execution and sidecar calls in `try/except`. Python: detect `ImportError("__import__ not found")` (the LLM tried `import X` against the sandboxed builtins) and surface the pre-injected names list (`math, json, datetime, timedelta, re, random, Counter, defaultdict`) plus the suggestion to use `process_manager` for unsupported modules; other exceptions get formatted as `<ErrorName> at line N: <message>` (line N walked from `<string>` frame in the traceback) plus any captured stdout. JS/TS: detect `aiohttp.ClientConnectorError` and surface "JavaScript executor not running on localhost:3020. Start the dev runner or fall back to python_executor." All raise `NodeUserError` so the framework logs one WARN line — no aiohttp/CreateProcessW noise in the operator log.+- **Workflow-scoped chat + console history**: chat messages persist with `chat_messages.session_id == <workflow_id>` (or `"default"` when no workflow is open); console logs persist with `console_logs.workflow_id`. Backend `database.get_console_logs(limit, workflow_id=None)` and `clear_console_logs(workflow_id=None)` filter by workflow when given. `handle_clear_console_logs` broadcasts `console_logs_cleared` carrying the `workflow_id` so the existing frontend filter in `WebSocketContext` keeps other workflows' panels intact. Frontend reads `currentWorkflow.id` via the documented Zustand escape hatch (`useAppStore.getState().currentWorkflow?.id`) at call time for `clearChatMessages` / `clearConsoleLogs` / `sendChatMessage` so the callbacks don't re-create on every workflow switch. A dedicated `useEffect([currentWorkflowId, isReady])` resets local `chatMessages` / `consoleLogs` and refetches both when the user opens / switches workflow. Incoming `console_log` broadcasts are filtered by `currentWorkflow.id` so a parallel run on another workflow never bleeds into the active panel. Legacy logs without `workflow_id` still surface (transition guard).- never use emojis in prints\ No newline at end of filediff --git a/client/src/components/parameterPanel/MiddleSection.tsx b/client/src/components/parameterPanel/MiddleSection.tsxindex e25f754f..c8e1d12b 100644--- a/client/src/components/parameterPanel/MiddleSection.tsx+++ b/client/src/components/parameterPanel/MiddleSection.tsx@@ -128,12 +128,15 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({const [connectedAgentId, setConnectedAgentId] = useState<string | null>(null);// Clear memory handler. Schema-canonical keys are snake_case- // (post-Wave-11 plugin Pydantic models).+ // (post-Wave-11 plugin Pydantic models). Passing the active workflow+ // id lets the backend also clear sibling session-scoped state+ // (TodoService) keyed by workflow_id — see+ // ``services/memory.clear_agent_session_state``.const handleClearMemory = async () => {setIsProcessing(true);try {const sessionId = parameters.session_id || 'default';- const result = await clearMemory(sessionId, clearLongTermMemory);+ const result = await clearMemory(sessionId, clearLongTermMemory, currentWorkflow?.id);if (result.success && result.default_content) {onParameterChange('memory_content', result.default_content);}diff --git a/client/src/contexts/WebSocketContext.tsx b/client/src/contexts/WebSocketContext.tsxindex 4fe761b6..62b4bc5e 100644--- a/client/src/contexts/WebSocketContext.tsx+++ b/client/src/contexts/WebSocketContext.tsx@@ -367,7 +367,7 @@ interface WebSocketContextValue {unpauseWhatsAppRateLimit: () => Promise<{ success: boolean; stats?: RateLimitStats; error?: string }>;// Memory and Skill Operations- clearMemory: (sessionId: string, clearLongTerm?: boolean) => Promise<{ success: boolean; default_content?: string; cleared_vector_store?: boolean; error?: string }>;+ clearMemory: (sessionId: string, clearLongTerm?: boolean, workflowId?: string) => Promise<{ success: boolean; default_content?: string; cleared_vector_store?: boolean; cleared_todo_keys?: string[]; error?: string }>;resetSkill: (skillName: string) => Promise<{ success: boolean; original_content?: string; is_builtin?: boolean; error?: string }>;}@@ -983,8 +983,21 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({ chibreak;case 'console_log':- // Handle console log entries from Console nodes+ // Handle console log entries from Console nodes. Scope to the+ // currently-open workflow: a log carrying a different workflow_id+ // belongs to a parallel run the user isn't viewing right now,+ // and must not bleed into this panel. Logs without workflow_id+ // (legacy / non-workflow contexts) still render so we don't+ // hide debug output during transition.if (data) {+ const activeWorkflowId = useAppStore.getState().currentWorkflow?.id;+ if (+ data.workflow_id &&+ activeWorkflowId &&+ data.workflow_id !== activeWorkflowId+ ) {+ break;+ }const logEntry: ConsoleLogEntry = {node_id: data.node_id || '',label: data.label || 'Console',@@ -1299,7 +1312,13 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({ chi};ws.addEventListener('message', handler);- ws.send(JSON.stringify({ type: 'get_chat_messages', session_id: 'default', request_id: requestId }));+ // Scope to the currently-open workflow if any. session_id is+ // re-used as the workflow identifier on the chat side so the+ // panel only shows messages tied to this workflow. Falls+ // back to "default" when no workflow is selected (initial+ // bootstrap before the user opens any workflow).+ const workflowId = useAppStore.getState().currentWorkflow?.id || 'default';+ ws.send(JSON.stringify({ type: 'get_chat_messages', session_id: workflowId, request_id: requestId }));});if (chatResponse.success && chatResponse.messages) {@@ -1332,7 +1351,15 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({ chi};ws.addEventListener('message', handler);- ws.send(JSON.stringify({ type: 'get_console_logs', limit: 100, request_id: consoleRequestId }));+ // Scope to the currently-open workflow so the panel only+ // shows console output from this workflow's runs.+ const consoleWorkflowId = useAppStore.getState().currentWorkflow?.id;+ ws.send(JSON.stringify({+ type: 'get_console_logs',+ limit: 100,+ workflow_id: consoleWorkflowId,+ request_id: consoleRequestId,+ }));});if (consoleResponse.success && consoleResponse.logs) {@@ -1493,12 +1520,16 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({ chisetLastWhatsAppMessage(null);}, []);- // Clear console logs (both local state and database)+ // Clear console logs (both local state and database). Scoped to+ // the currently-open workflow so other workflows' history survives.const clearConsoleLogs = useCallback(() => {setConsoleLogs([]);- // Also clear from database via direct WebSocket sendif (wsRef.current?.readyState === WebSocket.OPEN) {- wsRef.current.send(JSON.stringify({ type: 'clear_console_logs' }));+ const workflowId = useAppStore.getState().currentWorkflow?.id;+ wsRef.current.send(JSON.stringify({+ type: 'clear_console_logs',+ workflow_id: workflowId,+ }));}}, []);@@ -1511,16 +1542,74 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({ chi}}, []);- // Clear chat messages (both local state and database)- // Uses direct WebSocket send to avoid dependency on sendRequest (which is defined later)+ // Clear chat messages (both local state and database). Scoped to+ // the currently-open workflow (session_id == workflow_id on the+ // chat side); other workflows' history survives.+ // Uses direct WebSocket send to avoid dependency on sendRequest (which is defined later).const clearChatMessages = useCallback(() => {setChatMessages([]);- // Also clear from database via direct WebSocket sendif (wsRef.current?.readyState === WebSocket.OPEN) {- wsRef.current.send(JSON.stringify({ type: 'clear_chat_messages', session_id: 'default' }));+ const workflowId = useAppStore.getState().currentWorkflow?.id || 'default';+ wsRef.current.send(JSON.stringify({+ type: 'clear_chat_messages',+ session_id: workflowId,+ }));}}, []);+ // Refetch chat + console panels when the user switches workflow.+ // Both are scoped on the backend (chat by session_id == workflow id,+ // console by workflow_id). Resets local state first so the panel+ // doesn't briefly show the previous workflow's content while the+ // refetch is in flight. The initial bootstrap inside ws.onopen runs+ // before this effect with a "default" / null id; this effect then+ // refires once ``currentWorkflowId`` resolves to a real value.+ useEffect(() => {+ if (!isReady || !wsRef.current || wsRef.current.readyState !== WebSocket.OPEN) {+ return;+ }+ setChatMessages([]);+ setConsoleLogs([]);+ const sessionId = currentWorkflowId || 'default';+ const ws = wsRef.current;++ const chatRequestId = `chat_switch_${Date.now()}`;+ const consoleRequestId = `console_switch_${Date.now()}`;+ const handler = (event: MessageEvent) => {+ try {+ const msg = JSON.parse(event.data);+ if (msg.request_id === chatRequestId && msg.success && Array.isArray(msg.messages)) {+ setChatMessages(msg.messages.map((m: any) => ({+ role: m.role as 'user' | 'assistant',+ message: m.message,+ timestamp: m.timestamp,+ })));+ } else if (msg.request_id === consoleRequestId && msg.success && Array.isArray(msg.logs)) {+ setConsoleLogs(msg.logs.map((log: any) => ({+ node_id: log.node_id,+ label: log.label,+ timestamp: log.timestamp,+ data: log.data,+ formatted: log.formatted,+ format: log.format,+ workflow_id: log.workflow_id,+ source_node_id: log.source_node_id,+ source_node_type: log.source_node_type,+ source_node_label: log.source_node_label,+ })));+ }+ } catch {+ // Ignore parse errors — handler is best-effort.+ }+ };+ ws.addEventListener('message', handler);+ ws.send(JSON.stringify({ type: 'get_chat_messages', session_id: sessionId, request_id: chatRequestId }));+ ws.send(JSON.stringify({ type: 'get_console_logs', limit: 100, workflow_id: currentWorkflowId, request_id: consoleRequestId }));+ return () => {+ ws.removeEventListener('message', handler);+ };+ }, [currentWorkflowId, isReady]);+// Derive current workflow's node statuses (n8n pattern). Subscribes// to the Zustand store so context consumers still re-render on// status changes; per-node consumers should prefer the `useNodeStatus`@@ -1657,13 +1746,16 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({ chi// Add to local messages immediately for UI feedbacksetChatMessages(prev => [...prev, chatMessage]);- // Send to backend to dispatch to chatTrigger nodes (also saves to database)+ // Send to backend to dispatch to chatTrigger nodes (also saves to database).+ // session_id is the workflow id when one is open, "default" otherwise --+ // this is what scopes the persisted chat history to a single workflow.try {+ const workflowId = useAppStore.getState().currentWorkflow?.id || 'default';await sendRequest('send_chat_message', {message,role: 'user',node_id: nodeId, // Target specific chatTrigger node if specified- session_id: 'default',+ session_id: workflowId,timestamp});} catch (error) {@@ -2376,17 +2468,20 @@ export const WebSocketProvider: React.FC<{ children: React.ReactNode }> = ({ chiconst clearMemoryAsync = useCallback(async (sessionId: string,- clearLongTerm = false- ): Promise<{ success: boolean; default_content?: string; cleared_vector_store?: boolean; error?: string }> => {+ clearLongTerm = false,+ workflowId?: string+ ): Promise<{ success: boolean; default_content?: string; cleared_vector_store?: boolean; cleared_todo_keys?: string[]; error?: string }> => {try {const response = await sendRequest<any>('clear_memory', {session_id: sessionId,- clear_long_term: clearLongTerm+ clear_long_term: clearLongTerm,+ workflow_id: workflowId,});return {success: response.success !== false,default_content: response.default_content,cleared_vector_store: response.cleared_vector_store,+ cleared_todo_keys: response.cleared_todo_keys,error: response.error};} catch (error: any) {diff --git a/server/config/llm_defaults.json b/server/config/llm_defaults.jsonindex d174fff9..70ac4eab 100644--- a/server/config/llm_defaults.json+++ b/server/config/llm_defaults.json@@ -1,6 +1,6 @@{- "version": "2026.04",- "last_updated": "2026-04-03",+ "version": "2026.05",+ "last_updated": "2026-05-02","_description": "LLM provider defaults. Connection config (base_url, models_endpoint) drives both native SDK and LangChain paths. Model specs auto-enriched by model_registry.json (OpenRouter cache).","agent": {@@ -14,13 +14,14 @@"providers": {"openai": {- "default_model": "gpt-5.4",+ "default_model": "gpt-5.5","detection_patterns": ["gpt", "openai", "o1", "o3", "o4"],"base_url": "https://api.openai.com/v1","models_endpoint": "https://api.openai.com/v1/models","api_key_param": "openai_api_key","max_tokens_param": "max_tokens","max_output_tokens": {+ "gpt-5.5": 128000,"gpt-5.4": 128000,"gpt-5.3-chat": 16384,"gpt-5.2": 128000,@@ -29,6 +30,7 @@"_default": 16384},"context_length": {+ "gpt-5.5": 1050000,"gpt-5.4": 1050000,"gpt-5.3-chat": 128000,"gpt-5.2": 400000,@@ -68,29 +70,32 @@"temperature_range": [0.0, 1.0]},"gemini": {- "default_model": "gemini-2.5-flash",+ "default_model": "gemini-flash-latest","detection_patterns": ["gemini", "google"],"base_url": "https://generativelanguage.googleapis.com/v1beta","models_endpoint": "https://generativelanguage.googleapis.com/v1beta/models","api_key_param": "google_api_key","max_tokens_param": "max_output_tokens",+ "_alias_note": "gemini-flash-latest / gemini-pro-latest are family-level rolling aliases (cross-generation, 2-week notice on rotation per https://ai.google.dev/gemini-api/docs/changelog). Bare gemini-2.5-flash / gemini-2.5-pro are themselves rolling within their generation; -001/-002 suffixes pin a specific revision. Currently flash-latest -> gemini-3-flash-preview, pro-latest -> gemini-3.1-pro-preview.","max_output_tokens": {+ "gemini-flash-latest": 65536,+ "gemini-pro-latest": 65536,"gemini-3.1-pro-preview": 65536,"gemini-3-flash-preview": 65536,- "gemini-3-pro-preview": 65536,"gemini-2.5-pro": 65536,"gemini-2.5-flash": 65535,"_default": 8192},"context_length": {+ "gemini-flash-latest": 1048576,+ "gemini-pro-latest": 1048576,"gemini-3.1-pro-preview": 1048576,"gemini-3-flash-preview": 1048576,- "gemini-3-pro-preview": 1048576,"gemini-2.5-pro": 1048576,"gemini-2.5-flash": 1048576,"_default": 1048576},- "thinking_models": ["gemini-2.5", "gemini-3"],+ "thinking_models": ["gemini-2.5", "gemini-3", "gemini-flash-latest", "gemini-pro-latest"],"thinking_type": "budget","temperature_range": [0.0, 2.0]},@@ -111,26 +116,26 @@"temperature_range": [0.0, 2.0]},"groq": {- "default_model": "llama-4-scout",+ "default_model": "meta-llama/llama-4-scout-17b-16e-instruct","detection_patterns": ["groq"],"base_url": "https://api.groq.com/openai/v1","models_endpoint": "https://api.groq.com/openai/v1/models","api_key_param": "api_key","max_tokens_param": "max_tokens","max_output_tokens": {- "llama-4-scout": 8192,- "llama-4-maverick": 16384,- "llama-3.3-70b": 32768,- "llama-3.1-8b": 131072,- "qwen3-32b": 40960,+ "meta-llama/llama-4-scout-17b-16e-instruct": 8192,+ "meta-llama/llama-4-maverick-17b-128e-instruct": 16384,+ "llama-3.3-70b-versatile": 32768,+ "llama-3.1-8b-instant": 131072,+ "qwen/qwen3-32b": 40960,"_default": 8192},"context_length": {- "llama-4-scout": 131072,- "llama-4-maverick": 131072,- "llama-3.3-70b": 131072,- "llama-3.1-8b": 131072,- "qwen3-32b": 131072,+ "meta-llama/llama-4-scout-17b-16e-instruct": 131072,+ "meta-llama/llama-4-maverick-17b-128e-instruct": 131072,+ "llama-3.3-70b-versatile": 131072,+ "llama-3.1-8b-instant": 131072,+ "qwen/qwen3-32b": 131072,"_default": 131072},"thinking_models": ["qwen3"],@@ -138,18 +143,20 @@"temperature_range": [0.0, 2.0]},"cerebras": {- "default_model": "llama3.1-8b",- "detection_patterns": ["cerebras", "llama3.1", "qwen-3-235b"],+ "default_model": "gpt-oss-120b",+ "detection_patterns": ["cerebras", "gpt-oss", "llama3.1", "qwen-3-235b"],"base_url": "https://api.cerebras.ai/v1","models_endpoint": "https://api.cerebras.ai/v1/models","api_key_param": "api_key","max_tokens_param": "max_tokens","max_output_tokens": {+ "gpt-oss-120b": 8192,"qwen-3-235b": 8192,"llama3.1-8b": 8192,"_default": 8192},"context_length": {+ "gpt-oss-120b": 128000,"qwen-3-235b": 32768,"llama3.1-8b": 128000,"_default": 128000@@ -159,17 +166,19 @@"temperature_range": [0.0, 1.5]},"xai": {- "default_model": "grok-3",+ "default_model": "grok-4.3","detection_patterns": ["grok", "xai"],"base_url": "https://api.x.ai/v1","models_endpoint": "https://api.x.ai/v1/models","api_key_param": "api_key","max_tokens_param": "max_tokens","max_output_tokens": {+ "grok-4.3": 131072,"grok-3": 131072,"_default": 8192},"context_length": {+ "grok-4.3": 256000,"grok-3": 131072,"_default": 131072},@@ -197,21 +206,23 @@"temperature_range": [0.0, 2.0]},"kimi": {- "default_model": "kimi-k2.5",+ "default_model": "kimi-k2.6","detection_patterns": ["kimi", "moonshot"],"base_url": "https://api.moonshot.ai/v1","models_endpoint": "https://api.moonshot.ai/v1/models","api_key_param": "api_key","max_tokens_param": "max_tokens","supported_params": ["temperature", "max_tokens", "top_p", "frequency_penalty", "presence_penalty", "stop", "seed", "tools", "tool_choice", "response_format"],- "thinking_default_on": ["kimi-k2.5", "kimi-k2-thinking", "kimi-k2-0905-preview"],- "fixed_temperature": {"kimi-k2.5": 0.6, "kimi-k2-thinking": 1.0, "kimi-k2-0905-preview": 0.6},+ "thinking_default_on": ["kimi-k2.6", "kimi-k2.5", "kimi-k2-thinking", "kimi-k2-0905-preview"],+ "fixed_temperature": {"kimi-k2.6": 0.6, "kimi-k2.5": 0.6, "kimi-k2-thinking": 1.0, "kimi-k2-0905-preview": 0.6},"max_output_tokens": {+ "kimi-k2.6": 32768,"kimi-k2.5": 98304,"kimi-k2-thinking": 98304,"_default": 8192},"context_length": {+ "kimi-k2.6": 262144,"kimi-k2.5": 262144,"kimi-k2-thinking": 262144,"_default": 262144diff --git a/server/config/model_registry.json b/server/config/model_registry.jsonindex b7a2289f..0c12ebba 100644--- a/server/config/model_registry.json+++ b/server/config/model_registry.json@@ -1,5 +1,5 @@{- "_generated": "2026-05-01T06:06:55.585247+00:00",+ "_generated": "2026-05-03T17:18:01.001370+00:00","_source": "openrouter","_model_count": 371,"models": {@@ -527,10 +527,10 @@"name": "Qwen: Qwen3.6 27B","provider": "qwen","local_id": "qwen3.6-27b",- "context_length": 256000,- "max_output_tokens": 65536,- "input_price_per_mtok": 0.325,- "output_price_per_mtok": 3.25,+ "context_length": 262144,+ "max_output_tokens": 81920,+ "input_price_per_mtok": 0.32,+ "output_price_per_mtok": 3.2,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -5197,8 +5197,8 @@"local_id": "deepseek-v3.1-terminus","context_length": 163840,"max_output_tokens": 32768,- "input_price_per_mtok": 0.21,- "output_price_per_mtok": 0.79,+ "input_price_per_mtok": 0.27,+ "output_price_per_mtok": 0.95,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -7565,9 +7565,9 @@"provider": "qwen","local_id": "qwen3-30b-a3b","context_length": 40960,- "max_output_tokens": 16384,- "input_price_per_mtok": 0.08,- "output_price_per_mtok": 0.28,+ "max_output_tokens": 20000,+ "input_price_per_mtok": 0.09,+ "output_price_per_mtok": 0.45,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -8705,7 +8705,7 @@"name": "Google: Gemini 2.0 Flash","provider": "gemini","local_id": "gemini-2.0-flash-001",- "context_length": 1000000,+ "context_length": 1048576,"max_output_tokens": 8192,"input_price_per_mtok": 0.1,"output_price_per_mtok": 0.4,@@ -9802,11 +9802,11 @@"top_p"]},- "inflection/inflection-3-productivity": {- "id": "inflection/inflection-3-productivity",- "name": "Inflection: Inflection 3 Productivity",+ "inflection/inflection-3-pi": {+ "id": "inflection/inflection-3-pi",+ "name": "Inflection: Inflection 3 Pi","provider": "inflection",- "local_id": "inflection-3-productivity",+ "local_id": "inflection-3-pi","context_length": 8000,"max_output_tokens": 1024,"input_price_per_mtok": 2.5,@@ -9825,11 +9825,11 @@"top_p"]},- "inflection/inflection-3-pi": {- "id": "inflection/inflection-3-pi",- "name": "Inflection: Inflection 3 Pi",+ "inflection/inflection-3-productivity": {+ "id": "inflection/inflection-3-productivity",+ "name": "Inflection: Inflection 3 Productivity","provider": "inflection",- "local_id": "inflection-3-pi",+ "local_id": "inflection-3-productivity","context_length": 8000,"max_output_tokens": 1024,"input_price_per_mtok": 2.5,@@ -9884,15 +9884,15 @@"top_p"]},- "meta/llama-3.2-3b-instruct:free": {- "id": "meta-llama/llama-3.2-3b-instruct:free",- "name": "Meta: Llama 3.2 3B Instruct (free)",+ "meta/llama-3.2-1b-instruct": {+ "id": "meta-llama/llama-3.2-1b-instruct",+ "name": "Meta: Llama 3.2 1B Instruct","provider": "meta",- "local_id": "llama-3.2-3b-instruct:free",- "context_length": 131072,+ "local_id": "llama-3.2-1b-instruct",+ "context_length": 60000,"max_output_tokens": 0,- "input_price_per_mtok": 0.0,- "output_price_per_mtok": 0.0,+ "input_price_per_mtok": 0.027,+ "output_price_per_mtok": 0.2,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -9904,21 +9904,22 @@"frequency_penalty","max_tokens","presence_penalty",- "stop",+ "repetition_penalty",+ "seed","temperature","top_k","top_p"]},- "meta/llama-3.2-3b-instruct": {- "id": "meta-llama/llama-3.2-3b-instruct",- "name": "Meta: Llama 3.2 3B Instruct",+ "meta/llama-3.2-11b-vision-instruct": {+ "id": "meta-llama/llama-3.2-11b-vision-instruct",+ "name": "Meta: Llama 3.2 11B Vision Instruct","provider": "meta",- "local_id": "llama-3.2-3b-instruct",- "context_length": 80000,- "max_output_tokens": 0,- "input_price_per_mtok": 0.051,- "output_price_per_mtok": 0.34,+ "local_id": "llama-3.2-11b-vision-instruct",+ "context_length": 131072,+ "max_output_tokens": 16384,+ "input_price_per_mtok": 0.245,+ "output_price_per_mtok": 0.245,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -9928,24 +9929,28 @@"is_reasoning_model": false,"supported_parameters": ["frequency_penalty",+ "logit_bias","max_tokens",+ "min_p","presence_penalty","repetition_penalty",+ "response_format","seed",+ "stop","temperature","top_k","top_p"]},- "meta/llama-3.2-1b-instruct": {- "id": "meta-llama/llama-3.2-1b-instruct",- "name": "Meta: Llama 3.2 1B Instruct",+ "meta/llama-3.2-3b-instruct:free": {+ "id": "meta-llama/llama-3.2-3b-instruct:free",+ "name": "Meta: Llama 3.2 3B Instruct (free)","provider": "meta",- "local_id": "llama-3.2-1b-instruct",- "context_length": 60000,+ "local_id": "llama-3.2-3b-instruct:free",+ "context_length": 131072,"max_output_tokens": 0,- "input_price_per_mtok": 0.027,- "output_price_per_mtok": 0.2,+ "input_price_per_mtok": 0.0,+ "output_price_per_mtok": 0.0,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -9957,22 +9962,21 @@"frequency_penalty","max_tokens","presence_penalty",- "repetition_penalty",- "seed",+ "stop","temperature","top_k","top_p"]},- "meta/llama-3.2-11b-vision-instruct": {- "id": "meta-llama/llama-3.2-11b-vision-instruct",- "name": "Meta: Llama 3.2 11B Vision Instruct",+ "meta/llama-3.2-3b-instruct": {+ "id": "meta-llama/llama-3.2-3b-instruct",+ "name": "Meta: Llama 3.2 3B Instruct","provider": "meta",- "local_id": "llama-3.2-11b-vision-instruct",- "context_length": 131072,- "max_output_tokens": 16384,- "input_price_per_mtok": 0.245,- "output_price_per_mtok": 0.245,+ "local_id": "llama-3.2-3b-instruct",+ "context_length": 80000,+ "max_output_tokens": 0,+ "input_price_per_mtok": 0.051,+ "output_price_per_mtok": 0.34,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -9982,14 +9986,10 @@"is_reasoning_model": false,"supported_parameters": ["frequency_penalty",- "logit_bias","max_tokens",- "min_p","presence_penalty","repetition_penalty",- "response_format","seed",- "stop","temperature","top_k","top_p"@@ -10029,15 +10029,15 @@"top_p"]},- "cohere/command-r-plus-08-2024": {- "id": "cohere/command-r-plus-08-2024",- "name": "Cohere: Command R+ (08-2024)",+ "cohere/command-r-08-2024": {+ "id": "cohere/command-r-08-2024",+ "name": "Cohere: Command R (08-2024)","provider": "cohere",- "local_id": "command-r-plus-08-2024",+ "local_id": "command-r-08-2024","context_length": 128000,"max_output_tokens": 4000,- "input_price_per_mtok": 2.5,- "output_price_per_mtok": 10.0,+ "input_price_per_mtok": 0.15,+ "output_price_per_mtok": 0.6,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -10060,15 +10060,15 @@"top_p"]},- "cohere/command-r-08-2024": {- "id": "cohere/command-r-08-2024",- "name": "Cohere: Command R (08-2024)",+ "cohere/command-r-plus-08-2024": {+ "id": "cohere/command-r-plus-08-2024",+ "name": "Cohere: Command R+ (08-2024)","provider": "cohere",- "local_id": "command-r-08-2024",+ "local_id": "command-r-plus-08-2024","context_length": 128000,"max_output_tokens": 4000,- "input_price_per_mtok": 0.15,- "output_price_per_mtok": 0.6,+ "input_price_per_mtok": 2.5,+ "output_price_per_mtok": 10.0,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -10546,15 +10546,15 @@"top_p"]},- "openai/gpt-4o-2024-05-13": {- "id": "openai/gpt-4o-2024-05-13",- "name": "OpenAI: GPT-4o (2024-05-13)",+ "openai/gpt-4o": {+ "id": "openai/gpt-4o",+ "name": "OpenAI: GPT-4o","provider": "openai",- "local_id": "gpt-4o-2024-05-13",+ "local_id": "gpt-4o","context_length": 128000,- "max_output_tokens": 4096,- "input_price_per_mtok": 5.0,- "output_price_per_mtok": 15.0,+ "max_output_tokens": 16384,+ "input_price_per_mtok": 2.5,+ "output_price_per_mtok": 10.0,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -10581,15 +10581,15 @@"web_search_options"]},- "openai/gpt-4o": {- "id": "openai/gpt-4o",- "name": "OpenAI: GPT-4o",+ "openai/gpt-4o-2024-05-13": {+ "id": "openai/gpt-4o-2024-05-13",+ "name": "OpenAI: GPT-4o (2024-05-13)","provider": "openai",- "local_id": "gpt-4o",+ "local_id": "gpt-4o-2024-05-13","context_length": 128000,- "max_output_tokens": 16384,- "input_price_per_mtok": 2.5,- "output_price_per_mtok": 10.0,+ "max_output_tokens": 4096,+ "input_price_per_mtok": 5.0,+ "output_price_per_mtok": 15.0,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -10616,15 +10616,15 @@"web_search_options"]},- "meta/llama-3-8b-instruct": {- "id": "meta-llama/llama-3-8b-instruct",- "name": "Meta: Llama 3 8B Instruct",+ "meta/llama-3-70b-instruct": {+ "id": "meta-llama/llama-3-70b-instruct",+ "name": "Meta: Llama 3 70B Instruct","provider": "meta",- "local_id": "llama-3-8b-instruct",+ "local_id": "llama-3-70b-instruct","context_length": 8192,- "max_output_tokens": 16384,- "input_price_per_mtok": 0.03,- "output_price_per_mtok": 0.04,+ "max_output_tokens": 8000,+ "input_price_per_mtok": 0.51,+ "output_price_per_mtok": 0.74,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -10634,30 +10634,25 @@"is_reasoning_model": false,"supported_parameters": ["frequency_penalty",- "logit_bias","max_tokens",- "min_p","presence_penalty","repetition_penalty",- "response_format","seed","stop","temperature",- "tool_choice",- "tools","top_k","top_p"]},- "meta/llama-3-70b-instruct": {- "id": "meta-llama/llama-3-70b-instruct",- "name": "Meta: Llama 3 70B Instruct",+ "meta/llama-3-8b-instruct": {+ "id": "meta-llama/llama-3-8b-instruct",+ "name": "Meta: Llama 3 8B Instruct","provider": "meta",- "local_id": "llama-3-70b-instruct",+ "local_id": "llama-3-8b-instruct","context_length": 8192,- "max_output_tokens": 8000,- "input_price_per_mtok": 0.51,- "output_price_per_mtok": 0.74,+ "max_output_tokens": 16384,+ "input_price_per_mtok": 0.03,+ "output_price_per_mtok": 0.04,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -10667,12 +10662,17 @@"is_reasoning_model": false,"supported_parameters": ["frequency_penalty",+ "logit_bias","max_tokens",+ "min_p","presence_penalty","repetition_penalty",+ "response_format","seed","stop","temperature",+ "tool_choice",+ "tools","top_k","top_p"]@@ -11227,11 +11227,11 @@"top_p"]},- "openai/gpt-4-0314": {- "id": "openai/gpt-4-0314",- "name": "OpenAI: GPT-4 (older v0314)",+ "openai/gpt-4": {+ "id": "openai/gpt-4",+ "name": "OpenAI: GPT-4","provider": "openai",- "local_id": "gpt-4-0314",+ "local_id": "gpt-4","context_length": 8191,"max_output_tokens": 4096,"input_price_per_mtok": 30.0,@@ -11247,6 +11247,7 @@"frequency_penalty","logit_bias","logprobs",+ "max_completion_tokens","max_tokens","presence_penalty","response_format",@@ -11260,15 +11261,15 @@"top_p"]},- "openai/gpt-4": {- "id": "openai/gpt-4",- "name": "OpenAI: GPT-4",+ "openai/gpt-3.5-turbo": {+ "id": "openai/gpt-3.5-turbo",+ "name": "OpenAI: GPT-3.5 Turbo","provider": "openai",- "local_id": "gpt-4",- "context_length": 8191,+ "local_id": "gpt-3.5-turbo",+ "context_length": 16385,"max_output_tokens": 4096,- "input_price_per_mtok": 30.0,- "output_price_per_mtok": 60.0,+ "input_price_per_mtok": 0.5,+ "output_price_per_mtok": 1.5,"supports_thinking": false,"thinking_type": "none","temperature_range": [@@ -11280,7 +11281,6 @@"frequency_penalty","logit_bias","logprobs",- "max_completion_tokens","max_tokens","presence_penalty","response_format",@@ -11294,15 +11294,15 @@"top_p"]},- "openai/gpt-3.5-turbo": {- "id": "openai/gpt-3.5-turbo",- "name": "OpenAI: GPT-3.5 Turbo",+ "openai/gpt-4-0314": {+ "id": "openai/gpt-4-0314",+ "name": "OpenAI: GPT-4 (older v0314)","provider": "openai",- "local_id": "gpt-3.5-turbo",- "context_length": 16385,+ "local_id": "gpt-4-0314",+ "context_length": 8191,"max_output_tokens": 4096,- "input_price_per_mtok": 0.5,- "output_price_per_mtok": 1.5,+ "input_price_per_mtok": 30.0,+ "output_price_per_mtok": 60.0,"supports_thinking": false,"thinking_type": "none","temperature_range": [diff --git a/server/core/database.py b/server/core/database.pyindex 8ae658a2..95ae9db1 100644--- a/server/core/database.py+++ b/server/core/database.py@@ -910,14 +910,24 @@ class Database:logger.error("Failed to add console log", error=str(e))return False- async def get_console_logs(self, limit: int = 100) -> List[Dict[str, Any]]:- """Get console logs, optionally limited to last N entries."""+ async def get_console_logs(+ self, limit: int = 100, workflow_id: Optional[str] = None+ ) -> List[Dict[str, Any]]:+ """Get console logs, optionally limited and scoped to a workflow.++ ``workflow_id=None`` returns the global stream (legacy behavior, used+ by the initial WebSocket-bootstrap fetch before any workflow is+ selected). When a workflow is open, the frontend passes its id so+ the panel only shows logs from that workflow.+ """from models.database import ConsoleLogimport jsontry:async with self.get_session() as session:stmt = select(ConsoleLog).order_by(ConsoleLog.created_at.desc()).limit(limit)+ if workflow_id is not None:+ stmt = stmt.where(ConsoleLog.workflow_id == workflow_id)result = await session.execute(stmt)logs = result.scalars().all()@@ -944,13 +954,20 @@ class Database:logger.error("Failed to get console logs", error=str(e))return []- async def clear_console_logs(self) -> int:- """Clear all console logs. Returns count deleted."""+ async def clear_console_logs(self, workflow_id: Optional[str] = None) -> int:+ """Clear console logs, optionally scoped to a single workflow.++ ``workflow_id=None`` clears every row (used for the global "Clear"+ action and one-shot maintenance). When a workflow is open, the+ frontend passes its id so other workflows' history is preserved.+ """from models.database import ConsoleLogtry:async with self.get_session() as session:stmt = select(ConsoleLog)+ if workflow_id is not None:+ stmt = stmt.where(ConsoleLog.workflow_id == workflow_id)result = await session.execute(stmt)logs = result.scalars().all()@@ -959,7 +976,10 @@ class Database:await session.delete(log)await session.commit()- logger.info(f"[Console] Cleared {count} console logs")+ logger.info(+ f"[Console] Cleared {count} console logs"+ + (f" (workflow={workflow_id})" if workflow_id else " (all)")+ )return countexcept Exception as e:diff --git a/server/nodes/agent/_inline.py b/server/nodes/agent/_inline.pyindex 7a32ac6e..6732a136 100644--- a/server/nodes/agent/_inline.py+++ b/server/nodes/agent/_inline.py@@ -97,12 +97,46 @@ async def prepare_agent_call(teammates = await collect_teammate_connections(node_id, context, database)if teammates:tool_data = tool_data or []+ # Walk each teammate's own ``input-tools`` edges so the+ # delegation tool description (built later in+ # ``ai.py:_build_tool_from_node``) lists what each teammate+ # can actually do. Without ``child_tools`` populated, the+ # LLM only sees the generic "ONE-SHOT delegation to X"+ # string and has no signal for which teammate fits a given+ # task -- the orchestrator answers in one turn instead of+ # delegating. Scoped to the team-handle path on purpose;+ # ``input-tools``-connected agents already get this+ # capability injection inside ``edge_walker``.+ all_nodes = context.get("nodes", []) or []+ all_edges = context.get("edges", []) or []for tm in teammates:+ tm_id = tm["node_id"]+ child_tools = []+ for child_edge in all_edges:+ if (+ child_edge.get("target") != tm_id+ or child_edge.get("targetHandle") != "input-tools"+ ):+ continue+ child_id = child_edge.get("source")+ child_node = next(+ (n for n in all_nodes if n.get("id") == child_id), None,+ )+ if not child_node:+ continue+ child_tools.append({+ "node_id": child_id,+ "node_type": child_node.get("type"),+ "label": child_node.get("data", {}).get(+ "label", child_node.get("type"),+ ),+ })tool_data.append({- "node_id": tm["node_id"],+ "node_id": tm_id,"node_type": tm["node_type"],"label": tm["label"],"parameters": tm.get("parameters", {}),+ "child_tools": child_tools,})logger.info(f"[Teams] Added {len(teammates)} teammates as delegation tools")diff --git a/server/nodes/code/javascript_executor.py b/server/nodes/code/javascript_executor.pyindex ce0423ac..05192174 100644--- a/server/nodes/code/javascript_executor.py+++ b/server/nodes/code/javascript_executor.py@@ -4,7 +4,7 @@ from __future__ import annotationsfrom typing import Any-from services.plugin import NodeContext, Operation+from services.plugin import NodeContext, NodeUserError, Operationfrom ._base import CodeExecutorBase, CodeExecutorParams@@ -19,21 +19,38 @@ class JavaScriptExecutorNode(CodeExecutorBase):async def execute_op(self, ctx: NodeContext, params: CodeExecutorParams) -> Any:"""Inlined from handlers/code.py (Wave 11.D.2). Dispatches to thepersistent Node.js server via the shared NodeJSClient singleton."""+ from aiohttp import ClientConnectorError+from ._nodejs import get_nodejs_clientif not params.code.strip():- raise RuntimeError("No code provided")+ raise NodeUserError("No code provided")input_data = dict(ctx.raw.get("connected_outputs") or {})input_data["workspace_dir"] = ctx.workspace_dir or ""- result = await get_nodejs_client().execute(- code=params.code,- input_data=input_data,- timeout=params.timeout * 1000,- language="javascript",- )+ try:+ result = await get_nodejs_client().execute(+ code=params.code,+ input_data=input_data,+ timeout=params.timeout * 1000,+ language="javascript",+ )+ except ClientConnectorError as exc:+ # Sidecar not running -- bare aiohttp.ClientConnectorError is+ # opaque to the LLM. Tell it what's actually wrong and which+ # tool can substitute.+ raise NodeUserError(+ "JavaScript executor is not running (cannot reach the "+ "Node.js sidecar on localhost:3020). Start the dev runner "+ "(it spawns the Node executor automatically), or fall back "+ "to python_executor for similar logic. Underlying: "+ f"{exc}"+ ) from exc+if not result.get("success"):- raise RuntimeError(result.get("error") or "JavaScript executor failed")+ raise NodeUserError(+ result.get("error") or "JavaScript executor failed"+ )return {"output": result.get("output"),"console_output": result.get("console_output", ""),diff --git a/server/nodes/code/python_executor.py b/server/nodes/code/python_executor.pyindex 3598fed7..2e0c760c 100644--- a/server/nodes/code/python_executor.py+++ b/server/nodes/code/python_executor.py@@ -4,11 +4,19 @@ from __future__ import annotationsfrom typing import Any-from services.plugin import NodeContext, Operation+from services.plugin import NodeContext, NodeUserError, Operationfrom ._base import CodeExecutorBase, CodeExecutorParams+# Names available in the sandbox namespace -- kept here so the+# error-handler can list them when the LLM tries `import X` and hits+# the "no __import__" wall.+_SANDBOX_NAMES = (+ "math, json, datetime, timedelta, re, random, Counter, defaultdict"+)++class PythonExecutorNode(CodeExecutorBase):type = "pythonExecutor"display_name = "Python Executor"@@ -30,10 +38,11 @@ class PythonExecutorNode(CodeExecutorBase):import mathimport random as random_moduleimport re as re_module+ import traceback as tb_modulefrom collections import Counter, defaultdictif not params.code.strip():- raise RuntimeError("No code provided")+ raise NodeUserError("No code provided")input_data = ctx.raw.get("connected_outputs") or {}stdout_capture = io.StringIO()@@ -68,7 +77,46 @@ class PythonExecutorNode(CodeExecutorBase):"workspace_dir": ctx.workspace_dir or "","output": None,}- exec(params.code, namespace) # noqa: S102 — sandboxed namespace+ try:+ exec(params.code, namespace) # noqa: S102 — sandboxed namespace+ except Exception as exc:+ # Surface user-code errors as NodeUserError so the framework+ # logs a single WARN line (no traceback noise from the+ # framework) and the LLM gets an actionable message instead+ # of a raw Python exception.+ err_type = type(exc).__name__+ err_msg = str(exc)++ # Special case: `import X` translates to a `__import__` call+ # against the sandboxed builtins, which raises ImportError.+ # Tell the LLM exactly how to rewrite the code.+ if isinstance(exc, ImportError) and "__import__" in err_msg:+ raise NodeUserError(+ "Python sandbox does not allow `import` statements. "+ f"These names are pre-injected and ready to use: {_SANDBOX_NAMES}. "+ "Reference them directly -- e.g. `math.sqrt(4)`, "+ "`json.dumps(x)`, `datetime.datetime.now()`. "+ "If you need a module not on the list, drop the "+ "`import` and use process_manager to run a Python "+ "script with full PATH access instead."+ ) from exc++ # Walk the traceback for the line number inside the user's+ # source (exec uses '<string>' as the filename).+ line_info = ""+ tb = exc.__traceback__+ while tb:+ if tb.tb_frame.f_code.co_filename == "<string>":+ line_info = f" at line {tb.tb_lineno}"+ break+ tb = tb.tb_next++ captured = stdout_capture.getvalue()+ suffix = f"\n\nstdout before error:\n{captured}" if captured else ""+ raise NodeUserError(+ f"{err_type}{line_info}: {err_msg}{suffix}"+ ) from exc+return {"output": namespace.get("output"),"console_output": stdout_capture.getvalue(),diff --git a/server/nodes/code/typescript_executor.py b/server/nodes/code/typescript_executor.pyindex 92e196cb..ba4d5a54 100644--- a/server/nodes/code/typescript_executor.py+++ b/server/nodes/code/typescript_executor.py@@ -4,7 +4,7 @@ from __future__ import annotationsfrom typing import Any-from services.plugin import NodeContext, Operation+from services.plugin import NodeContext, NodeUserError, Operationfrom ._base import CodeExecutorBase, CodeExecutorParams@@ -18,21 +18,35 @@ class TypeScriptExecutorNode(CodeExecutorBase):@Operation("execute")async def execute_op(self, ctx: NodeContext, params: CodeExecutorParams) -> Any:"""Inlined from handlers/code.py (Wave 11.D.2)."""+ from aiohttp import ClientConnectorError+from ._nodejs import get_nodejs_clientif not params.code.strip():- raise RuntimeError("No code provided")+ raise NodeUserError("No code provided")input_data = dict(ctx.raw.get("connected_outputs") or {})input_data["workspace_dir"] = ctx.workspace_dir or ""- result = await get_nodejs_client().execute(- code=params.code,- input_data=input_data,- timeout=params.timeout * 1000,- language="typescript",- )+ try:+ result = await get_nodejs_client().execute(+ code=params.code,+ input_data=input_data,+ timeout=params.timeout * 1000,+ language="typescript",+ )+ except ClientConnectorError as exc:+ raise NodeUserError(+ "TypeScript executor is not running (cannot reach the "+ "Node.js sidecar on localhost:3020). Start the dev runner "+ "(it spawns the Node executor automatically), or fall back "+ "to python_executor for similar logic. Underlying: "+ f"{exc}"+ ) from exc+if not result.get("success"):- raise RuntimeError(result.get("error") or "TypeScript executor failed")+ raise NodeUserError(+ result.get("error") or "TypeScript executor failed"+ )return {"output": result.get("output"),"console_output": result.get("console_output", ""),diff --git a/server/package-lock.json b/server/package-lock.jsonnew file mode 100644index 00000000..51204baf--- /dev/null+++ b/server/package-lock.json@@ -0,0 +1,1644 @@+{+ "name": "machina-backend",+ "version": "0.0.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "machina-backend",+ "version": "0.0.0",+ "dependencies": {+ "@react-three/drei": "^10.7.7",+ "@react-three/fiber": "^9.6.1",+ "clsx": "^2.1.1",+ "express": "^5.2.1",+ "morgan": "^1.10.1",+ "tailwind-merge": "^3.5.0",+ "three": "^0.184.0"+ }+ },+ "node_modules/@babel/runtime": {+ "version": "7.29.2",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.2.tgz",+ "integrity": "sha512-JiDShH45zKHWyGe4ZNVRrCjBz8Nh9TMmZG1kh4QTK8hCBTWBi8Da+i7s1fJw7/lYpM4ccepSNfqzZ/QvABBi5g==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@dimforge/rapier3d-compat": {+ "version": "0.12.0",+ "resolved": "https://registry.npmjs.org/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz",+ "integrity": "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==",+ "license": "Apache-2.0"+ },+ "node_modules/@mediapipe/tasks-vision": {+ "version": "0.10.17",+ "resolved": "https://registry.npmjs.org/@mediapipe/tasks-vision/-/tasks-vision-0.10.17.tgz",+ "integrity": "sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg==",+ "license": "Apache-2.0"+ },+ "node_modules/@monogrid/gainmap-js": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/@monogrid/gainmap-js/-/gainmap-js-3.4.0.tgz",+ "integrity": "sha512-2Z0FATFHaoYJ8b+Y4y4Hgfn3FRFwuU5zRrk+9dFWp4uGAdHGqVEdP7HP+gLA3X469KXHmfupJaUbKo1b/aDKIg==",+ "license": "MIT",+ "dependencies": {+ "promise-worker-transferable": "^1.0.4"+ },+ "peerDependencies": {+ "three": ">= 0.159.0"+ }+ },+ "node_modules/@react-three/drei": {+ "version": "10.7.7",+ "resolved": "https://registry.npmjs.org/@react-three/drei/-/drei-10.7.7.tgz",+ "integrity": "sha512-ff+J5iloR0k4tC++QtD/j9u3w5fzfgFAWDtAGQah9pF2B1YgOq/5JxqY0/aVoQG5r3xSZz0cv5tk2YuBob4xEQ==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.26.0",+ "@mediapipe/tasks-vision": "0.10.17",+ "@monogrid/gainmap-js": "^3.0.6",+ "@use-gesture/react": "^10.3.1",+ "camera-controls": "^3.1.0",+ "cross-env": "^7.0.3",+ "detect-gpu": "^5.0.56",+ "glsl-noise": "^0.0.0",+ "hls.js": "^1.5.17",+ "maath": "^0.10.8",+ "meshline": "^3.3.1",+ "stats-gl": "^2.2.8",+ "stats.js": "^0.17.0",+ "suspend-react": "^0.1.3",+ "three-mesh-bvh": "^0.8.3",+ "three-stdlib": "^2.35.6",+ "troika-three-text": "^0.52.4",+ "tunnel-rat": "^0.1.2",+ "use-sync-external-store": "^1.4.0",+ "utility-types": "^3.11.0",+ "zustand": "^5.0.1"+ },+ "peerDependencies": {+ "@react-three/fiber": "^9.0.0",+ "react": "^19",+ "react-dom": "^19",+ "three": ">=0.159"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@react-three/fiber": {+ "version": "9.6.1",+ "resolved": "https://registry.npmjs.org/@react-three/fiber/-/fiber-9.6.1.tgz",+ "integrity": "sha512-zF0rsKcVYpcJwbFEnv2HkHX9cvOEgsfQo/X8lwmR2dn13S4qEQJXir9fxf5js2LQFoXqxOY7MDkOkYx2uZ4gSg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.17.8",+ "@types/webxr": "*",+ "base64-js": "^1.5.1",+ "buffer": "^6.0.3",+ "its-fine": "^2.0.0",+ "react-use-measure": "^2.1.7",+ "scheduler": "^0.27.0",+ "suspend-react": "^0.1.3",+ "use-sync-external-store": "^1.4.0",+ "zustand": "^5.0.3"+ },+ "peerDependencies": {+ "expo": ">=43.0",+ "expo-asset": ">=8.4",+ "expo-file-system": ">=11.0",+ "expo-gl": ">=11.0",+ "react": ">=19 <19.3",+ "react-dom": ">=19 <19.3",+ "react-native": ">=0.78",+ "three": ">=0.156"+ },+ "peerDependenciesMeta": {+ "expo": {+ "optional": true+ },+ "expo-asset": {+ "optional": true+ },+ "expo-file-system": {+ "optional": true+ },+ "expo-gl": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ },+ "react-native": {+ "optional": true+ }+ }+ },+ "node_modules/@tweenjs/tween.js": {+ "version": "23.1.3",+ "resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",+ "integrity": "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==",+ "license": "MIT"+ },+ "node_modules/@types/draco3d": {+ "version": "1.4.10",+ "resolved": "https://registry.npmjs.org/@types/draco3d/-/draco3d-1.4.10.tgz",+ "integrity": "sha512-AX22jp8Y7wwaBgAixaSvkoG4M/+PlAcm3Qs4OW8yT9DM4xUpWKeFhLueTAyZF39pviAdcDdeJoACapiAceqNcw==",+ "license": "MIT"+ },+ "node_modules/@types/offscreencanvas": {+ "version": "2019.7.3",+ "resolved": "https://registry.npmjs.org/@types/offscreencanvas/-/offscreencanvas-2019.7.3.tgz",+ "integrity": "sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==",+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "19.2.14",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",+ "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "csstype": "^3.2.2"+ }+ },+ "node_modules/@types/react-reconciler": {+ "version": "0.28.9",+ "resolved": "https://registry.npmjs.org/@types/react-reconciler/-/react-reconciler-0.28.9.tgz",+ "integrity": "sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*"+ }+ },+ "node_modules/@types/stats.js": {+ "version": "0.17.4",+ "resolved": "https://registry.npmjs.org/@types/stats.js/-/stats.js-0.17.4.tgz",+ "integrity": "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==",+ "license": "MIT"+ },+ "node_modules/@types/three": {+ "version": "0.184.0",+ "resolved": "https://registry.npmjs.org/@types/three/-/three-0.184.0.tgz",+ "integrity": "sha512-4mY2tZAu0y0B0567w7013BBXSpsP0+Z48NJvmNo4Y/Pf76yCyz6Jw4P3tUVs10WuYNXXZ+wmHyGWpCek3amJxA==",+ "license": "MIT",+ "dependencies": {+ "@dimforge/rapier3d-compat": "~0.12.0",+ "@tweenjs/tween.js": "~23.1.3",+ "@types/stats.js": "*",+ "@types/webxr": ">=0.5.17",+ "fflate": "~0.8.2",+ "meshoptimizer": "~1.1.1"+ }+ },+ "node_modules/@types/webxr": {+ "version": "0.5.24",+ "resolved": "https://registry.npmjs.org/@types/webxr/-/webxr-0.5.24.tgz",+ "integrity": "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg==",+ "license": "MIT"+ },+ "node_modules/@use-gesture/core": {+ "version": "10.3.1",+ "resolved": "https://registry.npmjs.org/@use-gesture/core/-/core-10.3.1.tgz",+ "integrity": "sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw==",+ "license": "MIT"+ },+ "node_modules/@use-gesture/react": {+ "version": "10.3.1",+ "resolved": "https://registry.npmjs.org/@use-gesture/react/-/react-10.3.1.tgz",+ "integrity": "sha512-Yy19y6O2GJq8f7CHf7L0nxL8bf4PZCPaVOCgJrusOeFHY1LvHgYXnmnXg6N5iwAnbgbZCDjo60SiM6IPJi9C5g==",+ "license": "MIT",+ "dependencies": {+ "@use-gesture/core": "10.3.1"+ },+ "peerDependencies": {+ "react": ">= 16.8.0"+ }+ },+ "node_modules/accepts": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",+ "license": "MIT",+ "dependencies": {+ "mime-types": "^3.0.0",+ "negotiator": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/basic-auth": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz",+ "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==",+ "license": "MIT",+ "dependencies": {+ "safe-buffer": "5.1.2"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/bidi-js": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz",+ "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==",+ "license": "MIT",+ "dependencies": {+ "require-from-string": "^2.0.2"+ }+ },+ "node_modules/body-parser": {+ "version": "2.2.2",+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz",+ "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "^3.1.2",+ "content-type": "^1.0.5",+ "debug": "^4.4.3",+ "http-errors": "^2.0.0",+ "iconv-lite": "^0.7.0",+ "on-finished": "^2.4.1",+ "qs": "^6.14.1",+ "raw-body": "^3.0.1",+ "type-is": "^2.0.1"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/buffer": {+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz",+ "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.2.1"+ }+ },+ "node_modules/bytes": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/camera-controls": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/camera-controls/-/camera-controls-3.1.2.tgz",+ "integrity": "sha512-xkxfpG2ECZ6Ww5/9+kf4mfg1VEYAoe9aDSY+IwF0UEs7qEzwy0aVRfs2grImIECs/PoBtWFrh7RXsQkwG922JA==",+ "license": "MIT",+ "engines": {+ "node": ">=22.0.0",+ "npm": ">=10.5.1"+ },+ "peerDependencies": {+ "three": ">=0.126.1"+ }+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/content-disposition": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz",+ "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/content-type": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie": {+ "version": "0.7.2",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie-signature": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",+ "license": "MIT",+ "engines": {+ "node": ">=6.6.0"+ }+ },+ "node_modules/cross-env": {+ "version": "7.0.3",+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",+ "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",+ "license": "MIT",+ "dependencies": {+ "cross-spawn": "^7.0.1"+ },+ "bin": {+ "cross-env": "src/bin/cross-env.js",+ "cross-env-shell": "src/bin/cross-env-shell.js"+ },+ "engines": {+ "node": ">=10.14",+ "npm": ">=6",+ "yarn": ">=1"+ }+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/csstype": {+ "version": "3.2.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "license": "MIT",+ "peer": true+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/depd": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/detect-gpu": {+ "version": "5.0.70",+ "resolved": "https://registry.npmjs.org/detect-gpu/-/detect-gpu-5.0.70.tgz",+ "integrity": "sha512-bqerEP1Ese6nt3rFkwPnGbsUF9a4q+gMmpTVVOEzoCyeCc+y7/RvJnQZJx1JwhgQI5Ntg0Kgat8Uu7XpBqnz1w==",+ "license": "MIT",+ "dependencies": {+ "webgl-constants": "^1.1.1"+ }+ },+ "node_modules/draco3d": {+ "version": "1.5.7",+ "resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.5.7.tgz",+ "integrity": "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==",+ "license": "Apache-2.0"+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/ee-first": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",+ "license": "MIT"+ },+ "node_modules/encodeurl": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-object-atoms": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/escape-html": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",+ "license": "MIT"+ },+ "node_modules/etag": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/express": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",+ "license": "MIT",+ "dependencies": {+ "accepts": "^2.0.0",+ "body-parser": "^2.2.1",+ "content-disposition": "^1.0.0",+ "content-type": "^1.0.5",+ "cookie": "^0.7.1",+ "cookie-signature": "^1.2.1",+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "finalhandler": "^2.1.0",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.0",+ "merge-descriptors": "^2.0.0",+ "mime-types": "^3.0.0",+ "on-finished": "^2.4.1",+ "once": "^1.4.0",+ "parseurl": "^1.3.3",+ "proxy-addr": "^2.0.7",+ "qs": "^6.14.0",+ "range-parser": "^1.2.1",+ "router": "^2.2.0",+ "send": "^1.1.0",+ "serve-static": "^2.2.0",+ "statuses": "^2.0.1",+ "type-is": "^2.0.1",+ "vary": "^1.1.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/fflate": {+ "version": "0.8.2",+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz",+ "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==",+ "license": "MIT"+ },+ "node_modules/finalhandler": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "on-finished": "^2.4.1",+ "parseurl": "^1.3.3",+ "statuses": "^2.0.1"+ },+ "engines": {+ "node": ">= 18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/forwarded": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/fresh": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/glsl-noise": {+ "version": "0.0.0",+ "resolved": "https://registry.npmjs.org/glsl-noise/-/glsl-noise-0.0.0.tgz",+ "integrity": "sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==",+ "license": "MIT"+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/hls.js": {+ "version": "1.6.16",+ "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.6.16.tgz",+ "integrity": "sha512-VSIRpLfRwlAAdGL4wiTucx2ScRipo0ed1FBatWkyt832jC4CReKstga6yIhYVwGu9LOBjuX9wzmRMeQdBJtzEA==",+ "license": "Apache-2.0"+ },+ "node_modules/http-errors": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",+ "license": "MIT",+ "dependencies": {+ "depd": "~2.0.0",+ "inherits": "~2.0.4",+ "setprototypeof": "~1.2.0",+ "statuses": "~2.0.2",+ "toidentifier": "~1.0.1"+ },+ "engines": {+ "node": ">= 0.8"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/iconv-lite": {+ "version": "0.7.2",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",+ "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/immediate": {+ "version": "3.0.6",+ "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",+ "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",+ "license": "MIT"+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"+ },+ "node_modules/ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/is-promise": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",+ "license": "MIT"+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "license": "ISC"+ },+ "node_modules/its-fine": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/its-fine/-/its-fine-2.0.0.tgz",+ "integrity": "sha512-KLViCmWx94zOvpLwSlsx6yOCeMhZYaxrJV87Po5k/FoZzcPSahvK5qJ7fYhS61sZi5ikmh2S3Hz55A2l3U69ng==",+ "license": "MIT",+ "dependencies": {+ "@types/react-reconciler": "^0.28.9"+ },+ "peerDependencies": {+ "react": "^19.0.0"+ }+ },+ "node_modules/lie": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz",+ "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==",+ "license": "MIT",+ "dependencies": {+ "immediate": "~3.0.5"+ }+ },+ "node_modules/maath": {+ "version": "0.10.8",+ "resolved": "https://registry.npmjs.org/maath/-/maath-0.10.8.tgz",+ "integrity": "sha512-tRvbDF0Pgqz+9XUa4jjfgAQ8/aPKmQdWXilFu2tMy4GWj4NOsx99HlULO4IeREfbO3a0sA145DZYyvXPkybm0g==",+ "license": "MIT",+ "peerDependencies": {+ "@types/three": ">=0.134.0",+ "three": ">=0.134.0"+ }+ },+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/media-typer": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/merge-descriptors": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/meshline": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/meshline/-/meshline-3.3.1.tgz",+ "integrity": "sha512-/TQj+JdZkeSUOl5Mk2J7eLcYTLiQm2IDzmlSvYm7ov15anEcDJ92GHqqazxTSreeNgfnYu24kiEvvv0WlbCdFQ==",+ "license": "MIT",+ "peerDependencies": {+ "three": ">=0.137"+ }+ },+ "node_modules/meshoptimizer": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-1.1.1.tgz",+ "integrity": "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g==",+ "license": "MIT"+ },+ "node_modules/mime-db": {+ "version": "1.54.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "^1.54.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/morgan": {+ "version": "1.10.1",+ "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz",+ "integrity": "sha512-223dMRJtI/l25dJKWpgij2cMtywuG/WiUKXdvwfbhGKBhy1puASqXwFzmWZ7+K73vUPoR7SS2Qz2cI/g9MKw0A==",+ "license": "MIT",+ "dependencies": {+ "basic-auth": "~2.0.1",+ "debug": "2.6.9",+ "depd": "~2.0.0",+ "on-finished": "~2.3.0",+ "on-headers": "~1.1.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/morgan/node_modules/debug": {+ "version": "2.6.9",+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",+ "license": "MIT",+ "dependencies": {+ "ms": "2.0.0"+ }+ },+ "node_modules/morgan/node_modules/ms": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",+ "license": "MIT"+ },+ "node_modules/morgan/node_modules/on-finished": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",+ "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==",+ "license": "MIT",+ "dependencies": {+ "ee-first": "1.1.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"+ },+ "node_modules/negotiator": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/object-inspect": {+ "version": "1.13.4",+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/on-finished": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",+ "license": "MIT",+ "dependencies": {+ "ee-first": "1.1.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/on-headers": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz",+ "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/parseurl": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-to-regexp": {+ "version": "8.4.2",+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz",+ "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/potpack": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/potpack/-/potpack-1.0.2.tgz",+ "integrity": "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==",+ "license": "ISC"+ },+ "node_modules/promise-worker-transferable": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/promise-worker-transferable/-/promise-worker-transferable-1.0.4.tgz",+ "integrity": "sha512-bN+0ehEnrXfxV2ZQvU2PetO0n4gqBD4ulq3MI1WOPLgr7/Mg9yRQkX5+0v1vagr74ZTsl7XtzlaYDo2EuCeYJw==",+ "license": "Apache-2.0",+ "dependencies": {+ "is-promise": "^2.1.0",+ "lie": "^3.0.2"+ }+ },+ "node_modules/promise-worker-transferable/node_modules/is-promise": {+ "version": "2.2.2",+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",+ "integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==",+ "license": "MIT"+ },+ "node_modules/proxy-addr": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",+ "license": "MIT",+ "dependencies": {+ "forwarded": "0.2.0",+ "ipaddr.js": "1.9.1"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/qs": {+ "version": "6.15.1",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",+ "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/range-parser": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/raw-body": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "~3.1.2",+ "http-errors": "~2.0.1",+ "iconv-lite": "~0.7.0",+ "unpipe": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/react": {+ "version": "19.2.5",+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.5.tgz",+ "integrity": "sha512-llUJLzz1zTUBrskt2pwZgLq59AemifIftw4aB7JxOqf1HY2FDaGDxgwpAPVzHU1kdWabH7FauP4i1oEeer2WCA==",+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-use-measure": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/react-use-measure/-/react-use-measure-2.1.7.tgz",+ "integrity": "sha512-KrvcAo13I/60HpwGO5jpW7E9DfusKyLPLvuHlUyP5zqnmAPhNc6qTRjUQrdTADl0lpPpDVU2/Gg51UlOGHXbdg==",+ "license": "MIT",+ "peerDependencies": {+ "react": ">=16.13",+ "react-dom": ">=16.13"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/require-from-string": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/router": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "is-promise": "^4.0.0",+ "parseurl": "^1.3.3",+ "path-to-regexp": "^8.0.0"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/safe-buffer": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",+ "license": "MIT"+ },+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "license": "MIT"+ },+ "node_modules/scheduler": {+ "version": "0.27.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",+ "license": "MIT"+ },+ "node_modules/send": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",+ "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.3",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.1",+ "mime-types": "^3.0.2",+ "ms": "^2.1.3",+ "on-finished": "^2.4.1",+ "range-parser": "^1.2.1",+ "statuses": "^2.0.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/serve-static": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz",+ "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==",+ "license": "MIT",+ "dependencies": {+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "parseurl": "^1.3.3",+ "send": "^1.2.0"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/setprototypeof": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",+ "license": "ISC"+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/side-channel": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.3",+ "side-channel-list": "^1.0.0",+ "side-channel-map": "^1.0.1",+ "side-channel-weakmap": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-list": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-map": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-weakmap": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3",+ "side-channel-map": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/stats-gl": {+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/stats-gl/-/stats-gl-2.4.2.tgz",+ "integrity": "sha512-g5O9B0hm9CvnM36+v7SFl39T7hmAlv541tU81ME8YeSb3i1CIP5/QdDeSB3A0la0bKNHpxpwxOVRo2wFTYEosQ==",+ "license": "MIT",+ "dependencies": {+ "@types/three": "*",+ "three": "^0.170.0"+ },+ "peerDependencies": {+ "@types/three": "*",+ "three": "*"+ }+ },+ "node_modules/stats-gl/node_modules/three": {+ "version": "0.170.0",+ "resolved": "https://registry.npmjs.org/three/-/three-0.170.0.tgz",+ "integrity": "sha512-FQK+LEpYc0fBD+J8g6oSEyyNzjp+Q7Ks1C568WWaoMRLW+TkNNWmenWeGgJjV105Gd+p/2ql1ZcjYvNiPZBhuQ==",+ "license": "MIT"+ },+ "node_modules/stats.js": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/stats.js/-/stats.js-0.17.0.tgz",+ "integrity": "sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==",+ "license": "MIT"+ },+ "node_modules/statuses": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/suspend-react": {+ "version": "0.1.3",+ "resolved": "https://registry.npmjs.org/suspend-react/-/suspend-react-0.1.3.tgz",+ "integrity": "sha512-aqldKgX9aZqpoDp3e8/BZ8Dm7x1pJl+qI3ZKxDN0i/IQTWUwBx/ManmlVJ3wowqbno6c2bmiIfs+Um6LbsjJyQ==",+ "license": "MIT",+ "peerDependencies": {+ "react": ">=17.0"+ }+ },+ "node_modules/tailwind-merge": {+ "version": "3.5.0",+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.5.0.tgz",+ "integrity": "sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/dcastil"+ }+ },+ "node_modules/three": {+ "version": "0.184.0",+ "resolved": "https://registry.npmjs.org/three/-/three-0.184.0.tgz",+ "integrity": "sha512-wtTRjG92pM5eUg/KuUnHsqSAlPM296brTOcLgMRqEeylYTh/CdtvKUvCyyCQTzFuStieWxvZb8mVTMvdPyUpxg==",+ "license": "MIT"+ },+ "node_modules/three-mesh-bvh": {+ "version": "0.8.3",+ "resolved": "https://registry.npmjs.org/three-mesh-bvh/-/three-mesh-bvh-0.8.3.tgz",+ "integrity": "sha512-4G5lBaF+g2auKX3P0yqx+MJC6oVt6sB5k+CchS6Ob0qvH0YIhuUk1eYr7ktsIpY+albCqE80/FVQGV190PmiAg==",+ "license": "MIT",+ "peerDependencies": {+ "three": ">= 0.159.0"+ }+ },+ "node_modules/three-stdlib": {+ "version": "2.36.1",+ "resolved": "https://registry.npmjs.org/three-stdlib/-/three-stdlib-2.36.1.tgz",+ "integrity": "sha512-XyGQrFmNQ5O/IoKm556ftwKsBg11TIb301MB5dWNicziQBEs2g3gtOYIf7pFiLa0zI2gUwhtCjv9fmjnxKZ1Cg==",+ "license": "MIT",+ "dependencies": {+ "@types/draco3d": "^1.4.0",+ "@types/offscreencanvas": "^2019.6.4",+ "@types/webxr": "^0.5.2",+ "draco3d": "^1.4.1",+ "fflate": "^0.6.9",+ "potpack": "^1.0.1"+ },+ "peerDependencies": {+ "three": ">=0.128.0"+ }+ },+ "node_modules/three-stdlib/node_modules/fflate": {+ "version": "0.6.10",+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.6.10.tgz",+ "integrity": "sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==",+ "license": "MIT"+ },+ "node_modules/toidentifier": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.6"+ }+ },+ "node_modules/troika-three-text": {+ "version": "0.52.4",+ "resolved": "https://registry.npmjs.org/troika-three-text/-/troika-three-text-0.52.4.tgz",+ "integrity": "sha512-V50EwcYGruV5rUZ9F4aNsrytGdKcXKALjEtQXIOBfhVoZU9VAqZNIoGQ3TMiooVqFAbR1w15T+f+8gkzoFzawg==",+ "license": "MIT",+ "dependencies": {+ "bidi-js": "^1.0.2",+ "troika-three-utils": "^0.52.4",+ "troika-worker-utils": "^0.52.0",+ "webgl-sdf-generator": "1.1.1"+ },+ "peerDependencies": {+ "three": ">=0.125.0"+ }+ },+ "node_modules/troika-three-utils": {+ "version": "0.52.4",+ "resolved": "https://registry.npmjs.org/troika-three-utils/-/troika-three-utils-0.52.4.tgz",+ "integrity": "sha512-NORAStSVa/BDiG52Mfudk4j1FG4jC4ILutB3foPnfGbOeIs9+G5vZLa0pnmnaftZUGm4UwSoqEpWdqvC7zms3A==",+ "license": "MIT",+ "peerDependencies": {+ "three": ">=0.125.0"+ }+ },+ "node_modules/troika-worker-utils": {+ "version": "0.52.0",+ "resolved": "https://registry.npmjs.org/troika-worker-utils/-/troika-worker-utils-0.52.0.tgz",+ "integrity": "sha512-W1CpvTHykaPH5brv5VHLfQo9D1OYuo0cSBEUQFFT/nBUzM8iD6Lq2/tgG/f1OelbAS1WtaTPQzE5uM49egnngw==",+ "license": "MIT"+ },+ "node_modules/tunnel-rat": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/tunnel-rat/-/tunnel-rat-0.1.2.tgz",+ "integrity": "sha512-lR5VHmkPhzdhrM092lI2nACsLO4QubF0/yoOhzX7c+wIpbN1GjHNzCc91QlpxBi+cnx8vVJ+Ur6vL5cEoQPFpQ==",+ "license": "MIT",+ "dependencies": {+ "zustand": "^4.3.2"+ }+ },+ "node_modules/tunnel-rat/node_modules/zustand": {+ "version": "4.5.7",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",+ "license": "MIT",+ "dependencies": {+ "use-sync-external-store": "^1.2.2"+ },+ "engines": {+ "node": ">=12.7.0"+ },+ "peerDependencies": {+ "@types/react": ">=16.8",+ "immer": ">=9.0.6",+ "react": ">=16.8"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ }+ }+ },+ "node_modules/type-is": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",+ "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",+ "license": "MIT",+ "dependencies": {+ "content-type": "^1.0.5",+ "media-typer": "^1.1.0",+ "mime-types": "^3.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/unpipe": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/use-sync-external-store": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.6.0.tgz",+ "integrity": "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/utility-types": {+ "version": "3.11.0",+ "resolved": "https://registry.npmjs.org/utility-types/-/utility-types-3.11.0.tgz",+ "integrity": "sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==",+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/vary": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/webgl-constants": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/webgl-constants/-/webgl-constants-1.1.1.tgz",+ "integrity": "sha512-LkBXKjU5r9vAW7Gcu3T5u+5cvSvh5WwINdr0C+9jpzVB41cjQAP5ePArDtk/WHYdVj0GefCgM73BA7FlIiNtdg=="+ },+ "node_modules/webgl-sdf-generator": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/webgl-sdf-generator/-/webgl-sdf-generator-1.1.1.tgz",+ "integrity": "sha512-9Z0JcMTFxeE+b2x1LJTdnaT8rT8aEp7MVxkNwoycNmJWwPdzoXzMh0BjJSh/AEFP+KPYZUli814h8bJZFIZ2jA==",+ "license": "MIT"+ },+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC"+ },+ "node_modules/zustand": {+ "version": "5.0.12",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.12.tgz",+ "integrity": "sha512-i77ae3aZq4dhMlRhJVCYgMLKuSiZAaUPAct2AksxQ+gOtimhGMdXljRT21P5BNpeT4kXlLIckvkPM029OljD7g==",+ "license": "MIT",+ "engines": {+ "node": ">=12.20.0"+ },+ "peerDependencies": {+ "@types/react": ">=18.0.0",+ "immer": ">=9.0.6",+ "react": ">=18.0.0",+ "use-sync-external-store": ">=1.2.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "use-sync-external-store": {+ "optional": true+ }+ }+ }+ }+}diff --git a/server/package.json b/server/package.jsonindex 24a33544..d04a2ecf 100644--- a/server/package.json+++ b/server/package.json@@ -7,7 +7,12 @@"dev": "python -m uvicorn main:app --host 127.0.0.1 --port ${PORT:-3010} --reload --reload-dir . --reload-exclude \"*.pyc\" --reload-exclude \"__pycache__\" --log-level warning"},"dependencies": {+ "@react-three/drei": "^10.7.7",+ "@react-three/fiber": "^9.6.1",+ "clsx": "^2.1.1","express": "^5.2.1",- "morgan": "^1.10.1"+ "morgan": "^1.10.1",+ "tailwind-merge": "^3.5.0",+ "three": "^0.184.0"}}diff --git a/server/routers/websocket.py b/server/routers/websocket.pyindex 925588b1..c90cbb15 100644--- a/server/routers/websocket.py+++ b/server/routers/websocket.py@@ -2264,33 +2264,57 @@ async def handle_clear_chat_messages(data: Dict[str, Any], websocket: WebSocket)@ws_handler()async def handle_get_console_logs(data: Dict[str, Any], websocket: WebSocket) -> Dict[str, Any]:- """Get console logs from database."""+ """Get console logs from database, optionally scoped to a workflow."""limit = data.get("limit", 100)+ workflow_id = data.get("workflow_id")database = container.database()- logs = await database.get_console_logs(limit)+ logs = await database.get_console_logs(limit, workflow_id=workflow_id)return {"success": True,- "logs": logs+ "logs": logs,+ "workflow_id": workflow_id,}@ws_handler()async def handle_clear_console_logs(data: Dict[str, Any], websocket: WebSocket) -> Dict[str, Any]:- """Clear all console logs from database and memory."""+ """Clear console logs from database and in-memory broadcaster cache.++ With ``workflow_id`` set, only that workflow's history is cleared+ (DB rows + in-memory entries). Without it, the legacy "clear all"+ behaviour is preserved. Broadcasts ``console_logs_cleared`` carrying+ the workflow_id so other tabs viewing the same workflow drop their+ local list, while tabs on a different workflow are unaffected+ (the frontend filter already keys on this).+ """+ workflow_id = data.get("workflow_id")database = container.database()- count = await database.clear_console_logs()+ count = await database.clear_console_logs(workflow_id=workflow_id)- # Also clear in-memory logs+ # Also clear / filter in-memory logsbroadcaster = get_status_broadcaster()if "console_logs" in broadcaster._status:- broadcaster._status["console_logs"] = []+ if workflow_id:+ broadcaster._status["console_logs"] = [+ log for log in broadcaster._status["console_logs"]+ if log.get("workflow_id") != workflow_id+ ]+ else:+ broadcaster._status["console_logs"] = []++ # Tell connected clients to drop their local copy for this scope.+ await broadcaster.broadcast({+ "type": "console_logs_cleared",+ "workflow_id": workflow_id,+ })return {"success": True,"message": f"Cleared {count} console logs",- "cleared_count": count+ "cleared_count": count,+ "workflow_id": workflow_id,}@@ -2708,27 +2732,29 @@ async def handle_delete_user_skill(data: Dict[str, Any], websocket: WebSocket) -@ws_handler()async def handle_clear_memory(data: Dict[str, Any], websocket: WebSocket) -> Dict[str, Any]:- """Clear memory content and optionally the long-term vector store."""- from services.ai import _memory_vector_stores+ """Clear conversation memory and sibling agent session state.++ Business logic lives in :func:`services.memory.clear_agent_session_state`+ — this handler only decodes the request and shapes the response.+ """+ from services.memory import clear_agent_session_statesession_id = data.get("session_id", "default")+ workflow_id = data.get("workflow_id")clear_long_term = data.get("clear_long_term", False)- default_content = "# Conversation History\n\n*No messages yet.*\n"- cleared_vector_store = False-- if clear_long_term and session_id in _memory_vector_stores:- del _memory_vector_stores[session_id]- cleared_vector_store = True- logger.info(f"[Memory] Cleared vector store for session '{session_id}'")-- logger.info(f"[Memory] Cleared memory content for session '{session_id}', vector_store={cleared_vector_store}")+ cleared = clear_agent_session_state(+ session_id=session_id,+ workflow_id=workflow_id,+ clear_long_term=clear_long_term,+ )return {"success": True,- "default_content": default_content,- "cleared_vector_store": cleared_vector_store,- "session_id": session_id+ "default_content": "# Conversation History\n\n*No messages yet.*\n",+ "cleared_vector_store": cleared["cleared_vector_store"],+ "cleared_todo_keys": cleared["cleared_todo_keys"],+ "session_id": session_id,}diff --git a/server/services/agents/adapters.py b/server/services/agents/adapters.pyindex 766bf777..f17a23e2 100644--- a/server/services/agents/adapters.py+++ b/server/services/agents/adapters.py@@ -67,11 +67,21 @@ class ToolAdapter:@staticmethoddef _wrap(tool: StructuredTool, config: Dict, workflow_id: str, broadcaster) -> StructuredTool:- """Replace placeholder func with a real async executor."""+ """Replace placeholder func with a real async executor.++ Tool-node status lifecycle (executing/success/error) is owned by+ ``handlers.tools.execute_tool`` — the same single source of+ truth that ``services.ai`` uses. We only emit DeepAgent-side+ timing logs here.+ """tool_name = tool.name- tool_node_id = config.get('node_id')tool_node_type = config.get('node_type', '')+ # ``broadcaster`` is intentionally unused now — kept in the+ # signature for call-site compatibility until DeepAgentService+ # stops passing it.+ del broadcaster # noqa: F841+async def _execute(**kwargs) -> Any:import timefrom services.handlers.tools import execute_tool@@ -80,13 +90,6 @@ class ToolAdapter:tool_name, tool_node_type, {k: str(v)[:200] for k, v in kwargs.items()})t0 = time.time()- if tool_node_id and broadcaster:- await broadcaster.update_node_status(- tool_node_id, "executing",- {"message": f"Executing {tool_name}"},- workflow_id=workflow_id,- )-cfg = {**config, 'workflow_id': workflow_id}try:result = await execute_tool(tool_name, kwargs, cfg)@@ -97,22 +100,10 @@ class ToolAdapter:success = Truelogger.info("[DeepAgent] Tool done: %s (%.2fs) success=%s",tool_name, elapsed, success)- if tool_node_id and broadcaster:- await broadcaster.update_node_status(- tool_node_id, "success",- {"message": f"{tool_name} completed ({elapsed:.1f}s)"},- workflow_id=workflow_id,- )return resultexcept Exception as e:elapsed = time.time() - t0logger.error("[DeepAgent] Tool failed: %s (%.2fs) error=%s", tool_name, elapsed, e)- if tool_node_id and broadcaster:- await broadcaster.update_node_status(- tool_node_id, "error",- {"message": str(e)},- workflow_id=workflow_id,- )return {"error": str(e)}return StructuredTool.from_function(diff --git a/server/services/ai.py b/server/services/ai.pyindex c1cc486f..5a3e6a24 100644--- a/server/services/ai.py+++ b/server/services/ai.py@@ -1707,10 +1707,17 @@ class AIService:logger.debug(f"[LangGraph] Creating {provider} model: {model}")chat_model = self.create_model(provider, api_key, model, temperature, max_tokens, thinking_config, proxy_url)- # Build initial messages for state+ # Build initial messages for state. The SystemMessage is+ # PREPENDED after tool building (below), because the+ # delegation-guidance block at the end of the tool-building+ # section grows ``system_message`` to include the+ # ``Available agents: delegate_to_*`` list and the+ # ``task``/``context`` schema description. Appending the+ # SystemMessage here would lock in the pre-update string+ # and the LLM would never see the delegation contract,+ # which is exactly what previously broke ``aiAgent``-driven+ # delegation through the ``input-tools`` handle.initial_messages: List[BaseMessage] = []- if system_message:- initial_messages.append(SystemMessage(content=system_message))# Add memory history from connected simpleMemory node (markdown-based)session_id = None@@ -1801,7 +1808,17 @@ class AIService:f"Available agents: {', '.join(delegate_names)}")- # Create tool executor callback+ # Now that ``system_message`` is final (skill prompt + delegation+ # guidance both folded in), prepend it as the first message.+ # See the comment at the original ``initial_messages`` declaration+ # for why this can't happen earlier.+ if system_message:+ initial_messages.insert(0, SystemMessage(content=system_message))++ # Create tool executor callback. Tool-node status lifecycle+ # (executing/success/error) is owned by ``handlers.tools.execute_tool``+ # — this closure only emits the *parent agent's* phase+ # broadcasts (``executing_tool`` / ``tool_completed``).async def tool_executor(tool_name: str, tool_args: Dict) -> Any:"""Execute a tool by name."""from services.handlers.tools import execute_tool@@ -1809,35 +1826,22 @@ class AIService:config = tool_configs.get(tool_name, {})tool_node_id = config.get('node_id')- # Log tool execution details for debugging glow animationlogger.debug(f"[LangGraph] Executing tool: {tool_name} (args={tool_args})")- logger.debug(f"[LangGraph] Available tool configs: {list(tool_configs.keys())}")- logger.debug(f"[LangGraph] Tool node_id={tool_node_id}, workflow_id={workflow_id}, broadcaster={'yes' if broadcaster else 'no'}")+ logger.debug(f"[LangGraph] Tool node_id={tool_node_id}, workflow_id={workflow_id}")- # Broadcast executing status to the AI Agent node+ # Parent-agent phase broadcast (does not touch tool node).await broadcast_status("executing_tool", {"message": f"Executing tool: {tool_name}","tool_name": tool_name,"tool_args": tool_args})- # Also broadcast executing status directly to the tool node so it glows- if tool_node_id and broadcaster:- await broadcaster.update_node_status(- tool_node_id,- "executing",- {"message": f"Executing {tool_name}"},- workflow_id=workflow_id- )-- # Include workflow_id in config so tool handlers can broadcast with proper scoping+ # Inject services + graph context so execute_tool can scope its+ # broadcasts and nested agents can execute with their own tools.config['workflow_id'] = workflow_id-- # For nested agent delegation: inject services and graph context- # These allow child agents to execute with their own toolsconfig['ai_service'] = selfconfig['database'] = self.database- config['parent_node_id'] = node_id # For delegation result tracking+ config['parent_node_id'] = node_idif context:config['nodes'] = context.get('nodes', [])config['edges'] = context.get('edges', [])@@ -1846,37 +1850,18 @@ class AIService:try:result = await execute_tool(tool_name, tool_args, config)- # Broadcast completion to AI Agent nodeawait broadcast_status("tool_completed", {"message": f"Tool completed: {tool_name}","tool_name": tool_name,"result_preview": str(result)[:100]})- # Broadcast success status to the tool node- if tool_node_id and broadcaster:- await broadcaster.update_node_status(- tool_node_id,- "success",- {"message": f"{tool_name} completed", "result": result},- workflow_id=workflow_id- )-return resultexcept Exception as e:error_msg = str(e)logger.error(f"[LangGraph] Tool execution failed: {tool_name}", error=error_msg)- # Broadcast error status to the tool node so UI shows failure- if tool_node_id and broadcaster:- await broadcaster.update_node_status(- tool_node_id,- "error",- {"message": f"{tool_name} failed", "error": error_msg},- workflow_id=workflow_id- )-# Re-raise to let LangGraph handle the errorraise@@ -2302,68 +2287,36 @@ class AIService:# Use LangGraph for tool execution (like AI Agent)logger.debug(f"[ChatAgent] Using LangGraph with {len(all_tools)} tools")- # Create tool executor callback - same pattern as AI Agent- # Uses handlers/tools.py execute_tool() for actual execution+ # Create tool executor callback. Tool-node status lifecycle+ # is owned by ``handlers.tools.execute_tool`` (single source+ # of truth, shared with execute_agent's tool_executor).async def chat_tool_executor(tool_name: str, tool_args: Dict) -> Any:"""Execute a tool by name using handlers/tools.py (same as AI Agent)."""from services.handlers.tools import execute_toollogger.debug(f"[ChatAgent] Executing tool: {tool_name}, args={tool_args}")- # Get tool node config (contains node_id, node_type, parameters)config = tool_node_configs.get(tool_name, {})tool_node_id = config.get('node_id')logger.debug(f"[ChatAgent] Tool config: node_id={tool_node_id}, node_type={config.get('node_type')}, workflow_id={workflow_id}")- # Broadcast executing status to tool node for glow effect- if tool_node_id and broadcaster:- logger.debug(f"[ChatAgent] Broadcasting 'executing' status to node {tool_node_id}")- await broadcaster.update_node_status(- tool_node_id,- "executing",- {"message": f"Executing {tool_name}"},- workflow_id=workflow_id- )-- # Include workflow_id in config so tool handlers can broadcast with proper scoping- # This is needed for Android toolkit to broadcast status to connected service nodes+ # Inject services + graph context so execute_tool can scope its+ # broadcasts and nested agents can execute with their own tools.config['workflow_id'] = workflow_id-- # For nested agent delegation: inject services and graph context- # These allow child agents to execute with their own toolsconfig['ai_service'] = selfconfig['database'] = self.database- config['parent_node_id'] = node_id # For delegation result tracking+ config['parent_node_id'] = node_idif context:config['nodes'] = context.get('nodes', [])config['edges'] = context.get('edges', [])config['workspace_dir'] = context.get('workspace_dir', '')try:- # Execute via handlers/tools.py - same pattern as AI Agentresult = await execute_tool(tool_name, tool_args, config)logger.debug(f"[ChatAgent] Tool executed successfully: {tool_name}")-- # Broadcast success to tool node- if tool_node_id and broadcaster:- await broadcaster.update_node_status(- tool_node_id,- "success",- {"message": f"{tool_name} completed", "result": result},- workflow_id=workflow_id- )return result-except Exception as e:logger.error(f"[ChatAgent] Tool execution failed: {tool_name}", error=str(e))- # Broadcast error to tool node- if tool_node_id and broadcaster:- await broadcaster.update_node_status(- tool_node_id,- "error",- {"message": f"{tool_name} failed", "error": str(e)},- workflow_id=workflow_id- )return {"error": str(e)}# Build LangGraph agent with all toolsdiff --git a/server/services/handlers/tools.py b/server/services/handlers/tools.pyindex f63322d8..aad0e7b5 100644--- a/server/services/handlers/tools.py+++ b/server/services/handlers/tools.py@@ -54,21 +54,93 @@ _delegation_results: Dict[str, Dict[str, Any]] = {}# Track active delegations to prevent duplicate calls: (parent_node_id, child_node_id, task_hash) -> task_id_active_delegations: Dict[Tuple[str, str, str], str] = {}+# Ref-counted set of child node ids with an in-flight fire-and-forget+# delegation. Queried by ``StatusBroadcaster._clear_stuck_node_statuses``+# so the post-run cleanup that protects against glow-leaks on crash paths+# does NOT wipe the glow of a child agent whose background task is still+# running after its parent's workflow run completed. A node can host+# multiple concurrent delegations (rare but possible), hence the refcount+# instead of a plain set.+_active_delegated_nodes: Dict[str, int] = {}+++def is_node_in_active_delegation(node_id: str) -> bool:+ """Return True iff ``node_id`` has at least one in-flight+ fire-and-forget delegation. See ``_active_delegated_nodes`` docstring."""+ return _active_delegated_nodes.get(node_id, 0) > 0+async def execute_tool(tool_name: str, tool_args: Dict[str, Any],config: Dict[str, Any]) -> Dict[str, Any]:- """Execute a tool by name using the appropriate handler.+ """Execute a tool by name and own the tool node's status lifecycle.- This is the main dispatch function that routes tool calls to specific handlers- based on the node_type in the config.+ This is the single source of truth for the tool node's+ ``executing``/``success``/``error`` broadcasts. Caller-side+ ``tool_executor`` closures in :mod:`services.ai` only emit+ *parent-agent* phase broadcasts (``executing_tool``/``tool_completed``)+ and must not duplicate the tool-node lifecycle here.++ Handlers that own their own asynchronous lifecycle opt out of the+ terminal ``success`` broadcast by returning a dict with+ ``status in {"delegated", "ALREADY_DELEGATED"}`` — the canonical+ contract for fire-and-forget agent delegation+ (:func:`_execute_delegated_agent` then drives the child's+ executing/success/error timeline from inside its background task).Args:- tool_name: Name of the tool (for logging)- tool_args: Arguments provided by the AI model- config: Tool configuration containing node_type, node_id, parameters+ tool_name: Name of the tool (for logging + broadcast messages).+ tool_args: Arguments provided by the AI model.+ config: Tool configuration containing ``node_type``, ``node_id``,+ ``workflow_id``, ``parameters``, and any injected services.Returns:- Tool execution result dict+ Tool execution result dict (re-raises on dispatch failure after+ emitting the ``error`` broadcast).+ """+ from services.status_broadcaster import get_status_broadcaster++ broadcaster = get_status_broadcaster()+ node_id = config.get('node_id')+ workflow_id = config.get('workflow_id')++ if node_id and broadcaster:+ await broadcaster.update_node_status(+ node_id, "executing",+ {"message": f"Executing {tool_name}"},+ workflow_id=workflow_id,+ )++ try:+ result = await _dispatch_tool(tool_name, tool_args, config)+ except Exception as e:+ logger.error("[Tool] Execution failed: %s", tool_name, exc_info=True)+ if node_id and broadcaster:+ await broadcaster.update_node_status(+ node_id, "error",+ {"message": f"{tool_name} failed", "error": str(e)},+ workflow_id=workflow_id,+ )+ raise++ handler_owns_lifecycle = (+ isinstance(result, dict)+ and result.get("status") in ("delegated", "ALREADY_DELEGATED")+ )+ if node_id and broadcaster and not handler_owns_lifecycle:+ await broadcaster.update_node_status(+ node_id, "success",+ {"message": f"{tool_name} completed", "result": result},+ workflow_id=workflow_id,+ )+ return result+++async def _dispatch_tool(tool_name: str, tool_args: Dict[str, Any],+ config: Dict[str, Any]) -> Dict[str, Any]:+ """Route a tool call to the right handler based on ``node_type``.++ Pure dispatch — no broadcasting. Lifecycle is owned by+ :func:`execute_tool`."""node_type = config.get('node_type', '')node_params = config.get('parameters', {})@@ -313,6 +385,14 @@ async def _execute_delegated_agent(args: Dict[str, Any],# Register this delegation to prevent duplicates_active_delegations[delegation_key] = task_id+ # Mark this child node as having a live delegation so the workflow's+ # post-run cleanup (StatusBroadcaster._clear_stuck_node_statuses) does+ # not reset its glow to idle while the background task is still+ # working — the parent's workflow run completes the moment the+ # delegate_to_<x> tool returns, but the child runs ~tens of seconds+ # longer in its own asyncio task.+ _active_delegated_nodes[node_id] = _active_delegated_nodes.get(node_id, 0) + 1+# Get child agent parameters from databasechild_params = await database.get_node_parameters(node_id) or {}@@ -559,6 +639,14 @@ async def _execute_delegated_agent(args: Dict[str, Any],_delegated_tasks.pop(task_id, None)# Cleanup delegation tracking (allows re-delegation after completion)_active_delegations.pop(delegation_key, None)+ # Decrement active-delegation refcount so the broadcaster's+ # post-run cleanup can sweep this node's glow on the next+ # workflow run if it ever does get stuck.+ current = _active_delegated_nodes.get(node_id, 0)+ if current <= 1:+ _active_delegated_nodes.pop(node_id, None)+ else:+ _active_delegated_nodes[node_id] = current - 1# Spawn as background task (fire-and-forget)task = asyncio.create_task(run_child_agent())diff --git a/server/services/memory.py b/server/services/memory.pyindex d53877fd..f9ca3b2f 100644--- a/server/services/memory.py+++ b/server/services/memory.py@@ -91,3 +91,69 @@ def get_memory_vector_store(session_id: str):logger.warning(f"[Memory] Vector store not available: {e}")return Nonereturn _memory_vector_stores[session_id]+++def clear_agent_session_state(+ session_id: str,+ workflow_id: str = None,+ clear_long_term: bool = False,+) -> Dict[str, Any]:+ """Clear every store keyed by an agent's conversational scope.++ "Memory" from the user's perspective is not just the markdown+ transcript — it's every piece of state an agent reuses across+ iterations of a conversation. ``simpleMemory.memory_content`` is the+ visible part; the long-term vector store and ``TodoService``+ plan-work-update lists are the invisible parts that quietly bloat+ subsequent runs (notably ``task_agent``, whose default skill bundle+ instructs the LLM to read accumulated todos every run).++ ``TodoService`` is keyed by ``ctx.workflow_id or ctx.node_id or+ "default"`` (see ``server/nodes/tool/write_todos.py``). We clear all+ three candidate keys to match whichever fallback the agent actually+ used at write time.++ Args:+ session_id: ``simpleMemory`` node's ``session_id`` parameter.+ workflow_id: Active workflow id (passed by the frontend so we+ can clear ``TodoService`` entries written under it).+ clear_long_term: When ``True``, drop the per-session vector+ store too.++ Returns:+ Dict with ``cleared_vector_store`` (bool) and ``cleared_todo_keys``+ (list[str]) for caller-visible diagnostics. Markdown reset is+ signalled by returning the default content, owned by the WS+ handler so the wire shape stays in one place.+ """+ # The live vector-store cache lives in ``services.ai`` (the dict in+ # this module is dormant — nothing imports it). Lazy import keeps+ # ``services.ai``'s heavy LangChain deps off the hot path.+ from services.ai import _memory_vector_stores as _live_vector_stores+ from services.todo_service import get_todo_service++ cleared_vector_store = False+ if clear_long_term and session_id in _live_vector_stores:+ del _live_vector_stores[session_id]+ cleared_vector_store = True+ logger.info(f"[Memory] Cleared vector store for session '{session_id}'")++ todo_service = get_todo_service()+ cleared_todo_keys: List[str] = []+ seen = set()+ for key in (workflow_id, session_id, "default"):+ if key and key not in seen:+ seen.add(key)+ todo_service.clear(key)+ cleared_todo_keys.append(key)++ logger.info(+ "[Memory] Cleared agent session state session=%s workflow_id=%s "+ "vector_store=%s todo_keys=%s",+ session_id, workflow_id, cleared_vector_store, cleared_todo_keys,+ )++ return {+ "cleared_vector_store": cleared_vector_store,+ "cleared_todo_keys": cleared_todo_keys,+ }diff --git a/server/services/status_broadcaster.py b/server/services/status_broadcaster.pyindex 1db73a00..48a02620 100644--- a/server/services/status_broadcaster.py+++ b/server/services/status_broadcaster.py@@ -735,12 +735,26 @@ class StatusBroadcaster:Set `include_waiting=True` for explicit user cancels (toolbarStop, cancel_execution) where the user wants every indicator togo quiet.++ Also skips children with an in-flight fire-and-forget delegation:+ the parent's workflow run completes the instant the+ ``delegate_to_<x>`` tool returns, but the child agent's+ background ``asyncio.Task`` keeps running for tens of seconds.+ Without this guard the cleanup wipes the child's glow even+ though it's legitimately still working. ``handlers.tools``+ owns the registry; lazy-imported to avoid a circular import."""+ # Lazy import — handlers.tools imports this module via+ # ``execute_tool`` -> status_broadcaster, so a top-level import+ # here would form a cycle.+ from services.handlers.tools import is_node_in_active_delegation+statuses = ("executing", "waiting") if include_waiting else ("executing",)stuck = [(nid, info) for nid, info in self._status["nodes"].items()if info.get("workflow_id") == workflow_idand info.get("status") in statuses+ and not is_node_in_active_delegation(nid)]for node_id, _info in stuck:try: