Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
fix(usage): mount the indicator outside <ReactFlow> so the open popover rises above the sessions sidebar (#20)
eneskirca874865106ff4
diff --git a/package-lock.json b/package-lock.jsonindex 6e40e0b39..bd6e29bec 100644--- a/package-lock.json+++ b/package-lock.json@@ -10,7 +10,6 @@"hasInstallScript": true,"license": "BUSL-1.1","dependencies": {- "@anthropic-ai/claude-agent-sdk": "^0.3.201","@xterm/addon-web-links": "^0.11.0","dompurify": "^3.4.11","electron-updater": "^6.8.9",@@ -50,156 +49,6 @@"vitest": "^4.1.10"}},- "node_modules/@anthropic-ai/claude-agent-sdk": {- "version": "0.3.201",- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.201.tgz",- "integrity": "sha512-InT1XLmf2QpldWdtznKDWEoGJT4p+sXh24yxbeBQ++lMJCzMrI0W27MEmmmDWx0otpa+ubdHCF5YQ6oiNt7cmg==",- "license": "SEE LICENSE IN README.md",- "engines": {- "node": ">=18.0.0"- },- "optionalDependencies": {- "@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.201",- "@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.201",- "@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.201",- "@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.201",- "@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.201",- "@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.201",- "@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.201",- "@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.201"- },- "peerDependencies": {- "@anthropic-ai/sdk": ">=0.93.0",- "@modelcontextprotocol/sdk": "^1.29.0",- "zod": "^4.0.0"- }- },- "node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {- "version": "0.3.201",- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.201.tgz",- "integrity": "sha512-8Mcb3BDyKUGfJWFFTWwt+at37lbDH3ZwVtUNPWGG1toZ75RDCJry5U4kXRvQ2xokvJQlA0E+eNp6keWe5ZH22Q==",- "cpu": [- "arm64"- ],- "license": "SEE LICENSE IN LICENSE.md",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {- "version": "0.3.201",- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.201.tgz",- "integrity": "sha512-TFR2bu0+ml3RHoMrtsgD0qDK5Oknw8kYGBV7qpQHn+IWmE96gnHhogG1LpJwpHtni08XkJIjfWk1DdlsUYtRkQ==",- "cpu": [- "x64"- ],- "license": "SEE LICENSE IN LICENSE.md",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {- "version": "0.3.201",- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.201.tgz",- "integrity": "sha512-mShTo3MwF0gkN4dDw78wWJiB6aBDVRkl81cnApvoBofpdyUBYgm9Gw16CCjDTgelMKeBFqN6ErJpwjI3wbP00A==",- "cpu": [- "arm64"- ],- "license": "SEE LICENSE IN LICENSE.md",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {- "version": "0.3.201",- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.201.tgz",- "integrity": "sha512-EiqbpfJIpChfkn+8Uj061Qjyw0eaRcOXtdrvVuHANyj8ZErVOr8HlH6op9PSeIUa9TX0m2+tNgKPQvOGseQckA==",- "cpu": [- "arm64"- ],- "license": "SEE LICENSE IN LICENSE.md",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {- "version": "0.3.201",- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.201.tgz",- "integrity": "sha512-jrJBrRWrSuoFKIgjyqxHqmfd6Pb3Bs5Bvakg0knXCTC4fbUXGnC9Q6u7gdDwgXohUNP6/DD+s8U7bivvvVv0dg==",- "cpu": [- "x64"- ],- "license": "SEE LICENSE IN LICENSE.md",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {- "version": "0.3.201",- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.201.tgz",- "integrity": "sha512-IbxnzO5UCbqbm2TnzCHkSyJorAFw2isdKdIsFCTxJJjSs3ZC+v3LC1QSUiVCx0qi+CV6w3MKx6mLI11mrvhbbQ==",- "cpu": [- "x64"- ],- "license": "SEE LICENSE IN LICENSE.md",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {- "version": "0.3.201",- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.201.tgz",- "integrity": "sha512-UsoytRJ/037uHpb3ATrIoe+AgwTf+PwKuFLGjddHAV/11wERJs0hlrnSmcnp43kf0PFxoSNinngme96YYASmQg==",- "cpu": [- "arm64"- ],- "license": "SEE LICENSE IN LICENSE.md",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {- "version": "0.3.201",- "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.201.tgz",- "integrity": "sha512-PhalN/0cWcqDfbx7iwoLNR2gurjTiqhBk1G6K+NRScxEcQjWuu5xKXCcdbX8ePVpT+nbEMmFEFpn2y+8V8hIdA==",- "cpu": [- "x64"- ],- "license": "SEE LICENSE IN LICENSE.md",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@anthropic-ai/sdk": {- "version": "0.110.0",- "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.110.0.tgz",- "integrity": "sha512-hOP4bNYXDFHDxxiEgzlILXrxZIYCDnhe8sry0RDRKD/QnsEpvZcQpablCdm9X/WuD/YgOiSIkkqsL1mLLlTqJw==",- "license": "MIT",- "peer": true,- "dependencies": {- "json-schema-to-ts": "^3.1.1",- "standardwebhooks": "^1.0.0"- },- "bin": {- "anthropic-ai-sdk": "bin/cli"- },- "peerDependencies": {- "zod": "^3.25.0 || ^4.0.0"- },- "peerDependenciesMeta": {- "zod": {- "optional": true- }- }- },"node_modules/@babel/code-frame": {"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",@@ -470,16 +319,6 @@"@babel/core": "^7.0.0-0"}},- "node_modules/@babel/runtime": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz",- "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">=6.9.0"- }- },"node_modules/@babel/template": {"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",@@ -1285,19 +1124,6 @@"node": ">=18"}},- "node_modules/@hono/node-server": {- "version": "1.19.14",- "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.14.tgz",- "integrity": "sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">=18.14.1"- },- "peerDependencies": {- "hono": "^4"- }- },"node_modules/@img/sharp-darwin-arm64": {"version": "0.33.5","resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz",@@ -1796,47 +1622,6 @@"node": ">=10"}},- "node_modules/@modelcontextprotocol/sdk": {- "version": "1.29.0",- "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.29.0.tgz",- "integrity": "sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ==",- "license": "MIT",- "peer": true,- "dependencies": {- "@hono/node-server": "^1.19.9",- "ajv": "^8.17.1",- "ajv-formats": "^3.0.1",- "content-type": "^1.0.5",- "cors": "^2.8.5",- "cross-spawn": "^7.0.5",- "eventsource": "^3.0.2",- "eventsource-parser": "^3.0.0",- "express": "^5.2.1",- "express-rate-limit": "^8.2.1",- "hono": "^4.11.4",- "jose": "^6.1.3",- "json-schema-typed": "^8.0.2",- "pkce-challenge": "^5.0.0",- "raw-body": "^3.0.0",- "zod": "^3.25 || ^4.0",- "zod-to-json-schema": "^3.25.1"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@cfworker/json-schema": "^4.1.1",- "zod": "^3.25 || ^4.0"- },- "peerDependenciesMeta": {- "@cfworker/json-schema": {- "optional": true- },- "zod": {- "optional": false- }- }- },"node_modules/@noble/hashes": {"version": "2.2.0","resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.2.0.tgz",@@ -2272,13 +2057,6 @@"url": "https://github.com/sindresorhus/is?sponsor=1"}},- "node_modules/@stablelib/base64": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz",- "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==",- "license": "MIT",- "peer": true- },"node_modules/@standard-schema/spec": {"version": "1.1.0","resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",@@ -3137,47 +2915,6 @@"node": "^20.17.0 || >=22.9.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",- "peer": true,- "dependencies": {- "mime-types": "^3.0.0",- "negotiator": "^1.0.0"- },- "engines": {- "node": ">= 0.6"- }- },- "node_modules/accepts/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",- "peer": true,- "engines": {- "node": ">= 0.6"- }- },- "node_modules/accepts/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",- "peer": true,- "dependencies": {- "mime-db": "^1.54.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },"node_modules/agent-base": {"version": "7.1.4","resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",@@ -3192,6 +2929,7 @@"version": "8.20.0","resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz","integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",+ "dev": true,"license": "MIT","dependencies": {"fast-deep-equal": "^3.1.3",@@ -3204,24 +2942,6 @@"url": "https://github.com/sponsors/epoberezkin"}},- "node_modules/ajv-formats": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz",- "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==",- "license": "MIT",- "peer": true,- "dependencies": {- "ajv": "^8.0.0"- },- "peerDependencies": {- "ajv": "^8.0.0"- },- "peerDependenciesMeta": {- "ajv": {- "optional": true- }- }- },"node_modules/ansi-regex": {"version": "5.0.1","resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",@@ -3558,45 +3278,6 @@"dev": true,"license": "MIT"},- "node_modules/body-parser": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz",- "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==",- "license": "MIT",- "peer": true,- "dependencies": {- "bytes": "^3.1.2",- "content-type": "^2.0.0",- "debug": "^4.4.3",- "http-errors": "^2.0.1",- "iconv-lite": "^0.7.2",- "on-finished": "^2.4.1",- "qs": "^6.15.2",- "raw-body": "^3.0.2",- "type-is": "^2.1.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },- "node_modules/body-parser/node_modules/content-type": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",- "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">=18"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },"node_modules/boolean": {"version": "3.2.0","resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz",@@ -3699,16 +3380,6 @@"node": ">=12.0.0"}},- "node_modules/bytes": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",- "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">= 0.8"- }- },"node_modules/bytestreamjs": {"version": "2.0.1","resolved": "https://registry.npmjs.org/bytestreamjs/-/bytestreamjs-2.0.1.tgz",@@ -3762,6 +3433,7 @@"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==",+ "dev": true,"license": "MIT","dependencies": {"es-errors": "^1.3.0",@@ -3771,23 +3443,6 @@"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",- "peer": true,- "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/camelcase": {"version": "5.3.1","resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",@@ -3996,30 +3651,6 @@"dev": true,"license": "MIT"},- "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",- "peer": true,- "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",- "peer": true,- "engines": {- "node": ">= 0.6"- }- },"node_modules/convert-source-map": {"version": "2.0.0","resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",@@ -4027,26 +3658,6 @@"dev": true,"license": "MIT"},- "node_modules/cookie": {- "version": "0.7.2",- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",- "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",- "license": "MIT",- "peer": true,- "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",- "peer": true,- "engines": {- "node": ">=6.6.0"- }- },"node_modules/core-util-is": {"version": "1.0.3","resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",@@ -4054,24 +3665,6 @@"dev": true,"license": "MIT"},- "node_modules/cors": {- "version": "2.8.6",- "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz",- "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",- "license": "MIT",- "peer": true,- "dependencies": {- "object-assign": "^4",- "vary": "^1"- },- "engines": {- "node": ">= 0.10"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },"node_modules/cross-dirname": {"version": "0.1.0","resolved": "https://registry.npmjs.org/cross-dirname/-/cross-dirname-0.1.0.tgz",@@ -4085,6 +3678,7 @@"version": "7.0.6","resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz","integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",+ "dev": true,"license": "MIT","dependencies": {"path-key": "^3.1.0",@@ -4329,16 +3923,6 @@"node": ">=0.4.0"}},- "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",- "peer": true,- "engines": {- "node": ">= 0.8"- }- },"node_modules/detect-libc": {"version": "2.1.2","resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",@@ -4460,6 +4044,7 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz","integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "dev": true,"license": "MIT","dependencies": {"call-bind-apply-helpers": "^1.0.1",@@ -4480,13 +4065,6 @@"readable-stream": "^2.0.2"}},- "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",- "peer": true- },"node_modules/ejs": {"version": "3.1.10","resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",@@ -5211,16 +4789,6 @@"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==","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",- "peer": true,- "engines": {- "node": ">= 0.8"- }- },"node_modules/end-of-stream": {"version": "1.4.5","resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",@@ -5269,6 +4837,7 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz","integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -5278,6 +4847,7 @@"version": "1.3.0","resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz","integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -5294,6 +4864,7 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz","integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",+ "dev": true,"license": "MIT","dependencies": {"es-errors": "^1.3.0"@@ -5378,13 +4949,6 @@"node": ">=6"}},- "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",- "peer": true- },"node_modules/escape-string-regexp": {"version": "4.0.0","resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",@@ -5409,39 +4973,6 @@"@types/estree": "^1.0.0"}},- "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",- "peer": true,- "engines": {- "node": ">= 0.6"- }- },- "node_modules/eventsource": {- "version": "3.0.7",- "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz",- "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==",- "license": "MIT",- "peer": true,- "dependencies": {- "eventsource-parser": "^3.0.1"- },- "engines": {- "node": ">=18.0.0"- }- },- "node_modules/eventsource-parser": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.0.tgz",- "integrity": "sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">=18.0.0"- }- },"node_modules/expect-type": {"version": "1.3.0","resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",@@ -5459,113 +4990,18 @@"dev": true,"license": "Apache-2.0"},- "node_modules/express": {- "version": "5.2.1",- "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",- "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",- "license": "MIT",- "peer": true,- "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/express-rate-limit": {- "version": "8.5.2",- "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.5.2.tgz",- "integrity": "sha512-5Kb34ipNX694DH48vN9irak1Qx30nb0PLYHXfJgw4YEjiC3ZEmZJhwOp+VfiCYwFzvFTdB9QkArYS5kXa2cx2A==",- "license": "MIT",- "peer": true,- "dependencies": {- "ip-address": "^10.2.0"- },- "engines": {- "node": ">= 16"- },- "funding": {- "url": "https://github.com/sponsors/express-rate-limit"- },- "peerDependencies": {- "express": ">= 4.11"- }- },- "node_modules/express/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",- "peer": true,- "engines": {- "node": ">= 0.6"- }- },- "node_modules/express/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",- "peer": true,- "dependencies": {- "mime-db": "^1.54.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },"node_modules/fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz","integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,"license": "MIT"},- "node_modules/fast-sha256": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz",- "integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==",- "license": "Unlicense",- "peer": true- },"node_modules/fast-uri": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.3.tgz","integrity": "sha512-i70LwGWUduXqzicKXWshooq+sWL1K3WUU5rKZNG/0i3a1OSoX3HqhH5WbWwTmqWfor4urUakGPiRQcleRZTwOg==",+ "dev": true,"funding": [{"type": "github",@@ -5636,28 +5072,6 @@"node": ">=10"}},- "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",- "peer": true,- "dependencies": {- "debug": "^4.4.0",- "encodeurl": "^2.0.0",- "escape-html": "^1.0.3",- "on-finished": "^2.4.1",- "parseurl": "^1.3.3",- "statuses": "^2.0.1"- },- "engines": {- "node": ">= 18.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },"node_modules/find-up": {"version": "4.1.0","resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",@@ -5688,26 +5102,6 @@"node": ">= 6"}},- "node_modules/forwarded": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",- "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",- "license": "MIT",- "peer": true,- "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",- "peer": true,- "engines": {- "node": ">= 0.8"- }- },"node_modules/fs-extra": {"version": "10.1.0","resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz",@@ -5748,6 +5142,7 @@"version": "1.1.2","resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz","integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "dev": true,"license": "MIT","funding": {"url": "https://github.com/sponsors/ljharb"@@ -5776,6 +5171,7 @@"version": "1.3.0","resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz","integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "dev": true,"license": "MIT","dependencies": {"call-bind-apply-helpers": "^1.0.2",@@ -5800,6 +5196,7 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz","integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "dev": true,"license": "MIT","dependencies": {"dunder-proto": "^1.0.1",@@ -5919,6 +5316,7 @@"version": "1.2.0","resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz","integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -5987,6 +5385,7 @@"version": "1.1.0","resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz","integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "dev": true,"license": "MIT","engines": {"node": ">= 0.4"@@ -6015,6 +5414,7 @@"version": "2.0.4","resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz","integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",+ "dev": true,"license": "MIT","dependencies": {"function-bind": "^1.1.2"@@ -6023,16 +5423,6 @@"node": ">= 0.4"}},- "node_modules/hono": {- "version": "4.12.27",- "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.27.tgz",- "integrity": "sha512-1yrb/+w6HWQJrUCLkJ2IF5jNIPvvFkblV5RNOYl6bV+OA6p9GLcMpHFFGTosSvHvcAUibuUukRqhlYI4z32C7Q==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">=16.9.0"- }- },"node_modules/hosted-git-info": {"version": "4.1.0","resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz",@@ -6073,27 +5463,6 @@"dev": true,"license": "BSD-2-Clause"},- "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",- "peer": true,- "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/http-proxy-agent": {"version": "7.0.2","resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",@@ -6136,23 +5505,6 @@"node": ">= 14"}},- "node_modules/iconv-lite": {- "version": "0.7.3",- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",- "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",- "license": "MIT",- "peer": true,- "dependencies": {- "safer-buffer": ">= 2.1.2 < 3.0.0"- },- "engines": {- "node": ">=0.10.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },"node_modules/inflight": {"version": "1.0.6","resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",@@ -6169,28 +5521,9 @@"version": "2.0.4","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz","integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "dev": true,"license": "ISC"},- "node_modules/ip-address": {- "version": "10.2.0",- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.2.0.tgz",- "integrity": "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">= 12"- }- },- "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",- "peer": true,- "engines": {- "node": ">= 0.10"- }- },"node_modules/is-arrayish": {"version": "0.3.4","resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.4.tgz",@@ -6207,13 +5540,6 @@"node": ">=8"}},- "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",- "peer": true- },"node_modules/isarray": {"version": "1.0.0","resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",@@ -6238,6 +5564,7 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz","integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",+ "dev": true,"license": "ISC"},"node_modules/jake": {@@ -6268,16 +5595,6 @@"jiti": "lib/jiti-cli.mjs"}},- "node_modules/jose": {- "version": "6.2.3",- "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.3.tgz",- "integrity": "sha512-YYVDInQKFJfR/xa3ojUTl8c2KoTwiL1R5Wg9YCydwH0x0B9grbzlg5HC7mMjCtUJjbQ/YnGEZIhI5tCgfTb4Hw==",- "license": "MIT",- "peer": true,- "funding": {- "url": "https://github.com/sponsors/panva"- }- },"node_modules/js-tokens": {"version": "4.0.0","resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",@@ -6326,33 +5643,13 @@"dev": true,"license": "MIT"},- "node_modules/json-schema-to-ts": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-3.1.1.tgz",- "integrity": "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==",- "license": "MIT",- "peer": true,- "dependencies": {- "@babel/runtime": "^7.18.3",- "ts-algebra": "^2.0.0"- },- "engines": {- "node": ">=16"- }- },"node_modules/json-schema-traverse": {"version": "1.0.0","resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz","integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",+ "dev": true,"license": "MIT"},- "node_modules/json-schema-typed": {- "version": "8.0.2",- "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz",- "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==",- "license": "BSD-2-Clause",- "peer": true- },"node_modules/json-stringify-safe": {"version": "5.0.1","resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",@@ -6767,34 +6064,12 @@"version": "1.1.0","resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz","integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "dev": true,"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",- "peer": true,- "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",- "peer": true,- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/mime": {"version": "2.6.0","resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",@@ -6935,16 +6210,6 @@"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"}},- "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",- "peer": true,- "engines": {- "node": ">= 0.6"- }- },"node_modules/node-abi": {"version": "4.33.0","resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.33.0.tgz",@@ -7101,29 +6366,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/object-assign": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">=0.10.0"- }- },- "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",- "peer": true,- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },"node_modules/object-keys": {"version": "1.1.1","resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",@@ -7149,23 +6391,11 @@"node": ">=12.20.0"}},- "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",- "peer": true,- "dependencies": {- "ee-first": "1.1.1"- },- "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==",+ "dev": true,"license": "ISC","dependencies": {"wrappy": "1"@@ -7233,16 +6463,6 @@"node": ">=6"}},- "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",- "peer": true,- "engines": {- "node": ">= 0.8"- }- },"node_modules/path-exists": {"version": "4.0.0","resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",@@ -7266,22 +6486,12 @@"version": "3.1.1","resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz","integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "dev": true,"license": "MIT","engines": {"node": ">=8"}},- "node_modules/path-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",- "peer": true,- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },"node_modules/pathe": {"version": "2.0.3","resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",@@ -7324,16 +6534,6 @@"url": "https://github.com/sponsors/jonschlinkert"}},- "node_modules/pkce-challenge": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz",- "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">=16.20.0"- }- },"node_modules/pkijs": {"version": "3.4.0","resolved": "https://registry.npmjs.org/pkijs/-/pkijs-3.4.0.tgz",@@ -7501,20 +6701,6 @@"signal-exit": "^3.0.2"}},- "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",- "peer": true,- "dependencies": {- "forwarded": "0.2.0",- "ipaddr.js": "1.9.1"- },- "engines": {- "node": ">= 0.10"- }- },"node_modules/pump": {"version": "3.0.4","resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",@@ -7629,23 +6815,6 @@"node": ">=6"}},- "node_modules/qs": {- "version": "6.15.3",- "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.3.tgz",- "integrity": "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==",- "license": "BSD-3-Clause",- "peer": true,- "dependencies": {- "es-define-property": "^1.0.1",- "side-channel": "^1.1.1"- },- "engines": {- "node": ">=0.6"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },"node_modules/quick-lru": {"version": "5.1.1","resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",@@ -7659,36 +6828,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/range-parser": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz",- "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">= 0.6"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },- "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",- "peer": true,- "dependencies": {- "bytes": "~3.1.2",- "http-errors": "~2.0.1",- "iconv-lite": "~0.7.0",- "unpipe": "~1.0.0"- },- "engines": {- "node": ">= 0.10"- }- },"node_modules/react": {"version": "18.3.1","resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",@@ -7767,6 +6906,7 @@"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==",+ "dev": true,"license": "MIT","engines": {"node": ">=0.10.0"@@ -7905,23 +7045,6 @@"fsevents": "~2.3.2"}},- "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",- "peer": true,- "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",@@ -7929,13 +7052,6 @@"dev": true,"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",- "peer": true- },"node_modules/sanitize-filename": {"version": "1.6.4","resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.4.tgz",@@ -7986,60 +7102,6 @@"license": "MIT","optional": true},- "node_modules/send": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz",- "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==",- "license": "MIT",- "peer": true,- "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/send/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",- "peer": true,- "engines": {- "node": ">= 0.6"- }- },- "node_modules/send/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",- "peer": true,- "dependencies": {- "mime-db": "^1.54.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },"node_modules/serialize-error": {"version": "7.0.1","resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz",@@ -8057,39 +7119,12 @@"url": "https://github.com/sponsors/sindresorhus"}},- "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",- "peer": true,- "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/set-blocking": {"version": "2.0.0","resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz","integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==","license": "ISC"},- "node_modules/setprototypeof": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",- "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",- "license": "ISC",- "peer": true- },"node_modules/sharp": {"version": "0.33.5","resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.5.tgz",@@ -8134,6 +7169,7 @@"version": "2.0.0","resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz","integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,"license": "MIT","dependencies": {"shebang-regex": "^3.0.0"@@ -8146,87 +7182,12 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz","integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,"license": "MIT","engines": {"node": ">=8"}},- "node_modules/side-channel": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",- "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",- "license": "MIT",- "peer": true,- "dependencies": {- "es-errors": "^1.3.0",- "object-inspect": "^1.13.4",- "side-channel-list": "^1.0.1",- "side-channel-map": "^1.0.1",- "side-channel-weakmap": "^1.0.2"- },- "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",- "peer": true,- "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",- "peer": true,- "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",- "peer": true,- "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/siginfo": {"version": "2.0.0","resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",@@ -8320,17 +7281,6 @@"dev": true,"license": "MIT"},- "node_modules/standardwebhooks": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.0.0.tgz",- "integrity": "sha512-BbHGOQK9olHPMvQNHWul6MYlrRTAOKn03rOe4A8O3CLWhNf4YHBqq2HJKKC+sfqpxiBY52pNeesD6jIiLDz8jg==",- "license": "MIT",- "peer": true,- "dependencies": {- "@stablelib/base64": "^1.0.0",- "fast-sha256": "^1.3.0"- }- },"node_modules/stat-mode": {"version": "1.0.0","resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz",@@ -8341,16 +7291,6 @@"node": ">= 6"}},- "node_modules/statuses": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",- "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">= 0.8"- }- },"node_modules/std-env": {"version": "4.2.0","resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz",@@ -8584,16 +7524,6 @@"tmp": "^0.2.0"}},- "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",- "peer": true,- "engines": {- "node": ">=0.6"- }- },"node_modules/truncate-utf8-bytes": {"version": "1.0.2","resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",@@ -8604,13 +7534,6 @@"utf8-byte-length": "^1.0.1"}},- "node_modules/ts-algebra": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-2.0.0.tgz",- "integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==",- "license": "MIT",- "peer": true- },"node_modules/tslib": {"version": "2.8.1","resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",@@ -8638,66 +7561,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/type-is": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz",- "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==",- "license": "MIT",- "peer": true,- "dependencies": {- "content-type": "^2.0.0",- "media-typer": "^1.1.0",- "mime-types": "^3.0.0"- },- "engines": {- "node": ">= 18"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },- "node_modules/type-is/node_modules/content-type": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.0.0.tgz",- "integrity": "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==",- "license": "MIT",- "peer": true,- "engines": {- "node": ">=18"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },- "node_modules/type-is/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",- "peer": true,- "engines": {- "node": ">= 0.6"- }- },- "node_modules/type-is/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",- "peer": true,- "dependencies": {- "mime-db": "^1.54.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"- }- },"node_modules/typescript": {"version": "5.9.3","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",@@ -8739,16 +7602,6 @@"node": ">= 10.0.0"}},- "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",- "peer": true,- "engines": {- "node": ">= 0.8"- }- },"node_modules/unzipper": {"version": "0.12.5","resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.12.5.tgz",@@ -8832,16 +7685,6 @@"dev": true,"license": "MIT"},- "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",- "peer": true,- "engines": {- "node": ">= 0.8"- }- },"node_modules/vite": {"version": "7.3.6","resolved": "https://registry.npmjs.org/vite/-/vite-7.3.6.tgz",@@ -9025,6 +7868,7 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz","integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,"license": "ISC","dependencies": {"isexe": "^2.0.0"@@ -9081,6 +7925,7 @@"version": "1.0.2","resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz","integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "dev": true,"license": "ISC"},"node_modules/ws": {@@ -9173,26 +8018,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/zod": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",- "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",- "license": "MIT",- "peer": true,- "funding": {- "url": "https://github.com/sponsors/colinhacks"- }- },- "node_modules/zod-to-json-schema": {- "version": "3.25.2",- "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz",- "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==",- "license": "ISC",- "peer": true,- "peerDependencies": {- "zod": "^3.25.28 || ^4"- }- },"node_modules/zustand": {"version": "4.5.7","resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",diff --git a/package.json b/package.jsonindex cc24e3c86..6d8cdd4ac 100644--- a/package.json+++ b/package.json@@ -102,7 +102,6 @@}},"dependencies": {- "@anthropic-ai/claude-agent-sdk": "^0.3.201","@xterm/addon-web-links": "^0.11.0","dompurify": "^3.4.11","electron-updater": "^6.8.9",diff --git a/src/core/chat-driver.ts b/src/core/chat-driver.tsdeleted file mode 100644index b4eddd61d..000000000--- a/src/core/chat-driver.ts+++ /dev/null@@ -1,233 +0,0 @@-// One long-lived Claude Agent SDK query per chat node (streaming input mode). The renderer-// talks to this over the narrow chat:* IPC surface; SDK messages are reduced by-// chat-events.ts and pushed on chat:event:<nodeId>. Continuity is resume-based: the-// process dies with the app; the node's persisted chatSessionId resumes the transcript.-import { IPC } from '../shared/ipc'-import type { ChatEvent, ChatImageAttachment, ChatPermissionDecision } from '../shared/types'-import type { NormalizedAgentEvent } from '../shared/agents/normalize'-import { sdkMessageToEvents } from './chat-events'-import { ChatInputQueue, createPushIterable } from './chat-queue'-import { resolveTranscriptPath } from './transcript-reader'-import { claudeConfigDirFor } from './claude-config-dir'-import { recordAgentEvent } from './agent-status-mirror'-import { AUTH_ENV_STRIP } from './claude-accounts-core'--interface PendingPermission { resolve: (d: ChatPermissionDecision) => void }--interface ChatSession {- nodeId: string- cwd?: string- sessionId?: string- // Managed account this chat runs on (its CLAUDE_CONFIG_DIR); undefined = default login.- accountId?: string- working: boolean- input: ReturnType<typeof createPushIterable<unknown>>- queue: ChatInputQueue- pending: Map<string, PendingPermission>- allowedForSession: Set<string>- interrupt?: () => Promise<void>- // Set by interrupt() before it fires the SDK interrupt, so the resulting turn-done is treated- // as a user Stop: it must NOT auto-flush the queue and its done status carries interrupted:true- // (so Canvas skips the completion notification). Cleared when that turn-done is handled.- interruptedByUser: boolean- disposed: boolean-}--type SendToMain = (channel: string, payload: unknown) => void--// Minimal structural view of the send target. The codebase resolves the live window at send-// time via getMainWindow() (returns MainWindowLike, never a raw BrowserWindow — capturing one-// leaves a dead webContents after a macOS close→dock-reopen), so we accept anything that can-// send on its webContents rather than the full BrowserWindow type.-type WindowLike = { webContents: { send(channel: string, ...args: unknown[]): void } }--export class ChatDriver {- private sessions = new Map<string, ChatSession>()- constructor(- private getWindow: () => WindowLike | null,- private sendToMain: SendToMain- ) {}-- private emit(nodeId: string, event: ChatEvent): void {- this.getWindow()?.webContents.send(IPC.chatEvent(nodeId), event)- }-- private status(- s: ChatSession,- state: 'working' | 'blocked' | 'done',- newTurn = false,- interrupted = false- ): void {- const ev: NormalizedAgentEvent = {- nodeId: s.nodeId, agentId: 'claude', kind: 'state', state, newTurn,- sessionId: s.sessionId, ...(interrupted ? { interrupted: true } : {})- }- this.sendToMain(IPC.agentStatus, ev)- recordAgentEvent(ev)- }-- async ensure(- nodeId: string,- opts: { cwd?: string; sessionId?: string; fork?: boolean; accountId?: string }- ): Promise<{ ok: boolean; error?: string }> {- if (this.sessions.has(nodeId)) return { ok: true }- // Resume validation: a sessionId whose transcript is gone would silently start a- // fresh session with mismatched history — surface it instead. Look in the account dir.- let resume = opts.sessionId- if (resume && !(await resolveTranscriptPath(resume, opts.accountId))) {- this.emit(nodeId, { kind: 'error', message: 'Previous session transcript not found — starting fresh.' })- resume = undefined- }- const s: ChatSession = {- nodeId, cwd: opts.cwd, sessionId: resume, accountId: opts.accountId, working: false,- input: createPushIterable<unknown>(), queue: new ChatInputQueue(),- pending: new Map(), allowedForSession: new Set(),- interruptedByUser: false, disposed: false- }- this.sessions.set(nodeId, s)- void this.run(s, resume, opts.fork === true).catch((err) => {- this.emit(nodeId, { kind: 'error', message: String(err?.message ?? err), fatal: true })- // Tear down like dispose(): resolve/clear any pending permission cards and end input, so a- // fatal crash doesn't leave a stale permission prompt or "working" badge before Reconnect.- this.teardown(s)- this.sessions.delete(nodeId)- })- return { ok: true }- }-- private async run(s: ChatSession, resume: string | undefined, fork: boolean): Promise<void> {- // Task-1 spike result: the SDK runs under Electron main with no env/executable- // overrides (ELECTRON_RUN_AS_NODE inheritance is harmless), so no special spawn handling.- const { query } = await import('@anthropic-ai/claude-agent-sdk')- const q = query({- prompt: s.input.iterable as AsyncIterable<never>,- options: {- cwd: s.cwd,- ...(resume ? { resume } : {}),- ...(fork ? { forkSession: true } : {}),- // Managed account: the SDK's claude subprocess inherits this env, so credentials- // AND the transcript live in the account dir. AUTH_ENV_STRIP mirrors the PTY path.- // Account-less sessions get no env option at all (inherit the default login untouched).- ...(s.accountId- ? {- env: (() => {- const env: NodeJS.ProcessEnv = { ...process.env, CLAUDE_CONFIG_DIR: claudeConfigDirFor(s.accountId) }- for (const k of AUTH_ENV_STRIP) delete env[k]- return env as Record<string, string>- })()- }- : {}),- includePartialMessages: true,- permissionMode: 'default',- canUseTool: async (toolName: string, input: Record<string, unknown>, { toolUseID }: { toolUseID: string }) => {- if (s.allowedForSession.has(toolName)) return { behavior: 'allow' as const, updatedInput: input }- const requestId = toolUseID- this.emit(s.nodeId, { kind: 'permission', requestId, toolName, input })- this.status(s, 'blocked')- const decision = await new Promise<ChatPermissionDecision>((resolve) => {- s.pending.set(requestId, { resolve })- })- s.pending.delete(requestId)- this.emit(s.nodeId, { kind: 'permission-done', requestId })- this.status(s, 'working')- if (decision.behavior === 'allow') {- if (decision.alwaysSession) s.allowedForSession.add(toolName)- return { behavior: 'allow' as const, updatedInput: input }- }- return { behavior: 'deny' as const, message: 'User denied in nodeterm chat.' }- }- }- })- s.interrupt = () => q.interrupt()- for await (const msg of q) {- if (s.disposed) break- for (const event of sdkMessageToEvents(msg as never)) {- if (event.kind === 'session') s.sessionId = event.sessionId- this.emit(s.nodeId, event)- if (event.kind === 'turn-done') {- s.working = false- // A user Stop (interrupt) ends the turn too — but the queue must stay put (items are- // individually deletable) and Canvas must skip the "finished" notification.- const interrupted = s.interruptedByUser- s.interruptedByUser = false- this.status(s, 'done', false, interrupted)- if (!interrupted) this.flushQueue(s)- }- }- }- }-- private pushUser(s: ChatSession, text: string, images?: ChatImageAttachment[]): void {- const content: unknown = images?.length- ? [- ...images.map((i) => ({ type: 'image', source: { type: 'base64', media_type: i.mediaType, data: i.data } })),- { type: 'text', text }- ]- : text- s.input.push({ type: 'user', message: { role: 'user', content } })- s.working = true- this.status(s, 'working', true)- }-- private flushQueue(s: ChatSession): void {- const next = s.queue.takeNext()- this.emit(s.nodeId, { kind: 'queue', items: s.queue.items() })- if (next) this.pushUser(s, next.text)- }-- send(nodeId: string, text: string, images?: ChatImageAttachment[]): void {- const s = this.sessions.get(nodeId)- if (!s) return- if (s.working) {- s.queue.add(text) // images only send immediately in v1; queued items are text- this.emit(nodeId, { kind: 'queue', items: s.queue.items() })- return- }- this.pushUser(s, text, images)- }-- interrupt(nodeId: string): void {- const s = this.sessions.get(nodeId)- if (!s) return- // Flag the turn as user-stopped BEFORE firing the SDK interrupt, so the turn-done it- // triggers is handled as a Stop (no auto-flush, interrupted status).- s.interruptedByUser = true- void s.interrupt?.().catch(() => {})- }-- permissionReply(nodeId: string, requestId: string, decision: ChatPermissionDecision): void {- this.sessions.get(nodeId)?.pending.get(requestId)?.resolve(decision)- }-- removeQueued(nodeId: string, queueId: string): void {- const s = this.sessions.get(nodeId)- if (!s) return- s.queue.remove(queueId)- this.emit(nodeId, { kind: 'queue', items: s.queue.items() })- }-- // Shared teardown for both dispose() and the fatal catch path: deny + clear every pending- // permission (resolving the awaiting canUseTool promise AND clearing its renderer card via- // permission-done), then end the input stream so the SDK query settles.- private teardown(s: ChatSession): void {- for (const [requestId, p] of s.pending) {- p.resolve({ behavior: 'deny' })- this.emit(s.nodeId, { kind: 'permission-done', requestId })- }- s.pending.clear()- s.input.end()- }-- dispose(nodeId: string): void {- const s = this.sessions.get(nodeId)- if (!s) return- s.disposed = true- this.teardown(s)- void s.interrupt?.().catch(() => {})- this.sessions.delete(nodeId)- }-- disposeAll(): void {- for (const id of [...this.sessions.keys()]) this.dispose(id)- }-}diff --git a/src/core/chat-events.test.ts b/src/core/chat-events.test.tsdeleted file mode 100644index 71fef1fe3..000000000--- a/src/core/chat-events.test.ts+++ /dev/null@@ -1,78 +0,0 @@-import { describe, expect, it } from 'vitest'-import { sdkMessageToEvents, summarizeToolInput } from './chat-events'--describe('sdkMessageToEvents', () => {- it('maps init system message to session event', () => {- const ev = sdkMessageToEvents({- type: 'system', subtype: 'init', session_id: 'abc', slash_commands: ['/compact']- })- expect(ev).toEqual([{ kind: 'session', sessionId: 'abc', slashCommands: ['/compact'] }])- })-- it('maps text and thinking deltas', () => {- expect(sdkMessageToEvents({- type: 'stream_event', event: { type: 'content_block_delta', delta: { type: 'text_delta', text: 'he' } }- })).toEqual([{ kind: 'delta', block: 'text', text: 'he' }])- expect(sdkMessageToEvents({- type: 'stream_event', event: { type: 'content_block_delta', delta: { type: 'thinking_delta', thinking: 'hm' } }- })).toEqual([{ kind: 'delta', block: 'thinking', text: 'hm' }])- })-- it('maps a completed assistant message to message + tool events', () => {- const ev = sdkMessageToEvents({- type: 'assistant',- message: {- role: 'assistant',- content: [- { type: 'text', text: 'done' },- { type: 'tool_use', id: 't1', name: 'Edit', input: { file_path: '/a/b.ts', old_string: 'x\ny', new_string: 'z' } }- ]- }- })- expect(ev[0]).toEqual({ kind: 'message', msg: { role: 'assistant', parts: [{ kind: 'text', text: 'done' }] } })- expect(ev[1]).toMatchObject({ kind: 'tool', toolUseId: 't1', name: 'Edit', summary: { filePath: '/a/b.ts' } })- })-- it('maps tool results from user messages', () => {- const ev = sdkMessageToEvents({- type: 'user',- message: { role: 'user', content: [{ type: 'tool_result', tool_use_id: 't1', content: 'ok' }] }- })- expect(ev).toEqual([{ kind: 'tool-result', toolUseId: 't1', result: 'ok' }])- })-- it('maps result to turn-done with cost and usage', () => {- const ev = sdkMessageToEvents({- type: 'result', subtype: 'success', total_cost_usd: 0.12,- usage: { input_tokens: 10, output_tokens: 20 }- })- expect(ev).toEqual([{ kind: 'turn-done', costUsd: 0.12, usage: { inputTokens: 10, outputTokens: 20 } }])- })-- it('maps error result subtypes to turn-done + error', () => {- const ev = sdkMessageToEvents({ type: 'result', subtype: 'error_max_turns', total_cost_usd: 0.01 })- expect(ev[0].kind).toBe('turn-done')- expect(ev[1]).toMatchObject({ kind: 'error', fatal: false })- })-- it('ignores unknown messages', () => {- expect(sdkMessageToEvents({ type: 'whatever' })).toEqual([])- })-})--describe('summarizeToolInput', () => {- it('summarizes Edit with line counts from old/new strings', () => {- const s = summarizeToolInput('Edit', { file_path: '/x.ts', old_string: 'a\nb', new_string: 'c' })- expect(s.summary).toEqual({ filePath: '/x.ts', added: 1, removed: 2 })- expect(s.arg).toBe('/x.ts')- })- it('summarizes Write as all-added', () => {- const s = summarizeToolInput('Write', { file_path: '/x.ts', content: 'a\nb\nc' })- expect(s.summary).toEqual({ filePath: '/x.ts', added: 3, removed: 0 })- })- it('falls back to a compact arg for other tools', () => {- const s = summarizeToolInput('Bash', { command: 'ls -la' })- expect(s.arg).toBe('ls -la')- expect(s.summary).toBeUndefined()- })-})diff --git a/src/core/chat-events.ts b/src/core/chat-events.tsdeleted file mode 100644index ad9d91de0..000000000--- a/src/core/chat-events.ts+++ /dev/null@@ -1,92 +0,0 @@-// Pure reducer: one SDK message (structurally typed — no SDK import, so tests use plain-// JSON fixtures) → zero or more ChatEvents for the renderer. Owned by chat-driver.ts.-import type { ChatEvent, ChatMessage, ChatPart, ChatToolSummary } from '../shared/types'--/** The subset of SDK message shapes we consume, typed structurally. */-export interface SdkMessageLike {- type?: string- subtype?: string- session_id?: string- slash_commands?: string[]- total_cost_usd?: number- usage?: { input_tokens?: number; output_tokens?: number }- event?: { type?: string; delta?: { type?: string; text?: string; thinking?: string } }- message?: { role?: string; content?: unknown }-}--const lines = (s: unknown): number => (typeof s === 'string' && s.length ? s.split('\n').length : 0)--/** Compact one-line arg + optional file/line summary for a tool_use block. */-export function summarizeToolInput(- name: string,- input: Record<string, unknown>-): { arg: string; summary?: ChatToolSummary } {- const filePath = typeof input.file_path === 'string' ? input.file_path : undefined- if ((name === 'Edit' || name === 'MultiEdit') && filePath) {- return { arg: filePath, summary: { filePath, added: lines(input.new_string), removed: lines(input.old_string) } }- }- if (name === 'Write' && filePath) {- return { arg: filePath, summary: { filePath, added: lines(input.content), removed: 0 } }- }- const first = input.command ?? input.file_path ?? input.pattern ?? input.url ?? input.prompt- const arg = typeof first === 'string' ? first : JSON.stringify(input ?? {})- return { arg: arg.length > 200 ? arg.slice(0, 200) + '…' : arg }-}--const toolResultText = (content: unknown): string => {- if (typeof content === 'string') return content- if (Array.isArray(content))- return content- .map((b) => (b && typeof b === 'object' && 'text' in b ? String((b as { text: unknown }).text) : ''))- .join('\n')- return ''-}--export function sdkMessageToEvents(msg: SdkMessageLike): ChatEvent[] {- if (msg.type === 'system' && msg.subtype === 'init' && msg.session_id) {- return [{ kind: 'session', sessionId: msg.session_id, slashCommands: msg.slash_commands ?? [] }]- }- if (msg.type === 'stream_event') {- const d = msg.event?.delta- if (msg.event?.type === 'content_block_delta' && d) {- if (d.type === 'text_delta' && d.text) return [{ kind: 'delta', block: 'text', text: d.text }]- if (d.type === 'thinking_delta' && d.thinking) return [{ kind: 'delta', block: 'thinking', text: d.thinking }]- }- return []- }- if (msg.type === 'assistant' && Array.isArray((msg.message as { content?: unknown })?.content)) {- const out: ChatEvent[] = []- const parts: ChatPart[] = []- for (const block of (msg.message as { content: Array<Record<string, unknown>> }).content) {- if (block.type === 'text' && typeof block.text === 'string') parts.push({ kind: 'text', text: block.text })- else if (block.type === 'thinking' && typeof block.thinking === 'string')- parts.push({ kind: 'thinking', text: block.thinking })- else if (block.type === 'tool_use' && typeof block.id === 'string' && typeof block.name === 'string') {- const { arg, summary } = summarizeToolInput(block.name, (block.input as Record<string, unknown>) ?? {})- out.push({ kind: 'tool', toolUseId: block.id, name: block.name, arg, summary })- }- }- const msgEvent: ChatEvent[] = parts.length- ? [{ kind: 'message', msg: { role: 'assistant', parts } satisfies ChatMessage }]- : []- return [...msgEvent, ...out]- }- if (msg.type === 'user' && Array.isArray((msg.message as { content?: unknown })?.content)) {- const out: ChatEvent[] = []- for (const block of (msg.message as { content: Array<Record<string, unknown>> }).content) {- if (block.type === 'tool_result' && typeof block.tool_use_id === 'string')- out.push({ kind: 'tool-result', toolUseId: block.tool_use_id, result: toolResultText(block.content) })- }- return out- }- if (msg.type === 'result') {- const usage = msg.usage- ? { inputTokens: msg.usage.input_tokens ?? 0, outputTokens: msg.usage.output_tokens ?? 0 }- : undefined- const done: ChatEvent = { kind: 'turn-done', costUsd: msg.total_cost_usd, usage }- if (msg.subtype && msg.subtype !== 'success')- return [done, { kind: 'error', message: `Turn ended: ${msg.subtype}`, fatal: false }]- return [done]- }- return []-}diff --git a/src/core/chat-queue.test.ts b/src/core/chat-queue.test.tsdeleted file mode 100644index 27d7dbe9d..000000000--- a/src/core/chat-queue.test.ts+++ /dev/null@@ -1,53 +0,0 @@-import { describe, expect, it } from 'vitest'-import { ChatInputQueue, createPushIterable } from './chat-queue'--describe('createPushIterable', () => {- it('yields pushed items in order and finishes on end()', async () => {- const { iterable, push, end } = createPushIterable<number>()- push(1); push(2)- const seen: number[] = []- const done = (async () => { for await (const v of iterable) seen.push(v) })()- // push after consumption started, then close- push(3); end()- await done- expect(seen).toEqual([1, 2, 3])- })-- it('parks a consumer on an empty iterable and wakes it when a value is pushed', async () => {- const { iterable, push, end } = createPushIterable<number>()- const seen: number[] = []- // Start consuming an EMPTY iterable — the loop parks on the internal notify promise.- const done = (async () => { for await (const v of iterable) seen.push(v) })()- // Let the microtask/timer queue drain so the consumer is actually parked.- await new Promise((r) => setTimeout(r, 0))- expect(seen).toEqual([])- // Now push: this must wake the parked consumer and deliver the value.- push(42)- await new Promise((r) => setTimeout(r, 0))- expect(seen).toEqual([42])- end()- await done- expect(seen).toEqual([42])- })-- it('drops items pushed after end()', async () => {- const { iterable, push, end } = createPushIterable<number>()- push(1); end()- // push-after-end is ignored — nothing new is delivered.- push(2)- const seen: number[] = []- for await (const v of iterable) seen.push(v)- expect(seen).toEqual([1])- })-})--describe('ChatInputQueue', () => {- it('is FIFO with stable ids and removal', () => {- const q = new ChatInputQueue()- const a = q.add('first'); const b = q.add('second')- expect(q.items().map((i) => i.text)).toEqual(['first', 'second'])- expect(q.remove(a.id)).toBe(true)- expect(q.takeNext()).toEqual(b)- expect(q.takeNext()).toBeUndefined()- })-})diff --git a/src/core/chat-queue.ts b/src/core/chat-queue.tsdeleted file mode 100644index 3f50c1e8a..000000000--- a/src/core/chat-queue.ts+++ /dev/null@@ -1,43 +0,0 @@-// Pure helpers for the chat driver: a push-based AsyncIterable (the SDK's streaming-// prompt input) and the driver-side FIFO of messages typed while a turn is running.-import type { ChatQueueItem } from '../shared/types'--// Single-consumer only: one shared buffer + one notify slot. A second concurrent-// consumer would clobber the parked waiter (the last one to await wins the notify),-// so only ever drive one `for await` loop over the returned iterable.-export function createPushIterable<T>(): { iterable: AsyncIterable<T>; push(item: T): void; end(): void } {- const buffer: T[] = []- let notify: (() => void) | null = null- let ended = false- const wake = () => { notify?.(); notify = null }- return {- push(item: T) { if (ended) return; buffer.push(item); wake() },- end() { ended = true; wake() },- iterable: {- async *[Symbol.asyncIterator]() {- for (;;) {- while (buffer.length) yield buffer.shift() as T- if (ended) return- await new Promise<void>((r) => { notify = r })- }- }- }- }-}--export class ChatInputQueue {- private list: ChatQueueItem[] = []- private seq = 0- items(): ChatQueueItem[] { return [...this.list] }- add(text: string): ChatQueueItem {- const item = { id: `q-${++this.seq}`, text }- this.list.push(item)- return item- }- remove(id: string): boolean {- const before = this.list.length- this.list = this.list.filter((i) => i.id !== id)- return this.list.length < before- }- takeNext(): ChatQueueItem | undefined { return this.list.shift() }-}diff --git a/src/core/claude-config-dir.ts b/src/core/claude-config-dir.tsindex 26bca8f05..1fbf295a1 100644--- a/src/core/claude-config-dir.ts+++ b/src/core/claude-config-dir.ts@@ -1,7 +1,7 @@// Resolve a managed Claude account's config dir under this app's persistent state root.// The account LIST + login lifecycle live in main/claude-accounts.ts; this is just the// impure path resolution (needs the platform seam for userDataDir) split out so core-// modules (chat-driver, pty-manager) can use it without importing electron.+// modules (pty-manager, etc.) can use it without importing electron.import { platform } from './platform'import { accountConfigDir } from './claude-accounts-core'diff --git a/src/core/usage/usage-service.ts b/src/core/usage/usage-service.tsindex 54f9afec5..86b418d72 100644--- a/src/core/usage/usage-service.ts+++ b/src/core/usage/usage-service.ts@@ -241,7 +241,16 @@ export function startUsageService(opts: UsageServiceOptions = {}): UsageServicelast.set(key, u)lastFetchAt.set(key, u.updatedAt)// Only the system account feeds the push channel — the collapsed chip tracks it.- if (key === '') platform().broadcast(IPC.usageUpdate, u)+ // Best-effort: a fetch launched before shutdown (or a test's platform reset) can land after+ // the shell is gone, and this runs inside an un-awaited promise chain — throwing here is an+ // unhandled rejection, not a signal. The cache above is still updated either way.+ if (key === '') {+ try {+ platform().broadcast(IPC.usageUpdate, u)+ } catch {+ // shell gone — nobody left to notify+ }+ }// Notify the mirror (fail-open) so its phone-facing `usage` block re-assembles from the cache.try {opts.onCacheUpdate?.()diff --git a/src/main/index.ts b/src/main/index.tsindex c5c260d6a..a8536471c 100644--- a/src/main/index.ts+++ b/src/main/index.ts@@ -60,7 +60,6 @@ import { RemoteFile, type RemoteFileRef } from './remote-ssh/remote-file'import { childArgs } from '../core/remote-ssh/control-master'import { posixQuote } from '../shared/ssh'import { buildHandoff } from './handoff'-import { ChatDriver } from '../core/chat-driver'import { initContextLink, setNodeTranscript } from '../core/context-link'import { initCanvasControl, installCanvasSkillInto } from './canvas-control'import { initTranscriptIndex, searchTranscripts } from '../core/transcript-index'@@ -195,9 +194,6 @@ const workspaceWatcher = new WorkspaceWatcher({})workspaceStore.onPersist = () => workspaceWatcher.sync()const gitService = new GitService()-// One driver for all chat nodes. Resolves the live window at send time (getMainWindow) so-// pushes survive a macOS close→dock-reopen; disposed on quit next to ptyManager.killAll().-const chatDriver = new ChatDriver(getMainWindow, sendToMain)// Markers delimiting the `projects.list` relay blob. The iOS client splits on these exact// strings to recover [workspace.json | newline-joined tmux session names | agent-status.json],@@ -981,17 +977,6 @@ app.whenReady().then(async () => {accountId: string | undefined) => buildHandoff({ sessionId, agentId, sourceNodeId, cwd, accountId }))- // Chat nodes: one long-lived Claude Agent SDK query per node, bridged over chat:* IPC. On the- // platform: the driver runs on THIS host, and a remote tab's chat node drives the same one.- corePlatform.handle(IPC.chatEnsure, (nodeId: string, opts) => chatDriver.ensure(nodeId, opts))- corePlatform.on(IPC.chatSend, (nodeId: string, text: string, images) =>- chatDriver.send(nodeId, text, images))- corePlatform.on(IPC.chatInterrupt, (nodeId: string) => chatDriver.interrupt(nodeId))- corePlatform.on(IPC.chatPermissionReply, (nodeId: string, requestId: string, decision) =>- chatDriver.permissionReply(nodeId, requestId, decision))- corePlatform.on(IPC.chatRemoveQueued, (nodeId: string, queueId: string) =>- chatDriver.removeQueued(nodeId, queueId))- corePlatform.on(IPC.chatDispose, (nodeId: string) => chatDriver.dispose(nodeId))installManagedAgentHooks()// Managed accounts each carry their own settings.json AND skills/ (Claude Code resolves both@@ -1421,7 +1406,6 @@ let quitFlushed = falseapp.on('before-quit', (e) => {quitting = true // from here on, window close-events must NOT be turned into hideworkspaceWatcher.dispose()- chatDriver.disposeAll() // tear down every chat node's SDK query (resume-based, so this is safe)if (quitFlushed) {// Second pass (the deferred app.quit() below): the flush had its chance — drop the masters.sshProjectManager?.disconnectAll()diff --git a/src/preload/index.ts b/src/preload/index.tsindex dd59896a5..e92a4c47a 100644--- a/src/preload/index.ts+++ b/src/preload/index.ts@@ -367,20 +367,7 @@ const api: NodeTerminalApi = {},chat: {readTranscript: (sessionId, cwd, accountId) =>- ipcRenderer.invoke(IPC.chatReadTranscript, sessionId, cwd, accountId),- ensure: (nodeId, opts) => ipcRenderer.invoke(IPC.chatEnsure, nodeId, opts),- send: (nodeId, text, images) => ipcRenderer.send(IPC.chatSend, nodeId, text, images),- interrupt: (nodeId) => ipcRenderer.send(IPC.chatInterrupt, nodeId),- permissionReply: (nodeId, requestId, decision) =>- ipcRenderer.send(IPC.chatPermissionReply, nodeId, requestId, decision),- removeQueued: (nodeId, queueId) => ipcRenderer.send(IPC.chatRemoveQueued, nodeId, queueId),- dispose: (nodeId) => ipcRenderer.send(IPC.chatDispose, nodeId),- onEvent: (nodeId, listener) => {- const ch = IPC.chatEvent(nodeId)- const handler = (_e: unknown, payload: Parameters<typeof listener>[0]) => listener(payload)- ipcRenderer.on(ch, handler)- return () => ipcRenderer.removeListener(ch, handler)- }+ ipcRenderer.invoke(IPC.chatReadTranscript, sessionId, cwd, accountId)},claudeAccounts: {add: (ctx) => ipcRenderer.invoke(IPC.claudeAccountsAdd, ctx),diff --git a/src/renderer/bridge/relay-api.ts b/src/renderer/bridge/relay-api.tsindex e97e2cbf0..37418b900 100644--- a/src/renderer/bridge/relay-api.ts+++ b/src/renderer/bridge/relay-api.ts@@ -122,10 +122,10 @@ export function buildRelayApi(connectionId: string, transport?: FrameTransport):// ── Deferred over the relay in v1 — documented degrades (a clean refusal, not a wrong-machine// silent no-op): ──- // The SDK chat node has no relay chat builder yet (the Server Edition defers it too). Routing to- // the local chat driver would run it on the WRONG machine (a host cwd that does not exist- // locally), so refuse with E_UNSUPPORTED instead. contextLink / transcripts / handoff / boardLog- // stay LOCAL by way of `...local` (a v1 degrade: they read/write on this machine, not the host).+ // `chat` is now just readTranscript (the SDK chat node was removed). It has no relay builder:+ // reading a transcript over the relay would read THIS machine's transcript, not the host's, so+ // refuse with E_UNSUPPORTED instead. contextLink / transcripts / handoff / boardLog stay LOCAL+ // by way of `...local` (a v1 degrade: they read/write on this machine, not the host).chat: stub.chat,// Agent canvas-control (`agent:control`) is not wired over the relay (matches the Server// Edition); inert no-ops rather than a local subscription that never carries the host's events.diff --git a/src/renderer/bridge/stubs.ts b/src/renderer/bridge/stubs.tsindex e560d24cf..0e1487ed7 100644--- a/src/renderer/bridge/stubs.ts+++ b/src/renderer/bridge/stubs.ts@@ -239,14 +239,7 @@ export function buildStubApi(): Omit<readTranscript: U('claude.readTranscript')},chat: {- readTranscript: U('chat.readTranscript'),- ensure: U('chat.ensure'),- send: noop,- interrupt: noop,- permissionReply: noop,- removeQueued: noop,- dispose: noop,- onEvent: noopUnsub+ readTranscript: U('chat.readTranscript')},claudeAccounts: {add: U('claudeAccounts.add'),diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex 3b25a2a37..de9528b2a 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -32,7 +32,6 @@ import { GroupNode, setWorktreeActionHandler } from '../nodes/GroupNode'import { LazyEditorNode, LazyDiffNode } from '../nodes/lazyMonacoNodes'import { DinoNode } from '../nodes/DinoNode'import BrowserNode from '../nodes/BrowserNode'-import ChatNode from '../nodes/ChatNode'import { normalizeAddress } from '../nodes/browserUrl'import VideoNode from '../nodes/VideoNode'import WebNode from '../nodes/WebNode'@@ -51,7 +50,6 @@ import {IconGear,IconGrid,IconGroup,- IconChat,IconDino,IconJump,IconKanban,@@ -112,7 +110,6 @@ import { newEntryPath, parentDir } from '../lib/explorerCreate'import { useProjects } from '../state/projects'import { useAgentStatus } from '../state/agentStatus'import { useTeamAccessEvents } from '../state/teamAccess'-import { useChatSessions } from '../state/chatSessions'import { useAgentNodes } from '../state/agentNodes'import { SubagentNode } from '../nodes/SubagentNode'import { LoopNode } from '../nodes/LoopNode'@@ -209,7 +206,6 @@ import {systemAccountDisplay,createAgentNode,createBrowserNode,- createChatNode,createDinoNode,createDiffNode,createEditorNode,@@ -469,7 +465,7 @@ export function Canvas() {const [scOpen, setScOpen] = useState(false)const [shortcutsOpen, setShortcutsOpen] = useState(false)const [dictationOpen, setDictationOpen] = useState(false)- // Target = the first selected terminal/chat node AT OPEN TIME (not live-tracked while the+ // Target = the first selected terminal node AT OPEN TIME (not live-tracked while the// overlay is up — the design explicitly freezes it so a stray click elsewhere mid-dictation// can't retarget an in-progress recording).const [dictationTarget, setDictationTarget] = useState<DictationTarget | null>(null)@@ -771,8 +767,7 @@ export function Canvas() {dino: withNodeBoundary(DinoNode),video: withNodeBoundary(VideoNode),web: withNodeBoundary(WebNode),- browser: withNodeBoundary(BrowserNode),- chat: withNodeBoundary(ChatNode)+ browser: withNodeBoundary(BrowserNode)}),[])@@ -1010,7 +1005,7 @@ export function Canvas() {}, [sessionsPinned])// ⌘⌥D / Dock mic button: press-to-talk toggle. Closed → opens the dictation pill targeting the- // first selected terminal/chat node (agent nodes are `type: 'terminal'` with `data.agentId`+ // first selected terminal node (agent nodes are `type: 'terminal'` with `data.agentId`// set — no separate case needed) and starts recording immediately (or, with no such node// selected, shows a brief warning pill — see DictationOverlay's mount effect). Already open →// does NOT close the overlay itself; it bumps `dictationStopSignal` so DictationOverlay can@@ -1022,12 +1017,10 @@ export function Canvas() {setDictationStopSignal((n) => n + 1)return true}- const sel = nodesRef.current.find(- (n) => n.selected && (n.type === 'terminal' || n.type === 'chat')- )+ const sel = nodesRef.current.find((n) => n.selected && n.type === 'terminal')setDictationTarget(sel- ? { kind: sel.type === 'chat' ? 'chat' : 'terminal', nodeId: sel.id, title: (sel.data.title as string) || 'Untitled' }+ ? { kind: 'terminal', nodeId: sel.id, title: (sel.data.title as string) || 'Untitled' }: null)setDictationNonce((n) => n + 1)@@ -2242,7 +2235,7 @@ export function Canvas() {}}, [openFile, revealProjectFile])- // Mic button on a terminal/chat node's header (TerminalNode dispatches this — same+ // Mic button on a terminal node's header (TerminalNode dispatches this — same// no-direct-line-to-canvas pattern as nodeterm:open-file above). Unlike toggleDictation's// shortcut path, which infers the target from the current selection, this opens the overlay// targeting THAT node explicitly. If the overlay is already open — e.g. a different node was@@ -2260,7 +2253,7 @@ export function Canvas() {const n = nodesRef.current.find((x) => x.id === d.nodeId)if (!n) returnsetDictationTarget({- kind: n.type === 'chat' ? 'chat' : 'terminal',+ kind: 'terminal',nodeId: n.id,title: (n.data.title as string) || 'Untitled'})@@ -2433,24 +2426,6 @@ export function Canvas() {[setNodes, markDirty, viewCenter])- const addChatNode = useCallback(- (center?: { x: number; y: number }, accountId?: string, groupId?: string) => {- const project = useProjects.getState().getProject(activeProjectId)- const cwd = cwdForNewNodeIn(groupId) ?? project?.cwd- const account = resolveNewNodeAccount(- accountId,- project,- useSettings.getState().settings.claudeAccounts- )- setNodes((ns) => {- const node = createChatNode(ns.length, cwd, center ?? viewCenter(), undefined, account)- return [...ns, groupId ? parentInto(node, groupId) : node]- })- markDirty()- },- [setNodes, markDirty, activeProjectId, viewCenter, cwdForNewNodeIn, parentInto]- )-// Task 6: the Settings → Accounts "Add account" flow dispatches 'nodeterm:add-account-login'// to open a terminal node running `claude /login` under the new account's config dir.useEffect(() => {@@ -2620,13 +2595,11 @@ export function Canvas() {if (!chordHeld(e, combo, isMac)) returnarmed = trueheldSince = Date.now()- const sel = nodesRef.current.find(- (n) => n.selected && (n.type === 'terminal' || n.type === 'chat')- )+ const sel = nodesRef.current.find((n) => n.selected && n.type === 'terminal')setDictationTarget(sel? {- kind: sel.type === 'chat' ? 'chat' : 'terminal',+ kind: 'terminal',nodeId: sel.id,title: (sel.data.title as string) || 'Untitled'}@@ -2704,7 +2677,7 @@ export function Canvas() {* `data.fileMissing` instead of rewritten. The node stays on the canvas (never auto-closed: it* may hold unsaved Monaco edits the user hasn't copied out yet) and renders a persistent notice.*- * `respawn` separates the two callers (terminal/chat only — editor/diff has no session to touch):+ * `respawn` separates the two callers (terminal only — editor/diff has no session to touch):* - Remove (true): the directory is being deleted under live sessions, so their tmux sessions are* destroyed and the terminals respawn straight into the fallback cwd.* - Stale Unbind (false): unbind touches no process, by definition. The dead path is corrected on@@ -2729,23 +2702,6 @@ export function Canvas() {// every co-viewer's) and respawns into the fallback cwd. `destroy` would cast "closed// by <name>" to co-viewers, permanently bricking their still-present node.if (n.type === 'terminal') transport.recycle(n.id)- // A chat node has no PTY, but it DOES have a live SDK driver — and that driver holds the- // deleted cwd. Fixing only the persisted `data.cwd` (below) left the running query rooted- // in a directory that no longer exists, where every tool call fails until the app is- // restarted: the node looked fine and was quietly broken, which is worse than looking- // broken. Recycling it is the exact same two steps the chat error bar's own "Reconnect"- // button takes — dispose the driver, then `ensure` a new one — except the cwd it comes- // back at is the fallback. `chatSessionId` is passed through, so the SDK RESUMES the same- // conversation (history intact, on both sides); the renderer's message store is- // deliberately NOT dropped, so the user sees no interruption at all.- if (n.type === 'chat') {- api.chat.dispose(n.id)- void api.chat.ensure(n.id, {- cwd: fallbackCwd,- sessionId: n.data.chatSessionId as string | undefined,- accountId: n.data.accountId as string | undefined- })- }}}setNodes((ns) =>@@ -2779,7 +2735,7 @@ export function Canvas() {** For a STALE binding (the worktree directory was deleted behind git's back) that means:* a. displace the children (`resetDisplacedCwd`, no respawn — nothing here ends a process):- * terminals/chats get `data.cwd` off the dead path (left behind, that dead path is persisted+ * terminals get `data.cwd` off the dead path (left behind, that dead path is persisted* to project.json and tmux hides it until the next machine reboot cold-starts the terminal* into a directory that is not there); editor/diff nodes get `data.fileMissing` instead,* since there is nothing to re-point a dead `filePath` at; and@@ -2822,13 +2778,6 @@ export function Canvas() {if (n.type === 'terminal')disposeTerminalOnUnmount(sessionForProject(useProjects.getState().activeProjectId ?? '').id, n.id)if (n.type === 'terminal') transport.destroy(n.id)- // Chat nodes: permanently kill the SDK driver + drop the live chat state. The driver- // lives across project switches (only permanent delete kills it), so this belongs here,- // not in node unmount.- if (n.type === 'chat') {- api.chat.dispose(n.id)- useChatSessions.getState().drop(n.id)- }// Permanent deletion → drop the node's persisted agent status (sessionId/session/// unread/loop). Node unmount no longer does this, so deletion must. The loop card's// UI overrides live in agentNodes and are skipped by unmount's clearForParent.@@ -3270,12 +3219,12 @@ export function Canvas() {// missed), plus editor/diff nodes anywhere on the canvas whose file was inside it:// a. terminals: end the tmux session, which is now sitting in a directory that no longer// exists;- // b. terminals AND chats: reset `data.cwd` off the deleted path. Leaving it there is the+ // b. terminals: reset `data.cwd` off the deleted path. Leaving it there is the// exact trap this whole task exists to remove — on the next mount the node spawns into// a path that is gone, pty-manager silently falls back to $HOME, and the dead cwd is// persisted forever — only reached through the SANCTIONED Remove path.// c. editor/diff: mark `data.fileMissing`. There is no fallback path to re-point a dead- // `filePath` at — the file is genuinely gone — so unlike terminals/chats these are+ // `filePath` at — the file is genuinely gone — so unlike terminals these are// flagged, not rewritten, and the node shows a persistent notice instead of silently// opening blank or failing a `git show`.// The respawn (nonce bump) puts the terminal straight back in the fallback cwd rather than@@ -3874,7 +3823,7 @@ export function Canvas() {])- /** "New <agent>" / "New chat" creation entries shared by the pane and group context menus.+ /** "New <agent>" creation entries shared by the pane and group context menus.* `at` is the flow position to create at; with `groupId` the node is parented into that group. */const agentCreationItems = useCallback((at?: { x: number; y: number }, groupId?: string): MenuItem[] => {@@ -3951,8 +3900,6 @@ export function Canvas() {onClick: () => addAgentNode(c.id, at, groupId)}))- // "New chat" is deliberately NOT here: the context menus stay session-focused; chat- // nodes are created from the Dock + menu and the command palette.]},[activeProjectId, addAgentNode]@@ -4177,7 +4124,7 @@ export function Canvas() {const kanbanSessions = useMemo(() =>nodes- .filter((n) => n.type === 'terminal' || n.type === 'chat' || n.type === 'sticky')+ .filter((n) => n.type === 'terminal' || n.type === 'sticky').map((n) => {if (n.type === 'sticky') {const text = ((n.data.text as string) ?? '').trim()@@ -4188,7 +4135,7 @@ export function Canvas() {color: (n.data.color as string) ?? NODE_COLORS[2],kind: 'sticky' as const,text,- // Sticky/chat cards never open a live terminal — the modal reads no spawn info.+ // Sticky cards never open a live terminal — the modal reads no spawn info.spawn: {}}}@@ -4196,10 +4143,10 @@ export function Canvas() {id: n.id,title: (n.data.title as string) ?? '',color: (n.data.color as string) ?? NODE_COLORS[0],- kind: n.type as 'terminal' | 'chat',+ kind: 'terminal' as const,agentId: n.data.agentId as string | undefined,// What the card modal's co-attach terminal needs to join THIS node's session the same- // way the canvas TerminalNode does (used for kind 'terminal'; a chat card ignores it).+ // way the canvas TerminalNode does.spawn: {shell: n.data.shell as string | undefined,cwd: n.data.cwd as string | undefined,@@ -4996,10 +4943,6 @@ export function Canvas() {} else {disposeTerminalOnUnmount(sessionForProject(projectId).id, id) // node may be parked from the project switchtransport.destroy(id)- // Chat nodes in an inactive project keep their driver running across the switch;- // dispose is a no-op for non-chat ids, so call it unconditionally like destroy.- api.chat.dispose(id)- useChatSessions.getState().drop(id)useAgentStatus.getState().remove(id)useProjects.getState().removeNode(projectId, id)void writeDisk()@@ -5636,10 +5579,6 @@ export function Canvas() {disposeTerminalOnUnmount(sessionForProject(id).id, n.id) // may be parked from a recent switch awaytransport.destroy(n.id)}- if ((n.kind ?? 'terminal') === 'chat') {- api.chat.dispose(n.id)- useChatSessions.getState().drop(n.id)- }useAgentStatus.getState().remove(n.id)})// SSH project: the per-node `transport.destroy` above only ends the REMOTE session for@@ -5719,7 +5658,6 @@ export function Canvas() {run: () => addAgentNode('claude', undefined, undefined, a.id)})),- { id: 'new-chat', label: 'New chat', icon: <IconChat />, run: () => addChatNode() },{ id: 'new-sticky', label: 'New sticky note', icon: <IconNote />, run: () => addSticky() },{ id: 'new-dino', label: 'New dino game', icon: <IconDino />, run: () => addDino() },{ id: 'open-file', label: 'Open file…', icon: <IconEditor />, run: () => void openFileDialog() },@@ -5825,7 +5763,6 @@ export function Canvas() {}, [addTerminal,addAgentNode,- addChatNode,addSticky,addDino,addWebView,@@ -6105,7 +6042,7 @@ export function Canvas() {)}{/* The active project's node subtree runs under ITS session (local for a local tab, therelay session for a remote tab). Keyed by session id so an api swap REMOUNTS the nodes- (obligation 3): TerminalNode/EditorNode/ChatNode capture `api` in []-effects, so a live+ (obligation 3): TerminalNode/EditorNode capture `api` in []-effects, so a liveapi change must remount them or they keep talking to the old core. For an all-local userthe key is always 'local', so this never remounts — zero behavior change. */}<SessionProvider session={sessionForProject(activeProjectId || '')} key={sessionForProject(activeProjectId || '').id}>@@ -6168,7 +6105,6 @@ export function Canvas() {{canvasLocked ? <IconLock /> : <IconUnlock />}</ControlButton></Controls>- <UsageIndicator />{/* Peer cursors live INSIDE <ReactFlow>: PresenceLayer uses ViewportPortal +useReactFlow, which throw outside the provider — and cursors are flow coordinates. */}<PresenceLayer />@@ -6176,6 +6112,15 @@ export function Canvas() {</ReactFlow></SessionProvider>+ {/* MUST stay OUTSIDE <ReactFlow>. The library's wrapper carries inline+ `position: relative; z-index: 0`, which makes the whole flow one stacking context+ painted at 0 among flow-wrap's siblings — so no z-index INSIDE it, however large,+ can ever rise above the sessions sidebar (z 12). Mounted here, the indicator's own+ z-index (5 collapsed, 13 with the popover open) competes in the same context as the+ sidebar and the open popover wins. It uses no React Flow hooks, and .flow-wrap is+ position:relative, so its absolute left/bottom anchors are unchanged. */}+ <UsageIndicator />+<PresenceNamePrompt />{(!hasProjects || welcomeOpen) && (@@ -6520,7 +6465,6 @@ export function Canvas() {onAddSticky={addSticky}onAddDino={addDino}onAddAgent={(aid, accountId) => addAgentNode(aid, undefined, undefined, accountId)}- onAddChat={() => addChatNode()}onOpenFile={() => void openFileDialog()}onAddRemote={() => openRemotePicker({ x: window.innerWidth / 2, y: window.innerHeight / 2 })}onConnectRemote={() => void connectRemote()}diff --git a/src/renderer/components/DictationOverlay.test.ts b/src/renderer/components/DictationOverlay.test.tsindex 28ab23ae0..254a6dfa0 100644--- a/src/renderer/components/DictationOverlay.test.ts+++ b/src/renderer/components/DictationOverlay.test.ts@@ -2,33 +2,16 @@ import { describe, expect, it } from 'vitest'import { dictationMode, isAtRecordingCap, isProGateError, type DictationTarget } from './DictationOverlay'const terminalTarget: DictationTarget = { kind: 'terminal', nodeId: 'n1', title: 'shell' }-const chatTarget: DictationTarget = { kind: 'chat', nodeId: 'n2', title: 'chat' }-// Press-to-talk: the pill is the default surface for both target kinds while a take is in-// flight; only a chat target's *transcribed* text ever reaches the editable card (a terminal-// target inserts directly and never has a 'text' phase at all — see DictationOverlay.stopRecording).+// Press-to-talk: the pill is the only surface for a terminal target — the transcript is inserted+// straight into the terminal, so there is no editable card (chat nodes, which had one, are gone).describe('dictationMode', () => {- it('is "warning" whenever there is no target, regardless of phase', () => {- expect(dictationMode(null, 'idle')).toBe('warning')- expect(dictationMode(null, 'recording')).toBe('warning')- expect(dictationMode(null, 'text')).toBe('warning')+ it('is "warning" whenever there is no target', () => {+ expect(dictationMode(null)).toBe('warning')})- it('is "pill" for a terminal target in every phase, including "text"', () => {- expect(dictationMode(terminalTarget, 'idle')).toBe('pill')- expect(dictationMode(terminalTarget, 'recording')).toBe('pill')- expect(dictationMode(terminalTarget, 'transcribing')).toBe('pill')- expect(dictationMode(terminalTarget, 'text')).toBe('pill')- })-- it('is "pill" for a chat target until phase reaches "text"', () => {- expect(dictationMode(chatTarget, 'idle')).toBe('pill')- expect(dictationMode(chatTarget, 'recording')).toBe('pill')- expect(dictationMode(chatTarget, 'transcribing')).toBe('pill')- })-- it('is "card" only for a chat target once transcribed ("text" phase)', () => {- expect(dictationMode(chatTarget, 'text')).toBe('card')+ it('is "pill" for a terminal target', () => {+ expect(dictationMode(terminalTarget)).toBe('pill')})})diff --git a/src/renderer/components/DictationOverlay.tsx b/src/renderer/components/DictationOverlay.tsxindex 207b87955..ad9e271fc 100644--- a/src/renderer/components/DictationOverlay.tsx+++ b/src/renderer/components/DictationOverlay.tsx@@ -1,13 +1,12 @@// Desktop press-to-talk: shortcut/Dock-mic press starts recording IMMEDIATELY into a compact// bottom-center pill (stop icon + live equalizer + elapsed mm:ss); pressing again (or the pill's-// own stop icon) stops → transcribes → for a terminal target inserts the text directly+// own stop icon) stops → transcribes → inserts the text directly into the target terminal// (`pty.sendText(id, text, { enter: false })`, no Enter — nothing here ever auto-submits) and the-// pill closes; for a chat target (no external draft field to insert into) the transcript opens-// in the v1 editable CARD instead, where the user still presses Send themselves.+// pill closes.//// Two different ways to dismiss, not interchangeable:// - STOP (shortcut second-press / the pill's stop icon) — ends the recording and PROCESSES it-// (transcribe → insert/card).+// (transcribe → insert).// - CANCEL (Esc, or the ×/close affordances) — DISCARDS whatever was being recorded and closes// the whole overlay. Esc mid-recording is cancel, not stop, even though both are triggered by// a "press" — see handleClose vs the stopSignal branch below.@@ -18,10 +17,9 @@ import { createPortal } from 'react-dom'import { equalizerBars } from '../lib/dictation-equalizer'import { PcmCapture } from '../lib/pcm-capture'import { useSession } from '../session/session'-import { useChatSessions } from '../state/chatSessions'export interface DictationTarget {- kind: 'terminal' | 'chat'+ kind: 'terminal'nodeId: stringtitle: string}@@ -45,19 +43,15 @@ export function isProGateError(message: string): boolean {return message.includes('requires nodeterm Pro')}-type Phase = 'idle' | 'recording' | 'transcribing' | 'text'+type Phase = 'idle' | 'recording' | 'transcribing'/** 'warning' = no target at press time (never records). 'pill' = the compact recording/- * transcribing/error capsule — used for BOTH targets while a take is in flight, and for a- * terminal target start to finish (it never reaches 'card'). 'card' = the v1 editable text- * card, reached only once a chat target's take has transcribed successfully (and again if the- * user re-records another take from there — the re-record trip goes back out through 'pill'). */-export type DictationMode = 'warning' | 'pill' | 'card'+ * transcribing/error capsule — the whole surface for a terminal target, start to finish+ * (the transcript is inserted straight into the terminal, so there is no editable card). */+export type DictationMode = 'warning' | 'pill'/** Pure — no side effects. Exported for its own unit coverage. */-export function dictationMode(target: DictationTarget | null, phase: Phase): DictationMode {- if (!target) return 'warning'- if (target.kind === 'chat' && phase === 'text') return 'card'- return 'pill'+export function dictationMode(target: DictationTarget | null): DictationMode {+ return target ? 'pill' : 'warning'}/** mm:ss, floored to whole seconds. Pure — no side effects. */@@ -68,15 +62,6 @@ export function formatElapsed(ms: number): string {return `${m}:${s.toString().padStart(2, '0')}`}-/** Appends a new take's text after any existing text, space-separated; trims both sides. */-export function appendTake(existing: string, take: string): string {- const a = existing.trim()- const b = take.trim()- if (!a) return b- if (!b) return a- return `${a} ${b}`-}-// Faster than the visual 12-bar window needs on its own — the point is to feed more DISTINCT// samples into that scrolling window (see dictation-equalizer.ts) so the equalizer reads as live// motion instead of a slow crawl. PcmCapture.level() (RMS of the last chunk) is cheap enough that@@ -99,17 +84,11 @@ const NO_TARGET_DISMISS_MS = 2500export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }: DictationOverlayProps) {const { api } = useSession()- const addLocalUser = useChatSessions((s) => s.addLocalUser)- const chatWorking = useChatSessions((s) =>- target?.kind === 'chat' ? s.byId[target.nodeId]?.working : undefined- )const [phase, setPhase] = useState<Phase>('idle')- const [text, setText] = useState('')const [error, setError] = useState<string | null>(null)const [elapsedMs, setElapsedMs] = useState(0)const [levelHistory, setLevelHistory] = useState<number[]>([])- const [sending, setSending] = useState(false)const [capped, setCapped] = useState(false)const captureRef = useRef<PcmCapture | null>(null)@@ -164,33 +143,22 @@ export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }:// An in-flight transcription can't be aborted — dropping the result honors the user's// dismissal (nothing may land after a cancel).if (discardedRef.current) return- if (target.kind === 'terminal') {- const ok = await api.pty.sendText(target.nodeId, transcribed, { enter: false })- if (!ok) {- setError('Could not insert — the terminal session is not available.')- setPhase('idle')- return- }- // A stale (remounted-over) instance still delivers its own transcript into the- // terminal — the target closure is per-instance and correct — but must not close the- // parent overlay state: a newer instance (a fresh hold-to-talk press that arrived while- // this one was still transcribing) may be live and recording in it right now.- if (mountedRef.current) onClose()+ const ok = await api.pty.sendText(target.nodeId, transcribed, { enter: false })+ if (!ok) {+ setError('Could not insert — the terminal session is not available.')+ setPhase('idle')return}- // Chat: no external draft field to insert into (see the file header) — open the editable- // card so the user can review/edit and press Send themselves. Appends onto any earlier take- // (re-record from the card).- setText((prev) => appendTake(prev, transcribed))- setPhase('text')+ // A stale (remounted-over) instance still delivers its own transcript into the+ // terminal — the target closure is per-instance and correct — but must not close the+ // parent overlay state: a newer instance (a fresh hold-to-talk press that arrived while+ // this one was still transcribing) may be live and recording in it right now.+ if (mountedRef.current) onClose()} catch (err) {setError(err instanceof Error ? err.message : 'Transcription failed.')- // A chat target with an earlier successful take falls back to the card (keeping that text,- // now alongside the error); everything else (terminal, or no prior text yet) falls back to- // the pill so the user can retry.- setPhase(text.trim() ? 'text' : 'idle')+ setPhase('idle')}- }, [clearTimer, target, api, onClose, text])+ }, [clearTimer, target, api, onClose])const startRecording = useCallback(async () => {if (!target) return@@ -278,8 +246,8 @@ export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }:// A second shortcut/Dock-mic press while this overlay is already open (Canvas bumps// `stopSignal` rather than unmounting us — see DictationOverlayProps). While actively- // recording that means STOP (transcribe → insert/card); in every other phase (warning,- // transcribing, the editable card, an error pill) it means dismiss, same as Esc/×.+ // recording that means STOP (transcribe → insert); in every other phase (warning,+ // transcribing, an error pill) it means dismiss, same as Esc/×.const prevStopSignalRef = useRef(stopSignal)useEffect(() => {if (stopSignal === prevStopSignalRef.current) return@@ -291,39 +259,7 @@ export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }:}}, [stopSignal, phase, stopRecording, handleClose])- const send = useCallback(async () => {- if (!target) return- const value = text.trim()- if (!value) return- setSending(true)- setError(null)- try {- if (target.kind === 'terminal') {- const ok = await api.pty.sendText(target.nodeId, value)- if (!ok) {- setError('Could not send — the terminal session is not available.')- return- }- } else {- api.chat.send(target.nodeId, value)- if (!chatWorking) addLocalUser(target.nodeId, value)- }- onClose()- } catch (err) {- setError(err instanceof Error ? err.message : 'Failed to send.')- } finally {- setSending(false)- }- }, [target, text, api, chatWorking, addLocalUser, onClose])-- const copy = useCallback(() => {- const value = text.trim()- if (!value) return- window.nodeTerminal.clipboard.writeText(value)- }, [text])-- const hasText = !!text.trim()- const mode = dictationMode(target, phase)+ const mode = dictationMode(target)const errorBlock = error && (<div className="dictation__error">@@ -342,7 +278,7 @@ export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }:if (mode === 'warning') {return createPortal(<div className="dictation dictation--warning nodrag nowheel" onMouseDown={(e) => e.stopPropagation()}>- <span className="dictation__warning-text">Select a terminal or chat node first.</span>+ <span className="dictation__warning-text">Select a terminal node first.</span><button type="button" className="dictation__close" title="Dismiss" onClick={handleClose}>×</button>@@ -351,8 +287,9 @@ export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }:)}- if (mode === 'pill') {- return createPortal(+ // mode === 'pill' — the whole surface for a terminal target (a transcribed take is inserted+ // straight into the terminal, so there is no editable card).+ return createPortal(<div className="dictation dictation--pill nodrag nowheel" onMouseDown={(e) => e.stopPropagation()}>{phase === 'recording' && (<div className="dictation__pill">@@ -396,69 +333,6 @@ export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }:</div>,document.body)- }-- // mode === 'card' — chat only, reached once a take has transcribed. v1 editable card, minus- // Insert (chat has no external draft field — see the file header; the quick pill flow above is- // how a terminal target ever gets text inserted, so Insert has no reachable case here at all).- return createPortal(- <div className="dictation dictation--card nodrag nowheel" onMouseDown={(e) => e.stopPropagation()}>- <div className="dictation__head">- <span className="dictation__title">Dictate</span>- <span className="dictation__target">→ {target?.title}</span>- <button type="button" className="dictation__close" title="Close (Esc)" onClick={handleClose}>- ×- </button>- </div>-- <div className="dictation__body">- <div className="dictation__text-row">- <textarea- className="dictation__textarea"- value={text}- onChange={(e) => setText(e.target.value)}- placeholder="Transcribed text…"- autoFocus- spellCheck- />- <button- type="button"- className="dictation__mic dictation__mic--small"- onClick={() => void startRecording()}- title="Record another take (appends)"- >- <MicIcon />- </button>- </div>- </div>-- {errorBlock}-- <div className="dictation__actions">- <button type="button" className="dictation__btn" onClick={copy} disabled={!hasText}>- Copy- </button>- <button- type="button"- className="dictation__btn dictation__btn--primary"- onClick={() => void send()}- disabled={!target || !hasText || sending}- >- Send- </button>- </div>- </div>,- document.body- )-}--function MicIcon() {- return (- <svg width={18} height={18} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.8} strokeLinecap="round" strokeLinejoin="round">- <rect x="9" y="2" width="6" height="12" rx="3" />- <path d="M5 11a7 7 0 0 0 14 0M12 18v4M8 22h8" />- </svg>- )}function PauseIcon() {diff --git a/src/renderer/components/Dock.tsx b/src/renderer/components/Dock.tsxindex 94b317739..380c7bf74 100644--- a/src/renderer/components/Dock.tsx+++ b/src/renderer/components/Dock.tsx@@ -18,7 +18,6 @@ interface DockProps {onAddSticky: () => voidonAddDino: () => voidonAddAgent: (agentId: AgentId, accountId?: string) => void- onAddChat: () => voidonOpenFile: () => voidonAddRemote: () => voidonConnectRemote: () => void@@ -45,7 +44,6 @@ export function Dock({onAddSticky,onAddDino,onAddAgent,- onAddChat,onOpenFile,onAddRemote,onConnectRemote,@@ -137,10 +135,6 @@ export function Dock({<span>{c.label}</span></button>))}- <button onClick={pick(onAddChat)}>- <ChatIcon />- <span>Chat</span>- </button><button onClick={pick(onAddSticky)}><NoteIcon /><span>Sticky Note</span>@@ -294,14 +288,6 @@ function DinoIcon() {</svg>)}-function ChatIcon() {- return (- <svg {...S}>- <path d="M4 5h16v11H9l-4 3v-3H4z" />- <path d="M8 10h8M8 13h5" />- </svg>- )-}function EditorIcon() {return (<svg {...S}>diff --git a/src/renderer/components/kanban/KanbanView.tsx b/src/renderer/components/kanban/KanbanView.tsxindex 8fd39cebc..498a4620e 100644--- a/src/renderer/components/kanban/KanbanView.tsx+++ b/src/renderer/components/kanban/KanbanView.tsx@@ -18,12 +18,12 @@ export interface KanbanSession {id: stringtitle: stringcolor: string- kind: 'terminal' | 'chat' | 'sticky'+ kind: 'terminal' | 'sticky'agentId?: string/** Sticky note body — shown in the expanded detail row. */text?: string/** The subset of the node's `data` the card modal's co-attach terminal needs to spawn/join the- * same session (kind 'terminal' only; sticky/chat pass `{}`). */+ * same session (kind 'terminal' only; sticky passes `{}`). */spawn: ModalSpawn}diff --git a/src/renderer/components/kanban/SessionCard.tsx b/src/renderer/components/kanban/SessionCard.tsxindex de4d7f294..ee692c042 100644--- a/src/renderer/components/kanban/SessionCard.tsx+++ b/src/renderer/components/kanban/SessionCard.tsx@@ -51,7 +51,6 @@ export function SessionCard({<div className="kanban-card__row"><span className="kanban-card__nodedot" style={{ background: session.color }} /><span className="kanban-card__title">{session.title}</span>- {session.kind === 'chat' && <span className="kanban-card__kind">chat</span>}{sticky && <span className="kanban-card__kind">note</span>}{badge === 'running' && <span className="kanban-badge kanban-badge--running">RUNNING</span>}{badge === 'needs' && <span className="kanban-badge kanban-badge--needs">NEEDS YOU</span>}@@ -71,9 +70,7 @@ export function SessionCard({</span>)}{!status?.sessionId && (- <span className="kanban-card__kindlabel">- {session.kind === 'chat' ? 'chat' : 'terminal'}- </span>+ <span className="kanban-card__kindlabel">terminal</span>)}</>)}diff --git a/src/renderer/nodes/ChatNode.tsx b/src/renderer/nodes/ChatNode.tsxdeleted file mode 100644index 2f43d3b82..000000000--- a/src/renderer/nodes/ChatNode.tsx+++ /dev/null@@ -1,396 +0,0 @@-// SDK-driven chat node: token-streaming conversation with Claude, permission cards,-// send-while-working queue. Continuity is resume-based via data.chatSessionId — the-// SDK process dies with the app; history reloads from the on-disk transcript.-import {- useCallback,- useEffect,- useRef,- useState,- type ClipboardEvent,- type DragEvent,- type KeyboardEvent,- type Key-} from 'react'-import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'-import { MarkdownText } from './ChatPanel'-import { useChatSessions } from '../state/chatSessions'-import { useAgentStatus } from '../state/agentStatus'-import { useSession } from '../session/session'-import { accountChipLabel, createDiffNode, type CanvasNode } from '../state/workspace'-import { useSettings } from '../state/settings'-import type { ChatImageAttachment, ChatToolSummary } from '@shared/types'-import { ColumnPill } from '../components/kanban/ColumnPill'--const MAX_IMAGES = 5-const MAX_IMAGE_BYTES = 2 * 1024 * 1024 // 2 MB per image--export default function ChatNode({ id, data, selected }: NodeProps<CanvasNode>) {- // This node's core api (a stable context read — the local session's api IS window.nodeTerminal).- // The boot effect below captures it in its CLOSURE and keeps its `[id]` dep array: it subscribes- // to driver events and starts/reattaches the driver, and re-keying that on `api` would silently- // re-create the driver subscription when 4c makes a remote session's api replaceable.- const { api } = useSession()- const chat = useChatSessions((s) => s.byId[id])- const apply = useChatSessions((s) => s.apply)- const seed = useChatSessions((s) => s.seed)- const addLocalUser = useChatSessions((s) => s.addLocalUser)- const clearError = useChatSessions((s) => s.clearError)- const status = useAgentStatus((s) => s.byId[id])- // The driver's agent-status event lands (IPC) before the store's first delta flips- // chat.working, so OR both — this drives the badge, Stop button and typing indicator.- const working = !!chat?.working || status?.state === 'working'- const { setNodes, addNodes } = useReactFlow()- const claudeAccounts = useSettings((s) => s.settings.claudeAccounts)- const accountChip = accountChipLabel(data.accountId as string | undefined, claudeAccounts)- const [input, setInput] = useState('')- const [images, setImages] = useState<ChatImageAttachment[]>([])- const [attachNote, setAttachNote] = useState<string | null>(null)- // Slash-command popup: an index into the filtered matches, plus a manual-dismiss flag- // (Escape / after completion) so the popup can close without changing the input text.- const [slashIdx, setSlashIdx] = useState(0)- const [slashDismissed, setSlashDismissed] = useState(false)- const msgsRef = useRef<HTMLDivElement>(null)-- // Boot: subscribe to driver events, seed history from disk, start/reattach the driver.- useEffect(() => {- const off = api.chat.onEvent(id, (e) => {- apply(id, e)- if (e.kind === 'session') {- // Persist the session id on the node so a relaunch resumes it.- setNodes((ns) => ns.map((n) => (n.id === id ? { ...n, data: { ...n.data, chatSessionId: e.sessionId } } : n)))- }- })- const own = data.chatSessionId as string | undefined- const forkFrom = data.forkFrom as string | undefined- // Fork path (Task 10): until our own session id arrives, resume the SOURCE session with- // fork:true; once the driver's `session` event persists chatSessionId, forkFrom is ignored.- const sessionId = own ?? forkFrom- const accountId = data.accountId as string | undefined- if (sessionId) void api.chat.readTranscript(sessionId, data.cwd as string | undefined, accountId).then((m) => seed(id, m))- void api.chat.ensure(id, {- cwd: data.cwd as string | undefined,- sessionId,- fork: !own && !!forkFrom ? true : undefined,- accountId- })- return off- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [id])-- // Fork bootstrap: forkFrom carries the source session id until our own id arrives.- // (ensure() above passes fork:true with sessionId=data.forkFrom when set — see Task 10.)-- useEffect(() => {- const el = msgsRef.current- if (el) el.scrollTop = el.scrollHeight- // `working` (not chat.working): the typing indicator is shown off the agent-status event,- // which arrives before any delta touches the store — scroll must follow it too. toolOrder/- // permission keep new tool cards and the permission card in view.- }, [chat?.messages, chat?.streamText, chat?.streamThinking, working, chat?.toolOrder, chat?.permission])-- const send = useCallback(() => {- const text = input.trim()- if (!text && images.length === 0) return- api.chat.send(id, text, images.length ? images : undefined)- if (!chat?.working) addLocalUser(id, text)- setInput('')- setImages([])- setAttachNote(null)- setSlashDismissed(false)- }, [api, input, images, id, chat?.working, addLocalUser])-- // --- Image attachments (paste + drag-drop) -------------------------------- const addFiles = useCallback(- (files: File[]) => {- const imgs = files.filter((f) => f.type.startsWith('image/'))- if (imgs.length === 0) return- let dropped = imgs.length - imgs.filter((f) => f.size <= MAX_IMAGE_BYTES).length // oversized- const ok = imgs.filter((f) => f.size <= MAX_IMAGE_BYTES)- Promise.all(- ok.map(- (f) =>- new Promise<ChatImageAttachment>((resolve, reject) => {- const reader = new FileReader()- reader.onload = () => {- const res = String(reader.result)- // strip the `data:<mime>;base64,` prefix → raw base64- const comma = res.indexOf(',')- resolve({ mediaType: f.type, data: comma >= 0 ? res.slice(comma + 1) : res })- }- reader.onerror = () => reject(reader.error)- reader.readAsDataURL(f)- })- )- ).then((atts) => {- setImages((prev) => {- const room = Math.max(0, MAX_IMAGES - prev.length)- const accepted = atts.slice(0, room)- dropped += atts.length - accepted.length // over the 5-image cap- return accepted.length ? [...prev, ...accepted] : prev- })- setAttachNote(dropped > 0 ? `Skipped ${dropped} file(s) — max ${MAX_IMAGES} images, 2 MB each` : null)- })- },- []- )-- const removeImage = (i: number) => setImages((prev) => prev.filter((_, idx) => idx !== i))-- const onPaste = (e: ClipboardEvent<HTMLTextAreaElement>) => {- const files = Array.from(e.clipboardData?.files ?? [])- if (files.some((f) => f.type.startsWith('image/'))) {- e.preventDefault() // don't also paste the image path/text- addFiles(files)- }- }- const onDrop = (e: DragEvent<HTMLTextAreaElement>) => {- const files = Array.from(e.dataTransfer?.files ?? [])- if (files.length) {- e.preventDefault()- addFiles(files)- }- }- const onDragOver = (e: DragEvent<HTMLTextAreaElement>) => {- if (Array.from(e.dataTransfer?.types ?? []).includes('Files')) e.preventDefault()- }-- // --- Slash-command popup -------------------------------------------------- const trimmed = input.trim()- const slashMatches = trimmed.startsWith('/')- ? (chat?.slashCommands ?? []).filter((c) => c.startsWith(trimmed)).slice(0, 8)- : []- const slashOpen = slashMatches.length > 0 && !slashDismissed- const slashActive = slashOpen ? Math.min(slashIdx, slashMatches.length - 1) : -1-- const completeSlash = (cmd: string) => {- setInput(cmd + ' ')- setSlashDismissed(true) // programmatic setInput doesn't re-open the popup- setSlashIdx(0)- }-- const onInputChange = (value: string) => {- setInput(value)- setSlashIdx(0)- setSlashDismissed(false)- }-- // --- Diff-preview tool card ----------------------------------------------- const openDiff = (filePath?: string) => {- const cwd = data.cwd as string | undefined- if (!filePath || !cwd || !filePath.startsWith(cwd)) return- const rel = filePath.slice(cwd.length).replace(/^\//, '')- if (!rel) return- addNodes(createDiffNode(0, cwd, rel, false)) // false → unstaged (working ↔ index)- }-- const onKeyDown = (e: KeyboardEvent<HTMLTextAreaElement>) => {- if (slashOpen) {- if (e.key === 'ArrowDown') {- e.preventDefault()- setSlashIdx((i) => (i + 1) % slashMatches.length)- return- }- if (e.key === 'ArrowUp') {- e.preventDefault()- setSlashIdx((i) => (i - 1 + slashMatches.length) % slashMatches.length)- return- }- if (e.key === 'Tab' || (e.key === 'Enter' && !e.shiftKey)) {- e.preventDefault()- completeSlash(slashMatches[slashActive])- return- }- if (e.key === 'Escape') {- e.preventDefault()- setSlashDismissed(true)- return- }- }- if (e.key === 'Enter' && !e.shiftKey) {- e.preventDefault()- send()- }- }-- const perm = chat?.permission- const cwd = data.cwd as string | undefined-- // Shared tool-card renderer for both live (toolOrder) and committed (folded into history at- // turn-done) tools, so both get the same summary label + diff-preview click treatment.- const renderTool = (- t: { name: string; arg: string; result?: string; summary?: ChatToolSummary },- key: Key,- open: boolean- ) => {- const diffPath = t.summary?.filePath- const canDiff = !!diffPath && !!cwd && diffPath.startsWith(cwd)- return (- <details key={key} className="term-chat__tool" open={open}>- <summary>- <span className="term-chat__tool-name">{t.name}</span>- <span- className={`term-chat__tool-arg${canDiff ? ' term-chat__tool-arg--link' : ''}`}- title={canDiff ? 'Open diff' : undefined}- onClick={- canDiff- ? (e) => {- e.preventDefault() // don't toggle the <details>- e.stopPropagation()- openDiff(diffPath)- }- : undefined- }- >- {t.summary ? `${t.summary.filePath} +${t.summary.added} −${t.summary.removed}` : t.arg}- </span>- </summary>- {t.result && <pre className="term-chat__tool-result">{t.result}</pre>}- </details>- )- }-- return (- <>- {/* Sibling of the root: .chat-node is overflow:hidden and would clip the half-pill. */}- <ColumnPill nodeId={id} />- <div className={`chat-node${selected ? ' selected' : ''}`} style={{ borderTopColor: data.color }}>- <NodeResizer isVisible={selected} minWidth={360} minHeight={280} />- <div className="chat-node__header">- <span className="chat-node__title">{(data.title as string) || 'Chat'}</span>- {accountChip && (- <span className="node-account-chip" title={accountChip.tooltip}>- {accountChip.short}- </span>- )}- {working && <span className="chat-node__badge chat-node__badge--working">RUNNING</span>}- {perm && <span className="chat-node__badge chat-node__badge--needs">NEEDS YOU</span>}- {/* Cost chip intentionally hidden: the SDK reports an API-equivalent estimate even on- subscription auth, which reads as a real charge. costUsd still accumulates in the- store — re-enable here once auth-aware display (or a settings toggle) exists. */}- </div>- <div className="chat-node__msgs nodrag nowheel" ref={msgsRef}>- {chat?.messages.map((m, i) => (- <div key={i} className={`term-chat__msg term-chat__msg--${m.role}`}>- {m.parts.map((p, j) =>- p.kind === 'text' ? (- <MarkdownText key={j} text={p.text} />- ) : p.kind === 'thinking' ? (- <details key={j} className="chat-node__thinking"><summary>Thinking</summary><MarkdownText text={p.text} /></details>- ) : (- renderTool(p, j, false)- )- )}- </div>- ))}- {/* Pre-stream gap: Enter → first SDK event has a noticeable latency (process/network).- Show a pulsing typing indicator until anything from the turn arrives. */}- {working &&- !chat?.streamText &&- !chat?.streamThinking &&- (chat?.toolOrder.length ?? 0) === 0 && (- <div className="chat-node__typing" aria-label="Claude is thinking">- <span /><span /><span />- </div>- )}- {/* Live turn: streaming thinking + text + tool cards */}- {chat?.streamThinking && (- <details className="chat-node__thinking"><summary>Thinking…</summary><MarkdownText text={chat.streamThinking} /></details>- )}- {chat?.toolOrder.map((tid) => renderTool(chat.tools[tid], tid, !chat.tools[tid].result))}- {chat?.streamText && <div className="term-chat__msg term-chat__msg--assistant"><MarkdownText text={chat.streamText} /></div>}- {/* Non-fatal errors: a dismissible inline line. Fatal errors get the reconnect bar- in place of the compose box (below). */}- {chat?.error && !chat.error.fatal && (- <div className="chat-node__error">- <span>{chat.error.message}</span>- <button className="chat-node__error-dismiss" title="Dismiss" onClick={() => clearError(id)}>×</button>- </div>- )}- {perm && (- <div className="chat-node__permission">- <div className="chat-node__permission-title">Allow {perm.toolName}?</div>- <pre className="chat-node__permission-input">{JSON.stringify(perm.input, null, 2).slice(0, 600)}</pre>- <div className="chat-node__permission-actions">- <button onClick={() => api.chat.permissionReply(id, perm.requestId, { behavior: 'allow' })}>Allow</button>- <button onClick={() => api.chat.permissionReply(id, perm.requestId, { behavior: 'allow', alwaysSession: true })}>Always (session)</button>- <button onClick={() => api.chat.permissionReply(id, perm.requestId, { behavior: 'deny' })}>Deny</button>- </div>- </div>- )}- </div>- {chat && chat.queue.length > 0 && (- <div className="chat-node__queue">- {chat.queue.map((q) => (- <span key={q.id} className="chat-node__queue-item">- {q.text.slice(0, 40)}- <button onClick={() => api.chat.removeQueued(id, q.id)}>×</button>- </span>- ))}- </div>- )}- {(images.length > 0 || attachNote) && (- <div className="chat-node__attach nodrag">- {images.map((img, i) => (- <span key={i} className="chat-node__attach-chip">- <img src={`data:${img.mediaType};base64,${img.data}`} alt="attachment" />- <button onClick={() => removeImage(i)}>×</button>- </span>- ))}- {attachNote && <div className="chat-node__attach-note">{attachNote}</div>}- </div>- )}- {chat?.error?.fatal ? (- <div className="chat-node__errorbar nodrag">- <span className="chat-node__errorbar-msg">{chat.error.message || 'Chat session ended.'}</span>- <button- className="chat-node__errorbar-reconnect"- onClick={() => {- clearError(id)- void api.chat.ensure(id, {- cwd: data.cwd as string | undefined,- sessionId: data.chatSessionId as string | undefined,- accountId: data.accountId as string | undefined- })- }}- >- Reconnect- </button>- </div>- ) : (- <div className="chat-node__compose nodrag">- {slashOpen && (- <div className="chat-node__slash">- {slashMatches.map((c, i) => (- <div- key={c}- className={`chat-node__slash-item${i === slashActive ? ' chat-node__slash-item--active' : ''}`}- onMouseEnter={() => setSlashIdx(i)}- onMouseDown={(e) => {- e.preventDefault() // keep focus on the textarea- completeSlash(c)- }}- >- {c}- </div>- ))}- </div>- )}- <textarea- className="term-chat__input"- value={input}- onChange={(e) => onInputChange(e.target.value)}- onKeyDown={onKeyDown}- onPaste={onPaste}- onDrop={onDrop}- onDragOver={onDragOver}- placeholder={working ? 'Claude is working — message will queue…' : 'Message Claude… (Enter to send)'}- rows={2}- />- {/* Stop = interrupt: the driver's turn-done then auto-flushes the next queued item (Task 5). */}- {working && <button className="chat-node__stop" onClick={() => api.chat.interrupt(id)}>Stop</button>}- </div>- )}- </div>- </>- )-}diff --git a/src/renderer/state/chatSessions.ts b/src/renderer/state/chatSessions.tsdeleted file mode 100644index 5cac44707..000000000--- a/src/renderer/state/chatSessions.ts+++ /dev/null@@ -1,50 +0,0 @@-// src/renderer/state/chatSessions.ts-// Transient per-chat-node conversation state (agentNodes.ts pattern): fed by chat:event-// IPC, seeded from the on-disk transcript, never persisted (the transcript already is).-import { create } from 'zustand'-import type { ChatEvent, ChatMessage } from '@shared/types'-import { applyChatEvent, emptyChatNodeState, type ChatNodeState } from './chatSessionsCore'--interface ChatSessionsStore {- byId: Record<string, ChatNodeState>- apply(nodeId: string, e: ChatEvent): void- seed(nodeId: string, messages: ChatMessage[]): void- addLocalUser(nodeId: string, text: string): void- clearError(nodeId: string): void- drop(nodeId: string): void-}--export const useChatSessions = create<ChatSessionsStore>((set) => ({- byId: {},- apply: (nodeId, e) =>- set((st) => ({ byId: { ...st.byId, [nodeId]: applyChatEvent(st.byId[nodeId] ?? emptyChatNodeState, e) } })),- seed: (nodeId, messages) =>- set((st) => ({- byId: { ...st.byId, [nodeId]: { ...(st.byId[nodeId] ?? emptyChatNodeState), messages } }- })),- addLocalUser: (nodeId, text) =>- set((st) => {- const s = st.byId[nodeId] ?? emptyChatNodeState- return {- byId: {- ...st.byId,- [nodeId]: { ...s, messages: [...s.messages, { role: 'user', parts: [{ kind: 'text', text }] }] }- }- }- }),- clearError: (nodeId) =>- set((st) => {- const s = st.byId[nodeId]- if (!s) return {}- // Clearing the error (Dismiss / Reconnect) must also drop a stale "working" badge and any- // orphaned permission card left behind by a fatal crash mid-turn — otherwise they survive- // the reconnect with no live driver behind them.- return { byId: { ...st.byId, [nodeId]: { ...s, error: undefined, working: false, permission: undefined } } }- }),- drop: (nodeId) =>- set((st) => {- const byId = { ...st.byId }- delete byId[nodeId]- return { byId }- })-}))diff --git a/src/renderer/state/chatSessionsCore.test.ts b/src/renderer/state/chatSessionsCore.test.tsdeleted file mode 100644index 24a8df76c..000000000--- a/src/renderer/state/chatSessionsCore.test.ts+++ /dev/null@@ -1,81 +0,0 @@-// src/renderer/state/chatSessionsCore.test.ts-import { describe, expect, it } from 'vitest'-import { applyChatEvent, emptyChatNodeState } from './chatSessionsCore'--const s0 = emptyChatNodeState--describe('applyChatEvent', () => {- it('accumulates deltas into the stream buffers', () => {- let s = applyChatEvent(s0, { kind: 'delta', block: 'text', text: 'he' })- s = applyChatEvent(s, { kind: 'delta', block: 'text', text: 'y' })- s = applyChatEvent(s, { kind: 'delta', block: 'thinking', text: 'hm' })- expect(s.streamText).toBe('hey')- expect(s.streamThinking).toBe('hm')- })-- it('message commits and clears the stream buffers (reconcile)', () => {- let s = applyChatEvent(s0, { kind: 'delta', block: 'text', text: 'partial…' })- s = applyChatEvent(s, { kind: 'message', msg: { role: 'assistant', parts: [{ kind: 'text', text: 'full' }] } })- expect(s.streamText).toBe('')- expect(s.messages.at(-1)?.parts).toEqual([{ kind: 'text', text: 'full' }])- })-- it('tool + tool-result pair up by toolUseId', () => {- let s = applyChatEvent(s0, { kind: 'tool', toolUseId: 't1', name: 'Bash', arg: 'ls' })- s = applyChatEvent(s, { kind: 'tool-result', toolUseId: 't1', result: 'ok' })- expect(s.tools.t1).toMatchObject({ name: 'Bash', result: 'ok' })- expect(s.toolOrder).toEqual(['t1'])- })-- it('turn-done accumulates cost, clears working + per-turn tool order', () => {- let s = { ...s0, working: true }- s = applyChatEvent(s, { kind: 'turn-done', costUsd: 0.1 })- s = applyChatEvent(s, { kind: 'turn-done', costUsd: 0.05 })- expect(s.costUsd).toBeCloseTo(0.15)- expect(s.working).toBe(false)- expect(s.toolOrder).toEqual([])- })-- it('turn-done folds the turn tools into a committed assistant message, then clears toolOrder', () => {- let s = applyChatEvent(s0, { kind: 'tool', toolUseId: 't1', name: 'Bash', arg: 'ls', summary: undefined })- s = applyChatEvent(s, { kind: 'tool', toolUseId: 't2', name: 'Write', arg: '/f.ts', summary: { filePath: '/f.ts', added: 3, removed: 0 } })- s = applyChatEvent(s, { kind: 'tool-result', toolUseId: 't1', result: 'out' })- s = applyChatEvent(s, { kind: 'turn-done', costUsd: 0.02 })- expect(s.toolOrder).toEqual([])- // A single synthetic assistant message carries both tools in order, preserving result + summary.- expect(s.messages).toEqual([- {- role: 'assistant',- parts: [- { kind: 'tool', name: 'Bash', arg: 'ls', result: 'out', summary: undefined },- { kind: 'tool', name: 'Write', arg: '/f.ts', result: undefined, summary: { filePath: '/f.ts', added: 3, removed: 0 } }- ]- }- ])- })-- it('turn-done with no tools appends no message', () => {- let s = applyChatEvent(s0, { kind: 'message', msg: { role: 'assistant', parts: [{ kind: 'text', text: 'hi' }] } })- const before = s.messages- s = applyChatEvent(s, { kind: 'turn-done', costUsd: 0.01 })- expect(s.messages).toBe(before)- expect(s.toolOrder).toEqual([])- })-- it('permission set + cleared', () => {- let s = applyChatEvent(s0, { kind: 'permission', requestId: 'r1', toolName: 'Bash', input: {} })- expect(s.permission?.requestId).toBe('r1')- s = applyChatEvent(s, { kind: 'permission-done', requestId: 'r1' })- expect(s.permission).toBeUndefined()- })-- it('session stores id + slash commands; queue replaces; error stores', () => {- let s = applyChatEvent(s0, { kind: 'session', sessionId: 'abc', slashCommands: ['/compact'] })- s = applyChatEvent(s, { kind: 'queue', items: [{ id: 'q-1', text: 'next' }] })- s = applyChatEvent(s, { kind: 'error', message: 'boom', fatal: true })- expect(s.sessionId).toBe('abc')- expect(s.slashCommands).toEqual(['/compact'])- expect(s.queue).toEqual([{ id: 'q-1', text: 'next' }])- expect(s.error).toEqual({ message: 'boom', fatal: true })- })-})diff --git a/src/renderer/state/chatSessionsCore.ts b/src/renderer/state/chatSessionsCore.tsdeleted file mode 100644index 7329a5a89..000000000--- a/src/renderer/state/chatSessionsCore.ts+++ /dev/null@@ -1,81 +0,0 @@-// src/renderer/state/chatSessionsCore.ts-// Pure reducer for chat node state — kept out of the zustand store so it's unit-testable-// (same split as noteLink.ts / agentNodes patterns).-import type { ChatEvent, ChatMessage, ChatQueueItem, ChatToolSummary } from '@shared/types'--export interface ChatNodeState {- messages: ChatMessage[]- streamText: string- streamThinking: string- tools: Record<string, { name: string; arg: string; summary?: ChatToolSummary; result?: string }>- toolOrder: string[]- queue: ChatQueueItem[]- permission?: { requestId: string; toolName: string; input: unknown }- slashCommands: string[]- sessionId?: string- costUsd: number- working: boolean- error?: { message: string; fatal?: boolean }-}--export const emptyChatNodeState: ChatNodeState = {- messages: [], streamText: '', streamThinking: '', tools: {}, toolOrder: [],- queue: [], slashCommands: [], costUsd: 0, working: false-}--export function applyChatEvent(s: ChatNodeState, e: ChatEvent): ChatNodeState {- switch (e.kind) {- case 'session':- return { ...s, sessionId: e.sessionId, slashCommands: e.slashCommands }- case 'delta':- return e.block === 'text'- ? { ...s, streamText: s.streamText + e.text, working: true }- : { ...s, streamThinking: s.streamThinking + e.text, working: true }- case 'message':- // The completed assistant message is authoritative — replace the delta-built buffer.- return { ...s, messages: [...s.messages, e.msg], streamText: '', streamThinking: '' }- case 'tool':- return {- ...s,- tools: { ...s.tools, [e.toolUseId]: { name: e.name, arg: e.arg, summary: e.summary } },- toolOrder: [...s.toolOrder, e.toolUseId]- }- case 'tool-result': {- const t = s.tools[e.toolUseId]- if (!t) return s- return { ...s, tools: { ...s.tools, [e.toolUseId]: { ...t, result: e.result } } }- }- case 'permission':- return { ...s, permission: { requestId: e.requestId, toolName: e.toolName, input: e.input } }- case 'permission-done':- return s.permission?.requestId === e.requestId ? { ...s, permission: undefined } : s- case 'turn-done': {- // Tool calls stream as live cards (toolOrder) but the completed 'message' event carries- // only text/thinking. Before clearing toolOrder at turn end, fold this turn's tools into- // committed history as a synthetic assistant message so the cards (incl. diff-preview- // links) survive the turn instead of vanishing until a transcript reload.- const committed: ChatMessage[] =- s.toolOrder.length > 0- ? [- {- role: 'assistant',- parts: s.toolOrder.map((id) => {- const t = s.tools[id]- return { kind: 'tool', name: t.name, arg: t.arg, result: t.result, summary: t.summary }- })- }- ]- : []- return {- ...s,- messages: committed.length ? [...s.messages, ...committed] : s.messages,- working: false, toolOrder: [], streamText: '', streamThinking: '',- costUsd: s.costUsd + (e.costUsd ?? 0)- }- }- case 'queue':- return { ...s, queue: e.items }- case 'error':- return { ...s, error: { message: e.message, fatal: e.fatal } }- }-}diff --git a/src/renderer/state/workspace.chat.test.ts b/src/renderer/state/workspace.chat.test.tsdeleted file mode 100644index 5e3d6eaa9..000000000--- a/src/renderer/state/workspace.chat.test.ts+++ /dev/null@@ -1,29 +0,0 @@-import { describe, it, expect } from 'vitest'-import { createChatNode, nodeStatesToFlow, flowToNodeStates } from './workspace'--describe('chat node', () => {- it('createChatNode carries kind chat + cwd + optional session id', () => {- const n = createChatNode(0, '/work', undefined, { chatSessionId: 'sess-1' })- expect(n.type).toBe('chat')- expect(n.data.cwd).toBe('/work')- expect(n.data.chatSessionId).toBe('sess-1')- })-- it('round-trips chat kind + chatSessionId through both serializers (resume survives restart)', () => {- const round = nodeStatesToFlow(- flowToNodeStates([createChatNode(0, '/work', undefined, { chatSessionId: 'sess-1' })])- )- const c = round.find((n) => n.type === 'chat')!- expect(c.type).toBe('chat')- expect(c.data.cwd).toBe('/work')- expect(c.data.chatSessionId).toBe('sess-1')- })-- it('does NOT persist forkFrom (one-shot bootstrap, like initialCommand)', () => {- const round = nodeStatesToFlow(- flowToNodeStates([createChatNode(0, '/work', undefined, { forkFrom: 'source-sess' })])- )- const c = round.find((n) => n.type === 'chat')!- expect(c.data.forkFrom).toBeUndefined()- })-})diff --git a/src/renderer/state/workspace.test.ts b/src/renderer/state/workspace.test.tsindex bf3a7c3c5..1a9464b48 100644--- a/src/renderer/state/workspace.test.ts+++ b/src/renderer/state/workspace.test.ts@@ -2,7 +2,6 @@ import { describe, it, expect } from 'vitest'import {createAccountLoginNode,createAgentNode,- createChatNode,createDinoNode,flowToNodeStates,groupSelectedNodes,@@ -229,10 +228,6 @@ describe('accountId on Claude node factories', () => {const node = createAgentNode('claude', 0)expect(node.data.accountId).toBeUndefined()})- it('stamps accountId onto a chat node', () => {- const node = createChatNode(0, undefined, undefined, undefined, 'a1')- expect(node.data.accountId).toBe('a1')- })})describe('accountId serialization', () => {@@ -297,6 +292,29 @@ describe('dino node serialization', () => {})})+describe('chat node tombstone', () => {+ it('converts a persisted chat node into a sticky with the resume hint', () => {+ const flow = nodeStatesToFlow([+ {+ id: 'chat-1', kind: 'chat', x: 10, y: 20, width: 420, height: 520,+ title: 'API brainstorm', color: '#8b5cf6', chatSessionId: 'sess-abc123'+ } as any+ ])+ expect(flow).toHaveLength(1)+ const n = flow[0]+ expect(n.type).toBe('sticky')+ expect(n.position).toEqual({ x: 10, y: 20 })+ expect(n.data.title).toBe('API brainstorm')+ expect(String(n.data.text)).toContain('claude --resume sess-abc123')+ })+ it('converts a chat node without a session id into a plain explanatory sticky', () => {+ const flow = nodeStatesToFlow([{ id: 'chat-2', kind: 'chat', x: 0, y: 0 } as any])+ expect(flow[0].type).toBe('sticky')+ expect(String(flow[0].data.text)).toContain('removed')+ expect(String(flow[0].data.text)).not.toContain('--resume')+ })+})+describe('createAgentNode permission mode', () => {it('appends the flag for claude', () => {const node = createAgentNode('claude', 0, undefined, undefined, undefined, undefined, undefined, 'auto')diff --git a/src/renderer/state/workspace.ts b/src/renderer/state/workspace.tsindex e6b4be633..0a631534b 100644--- a/src/renderer/state/workspace.ts+++ b/src/renderer/state/workspace.ts@@ -35,7 +35,6 @@ const DINO_SIZE = { width: 600, height: 200 }const VIDEO_SIZE = { width: 640, height: 420 }const WEB_SIZE = { width: 720, height: 520 }const BROWSER_SIZE = { width: 800, height: 560 }-const CHAT_SIZE = { width: 420, height: 380 }/** Height of a node when collapsed (header only). */export const COLLAPSED_HEIGHT = 40@@ -107,16 +106,6 @@ export interface NodeData {* SSH-project editor still routes to the remote fs after reopen.*/sshFs?: boolean- /**- * chat-only: the SDK session id of this chat node's conversation. Persisted so a relaunch- * resumes the on-disk transcript (the SDK process dies with the app).- */- chatSessionId?: string- /**- * chat-only: source session id to fork from on first boot (Task 10). One-shot bootstrap —- * NOT persisted (like initialCommand); once the node's own chatSessionId arrives it's ignored.- */- forkFrom?: string[key: string]: unknown}@@ -534,34 +523,6 @@ export function createBrowserNode(}}-/** Creates an SDK-driven chat node (Claude conversation without a terminal). */-export function createChatNode(- index: number,- cwd?: string,- center?: { x: number; y: number },- init?: { chatSessionId?: string; forkFrom?: string },- accountId?: string-): CanvasNode {- return {- id: nextId('chat'),- type: 'chat',- position: placeAt(center, index, CHAT_SIZE.width, CHAT_SIZE.height),- width: CHAT_SIZE.width,- height: CHAT_SIZE.height,- style: { width: CHAT_SIZE.width, height: CHAT_SIZE.height },- data: {- title: 'Chat',- color: '#d97757', // clay, matches agent nodes- group: null,- // Chat nodes are always Claude — stamp the account when one was resolved/inherited.- ...(accountId ? { accountId } : {}),- ...(cwd ? { cwd } : {}),- ...(init?.chatSessionId ? { chatSessionId: init.chatSessionId } : {}),- ...(init?.forkFrom ? { forkFrom: init.forkFrom } : {})- }- }-}-/** Creates a diff editor node for a changed file (relative path + repo cwd). */export function createDiffNode(index: number,@@ -918,7 +879,30 @@ export function nodeStatesToFlow(states: CanvasNodeState[]): CanvasNode[] {if ((a.kind === 'group') === (b.kind === 'group')) return 0return a.kind === 'group' ? -1 : 1})- return ordered.map((n) => {+ return ordered.map((raw) => {+ // The SDK chat node was removed (2026-07). A persisted chat node degrades into a sticky that+ // keeps its place and tells the user how to continue the conversation — chat sessions are+ // ordinary Claude sessions, resumable in any terminal. (position/size are normalized+ // defensively so a legacy chat node still lands even if its shape is minimal.)+ let n = raw+ // Legacy read: `chat` is no longer a NodeKind, so a persisted chat node arrives as an+ // unknown-kind blob — detect it by its string kind and read its old `chatSessionId` field.+ if ((n.kind as string) === 'chat') {+ const chatSessionId = (n as { chatSessionId?: string }).chatSessionId+ const resume = chatSessionId+ ? `\n\nContinue it in a terminal:\nclaude --resume ${chatSessionId}`+ : ''+ n = {+ ...n,+ kind: 'sticky',+ position: n.position ?? { x: (n as { x?: number }).x ?? 0, y: (n as { y?: number }).y ?? 0 },+ size: n.size ?? {+ width: (n as { width?: number }).width ?? STICKY_SIZE.width,+ height: (n as { height?: number }).height ?? STICKY_SIZE.height+ },+ text: `This was a chat node — the chat node type was removed.${resume}`+ }+ }const collapsed = !!n.collapsedconst height = collapsed ? COLLAPSED_HEIGHT : n.size.height// Legacy migration: nodes saved before `agentId` existed marked Claude via the 'claude'@@ -958,8 +942,7 @@ export function nodeStatesToFlow(states: CanvasNodeState[]): CanvasNode[] {ssh: n.ssh,sshRemoteTmux: n.sshRemoteTmux,sshFs: n.sshFs,- worktree: n.worktree,- chatSessionId: n.chatSessionId+ worktree: n.worktree}}})@@ -984,9 +967,7 @@ export function flowToNodeStates(nodes: CanvasNode[]): CanvasNodeState[] {? WEB_SIZE: kind === 'dino'? DINO_SIZE- : kind === 'chat'- ? CHAT_SIZE- : TERMINAL_SIZE+ : TERMINAL_SIZEreturn nodes.map((n) => {const kind: NodeKind = (n.type as NodeKind) ?? 'terminal'@@ -1023,8 +1004,7 @@ export function flowToNodeStates(nodes: CanvasNode[]): CanvasNodeState[] {ssh: n.data.ssh,sshRemoteTmux: n.data.sshRemoteTmux,sshFs: n.data.sshFs,- worktree: n.data.worktree,- chatSessionId: n.data.chatSessionId+ worktree: n.data.worktree}})}@@ -1038,7 +1018,7 @@ export function flowToNodeStates(nodes: CanvasNode[]): CanvasNodeState[] {* every peer mutation — 20 times a second while a teammate drags:* - SELECTION. `nodeStatesToFlow` never sets `selected`, so a teammate's drag wiped your* box-select / shift-click / select-then-group the instant it landed.- * - LOCAL-ONLY DATA. `initialCommand`, `respawnNonce`, `forkFrom` never survive a serialize.+ * - LOCAL-ONLY DATA. `initialCommand`, `respawnNonce` never survive a serialize.* - IDENTITY. Every node object was rebuilt → every node component re-rendered, per mutation.* Patching in place keeps all four: untouched nodes keep their object identity (React.memo holds),* and the touched one keeps `selected` and its local-only data.@@ -1068,7 +1048,7 @@ export function applyMutationToFlow(nodes: CanvasNode[], m: CanvasMutation): Cannext[idx] = {...incoming,selected: prev.selected,- // Local-only data (initialCommand / respawnNonce / remote / forkFrom) is not serialized, so it+ // Local-only data (initialCommand / respawnNonce / remote) is not serialized, so it// is not in `incoming` — carry it. Every serialized key IS present on incoming.data (as a value// or an explicit undefined), so the spread still applies the peer's clears.//diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 400ea523d..9fc742abb 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -4700,9 +4700,12 @@ body,align-items: center;gap: 4px;}-/* While the popover is open, rise above the sessions sidebar (z-index 12) — a tall- sidebar reaches the bottom-left corner and would cover the panel. Closed pill keeps- its low layer so it never draws over the sidebar itself. */+/* While the popover is open, rise above the sessions sidebar (z-index 12) — a tall sidebar+ reaches the bottom-left corner and would cover the panel. Closed pill keeps its low layer so+ it never draws over the sidebar itself.+ This ONLY works because the indicator is mounted OUTSIDE <ReactFlow> (see Canvas.tsx): the+ library's wrapper carries inline `z-index: 0`, a stacking context that would trap any inner+ z-index below the sidebar no matter its value. */.usage-indicator:has(.usage-popover) {z-index: 13;}diff --git a/src/shared/ipc.ts b/src/shared/ipc.tsindex d9bd759f0..81a2bb974 100644--- a/src/shared/ipc.ts+++ b/src/shared/ipc.ts@@ -21,13 +21,6 @@ export const IPC = {ptyReadSessionName: 'pty:read-session-name',claudeReadTranscript: 'claude:read-transcript',chatReadTranscript: 'chat:read-transcript',- chatEnsure: 'chat:ensure',- chatSend: 'chat:send',- chatInterrupt: 'chat:interrupt',- chatPermissionReply: 'chat:permission-reply',- chatRemoveQueued: 'chat:remove-queued',- chatDispose: 'chat:dispose',- chatEvent: (nodeId: string) => `chat:event:${nodeId}`,claudeAccountsAdd: 'claude-accounts:add',claudeAccountsWaitLogin: 'claude-accounts:wait-login',claudeAccountsCancelWait: 'claude-accounts:cancel-wait',@@ -60,7 +53,7 @@ export const IPC = {* the local fs.watch (or the desktop-ssh 5s poll); the last one stops it. */boardLogSubscribe: 'board-log:subscribe',boardLogUnsubscribe: 'board-log:unsubscribe',- /** Per-project push fired when a project's board log changes (mirrors ptyData/chatEvent naming). */+ /** Per-project push fired when a project's board log changes (mirrors the ptyData naming). */boardLogChanged: (projectId: string) => `board-log:changed:${projectId}`,appUpdateAvailable: 'app:update-available',appUpdateDownloaded: 'app:update-downloaded',diff --git a/src/shared/types.ts b/src/shared/types.tsindex 5aa6ca08d..f48d5cc41 100644--- a/src/shared/types.ts+++ b/src/shared/types.ts@@ -91,7 +91,7 @@ export interface RecycledInfo {}// 'subagent' and 'loop' are render-only (ephemeral hook-driven viz) and never persisted.-export type NodeKind = 'terminal' | 'sticky' | 'group' | 'editor' | 'diff' | 'video' | 'web' | 'browser' | 'subagent' | 'loop' | 'dino' | 'chat'+export type NodeKind = 'terminal' | 'sticky' | 'group' | 'editor' | 'diff' | 'video' | 'web' | 'browser' | 'subagent' | 'loop' | 'dino'/** Persisted state of a single canvas node (terminal, sticky note, group frame, or editor). */export interface CanvasNodeState {@@ -151,8 +151,6 @@ export interface CanvasNodeState {commitOid?: string/** group-only: when bound, the git worktree this group works in. */worktree?: GroupWorktree- /** chat-only: SDK session id of this chat node's conversation, persisted so a relaunch resumes it. */- chatSessionId?: string}/**@@ -1188,34 +1186,6 @@ export interface ChatToolSummary {removed?: number}-/** One queued (not-yet-sent) chat input. */-export interface ChatQueueItem {- id: string- text: string-}--/** A base64-encoded image attachment sent with a chat message. */-export interface ChatImageAttachment {- mediaType: string- data: string // base64-}--/** The renderer's reply to a chat permission request. */-export type ChatPermissionDecision = { behavior: 'allow' | 'deny'; alwaysSession?: boolean }--/** One streamed chat-driver event, pushed on chat:event:<nodeId>. */-export type ChatEvent =- | { kind: 'session'; sessionId: string; slashCommands: string[] }- | { kind: 'delta'; block: 'text' | 'thinking'; text: string }- | { kind: 'message'; msg: ChatMessage }- | { kind: 'tool'; toolUseId: string; name: string; arg: string; summary?: ChatToolSummary }- | { kind: 'tool-result'; toolUseId: string; result: string }- | { kind: 'permission'; requestId: string; toolName: string; input: unknown }- | { kind: 'permission-done'; requestId: string }- | { kind: 'turn-done'; costUsd?: number; usage?: { inputTokens: number; outputTokens: number } }- | { kind: 'queue'; items: ChatQueueItem[] }- | { kind: 'error'; message: string; fatal?: boolean }-export interface ChatApi {/*** Reads a Claude session transcript as structured chat messages ([] if unavailable).@@ -1227,18 +1197,6 @@ export interface ChatApi {cwd: string | undefined,accountId?: string): Promise<ChatMessage[]>- /** Start (or reattach) the driver for a node. fork=true resumes by forking (terminal takeover). */- ensure(- nodeId: string,- opts: { cwd?: string; sessionId?: string; fork?: boolean; accountId?: string }- ): Promise<{ ok: boolean; error?: string }>- send(nodeId: string, text: string, images?: ChatImageAttachment[]): void- interrupt(nodeId: string): void- permissionReply(nodeId: string, requestId: string, decision: ChatPermissionDecision): void- removeQueued(nodeId: string, queueId: string): void- /** Node closed for good: kill the driver process. */- dispose(nodeId: string): void- onEvent(nodeId: string, listener: (e: ChatEvent) => void): () => void}/** Optional SSH context for account ops. When `projectId` names a connected SSH project, the