The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
security: add SSRF protection to proxy_localhost, fix npm vulnerabilities
PurpleDoubleDc0f182d06e58
diff --git a/.gitignore b/.gitignoreindex 89c298c9..e8b5331f 100644--- a/.gitignore+++ b/.gitignore@@ -51,5 +51,9 @@ replace_shield.pyscripts/analyze_banner.pyscripts/replace_logo.py+# Test artifacts+codex-api/+test-codex.txt+# OSThumbs.dbdiff --git a/package-lock.json b/package-lock.jsonindex 0a435fe8..6a7f3366 100644--- a/package-lock.json+++ b/package-lock.json@@ -310,20 +310,20 @@"license": "Apache-2.0"},"node_modules/@emnapi/core": {- "version": "1.9.1",- "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.1.tgz",- "integrity": "sha512-mukuNALVsoix/w1BJwFzwXBN/dHeejQtuVzcDsfOEsdpCumXb/E9j8w11h5S54tT1xhifGfbbSm/ICrObRb3KA==",+ "version": "1.9.2",+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.2.tgz",+ "integrity": "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==","license": "MIT","optional": true,"dependencies": {- "@emnapi/wasi-threads": "1.2.0",+ "@emnapi/wasi-threads": "1.2.1","tslib": "^2.4.0"}},"node_modules/@emnapi/runtime": {- "version": "1.9.1",- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.1.tgz",- "integrity": "sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==",+ "version": "1.9.2",+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.2.tgz",+ "integrity": "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==","license": "MIT","optional": true,"dependencies": {@@ -331,9 +331,9 @@}},"node_modules/@emnapi/wasi-threads": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz",- "integrity": "sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==",+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",+ "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==","license": "MIT","optional": true,"dependencies": {@@ -863,25 +863,27 @@}},"node_modules/@napi-rs/wasm-runtime": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz",- "integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==",+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.3.tgz",+ "integrity": "sha512-xK9sGVbJWYb08+mTJt3/YV24WxvxpXcXtP6B172paPZ+Ts69Re9dAr7lKwJoeIx8OoeuimEiRZ7umkiUVClmmQ==","license": "MIT","optional": true,"dependencies": {- "@emnapi/core": "^1.7.1",- "@emnapi/runtime": "^1.7.1","@tybys/wasm-util": "^0.10.1"},"funding": {"type": "github","url": "https://github.com/sponsors/Brooooooklyn"+ },+ "peerDependencies": {+ "@emnapi/core": "^1.7.1",+ "@emnapi/runtime": "^1.7.1"}},"node_modules/@oxc-project/types": {- "version": "0.122.0",- "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.122.0.tgz",- "integrity": "sha512-oLAl5kBpV4w69UtFZ9xqcmTi+GENWOcPF7FCrczTiBbmC0ibXxCwyvZGbO39rCVEuLGAZM84DH0pUIyyv/YJzA==",+ "version": "0.124.0",+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.124.0.tgz",+ "integrity": "sha512-VBFWMTBvHxS11Z5Lvlr3IWgrwhMTXV+Md+EQF0Xf60+wAdsGFTBx7X7K/hP4pi8N7dcm1RvcHwDxZ16Qx8keUg==","license": "MIT","funding": {"url": "https://github.com/sponsors/Boshen"@@ -976,9 +978,9 @@}},"node_modules/@rolldown/binding-android-arm64": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.11.tgz",- "integrity": "sha512-SJ+/g+xNnOh6NqYxD0V3uVN4W3VfnrGsC9/hoglicgTNfABFG9JjISvkkU0dNY84MNHLWyOgxP9v9Y9pX4S7+A==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.15.tgz",+ "integrity": "sha512-YYe6aWruPZDtHNpwu7+qAHEMbQ/yRl6atqb/AhznLTnD3UY99Q1jE7ihLSahNWkF4EqRPVC4SiR4O0UkLK02tA==","cpu": ["arm64"],@@ -992,9 +994,9 @@}},"node_modules/@rolldown/binding-darwin-arm64": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.11.tgz",- "integrity": "sha512-7WQgR8SfOPwmDZGFkThUvsmd/nwAWv91oCO4I5LS7RKrssPZmOt7jONN0cW17ydGC1n/+puol1IpoieKqQidmg==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.15.tgz",+ "integrity": "sha512-oArR/ig8wNTPYsXL+Mzhs0oxhxfuHRfG7Ikw7jXsw8mYOtk71W0OkF2VEVh699pdmzjPQsTjlD1JIOoHkLP1Fg==","cpu": ["arm64"],@@ -1008,9 +1010,9 @@}},"node_modules/@rolldown/binding-darwin-x64": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.11.tgz",- "integrity": "sha512-39Ks6UvIHq4rEogIfQBoBRusj0Q0nPVWIvqmwBLaT6aqQGIakHdESBVOPRRLacy4WwUPIx4ZKzfZ9PMW+IeyUQ==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.15.tgz",+ "integrity": "sha512-YzeVqOqjPYvUbJSWJ4EDL8ahbmsIXQpgL3JVipmN+MX0XnXMeWomLN3Fb+nwCmP/jfyqte5I3XRSm7OfQrbyxw==","cpu": ["x64"],@@ -1024,9 +1026,9 @@}},"node_modules/@rolldown/binding-freebsd-x64": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.11.tgz",- "integrity": "sha512-jfsm0ZHfhiqrvWjJAmzsqiIFPz5e7mAoCOPBNTcNgkiid/LaFKiq92+0ojH+nmJmKYkre4t71BWXUZDNp7vsag==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.15.tgz",+ "integrity": "sha512-9Erhx956jeQ0nNTyif1+QWAXDRD38ZNjr//bSHrt6wDwB+QkAfl2q6Mn1k6OBPerznjRmbM10lgRb1Pli4xZPw==","cpu": ["x64"],@@ -1040,9 +1042,9 @@}},"node_modules/@rolldown/binding-linux-arm-gnueabihf": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.11.tgz",- "integrity": "sha512-zjQaUtSyq1nVe3nxmlSCuR96T1LPlpvmJ0SZy0WJFEsV4kFbXcq2u68L4E6O0XeFj4aex9bEauqjW8UQBeAvfQ==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.15.tgz",+ "integrity": "sha512-cVwk0w8QbZJGTnP/AHQBs5yNwmpgGYStL88t4UIaqcvYJWBfS0s3oqVLZPwsPU6M0zlW4GqjP0Zq5MnAGwFeGA==","cpu": ["arm"],@@ -1056,9 +1058,9 @@}},"node_modules/@rolldown/binding-linux-arm64-gnu": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.11.tgz",- "integrity": "sha512-WMW1yE6IOnehTcFE9eipFkm3XN63zypWlrJQ2iF7NrQ9b2LDRjumFoOGJE8RJJTJCTBAdmLMnJ8uVitACUUo1Q==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.15.tgz",+ "integrity": "sha512-eBZ/u8iAK9SoHGanqe/jrPnY0JvBN6iXbVOsbO38mbz+ZJsaobExAm1Iu+rxa4S1l2FjG0qEZn4Rc6X8n+9M+w==","cpu": ["arm64"],@@ -1072,9 +1074,9 @@}},"node_modules/@rolldown/binding-linux-arm64-musl": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.11.tgz",- "integrity": "sha512-jfndI9tsfm4APzjNt6QdBkYwre5lRPUgHeDHoI7ydKUuJvz3lZeCfMsI56BZj+7BYqiKsJm7cfd/6KYV7ubrBg==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.15.tgz",+ "integrity": "sha512-ZvRYMGrAklV9PEkgt4LQM6MjQX2P58HPAuecwYObY2DhS2t35R0I810bKi0wmaYORt6m/2Sm+Z+nFgb0WhXNcQ==","cpu": ["arm64"],@@ -1088,9 +1090,9 @@}},"node_modules/@rolldown/binding-linux-ppc64-gnu": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.11.tgz",- "integrity": "sha512-ZlFgw46NOAGMgcdvdYwAGu2Q+SLFA9LzbJLW+iyMOJyhj5wk6P3KEE9Gct4xWwSzFoPI7JCdYmYMzVtlgQ+zfw==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.15.tgz",+ "integrity": "sha512-VDpgGBzgfg5hLg+uBpCLoFG5kVvEyafmfxGUV0UHLcL5irxAK7PKNeC2MwClgk6ZAiNhmo9FLhRYgvMmedLtnQ==","cpu": ["ppc64"],@@ -1104,9 +1106,9 @@}},"node_modules/@rolldown/binding-linux-s390x-gnu": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.11.tgz",- "integrity": "sha512-hIOYmuT6ofM4K04XAZd3OzMySEO4K0/nc9+jmNcxNAxRi6c5UWpqfw3KMFV4MVFWL+jQsSh+bGw2VqmaPMTLyw==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.15.tgz",+ "integrity": "sha512-y1uXY3qQWCzcPgRJATPSOUP4tCemh4uBdY7e3EZbVwCJTY3gLJWnQABgeUetvED+bt1FQ01OeZwvhLS2bpNrAQ==","cpu": ["s390x"],@@ -1120,9 +1122,9 @@}},"node_modules/@rolldown/binding-linux-x64-gnu": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.11.tgz",- "integrity": "sha512-qXBQQO9OvkjjQPLdUVr7Nr2t3QTZI7s4KZtfw7HzBgjbmAPSFwSv4rmET9lLSgq3rH/ndA3ngv3Qb8l2njoPNA==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.15.tgz",+ "integrity": "sha512-023bTPBod7J3Y/4fzAN6QtpkSABR0rigtrwaP+qSEabUh5zf6ELr9Nc7GujaROuPY3uwdSIXWrvhn1KxOvurWA==","cpu": ["x64"],@@ -1136,9 +1138,9 @@}},"node_modules/@rolldown/binding-linux-x64-musl": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.11.tgz",- "integrity": "sha512-/tpFfoSTzUkH9LPY+cYbqZBDyyX62w5fICq9qzsHLL8uTI6BHip3Q9Uzft0wylk/i8OOwKik8OxW+QAhDmzwmg==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.15.tgz",+ "integrity": "sha512-witB2O0/hU4CgfOOKUoeFgQ4GktPi1eEbAhaLAIpgD6+ZnhcPkUtPsoKKHRzmOoWPZue46IThdSgdo4XneOLYw==","cpu": ["x64"],@@ -1152,9 +1154,9 @@}},"node_modules/@rolldown/binding-openharmony-arm64": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.11.tgz",- "integrity": "sha512-mcp3Rio2w72IvdZG0oQ4bM2c2oumtwHfUfKncUM6zGgz0KgPz4YmDPQfnXEiY5t3+KD/i8HG2rOB/LxdmieK2g==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.15.tgz",+ "integrity": "sha512-UCL68NJ0Ud5zRipXZE9dF5PmirzJE4E4BCIOOssEnM7wLDsxjc6Qb0sGDxTNRTP53I6MZpygyCpY8Aa8sPfKPg==","cpu": ["arm64"],@@ -1168,25 +1170,27 @@}},"node_modules/@rolldown/binding-wasm32-wasi": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.11.tgz",- "integrity": "sha512-LXk5Hii1Ph9asuGRjBuz8TUxdc1lWzB7nyfdoRgI0WGPZKmCxvlKk8KfYysqtr4MfGElu/f/pEQRh8fcEgkrWw==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.15.tgz",+ "integrity": "sha512-ApLruZq/ig+nhaE7OJm4lDjayUnOHVUa77zGeqnqZ9pn0ovdVbbNPerVibLXDmWeUZXjIYIT8V3xkT58Rm9u5Q==","cpu": ["wasm32"],"license": "MIT","optional": true,"dependencies": {- "@napi-rs/wasm-runtime": "^1.1.1"+ "@emnapi/core": "1.9.2",+ "@emnapi/runtime": "1.9.2",+ "@napi-rs/wasm-runtime": "^1.1.3"},"engines": {"node": ">=14.0.0"}},"node_modules/@rolldown/binding-win32-arm64-msvc": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.11.tgz",- "integrity": "sha512-dDwf5otnx0XgRY1yqxOC4ITizcdzS/8cQ3goOWv3jFAo4F+xQYni+hnMuO6+LssHHdJW7+OCVL3CoU4ycnh35Q==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.15.tgz",+ "integrity": "sha512-KmoUoU7HnN+Si5YWJigfTws1jz1bKBYDQKdbLspz0UaqjjFkddHsqorgiW1mxcAj88lYUE6NC/zJNwT+SloqtA==","cpu": ["arm64"],@@ -1200,9 +1204,9 @@}},"node_modules/@rolldown/binding-win32-x64-msvc": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.11.tgz",- "integrity": "sha512-LN4/skhSggybX71ews7dAj6r2geaMJfm3kMbK2KhFMg9B10AZXnKoLCVVgzhMHL0S+aKtr4p8QbAW8k+w95bAA==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.15.tgz",+ "integrity": "sha512-3P2A8L+x75qavWLe/Dll3EYBJLQmtkJN8rfh+U/eR3MqMgL/h98PhYI+JFfXuDPgPeCB7iZAKiqii5vqOvnA0g==","cpu": ["x64"],@@ -2120,9 +2124,9 @@}},"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {- "version": "5.0.4",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.4.tgz",- "integrity": "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==",+ "version": "5.0.5",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz",+ "integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==","dev": true,"license": "MIT","dependencies": {@@ -2533,9 +2537,9 @@"license": "MIT"},"node_modules/brace-expansion": {- "version": "1.1.12",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",- "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "version": "1.1.13",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz",+ "integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==","dev": true,"license": "MIT","dependencies": {@@ -5835,13 +5839,13 @@}},"node_modules/rolldown": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.11.tgz",- "integrity": "sha512-NRjoKMusSjfRbSYiH3VSumlkgFe7kYAa3pzVOsVYVFY3zb5d7nS+a3KGQ7hJKXuYWbzJKPVQ9Wxq2UvyK+ENpw==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.15.tgz",+ "integrity": "sha512-Ff31guA5zT6WjnGp0SXw76X6hzGRk/OQq2hE+1lcDe+lJdHSgnSX6nK3erbONHyCbpSj9a9E+uX/OvytZoWp2g==","license": "MIT","dependencies": {- "@oxc-project/types": "=0.122.0",- "@rolldown/pluginutils": "1.0.0-rc.11"+ "@oxc-project/types": "=0.124.0",+ "@rolldown/pluginutils": "1.0.0-rc.15"},"bin": {"rolldown": "bin/cli.mjs"@@ -5850,27 +5854,27 @@"node": "^20.19.0 || >=22.12.0"},"optionalDependencies": {- "@rolldown/binding-android-arm64": "1.0.0-rc.11",- "@rolldown/binding-darwin-arm64": "1.0.0-rc.11",- "@rolldown/binding-darwin-x64": "1.0.0-rc.11",- "@rolldown/binding-freebsd-x64": "1.0.0-rc.11",- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.11",- "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.11",- "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.11",- "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.11",- "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.11",- "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.11",- "@rolldown/binding-linux-x64-musl": "1.0.0-rc.11",- "@rolldown/binding-openharmony-arm64": "1.0.0-rc.11",- "@rolldown/binding-wasm32-wasi": "1.0.0-rc.11",- "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.11",- "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.11"+ "@rolldown/binding-android-arm64": "1.0.0-rc.15",+ "@rolldown/binding-darwin-arm64": "1.0.0-rc.15",+ "@rolldown/binding-darwin-x64": "1.0.0-rc.15",+ "@rolldown/binding-freebsd-x64": "1.0.0-rc.15",+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.15",+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.15",+ "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.15",+ "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.15",+ "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.15",+ "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.15",+ "@rolldown/binding-linux-x64-musl": "1.0.0-rc.15",+ "@rolldown/binding-openharmony-arm64": "1.0.0-rc.15",+ "@rolldown/binding-wasm32-wasi": "1.0.0-rc.15",+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.15",+ "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.15"}},"node_modules/rolldown/node_modules/@rolldown/pluginutils": {- "version": "1.0.0-rc.11",- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.11.tgz",- "integrity": "sha512-xQO9vbwBecJRv9EUcQ/y0dzSTJgA7Q6UVN7xp6B81+tBGSLVAK03yJ9NkJaUA7JFD91kbjxRSC/mDnmvXzbHoQ==",+ "version": "1.0.0-rc.15",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.15.tgz",+ "integrity": "sha512-UromN0peaE53IaBRe9W7CjrZgXl90fqGpK+mIZbA3qSTeYqg3pqpROBdIPvOG3F5ereDHNwoHBI2e50n1BDr1g==","license": "MIT"},"node_modules/safe-buffer": {@@ -6576,15 +6580,15 @@}},"node_modules/vite": {- "version": "8.0.2",- "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.2.tgz",- "integrity": "sha512-1gFhNi+bHhRE/qKZOJXACm6tX4bA3Isy9KuKF15AgSRuRazNBOJfdDemPBU16/mpMxApDPrWvZ08DcLPEoRnuA==",+ "version": "8.0.8",+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.8.tgz",+ "integrity": "sha512-dbU7/iLVa8KZALJyLOBOQ88nOXtNG8vxKuOT4I2mD+Ya70KPceF4IAmDsmU0h1Qsn5bPrvsY9HJstCRh3hG6Uw==","license": "MIT","dependencies": {"lightningcss": "^1.32.0",- "picomatch": "^4.0.3",+ "picomatch": "^4.0.4","postcss": "^8.5.8",- "rolldown": "1.0.0-rc.11",+ "rolldown": "1.0.0-rc.15","tinyglobby": "^0.2.15"},"bin": {@@ -6602,7 +6606,7 @@"peerDependencies": {"@types/node": "^20.19.0 || >=22.12.0","@vitejs/devtools": "^0.1.0",- "esbuild": "^0.27.0",+ "esbuild": "^0.27.0 || ^0.28.0","jiti": ">=1.21.0","less": "^4.0.0","sass": "^1.70.0",diff --git a/src-tauri/src/commands/proxy.rs b/src-tauri/src/commands/proxy.rsindex 3c3bd079..d08303d0 100644--- a/src-tauri/src/commands/proxy.rs+++ b/src-tauri/src/commands/proxy.rs@@ -99,10 +99,30 @@ pub async fn fetch_external_bytes(url: String) -> Result<Vec<u8>, String> {resp.bytes().await.map(|b| b.to_vec()).map_err(|e| e.to_string())}+/// Validate that a URL targets localhost only (anti-SSRF for local proxy).+fn validate_localhost_url(raw: &str) -> Result<(), String> {+ let parsed = url::Url::parse(raw)+ .map_err(|e| format!("Invalid URL: {}", e))?;++ match parsed.scheme() {+ "http" | "https" => {}+ other => return Err(format!("Blocked scheme: {}", other)),+ }++ let host = parsed.host_str().unwrap_or("");+ if host == "localhost" || host == "127.0.0.1" || host == "::1" || host == "[::1]" {+ Ok(())+ } else {+ Err(format!("proxy_localhost: blocked non-localhost URL (host={})", host))+ }+}+/// Generic localhost proxy — fetch any localhost URL bypassing CORS./// Used for Ollama and ComfyUI API calls in production mode.#[tauri::command]pub async fn proxy_localhost(url: String, method: Option<String>, body: Option<String>) -> Result<String, String> {+ validate_localhost_url(&url)?;+let client = reqwest::Client::builder().user_agent("LocallyUncensored/2.0").timeout(std::time::Duration::from_secs(300))@@ -139,6 +159,8 @@ pub async fn proxy_localhost(url: String, method: Option<String>, body: Option<S/// Streaming localhost proxy — returns raw bytes for streaming responses (Ollama pull/chat).#[tauri::command]pub async fn proxy_localhost_stream(url: String, method: Option<String>, body: Option<String>) -> Result<Vec<u8>, String> {+ validate_localhost_url(&url)?;+let client = reqwest::Client::builder().user_agent("LocallyUncensored/2.0").timeout(std::time::Duration::from_secs(7200))