Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.
JavaScript agent-collaborationagent-harnessagent-orchestrationagent-teamagent-workflowai-assistantai-automationai-employeeai-productivityai-teamai-workflowautonomous-agentsclaude-code-guiclaude-coworkdesktop-agentlocal-firstmulti-agentmulti-agent-systemself-evolving-agentstask-automation
Connect public project, app and local CLI workflows across IPC and UI
wyt9e522f542f14
diff --git a/bin/schema-to-json.cjs b/bin/schema-to-json.cjsnew file mode 100644index 00000000..2ad6ad63--- /dev/null+++ b/bin/schema-to-json.cjs@@ -0,0 +1,29 @@+'use strict';++const { z } = require('zod');++/** Preserve the existing input contracts while using Zod's native converter. */+exports.schemaToJson = schema => z.toJSONSchema(schema, {+ target: 'draft-7',+ io: 'input',+ unrepresentable: ({ zodSchema }) => {+ const def = zodSchema._zod.def;+ // A dynamic catch defers action-specific validation to the executor. As+ // before, advertise its declared validator rather than inventing a default.+ if (def.type !== 'catch') return 'throw';+ const { $schema, ...inner } = exports.schemaToJson(def.innerType);+ return inner;+ },+ override: ({ zodSchema, jsonSchema }) => {+ const def = zodSchema._zod.def;+ // Discriminators make these branches disjoint. Retain the previous anyOf+ // representation consumed by the portable automation projection.+ if (def.type === 'union' && def.discriminator && jsonSchema.oneOf) {+ jsonSchema.anyOf = jsonSchema.oneOf;+ delete jsonSchema.oneOf;+ }+ if (def.type === 'object' && def.catchall?._zod.def.type === 'unknown') {+ jsonSchema.additionalProperties = true;+ }+ },+});diff --git a/package-lock.json b/package-lock.jsonindex fc62df62..e7d63469 100644--- a/package-lock.json+++ b/package-lock.json@@ -10,8 +10,8 @@"hasInstallScript": true,"license": "MIT","dependencies": {- "@earendil-works/pi-ai": "^1.2.0",- "@modelcontextprotocol/sdk": "^1.31.0",+ "@earendil-works/pi-ai": "^1.3.0",+ "@modelcontextprotocol/sdk": "^1.32.0","@modelcontextprotocol/server": "2.3.1","adm-zip": "^0.6.1","async-mutex": "^0.5.0",@@ -28,8 +28,8 @@"socks-proxy-agent": "^8.0.5","sqlite-vec": "^0.1.9","tsx": "^4.21.0",- "undici": "^7.30.0",- "zod": "^3.24.0",+ "undici": "^7.30.1",+ "zod": "4.6.7","zod-to-json-schema": "3.25.2"},"devDependencies": {@@ -39,14 +39,14 @@"@playwright/test": "^1.61.1","@types/adm-zip": "^0.5.7","@types/node": "^25.6.0",- "@vitest/coverage-v8": "^4.1.11",+ "@vitest/coverage-v8": "^4.1.12","7zip-bin": "^5.2.0",- "electron": "42.11.9",+ "electron": "42.11.18","ffmpeg-static": "^5.3.0","semver": "7.8.5","tar": "7.5.21","typescript": "^6.0.3",- "vitest": "^4.1.11"+ "vitest": "^4.1.12"},"engines": {"node": ">=22.12.0"@@ -621,14 +621,14 @@}},"node_modules/@earendil-works/pi-ai": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.2.0.tgz",- "integrity": "sha512-U5/1zXqfV1on7/9sbez03tT4Ru49Lvfb4+zXSDK3DBKF5cRk6KxvAOTOY3HJ4jimlZth+rs7vbJqN6iBQAoNuQ==",+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.3.0.tgz",+ "integrity": "sha512-KaBI8x7q7sPoFUXICNGD9efHzDG+oRNwVvkA9jdIsSQWH1RjFssOlEGsbLtewUPPgCrvmz0l2KTgSLXTyj3acw==","license": "MIT","dependencies": {"@anthropic-ai/sdk": "0.129.0","@aws-sdk/client-bedrock-runtime": "3.1127.0",- "@earendil-works/pi-telemetry": "^1.2.0",+ "@earendil-works/pi-telemetry": "1.3.0","@google/genai": "2.21.0","@smithy/node-http-handler": "4.12.1","http-proxy-agent": "9.1.0",@@ -645,9 +645,9 @@}},"node_modules/@earendil-works/pi-telemetry": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.2.0.tgz",- "integrity": "sha512-NZ3aJE6dr7aTgzzXDe53OW7BsAsF8ZUKHPJTtnjaQcxtlagkUT0Ew8Qas0EvYQsZqR/KpF1lB+z209XBzIC7xg==",+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.3.0.tgz",+ "integrity": "sha512-ERGZr+aXjNJzoUbB7ZzHVH3g5otzMHjHLs2Fyizm12By5X+gBEhod9cJXFOk13S7M8a29Am+Mq21zm73mRJFLg==","license": "MIT","engines": {"node": ">=22.19.0"@@ -2427,19 +2427,10 @@"node": ">=20"}},- "node_modules/@modelcontextprotocol/core/node_modules/zod": {- "version": "4.6.5",- "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz",- "integrity": "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==",- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/colinhacks"- }- },"node_modules/@modelcontextprotocol/sdk": {- "version": "1.31.0",- "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.31.0.tgz",- "integrity": "sha512-UvTMgnNlnIBO/22ob2RcVGDlcvOslQs8T59+FTGdA0L27a39fdGF/EDETNtDVK4DZGpwomlsYpRdA8UXcVL/pw==",+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.32.0.tgz",+ "integrity": "sha512-8BviX/hK4Gd2eL1KdTwm0gfl4d3wdoErW0Jd00h6nomUAtk6IJk5vwQJc6kfWtJTzN5OEV/lgIiJKI8fiDGAlA==","license": "MIT","dependencies": {"@hono/node-server": "^1.19.9 || ^2.0.5",@@ -2528,15 +2519,6 @@"node": ">=20"}},- "node_modules/@modelcontextprotocol/server/node_modules/zod": {- "version": "4.6.5",- "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz",- "integrity": "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==",- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/colinhacks"- }- },"node_modules/@napi-rs/canvas": {"version": "1.0.3","resolved": "https://registry.npmjs.org/@napi-rs/canvas/-/canvas-1.0.3.tgz",@@ -2819,9 +2801,9 @@"license": "MIT"},"node_modules/@oxc-project/types": {- "version": "0.133.0",- "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.133.0.tgz",- "integrity": "sha512-KzkdCd6Uxqnf6l3HOw1xfatAlUURA0g14cvBYFyJ5SaNOQbOUvBr9PKArcPcrNIeRsBdgcUzOGrhKveVpvOIGA==",+ "version": "0.139.0",+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.139.0.tgz",+ "integrity": "sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==","dev": true,"license": "MIT","funding": {@@ -2920,9 +2902,9 @@"license": "BSD-3-Clause"},"node_modules/@rolldown/binding-android-arm64": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.3.tgz",- "integrity": "sha512-454rs7jHngixp/NMxd5srYD57OnzSlZ/eFTETjORQHLwJG1lRtmNOJcBerZlfu4GjKqeq8aCCIQrMdHyhI51Hw==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.1.5.tgz",+ "integrity": "sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ==","cpu": ["arm64"],@@ -2937,9 +2919,9 @@}},"node_modules/@rolldown/binding-darwin-arm64": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.3.tgz",- "integrity": "sha512-PcAhP+ynjURNyy8SKGl5DQP94aGuB/7JrXJb/t7P+hanXvQVMWzUvRRhBAcg/lNRadBhoUPqSoP4xw5tR/KBEA==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.1.5.tgz",+ "integrity": "sha512-51Bnx9pNiMRKSUNtBfySkNJ9vMU9Hh3I1ozDd6gyPPYzaXCfnptUcEZxXGYFn+ul2dtcMUiqGR1Yai2K10uoTw==","cpu": ["arm64"],@@ -2954,9 +2936,9 @@}},"node_modules/@rolldown/binding-darwin-x64": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.3.tgz",- "integrity": "sha512-9YpfeUvSE2RS7wysJ81uOZkXJz7f7Q55H2Gvp3VEw/EsahqDtrphrZ0EwDLK5vvKOzaCrBsjF8JmnMLcUt78Gg==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.1.5.tgz",+ "integrity": "sha512-Tm+gbfC0aHu1tBA/JvKQh32S0K6YgCHkiAF4/W6xX0K0RmNuc94VeK419dJoE65R5aRxmo+noZQSWrAMF6yb6g==","cpu": ["x64"],@@ -2971,9 +2953,9 @@}},"node_modules/@rolldown/binding-freebsd-x64": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.3.tgz",- "integrity": "sha512-yB1IlAsSNHncV6SCTL27/MVGR5htvQsoGxIv5KMGXALp+Ll1wYsn+x98M9MW7qa+NdSbvrrY7ANI4wLJ0n1e6g==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.1.5.tgz",+ "integrity": "sha512-JMzDKCCXq93YccG5gz3hvOs1oXRKAf0XYpfOS88e+wZrC8Iugj6j68867vrYZkvpDDpKn/KoKORThmchMpF6TA==","cpu": ["x64"],@@ -2988,9 +2970,9 @@}},"node_modules/@rolldown/binding-linux-arm-gnueabihf": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.3.tgz",- "integrity": "sha512-Yi30IVAAfLUCy2MseFjbB1jAMDl1VMCAas5StnYp8da9+CKvMd2H2cbEjWcw5NPaPqzvYkVIaF1nNUG+b7u/sw==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.1.5.tgz",+ "integrity": "sha512-uML21j2K5TfPGutKxub+M+nLjZIrWjXQ5Grx4lCe/nimTj9B4L63zHpjXLl4y0L3mcm2htEQIb06oCG/szerNw==","cpu": ["arm"],@@ -3005,9 +2987,9 @@}},"node_modules/@rolldown/binding-linux-arm64-gnu": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.3.tgz",- "integrity": "sha512-jsO7R8To+AdlYgUmN5sHSCZbfhtMBkO0WUx8iORQnPcMMdgr7qM2DQmMwgabs3GhNztdmoKkMKQFHD6DTMCIQw==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.1.5.tgz",+ "integrity": "sha512-navSiuTMogvnQoZoM/v+l3ZWo50/NTwSHSzheABx/RCnmUPaKwq9qSo4Br2OYRs21+Fz8uFqITZM3H4opOB0/Q==","cpu": ["arm64"],@@ -3022,9 +3004,9 @@}},"node_modules/@rolldown/binding-linux-arm64-musl": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.3.tgz",- "integrity": "sha512-VWkUHwWriDciit80wleYwKILoR/KMvxh/IdwS/paX+ZgpuRpCrKLUdadJbc0NpBEiyhpYawsJ73j9aCvOH+f7Q==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.1.5.tgz",+ "integrity": "sha512-lAryqH7IteztmCXQXk0etKj4wBQ7Gx5S6LjKhsgp9zb8I5bsuvU/2llH1hDQcjsFeqIsovMVN339/8pUDDBXxA==","cpu": ["arm64"],@@ -3039,9 +3021,9 @@}},"node_modules/@rolldown/binding-linux-ppc64-gnu": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.3.tgz",- "integrity": "sha512-5f1laC0SlIR0yDbFCd8acUhvJIag6N3zC5P7oUPN6wX0aOma+uKJ0wBDH5aq7I1PVI2ttTlhJwzwRIBnLiSGEg==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.1.5.tgz",+ "integrity": "sha512-fsK/sNBnxzBlL4O1JNrZakVQxPspqpED5dLtNsZS9oOKmtSpdNIzxH2kkol5HYTWJN47sE20ztMJPxfZ89qGOg==","cpu": ["ppc64"],@@ -3056,9 +3038,9 @@}},"node_modules/@rolldown/binding-linux-s390x-gnu": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.3.tgz",- "integrity": "sha512-Iq4ko0r4XsgbrF/LunNgHtAGLRRVE2kXonAXQ/MV0mC6jQpMOhW1SvtZja2EhC/kd05++bP78dsqBeIQyYJ6Yg==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.1.5.tgz",+ "integrity": "sha512-gLYb4BIadlfTOYT5gO503n8zQjXflgzpD0FcyKh0Mzx3rqCZKnHoJWV9xe1KXUJ5lx2JfcSHr/mhzS0PC/McAA==","cpu": ["s390x"],@@ -3073,9 +3055,9 @@}},"node_modules/@rolldown/binding-linux-x64-gnu": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.3.tgz",- "integrity": "sha512-B8m6tD5+/N5FeNQFbKlLA/2yVq9ycQP1SeedyEYYKWBNR3ZQbkvIUcNnDNM03lO1l5F2roiiFJGgvoLLyZXtSg==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.1.5.tgz",+ "integrity": "sha512-FjcpEKUyJygHgs1o50VYNvkt5+7Le/VEdYt0AkRpkL33MnyQfwr8l5mXwMmfmTbyMPr5vJLC+8/Gd9gXnwU1QQ==","cpu": ["x64"],@@ -3090,9 +3072,9 @@}},"node_modules/@rolldown/binding-linux-x64-musl": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.3.tgz",- "integrity": "sha512-pSdpdUJHkuCxun9LE7jvgUB9qsRgaiyNNCX7m/AvHTcq67AiT/Yhoxvw5zPfhrM8k/BfP8ce/hMOpthKDpEUow==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.1.5.tgz",+ "integrity": "sha512-Me+PfPI2TMeOQk0gYWfLQZtTktrmzbr8cDboqX83XKc7UrgAi55gF+2dUkWdxd19n55Essp2yeca+O9N5rBxHg==","cpu": ["x64"],@@ -3107,9 +3089,9 @@}},"node_modules/@rolldown/binding-openharmony-arm64": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.3.tgz",- "integrity": "sha512-OXXS3RKJgX2uLwM+gYyuH5omcH8fL1LJs96pZGgtetVCahON57+d4SJHzTgZiOjxgGkSnpXpOsWuPDGAKAigEg==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.1.5.tgz",+ "integrity": "sha512-yc5WrLzXks6zCQfn9Oxr8pORKyl/pF+QjHmW/Qx3qu0oyrrNC+y2JLTU1E2rcWYAmzlnqngWXHQjy51VzW70Vw==","cpu": ["arm64"],@@ -3124,9 +3106,9 @@}},"node_modules/@rolldown/binding-wasm32-wasi": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.3.tgz",- "integrity": "sha512-JTtb8BWFynicNSoPrehsCzBtOKjZ6jhMiPFEmOiuXg1Fl8dn2KHQob+GuPSGR0dryQa1PQJbzjF3dqO/whhjLg==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.1.5.tgz",+ "integrity": "sha512-VbQGPX2b4r48TAMIM2cjgluIM1HYutm4pcTEJsle7iEP7sB1dFqtPLBVbdLAZCxy1txCcPxf4QFf4v8uvltPqA==","cpu": ["wasm32"],@@ -3134,30 +3116,30 @@"license": "MIT","optional": true,"dependencies": {- "@emnapi/core": "1.10.0",- "@emnapi/runtime": "1.10.0",- "@napi-rs/wasm-runtime": "^1.1.4"+ "@emnapi/core": "1.11.1",+ "@emnapi/runtime": "1.11.1",+ "@napi-rs/wasm-runtime": "^1.1.6"},"engines": {"node": "^20.19.0 || >=22.12.0"}},"node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/core": {- "version": "1.10.0",- "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz",- "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==",+ "version": "1.11.1",+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz",+ "integrity": "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==","dev": true,"license": "MIT","optional": true,"dependencies": {- "@emnapi/wasi-threads": "1.2.1",+ "@emnapi/wasi-threads": "1.2.2","tslib": "^2.4.0"}},"node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/runtime": {- "version": "1.10.0",- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz",- "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==",+ "version": "1.11.1",+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.1.tgz",+ "integrity": "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==","dev": true,"license": "MIT","optional": true,@@ -3166,9 +3148,9 @@}},"node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/wasi-threads": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",- "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz",+ "integrity": "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==","dev": true,"license": "MIT","optional": true,@@ -3177,9 +3159,9 @@}},"node_modules/@rolldown/binding-win32-arm64-msvc": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.3.tgz",- "integrity": "sha512-gEdFFEN70A/jxb2svrWsN3aDL7OUtmvlOy+6fa2jxG8K0wQ1ZbdeLGnidov6Yu5/733dI5ySfzFlQ/cb0bSz1g==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.1.5.tgz",+ "integrity": "sha512-gHv82k63z4qpV5+Q1y/12KrK0ltWBukVDI8nZcbT7Tt/ZlOIVwppazneq0F93oDxTo3IgAMEDIoQh3E2n6mVsw==","cpu": ["arm64"],@@ -3194,9 +3176,9 @@}},"node_modules/@rolldown/binding-win32-x64-msvc": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.3.tgz",- "integrity": "sha512-eXB7CHuaQdqmJcc3koCNtNPmT/bj2gc999kUFgBxG8Ac0NdgXc4rkCHhqrgrhN3zddvvvrgzj1e90SuSfmyIXA==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.1.5.tgz",+ "integrity": "sha512-tTZuDBPw85tEN5PQi1pnEBzDy0Z49HtScLAbD5t6hyeU92A95pRWaSMw1GZZi/RwgSgUIl0xrSlXIT/9QzvYSA==","cpu": ["x64"],@@ -3398,14 +3380,14 @@"license": "MIT"},"node_modules/@vitest/coverage-v8": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-4.1.11.tgz",- "integrity": "sha512-8MVGEFnJIcdGjcbfKmeq8z0pZHH0JlVtoVZH9Q/qwUp6wyFnEJUBMrw9DCaj+ra3vShGmhavjalMIhPNxZAUcw==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-4.1.12.tgz",+ "integrity": "sha512-6S7/iVknKglLAxMFxQGNppBI0iqJS2NgM6FBxavitj7KaDq/vywOWGf6dGu7F2L1Qy0G6S3uTp7aGshHrzK8JA==","dev": true,"license": "MIT","dependencies": {"@bcoe/v8-coverage": "^1.0.2",- "@vitest/utils": "4.1.11",+ "@vitest/utils": "4.1.12","ast-v8-to-istanbul": "^1.0.0","istanbul-lib-coverage": "^3.2.2","istanbul-lib-report": "^3.0.1",@@ -3419,8 +3401,8 @@"url": "https://opencollective.com/vitest"},"peerDependencies": {- "@vitest/browser": "4.1.11",- "vitest": "4.1.11"+ "@vitest/browser": "4.1.12",+ "vitest": "4.1.12"},"peerDependenciesMeta": {"@vitest/browser": {@@ -3429,16 +3411,16 @@}},"node_modules/@vitest/expect": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.11.tgz",- "integrity": "sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.12.tgz",+ "integrity": "sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==","dev": true,"license": "MIT","dependencies": {"@standard-schema/spec": "^1.1.0","@types/chai": "^5.2.2",- "@vitest/spy": "4.1.11",- "@vitest/utils": "4.1.11",+ "@vitest/spy": "4.1.12",+ "@vitest/utils": "4.1.12","chai": "^6.2.2","tinyrainbow": "^3.1.0"},@@ -3447,13 +3429,13 @@}},"node_modules/@vitest/mocker": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.11.tgz",- "integrity": "sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.12.tgz",+ "integrity": "sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==","dev": true,"license": "MIT","dependencies": {- "@vitest/spy": "4.1.11",+ "@vitest/spy": "4.1.12","estree-walker": "^3.0.3","magic-string": "^0.30.21"},@@ -3474,9 +3456,9 @@}},"node_modules/@vitest/pretty-format": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.11.tgz",- "integrity": "sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.12.tgz",+ "integrity": "sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==","dev": true,"license": "MIT","dependencies": {@@ -3487,13 +3469,13 @@}},"node_modules/@vitest/runner": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.11.tgz",- "integrity": "sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.12.tgz",+ "integrity": "sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==","dev": true,"license": "MIT","dependencies": {- "@vitest/utils": "4.1.11",+ "@vitest/utils": "4.1.12","pathe": "^2.0.3"},"funding": {@@ -3501,14 +3483,14 @@}},"node_modules/@vitest/snapshot": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.11.tgz",- "integrity": "sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.12.tgz",+ "integrity": "sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==","dev": true,"license": "MIT","dependencies": {- "@vitest/pretty-format": "4.1.11",- "@vitest/utils": "4.1.11",+ "@vitest/pretty-format": "4.1.12",+ "@vitest/utils": "4.1.12","magic-string": "^0.30.21","pathe": "^2.0.3"},@@ -3517,9 +3499,9 @@}},"node_modules/@vitest/spy": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.11.tgz",- "integrity": "sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.12.tgz",+ "integrity": "sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==","dev": true,"license": "MIT","funding": {@@ -3527,13 +3509,13 @@}},"node_modules/@vitest/utils": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.11.tgz",- "integrity": "sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.12.tgz",+ "integrity": "sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==","dev": true,"license": "MIT","dependencies": {- "@vitest/pretty-format": "4.1.11",+ "@vitest/pretty-format": "4.1.12","convert-source-map": "^2.0.0","tinyrainbow": "^3.1.0"},@@ -3781,18 +3763,18 @@"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==",+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.4.0.tgz",+ "integrity": "sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==","license": "MIT","dependencies": {"bytes": "^3.1.2",- "content-type": "^2.0.0",+ "content-type": "^2.1.0","debug": "^4.4.3","http-errors": "^2.0.1",- "iconv-lite": "^0.7.2",+ "iconv-lite": "^0.7.3","on-finished": "^2.4.1",- "qs": "^6.15.2",+ "qs": "^6.16.1","raw-body": "^3.0.2","type-is": "^2.1.0"},@@ -3805,9 +3787,9 @@}},"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==",+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz",+ "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==","license": "MIT","engines": {"node": ">=18"@@ -4211,9 +4193,9 @@"license": "MIT"},"node_modules/electron": {- "version": "42.11.9",- "resolved": "https://registry.npmjs.org/electron/-/electron-42.11.9.tgz",- "integrity": "sha512-vPTlQws45virTh1jb/dSROz6xGkXgtEcdyT5n+0+etCmHqMtvp4Pgs6Sx5bvna+AEDAMeq10uRcjdMKCTk2Gtw==",+ "version": "42.11.18",+ "resolved": "https://registry.npmjs.org/electron/-/electron-42.11.18.tgz",+ "integrity": "sha512-hbzodG06x/l7uq+oeyob5ugv6qZBmJRWC7Uto5QEE99xSHUARz6d+++Rz+79T/ssTYTQkONW4ciTTcJuAbXKIQ==","dev": true,"license": "MIT","dependencies": {@@ -4536,9 +4518,9 @@"license": "Unlicense"},"node_modules/fast-uri": {- "version": "3.1.8",- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz",- "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==",+ "version": "3.1.9",+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz",+ "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==","funding": [{"type": "github",@@ -5052,9 +5034,9 @@}},"node_modules/hono": {- "version": "4.13.7",- "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.7.tgz",- "integrity": "sha512-c8/gF9ac8Y78/agExVocyLevgR+JlpNB444Py0FSX8pJoPdYUfUzRcXtYEYGwt6l19qIlVZPN5Mfsw9jFShmQQ==",+ "version": "4.13.11",+ "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.11.tgz",+ "integrity": "sha512-/SMX/RQNJn7oNmFwH6DtwDqcrzZU2otm1FD6OJe2cWF6cfy/F8hq0XVBv7xW3FTJshRQwuBnXHDq2kNsdZnshg==","license": "MIT","engines": {"node": ">=16.9.0"@@ -5151,9 +5133,9 @@}},"node_modules/iconv-lite": {- "version": "0.7.2",- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz",- "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==",+ "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","dependencies": {"safer-buffer": ">= 2.1.2 < 3.0.0"@@ -5226,9 +5208,9 @@"license": "ISC"},"node_modules/ip-address": {- "version": "10.7.2",- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.2.tgz",- "integrity": "sha512-7H/2gFSIitxc0hG3nOI1glS8QLo/EHBFFLk8vEUjXY/xu0AdL8jZ9U1IzO2PUm0d2D/ofQcAifb0g6OBkt8U7w==",+ "version": "10.7.4",+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.4.tgz",+ "integrity": "sha512-DWBMKyeM25D70nrIiTkgQth59/G+naKOTep6huF9j+GmeK3DMD60Zvxg5d5qQnz+38AHgou6ean2LECX+lrKDg==","license": "MIT","engines": {"node": ">= 12"@@ -6041,9 +6023,9 @@}},"node_modules/node-gyp/node_modules/undici": {- "version": "6.29.0",- "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz",- "integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==",+ "version": "6.29.1",+ "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz",+ "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==","dev": true,"license": "MIT","engines": {@@ -6337,9 +6319,9 @@"license": "ISC"},"node_modules/picomatch": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",- "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==","dev": true,"license": "MIT","engines": {@@ -6577,9 +6559,9 @@}},"node_modules/qs": {- "version": "6.16.0",- "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz",- "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==",+ "version": "6.16.1",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.1.tgz",+ "integrity": "sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==","license": "BSD-3-Clause","dependencies": {"es-define-property": "^1.0.1",@@ -6720,13 +6702,13 @@}},"node_modules/rolldown": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.3.tgz",- "integrity": "sha512-i00lAJ2ks1BYr7rjNjKC7BcqAS7nVfiT3QX1SI5aY+AFHblCmaUf9OE9dbdzDvW6dJxbi2ZCZiy9v3CcwOiX3g==",+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.1.5.tgz",+ "integrity": "sha512-t9z29cJjXf/vxQ8dyhCSpt6H6aSwHTk8cT5I3iy6SMXuFpk5mB6PL6XfC8PCwrPTx93udwKUm9HRteAlTGBLiA==","dev": true,"license": "MIT","dependencies": {- "@oxc-project/types": "=0.133.0",+ "@oxc-project/types": "=0.139.0","@rolldown/pluginutils": "^1.0.0"},"bin": {@@ -6736,21 +6718,21 @@"node": "^20.19.0 || >=22.12.0"},"optionalDependencies": {- "@rolldown/binding-android-arm64": "1.0.3",- "@rolldown/binding-darwin-arm64": "1.0.3",- "@rolldown/binding-darwin-x64": "1.0.3",- "@rolldown/binding-freebsd-x64": "1.0.3",- "@rolldown/binding-linux-arm-gnueabihf": "1.0.3",- "@rolldown/binding-linux-arm64-gnu": "1.0.3",- "@rolldown/binding-linux-arm64-musl": "1.0.3",- "@rolldown/binding-linux-ppc64-gnu": "1.0.3",- "@rolldown/binding-linux-s390x-gnu": "1.0.3",- "@rolldown/binding-linux-x64-gnu": "1.0.3",- "@rolldown/binding-linux-x64-musl": "1.0.3",- "@rolldown/binding-openharmony-arm64": "1.0.3",- "@rolldown/binding-wasm32-wasi": "1.0.3",- "@rolldown/binding-win32-arm64-msvc": "1.0.3",- "@rolldown/binding-win32-x64-msvc": "1.0.3"+ "@rolldown/binding-android-arm64": "1.1.5",+ "@rolldown/binding-darwin-arm64": "1.1.5",+ "@rolldown/binding-darwin-x64": "1.1.5",+ "@rolldown/binding-freebsd-x64": "1.1.5",+ "@rolldown/binding-linux-arm-gnueabihf": "1.1.5",+ "@rolldown/binding-linux-arm64-gnu": "1.1.5",+ "@rolldown/binding-linux-arm64-musl": "1.1.5",+ "@rolldown/binding-linux-ppc64-gnu": "1.1.5",+ "@rolldown/binding-linux-s390x-gnu": "1.1.5",+ "@rolldown/binding-linux-x64-gnu": "1.1.5",+ "@rolldown/binding-linux-x64-musl": "1.1.5",+ "@rolldown/binding-openharmony-arm64": "1.1.5",+ "@rolldown/binding-wasm32-wasi": "1.1.5",+ "@rolldown/binding-win32-arm64-msvc": "1.1.5",+ "@rolldown/binding-win32-x64-msvc": "1.1.5"}},"node_modules/router": {@@ -7631,9 +7613,9 @@"license": "MIT"},"node_modules/undici": {- "version": "7.30.0",- "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",- "integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",+ "version": "7.30.1",+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz",+ "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==","license": "MIT","engines": {"node": ">=20.18.1"@@ -7678,16 +7660,16 @@}},"node_modules/vite": {- "version": "8.0.16",- "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.16.tgz",- "integrity": "sha512-h9bXPmJichP5fLmVQo3PyaGSDE2n3aPuomeAlVRm0JLmt4rY6zmPKd59HYI4LNW8oTK7tlTsuC7l/m7awx9Jcw==",+ "version": "8.1.6",+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.1.6.tgz",+ "integrity": "sha512-aRAHIxx5SW5zc1sMqFwJU/t5qaFfXb5Hj0J7W0VXihu/X99+346tz6080tO1T1xVIJORX/b3zVTXGFqUXh35uw==","dev": true,"license": "MIT","dependencies": {"lightningcss": "^1.32.0",- "picomatch": "^4.0.4",- "postcss": "^8.5.15",- "rolldown": "1.0.3",+ "picomatch": "^4.0.5",+ "postcss": "^8.5.17",+ "rolldown": "~1.1.5","tinyglobby": "^0.2.17"},"bin": {@@ -7704,7 +7686,7 @@},"peerDependencies": {"@types/node": "^20.19.0 || >=22.12.0",- "@vitejs/devtools": "^0.1.18",+ "@vitejs/devtools": "^0.3.0","esbuild": "^0.27.0 || ^0.28.0","jiti": ">=1.21.0","less": "^4.0.0",@@ -7756,19 +7738,19 @@}},"node_modules/vitest": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.11.tgz",- "integrity": "sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==",+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.12.tgz",+ "integrity": "sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==","dev": true,"license": "MIT","dependencies": {- "@vitest/expect": "4.1.11",- "@vitest/mocker": "4.1.11",- "@vitest/pretty-format": "4.1.11",- "@vitest/runner": "4.1.11",- "@vitest/snapshot": "4.1.11",- "@vitest/spy": "4.1.11",- "@vitest/utils": "4.1.11",+ "@vitest/expect": "4.1.12",+ "@vitest/mocker": "4.1.12",+ "@vitest/pretty-format": "4.1.12",+ "@vitest/runner": "4.1.12",+ "@vitest/snapshot": "4.1.12",+ "@vitest/spy": "4.1.12",+ "@vitest/utils": "4.1.12","es-module-lexer": "^2.0.0","expect-type": "^1.3.0","magic-string": "^0.30.21",@@ -7796,12 +7778,12 @@"@edge-runtime/vm": "*","@opentelemetry/api": "^1.9.0","@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",- "@vitest/browser-playwright": "4.1.11",- "@vitest/browser-preview": "4.1.11",- "@vitest/browser-webdriverio": "4.1.11",- "@vitest/coverage-istanbul": "4.1.11",- "@vitest/coverage-v8": "4.1.11",- "@vitest/ui": "4.1.11",+ "@vitest/browser-playwright": "4.1.12",+ "@vitest/browser-preview": "4.1.12",+ "@vitest/browser-webdriverio": "^4.1.11",+ "@vitest/coverage-istanbul": "4.1.12",+ "@vitest/coverage-v8": "4.1.12",+ "@vitest/ui": "4.1.12","happy-dom": "*","jsdom": "*","vite": "^6.0.0 || ^7.0.0 || ^8.0.0"@@ -7984,7 +7966,9 @@}},"node_modules/zod": {- "version": "3.25.76",+ "version": "4.6.7",+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",+ "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==","license": "MIT","funding": {"url": "https://github.com/sponsors/colinhacks"diff --git a/package.json b/package.jsonindex 96b71a9c..684828ab 100644--- a/package.json+++ b/package.json@@ -31,8 +31,9 @@"test:resources": "node scripts/run-python-tests.mjs resources/builtin resources/test -q","test:coverage": "node scripts/run-tests.mjs run --coverage","test:watch": "node scripts/run-tests.mjs",- "test:local-agents:live": "tsx scripts/test-local-agents-live.ts",- "test:local-agents:prepare": "tsx scripts/test-local-agents-live.ts --install-only",+ "test:local-agents:live": "node scripts/run-local-agents-live.mjs",+ "test:local-agents:prepare": "node scripts/run-local-agents-live.mjs --install-only",+ "test:runtime-path": "node scripts/run-tests.mjs run test/main/platform-process-coverage.test.ts test/main/features/connectors/local-cli.test.ts test/main/features/local_agents/bridge_skill_runner.test.ts test/main/features/generation_reference_assets.test.ts test/main/util/bundled-runtime.test.ts","test:platform-native": "node scripts/run-platform-native-tests.mjs","test:video-studio-inspect-canary": "node test/gui/run-inspect-canary.mjs","test:windows-native": "node scripts/run-windows-native-tests.mjs",@@ -56,7 +57,9 @@"native:check": "node scripts/verify-native-dependencies.cjs","native:repair": "node scripts/verify-native-dependencies.cjs --host-only && npm install --include=optional --no-save && node bin/ensure-runtime.cjs --kind node && npm run native:check","test:web-assist-input-canary": "node test/gui/run-web-assist-input-canary.mjs",- "test:apps:e2e": "node scripts/run-e2e.cjs test --config playwright.apps.config.ts"+ "test:apps:e2e": "node scripts/run-e2e.cjs test --config playwright.apps.config.ts",+ "test:local-agents:lifecycle": "node scripts/run-local-agents-live.mjs --lifecycle --no-install",+ "benchmark:local-agents": "node scripts/run-local-agents-live.mjs --benchmark --no-install"},"devDependencies": {"@electron/asar": "3.4.1",@@ -65,18 +68,18 @@"@playwright/test": "^1.61.1","@types/adm-zip": "^0.5.7","@types/node": "^25.6.0",- "@vitest/coverage-v8": "^4.1.11",+ "@vitest/coverage-v8": "^4.1.12","7zip-bin": "^5.2.0",- "electron": "42.11.9",+ "electron": "42.11.18","ffmpeg-static": "^5.3.0","semver": "7.8.5","tar": "7.5.21","typescript": "^6.0.3",- "vitest": "^4.1.11"+ "vitest": "^4.1.12"},"dependencies": {- "@earendil-works/pi-ai": "^1.2.0",- "@modelcontextprotocol/sdk": "^1.31.0",+ "@earendil-works/pi-ai": "^1.3.0",+ "@modelcontextprotocol/sdk": "^1.32.0","@modelcontextprotocol/server": "2.3.1","adm-zip": "^0.6.1","async-mutex": "^0.5.0",@@ -92,8 +95,8 @@"socks-proxy-agent": "^8.0.5","sqlite-vec": "^0.1.9","tsx": "^4.21.0",- "undici": "^7.30.0",- "zod": "^3.24.0",+ "undici": "^7.30.1",+ "zod": "4.6.7","fast-xml-parser": "5.7.3","zod-to-json-schema": "3.25.2"},@@ -101,7 +104,8 @@"@anush008/tokenizers": "0.6.0","@hono/node-server": "2.0.11","esbuild": "0.28.1",- "tar": "7.5.21"+ "tar": "7.5.21",+ "zod": "4.6.7"},"build": {"appId": "com.orkas.desktop",diff --git a/src/main/features/group_chat/browser_tool.ts b/src/main/features/group_chat/browser_tool.tsindex 769f04d9..76dd4f88 100644--- a/src/main/features/group_chat/browser_tool.ts+++ b/src/main/features/group_chat/browser_tool.ts@@ -9,7 +9,7 @@import type { AgentTool, ToolResult } from '#core-agent';import { z } from 'zod';-import { zodToJsonSchema } from 'zod-to-json-schema';+const { schemaToJson } = require('../../../../bin/schema-to-json.cjs');import { createLogger } from '../../logger';import { withRetrievalBudget } from '../../util/tool-result-cap';import { browserTaskRunId, type BrowserTabRetention } from '../web_assist_lifecycle';@@ -17,7 +17,7 @@ import { browserTaskRunId, type BrowserTabRetention } from '../web_assist_lifecyconst log = createLogger('browser-tool');const contract = require('../../../../bin/browser-tool-contract.cjs');const schema = z.object(contract.shape(z)).strict();-const { $schema: _schemaVersion, ...inputSchema } = zodToJsonSchema(schema);+const { $schema: _schemaVersion, ...inputSchema } = schemaToJson(schema);export interface BrowserToolCallbacks {tabs: () => Promise<Record<string, unknown>> | Record<string, unknown>;diff --git a/src/main/features/local_agents/upgrade.ts b/src/main/features/local_agents/upgrade.tsindex d7814ad5..0b67c880 100644--- a/src/main/features/local_agents/upgrade.ts+++ b/src/main/features/local_agents/upgrade.ts@@ -7,12 +7,16 @@ import fs from 'node:fs/promises';import path from 'node:path';import os from 'node:os';import { spawn } from 'node:child_process';+import { StringDecoder } from 'node:string_decoder';+import { stripVTControlCharacters } from 'node:util';import { buildCliSpawnEnv, resolveCliCommand } from './spawn-command.js';import { killProcessTree } from './backends/base.js';import { resolveCli, invalidateCache, type LocalCliType, type LocalCliEntry } from './registry.js';import { detectVersionResult, checkMinVersion, cliVersionAtLeast } from './version.js';import { whichBin } from './which.js';import { createLogger } from '../../logger.js';+import { sanitizeLogTextForUpload } from '../../util/log-sanitize.js';+import { redactPaths } from '../../util/redact.js';const log = createLogger('local-cli-upgrade');@@ -22,7 +26,7 @@ const PACKAGES: Record<LocalCliType, readonly string[]> = {};export type CliUpgradePlan = { method: 'native' | 'npm' | 'brew' | 'unavailable'; command?: string; args?: string[] };export type CliUpgradeInfo = { type: LocalCliType; version: string | null; can_upgrade: boolean; method: CliUpgradePlan['method'] };-type CliUpgradeOutcome = CliUpgradeInfo & { ok: boolean; error_code?: 'failed' | 'timeout' | 'output_limit' | 'verification_failed' | 'changed_installation' | 'unavailable'; entry?: LocalCliEntry };+type CliUpgradeOutcome = CliUpgradeInfo & { ok: boolean; outcome?: 'upgraded' | 'up_to_date'; error_code?: 'failed' | 'timeout' | 'output_limit' | 'verification_failed' | 'changed_installation' | 'unavailable'; error_detail?: string; entry?: LocalCliEntry };export type CliUpgradeResult = CliUpgradeOutcome & { operation_id: number; duration_ms: number };let operationCounter = 0;const inFlight = new Map<LocalCliType, Promise<CliUpgradeResult>>();@@ -30,11 +34,14 @@ type CommandFailureDiagnostic =| { phase: 'spawn'; spawn_code: string }| { phase: 'exit'; exit_code: number | null; signal: string };-/** No output enters UI/logs. Help capture and total output are independently bounded. */-export function runUpgradeCommand(command: string, args: string[], timeoutMs: number, capture = false): Promise<{ ok: boolean; text: string; error?: 'failed' | 'timeout' | 'output_limit'; diagnostic?: CommandFailureDiagnostic }> {+/** Help capture stays private. Explicit maintenance may return a redacted failure+ * tail to the local UI only; output never enters logs or telemetry. */+export function runUpgradeCommand(command: string, args: string[], timeoutMs: number, capture: boolean | 'failure' = false): Promise<{ ok: boolean; text: string; error?: 'failed' | 'timeout' | 'output_limit'; error_detail?: string; diagnostic?: CommandFailureDiagnostic }> {return new Promise(resolve => {const launch = resolveCliCommand(command, args);let settled = false; let bytes = 0; let text = '';+ let tail = ''; let tailTruncated = false;+ const decoders = { stdout: new StringDecoder('utf8'), stderr: new StringDecoder('utf8') };let timer: NodeJS.Timeout | undefined;const child = spawn(launch.command, launch.args, {cwd: os.homedir(), env: buildCliSpawnEnv(command), stdio: ['ignore', 'pipe', 'pipe'],@@ -44,16 +51,39 @@ export function runUpgradeCommand(command: string, args: string[], timeoutMs: nuconst finish = (ok: boolean, error?: 'failed' | 'timeout' | 'output_limit', kill = false, diagnostic?: CommandFailureDiagnostic) => {if (settled) return;settled = true; clearTimeout(timer);- const done = () => resolve({ ok, text, ...(error ? { error } : {}), ...(diagnostic ? { diagnostic } : {}) });+ let detail = '';+ if (!ok && capture === 'failure') {+ // Drop a partial leading line before redaction so a cut credential cannot+ // lose its field/prefix and escape the existing privacy filters.+ const firstLineEnd = tail.indexOf('\n');+ const completeTail = tailTruncated ? (firstLineEnd < 0 ? '' : tail.slice(firstLineEnd + 1)) : tail;+ const clean = stripVTControlCharacters(completeTail).replace(/[\x00-\x08\x0b-\x1f\x7f]/g, '');+ detail = redactPaths(sanitizeLogTextForUpload(clean)).trim();+ if (detail && (detail.length > 8192 || tailTruncated)) {+ let start = Math.max(0, detail.length - 8191);+ // Keep the tail within its UI budget without splitting a UTF-16 pair.+ const first = detail.charCodeAt(start);+ if (start > 0 && first >= 0xdc00 && first <= 0xdfff) start++;+ detail = '…' + detail.slice(start);+ }+ if (!detail && diagnostic) detail = diagnostic.phase === 'spawn'+ ? diagnostic.spawn_code : `exit_code=${diagnostic.exit_code}, signal=${diagnostic.signal}`;+ }+ const done = () => resolve({ ok, text, ...(error ? { error } : {}), ...(detail ? { error_detail: detail } : {}), ...(diagnostic ? { diagnostic } : {}) });if (kill) killProcessTree(child, 'SIGKILL', { onComplete: done }); else done();};- const read = (chunk: Buffer) => {+ const read = (chunk: Buffer, stream: 'stdout' | 'stderr') => {if (settled) return;bytes += chunk.length;if (bytes > 1024 * 1024) return finish(false, 'output_limit', true);- if (capture && text.length < 64 * 1024) text += chunk.toString('utf8').slice(0, 64 * 1024 - text.length);+ if (capture === true && text.length < 64 * 1024) text += chunk.toString('utf8').slice(0, 64 * 1024 - text.length);+ if (capture === 'failure') {+ tail += decoders[stream].write(chunk);+ if (tail.length > 32 * 1024) { tail = tail.slice(-32 * 1024); tailTruncated = true; }+ }};- child.stdout?.on('data', read); child.stderr?.on('data', read);+ child.stdout?.on('data', chunk => read(chunk, 'stdout'));+ child.stderr?.on('data', chunk => read(chunk, 'stderr'));child.on('error', (error: NodeJS.ErrnoException) => finish(false, 'failed', false, {phase: 'spawn', spawn_code: error.code && Object.hasOwn(os.constants.errno, error.code) ? error.code : 'unknown',}));@@ -158,16 +188,17 @@ export function upgradeLocalCli(type: LocalCliType): Promise<CliUpgradeResult> {if (fresh.path !== entry.path || fresh.fullVersion !== entry.fullVersion || fresh.version !== entry.version) {return { ...metadata, ok: false, error_code: 'changed_installation' };}- const result = await runUpgradeCommand(plan.command, plan.args, 10 * 60_000);+ const result = await runUpgradeCommand(plan.command, plan.args, 10 * 60_000, 'failure');invalidateCache(type);if (!result.ok) {// Only explicit maintenance logs one bounded receipt. Capability probes- // remain quiet; paths, arguments, output and raw errors never leave here.+ // remain quiet; paths, arguments, output and raw errors are never logged.log.warn('CLI upgrade command failed', {cli: type, method: plan.method, reason: result.error || 'failed',...(result.diagnostic || { phase: 'limit' }),});- return { ...metadata, ok: false, error_code: result.error || 'failed' };+ return { ...metadata, ok: false, error_code: result.error || 'failed',+ ...(result.error_detail ? { error_detail: result.error_detail } : {}) };}// Verify the original entry point, not a newly discovered higher-priority install.const probe = await detectVersionResult(entry.path);@@ -179,7 +210,10 @@ export function upgradeLocalCli(type: LocalCliType): Promise<CliUpgradeResult> {if (after.path !== entry.path || after.version !== probe.version || !after.available) {return { ...metadata, ok: false, error_code: 'changed_installation' };}- return { ...info(after, plan), ok: true, entry: after };+ // A successful updater may be a no-op. Compare verified versions only+ // after all health/identity checks, preserving prerelease distinctions.+ const current = info(after, plan);+ return { ...current, ok: true, outcome: metadata.version === current.version ? 'up_to_date' : 'upgraded', entry: after };})().then(result => ({ ...result, operation_id: operationId, duration_ms: Date.now() - startedAt }));inFlight.set(type, job);void job.finally(() => { if (inFlight.get(type) === job) inFlight.delete(type); }).catch(() => {});diff --git a/src/main/index.ts b/src/main/index.tsindex 957e56e0..30105d65 100644--- a/src/main/index.ts+++ b/src/main/index.ts@@ -209,6 +209,7 @@ import * as reflectionOrchestrator from './features/reflection-orchestrator';import * as autoTasks from './features/auto_tasks';import * as projectDriverRunner from './features/project_driver_runner';import * as projectTasks from './features/project_tasks';+import * as projects from './features/projects';import * as conversationFiling from './features/conversation_filing';import * as systemSkills from './features/system_skills';import * as bundledContentStartup from './features/bundled_content_startup';@@ -443,6 +444,14 @@ function registerIpc(prepareShutdown: () => Promise<void>): void {conversationFiling.onConversationFilingFailed(({ userId, ...receipt }) => {conversationFilingFailure.emit(receipt, userId);});+ conversationFiling.onConversationProjectRenamed((event) => {+ if (!users.hasActiveUser() || users.getActiveUserId() !== event.userId) return;+ ipc.broadcastToRenderer('projects:renamed', event);+ });+ projects.onProjectInstructionsChanged((event) => {+ if (!users.hasActiveUser() || users.getActiveUserId() !== event.uid) return;+ ipc.broadcastToRenderer('projects:instructions-changed', { projectId: event.projectId });+ });conversationTaskBoard.onBacklogExecutionChanged((e) => ipc.broadcastToRenderer('projects:tasks-changed', {projectId: e.pid,}));@@ -1318,7 +1327,7 @@ function registerChatAppProtocol(): void {log.warn('chat-app: unparseable URL', { error_code: 'invalid_url' });return new Response('bad request', { status: 400 });}- const sdkResource = appResource(request);+ const sdkResource = await appResource(request);if (sdkResource) {if (sdkResource.status !== 200) return new Response('Application resource unavailable', { status: sdkResource.status });if ('body' in sdkResource) return new Response(sdkResource.body, {@@ -1350,9 +1359,6 @@ function registerChatAppProtocol(): void {return new Response('bad request', { status: 400 });}const uid = users.getActiveUserId();- if (await savedApps.resolveSavedAppType(uid, appId) === 'web') {- return Response.json((await import('./features/web_apps/commercial-entry')).commercialWebAppFailure(), { status: 403 });- }if (hasIsolatedBrowserStorage(uid, { appId })) return new Response('Application origin required', { status: 403 });if (savedRelPath === chatArtifacts.BRIDGE_RELPATH) {return _withArtifactCors(new Response(chatArtifacts.BRIDGE_JS, {@@ -1383,9 +1389,6 @@ function registerChatAppProtocol(): void {}const uid = users.getActiveUserId();- if (await savedApps.resolveArtifactAppType(uid, cid, artifactId) === 'web') {- return Response.json((await import('./features/web_apps/commercial-entry')).commercialWebAppFailure(), { status: 403 });- }if (hasIsolatedBrowserStorage(uid, { cid, artifactId })) return new Response('Application origin required', { status: 403 });// Reserved virtual path: the runtime bridge script (not on disk).if (relPath === chatArtifacts.BRIDGE_RELPATH) {diff --git a/src/main/ipc/index.ts b/src/main/ipc/index.tsindex 9b31e173..cae44e11 100644--- a/src/main/ipc/index.ts+++ b/src/main/ipc/index.ts@@ -82,7 +82,7 @@ import { invokeHandlers as webAssistHandlers } from './web_assist';import { bindWebAssistConversation } from '../features/web_assist';import { invokeHandlers as memoryHandlers } from './memory';import { safeId, writeJson } from '../storage';-import { commercialWebAppFailure, isCommercialWebAppFailure } from '../features/web_apps/commercial-entry';+import { publishApp } from '../features/web_apps/commercial-entry';import { createLogger, logFromRenderer } from '../logger';import {cancelConfirmation as cancelDeleteConfirmation,@@ -117,12 +117,56 @@ const IPC_RESULT_FAILURE_DEDUPE_MS = 60_000;const IPC_RESULT_FAILURE_MAX_KEYS = 512;const ipcResultFailureState = new Map<string, { at: number; suppressed: number }>();+const attachmentAddChannels = new Set([+ 'conversations.attachments.upload', 'conversations.attachments.import',+ 'conversations.attachments.pickAndUpload', 'orkas.importLocalFiles',+]);+const attachmentFailureCodes = new Set([+ 'invalid_attachment', 'file_too_large', 'invalid_utf8', 'too_many_attachments',+ 'source_unavailable', 'not_file', 'read_failed', 'write_failed', 'copy_failed',+ 'E_NOT_LOGGED_IN', 'E_IPC_SENDER', 'E_IPC_REQUEST', 'E_STORAGE_FULL', 'mixed',+]);++function attachmentFailureDiagnostic(result: Record<string, unknown>): { code: string; failure_kind: string } {+ const rawCode = result.error_code ?? result.code;+ return {+ code: typeof rawCode === 'string' && attachmentFailureCodes.has(rawCode) ? rawCode : 'attachment_failed',+ failure_kind: result.failure_kind === 'mixed' ? 'mixed' : fileFailureKind(result),+ };+}++/** Batch envelopes are successful even when individual selected files fail.+ * Keep one content-free summary, using the existing bounded failure logger. */+function logAttachmentBatchFailures(channel: string, failures: Record<string, unknown>[]): void {+ if (!failures.length) return;+ const codes = new Set<string>();+ const kinds = new Set<string>();+ for (const failure of failures.slice(0, 200)) {+ const diagnostic = attachmentFailureDiagnostic(failure);+ codes.add(diagnostic.code);+ kinds.add(diagnostic.failure_kind);+ }+ logInvokeResultFailure(channel, {+ code: failures.length > 200 || codes.size !== 1 ? 'mixed' : codes.values().next().value,+ failure_kind: failures.length > 200 || kinds.size !== 1 ? 'mixed' : kinds.values().next().value,+ failed_count: failures.length,+ });+}++/**+ * Handler-level business failures resolve as `{ ok:false }`, so they never+ * reach the invoke catch below. Persist one bounded diagnostic per+ * channel/code window without turning expected validation retries into a log+ * storm. Renderer owners still decide whether the operation also merits a+ * product result/error event.+ */function logInvokeResultFailure(channel: string, result: Record<string, unknown>): void {+ const attachment = attachmentAddChannels.has(channel) ? attachmentFailureDiagnostic(result) : null;const rawCode = result.code;- const code = typeof rawCode === 'string' || typeof rawCode === 'number'+ const code = attachment ? attachment.code : typeof rawCode === 'string' || typeof rawCode === 'number'? String(rawCode).slice(0, 80): 'operation_rejected';- const key = `${channel}|${code}`;+ const key = `${channel}|${code}${attachment ? `|${attachment.failure_kind}` : ''}`;const now = Date.now();const previous = ipcResultFailureState.get(key);if (previous && now - previous.at < IPC_RESULT_FAILURE_DEDUPE_MS) {@@ -137,7 +181,10 @@ function logInvokeResultFailure(channel: string, result: Record<string, unknown>log.warn('invoke returned failure', {channel,code,- ...(channel === 'contexts.attachToDraft' || channel === 'projects.files.attachToDraft'+ ...(attachment ? {+ failure_kind: attachment.failure_kind,+ ...(Number.isInteger(result.failed_count) ? { failed_count: result.failed_count } : {}),+ } : channel === 'contexts.attachToDraft' || channel === 'projects.files.attachToDraft'? { failure_stage: result.failure_stage, failure_kind: result.failure_kind }: { error: typeof result.error === 'string' ? result.error : 'operation rejected' }),...(suppressed > 0 ? { suppressed_count: suppressed } : {}),@@ -296,9 +343,10 @@ async function _importLocalFileEntries(payload: any, ctx: IpcContext): Promise<{const result = await chatAttachments.importAttachmentFromPath(ctx.userId, cid, entry.path, name);results.push({ ...index, name, ...result });} catch (err) {- results.push({ ...index, name, ok: false, error: (err as Error)?.message || String(err) });+ results.push({ ...index, name, ok: false, error: (err as Error)?.message || String(err), failure_kind: fileFailureKind(err) });}}+ logAttachmentBatchFailures('orkas.importLocalFiles', results.filter(result => result.ok === false));return { files: results };}if (scope === 'contexts') {@@ -623,6 +671,15 @@ async function _isAllowedFileActionPath(userId: string, payload: any, absPath: sreturn typeof cid === 'string' && !!cid && await _isConversationRecordedFile(userId, cid, absPath);}+async function _savedAppRecoverySource(userId:string,payload:any):Promise<{rootDir:string}> {+ if(typeof payload?.path!=='string'||!payload.path)throw new Error('missing path');+ const target=path.resolve(payload.path);+ if(!await _isAllowedFileActionPath(userId,payload,target))throw new Error('path is outside the user workspace');+ const inspected=await savedApps.inspectBundleFromPath(target,{fenceRoots:await _ipcFileSandboxAllowedRoots(userId,payload)});+ if(!inspected.ok||!inspected.canSave)throw Object.assign(new Error('app_edit_target_missing'),{code:'app_edit_target_missing'});+ return {rootDir:inspected.rootDir};+}+// Todo preview adds only an exact, existing attachment in the resolved scope.// Keep mutation/share authorization on the existing file-action boundary.async function _isAllowedPreviewFilePath(userId: string, payload: any, absPath: string): Promise<boolean> {@@ -784,11 +841,11 @@ function _contextTreeHasPath(nodes: contexts.ContextNode[], relPath: string): boreturn false;}-function _uniqueContextImportPath(rawName: string): string {+async function _uniqueContextImportPath(rawName: string): Promise<string> {const name = path.basename(String(rawName || '').trim() || 'artifact');const ext = path.extname(name);const stem = ext ? name.slice(0, -ext.length) : name;- const tree = contexts.listContextsTree();+ const tree = await contexts.listContextsTree();if (!_contextTreeHasPath(tree, name)) return name;for (let i = 2; i < 1000; i += 1) {const candidate = `${stem}-${i}${ext}`;@@ -847,7 +904,7 @@ async function _importProducedToLibrary(payload: any, ctx: IpcContext): Promise<const relPath = typeof payload?.targetPath === 'string' && payload.targetPath.trim()? payload.targetPath.trim()- : _uniqueContextImportPath(targetName);+ : await _uniqueContextImportPath(targetName);const result = contexts.uploadContextFile(relPath, buf);if (!result.ok) return result;return { ok: true, scope: 'global', path: result.path, bytes: result.bytes };@@ -978,6 +1035,12 @@ async function _afterRecycleRestore(ctx: IpcContext, paths: string[]): Promise<v// merged into a `{ ok: true, ...result }` response. Throw to signal error.const invokeHandlers: Record<string, InvokeHandler> = {+ 'voiceInput.createSession': () => voiceInput.createVoiceSession(),+ 'voiceInput.ensureMicrophoneAccess': () => voiceInput.ensureMicrophoneAccess(),+ 'appPublishing.prepare': async () => publishApp(),+ 'appPublishing.publish': async () => publishApp(),+ 'appPublishing.recover': async () => publishApp(),+ 'appPublishing.unpublish': async () => publishApp(),...webAppInvokeHandlers,'clientConfig.getQuickStart': async () => getQuickStartConfigState(),'user.init': async () => {@@ -1187,7 +1250,6 @@ const invokeHandlers: Record<string, InvokeHandler> = {},'conversations.create': async ({ title = '', projectId = '', assistance } = {}, ctx) => {- if (assistance?.kind === 'app_creation' && ['web', 'cloud'].includes(assistance.appType)) return commercialWebAppFailure();const normalizedAssistance = chats.normalizeConversationAssistance(assistance);const validatedAssistance = assistance === undefined ? undefined: normalizedAssistance?.kind === 'app_creation' ? normalizedAssistance@@ -1337,7 +1399,7 @@ const invokeHandlers: Record<string, InvokeHandler> = {'projects.rename': async ({ projectId, name }, ctx) => {if (!safeId(projectId)) throw new Error('invalid projectId');- const result = await projects.renameProject(ctx.userId, projectId, name);+ const result = await projects.renameProjectForUser(ctx.userId, projectId, name);if (!result.ok) throw new Error((result as { error: string }).error);return { project: result.project };},@@ -1441,23 +1503,31 @@ const invokeHandlers: Record<string, InvokeHandler> = {return projectTasks.listOpenTasks(ctx.userId, all === true ? undefined : count);},- 'projects.tasks.create': async ({ projectId, taskId, content, title, detail, status, owner_agent, owner_agent_id, depends_on } = {}, ctx) => {+ 'projects.tasks.create': async ({ projectId, taskId, content, title, detail, status, owner_agent, owner_agent_id, depends_on, attachment_order, due_at } = {}, ctx) => {const scopeProjectId = todoProjectScope(projectId);if (content !== undefined && typeof content !== 'string') throw new Error('invalid content');+ if (attachment_order !== undefined && (!Array.isArray(attachment_order) || attachment_order.length > 200+ || attachment_order.some((name: unknown) => typeof name !== 'string'))) throw new Error('invalid attachment order');const r = await projectTasks.createTask(ctx.userId, scopeProjectId, {- content, title, detail, status, owner_agent, owner_agent_id, depends_on, created_by: 'user',+ attachment_order, content, title, detail, status, owner_agent, owner_agent_id, depends_on, created_by: 'user',// Optional pre-allocated id so the editor can stage attachments before the// task exists; create adopts whatever landed in that draft dir....(typeof taskId === 'string' && taskId ? { id: taskId } : {}),+ ...(typeof due_at === 'string' && due_at ? { due_at } : {}),});if (!r.ok) throw new Error((r as { error: string }).error);return { task: r.task, alreadyExists: r.alreadyExists };},- 'projects.tasks.update': async ({ projectId, taskId, content, title, detail, status, owner_agent, owner_agent_id } = {}, ctx) => {+ 'projects.tasks.update': async ({ projectId, taskId, content, title, detail, status, owner_agent, owner_agent_id, attachment_order, due_at } = {}, ctx) => {const scopeProjectId = todoProjectScope(projectId);if (typeof taskId !== 'string' || !taskId) throw new Error('invalid taskId');- const r = await projectTasks.updateTask(ctx.userId, scopeProjectId, taskId, { content, title, detail, status, owner_agent, owner_agent_id });+ if (attachment_order !== undefined && (!Array.isArray(attachment_order) || attachment_order.length > 200+ || attachment_order.some((name: unknown) => typeof name !== 'string'))) throw new Error('invalid attachment order');+ const r = await projectTasks.updateTask(ctx.userId, scopeProjectId, taskId, {+ content, title, detail, status, owner_agent, owner_agent_id, attachment_order,+ ...(due_at !== undefined ? { due_at: typeof due_at === 'string' && due_at ? due_at : null } : {}),+ });if (!r.ok) throw new Error((r as { error: string }).error);return { task: r.task };},@@ -1747,7 +1817,8 @@ const invokeHandlers: Record<string, InvokeHandler> = {// `bindings.list` returns the bound ids JOINED with name/description so// the renderer can paint the detail page in one round-trip. A catalog scan// may miss an updating package or a concurrent addition; reads must not- // remove persisted bindings based on that snapshot.+ // remove persisted bindings based on that snapshot. An unresolved binding+ // is returned as an unavailable placeholder so the user can remove it.'projects.bindings.list': async ({ projectId }, ctx) => {if (!safeId(projectId)) throw new Error('invalid projectId');if (!await projects.projectExists(ctx.userId, projectId)) throw new Error('not_found');@@ -1757,8 +1828,10 @@ const invokeHandlers: Record<string, InvokeHandler> = {return {bindings,agentDetails: bindings.agents- .map((id) => agentById.get(id))- .filter(Boolean),+ .map((id) => agentById.get(id) || {+ agent_id: id, name: '',+ enabled: false, unavailable: true,+ }),};},@@ -2208,17 +2281,18 @@ const invokeHandlers: Record<string, InvokeHandler> = {const picked = await _pickLocalFiles('Choose files', CHAT_PICK_EXTENSIONS, true);if (!picked.length) return { cancelled: true, items: [], failed: [] };const items = [];- const failed: Array<{ name: string; error: string }> = [];+ const failed: Array<{ name: string; error: string; error_code?: string; failure_kind?: string }> = [];for (const filePath of picked) {const name = path.basename(filePath);try {const res = await chatAttachments.importAttachmentFromPath(ctx.userId, cid, filePath, name);- if (res.ok) items.push({ displayName: name, info: res.info, reused: !!res.reused });- else failed.push({ name, error: (res as any).error });+ if (res.ok === true) items.push({ displayName: name, info: res.info, reused: !!res.reused });+ else failed.push({ name, error: res.error, error_code: res.error_code, failure_kind: res.failure_kind });} catch (err) {- failed.push({ name, error: (err as Error)?.message || String(err) });+ failed.push({ name, error: (err as Error)?.message || String(err), failure_kind: fileFailureKind(err) });}}+ logAttachmentBatchFailures('conversations.attachments.pickAndUpload', failed);return { cancelled: false, items, failed };},@@ -2275,25 +2349,42 @@ const invokeHandlers: Record<string, InvokeHandler> = {// Copy a chat artifact into the persistent "My Apps" pool// (`<uid>/cloud/saved_apps/<appId>/`). Surfaced as the artifact card's// `⋯` → "保存".- 'conversations.artifacts.editTarget': async ({ cid }, ctx) => {+ 'conversations.artifacts.editTarget': async ({ cid, artifactId }, ctx) => {if (!safeId(cid)) throw new Error('invalid cid');- return { target: await savedApps.getEditTarget(ctx.userId, String(cid)) };+ return { target: artifactId ? await savedApps.getSaveTarget(ctx.userId,String(cid),{artifactId:String(artifactId)}) : await savedApps.getEditTarget(ctx.userId, String(cid)) };},'conversations.artifacts.save': async ({ cid, artifactId, mode, recovery }, ctx) => {if (!safeId(cid)) throw new Error('invalid cid');- if (mode !== undefined && mode !== 'new' && mode !== 'update') throw new Error('invalid save mode');- const r = await savedApps.saveFromArtifact(ctx.userId, String(cid), String(artifactId || ''), mode || 'new',recovery);- if (isCommercialWebAppFailure(r)) return r;+ if (mode !== undefined && !['new','update','auto'].includes(mode)) throw new Error('invalid save mode');+ const r = await savedApps.saveFromArtifact(ctx.userId, String(cid), String(artifactId || ''), mode || 'auto',recovery);if (!r.ok) return { ok: false, code: (r as { error: string }).error };return { ok: true, id: (r as { id: string }).id, title: (r as { title: string }).title };},'conversations.artifacts.dataImpact': async ({cid,artifactId},ctx)=>savedApps.appDataImpact(ctx.userId,String(cid),String(artifactId)),- 'conversations.artifacts.exportData': async ({cid,artifactId},ctx)=>{+ 'conversations.artifacts.exportData': async ({cid,artifactId,appId},ctx)=>{const impact=await savedApps.appDataImpact(ctx.userId,String(cid),String(artifactId));if(!impact.ok)return impact;+ if(appId!==undefined&&impact.appId!==appId)return {ok:false,code:'app_edit_conflict'};const result=await dialog.showSaveDialog({defaultPath:'app-data.sqlite',filters:[{name:'SQLite',extensions:['sqlite']}]});if(result.canceled||!result.filePath)return {ok:true,canceled:true};if(users.getActiveUserId()!==ctx.userId)return {ok:false,code:'E_CLOSED'};- return savedApps.exportAppData(ctx.userId,String(cid),String(artifactId),result.filePath);+ return savedApps.exportAppData(ctx.userId,String(cid),String(artifactId),result.filePath,impact.appId);+ },++ 'savedApps.dataImpactFromPath': async (payload,ctx)=>{+ const source=await _savedAppRecoverySource(ctx.userId,payload);+ return savedApps.appDataImpact(ctx.userId,String(payload?.cid||''),source);+ },+ 'savedApps.exportDataFromPath': async (payload,ctx)=>{+ const source=await _savedAppRecoverySource(ctx.userId,payload);+ const cid=String(payload?.cid||'');+ const impact=await savedApps.appDataImpact(ctx.userId,cid,source);+ if(!impact.ok)return impact;+ if(payload?.appId!==impact.appId)return {ok:false,code:'app_edit_conflict'};+ const result=await dialog.showSaveDialog({defaultPath:'app-data.sqlite',filters:[{name:'SQLite',extensions:['sqlite']}]});+ if(result.canceled||!result.filePath)return {ok:true,canceled:true};+ if(users.getActiveUserId()!==ctx.userId)return {ok:false,code:'E_CLOSED'};+ const current=await _savedAppRecoverySource(ctx.userId,payload);+ return savedApps.exportAppData(ctx.userId,cid,current,result.filePath,impact.appId);},'savedApps.inspectBundleFromPath': async (payload, ctx) => {@@ -2304,12 +2395,14 @@ const invokeHandlers: Record<string, InvokeHandler> = {if (await _isAllowedPreviewFilePath(ctx.userId, payload, norm)) return { canSave: false };throw new Error('path is outside the user workspace');}- return savedApps.inspectBundleFromPath(norm, {+ const inspected = await savedApps.inspectBundleFromPath(norm, {fenceRoots: await _ipcFileSandboxAllowedRoots(ctx.userId, payload),});+ return inspected.ok && inspected.canSave ? {...inspected,target:await savedApps.getSaveTarget(ctx.userId,String(payload?.cid || ''),{rootDir:inspected.rootDir})} : inspected;},'savedApps.saveFromPath': async (payload, ctx) => {+ if (payload?.mode !== undefined && !['new','update','auto'].includes(payload.mode)) throw new Error('invalid save mode');const target = payload?.path;if (typeof target !== 'string' || !target) throw new Error('missing path');const norm = path.resolve(target);@@ -2319,10 +2412,12 @@ const invokeHandlers: Record<string, InvokeHandler> = {const r = await savedApps.saveFromPath(ctx.userId, norm, {title: payload?.title,sourceCid: payload?.cid,+ mode: payload?.mode || 'auto',+ recovery: payload?.recovery,fenceRoots: await _ipcFileSandboxAllowedRoots(ctx.userId, payload),});if (!r.ok && (r as { error?: string }).error === 'app_bundle_root') return r;- if (isCommercialWebAppFailure(r)) return r;+ if (!r.ok && (r as { error?: string }).error === 'app_edit_data_migration') return {ok:false,code:'app_edit_data_migration'};if (!r.ok) { const code = (r as { error?: string }).error || 'app_save_failed'; throw Object.assign(new Error(code), { code }); }return r;},@@ -2333,8 +2428,6 @@ const invokeHandlers: Record<string, InvokeHandler> = {'savedApps.list': async (payload, ctx) => ({ apps: payload?.localOnly === true? savedApps.listSavedApps(ctx.userId) : await savedApps.listResolvedSavedApps(ctx.userId) }),'savedApps.openExternal': async ({ appId }, ctx) => {- const type = await savedApps.resolveSavedAppType(ctx.userId, String(appId || ''));- if (type === 'web') return commercialWebAppFailure();const r = savedApps.resolveSavedAppIndex(ctx.userId, String(appId || ''));if (!r.ok) throw new Error((r as { error?: string }).error || 'app not found');const absPath = (r as { absPath: string }).absPath;@@ -2348,7 +2441,7 @@ const invokeHandlers: Record<string, InvokeHandler> = {'previewWindows.open': async (payload, ctx) => previewWindows.openPreview(ctx.userId, ctx.sender, payload),'previewWindows.initialize': async (_payload, ctx) => previewWindows.initializePreview(ctx.userId, ctx.sender),'previewWindows.ready': async (_payload, ctx) => { previewWindows.readyPreview(ctx.userId, ctx.sender); return {}; },- 'previewWindows.replace': async (payload, ctx) => { await previewWindows.replacePreview(ctx.userId, ctx.sender, payload.accepted); return {}; },+ 'previewWindows.replace': async (payload, ctx) => (await previewWindows.replacePreview(ctx.userId, ctx.sender, payload.accepted)) || {},'previewWindows.setDirty': async (payload, ctx) => { previewWindows.setPreviewDirty(ctx.userId, ctx.sender, payload.dirty); return {}; },'previewWindows.filesChanged': async (_payload, ctx) => { previewWindows.notifyPreviewFilesChanged(ctx.userId, ctx.sender); return {}; },'previewWindows.close': async (_payload, ctx) => { previewWindows.closePreview(ctx.userId, ctx.sender); return {}; },@@ -2820,7 +2913,7 @@ const invokeHandlers: Record<string, InvokeHandler> = {}),// ── Contexts (user-owned directory tree; vectorized via kb_indexer) ──- 'contexts.tree': async () => ({ tree: contexts.listContextsTree() }),+ 'contexts.tree': async () => ({ tree: await contexts.listContextsTree() }),'contexts.read': async ({ path, preview }) => {return contexts.readContextFile(path || '', preview === true || preview === 'true');@@ -3122,8 +3215,6 @@ const invokeHandlers: Record<string, InvokeHandler> = {// ── Orkas public API key quick setup (open-source build only) ──'orkasApi.configureAll': async ({ apiKey }) => auth.configureAllOrkasApiServices(apiKey),'orkasApi.getStatus': async () => auth.getOrkasApiCredentialStatus(),- 'voiceInput.createSession': () => voiceInput.createVoiceSession(),- 'voiceInput.ensureMicrophoneAccess': () => voiceInput.ensureMicrophoneAccess(),'voiceInput.status': async () => voiceInput.getVoiceStatus(),'voice.status': async () => voiceInput.getVoiceStatus(),'voice.createSession': async () => voiceInput.createVoiceSession(),@@ -4167,7 +4258,8 @@ export function register(): void {: (typeof rawCode === 'string' && /^\d+$/.test(rawCode.trim())? Number(rawCode.trim()): (typeof rawCode === 'string' && rawCode ? rawCode : normalized.code));- log.error(`invoke ${channel} failed`, { error: normalized.error, code });+ const attachment = attachmentAddChannels.has(channel) ? attachmentFailureDiagnostic({ code, failure_kind: fileFailureKind(err) }) : null;+ log.error(`invoke ${channel} failed`, attachment || { error: normalized.error, code });const out: {ok: false;error: string;@@ -4180,10 +4272,12 @@ export function register(): void {marketplaceMinAppVersion?: string;marketplaceCurrentAppVersion?: string;qualityReport?: unknown;+ failure_kind?: string;} = {ok: false,error: normalized.error,code,+ ...(attachment ? { failure_kind: attachment.failure_kind } : {}),};const qualityReport = (err as { qualityReport?: unknown }).qualityReport;if (qualityReport) out.qualityReport = qualityReport;diff --git a/src/main/locales/ar.json b/src/main/locales/ar.jsonindex d3522c85..05ff9278 100644--- a/src/main/locales/ar.json+++ b/src/main/locales/ar.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "مفتاح API للمنصة المفتوحة بنظام الدفع حسب الاستخدام — تُحتسب تكلفته منفصلةً عن اشتراك Kimi Coding Plan؛ ولا يمكن استخدام أحد المفتاحين مكان الآخر","provider.kimi_coding.note_subscription": "لاشتراك Kimi Coding Plan الشهري فقط — يستخدم نقطة نهاية ببروتوكول Anthropic، منفصلةً عن مفتاح Moonshot API بنظام الدفع حسب الاستخدام","apps.edit_conv_title": "تعديل \"{name}\"",- "notification.task.completed.title": "تم تحديث حالة المهمة",+ "notification.task.completed.title": "اكتملت المهمة","notification.task.completed.body": "افتح Orkas لعرض التفاصيل.","notification.task.stopped.title": "توقفت المهمة","notification.task.stopped.body": "افتح Orkas لعرض النتيجة الجزئية.",- "notification.task.failed.title": "تم تحديث حالة المهمة",+ "notification.task.failed.title": "فشلت المهمة","notification.task.failed.body": "افتح Orkas لعرض التفاصيل.",- "notification.task.waiting_input.title": "تم تحديث حالة المهمة",+ "notification.task.waiting_input.title": "مهمة بانتظار ردك","notification.task.waiting_input.body": "افتح Orkas لعرض التفاصيل.","chat.reply_interrupted": "انقطع الرد السابق عند إغلاق التطبيق. احتُفظ بالتقدم المحفوظ؛ أرسل رسالة للمتابعة.","project.driver.advance_seed_owner": "أنت المسؤول المكلّف بهذه المهمة: نفّذ العمل بنفسك بدلًا من إسناده لغيرك، وتحقق من النتيجة.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "جارٍ الاتصال بهاتفك…","web_assist.passkey.confirm": "تم الاتصال بالهاتف. أكّد العملية على هاتفك.","web_assist.passkey.verifying": "جارٍ العودة إلى الموقع…",- "errors.model_context_too_small": "يتطلب هذا النموذج نافذة سياق لا تقل عن {minimum} رمزًا. اختر نموذجًا بنافذة أكبر."+ "errors.model_context_too_small": "يتطلب هذا النموذج نافذة سياق لا تقل عن {minimum} رمزًا. اختر نموذجًا بنافذة أكبر.",+ "notification.task.completed.title_many": "اكتملت {count} مهام",+ "notification.task.stopped.title_many": "توقفت {count} مهام",+ "notification.task.failed.title_many": "فشلت {count} مهام",+ "notification.task.waiting_input.title_many": "{count} مهام بانتظار ردك",+ "notification.automation.completed.title": "اكتمل تشغيل الأتمتة",+ "notification.automation.completed.title_many": "اكتمل {count} من عمليات تشغيل الأتمتة",+ "notification.automation.stopped.title": "توقف تشغيل الأتمتة",+ "notification.automation.stopped.title_many": "توقف {count} من عمليات تشغيل الأتمتة",+ "notification.automation.failed.title": "فشل تشغيل الأتمتة",+ "notification.automation.failed.title_many": "فشل {count} من عمليات تشغيل الأتمتة",+ "notification.automation.waiting_input.title": "تشغيل أتمتة بانتظار ردك",+ "notification.automation.waiting_input.title_many": "{count} من عمليات تشغيل الأتمتة بانتظار ردك"}diff --git a/src/main/locales/de.json b/src/main/locales/de.jsonindex a6939446..c7f11a2f 100644--- a/src/main/locales/de.json+++ b/src/main/locales/de.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "API-Schlüssel der offenen Plattform mit nutzungsabhängiger Abrechnung – separat vom Abonnement für Kimi Coding Plan abgerechnet; die beiden Schlüssel sind nicht austauschbar","provider.kimi_coding.note_subscription": "Nur für das monatliche Abonnement für Kimi Coding Plan – verwendet den Endpunkt mit Anthropic-Protokoll, getrennt vom nutzungsabhängig abgerechneten Moonshot-API-Schlüssel","apps.edit_conv_title": "„{name}“ bearbeiten",- "notification.task.completed.title": "Aufgabenstatus aktualisiert",+ "notification.task.completed.title": "Aufgabe abgeschlossen","notification.task.completed.body": "Öffnen Sie Orkas, um Details anzuzeigen.","notification.task.stopped.title": "Aufgabe gestoppt","notification.task.stopped.body": "Öffnen Sie Orkas, um das Teilergebnis anzuzeigen.",- "notification.task.failed.title": "Aufgabenstatus aktualisiert",+ "notification.task.failed.title": "Aufgabe fehlgeschlagen","notification.task.failed.body": "Öffnen Sie Orkas, um Details anzuzeigen.",- "notification.task.waiting_input.title": "Aufgabenstatus aktualisiert",+ "notification.task.waiting_input.title": "Eine Aufgabe wartet auf Ihre Antwort","notification.task.waiting_input.body": "Öffnen Sie Orkas, um Details anzuzeigen.","chat.reply_interrupted": "Die vorherige Antwort wurde beim Beenden der App unterbrochen. Gespeicherter Fortschritt bleibt erhalten; senden Sie eine Nachricht, um fortzufahren.","project.driver.advance_seed_owner": "You are this task's assigned owner: do the work yourself rather than handing it off, and verify the result.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Verbindung zum Smartphone wird hergestellt…","web_assist.passkey.confirm": "Smartphone verbunden. Bestätigen Sie auf Ihrem Smartphone.","web_assist.passkey.verifying": "Zurück zur Website…",- "errors.model_context_too_small": "Dieses Modell benötigt ein Kontextfenster von mindestens {minimum} Tokens. Wählen Sie ein Modell mit einem größeren Fenster."+ "errors.model_context_too_small": "Dieses Modell benötigt ein Kontextfenster von mindestens {minimum} Tokens. Wählen Sie ein Modell mit einem größeren Fenster.",+ "notification.task.completed.title_many": "{count} Aufgaben abgeschlossen",+ "notification.task.stopped.title_many": "{count} Aufgaben gestoppt",+ "notification.task.failed.title_many": "{count} Aufgaben fehlgeschlagen",+ "notification.task.waiting_input.title_many": "{count} Aufgaben warten auf Ihre Antwort",+ "notification.automation.completed.title": "Automatisierungslauf abgeschlossen",+ "notification.automation.completed.title_many": "{count} Automatisierungsläufe abgeschlossen",+ "notification.automation.stopped.title": "Automatisierungslauf gestoppt",+ "notification.automation.stopped.title_many": "{count} Automatisierungsläufe gestoppt",+ "notification.automation.failed.title": "Automatisierungslauf fehlgeschlagen",+ "notification.automation.failed.title_many": "{count} Automatisierungsläufe fehlgeschlagen",+ "notification.automation.waiting_input.title": "Ein Automatisierungslauf wartet auf Ihre Antwort",+ "notification.automation.waiting_input.title_many": "{count} Automatisierungsläufe warten auf Ihre Antwort"}diff --git a/src/main/locales/en.json b/src/main/locales/en.jsonindex 0b20a86b..9c98ad03 100644--- a/src/main/locales/en.json+++ b/src/main/locales/en.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Pay-as-you-go open-platform API key — billed separately from the Kimi Coding Plan subscription; the two keys are not interchangeable","provider.kimi_coding.note_subscription": "Kimi Coding Plan monthly subscription only — uses the Anthropic-protocol endpoint, separate from the pay-as-you-go Moonshot API key","apps.edit_conv_title": "Edit \"{name}\"",- "notification.task.completed.title": "Task status updated",+ "notification.task.completed.title": "Task completed","notification.task.completed.body": "Open Orkas to view details.","notification.task.stopped.title": "Task stopped","notification.task.stopped.body": "Open Orkas to view the partial result.",- "notification.task.failed.title": "Task status updated",+ "notification.task.failed.title": "Task failed","notification.task.failed.body": "Open Orkas to view details.",- "notification.task.waiting_input.title": "Task status updated",+ "notification.task.waiting_input.title": "A task needs your reply","notification.task.waiting_input.body": "Open Orkas to view details.","chat.reply_interrupted": "The previous response was interrupted when the app exited. Durable progress was kept; send a message to continue.","project.driver.advance_seed_owner": "You are this task's assigned owner: do the work yourself rather than handing it off, and verify the result.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Connecting to your phone…","web_assist.passkey.confirm": "Phone connected. Confirm on your phone.","web_assist.passkey.verifying": "Returning to the website…",- "errors.model_context_too_small": "This model requires a context window of at least {minimum} tokens. Choose a model with a larger window."+ "errors.model_context_too_small": "This model requires a context window of at least {minimum} tokens. Choose a model with a larger window.",+ "notification.task.completed.title_many": "{count} tasks completed",+ "notification.task.stopped.title_many": "{count} tasks stopped",+ "notification.task.failed.title_many": "{count} tasks failed",+ "notification.task.waiting_input.title_many": "{count} tasks need your reply",+ "notification.automation.completed.title": "Automation run finished",+ "notification.automation.completed.title_many": "{count} automation runs finished",+ "notification.automation.stopped.title": "Automation run stopped",+ "notification.automation.stopped.title_many": "{count} automation runs stopped",+ "notification.automation.failed.title": "Automation run failed",+ "notification.automation.failed.title_many": "{count} automation runs failed",+ "notification.automation.waiting_input.title": "An automation run needs your reply",+ "notification.automation.waiting_input.title_many": "{count} automation runs need your reply"}diff --git a/src/main/locales/es-419.json b/src/main/locales/es-419.jsonindex 8695b9db..90743b71 100644--- a/src/main/locales/es-419.json+++ b/src/main/locales/es-419.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Clave de API de pago por uso de la plataforma abierta: se factura por separado de la suscripción Kimi Coding Plan; las dos claves no son intercambiables","provider.kimi_coding.note_subscription": "Solo suscripción mensual a Kimi Coding Plan: usa el endpoint del protocolo Anthropic, distinto de la clave de API de pago por uso de Moonshot","apps.edit_conv_title": "Editar \"{name}\"",- "notification.task.completed.title": "Estado de la tarea actualizado",+ "notification.task.completed.title": "Tarea completada","notification.task.completed.body": "Abre Orkas para ver los detalles.","notification.task.stopped.title": "Tarea detenida","notification.task.stopped.body": "Abre Orkas para ver el resultado parcial.",- "notification.task.failed.title": "Estado de la tarea actualizado",+ "notification.task.failed.title": "Tarea fallida","notification.task.failed.body": "Abre Orkas para ver los detalles.",- "notification.task.waiting_input.title": "Estado de la tarea actualizado",+ "notification.task.waiting_input.title": "Una tarea espera tu respuesta","notification.task.waiting_input.body": "Abre Orkas para ver los detalles.","chat.reply_interrupted": "La respuesta anterior se interrumpió al salir de la aplicación. Se conservó el progreso persistente; envía un mensaje para continuar.","project.driver.advance_seed_owner": "Eres el responsable asignado a esta tarea: realiza el trabajo por tu cuenta en lugar de delegarlo y verifica el resultado.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Conectando con tu teléfono…","web_assist.passkey.confirm": "Teléfono conectado. Confirma en tu teléfono.","web_assist.passkey.verifying": "Volviendo al sitio web…",- "errors.model_context_too_small": "Este modelo requiere una ventana de contexto de al menos {minimum} tokens. Elige un modelo con una ventana mayor."+ "errors.model_context_too_small": "Este modelo requiere una ventana de contexto de al menos {minimum} tokens. Elige un modelo con una ventana mayor.",+ "notification.task.completed.title_many": "{count} tareas completadas",+ "notification.task.stopped.title_many": "{count} tareas detenidas",+ "notification.task.failed.title_many": "{count} tareas fallidas",+ "notification.task.waiting_input.title_many": "{count} tareas esperan tu respuesta",+ "notification.automation.completed.title": "Ejecución de automatización completada",+ "notification.automation.completed.title_many": "{count} ejecuciones de automatización completadas",+ "notification.automation.stopped.title": "Ejecución de automatización detenida",+ "notification.automation.stopped.title_many": "{count} ejecuciones de automatización detenidas",+ "notification.automation.failed.title": "Ejecución de automatización fallida",+ "notification.automation.failed.title_many": "{count} ejecuciones de automatización fallidas",+ "notification.automation.waiting_input.title": "Una ejecución de automatización espera tu respuesta",+ "notification.automation.waiting_input.title_many": "{count} ejecuciones de automatización esperan tu respuesta"}diff --git a/src/main/locales/es.json b/src/main/locales/es.jsonindex 55415b46..d831604d 100644--- a/src/main/locales/es.json+++ b/src/main/locales/es.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Clave de API de pago por uso de la plataforma abierta: se factura por separado de la suscripción Kimi Coding Plan; las dos claves no son intercambiables","provider.kimi_coding.note_subscription": "Solo suscripción mensual a Kimi Coding Plan: usa el endpoint del protocolo Anthropic, distinto de la clave de API de pago por uso de Moonshot","apps.edit_conv_title": "Editar \"{name}\"",- "notification.task.completed.title": "Estado de la tarea actualizado",+ "notification.task.completed.title": "Tarea completada","notification.task.completed.body": "Abre Orkas para ver los detalles.","notification.task.stopped.title": "Tarea detenida","notification.task.stopped.body": "Abre Orkas para ver el resultado parcial.",- "notification.task.failed.title": "Estado de la tarea actualizado",+ "notification.task.failed.title": "Tarea fallida","notification.task.failed.body": "Abre Orkas para ver los detalles.",- "notification.task.waiting_input.title": "Estado de la tarea actualizado",+ "notification.task.waiting_input.title": "Una tarea espera tu respuesta","notification.task.waiting_input.body": "Abre Orkas para ver los detalles.","chat.reply_interrupted": "La respuesta anterior se interrumpió al salir de la aplicación. Se conservó el progreso persistente; envía un mensaje para continuar.","project.driver.advance_seed_owner": "You are this task's assigned owner: do the work yourself rather than handing it off, and verify the result.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Conectando con tu teléfono…","web_assist.passkey.confirm": "Teléfono conectado. Confirma en tu teléfono.","web_assist.passkey.verifying": "Volviendo al sitio web…",- "errors.model_context_too_small": "Este modelo requiere una ventana de contexto de al menos {minimum} tokens. Elige un modelo con una ventana mayor."+ "errors.model_context_too_small": "Este modelo requiere una ventana de contexto de al menos {minimum} tokens. Elige un modelo con una ventana mayor.",+ "notification.task.completed.title_many": "{count} tareas completadas",+ "notification.task.stopped.title_many": "{count} tareas detenidas",+ "notification.task.failed.title_many": "{count} tareas fallidas",+ "notification.task.waiting_input.title_many": "{count} tareas esperan tu respuesta",+ "notification.automation.completed.title": "Ejecución de automatización completada",+ "notification.automation.completed.title_many": "{count} ejecuciones de automatización completadas",+ "notification.automation.stopped.title": "Ejecución de automatización detenida",+ "notification.automation.stopped.title_many": "{count} ejecuciones de automatización detenidas",+ "notification.automation.failed.title": "Ejecución de automatización fallida",+ "notification.automation.failed.title_many": "{count} ejecuciones de automatización fallidas",+ "notification.automation.waiting_input.title": "Una ejecución de automatización espera tu respuesta",+ "notification.automation.waiting_input.title_many": "{count} ejecuciones de automatización esperan tu respuesta"}diff --git a/src/main/locales/fr.json b/src/main/locales/fr.jsonindex 4e324b39..62a59096 100644--- a/src/main/locales/fr.json+++ b/src/main/locales/fr.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Clé API de plateforme ouverte avec paiement à l’usage — facturée séparément de l’abonnement Kimi Coding Plan ; les deux clés ne sont pas interchangeables","provider.kimi_coding.note_subscription": "Abonnement mensuel Kimi Coding Plan uniquement — utilise le point d’accès au protocole Anthropic, distinct de la clé API Moonshot avec paiement à l’usage","apps.edit_conv_title": "Modifier « {name} »",- "notification.task.completed.title": "État de la tâche mis à jour",+ "notification.task.completed.title": "Tâche terminée","notification.task.completed.body": "Ouvrez Orkas pour voir les détails.","notification.task.stopped.title": "Tâche arrêtée","notification.task.stopped.body": "Ouvrez Orkas pour voir le résultat partiel.",- "notification.task.failed.title": "État de la tâche mis à jour",+ "notification.task.failed.title": "Tâche échouée","notification.task.failed.body": "Ouvrez Orkas pour voir les détails.",- "notification.task.waiting_input.title": "État de la tâche mis à jour",+ "notification.task.waiting_input.title": "Une tâche attend votre réponse","notification.task.waiting_input.body": "Ouvrez Orkas pour voir les détails.","chat.reply_interrupted": "La réponse précédente a été interrompue à la fermeture de l’application. L’avancement enregistré a été conservé ; envoyez un message pour continuer.","project.driver.advance_seed_owner": "You are this task's assigned owner: do the work yourself rather than handing it off, and verify the result.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Connexion à votre téléphone…","web_assist.passkey.confirm": "Téléphone connecté. Confirmez sur votre téléphone.","web_assist.passkey.verifying": "Retour au site web…",- "errors.model_context_too_small": "Ce modèle nécessite une fenêtre de contexte d’au moins {minimum} tokens. Choisissez un modèle avec une fenêtre plus grande."+ "errors.model_context_too_small": "Ce modèle nécessite une fenêtre de contexte d’au moins {minimum} tokens. Choisissez un modèle avec une fenêtre plus grande.",+ "notification.task.completed.title_many": "{count} tâches terminées",+ "notification.task.stopped.title_many": "{count} tâches arrêtées",+ "notification.task.failed.title_many": "{count} tâches échouées",+ "notification.task.waiting_input.title_many": "{count} tâches attendent votre réponse",+ "notification.automation.completed.title": "Exécution d'automatisation terminée",+ "notification.automation.completed.title_many": "{count} exécutions d'automatisation terminées",+ "notification.automation.stopped.title": "Exécution d'automatisation arrêtée",+ "notification.automation.stopped.title_many": "{count} exécutions d'automatisation arrêtées",+ "notification.automation.failed.title": "Exécution d'automatisation échouée",+ "notification.automation.failed.title_many": "{count} exécutions d'automatisation échouées",+ "notification.automation.waiting_input.title": "Une exécution d'automatisation attend votre réponse",+ "notification.automation.waiting_input.title_many": "{count} exécutions d'automatisation attendent votre réponse"}diff --git a/src/main/locales/hi.json b/src/main/locales/hi.jsonindex f760ffef..4aa3bace 100644--- a/src/main/locales/hi.json+++ b/src/main/locales/hi.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "उपयोग के अनुसार भुगतान वाली ओपन-प्लैटफ़ॉर्म API कुंजी — इसका बिल Kimi Coding Plan सदस्यता से अलग है; दोनों कुंजियाँ एक-दूसरे की जगह नहीं चलतीं","provider.kimi_coding.note_subscription": "केवल Kimi Coding Plan की मासिक सदस्यता — Anthropic-प्रोटोकॉल एंडपॉइंट का उपयोग करती है, उपयोग के अनुसार भुगतान वाली Moonshot API कुंजी से अलग","apps.edit_conv_title": "\"{name}\" संपादित करें",- "notification.task.completed.title": "कार्य की स्थिति अपडेट हुई",+ "notification.task.completed.title": "कार्य पूरा हुआ","notification.task.completed.body": "विवरण देखने के लिए Orkas खोलें।",- "notification.task.stopped.title": "कार्य रुका",+ "notification.task.stopped.title": "कार्य रोका गया","notification.task.stopped.body": "आंशिक परिणाम देखने के लिए Orkas खोलें।",- "notification.task.failed.title": "कार्य की स्थिति अपडेट हुई",+ "notification.task.failed.title": "कार्य विफल रहा","notification.task.failed.body": "विवरण देखने के लिए Orkas खोलें।",- "notification.task.waiting_input.title": "कार्य की स्थिति अपडेट हुई",+ "notification.task.waiting_input.title": "एक कार्य आपके उत्तर की प्रतीक्षा में है","notification.task.waiting_input.body": "विवरण देखने के लिए Orkas खोलें।","chat.reply_interrupted": "ऐप बंद होने पर पिछला उत्तर बाधित हुआ। स्थायी प्रगति सुरक्षित है; जारी रखने के लिए संदेश भेजें।","project.driver.advance_seed_owner": "आप इस कार्य के नियुक्त ज़िम्मेदार हैं: काम किसी और को सौंपने के बजाय खुद करें और परिणाम सत्यापित करें।",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "आपके फ़ोन से कनेक्ट किया जा रहा है…","web_assist.passkey.confirm": "फ़ोन कनेक्ट हो गया। अपने फ़ोन पर पुष्टि करें।","web_assist.passkey.verifying": "वेबसाइट पर लौट रहे हैं…",- "errors.model_context_too_small": "इस मॉडल के लिए कम से कम {minimum} टोकन की संदर्भ विंडो आवश्यक है। बड़ी विंडो वाला मॉडल चुनें।"+ "errors.model_context_too_small": "इस मॉडल के लिए कम से कम {minimum} टोकन की संदर्भ विंडो आवश्यक है। बड़ी विंडो वाला मॉडल चुनें।",+ "notification.task.completed.title_many": "{count} कार्य पूरे हुए",+ "notification.task.stopped.title_many": "{count} कार्य रोके गए",+ "notification.task.failed.title_many": "{count} कार्य विफल रहे",+ "notification.task.waiting_input.title_many": "{count} कार्य आपके उत्तर की प्रतीक्षा में हैं",+ "notification.automation.completed.title": "ऑटोमेशन रन पूरा हुआ",+ "notification.automation.completed.title_many": "{count} ऑटोमेशन रन पूरे हुए",+ "notification.automation.stopped.title": "ऑटोमेशन रन रोका गया",+ "notification.automation.stopped.title_many": "{count} ऑटोमेशन रन रोके गए",+ "notification.automation.failed.title": "ऑटोमेशन रन विफल रहा",+ "notification.automation.failed.title_many": "{count} ऑटोमेशन रन विफल रहे",+ "notification.automation.waiting_input.title": "एक ऑटोमेशन रन आपके उत्तर की प्रतीक्षा में है",+ "notification.automation.waiting_input.title_many": "{count} ऑटोमेशन रन आपके उत्तर की प्रतीक्षा में हैं"}diff --git a/src/main/locales/id.json b/src/main/locales/id.jsonindex 0e9640c3..6a38883d 100644--- a/src/main/locales/id.json+++ b/src/main/locales/id.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Kunci API platform terbuka bayar-as-you-go — ditagih secara terpisah dari langganan Paket Pengkodean Kimi; kedua kunci tersebut tidak dapat dipertukarkan","provider.kimi_coding.note_subscription": "Hanya langganan bulanan Kimi Coding Plan — menggunakan titik akhir protokol Anthropic, terpisah dari kunci API Moonshot bayar sesuai penggunaan","apps.edit_conv_title": "Edit \"{name}\"",- "notification.task.completed.title": "Status tugas diperbarui",+ "notification.task.completed.title": "Tugas selesai","notification.task.completed.body": "Buka Orkas untuk melihat detail.",- "notification.task.stopped.title": "Tugas berhenti",+ "notification.task.stopped.title": "Tugas dihentikan","notification.task.stopped.body": "Buka Orkas untuk melihat hasil parsial.",- "notification.task.failed.title": "Status tugas diperbarui",+ "notification.task.failed.title": "Tugas gagal","notification.task.failed.body": "Buka Orkas untuk melihat detail.",- "notification.task.waiting_input.title": "Status tugas diperbarui",+ "notification.task.waiting_input.title": "Satu tugas menunggu balasan Anda","notification.task.waiting_input.body": "Buka Orkas untuk melihat detail.","chat.reply_interrupted": "Respons sebelumnya terganggu ketika aplikasi keluar. Kemajuan yang tahan lama dipertahankan; kirim pesan untuk melanjutkan.","project.driver.advance_seed_owner": "Anda adalah pemilik tugas yang ditugaskan ini: lakukan pekerjaan itu sendiri daripada menyerahkannya, dan verifikasi hasilnya.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Menghubungkan ke ponsel Anda…","web_assist.passkey.confirm": "Ponsel terhubung. Konfirmasikan di ponsel Anda.","web_assist.passkey.verifying": "Kembali ke situs web…",- "errors.model_context_too_small": "Model ini memerlukan jendela konteks minimal {minimum} token. Pilih model dengan jendela lebih besar."+ "errors.model_context_too_small": "Model ini memerlukan jendela konteks minimal {minimum} token. Pilih model dengan jendela lebih besar.",+ "notification.task.completed.title_many": "{count} tugas selesai",+ "notification.task.stopped.title_many": "{count} tugas dihentikan",+ "notification.task.failed.title_many": "{count} tugas gagal",+ "notification.task.waiting_input.title_many": "{count} tugas menunggu balasan Anda",+ "notification.automation.completed.title": "Otomatisasi selesai dijalankan",+ "notification.automation.completed.title_many": "{count} otomatisasi selesai dijalankan",+ "notification.automation.stopped.title": "Otomatisasi dihentikan",+ "notification.automation.stopped.title_many": "{count} otomatisasi dihentikan",+ "notification.automation.failed.title": "Otomatisasi gagal dijalankan",+ "notification.automation.failed.title_many": "{count} otomatisasi gagal dijalankan",+ "notification.automation.waiting_input.title": "Satu otomatisasi menunggu balasan Anda",+ "notification.automation.waiting_input.title_many": "{count} otomatisasi menunggu balasan Anda"}diff --git a/src/main/locales/it.json b/src/main/locales/it.jsonindex 48986ca9..3bbf6afa 100644--- a/src/main/locales/it.json+++ b/src/main/locales/it.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Chiave API della piattaforma aperta con pagamento a consumo; fatturata separatamente dall'abbonamento Kimi Coding Plan. Le due chiavi non sono intercambiabili","provider.kimi_coding.note_subscription": "Solo abbonamento mensile Kimi Coding Plan; usa l'endpoint del protocollo Anthropic ed è distinto dalla chiave API Moonshot a consumo","apps.edit_conv_title": "Modifica \"{name}\"",- "notification.task.completed.title": "Stato dell'attività aggiornato",+ "notification.task.completed.title": "Attività completata","notification.task.completed.body": "Apri Orkas per i dettagli.","notification.task.stopped.title": "Attività interrotta","notification.task.stopped.body": "Apri Orkas per vedere il risultato parziale.",- "notification.task.failed.title": "Stato dell'attività aggiornato",+ "notification.task.failed.title": "Attività non riuscita","notification.task.failed.body": "Apri Orkas per i dettagli.",- "notification.task.waiting_input.title": "Stato dell'attività aggiornato",+ "notification.task.waiting_input.title": "Un'attività attende la tua risposta","notification.task.waiting_input.body": "Apri Orkas per i dettagli.","chat.reply_interrupted": "La risposta precedente si è interrotta alla chiusura dell'app. I progressi salvati sono stati conservati; invia un messaggio per continuare.","project.driver.advance_seed_owner": "You are this task's assigned owner: do the work yourself rather than handing it off, and verify the result.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Connessione al telefono…","web_assist.passkey.confirm": "Telefono connesso. Conferma sul telefono.","web_assist.passkey.verifying": "Ritorno al sito web…",- "errors.model_context_too_small": "Questo modello richiede una finestra di contesto di almeno {minimum} token. Scegli un modello con una finestra più grande."+ "errors.model_context_too_small": "Questo modello richiede una finestra di contesto di almeno {minimum} token. Scegli un modello con una finestra più grande.",+ "notification.task.completed.title_many": "{count} attività completate",+ "notification.task.stopped.title_many": "{count} attività interrotte",+ "notification.task.failed.title_many": "{count} attività non riuscite",+ "notification.task.waiting_input.title_many": "{count} attività attendono la tua risposta",+ "notification.automation.completed.title": "Esecuzione dell'automazione completata",+ "notification.automation.completed.title_many": "{count} esecuzioni dell'automazione completate",+ "notification.automation.stopped.title": "Esecuzione dell'automazione interrotta",+ "notification.automation.stopped.title_many": "{count} esecuzioni dell'automazione interrotte",+ "notification.automation.failed.title": "Esecuzione dell'automazione non riuscita",+ "notification.automation.failed.title_many": "{count} esecuzioni dell'automazione non riuscite",+ "notification.automation.waiting_input.title": "Un'esecuzione dell'automazione attende la tua risposta",+ "notification.automation.waiting_input.title_many": "{count} esecuzioni dell'automazione attendono la tua risposta"}diff --git a/src/main/locales/ja.json b/src/main/locales/ja.jsonindex 98864eef..14b5995f 100644--- a/src/main/locales/ja.json+++ b/src/main/locales/ja.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "従量課金のオープンプラットフォーム API キーです。Kimi Coding Plan サブスクリプションとは別課金で、2 種類のキーは互換性がありません","provider.kimi_coding.note_subscription": "Kimi Coding Plan 月額サブスクリプション専用です。Anthropic 互換エンドポイントを使用し、従量課金の Moonshot API キーとは別です","apps.edit_conv_title": "「{name}」を編集",- "notification.task.completed.title": "タスクのステータスが更新されました",+ "notification.task.completed.title": "タスクが完了しました","notification.task.completed.body": "Orkas を開いて詳細を確認してください。","notification.task.stopped.title": "タスクが停止しました","notification.task.stopped.body": "Orkas を開いて途中結果を確認してください。",- "notification.task.failed.title": "タスクのステータスが更新されました",+ "notification.task.failed.title": "タスクが失敗しました","notification.task.failed.body": "Orkas を開いて詳細を確認してください。",- "notification.task.waiting_input.title": "タスクのステータスが更新されました",+ "notification.task.waiting_input.title": "タスクが返信を待っています","notification.task.waiting_input.body": "Orkas を開いて詳細を確認してください。","chat.reply_interrupted": "アプリ終了時に前回の応答が中断されました。保存済みの進捗は保持されています。メッセージを送信して続行してください。","project.driver.advance_seed_owner": "あなたがこのタスクの担当者です。他に振らず自分で作業を完了させ、結果を検証してください。",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "スマートフォンに接続しています…","web_assist.passkey.confirm": "スマートフォンに接続しました。スマートフォンで確認してください。","web_assist.passkey.verifying": "ウェブサイトに戻っています…",- "errors.model_context_too_small": "このモデルのコンテキストウィンドウは {minimum} トークン以上が必要です。より大きなウィンドウのモデルを選んでください。"+ "errors.model_context_too_small": "このモデルのコンテキストウィンドウは {minimum} トークン以上が必要です。より大きなウィンドウのモデルを選んでください。",+ "notification.task.completed.title_many": "{count} 件のタスクが完了しました",+ "notification.task.stopped.title_many": "{count} 件のタスクが停止しました",+ "notification.task.failed.title_many": "{count} 件のタスクが失敗しました",+ "notification.task.waiting_input.title_many": "{count} 件のタスクが返信を待っています",+ "notification.automation.completed.title": "自動化の実行が完了しました",+ "notification.automation.completed.title_many": "{count} 件の自動化の実行が完了しました",+ "notification.automation.stopped.title": "自動化の実行が停止しました",+ "notification.automation.stopped.title_many": "{count} 件の自動化の実行が停止しました",+ "notification.automation.failed.title": "自動化の実行が失敗しました",+ "notification.automation.failed.title_many": "{count} 件の自動化の実行が失敗しました",+ "notification.automation.waiting_input.title": "自動化の実行が返信を待っています",+ "notification.automation.waiting_input.title_many": "{count} 件の自動化の実行が返信を待っています"}diff --git a/src/main/locales/ko.json b/src/main/locales/ko.jsonindex e4e3cf90..05b2396e 100644--- a/src/main/locales/ko.json+++ b/src/main/locales/ko.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "종량제 오픈 플랫폼 API 키 — Kimi Coding Plan 구독과 별도로 청구되며 두 키는 서로 바꿔 사용할 수 없습니다","provider.kimi_coding.note_subscription": "Kimi Coding Plan 월간 구독 전용 — Anthropic 프로토콜 엔드포인트를 사용하며 종량제 Moonshot API 키와 별개입니다","apps.edit_conv_title": "\"{name}\" 편집",- "notification.task.completed.title": "작업 상태 업데이트됨",+ "notification.task.completed.title": "작업이 완료되었습니다","notification.task.completed.body": "Orkas를 열어 세부 정보를 확인해 주세요.",- "notification.task.stopped.title": "작업 중지됨",+ "notification.task.stopped.title": "작업이 중지되었습니다","notification.task.stopped.body": "Orkas를 열어 부분 결과를 확인해 주세요.",- "notification.task.failed.title": "작업 상태 업데이트됨",+ "notification.task.failed.title": "작업이 실패했습니다","notification.task.failed.body": "Orkas를 열어 세부 정보를 확인해 주세요.",- "notification.task.waiting_input.title": "작업 상태 업데이트됨",+ "notification.task.waiting_input.title": "작업이 회신을 기다리고 있습니다","notification.task.waiting_input.body": "Orkas를 열어 세부 정보를 확인해 주세요.","chat.reply_interrupted": "앱이 종료되면서 이전 응답이 중단되었습니다. 영구 저장된 진행 상황은 유지되었습니다. 계속하려면 메시지를 보내 주세요.","project.driver.advance_seed_owner": "You are this task's assigned owner: do the work yourself rather than handing it off, and verify the result.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "휴대전화에 연결하는 중…","web_assist.passkey.confirm": "휴대전화가 연결되었습니다. 휴대전화에서 확인하세요.","web_assist.passkey.verifying": "웹사이트로 돌아가는 중…",- "errors.model_context_too_small": "이 모델의 컨텍스트 창은 최소 {minimum} 토큰이어야 합니다. 더 큰 컨텍스트 창을 가진 모델을 선택하세요."+ "errors.model_context_too_small": "이 모델의 컨텍스트 창은 최소 {minimum} 토큰이어야 합니다. 더 큰 컨텍스트 창을 가진 모델을 선택하세요.",+ "notification.task.completed.title_many": "작업 {count}개가 완료되었습니다",+ "notification.task.stopped.title_many": "작업 {count}개가 중지되었습니다",+ "notification.task.failed.title_many": "작업 {count}개가 실패했습니다",+ "notification.task.waiting_input.title_many": "작업 {count}개가 회신을 기다리고 있습니다",+ "notification.automation.completed.title": "자동화 실행이 완료되었습니다",+ "notification.automation.completed.title_many": "자동화 실행 {count}개가 완료되었습니다",+ "notification.automation.stopped.title": "자동화 실행이 중지되었습니다",+ "notification.automation.stopped.title_many": "자동화 실행 {count}개가 중지되었습니다",+ "notification.automation.failed.title": "자동화 실행이 실패했습니다",+ "notification.automation.failed.title_many": "자동화 실행 {count}개가 실패했습니다",+ "notification.automation.waiting_input.title": "자동화 실행이 회신을 기다리고 있습니다",+ "notification.automation.waiting_input.title_many": "자동화 실행 {count}개가 회신을 기다리고 있습니다"}diff --git a/src/main/locales/pt-pt.json b/src/main/locales/pt-pt.jsonindex 2e2a089c..dbb6bfc5 100644--- a/src/main/locales/pt-pt.json+++ b/src/main/locales/pt-pt.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Chave de API da plataforma aberta com pagamento por utilização — faturada separadamente da subscrição do Kimi Coding Plan; as duas chaves não são intermutáveis","provider.kimi_coding.note_subscription": "Apenas para a subscrição mensal do Kimi Coding Plan — usa o ponto de acesso do protocolo Anthropic, separado da chave de API Moonshot com pagamento por utilização","apps.edit_conv_title": "Editar \"{name}\"",- "notification.task.completed.title": "Estado da tarefa atualizado",+ "notification.task.completed.title": "Tarefa concluída","notification.task.completed.body": "Abra o Orkas para ver os detalhes.","notification.task.stopped.title": "Tarefa interrompida","notification.task.stopped.body": "Abra o Orkas para ver o resultado parcial.",- "notification.task.failed.title": "Estado da tarefa atualizado",+ "notification.task.failed.title": "Tarefa falhou","notification.task.failed.body": "Abra o Orkas para ver os detalhes.",- "notification.task.waiting_input.title": "Estado da tarefa atualizado",+ "notification.task.waiting_input.title": "Uma tarefa aguarda a sua resposta","notification.task.waiting_input.body": "Abra o Orkas para ver os detalhes.","chat.reply_interrupted": "A resposta anterior foi interrompida quando a aplicação foi encerrada. O progresso guardado foi mantido; envie uma mensagem para continuar.","project.driver.advance_seed_owner": "É o responsável por esta tarefa: faça o trabalho pessoalmente, sem o delegar, e verifique o resultado.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "A ligar ao seu telemóvel…","web_assist.passkey.confirm": "Telemóvel ligado. Confirme no seu telemóvel.","web_assist.passkey.verifying": "A regressar ao site…",- "errors.model_context_too_small": "Este modelo requer uma janela de contexto de pelo menos {minimum} tokens. Escolha um modelo com uma janela maior."+ "errors.model_context_too_small": "Este modelo requer uma janela de contexto de pelo menos {minimum} tokens. Escolha um modelo com uma janela maior.",+ "notification.task.completed.title_many": "{count} tarefas concluídas",+ "notification.task.stopped.title_many": "{count} tarefas interrompidas",+ "notification.task.failed.title_many": "{count} tarefas falharam",+ "notification.task.waiting_input.title_many": "{count} tarefas aguardam a sua resposta",+ "notification.automation.completed.title": "Execução de automação concluída",+ "notification.automation.completed.title_many": "{count} execuções de automação concluídas",+ "notification.automation.stopped.title": "Execução de automação interrompida",+ "notification.automation.stopped.title_many": "{count} execuções de automação interrompidas",+ "notification.automation.failed.title": "Execução de automação falhou",+ "notification.automation.failed.title_many": "{count} execuções de automação falharam",+ "notification.automation.waiting_input.title": "Uma execução de automação aguarda a sua resposta",+ "notification.automation.waiting_input.title_many": "{count} execuções de automação aguardam a sua resposta"}diff --git a/src/main/locales/pt.json b/src/main/locales/pt.jsonindex 56f480fa..ab0fef56 100644--- a/src/main/locales/pt.json+++ b/src/main/locales/pt.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Chave de API de plataforma aberta pré-paga – cobrada separadamente da assinatura do Kimi Coding Plan; as duas chaves não são intercambiáveis","provider.kimi_coding.note_subscription": "Apenas assinatura mensal do Kimi Coding Plan – usa o endpoint do protocolo Anthropic, separado da chave da API Moonshot pré-paga","apps.edit_conv_title": "Editar \"{name}\"",- "notification.task.completed.title": "Status da tarefa atualizado",+ "notification.task.completed.title": "Tarefa concluída","notification.task.completed.body": "Abra o Orkas para ver os detalhes.","notification.task.stopped.title": "Tarefa interrompida","notification.task.stopped.body": "Abra o Orkas para ver o resultado parcial.",- "notification.task.failed.title": "Status da tarefa atualizado",+ "notification.task.failed.title": "Tarefa falhou","notification.task.failed.body": "Abra o Orkas para ver os detalhes.",- "notification.task.waiting_input.title": "Status da tarefa atualizado",+ "notification.task.waiting_input.title": "Uma tarefa aguarda sua resposta","notification.task.waiting_input.body": "Abra o Orkas para ver os detalhes.","chat.reply_interrupted": "A resposta anterior foi interrompida quando o aplicativo foi encerrado. O progresso persistido foi mantido; envie uma mensagem para continuar.","project.driver.advance_seed_owner": "Você é o responsável por esta tarefa: faça o trabalho você mesmo, sem repassá-lo, e verifique o resultado.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Conectando ao seu celular…","web_assist.passkey.confirm": "Celular conectado. Confirme no seu celular.","web_assist.passkey.verifying": "Voltando ao site…",- "errors.model_context_too_small": "Este modelo requer uma janela de contexto de pelo menos {minimum} tokens. Escolha um modelo com uma janela maior."+ "errors.model_context_too_small": "Este modelo requer uma janela de contexto de pelo menos {minimum} tokens. Escolha um modelo com uma janela maior.",+ "notification.task.completed.title_many": "{count} tarefas concluídas",+ "notification.task.stopped.title_many": "{count} tarefas interrompidas",+ "notification.task.failed.title_many": "{count} tarefas falharam",+ "notification.task.waiting_input.title_many": "{count} tarefas aguardam sua resposta",+ "notification.automation.completed.title": "Execução de automação concluída",+ "notification.automation.completed.title_many": "{count} execuções de automação concluídas",+ "notification.automation.stopped.title": "Execução de automação interrompida",+ "notification.automation.stopped.title_many": "{count} execuções de automação interrompidas",+ "notification.automation.failed.title": "Execução de automação falhou",+ "notification.automation.failed.title_many": "{count} execuções de automação falharam",+ "notification.automation.waiting_input.title": "Uma execução de automação aguarda sua resposta",+ "notification.automation.waiting_input.title_many": "{count} execuções de automação aguardam sua resposta"}diff --git a/src/main/locales/ru.json b/src/main/locales/ru.jsonindex d8f7697d..1300f85f 100644--- a/src/main/locales/ru.json+++ b/src/main/locales/ru.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "API-ключ открытой платформы с оплатой по мере использования — оплачивается отдельно от подписки Kimi Coding Plan; эти два ключа не взаимозаменяемы","provider.kimi_coding.note_subscription": "Только месячная подписка Kimi Coding Plan — использует эндпоинт с протоколом Anthropic, отдельно от API-ключа Moonshot с оплатой по мере использования","apps.edit_conv_title": "Редактировать «{name}»",- "notification.task.completed.title": "Статус задачи обновлён",+ "notification.task.completed.title": "Задача выполнена","notification.task.completed.body": "Откройте Orkas, чтобы посмотреть подробности.","notification.task.stopped.title": "Задача остановлена","notification.task.stopped.body": "Откройте Orkas, чтобы посмотреть частичный результат.",- "notification.task.failed.title": "Статус задачи обновлён",+ "notification.task.failed.title": "Задача не выполнена","notification.task.failed.body": "Откройте Orkas, чтобы посмотреть подробности.",- "notification.task.waiting_input.title": "Статус задачи обновлён",+ "notification.task.waiting_input.title": "Задача ждёт вашего ответа","notification.task.waiting_input.body": "Откройте Orkas, чтобы посмотреть подробности.","chat.reply_interrupted": "Предыдущий ответ был прерван при выходе из приложения. Сохранённые результаты не потеряны; отправьте сообщение, чтобы продолжить.","project.driver.advance_seed_owner": "You are this task's assigned owner: do the work yourself rather than handing it off, and verify the result.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Подключение к телефону…","web_assist.passkey.confirm": "Телефон подключён. Подтвердите на телефоне.","web_assist.passkey.verifying": "Возврат на сайт…",- "errors.model_context_too_small": "Для этой модели требуется контекстное окно не менее {minimum} токенов. Выберите модель с большим окном."+ "errors.model_context_too_small": "Для этой модели требуется контекстное окно не менее {minimum} токенов. Выберите модель с большим окном.",+ "notification.task.completed.title_many": "Выполнено задач: {count}",+ "notification.task.stopped.title_many": "Остановлено задач: {count}",+ "notification.task.failed.title_many": "Не выполнено задач: {count}",+ "notification.task.waiting_input.title_many": "Задач, ожидающих ответа: {count}",+ "notification.automation.completed.title": "Запуск автоматизации завершён",+ "notification.automation.completed.title_many": "Завершено запусков автоматизации: {count}",+ "notification.automation.stopped.title": "Запуск автоматизации остановлен",+ "notification.automation.stopped.title_many": "Остановлено запусков автоматизации: {count}",+ "notification.automation.failed.title": "Запуск автоматизации не удался",+ "notification.automation.failed.title_many": "Не удалось запусков автоматизации: {count}",+ "notification.automation.waiting_input.title": "Запуск автоматизации ждёт вашего ответа",+ "notification.automation.waiting_input.title_many": "Запусков автоматизации, ожидающих ответа: {count}"}diff --git a/src/main/locales/th.json b/src/main/locales/th.jsonindex 5b13d903..a6bb41ff 100644--- a/src/main/locales/th.json+++ b/src/main/locales/th.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "คีย์ API แพลตฟอร์มแบบจ่ายตามการใช้งาน — คิดค่าบริการแยกจากสมาชิก Kimi Coding Plan และใช้คีย์แทนกันไม่ได้","provider.kimi_coding.note_subscription": "สำหรับสมาชิก Kimi Coding Plan รายเดือนเท่านั้น — ใช้ปลายทางโปรโตคอล Anthropic แยกจากคีย์ Moonshot API แบบจ่ายตามการใช้งาน","apps.edit_conv_title": "แก้ไข \"{name}\"",- "notification.task.completed.title": "อัปเดตสถานะงานแล้ว",+ "notification.task.completed.title": "งานเสร็จสิ้น","notification.task.completed.body": "เปิด Orkas เพื่อดูรายละเอียด",- "notification.task.stopped.title": "หยุดงานแล้ว",+ "notification.task.stopped.title": "งานถูกหยุด","notification.task.stopped.body": "เปิด Orkas เพื่อดูผลลัพธ์บางส่วน",- "notification.task.failed.title": "อัปเดตสถานะงานแล้ว",+ "notification.task.failed.title": "งานล้มเหลว","notification.task.failed.body": "เปิด Orkas เพื่อดูรายละเอียด",- "notification.task.waiting_input.title": "อัปเดตสถานะงานแล้ว",+ "notification.task.waiting_input.title": "มีงานรอคำตอบของคุณ","notification.task.waiting_input.body": "เปิด Orkas เพื่อดูรายละเอียด","chat.reply_interrupted": "คำตอบก่อนหน้าถูกขัดจังหวะเมื่อออกจากแอป เก็บความคืบหน้าที่บันทึกถาวรไว้แล้ว ส่งข้อความเพื่อดำเนินการต่อ","project.driver.advance_seed_owner": "คุณเป็นผู้รับผิดชอบงานนี้: ลงมือทำเองโดยไม่ส่งต่อให้ผู้อื่น และตรวจสอบผลลัพธ์",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "กำลังเชื่อมต่อกับโทรศัพท์…","web_assist.passkey.confirm": "เชื่อมต่อโทรศัพท์แล้ว โปรดยืนยันบนโทรศัพท์","web_assist.passkey.verifying": "กำลังกลับไปยังเว็บไซต์…",- "errors.model_context_too_small": "โมเดลนี้ต้องมีหน้าต่างบริบทอย่างน้อย {minimum} โทเค็น โปรดเลือกโมเดลที่มีหน้าต่างบริบทใหญ่กว่า"+ "errors.model_context_too_small": "โมเดลนี้ต้องมีหน้าต่างบริบทอย่างน้อย {minimum} โทเค็น โปรดเลือกโมเดลที่มีหน้าต่างบริบทใหญ่กว่า",+ "notification.task.completed.title_many": "งานเสร็จสิ้น {count} รายการ",+ "notification.task.stopped.title_many": "งานถูกหยุด {count} รายการ",+ "notification.task.failed.title_many": "งานล้มเหลว {count} รายการ",+ "notification.task.waiting_input.title_many": "มีงานรอคำตอบของคุณ {count} รายการ",+ "notification.automation.completed.title": "การทำงานอัตโนมัติเสร็จสิ้น",+ "notification.automation.completed.title_many": "การทำงานอัตโนมัติเสร็จสิ้น {count} รายการ",+ "notification.automation.stopped.title": "การทำงานอัตโนมัติถูกหยุด",+ "notification.automation.stopped.title_many": "การทำงานอัตโนมัติถูกหยุด {count} รายการ",+ "notification.automation.failed.title": "การทำงานอัตโนมัติล้มเหลว",+ "notification.automation.failed.title_many": "การทำงานอัตโนมัติล้มเหลว {count} รายการ",+ "notification.automation.waiting_input.title": "มีการทำงานอัตโนมัติรอคำตอบของคุณ",+ "notification.automation.waiting_input.title_many": "มีการทำงานอัตโนมัติรอคำตอบของคุณ {count} รายการ"}diff --git a/src/main/locales/tr.json b/src/main/locales/tr.jsonindex ee8052f9..18b18b97 100644--- a/src/main/locales/tr.json+++ b/src/main/locales/tr.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Kullandıkça öde açık platform API anahtarı; Kimi Coding Plan aboneliğinden ayrı faturalandırılır. İki anahtar birbirinin yerine kullanılamaz","provider.kimi_coding.note_subscription": "Yalnızca Kimi Coding Plan aylık aboneliği; Anthropic protokolü uç noktasını kullanır ve kullandıkça öde Moonshot API anahtarından ayrıdır","apps.edit_conv_title": "\"{name}\" düzenle",- "notification.task.completed.title": "Görev durumu güncellendi",+ "notification.task.completed.title": "Görev tamamlandı","notification.task.completed.body": "Ayrıntıları görmek için Orkas'ı açın.","notification.task.stopped.title": "Görev durduruldu","notification.task.stopped.body": "Kısmi sonucu görmek için Orkas'ı açın.",- "notification.task.failed.title": "Görev durumu güncellendi",+ "notification.task.failed.title": "Görev başarısız oldu","notification.task.failed.body": "Ayrıntıları görmek için Orkas'ı açın.",- "notification.task.waiting_input.title": "Görev durumu güncellendi",+ "notification.task.waiting_input.title": "Bir görev yanıtınızı bekliyor","notification.task.waiting_input.body": "Ayrıntıları görmek için Orkas'ı açın.","chat.reply_interrupted": "Önceki yanıt uygulama kapatıldığında kesildi. Kalıcı ilerleme korundu; devam etmek için bir mesaj gönderin.","project.driver.advance_seed_owner": "Bu görevin atanmış sorumlusu sensin: işi başkasına devretmeden kendin yap ve sonucu doğrula.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Telefonunuza bağlanılıyor…","web_assist.passkey.confirm": "Telefon bağlandı. Telefonunuzda onaylayın.","web_assist.passkey.verifying": "Web sitesine dönülüyor…",- "errors.model_context_too_small": "Bu model en az {minimum} tokenlik bağlam penceresi gerektirir. Daha büyük pencereli bir model seçin."+ "errors.model_context_too_small": "Bu model en az {minimum} tokenlik bağlam penceresi gerektirir. Daha büyük pencereli bir model seçin.",+ "notification.task.completed.title_many": "{count} görev tamamlandı",+ "notification.task.stopped.title_many": "{count} görev durduruldu",+ "notification.task.failed.title_many": "{count} görev başarısız oldu",+ "notification.task.waiting_input.title_many": "{count} görev yanıtınızı bekliyor",+ "notification.automation.completed.title": "Otomasyon çalıştırması tamamlandı",+ "notification.automation.completed.title_many": "{count} otomasyon çalıştırması tamamlandı",+ "notification.automation.stopped.title": "Otomasyon çalıştırması durduruldu",+ "notification.automation.stopped.title_many": "{count} otomasyon çalıştırması durduruldu",+ "notification.automation.failed.title": "Otomasyon çalıştırması başarısız oldu",+ "notification.automation.failed.title_many": "{count} otomasyon çalıştırması başarısız oldu",+ "notification.automation.waiting_input.title": "Bir otomasyon çalıştırması yanıtınızı bekliyor",+ "notification.automation.waiting_input.title_many": "{count} otomasyon çalıştırması yanıtınızı bekliyor"}diff --git a/src/main/locales/vi.json b/src/main/locales/vi.jsonindex 3850d055..3cbbb511 100644--- a/src/main/locales/vi.json+++ b/src/main/locales/vi.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "Khóa API nền tảng mở trả theo mức sử dụng — tính phí riêng với gói thuê bao Kimi Coding Plan; hai khóa không dùng thay nhau được","provider.kimi_coding.note_subscription": "Chỉ dành cho thuê bao tháng Kimi Coding Plan — dùng điểm cuối giao thức Anthropic, tách biệt với khóa API Moonshot trả theo mức sử dụng","apps.edit_conv_title": "Chỉnh sửa \"{name}\"",- "notification.task.completed.title": "Đã cập nhật trạng thái tác vụ",+ "notification.task.completed.title": "Tác vụ đã hoàn thành","notification.task.completed.body": "Mở Orkas để xem chi tiết.","notification.task.stopped.title": "Tác vụ đã dừng","notification.task.stopped.body": "Mở Orkas để xem kết quả chưa hoàn chỉnh.",- "notification.task.failed.title": "Đã cập nhật trạng thái tác vụ",+ "notification.task.failed.title": "Tác vụ thất bại","notification.task.failed.body": "Mở Orkas để xem chi tiết.",- "notification.task.waiting_input.title": "Đã cập nhật trạng thái tác vụ",+ "notification.task.waiting_input.title": "Một tác vụ đang chờ bạn trả lời","notification.task.waiting_input.body": "Mở Orkas để xem chi tiết.","chat.reply_interrupted": "Phản hồi trước bị gián đoạn khi ứng dụng thoát. Tiến trình đã lưu vẫn được giữ; hãy gửi tin nhắn để tiếp tục.","project.driver.advance_seed_owner": "Bạn là người được giao phụ trách tác vụ này: hãy tự thực hiện thay vì bàn giao và xác minh kết quả.",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "Đang kết nối với điện thoại…","web_assist.passkey.confirm": "Đã kết nối điện thoại. Hãy xác nhận trên điện thoại.","web_assist.passkey.verifying": "Đang quay lại trang web…",- "errors.model_context_too_small": "Mô hình này cần cửa sổ ngữ cảnh ít nhất {minimum} token. Hãy chọn mô hình có cửa sổ lớn hơn."+ "errors.model_context_too_small": "Mô hình này cần cửa sổ ngữ cảnh ít nhất {minimum} token. Hãy chọn mô hình có cửa sổ lớn hơn.",+ "notification.task.completed.title_many": "{count} tác vụ đã hoàn thành",+ "notification.task.stopped.title_many": "{count} tác vụ đã dừng",+ "notification.task.failed.title_many": "{count} tác vụ thất bại",+ "notification.task.waiting_input.title_many": "{count} tác vụ đang chờ bạn trả lời",+ "notification.automation.completed.title": "Lần chạy tự động hóa đã hoàn thành",+ "notification.automation.completed.title_many": "{count} lần chạy tự động hóa đã hoàn thành",+ "notification.automation.stopped.title": "Lần chạy tự động hóa đã dừng",+ "notification.automation.stopped.title_many": "{count} lần chạy tự động hóa đã dừng",+ "notification.automation.failed.title": "Lần chạy tự động hóa thất bại",+ "notification.automation.failed.title_many": "{count} lần chạy tự động hóa thất bại",+ "notification.automation.waiting_input.title": "Một lần chạy tự động hóa đang chờ bạn trả lời",+ "notification.automation.waiting_input.title_many": "{count} lần chạy tự động hóa đang chờ bạn trả lời"}diff --git a/src/main/locales/zh-tw.json b/src/main/locales/zh-tw.jsonindex eb2e98da..6bf82885 100644--- a/src/main/locales/zh-tw.json+++ b/src/main/locales/zh-tw.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "依用量計費的開放平台 API 金鑰,與 Kimi Coding Plan 訂閱分開計費;兩種金鑰無法互換","provider.kimi_coding.note_subscription": "僅供 Kimi Coding Plan 月繳訂閱使用,透過 Anthropic 協定端點,與依用量計費的 Moonshot API 金鑰分開使用","apps.edit_conv_title": "編輯「{name}」",- "notification.task.completed.title": "任務狀態已更新",+ "notification.task.completed.title": "任務已完成","notification.task.completed.body": "開啟 Orkas 查看詳細資訊。","notification.task.stopped.title": "任務已停止","notification.task.stopped.body": "開啟 Orkas 查看部分結果。",- "notification.task.failed.title": "任務狀態已更新",+ "notification.task.failed.title": "任務失敗","notification.task.failed.body": "開啟 Orkas 查看詳細資訊。",- "notification.task.waiting_input.title": "任務狀態已更新",+ "notification.task.waiting_input.title": "有任務等你回覆","notification.task.waiting_input.body": "開啟 Orkas 查看詳細資訊。","chat.reply_interrupted": "應用程式結束時中斷了上一次回覆。已儲存的進度仍會保留,請傳送訊息以繼續。","project.driver.advance_seed_owner": "你就是此任務的負責人:請自行完成工作,不要轉交他人,並驗證結果。",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "正在連線至手機…","web_assist.passkey.confirm": "已連線手機,請在手機上確認。","web_assist.passkey.verifying": "正在返回網站…",- "errors.model_context_too_small": "此模型的上下文視窗需至少 {minimum} token。請選擇上下文視窗更大的模型。"+ "errors.model_context_too_small": "此模型的上下文視窗需至少 {minimum} token。請選擇上下文視窗更大的模型。",+ "notification.task.completed.title_many": "{count} 個任務已完成",+ "notification.task.stopped.title_many": "{count} 個任務已停止",+ "notification.task.failed.title_many": "{count} 個任務失敗",+ "notification.task.waiting_input.title_many": "{count} 個任務等你回覆",+ "notification.automation.completed.title": "自動化執行完成",+ "notification.automation.completed.title_many": "{count} 個自動化執行完成",+ "notification.automation.stopped.title": "自動化執行已停止",+ "notification.automation.stopped.title_many": "{count} 個自動化執行已停止",+ "notification.automation.failed.title": "自動化執行失敗",+ "notification.automation.failed.title_many": "{count} 個自動化執行失敗",+ "notification.automation.waiting_input.title": "有自動化執行等你回覆",+ "notification.automation.waiting_input.title_many": "{count} 個自動化執行等你回覆"}diff --git a/src/main/locales/zh.json b/src/main/locales/zh.jsonindex 3e918872..9cd5b53d 100644--- a/src/main/locales/zh.json+++ b/src/main/locales/zh.json@@ -238,13 +238,13 @@"provider.moonshot.note_paygo": "按量付费开放平台 API key,与 Kimi Coding Plan 月付订阅独立计费、不通用","provider.kimi_coding.note_subscription": "Kimi Coding Plan 月付订阅专用,走 Anthropic 协议端点,与 Moonshot 按量付费 API key 独立","apps.edit_conv_title": "编辑「{name}」",- "notification.task.completed.title": "任务状态已更新",+ "notification.task.completed.title": "任务已完成","notification.task.completed.body": "打开 Orkas 查看详情。","notification.task.stopped.title": "任务已停止","notification.task.stopped.body": "打开 Orkas 查看部分结果。",- "notification.task.failed.title": "任务状态已更新",+ "notification.task.failed.title": "任务失败","notification.task.failed.body": "打开 Orkas 查看详情。",- "notification.task.waiting_input.title": "任务状态已更新",+ "notification.task.waiting_input.title": "有任务等你回复","notification.task.waiting_input.body": "打开 Orkas 查看详情。","chat.reply_interrupted": "应用退出时,上一次回复被中断。已完成的持久化进度仍会保留,请发送消息继续。","project.driver.advance_seed_owner": "你就是这个待办的负责人:请自己把工作做完,不要转派给别人,并核验结果。",@@ -349,5 +349,17 @@"web_assist.passkey.connecting": "正在连接手机…","web_assist.passkey.confirm": "已连接手机,请在手机上确认。","web_assist.passkey.verifying": "正在返回网站…",- "errors.model_context_too_small": "该模型的上下文窗口需至少 {minimum} token。请选择上下文窗口更大的模型。"+ "errors.model_context_too_small": "该模型的上下文窗口需至少 {minimum} token。请选择上下文窗口更大的模型。",+ "notification.task.completed.title_many": "{count} 个任务已完成",+ "notification.task.stopped.title_many": "{count} 个任务已停止",+ "notification.task.failed.title_many": "{count} 个任务失败",+ "notification.task.waiting_input.title_many": "{count} 个任务等你回复",+ "notification.automation.completed.title": "自动化运行完成",+ "notification.automation.completed.title_many": "{count} 个自动化运行完成",+ "notification.automation.stopped.title": "自动化运行已停止",+ "notification.automation.stopped.title_many": "{count} 个自动化运行已停止",+ "notification.automation.failed.title": "自动化运行失败",+ "notification.automation.failed.title_many": "{count} 个自动化运行失败",+ "notification.automation.waiting_input.title": "有自动化运行等你回复",+ "notification.automation.waiting_input.title_many": "{count} 个自动化运行等你回复"}diff --git a/src/main/model/client.ts b/src/main/model/client.tsindex 95259e29..90e6d01b 100644--- a/src/main/model/client.ts+++ b/src/main/model/client.ts@@ -94,6 +94,8 @@ export interface ChatOptions {* (no `data:` prefix). Used by `features/contexts_extract` for vision-based* description of uploaded images in the knowledge base staging area. */images?: Array<{ data: string; mediaType: 'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp' }>;+ /** Image-understanding calls must never fall back to a text-only request. */+ requireImageInput?: boolean;/** Current-turn attachment metadata forwarded only as provider request* metadata. Orkas-managed LLM uses it server-side to route model families;* third-party providers do not receive it. */@@ -181,6 +183,8 @@ export interface ChatOptions {/** Stable id of the inbound conversation message that triggered this run.* Current-scope history tools stop strictly before this record. */historyBoundaryMessageId?: string;+ /** Host-owned final delivery versus intermediate work for Commander. */+ outputDelivery?: 'final' | 'process';/** Project id of the conversation, when it belongs to one. Threaded* through to local-tools / file-tools / image-gen-tool so workspace* resolution picks up the project-scoped selection. Caller (group_chat@@ -234,7 +238,7 @@ export interface ChatOptions {* artifact's id + title. `features/group_chat` collects these per turn* and attaches a `artifacts[]` list to the assistant message so the* renderer embeds each interactive web-app artifact in the bubble. */- onArtifactCreated?: (a: { id: string; title: string }) => void;+ onArtifactCreated?: (a: { id: string; title: string; revision?: number }) => void;/** Host diagnostic delivery is independent of chat completion. The host* pins this promise to the originating task before the stream ends. */onDiagnosticsPending?: (result: Promise<StreamEvent | null>) => void;diff --git a/src/renderer/index.html b/src/renderer/index.htmlindex 7749b4c7..50eda15d 100644--- a/src/renderer/index.html+++ b/src/renderer/index.html@@ -132,7 +132,9 @@<span data-ui-icon="x" data-ui-icon-class="chip-close-icon"></span></button></div>- <button type="button" class="chat-attach-btn chat-mic-btn" id="new-chat-mic-btn" data-i18n-title="chat.mic_title" title="Voice input"><span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span></button>+ <button type="button" class="chat-attach-btn chat-mic-btn" id="new-chat-mic-btn" data-i18n-title="chat.mic_title" title="Voice input">+ <span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span>+ </button><button id="new-chat-send-btn" class="chat-send-btn" data-i18n-title="new_chat.send_title" title="Send"><span data-ui-icon="send" data-ui-icon-class="send-icon"></span></button>@@ -266,8 +268,10 @@<span data-ui-icon="x" data-ui-icon-class="chip-close-icon"></span></button></div>- <button type="button" class="chat-attach-btn chat-mic-btn" id="chat-mic-btn" data-i18n-title="chat.mic_title" title="Voice input"><span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span></button>- <button id="chat-send-btn" class="chat-send-btn" data-i18n-title="chat.send_title" title="Send">+ <button type="button" class="chat-attach-btn chat-mic-btn" id="chat-mic-btn" data-i18n-title="chat.mic_title" title="Voice input">+ <span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span>+ </button>+ <button id="chat-send-btn" class="chat-send-btn" data-i18n-title="chat.send_title" title="Send"><span data-ui-icon="check" data-ui-icon-class="queue-save-icon"></span><span data-ui-icon="send" data-ui-icon-class="send-icon"></span><span data-ui-icon="stop" data-ui-icon-class="stop-icon"></span>@@ -731,7 +735,9 @@<span data-ui-icon="x" data-ui-icon-class="chip-close-icon"></span></button></div>- <button type="button" class="chat-attach-btn chat-mic-btn" id="project-chat-mic-btn" data-i18n-title="chat.mic_title" title="Voice input"><span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span></button>+ <button type="button" class="chat-attach-btn chat-mic-btn" id="project-chat-mic-btn" data-i18n-title="chat.mic_title" title="Voice input">+ <span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span>+ </button><button type="button" class="chat-send-btn" id="project-chat-send-btn" data-i18n-title="chat.send_title" title="Send"><span data-ui-icon="send" data-ui-icon-class="send-icon"></span></button>@@ -1090,17 +1096,12 @@<h1 class="apps-page-header-title" data-i18n="apps.title">Apps</h1><span class="apps-page-header-count" id="apps-page-header-count"></span></div>- <div class="apps-header-types">- <div class="apps-type-tabs" id="apps-type-tabs" role="tablist" data-i18n-aria-label="apps.title" aria-label="Apps"></div>- <span class="apps-type-description" id="apps-type-description"></span>- </div></div><button type="button" class="btn btn-sm" id="apps-create-btn" aria-haspopup="dialog"><span data-ui-icon="plus" aria-hidden="true"></span><span data-i18n="apps.create">Create</span></button></div>- <div class="agents-grid-scroll" id="apps-content" role="tabpanel" aria-labelledby="apps-tab-local">- <div class="app-publication-quota" id="apps-publication-quota" hidden></div>+ <div class="agents-grid-scroll" id="apps-content"><div class="apps-grid" id="apps-grid"></div><div class="agents-empty" id="apps-empty" data-i18n="apps.empty">No apps</div></div>@@ -1289,7 +1290,7 @@<div class="settings-page"><header class="settings-page-head"><h1 data-i18n="settings.tab.credentials">Models</h1>- <p data-i18n="settings.models.page_sub">按用途配置服务,设置默认模型与备用顺序。</p>+ <p data-i18n="settings.models.page_sub">Configure services by purpose and set the default model and fallback order.</p></header><div class="settings-group settings-orkas-api-group" id="settings-orkas-api-group">@@ -1446,6 +1447,13 @@<label class="todo-editor-field"><span data-i18n="todo.project">Project</span><span class="todo-editor-select" id="project-todo-project"></span></label><label class="todo-editor-field"><span data-i18n="project.todo.assign">Agent</span><span class="todo-editor-select" id="project-todo-agent"></span></label><label class="todo-editor-field"><span data-i18n="todo.status">Status</span><span class="todo-editor-select" id="project-todo-status"></span></label>+ <div class="todo-editor-field" id="project-todo-due-field"><label for="project-todo-due" data-i18n="project.todo.due_label">Due date</label>+ <div class="auto-date-picker todo-editor-date" id="project-todo-due-picker">+ <input type="text" id="project-todo-due" inputmode="numeric" autocomplete="off" placeholder="YYYY-MM-DD" />+ <button type="button" class="auto-date-picker-toggle" aria-haspopup="dialog" aria-controls="project-todo-due-popover" data-i18n-aria-label="auto.calendar_open" data-i18n-title="auto.calendar_open"></button>+ <div class="auto-date-picker-popover" id="project-todo-due-popover" role="dialog" hidden></div>+ </div>+ </div></div><div class="modal-actions todo-editor-actions"><button type="button" class="btn" id="project-todo-cancel" data-i18n="project.todo.cancel">Cancel</button>@@ -1502,9 +1510,8 @@</label><div class="agent-cli-select-row"><div class="ai-select" id="agent-modal-ext-cli-select"></div>- <div id="agent-modal-ext-cli-upgrades"></div></div>- <div id="agent-modal-ext-cli-upgrade-warning" class="agent-cli-selection-warning" role="status" hidden></div>+ <div id="agent-modal-ext-cli-upgrades"></div><spanclass="agent-cli-selection-warning"id="agent-modal-ext-cli-warning"@@ -1781,7 +1788,9 @@<span class="chat-recipient-prefix" data-i18n="chat.recipient_label">To: </span><span class="chat-recipient-name" id="auto-recipient-name" data-i18n="chat.recipient_commander">Commander</span></button>- <button type="button" class="chat-attach-btn chat-mic-btn" id="auto-mic-btn" data-i18n-title="chat.mic_title" title="Voice input"><span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span></button>+ <button type="button" class="chat-attach-btn chat-mic-btn" id="auto-mic-btn" data-i18n-title="chat.mic_title" title="Voice input">+ <span data-ui-icon="mic" data-ui-icon-class="chat-mic-icon"></span>+ </button></div></div></div>@@ -1987,6 +1996,7 @@<script src="./modules/icons.js"></script><script src="./modules/web-assist.js"></script><script src="./modules/file-operation-policy.js"></script>+ <script src="./modules/app-save-recovery.js"></script><script src="./modules/chat-file-viewer.js"></script><script src="./modules/preview-windows.js"></script><script src="./modules/delimited-preview.js"></script>diff --git a/src/renderer/locales/ar.json b/src/renderer/locales/ar.jsonindex 706b4461..24a0cea8 100644--- a/src/renderer/locales/ar.json+++ b/src/renderer/locales/ar.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "أخضر ليموني","avatar.color.salmon": "سلموني","settings.localexec.title": "أذونات العمليات المحلية",- "settings.localexec.sub": "تحكم في الملفات المحلية التي يمكن للوكلاء الوصول إليها، وما إذا كانت الإجراءات المحلية الحساسة أو إجراءات الموصّلات تتطلب تأكيدًا. في وضع موثوق، تُنفّذ إجراءات الموصّلات المتاحة دون تأكيد.",+ "settings.localexec.sub": "تحكم في الملفات المحلية التي يمكن للوكلاء الوصول إليها، وما إذا كانت الإجراءات المحلية الحساسة أو إجراءات الموصّلات تتطلب تأكيدًا.","settings.localexec.mode.workspace_approval": "حذر","settings.localexec.mode.workspace_approval_desc": "ملفات مساحة العمل فقط، مع تأكيد الإجراءات الحساسة","settings.localexec.mode.all_files_approval": "قياسي",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "أدخل مفتاح API أولاً","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "نقل إلى السلة ({n})","settings.cleanup.previous": "السابق","settings.cleanup.next": "التالي",- "apps.commercial_required": "تتطلب تطبيقات الويب الإصدار التجاري من Orkas. نزّله للمتابعة.",+ "apps.commercial_required": "يتطلب نشر التطبيقات إصدار Orkas التجاري.","apps.commercial_download": "تنزيل الإصدار التجاري","apps.commercial_open_failed": "تعذّر فتح صفحة التنزيل. يُرجى المحاولة مجددًا.","settings.cleanup.draft": "مسودة",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "غير متاح","settings.cleanup.unread": "غير مقروءة","price_comparison.maximum": "تكلفة النماذج أقل بنحو 60% كحد أقصى من API المزوّدين",+ "chat.task_status_planning": "جارٍ التوزيع",+ "contexts.kb.image_failed": "فشل التحليل",+ "contexts.kb.image_failed_hint": "فشل التحليل. تحقق من الاتصال أو الصورة أو دعم النموذج للصور ثم أعد المحاولة.",+ "project.todo.delete_confirm": "هل تريد حذف هذه المهمة؟",+ "project.todo.due_label": "تاريخ الاستحقاق",+ "project.todo.due_on": "يستحق في {date}",+ "project.todo.due_overdue": "متأخر منذ {date}",+ "project.todo.due_invalid": "أدخل تاريخ الاستحقاق بالصيغة YYYY-MM-DD.","chat.mic_title": "الإدخال الصوتي","chat.mic_stop_title": "إيقاف التسجيل","chat.mic_error_permission": "حُظر الوصول إلى الميكروفون. اسمح به في إعدادات النظام لاستخدام الإدخال الصوتي.","chat.mic_error_no_device": "لم يُعثر على ميكروفون.","chat.mic_error_unavailable": "الإدخال الصوتي غير متاح الآن.",+ "chat.mic_insufficient_credits": "أرصدة Orkas غير كافية للإدخال الصوتي. أضف أرصدة إلى الحساب المالك لمفتاح API هذا؛ قد يكون المتصفح مسجلاً بحساب آخر.","chat.mic_limit_reached": "يمكن أن تصل مدة التعرف على الصوت في المرة الواحدة إلى {seconds} ثانية.","chat.mic_key_required": "يتطلب الإدخال الصوتي مفتاح Orkas API ويستهلك أرصدة Orkas.","chat.mic_invalid_key": "مفتاح Orkas API غير صالح أو منتهي الصلاحية. حدّثه في الإعدادات.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "انقطع التعرف. تم الاحتفاظ بالمسودة والنص الذي تم التعرف عليه.","chat.mic_rate_limited": "طلبات كثيرة جدًا. انتظر قبل المحاولة مجددًا.","chat.mic_manage_credits": "إدارة الأرصدة",- "chat.mic_insufficient_credits": "أرصدة Orkas غير كافية للإدخال الصوتي. أضف أرصدة إلى الحساب المالك لمفتاح API هذا؛ قد يكون المتصفح مسجلاً بحساب آخر."+ "cli_upgrade.error_details": "تفاصيل الخطأ",+ "cli_upgrade.up_to_date": "الإصدار الحالي هو الأحدث بالفعل",+ "project.bindings.unavailable_remove_hint": "لم يعد هذا الوكيل متاحًا. يمكنك إزالته من المشروع.",+ "settings.cleanup.remaining": "ما زالت مطابقة: {n}. راجع وحدد مرة أخرى للمتابعة.",+ "project.bindings.unavailable": "وكيل التنفيذ غير متاح"}diff --git a/src/renderer/locales/de.json b/src/renderer/locales/de.jsonindex c1fb9a4d..b65f5476 100644--- a/src/renderer/locales/de.json+++ b/src/renderer/locales/de.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Limette","avatar.color.salmon": "Lachs","settings.localexec.title": "Berechtigungen für lokale Vorgänge",- "settings.localexec.sub": "Legen Sie fest, auf welche lokalen Dateien Agenten zugreifen dürfen und ob sensible lokale oder Konnektoraktionen eine Bestätigung erfordern. Im Modus Vertraut werden verfügbare Konnektoraktionen ohne Bestätigung ausgeführt.",+ "settings.localexec.sub": "Legen Sie fest, auf welche lokalen Dateien Agenten zugreifen dürfen und ob sensible lokale oder Konnektoraktionen eine Bestätigung erfordern.","settings.localexec.mode.workspace_approval": "Vorsichtig","settings.localexec.mode.workspace_approval_desc": "Nur Arbeitsbereichsdateien, sensible Aktionen bestätigen","settings.localexec.mode.all_files_approval": "Standard",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Bitte zuerst einen API-Schlüssel eingeben","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "In den Papierkorb ({n})","settings.cleanup.previous": "Zurück","settings.cleanup.next": "Weiter",- "apps.commercial_required": "Web-Apps erfordern die kommerzielle Version von Orkas. Laden Sie sie herunter, um fortzufahren.",+ "apps.commercial_required": "Zum Veröffentlichen von Apps ist die kommerzielle Version von Orkas erforderlich.","apps.commercial_download": "Kommerzielle Version herunterladen","apps.commercial_open_failed": "Die Downloadseite konnte nicht geöffnet werden. Bitte versuchen Sie es erneut.","settings.cleanup.draft": "Entwurf",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Nicht verfügbar","settings.cleanup.unread": "Ungelesen","price_comparison.maximum": "Modellkosten bis zu ca. 60% günstiger als Anbieter-APIs",+ "chat.task_status_planning": "Wird verteilt",+ "contexts.kb.image_failed": "Analyse fehlgeschlagen",+ "contexts.kb.image_failed_hint": "Analyse fehlgeschlagen. Verbindung, Bild oder Bildunterstützung des Modells prüfen, dann erneut versuchen.",+ "project.todo.delete_confirm": "Diese Aufgabe löschen?",+ "project.todo.due_label": "Fälligkeitsdatum",+ "project.todo.due_on": "Fällig am {date}",+ "project.todo.due_overdue": "Überfällig seit {date}",+ "project.todo.due_invalid": "Gib das Fälligkeitsdatum als JJJJ-MM-TT ein.","chat.mic_title": "Spracheingabe","chat.mic_stop_title": "Aufnahme stoppen","chat.mic_error_permission": "Der Mikrofonzugriff wurde blockiert. Erlauben Sie ihn in den Systemeinstellungen, um die Spracheingabe zu nutzen.","chat.mic_error_no_device": "Kein Mikrofon gefunden.","chat.mic_error_unavailable": "Spracheingabe ist derzeit nicht verfügbar.",+ "chat.mic_insufficient_credits": "Nicht genügend Orkas-Credits für die Spracheingabe. Lade das Konto auf, dem dieser API-Schlüssel gehört; im Browser kann ein anderes Konto angemeldet sein.","chat.mic_limit_reached": "Eine Spracherkennung kann bis zu {seconds} Sek. dauern.","chat.mic_key_required": "Die Spracheingabe benötigt einen Orkas-API-Schlüssel und verbraucht Orkas-Credits.","chat.mic_invalid_key": "Der Orkas-API-Schlüssel ist ungültig oder abgelaufen. Aktualisiere ihn in den Einstellungen.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "Die Erkennung wurde unterbrochen. Entwurf und erkannter Text bleiben erhalten.","chat.mic_rate_limited": "Zu viele Anfragen. Warte vor dem nächsten Versuch.","chat.mic_manage_credits": "Credits verwalten",- "chat.mic_insufficient_credits": "Nicht genügend Orkas-Credits für die Spracheingabe. Lade das Konto auf, dem dieser API-Schlüssel gehört; im Browser kann ein anderes Konto angemeldet sein."+ "cli_upgrade.error_details": "Fehlerdetails",+ "cli_upgrade.up_to_date": "Bereits auf dem neuesten Stand",+ "project.bindings.unavailable_remove_hint": "Dieser Agent ist nicht mehr verfügbar. Sie können ihn aus dem Projekt entfernen.",+ "settings.cleanup.remaining": "Noch zutreffend: {n}. Zum Fortfahren erneut prüfen und auswählen.",+ "project.bindings.unavailable": "Ausführender Agent nicht verfügbar"}diff --git a/src/renderer/locales/en.json b/src/renderer/locales/en.jsonindex e807d2aa..0f9ad935 100644--- a/src/renderer/locales/en.json+++ b/src/renderer/locales/en.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Lime","avatar.color.salmon": "Salmon","settings.localexec.title": "Local operation permissions",- "settings.localexec.sub": "Control which local files agents can access and whether sensitive local or connector actions require confirmation. In Trusted, available connector actions run without confirmation.",+ "settings.localexec.sub": "Control which local files agents can access and whether sensitive local or connector actions require confirmation.","settings.localexec.mode.workspace_approval": "Cautious","settings.localexec.mode.workspace_approval_desc": "Workspace files only, confirm sensitive actions","settings.localexec.mode.all_files_approval": "Standard",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Move to recycle bin ({n})","settings.cleanup.previous": "Previous","settings.cleanup.next": "Next",- "apps.commercial_required": "Web apps require the commercial version of Orkas. Download it to continue.",+ "apps.commercial_required": "Publishing apps requires the commercial version of Orkas.","apps.commercial_download": "Download commercial version","apps.commercial_open_failed": "Could not open the download page. Please try again.","settings.cleanup.draft": "Draft",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Unavailable","settings.cleanup.unread": "Unread","price_comparison.maximum": "Model costs up to ~60% less than provider APIs",+ "chat.task_status_planning": "Arranging",+ "contexts.kb.image_failed": "Analysis failed",+ "contexts.kb.image_failed_hint": "Analysis failed. Check the connection, image or model image support, then retry.",+ "project.todo.delete_confirm": "Delete this to-do?",+ "project.todo.due_label": "Due date",+ "project.todo.due_on": "Due {date}",+ "project.todo.due_overdue": "Overdue since {date}",+ "project.todo.due_invalid": "Enter the due date as YYYY-MM-DD.","chat.mic_title": "Voice input","chat.mic_stop_title": "Stop recording","chat.mic_error_permission": "Microphone access was blocked. Allow it in your system settings to use voice input.","chat.mic_error_no_device": "No microphone was found.","chat.mic_error_unavailable": "Voice input is unavailable right now.",+ "chat.mic_insufficient_credits": "Not enough Orkas credits for voice input. Add credits to the account that owns this API key; your browser may be signed in to a different account.","chat.mic_limit_reached": "Single voice recognition can be up to {seconds} seconds.","chat.mic_key_required": "Voice input requires an Orkas API key and uses Orkas credits.","chat.mic_invalid_key": "The Orkas API key is invalid or expired. Update it in Settings.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "Recognition was interrupted. Your draft and recognized text have been kept.","chat.mic_rate_limited": "Too many requests. Please wait before trying again.","chat.mic_manage_credits": "Manage credits",- "chat.mic_insufficient_credits": "Not enough Orkas credits for voice input. Add credits to the account that owns this API key; your browser may be signed in to a different account."+ "cli_upgrade.error_details": "Error details",+ "cli_upgrade.up_to_date": "Already up to date",+ "project.bindings.unavailable_remove_hint": "This Agent is no longer available. You can remove it from the project.",+ "settings.cleanup.remaining": "Still matching: {n}. Review and select again to continue.",+ "project.bindings.unavailable": "Execution Agent unavailable"}diff --git a/src/renderer/locales/es-419.json b/src/renderer/locales/es-419.jsonindex 620bcec1..951957be 100644--- a/src/renderer/locales/es-419.json+++ b/src/renderer/locales/es-419.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Lima","avatar.color.salmon": "Salmón","settings.localexec.title": "Permisos de operaciones locales",- "settings.localexec.sub": "Controla a qué archivos locales pueden acceder los agentes y si las acciones sensibles locales o de conectores requieren confirmación. En De confianza, las acciones disponibles de los conectores se ejecutan sin confirmación.",+ "settings.localexec.sub": "Controla a qué archivos locales pueden acceder los agentes y si las acciones sensibles locales o de conectores requieren confirmación.","settings.localexec.mode.workspace_approval": "Cauteloso","settings.localexec.mode.workspace_approval_desc": "Solo archivos del espacio de trabajo; confirmar acciones sensibles","settings.localexec.mode.all_files_approval": "Estándar",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Ingresa primero una clave de API","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Mover a la papelera ({n})","settings.cleanup.previous": "Anterior","settings.cleanup.next": "Siguiente",- "apps.commercial_required": "Las aplicaciones web requieren la versión comercial de Orkas. Descárgala para continuar.",+ "apps.commercial_required": "Publicar aplicaciones requiere la versión comercial de Orkas.","apps.commercial_download": "Descargar versión comercial","apps.commercial_open_failed": "No se pudo abrir la página de descarga. Inténtalo de nuevo.","settings.cleanup.draft": "Borrador",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "No disponible","settings.cleanup.unread": "Sin leer","price_comparison.maximum": "Costo del modelo hasta ~60% menor que las API de proveedores",+ "chat.task_status_planning": "Repartiendo",+ "contexts.kb.image_failed": "Error de análisis",+ "contexts.kb.image_failed_hint": "Análisis fallido. Revisa la conexión, la imagen o el soporte de imágenes del modelo y reintenta.",+ "project.todo.delete_confirm": "¿Eliminar este pendiente?",+ "project.todo.due_label": "Fecha límite",+ "project.todo.due_on": "Vence el {date}",+ "project.todo.due_overdue": "Atrasada desde el {date}",+ "project.todo.due_invalid": "Escribe la fecha límite como AAAA-MM-DD.","chat.mic_title": "Entrada de voz","chat.mic_stop_title": "Detener grabación","chat.mic_error_permission": "Se bloqueó el acceso al micrófono. Permítelo en la configuración del sistema para usar la entrada de voz.","chat.mic_error_no_device": "No se encontró ningún micrófono.","chat.mic_error_unavailable": "La entrada de voz no está disponible en este momento.",+ "chat.mic_insufficient_credits": "No hay suficientes créditos de Orkas para la entrada de voz. Añádelos a la cuenta propietaria de esta clave API; el navegador podría tener otra cuenta abierta.","chat.mic_limit_reached": "Duración máxima de cada reconocimiento de voz: {seconds} s.","chat.mic_key_required": "La entrada de voz requiere una clave API de Orkas y consume créditos de Orkas.","chat.mic_invalid_key": "La clave API de Orkas no es válida o ha caducado. Actualízala en Configuración.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "Se interrumpió el reconocimiento. Se han conservado el borrador y el texto reconocido.","chat.mic_rate_limited": "Demasiadas solicitudes. Espera antes de volver a intentarlo.","chat.mic_manage_credits": "Gestionar créditos",- "chat.mic_insufficient_credits": "No hay suficientes créditos de Orkas para la entrada de voz. Añádelos a la cuenta propietaria de esta clave API; el navegador podría tener otra cuenta abierta."+ "cli_upgrade.error_details": "Detalles del error",+ "cli_upgrade.up_to_date": "Ya está en la última versión",+ "project.bindings.unavailable_remove_hint": "Este agente ya no está disponible. Puedes quitarlo del proyecto.",+ "settings.cleanup.remaining": "Aún coinciden: {n}. Revisa y selecciona de nuevo para continuar.",+ "project.bindings.unavailable": "Agente de ejecución no disponible"}diff --git a/src/renderer/locales/es.json b/src/renderer/locales/es.jsonindex b5dcfdfc..d7fca882 100644--- a/src/renderer/locales/es.json+++ b/src/renderer/locales/es.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Lima","avatar.color.salmon": "Salmón","settings.localexec.title": "Permisos de operaciones locales",- "settings.localexec.sub": "Controla a qué archivos locales pueden acceder los agentes y si las acciones sensibles locales o de conectores requieren confirmación. En De confianza, las acciones disponibles de los conectores se ejecutan sin confirmación.",+ "settings.localexec.sub": "Controla a qué archivos locales pueden acceder los agentes y si las acciones sensibles locales o de conectores requieren confirmación.","settings.localexec.mode.workspace_approval": "Cauteloso","settings.localexec.mode.workspace_approval_desc": "Solo archivos del espacio de trabajo; confirmar acciones sensibles","settings.localexec.mode.all_files_approval": "Estándar",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Introduce primero una clave de API","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Mover a la papelera ({n})","settings.cleanup.previous": "Anterior","settings.cleanup.next": "Siguiente",- "apps.commercial_required": "Las aplicaciones web requieren la versión comercial de Orkas. Descárgala para continuar.",+ "apps.commercial_required": "Publicar aplicaciones requiere la versión comercial de Orkas.","apps.commercial_download": "Descargar versión comercial","apps.commercial_open_failed": "No se pudo abrir la página de descarga. Inténtalo de nuevo.","settings.cleanup.draft": "Borrador",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "No disponible","settings.cleanup.unread": "Sin leer","price_comparison.maximum": "Coste del modelo hasta ~60% menor que las API de proveedores",+ "chat.task_status_planning": "Repartiendo",+ "contexts.kb.image_failed": "Error de análisis",+ "contexts.kb.image_failed_hint": "Análisis fallido. Revisa la conexión, la imagen o el soporte de imágenes del modelo y reintenta.",+ "project.todo.delete_confirm": "¿Eliminar esta tarea pendiente?",+ "project.todo.due_label": "Fecha límite",+ "project.todo.due_on": "Vence el {date}",+ "project.todo.due_overdue": "Atrasada desde el {date}",+ "project.todo.due_invalid": "Escribe la fecha límite como AAAA-MM-DD.","chat.mic_title": "Entrada de voz","chat.mic_stop_title": "Detener grabación","chat.mic_error_permission": "Se bloqueó el acceso al micrófono. Permítelo en la configuración del sistema para usar la entrada de voz.","chat.mic_error_no_device": "No se encontró ningún micrófono.","chat.mic_error_unavailable": "La entrada de voz no está disponible en este momento.",+ "chat.mic_insufficient_credits": "No hay suficientes créditos de Orkas para la entrada de voz. Añádelos a la cuenta propietaria de esta clave API; el navegador podría tener otra cuenta abierta.","chat.mic_limit_reached": "Duración máxima de cada reconocimiento de voz: {seconds} s.","chat.mic_key_required": "La entrada de voz requiere una clave API de Orkas y consume créditos de Orkas.","chat.mic_invalid_key": "La clave API de Orkas no es válida o ha caducado. Actualízala en Configuración.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "Se interrumpió el reconocimiento. Se han conservado el borrador y el texto reconocido.","chat.mic_rate_limited": "Demasiadas solicitudes. Espera antes de volver a intentarlo.","chat.mic_manage_credits": "Gestionar créditos",- "chat.mic_insufficient_credits": "No hay suficientes créditos de Orkas para la entrada de voz. Añádelos a la cuenta propietaria de esta clave API; el navegador podría tener otra cuenta abierta."+ "cli_upgrade.error_details": "Detalles del error",+ "cli_upgrade.up_to_date": "Ya está en la última versión",+ "project.bindings.unavailable_remove_hint": "Este agente ya no está disponible. Puedes quitarlo del proyecto.",+ "settings.cleanup.remaining": "Aún coinciden: {n}. Revisa y selecciona de nuevo para continuar.",+ "project.bindings.unavailable": "Agente de ejecución no disponible"}diff --git a/src/renderer/locales/fr.json b/src/renderer/locales/fr.jsonindex 2be04a4c..da2d46c2 100644--- a/src/renderer/locales/fr.json+++ b/src/renderer/locales/fr.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Citron vert","avatar.color.salmon": "Saumon","settings.localexec.title": "Autorisations des opérations locales",- "settings.localexec.sub": "Définissez les fichiers locaux accessibles aux Agents et si les actions sensibles locales ou des connecteurs nécessitent une confirmation. En mode Confiance, les actions disponibles des connecteurs s’exécutent sans confirmation.",+ "settings.localexec.sub": "Définissez les fichiers locaux accessibles aux Agents et si les actions sensibles locales ou des connecteurs nécessitent une confirmation.","settings.localexec.mode.workspace_approval": "Prudent","settings.localexec.mode.workspace_approval_desc": "Fichiers de l’espace de travail uniquement, confirmation des actions sensibles","settings.localexec.mode.all_files_approval": "Standard",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Saisissez d’abord une clé API","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Mettre à la corbeille ({n})","settings.cleanup.previous": "Précédent","settings.cleanup.next": "Suivant",- "apps.commercial_required": "Les applications web nécessitent la version commerciale d’Orkas. Téléchargez-la pour continuer.",+ "apps.commercial_required": "La publication d’applications nécessite la version commerciale d’Orkas.","apps.commercial_download": "Télécharger la version commerciale","apps.commercial_open_failed": "Impossible d’ouvrir la page de téléchargement. Réessayez.","settings.cleanup.draft": "Brouillon",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Indisponible","settings.cleanup.unread": "Non lue","price_comparison.maximum": "Coût des modèles jusqu’à ~60% inférieur aux API des fournisseurs",+ "chat.task_status_planning": "Répartition",+ "contexts.kb.image_failed": "Échec de l’analyse",+ "contexts.kb.image_failed_hint": "Analyse échouée. Vérifiez la connexion, l’image ou sa prise en charge par le modèle, puis réessayez.",+ "project.todo.delete_confirm": "Supprimer cette tâche ?",+ "project.todo.due_label": "Date d'échéance",+ "project.todo.due_on": "Échéance le {date}",+ "project.todo.due_overdue": "En retard depuis le {date}",+ "project.todo.due_invalid": "Saisissez la date d'échéance au format AAAA-MM-JJ.","chat.mic_title": "Saisie vocale","chat.mic_stop_title": "Arrêter l’enregistrement","chat.mic_error_permission": "L’accès au microphone a été bloqué. Autorisez-le dans les paramètres système pour utiliser la saisie vocale.","chat.mic_error_no_device": "Aucun microphone détecté.","chat.mic_error_unavailable": "La saisie vocale est actuellement indisponible.",+ "chat.mic_insufficient_credits": "Crédits Orkas insuffisants pour la saisie vocale. Ajoutez-en au compte propriétaire de cette clé API ; le navigateur peut utiliser un autre compte.","chat.mic_limit_reached": "Une session de reconnaissance vocale peut durer jusqu’à {seconds} s.","chat.mic_key_required": "La saisie vocale nécessite une clé API Orkas et consomme des crédits Orkas.","chat.mic_invalid_key": "La clé API Orkas est invalide ou expirée. Mettez-la à jour dans les paramètres.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "La reconnaissance a été interrompue. Votre brouillon et le texte reconnu sont conservés.","chat.mic_rate_limited": "Trop de demandes. Patientez avant de réessayer.","chat.mic_manage_credits": "Gérer les crédits",- "chat.mic_insufficient_credits": "Crédits Orkas insuffisants pour la saisie vocale. Ajoutez-en au compte propriétaire de cette clé API ; le navigateur peut utiliser un autre compte."+ "cli_upgrade.error_details": "Détails de l’erreur",+ "cli_upgrade.up_to_date": "Déjà à jour",+ "project.bindings.unavailable_remove_hint": "Cet agent n’est plus disponible. Vous pouvez le retirer du projet.",+ "settings.cleanup.remaining": "Correspondent encore : {n}. Vérifiez et sélectionnez à nouveau pour continuer.",+ "project.bindings.unavailable": "Agent d’exécution indisponible"}diff --git a/src/renderer/locales/hi.json b/src/renderer/locales/hi.jsonindex 1cba0d0e..3bf04a19 100644--- a/src/renderer/locales/hi.json+++ b/src/renderer/locales/hi.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "नींबू हरा","avatar.color.salmon": "नारंगी गुलाबी","settings.localexec.title": "स्थानीय कार्रवाई अनुमतियाँ",- "settings.localexec.sub": "तय करें कि एजेंट किन स्थानीय फ़ाइलों तक पहुँच सकते हैं और संवेदनशील स्थानीय या कनेक्टर कार्रवाइयों के लिए पुष्टि चाहिए या नहीं। विश्वसनीय मोड में उपलब्ध कनेक्टर कार्रवाइयाँ बिना पुष्टि चलती हैं।",+ "settings.localexec.sub": "तय करें कि एजेंट किन स्थानीय फ़ाइलों तक पहुँच सकते हैं और संवेदनशील स्थानीय या कनेक्टर कार्रवाइयों के लिए पुष्टि चाहिए या नहीं।","settings.localexec.mode.workspace_approval": "सतर्क","settings.localexec.mode.workspace_approval_desc": "केवल वर्कस्पेस फ़ाइलें, संवेदनशील कार्रवाइयों पर पुष्टि","settings.localexec.mode.all_files_approval": "मानक",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "पहले API Key दर्ज करें","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "ट्रैश में भेजें ({n})","settings.cleanup.previous": "पिछला","settings.cleanup.next": "अगला",- "apps.commercial_required": "वेब ऐप्स के लिए Orkas का व्यावसायिक संस्करण आवश्यक है। जारी रखने के लिए इसे डाउनलोड करें।",+ "apps.commercial_required": "ऐप प्रकाशित करने के लिए Orkas का व्यावसायिक संस्करण आवश्यक है।","apps.commercial_download": "व्यावसायिक संस्करण डाउनलोड करें","apps.commercial_open_failed": "डाउनलोड पृष्ठ नहीं खुल सका। कृपया फिर प्रयास करें।","settings.cleanup.draft": "ड्राफ़्ट",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "अनुपलब्ध","settings.cleanup.unread": "अपठित","price_comparison.maximum": "मॉडल लागत प्रदाता API से लगभग 60% तक कम",+ "chat.task_status_planning": "बाँटा जा रहा है",+ "contexts.kb.image_failed": "विश्लेषण विफल",+ "contexts.kb.image_failed_hint": "विश्लेषण विफल। नेटवर्क, चित्र या मॉडल का चित्र समर्थन जाँचकर फिर कोशिश करें।",+ "project.todo.delete_confirm": "यह कार्य हटाएँ?",+ "project.todo.due_label": "नियत तारीख",+ "project.todo.due_on": "{date} तक",+ "project.todo.due_overdue": "{date} से लंबित",+ "project.todo.due_invalid": "नियत तारीख YYYY-MM-DD प्रारूप में लिखें।","chat.mic_title": "वॉइस इनपुट","chat.mic_stop_title": "रिकॉर्डिंग रोकें","chat.mic_error_permission": "माइक्रोफ़ोन तक पहुँच रोकी गई है। वॉइस इनपुट के लिए सिस्टम सेटिंग में अनुमति दें।","chat.mic_error_no_device": "कोई माइक्रोफ़ोन नहीं मिला।","chat.mic_error_unavailable": "वॉइस इनपुट अभी उपलब्ध नहीं है।",+ "chat.mic_insufficient_credits": "वॉइस इनपुट के लिए Orkas क्रेडिट पर्याप्त नहीं हैं। इस API कुंजी के स्वामी खाते में क्रेडिट जोड़ें; ब्राउज़र में कोई दूसरा खाता खुला हो सकता है।","chat.mic_limit_reached": "एक बार में अधिकतम {seconds} सेकंड की आवाज़ पहचानी जा सकती है।","chat.mic_key_required": "वॉइस इनपुट के लिए Orkas API कुंजी चाहिए और Orkas क्रेडिट खर्च होते हैं।","chat.mic_invalid_key": "Orkas API कुंजी अमान्य है या समाप्त हो गई है। सेटिंग में अपडेट करें।",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "पहचान बाधित हुई। आपका ड्राफ़्ट और पहचाना गया टेक्स्ट सुरक्षित है।","chat.mic_rate_limited": "बहुत अधिक अनुरोध। कुछ देर बाद फिर कोशिश करें।","chat.mic_manage_credits": "क्रेडिट प्रबंधित करें",- "chat.mic_insufficient_credits": "वॉइस इनपुट के लिए Orkas क्रेडिट पर्याप्त नहीं हैं। इस API कुंजी के स्वामी खाते में क्रेडिट जोड़ें; ब्राउज़र में कोई दूसरा खाता खुला हो सकता है।"+ "cli_upgrade.error_details": "त्रुटि का विवरण",+ "cli_upgrade.up_to_date": "पहले से नवीनतम संस्करण है",+ "project.bindings.unavailable_remove_hint": "यह एजेंट अब उपलब्ध नहीं है। आप इसे प्रोजेक्ट से निकाल सकते हैं।",+ "settings.cleanup.remaining": "अब भी मेल खाने वाले: {n}। जारी रखने के लिए जाँचें और फिर से चुनें।",+ "project.bindings.unavailable": "निष्पादन एजेंट उपलब्ध नहीं है"}diff --git a/src/renderer/locales/id.json b/src/renderer/locales/id.jsonindex f7e58654..8f8d3d3d 100644--- a/src/renderer/locales/id.json+++ b/src/renderer/locales/id.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Jeruk nipis","avatar.color.salmon": "Salmon","settings.localexec.title": "Izin operasi lokal",- "settings.localexec.sub": "Kontrol agen file lokal mana yang dapat diakses dan apakah tindakan lokal atau konektor yang sensitif memerlukan konfirmasi. Di Tepercaya, tindakan konektor yang tersedia berjalan tanpa konfirmasi.",+ "settings.localexec.sub": "Kontrol agen file lokal mana yang dapat diakses dan apakah tindakan lokal atau konektor yang sensitif memerlukan konfirmasi.","settings.localexec.mode.workspace_approval": "Berhati-hati","settings.localexec.mode.workspace_approval_desc": "Hanya file ruang kerja, konfirmasi tindakan sensitif","settings.localexec.mode.all_files_approval": "Standar",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Masukkan API Key terlebih dahulu","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Pindahkan ke sampah ({n})","settings.cleanup.previous": "Sebelumnya","settings.cleanup.next": "Berikutnya",- "apps.commercial_required": "Aplikasi web memerlukan Orkas versi komersial. Unduh untuk melanjutkan.",+ "apps.commercial_required": "Publikasi aplikasi memerlukan versi komersial Orkas.","apps.commercial_download": "Unduh versi komersial","apps.commercial_open_failed": "Halaman unduhan tidak dapat dibuka. Coba lagi.","settings.cleanup.draft": "Draf",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Tidak tersedia","settings.cleanup.unread": "Belum dibaca","price_comparison.maximum": "Biaya model hingga ~60% lebih murah dari API penyedia",+ "chat.task_status_planning": "Membagi tugas",+ "contexts.kb.image_failed": "Analisis gagal",+ "contexts.kb.image_failed_hint": "Analisis gagal. Periksa koneksi, gambar atau dukungan gambar pada model, lalu coba lagi.",+ "project.todo.delete_confirm": "Hapus tugas ini?",+ "project.todo.due_label": "Tenggat",+ "project.todo.due_on": "Tenggat {date}",+ "project.todo.due_overdue": "Terlambat sejak {date}",+ "project.todo.due_invalid": "Masukkan tenggat dalam format YYYY-MM-DD.","chat.mic_title": "Masukan suara","chat.mic_stop_title": "Berhenti merekam","chat.mic_error_permission": "Akses mikrofon diblokir. Izinkan di pengaturan sistem Anda untuk menggunakan input suara.","chat.mic_error_no_device": "Tidak ada mikrofon yang ditemukan.","chat.mic_error_unavailable": "Input suara tidak tersedia saat ini.",+ "chat.mic_insufficient_credits": "Kredit Orkas tidak cukup untuk input suara. Tambahkan kredit ke akun pemilik kunci API ini; browser mungkin masuk ke akun lain.","chat.mic_limit_reached": "Pengenalan suara tunggal dapat mencapai {seconds} detik.","chat.mic_key_required": "Input suara memerlukan kunci API Orkas dan menggunakan kredit Orkas.","chat.mic_invalid_key": "Kunci API Orkas tidak valid atau kedaluwarsa. Perbarui di Pengaturan.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "Pengenalan terputus. Draf dan teks yang dikenali telah disimpan.","chat.mic_rate_limited": "Terlalu banyak permintaan. Tunggu sebelum mencoba lagi.","chat.mic_manage_credits": "Kelola kredit",- "chat.mic_insufficient_credits": "Kredit Orkas tidak cukup untuk input suara. Tambahkan kredit ke akun pemilik kunci API ini; browser mungkin masuk ke akun lain."+ "cli_upgrade.error_details": "Detail kesalahan",+ "cli_upgrade.up_to_date": "Sudah versi terbaru",+ "project.bindings.unavailable_remove_hint": "Agen ini sudah tidak tersedia. Anda dapat menghapusnya dari proyek.",+ "settings.cleanup.remaining": "Masih sesuai: {n}. Tinjau dan pilih lagi untuk melanjutkan.",+ "project.bindings.unavailable": "Agen Eksekusi tidak tersedia"}diff --git a/src/renderer/locales/it.json b/src/renderer/locales/it.jsonindex c81f8754..65a5cbfe 100644--- a/src/renderer/locales/it.json+++ b/src/renderer/locales/it.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Lime","avatar.color.salmon": "Salmone","settings.localexec.title": "Permessi per le operazioni locali",- "settings.localexec.sub": "Controlla a quali file locali possono accedere gli agenti e se le azioni sensibili locali o dei connettori richiedono conferma. In modalità Fiducia, le azioni disponibili dei connettori vengono eseguite senza conferma.",+ "settings.localexec.sub": "Controlla a quali file locali possono accedere gli agenti e se le azioni sensibili locali o dei connettori richiedono conferma.","settings.localexec.mode.workspace_approval": "Prudente","settings.localexec.mode.workspace_approval_desc": "Solo file della cartella di lavoro, conferma per le azioni sensibili","settings.localexec.mode.all_files_approval": "Standard",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Inserisci prima una chiave API","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Sposta nel cestino ({n})","settings.cleanup.previous": "Precedente","settings.cleanup.next": "Successivo",- "apps.commercial_required": "Le app web richiedono la versione commerciale di Orkas. Scaricala per continuare.",+ "apps.commercial_required": "Per pubblicare app è necessaria la versione commerciale di Orkas.","apps.commercial_download": "Scarica la versione commerciale","apps.commercial_open_failed": "Impossibile aprire la pagina di download. Riprova.","settings.cleanup.draft": "Bozza",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Non disponibile","settings.cleanup.unread": "Non letta","price_comparison.maximum": "Costo dei modelli fino a ~60% inferiore alle API dei fornitori",+ "chat.task_status_planning": "Assegnazione",+ "contexts.kb.image_failed": "Analisi non riuscita",+ "contexts.kb.image_failed_hint": "Analisi non riuscita. Controlla connessione, immagine o supporto del modello alle immagini, poi riprova.",+ "project.todo.delete_confirm": "Eliminare questa attività?",+ "project.todo.due_label": "Scadenza",+ "project.todo.due_on": "Scade il {date}",+ "project.todo.due_overdue": "In ritardo dal {date}",+ "project.todo.due_invalid": "Inserisci la scadenza nel formato AAAA-MM-GG.","chat.mic_title": "Input vocale","chat.mic_stop_title": "Interrompi registrazione","chat.mic_error_permission": "Accesso al microfono bloccato. Consentilo nelle impostazioni di sistema per usare l'input vocale.","chat.mic_error_no_device": "Nessun microfono trovato.","chat.mic_error_unavailable": "Input vocale al momento non disponibile.",+ "chat.mic_insufficient_credits": "Crediti Orkas insufficienti per l’input vocale. Aggiungili all’account proprietario di questa chiave API; il browser potrebbe usare un altro account.","chat.mic_limit_reached": "Durata massima di ogni riconoscimento vocale: {seconds} s.","chat.mic_key_required": "L’input vocale richiede una chiave API Orkas e consuma crediti Orkas.","chat.mic_invalid_key": "La chiave API Orkas non è valida o è scaduta. Aggiornala nelle impostazioni.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "Riconoscimento interrotto. La bozza e il testo riconosciuto sono stati conservati.","chat.mic_rate_limited": "Troppe richieste. Attendi prima di riprovare.","chat.mic_manage_credits": "Gestisci crediti",- "chat.mic_insufficient_credits": "Crediti Orkas insufficienti per l’input vocale. Aggiungili all’account proprietario di questa chiave API; il browser potrebbe usare un altro account."+ "cli_upgrade.error_details": "Dettagli dell’errore",+ "cli_upgrade.up_to_date": "Già aggiornato",+ "project.bindings.unavailable_remove_hint": "Questo agente non è più disponibile. Puoi rimuoverlo dal progetto.",+ "settings.cleanup.remaining": "Ancora corrispondenti: {n}. Controlla e seleziona di nuovo per continuare.",+ "project.bindings.unavailable": "Agente di esecuzione non disponibile"}diff --git a/src/renderer/locales/ja.json b/src/renderer/locales/ja.jsonindex 5566cb8d..c45ea550 100644--- a/src/renderer/locales/ja.json+++ b/src/renderer/locales/ja.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "ライム","avatar.color.salmon": "サーモン","settings.localexec.title": "ローカル操作の権限",- "settings.localexec.sub": "エージェントがアクセスできるローカルファイルと、端末やコネクターの機密操作で確認するかを設定します。「信頼」では、利用可能なコネクター操作は確認なしで実行されます。",+ "settings.localexec.sub": "エージェントがアクセスできるローカルファイルと、端末やコネクターの機密操作で確認するかを設定します。","settings.localexec.mode.workspace_approval": "慎重","settings.localexec.mode.workspace_approval_desc": "ワークスペース内のみ、機密操作は確認","settings.localexec.mode.all_files_approval": "通常",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "ごみ箱へ移動({n})","settings.cleanup.previous": "前へ","settings.cleanup.next": "次へ",- "apps.commercial_required": "Web アプリには Orkas 商用版が必要です。商用版をダウンロードして続けてください。",+ "apps.commercial_required": "アプリの公開には Orkas 商用版が必要です。","apps.commercial_download": "商用版をダウンロード","apps.commercial_open_failed": "ダウンロードページを開けませんでした。もう一度お試しください。","settings.cleanup.draft": "下書き",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "利用不可","settings.cleanup.unread": "未読","price_comparison.maximum": "モデル料金は提供元 API より最大約 60% お得",+ "chat.task_status_planning": "割り振り中",+ "contexts.kb.image_failed": "解析失敗",+ "contexts.kb.image_failed_hint": "解析に失敗しました。接続、画像、モデルの画像対応を確認して再試行してください。",+ "project.todo.delete_confirm": "このやることを削除しますか?",+ "project.todo.due_label": "期限",+ "project.todo.due_on": "期限 {date}",+ "project.todo.due_overdue": "期限超過({date})",+ "project.todo.due_invalid": "期限は YYYY-MM-DD の形式で入力してください。","chat.mic_title": "音声入力","chat.mic_stop_title": "録音を停止","chat.mic_error_permission": "マイクへのアクセスがブロックされています。音声入力を使うにはシステム設定で許可してください。","chat.mic_error_no_device": "利用可能なマイクが見つかりません。","chat.mic_error_unavailable": "現在、音声入力は利用できません。",+ "chat.mic_insufficient_credits": "音声入力に必要な Orkas クレジットが不足しています。この API キーの所有アカウントに追加してください。ブラウザーで別のアカウントにログインしている場合があります。","chat.mic_limit_reached": "1回の音声認識は最大{seconds}秒です。","chat.mic_key_required": "音声入力には Orkas API キーが必要で、Orkas クレジットを消費します。","chat.mic_invalid_key": "Orkas API キーが無効または期限切れです。設定で更新してください。",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "認識が中断されました。下書きと認識済みの文字は保持されています。","chat.mic_rate_limited": "リクエストが多すぎます。しばらく待って再試行してください。","chat.mic_manage_credits": "クレジットを管理",- "chat.mic_insufficient_credits": "音声入力に必要な Orkas クレジットが不足しています。この API キーの所有アカウントに追加してください。ブラウザーで別のアカウントにログインしている場合があります。"+ "cli_upgrade.error_details": "エラーの詳細",+ "cli_upgrade.up_to_date": "すでに最新バージョンです",+ "project.bindings.unavailable_remove_hint": "このエージェントは利用できなくなりました。プロジェクトから削除できます。",+ "settings.cleanup.remaining": "現在の対象:{n} 件。続けるには確認して選び直してください。",+ "project.bindings.unavailable": "実行エージェントを利用できません"}diff --git a/src/renderer/locales/ko.json b/src/renderer/locales/ko.jsonindex 942184d8..fe0b7af6 100644--- a/src/renderer/locales/ko.json+++ b/src/renderer/locales/ko.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "라임","avatar.color.salmon": "연어색","settings.localexec.title": "로컬 작업 권한",- "settings.localexec.sub": "에이전트가 접근할 수 있는 로컬 파일과 민감한 로컬 또는 커넥터 동작에 확인이 필요한지 설정합니다. 신뢰 모드에서는 사용 가능한 커넥터 동작이 확인 없이 실행됩니다.",+ "settings.localexec.sub": "에이전트가 접근할 수 있는 로컬 파일과 민감한 로컬 또는 커넥터 동작에 확인이 필요한지 설정합니다.","settings.localexec.mode.workspace_approval": "신중","settings.localexec.mode.workspace_approval_desc": "작업 공간 파일만, 민감한 동작 확인","settings.localexec.mode.all_files_approval": "표준",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "먼저 API Key를 입력하세요","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "휴지통으로 이동({n})","settings.cleanup.previous": "이전","settings.cleanup.next": "다음",- "apps.commercial_required": "웹 앱을 사용하려면 Orkas 상용 버전이 필요합니다. 다운로드하여 계속하세요.",+ "apps.commercial_required": "앱을 게시하려면 Orkas 상용 버전이 필요합니다.","apps.commercial_download": "상용 버전 다운로드","apps.commercial_open_failed": "다운로드 페이지를 열 수 없습니다. 다시 시도하세요.","settings.cleanup.draft": "초안",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "정리 불가","settings.cleanup.unread": "읽지 않음","price_comparison.maximum": "모델 비용이 제공업체 API보다 최대 약 60% 저렴",+ "chat.task_status_planning": "배정 중",+ "contexts.kb.image_failed": "분석 실패",+ "contexts.kb.image_failed_hint": "분석에 실패했습니다. 네트워크, 이미지 또는 모델의 이미지 지원 여부를 확인한 후 다시 시도하세요.",+ "project.todo.delete_confirm": "이 할 일을 삭제할까요?",+ "project.todo.due_label": "마감일",+ "project.todo.due_on": "{date} 마감",+ "project.todo.due_overdue": "기한 초과 ({date})",+ "project.todo.due_invalid": "마감일은 YYYY-MM-DD 형식으로 입력하세요.","chat.mic_title": "음성 입력","chat.mic_stop_title": "녹음 중지","chat.mic_error_permission": "마이크 접근이 차단되었습니다. 음성 입력을 사용하려면 시스템 설정에서 허용해 주세요.","chat.mic_error_no_device": "마이크를 찾을 수 없습니다.","chat.mic_error_unavailable": "지금은 음성 입력을 사용할 수 없습니다.",+ "chat.mic_insufficient_credits": "음성 입력에 필요한 Orkas 크레딧이 부족합니다. 이 API 키 소유 계정에 충전하세요. 브라우저에 다른 계정으로 로그인되어 있을 수 있습니다.","chat.mic_limit_reached": "한 번에 최대 {seconds}초까지 음성을 인식할 수 있습니다.","chat.mic_key_required": "음성 입력에는 Orkas API 키가 필요하며 Orkas 크레딧이 사용됩니다.","chat.mic_invalid_key": "Orkas API 키가 유효하지 않거나 만료되었습니다. 설정에서 갱신하세요.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "인식이 중단되었습니다. 초안과 인식된 텍스트는 유지됩니다.","chat.mic_rate_limited": "요청이 너무 많습니다. 잠시 후 다시 시도하세요.","chat.mic_manage_credits": "크레딧 관리",- "chat.mic_insufficient_credits": "음성 입력에 필요한 Orkas 크레딧이 부족합니다. 이 API 키 소유 계정에 충전하세요. 브라우저에 다른 계정으로 로그인되어 있을 수 있습니다."+ "cli_upgrade.error_details": "오류 세부 정보",+ "cli_upgrade.up_to_date": "이미 최신 버전입니다",+ "project.bindings.unavailable_remove_hint": "이 에이전트는 더 이상 사용할 수 없습니다. 프로젝트에서 제거할 수 있습니다.",+ "settings.cleanup.remaining": "현재 조건에 맞는 항목: {n}개. 계속하려면 확인 후 다시 선택하세요.",+ "project.bindings.unavailable": "실행 에이전트를 사용할 수 없음"}diff --git a/src/renderer/locales/pt-pt.json b/src/renderer/locales/pt-pt.jsonindex 9059e813..8c69d61c 100644--- a/src/renderer/locales/pt-pt.json+++ b/src/renderer/locales/pt-pt.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Lima","avatar.color.salmon": "Salmão","settings.localexec.title": "Permissões de operações locais",- "settings.localexec.sub": "Controle a que ficheiros locais os agentes podem aceder e se as ações sensíveis locais ou dos conectores exigem confirmação. No modo De confiança, as ações disponíveis dos conectores são executadas sem confirmação.",+ "settings.localexec.sub": "Controle a que ficheiros locais os agentes podem aceder e se as ações sensíveis locais ou dos conectores exigem confirmação.","settings.localexec.mode.workspace_approval": "Cauteloso","settings.localexec.mode.workspace_approval_desc": "Apenas ficheiros do espaço de trabalho; confirmar ações sensíveis","settings.localexec.mode.all_files_approval": "Normal",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Introduza primeiro uma chave de API","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Mover para a reciclagem ({n})","settings.cleanup.previous": "Anterior","settings.cleanup.next": "Seguinte",- "apps.commercial_required": "As aplicações Web requerem a versão comercial do Orkas. Transfira-a para continuar.",+ "apps.commercial_required": "Para publicar aplicações é necessária a versão comercial do Orkas.","apps.commercial_download": "Transferir versão comercial","apps.commercial_open_failed": "Não foi possível abrir a página de transferência. Tente novamente.","settings.cleanup.draft": "Rascunho",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Indisponível","settings.cleanup.unread": "Não lida","price_comparison.maximum": "Custo do modelo até ~60% inferior às APIs dos fornecedores",+ "chat.task_status_planning": "A distribuir",+ "contexts.kb.image_failed": "Falha na análise",+ "contexts.kb.image_failed_hint": "Falha na análise. Verifique a ligação, a imagem ou o suporte do modelo a imagens e tente novamente.",+ "project.todo.delete_confirm": "Eliminar esta tarefa?",+ "project.todo.due_label": "Prazo",+ "project.todo.due_on": "Vence a {date}",+ "project.todo.due_overdue": "Em atraso desde {date}",+ "project.todo.due_invalid": "Indique o prazo no formato AAAA-MM-DD.","chat.mic_title": "Entrada de voz","chat.mic_stop_title": "Parar gravação","chat.mic_error_permission": "O acesso ao microfone foi bloqueado. Autorize-o nas definições do sistema para usar a entrada de voz.","chat.mic_error_no_device": "Nenhum microfone foi encontrado.","chat.mic_error_unavailable": "A entrada de voz não está disponível de momento.",+ "chat.mic_insufficient_credits": "Créditos Orkas insuficientes para entrada de voz. Adicione créditos à conta proprietária desta chave de API; o navegador pode estar conectado a outra conta.","chat.mic_limit_reached": "Cada reconhecimento de voz pode durar até {seconds} segundos.","chat.mic_key_required": "A entrada de voz exige uma chave de API Orkas e consome créditos Orkas.","chat.mic_invalid_key": "A chave de API Orkas é inválida ou expirou. Atualize-a nas definições.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "O reconhecimento foi interrompido. O rascunho e o texto reconhecido foram mantidos.","chat.mic_rate_limited": "Muitas solicitações. Aguarde antes de tentar novamente.","chat.mic_manage_credits": "Gerenciar créditos",- "chat.mic_insufficient_credits": "Créditos Orkas insuficientes para entrada de voz. Adicione créditos à conta proprietária desta chave de API; o navegador pode estar conectado a outra conta."+ "cli_upgrade.error_details": "Detalhes do erro",+ "cli_upgrade.up_to_date": "Já está na versão mais recente",+ "project.bindings.unavailable_remove_hint": "Este agente já não está disponível. Pode removê-lo do projeto.",+ "settings.cleanup.remaining": "Ainda correspondem: {n}. Reveja e selecione novamente para continuar.",+ "project.bindings.unavailable": "Agente de execução indisponível"}diff --git a/src/renderer/locales/pt.json b/src/renderer/locales/pt.jsonindex 00159f15..7feff00d 100644--- a/src/renderer/locales/pt.json+++ b/src/renderer/locales/pt.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Limão","avatar.color.salmon": "Salmão","settings.localexec.title": "Permissões de operações locais",- "settings.localexec.sub": "Controle quais arquivos locais os agentes podem acessar e se ações sensíveis locais ou de conectores exigem confirmação. Em Confiável, as ações disponíveis dos conectores são executadas sem confirmação.",+ "settings.localexec.sub": "Controle quais arquivos locais os agentes podem acessar e se ações sensíveis locais ou de conectores exigem confirmação.","settings.localexec.mode.workspace_approval": "Cauteloso","settings.localexec.mode.workspace_approval_desc": "Somente arquivos do espaço de trabalho, confirme ações confidenciais","settings.localexec.mode.all_files_approval": "Padrão",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Mover para a lixeira ({n})","settings.cleanup.previous": "Anterior","settings.cleanup.next": "Próxima",- "apps.commercial_required": "Os aplicativos web exigem a versão comercial do Orkas. Baixe-a para continuar.",+ "apps.commercial_required": "Para publicar aplicativos, é necessária a versão comercial do Orkas.","apps.commercial_download": "Baixar versão comercial","apps.commercial_open_failed": "Não foi possível abrir a página de download. Tente novamente.","settings.cleanup.draft": "Rascunho",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Indisponível","settings.cleanup.unread": "Não lida","price_comparison.maximum": "Custo do modelo até ~60% menor que as APIs dos provedores",+ "chat.task_status_planning": "Distribuindo",+ "contexts.kb.image_failed": "Falha na análise",+ "contexts.kb.image_failed_hint": "Falha na análise. Verifique a conexão, a imagem ou o suporte do modelo a imagens e tente novamente.",+ "project.todo.delete_confirm": "Excluir esta tarefa?",+ "project.todo.due_label": "Prazo",+ "project.todo.due_on": "Vence em {date}",+ "project.todo.due_overdue": "Atrasada desde {date}",+ "project.todo.due_invalid": "Informe o prazo no formato AAAA-MM-DD.","chat.mic_title": "Entrada de voz","chat.mic_stop_title": "Pare de gravar","chat.mic_error_permission": "O acesso ao microfone foi bloqueado. Permita nas configurações do sistema usar entrada de voz.","chat.mic_error_no_device": "Nenhum microfone foi encontrado.","chat.mic_error_unavailable": "A entrada de voz não está disponível no momento.",+ "chat.mic_insufficient_credits": "Créditos Orkas insuficientes para entrada de voz. Adicione créditos à conta proprietária desta chave de API; o navegador pode estar conectado a outra conta.","chat.mic_limit_reached": "O reconhecimento de voz única pode durar até {seconds} segundos.","chat.mic_key_required": "A entrada de voz exige uma chave de API Orkas e consome créditos Orkas.","chat.mic_invalid_key": "A chave de API Orkas é inválida ou expirou. Atualize-a nas configurações.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "O reconhecimento foi interrompido. O rascunho e o texto reconhecido foram mantidos.","chat.mic_rate_limited": "Muitas solicitações. Aguarde antes de tentar novamente.","chat.mic_manage_credits": "Gerenciar créditos",- "chat.mic_insufficient_credits": "Créditos Orkas insuficientes para entrada de voz. Adicione créditos à conta proprietária desta chave de API; o navegador pode estar conectado a outra conta."+ "cli_upgrade.error_details": "Detalhes do erro",+ "cli_upgrade.up_to_date": "Já está na versão mais recente",+ "project.bindings.unavailable_remove_hint": "Este agente não está mais disponível. Você pode removê-lo do projeto.",+ "settings.cleanup.remaining": "Ainda correspondem: {n}. Revise e selecione novamente para continuar.",+ "project.bindings.unavailable": "Agente de execução indisponível"}diff --git a/src/renderer/locales/ru.json b/src/renderer/locales/ru.jsonindex 1039c45f..cee0f108 100644--- a/src/renderer/locales/ru.json+++ b/src/renderer/locales/ru.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Лаймовый","avatar.color.salmon": "Лососёвый","settings.localexec.title": "Разрешения локальных операций",- "settings.localexec.sub": "Определите, к каким локальным файлам имеют доступ агенты и требуют ли подтверждения потенциально опасные локальные действия и действия коннекторов. В доверенном режиме доступные действия коннекторов выполняются без подтверждения.",+ "settings.localexec.sub": "Определите, к каким локальным файлам имеют доступ агенты и требуют ли подтверждения потенциально опасные локальные действия и действия коннекторов.","settings.localexec.mode.workspace_approval": "Осторожный","settings.localexec.mode.workspace_approval_desc": "Только файлы рабочей области, подтверждение рискованных действий","settings.localexec.mode.all_files_approval": "Стандартный",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Сначала введите API-ключ","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "В корзину ({n})","settings.cleanup.previous": "Назад","settings.cleanup.next": "Далее",- "apps.commercial_required": "Для веб-приложений нужна коммерческая версия Orkas. Скачайте её, чтобы продолжить.",+ "apps.commercial_required": "Для публикации приложений требуется коммерческая версия Orkas.","apps.commercial_download": "Скачать коммерческую версию","apps.commercial_open_failed": "Не удалось открыть страницу загрузки. Повторите попытку.","settings.cleanup.draft": "Черновик",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Недоступно","settings.cleanup.unread": "Не прочитано","price_comparison.maximum": "Стоимость моделей до ~60% ниже API поставщиков",+ "chat.task_status_planning": "Распределение",+ "contexts.kb.image_failed": "Ошибка анализа",+ "contexts.kb.image_failed_hint": "Анализ не удался. Проверьте сеть, изображение или поддержку изображений моделью и повторите.",+ "project.todo.delete_confirm": "Удалить это дело?",+ "project.todo.due_label": "Срок",+ "project.todo.due_on": "Срок {date}",+ "project.todo.due_overdue": "Просрочено с {date}",+ "project.todo.due_invalid": "Укажите срок в формате ГГГГ-ММ-ДД.","chat.mic_title": "Голосовой ввод","chat.mic_stop_title": "Остановить запись","chat.mic_error_permission": "Доступ к микрофону заблокирован. Разрешите его в настройках системы для голосового ввода.","chat.mic_error_no_device": "Микрофон не найден.","chat.mic_error_unavailable": "Голосовой ввод сейчас недоступен.",+ "chat.mic_insufficient_credits": "Недостаточно кредитов Orkas для голосового ввода. Пополните счёт владельца этого API-ключа; в браузере может быть открыт другой аккаунт.","chat.mic_limit_reached": "Максимальная длительность одной записи для распознавания голоса: {seconds} с.","chat.mic_key_required": "Для голосового ввода нужен API-ключ Orkas; расходуются кредиты Orkas.","chat.mic_invalid_key": "API-ключ Orkas недействителен или истёк. Обновите его в настройках.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "Распознавание прервано. Черновик и распознанный текст сохранены.","chat.mic_rate_limited": "Слишком много запросов. Подождите и повторите попытку.","chat.mic_manage_credits": "Управление кредитами",- "chat.mic_insufficient_credits": "Недостаточно кредитов Orkas для голосового ввода. Пополните счёт владельца этого API-ключа; в браузере может быть открыт другой аккаунт."+ "cli_upgrade.error_details": "Подробности ошибки",+ "cli_upgrade.up_to_date": "Уже установлена последняя версия",+ "project.bindings.unavailable_remove_hint": "Этот агент больше недоступен. Его можно убрать из проекта.",+ "settings.cleanup.remaining": "Всё ещё соответствуют условиям: {n}. Для продолжения проверьте и выберите заново.",+ "project.bindings.unavailable": "Агент-исполнитель недоступен"}diff --git a/src/renderer/locales/th.json b/src/renderer/locales/th.jsonindex f662f52d..3f5e5aab 100644--- a/src/renderer/locales/th.json+++ b/src/renderer/locales/th.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "เขียวมะนาว","avatar.color.salmon": "ส้มแซลมอน","settings.localexec.title": "สิทธิ์การดำเนินการในเครื่อง",- "settings.localexec.sub": "ควบคุมไฟล์ในเครื่องที่เอเจนต์เข้าถึงได้ และกำหนดว่าการดำเนินการที่อ่อนไหวในเครื่องหรือผ่านตัวเชื่อมต่อต้องยืนยันหรือไม่ ในโหมดเชื่อถือ การดำเนินการของตัวเชื่อมต่อที่ใช้ได้จะทำงานโดยไม่ขอยืนยัน",+ "settings.localexec.sub": "ควบคุมไฟล์ในเครื่องที่เอเจนต์เข้าถึงได้ และกำหนดว่าการดำเนินการที่อ่อนไหวในเครื่องหรือผ่านตัวเชื่อมต่อต้องยืนยันหรือไม่","settings.localexec.mode.workspace_approval": "ระมัดระวัง","settings.localexec.mode.workspace_approval_desc": "เฉพาะไฟล์ในพื้นที่ทำงาน ยืนยันการดำเนินการที่อ่อนไหว","settings.localexec.mode.all_files_approval": "มาตรฐาน",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "โปรดป้อน API Key ก่อน","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "ย้ายไปถังขยะ ({n})","settings.cleanup.previous": "ก่อนหน้า","settings.cleanup.next": "ถัดไป",- "apps.commercial_required": "แอปเว็บต้องใช้ Orkas เวอร์ชันเชิงพาณิชย์ ดาวน์โหลดเพื่อดำเนินการต่อ",+ "apps.commercial_required": "การเผยแพร่แอปต้องใช้ Orkas เวอร์ชันเชิงพาณิชย์","apps.commercial_download": "ดาวน์โหลดเวอร์ชันเชิงพาณิชย์","apps.commercial_open_failed": "เปิดหน้าดาวน์โหลดไม่ได้ โปรดลองอีกครั้ง","settings.cleanup.draft": "ฉบับร่าง",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "ยังล้างไม่ได้","settings.cleanup.unread": "ยังไม่อ่าน","price_comparison.maximum": "ค่าโมเดลถูกกว่า API ผู้ให้บริการสูงสุดประมาณ 60%",+ "chat.task_status_planning": "กำลังจัดสรร",+ "contexts.kb.image_failed": "วิเคราะห์ไม่สำเร็จ",+ "contexts.kb.image_failed_hint": "วิเคราะห์ไม่สำเร็จ ตรวจสอบเครือข่าย รูปภาพ หรือการรองรับรูปภาพของโมเดลแล้วลองอีกครั้ง",+ "project.todo.delete_confirm": "ลบสิ่งที่ต้องทำนี้หรือไม่?",+ "project.todo.due_label": "กำหนดส่ง",+ "project.todo.due_on": "กำหนดส่ง {date}",+ "project.todo.due_overdue": "เลยกำหนดตั้งแต่ {date}",+ "project.todo.due_invalid": "กรอกกำหนดส่งในรูปแบบ YYYY-MM-DD","chat.mic_title": "ป้อนข้อมูลด้วยเสียง","chat.mic_stop_title": "หยุดบันทึกเสียง","chat.mic_error_permission": "การเข้าถึงไมโครโฟนถูกบล็อก อนุญาตในการตั้งค่าระบบเพื่อใช้การป้อนข้อมูลด้วยเสียง","chat.mic_error_no_device": "ไม่พบไมโครโฟน","chat.mic_error_unavailable": "การป้อนข้อมูลด้วยเสียงไม่พร้อมใช้งานในขณะนี้",+ "chat.mic_insufficient_credits": "เครดิต Orkas ไม่เพียงพอสำหรับการป้อนด้วยเสียง โปรดเติมเครดิตให้บัญชีเจ้าของคีย์ API นี้ เบราว์เซอร์อาจเข้าสู่ระบบด้วยบัญชีอื่น","chat.mic_limit_reached": "การรู้จำเสียงแต่ละครั้งยาวได้ไม่เกิน {seconds} วินาที","chat.mic_key_required": "การป้อนด้วยเสียงต้องใช้คีย์ API ของ Orkas และใช้เครดิต Orkas","chat.mic_invalid_key": "คีย์ API ของ Orkas ไม่ถูกต้องหรือหมดอายุ โปรดอัปเดตในการตั้งค่า",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "การรู้จำถูกขัดจังหวะ เก็บฉบับร่างและข้อความที่รู้จำแล้วไว้ให้แล้ว","chat.mic_rate_limited": "มีคำขอมากเกินไป โปรดรอสักครู่แล้วลองใหม่","chat.mic_manage_credits": "จัดการเครดิต",- "chat.mic_insufficient_credits": "เครดิต Orkas ไม่เพียงพอสำหรับการป้อนด้วยเสียง โปรดเติมเครดิตให้บัญชีเจ้าของคีย์ API นี้ เบราว์เซอร์อาจเข้าสู่ระบบด้วยบัญชีอื่น"+ "cli_upgrade.error_details": "รายละเอียดข้อผิดพลาด",+ "cli_upgrade.up_to_date": "เป็นเวอร์ชันล่าสุดแล้ว",+ "project.bindings.unavailable_remove_hint": "เอเจนต์นี้ใช้งานไม่ได้แล้ว คุณนำออกจากโปรเจกต์ได้",+ "settings.cleanup.remaining": "ยังตรงตามเงื่อนไข: {n} รายการ ตรวจสอบและเลือกอีกครั้งเพื่อดำเนินการต่อ",+ "project.bindings.unavailable": "เอเจนต์ดำเนินงานไม่พร้อมใช้งาน"}diff --git a/src/renderer/locales/tr.json b/src/renderer/locales/tr.jsonindex e908e1d8..0f5e114d 100644--- a/src/renderer/locales/tr.json+++ b/src/renderer/locales/tr.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Limon yeşili","avatar.color.salmon": "Somon","settings.localexec.title": "Yerel işlem izinleri",- "settings.localexec.sub": "Ajanların hangi yerel dosyalara erişebileceğini ve hassas yerel işlemler veya bağlayıcı işlemlerinin onay gerektirip gerektirmediğini belirleyin. Güvenilir modda kullanılabilir bağlayıcı işlemleri onaysız çalışır.",+ "settings.localexec.sub": "Ajanların hangi yerel dosyalara erişebileceğini ve hassas yerel işlemler veya bağlayıcı işlemlerinin onay gerektirip gerektirmediğini belirleyin.","settings.localexec.mode.workspace_approval": "Temkinli","settings.localexec.mode.workspace_approval_desc": "Yalnızca çalışma alanı dosyaları; hassas işlemler için onay iste","settings.localexec.mode.all_files_approval": "Standart",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Önce bir API anahtarı girin","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Çöp kutusuna taşı ({n})","settings.cleanup.previous": "Önceki","settings.cleanup.next": "Sonraki",- "apps.commercial_required": "Web uygulamaları için Orkas’ın ticari sürümü gerekir. Devam etmek için indirin.",+ "apps.commercial_required": "Uygulama yayınlamak için Orkas ticari sürümü gerekir.","apps.commercial_download": "Ticari sürümü indir","apps.commercial_open_failed": "İndirme sayfası açılamadı. Lütfen tekrar deneyin.","settings.cleanup.draft": "Taslak",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Kullanılamıyor","settings.cleanup.unread": "Okunmamış","price_comparison.maximum": "Model maliyeti sağlayıcı API’lerinden yaklaşık %60’a kadar düşük",+ "chat.task_status_planning": "Dağıtılıyor",+ "contexts.kb.image_failed": "Analiz başarısız",+ "contexts.kb.image_failed_hint": "Analiz başarısız. Bağlantıyı, görseli veya modelin görsel desteğini kontrol edip yeniden deneyin.",+ "project.todo.delete_confirm": "Bu yapılacak iş silinsin mi?",+ "project.todo.due_label": "Son tarih",+ "project.todo.due_on": "Son tarih {date}",+ "project.todo.due_overdue": "{date} tarihinden beri gecikmiş",+ "project.todo.due_invalid": "Son tarihi YYYY-AA-GG biçiminde girin.","chat.mic_title": "Sesli giriş","chat.mic_stop_title": "Kaydı durdur","chat.mic_error_permission": "Mikrofon erişimi engellendi. Sesli girişi kullanmak için sistem ayarlarınızdan izin verin.","chat.mic_error_no_device": "Mikrofon bulunamadı.","chat.mic_error_unavailable": "Sesli giriş şu anda kullanılamıyor.",+ "chat.mic_insufficient_credits": "Sesli giriş için Orkas kredisi yetersiz. Bu API anahtarının sahibi olan hesaba kredi ekleyin; tarayıcıda başka bir hesap açık olabilir.","chat.mic_limit_reached": "Tek bir ses tanıma işlemi en fazla {seconds} saniye olabilir.","chat.mic_key_required": "Sesli giriş için Orkas API anahtarı gerekir ve Orkas kredisi kullanılır.","chat.mic_invalid_key": "Orkas API anahtarı geçersiz veya süresi dolmuş. Ayarlar’dan güncelleyin.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "Tanıma kesildi. Taslağınız ve tanınan metin korundu.","chat.mic_rate_limited": "Çok fazla istek. Tekrar denemeden önce bekleyin.","chat.mic_manage_credits": "Kredileri yönet",- "chat.mic_insufficient_credits": "Sesli giriş için Orkas kredisi yetersiz. Bu API anahtarının sahibi olan hesaba kredi ekleyin; tarayıcıda başka bir hesap açık olabilir."+ "cli_upgrade.error_details": "Hata ayrıntıları",+ "cli_upgrade.up_to_date": "Zaten güncel",+ "project.bindings.unavailable_remove_hint": "Bu ajan artık kullanılamıyor. Projeden kaldırabilirsiniz.",+ "settings.cleanup.remaining": "Hâlâ eşleşen: {n}. Devam etmek için gözden geçirip yeniden seçin.",+ "project.bindings.unavailable": "Çalıştırılacak ajan kullanılamıyor"}diff --git a/src/renderer/locales/vi.json b/src/renderer/locales/vi.jsonindex 08520c41..8a4f1db9 100644--- a/src/renderer/locales/vi.json+++ b/src/renderer/locales/vi.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "Xanh chanh","avatar.color.salmon": "Hồng cá hồi","settings.localexec.title": "Quyền thao tác cục bộ",- "settings.localexec.sub": "Kiểm soát tệp cục bộ tác tử được truy cập và việc có cần xác nhận thao tác nhạy cảm cục bộ hoặc qua trình kết nối hay không. Trong chế độ Tin cậy, các thao tác trình kết nối khả dụng chạy không cần xác nhận.",+ "settings.localexec.sub": "Kiểm soát tệp cục bộ tác tử được truy cập và việc có cần xác nhận thao tác nhạy cảm cục bộ hoặc qua trình kết nối hay không.","settings.localexec.mode.workspace_approval": "Thận trọng","settings.localexec.mode.workspace_approval_desc": "Chỉ tệp trong không gian làm việc, xác nhận thao tác nhạy cảm","settings.localexec.mode.all_files_approval": "Tiêu chuẩn",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "Hãy nhập API Key trước","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "Chuyển vào thùng rác ({n})","settings.cleanup.previous": "Trước","settings.cleanup.next": "Tiếp",- "apps.commercial_required": "Ứng dụng web yêu cầu phiên bản thương mại của Orkas. Hãy tải xuống để tiếp tục.",+ "apps.commercial_required": "Để xuất bản ứng dụng, bạn cần phiên bản thương mại của Orkas.","apps.commercial_download": "Tải phiên bản thương mại","apps.commercial_open_failed": "Không thể mở trang tải xuống. Vui lòng thử lại.","settings.cleanup.draft": "Bản nháp",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "Không khả dụng","settings.cleanup.unread": "Chưa đọc","price_comparison.maximum": "Chi phí mô hình thấp hơn API nhà cung cấp tới khoảng 60%",+ "chat.task_status_planning": "Đang phân công",+ "contexts.kb.image_failed": "Phân tích thất bại",+ "contexts.kb.image_failed_hint": "Phân tích thất bại. Kiểm tra mạng, ảnh hoặc khả năng hỗ trợ ảnh của mô hình rồi thử lại.",+ "project.todo.delete_confirm": "Xóa việc cần làm này?",+ "project.todo.due_label": "Hạn chót",+ "project.todo.due_on": "Hạn {date}",+ "project.todo.due_overdue": "Quá hạn từ {date}",+ "project.todo.due_invalid": "Nhập hạn chót theo định dạng YYYY-MM-DD.","chat.mic_title": "Nhập bằng giọng nói","chat.mic_stop_title": "Dừng ghi âm","chat.mic_error_permission": "Quyền truy cập micrô bị chặn. Hãy cho phép trong cài đặt hệ thống để nhập bằng giọng nói.","chat.mic_error_no_device": "Không tìm thấy micrô.","chat.mic_error_unavailable": "Hiện không thể nhập bằng giọng nói.",+ "chat.mic_insufficient_credits": "Không đủ tín dụng Orkas để nhập bằng giọng nói. Nạp cho tài khoản sở hữu khóa API này; trình duyệt có thể đang đăng nhập tài khoản khác.","chat.mic_limit_reached": "Mỗi lần nhận dạng giọng nói có thể dài tối đa {seconds} giây.","chat.mic_key_required": "Nhập bằng giọng nói cần khóa API Orkas và sử dụng tín dụng Orkas.","chat.mic_invalid_key": "Khóa API Orkas không hợp lệ hoặc đã hết hạn. Hãy cập nhật trong Cài đặt.",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "Nhận dạng bị gián đoạn. Bản nháp và văn bản đã nhận dạng được giữ lại.","chat.mic_rate_limited": "Quá nhiều yêu cầu. Vui lòng đợi rồi thử lại.","chat.mic_manage_credits": "Quản lý tín dụng",- "chat.mic_insufficient_credits": "Không đủ tín dụng Orkas để nhập bằng giọng nói. Nạp cho tài khoản sở hữu khóa API này; trình duyệt có thể đang đăng nhập tài khoản khác."+ "cli_upgrade.error_details": "Chi tiết lỗi",+ "cli_upgrade.up_to_date": "Đã là phiên bản mới nhất",+ "project.bindings.unavailable_remove_hint": "Tác tử này không còn khả dụng. Bạn có thể gỡ bỏ nó khỏi dự án.",+ "settings.cleanup.remaining": "Vẫn phù hợp: {n}. Xem lại và chọn lại để tiếp tục.",+ "project.bindings.unavailable": "Tác tử thực thi không khả dụng"}diff --git a/src/renderer/locales/zh-tw.json b/src/renderer/locales/zh-tw.jsonindex a09bf271..da1419fa 100644--- a/src/renderer/locales/zh-tw.json+++ b/src/renderer/locales/zh-tw.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "萊姆綠","avatar.color.salmon": "鮭魚色","settings.localexec.title": "本機操作權限",- "settings.localexec.sub": "控制智慧代理能存取哪些本機檔案,以及執行本機或連接器的敏感操作時是否確認。「信任」模式下,可用的連接器操作無需確認。",+ "settings.localexec.sub": "控制智慧代理能存取哪些本機檔案,以及執行本機或連接器的敏感操作時是否確認。","settings.localexec.mode.workspace_approval": "謹慎","settings.localexec.mode.workspace_approval_desc": "僅存取工作區檔案,敏感操作需確認","settings.localexec.mode.all_files_approval": "標準",@@ -2485,7 +2485,7 @@"settings.orkas_api.create_key": "Create API Key","settings.orkas_api.key_placeholder": "Enter API Key","settings.orkas_api.configure": "Configure",- "settings.orkas_api.key_required": "Enter an API Key first",+ "settings.orkas_api.key_required": "請先輸入 API Key","settings.orkas_api.configuring": "Configuring…","settings.orkas_api.configure_failed": "API Key validation or save failed","settings.orkas_api.open_failed": "Could not open the API Key page",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "移入資源回收筒({n})","settings.cleanup.previous": "上一頁","settings.cleanup.next": "下一頁",- "apps.commercial_required": "網頁應用需要 Orkas 商業版。下載商業版即可繼續。",+ "apps.commercial_required": "發佈應用程式需要使用 Orkas 商業版。","apps.commercial_download": "下載商業版","apps.commercial_open_failed": "無法開啟下載頁面,請重試。","settings.cleanup.draft": "有草稿",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "暫不可清理","settings.cleanup.unread": "未讀","price_comparison.maximum": "模型費用較廠商 API 最高節省約 60%",+ "chat.task_status_planning": "安排中",+ "contexts.kb.image_failed": "解析失敗",+ "contexts.kb.image_failed_hint": "解析失敗,請檢查網路、圖片或模型辨識圖片的能力後重試。",+ "project.todo.delete_confirm": "刪除這條待辦?",+ "project.todo.due_label": "到期日",+ "project.todo.due_on": "{date} 到期",+ "project.todo.due_overdue": "已逾期({date})",+ "project.todo.due_invalid": "到期日請按 YYYY-MM-DD 填寫。","chat.mic_title": "語音輸入","chat.mic_stop_title": "停止錄音","chat.mic_error_permission": "麥克風存取被拒絕。請在系統設定中允許後再使用語音輸入。","chat.mic_error_no_device": "沒有找到可用的麥克風。","chat.mic_error_unavailable": "語音輸入暫時不可用。",+ "chat.mic_insufficient_credits": "Orkas 積分不足,暫時無法使用語音輸入。請為此 API Key 所屬帳號補充積分;瀏覽器目前登入的帳號可能不同。","chat.mic_limit_reached": "單次語音辨識最長 {seconds} 秒。","chat.mic_key_required": "語音輸入需要 Orkas API Key,並消耗 Orkas 積分。","chat.mic_invalid_key": "Orkas API Key 無效或已過期,請在設定中更新。",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "辨識已中斷,原草稿和已辨識文字已保留。","chat.mic_rate_limited": "請求過於頻繁,請稍後重試。","chat.mic_manage_credits": "管理積分",- "chat.mic_insufficient_credits": "Orkas 積分不足,暫時無法使用語音輸入。請為此 API Key 所屬帳號補充積分;瀏覽器目前登入的帳號可能不同。"+ "cli_upgrade.error_details": "錯誤詳情",+ "cli_upgrade.up_to_date": "目前已是最新版本",+ "project.bindings.unavailable_remove_hint": "這個智慧代理已無法使用,可將它從專案中移除。",+ "settings.cleanup.remaining": "目前仍符合條件:{n} 項。繼續清理前請重新檢視並選取。",+ "project.bindings.unavailable": "執行 智慧代理 不可用"}diff --git a/src/renderer/locales/zh.json b/src/renderer/locales/zh.jsonindex e42b207a..1ce4ec38 100644--- a/src/renderer/locales/zh.json+++ b/src/renderer/locales/zh.json@@ -1715,7 +1715,7 @@"avatar.color.lime": "青柠","avatar.color.salmon": "三文鱼","settings.localexec.title": "本机操作权限",- "settings.localexec.sub": "控制智能体能访问哪些本机文件,以及执行本机或连接器的敏感操作时是否确认。“信任”模式下,可用的连接器操作无需确认。",+ "settings.localexec.sub": "控制智能体能访问哪些本机文件,以及执行本机或连接器的敏感操作时是否确认。","settings.localexec.mode.workspace_approval": "谨慎","settings.localexec.mode.workspace_approval_desc": "仅访问工作区文件,敏感操作需确认","settings.localexec.mode.all_files_approval": "常规",@@ -2635,7 +2635,7 @@"settings.cleanup.move": "移入回收站({n})","settings.cleanup.previous": "上一页","settings.cleanup.next": "下一页",- "apps.commercial_required": "网页应用需要 Orkas 商业版。下载商业版即可继续。",+ "apps.commercial_required": "发布应用需要使用 Orkas 商业版。","apps.commercial_download": "下载商业版","apps.commercial_open_failed": "无法打开下载页面,请重试。","settings.cleanup.draft": "有草稿",@@ -2644,11 +2644,20 @@"settings.cleanup.unavailable": "暂不可清理","settings.cleanup.unread": "未读","price_comparison.maximum": "模型费用较厂商 API 最高节省约 60%",+ "chat.task_status_planning": "安排中",+ "contexts.kb.image_failed": "解析失败",+ "contexts.kb.image_failed_hint": "解析失败,请检查网络、图片或模型识图能力后重试。",+ "project.todo.delete_confirm": "删除这条待办?",+ "project.todo.due_label": "到期日",+ "project.todo.due_on": "{date} 到期",+ "project.todo.due_overdue": "已逾期({date})",+ "project.todo.due_invalid": "到期日请按 YYYY-MM-DD 填写。","chat.mic_title": "语音输入","chat.mic_stop_title": "停止录音","chat.mic_error_permission": "麦克风访问被拒绝。请在系统设置中允许后再使用语音输入。","chat.mic_error_no_device": "没有找到可用的麦克风。","chat.mic_error_unavailable": "语音输入暂时不可用。",+ "chat.mic_insufficient_credits": "Orkas 积分不足,暂时无法使用语音输入。请为此 API Key 所属账号补充积分;浏览器当前登录的账号可能不同。","chat.mic_limit_reached": "单次语音识别最长 {seconds} 秒。","chat.mic_key_required": "语音输入需要 Orkas API Key,并消耗 Orkas 积分。","chat.mic_invalid_key": "Orkas API Key 无效或已过期,请在设置中更新。",@@ -2664,5 +2673,9 @@"chat.mic_incomplete": "识别已中断,原草稿和已识别文字已保留。","chat.mic_rate_limited": "请求过于频繁,请稍后重试。","chat.mic_manage_credits": "管理积分",- "chat.mic_insufficient_credits": "Orkas 积分不足,暂时无法使用语音输入。请为此 API Key 所属账号补充积分;浏览器当前登录的账号可能不同。"+ "cli_upgrade.error_details": "错误详情",+ "cli_upgrade.up_to_date": "当前已是最新版",+ "project.bindings.unavailable_remove_hint": "这个 Agent 已不可用,可将它从项目中移除。",+ "settings.cleanup.remaining": "当前仍符合条件:{n} 项。继续清理需重新查看并选择。",+ "project.bindings.unavailable": "执行 Agent 不可用"}diff --git a/src/renderer/modules/date-picker.js b/src/renderer/modules/date-picker.jsnew file mode 100644index 00000000..e606b73b--- /dev/null+++ b/src/renderer/modules/date-picker.js@@ -0,0 +1,357 @@+// Shared editable calendar for to-dos and automation; loaded by both lazy bundles.+let _autoOpenDatePicker = null;++function _autoLocalDateParts(raw) {+ const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(raw || '').trim());+ if (!match) return null;+ const year = parseInt(match[1], 10);+ const month = parseInt(match[2], 10);+ const day = parseInt(match[3], 10);+ const parsed = new Date(year, month - 1, day);+ if (parsed.getFullYear() !== year || parsed.getMonth() !== month - 1 || parsed.getDate() !== day) return null;+ return { year, month, day, value: `${match[1]}-${match[2]}-${match[3]}` };+}++function _autoCalendarDateValue(date) {+ const pad = (n) => String(n).padStart(2, '0');+ return `${String(date.getFullYear()).padStart(4, '0')}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;+}++function _autoCalendarCells(year, month) {+ const first = new Date(year, month, 1, 12);+ const cursor = new Date(year, month, 1 - first.getDay(), 12);+ const cells = [];+ for (let idx = 0; idx < 42; idx += 1) {+ const date = new Date(cursor.getFullYear(), cursor.getMonth(), cursor.getDate() + idx, 12);+ cells.push({+ value: _autoCalendarDateValue(date),+ day: date.getDate(),+ inMonth: date.getFullYear() === year && date.getMonth() === month,+ });+ }+ return cells;+}++function _autoCalendarDateFromValue(value) {+ const parts = _autoLocalDateParts(value);+ return parts ? new Date(parts.year, parts.month - 1, parts.day, 12) : null;+}++function _autoCalendarShiftDate(value, days) {+ const date = _autoCalendarDateFromValue(value) || new Date();+ date.setHours(12, 0, 0, 0);+ date.setDate(date.getDate() + days);+ return _autoCalendarDateValue(date);+}++function _autoCalendarShiftMonth(value, months) {+ const date = _autoCalendarDateFromValue(value) || new Date();+ const day = date.getDate();+ const target = new Date(date.getFullYear(), date.getMonth() + months, 1, 12);+ const lastDay = new Date(target.getFullYear(), target.getMonth() + 1, 0, 12).getDate();+ target.setDate(Math.min(day, lastDay));+ return _autoCalendarDateValue(target);+}++function _autoDatePickerMount(el, config = {}) {+ if (!el) return null;+ const input = el.querySelector('input');+ const toggle = el.querySelector('.auto-date-picker-toggle');+ const popover = el.querySelector('.auto-date-picker-popover');+ if (!input || !toggle || !popover) return null;++ const state = {+ open: false,+ viewYear: new Date().getFullYear(),+ viewMonth: new Date().getMonth(),+ activeValue: '',+ };+ const headingId = `${popover.id}-heading`;+ let portalParent = null;+ let portalNextSibling = null;++ const locale = () => {+ try {+ return typeof getLocaleMeta === 'function'+ ? getLocaleMeta(getLang()).intlLocale+ : 'en-US';+ } catch (_) {+ return 'en-US';+ }+ };+ const escape = (value) => (+ typeof escapeHtml === 'function'+ ? escapeHtml(String(value == null ? '' : value))+ : String(value == null ? '' : value)+ .replace(/&/g, '&')+ .replace(/</g, '<')+ .replace(/>/g, '>')+ .replace(/"/g, '"')+ );+ const icon = (name, className) => (+ typeof window.uiIconHtml === 'function' ? window.uiIconHtml(name, className) : ''+ );+ const dateLabel = (date, options) => {+ try { return new Intl.DateTimeFormat(locale(), options).format(date); }+ catch (_) { return _autoCalendarDateValue(date); }+ };+ const todayValue = () => _autoCalendarDateValue(new Date());++ const syncViewFromInput = () => {+ const selected = _autoCalendarDateFromValue(input.value) || new Date();+ state.viewYear = selected.getFullYear();+ state.viewMonth = selected.getMonth();+ state.activeValue = _autoCalendarDateValue(selected);+ };++ const render = ({ focusActive = false } = {}) => {+ const selected = _autoLocalDateParts(input.value);+ const selectedValue = selected ? selected.value : '';+ const today = todayValue();+ const monthDate = new Date(state.viewYear, state.viewMonth, 1, 12);+ const monthTitle = dateLabel(monthDate, { year: 'numeric', month: 'long' });+ const cells = _autoCalendarCells(state.viewYear, state.viewMonth);+ const weekdays = [];+ for (let day = 0; day < 7; day += 1) {+ const date = new Date(2024, 0, 7 + day, 12);+ weekdays.push({+ short: dateLabel(date, { weekday: 'narrow' }),+ full: dateLabel(date, { weekday: 'long' }),+ });+ }+ if (!cells.some((cell) => cell.value === state.activeValue)) {+ const firstInMonth = cells.find((cell) => cell.inMonth);+ state.activeValue = firstInMonth ? firstInMonth.value : cells[0].value;+ }+ const weekdayHtml = weekdays.map((weekday) => (+ `<span role="columnheader" aria-label="${escape(weekday.full)}">${escape(weekday.short)}</span>`+ )).join('');+ const cellHtml = cells.map((cell) => {+ const date = _autoCalendarDateFromValue(cell.value);+ const classNames = ['auto-date-picker-day'];+ if (!cell.inMonth) classNames.push('is-outside');+ if (cell.value === today) classNames.push('is-today');+ if (cell.value === selectedValue) classNames.push('is-selected');+ const ariaCurrent = cell.value === today ? ' aria-current="date"' : '';+ return `<button type="button" class="${classNames.join(' ')}" data-date="${cell.value}" role="gridcell" aria-label="${escape(dateLabel(date, { year: 'numeric', month: 'long', day: 'numeric' }))}" aria-selected="${cell.value === selectedValue ? 'true' : 'false'}" tabindex="${cell.value === state.activeValue ? '0' : '-1'}"${ariaCurrent}>${cell.day}</button>`;+ }).join('');+ popover.setAttribute('aria-label', t(config.labelKey || 'auto.date_label'));+ popover.innerHTML = `+ <div class="auto-date-picker-header">+ <button type="button" class="auto-date-picker-nav" data-action="previous" aria-label="${escape(t('auto.calendar_previous_month'))}" title="${escape(t('auto.calendar_previous_month'))}">${icon('chevron-left', 'ui-icon')}</button>+ <div class="auto-date-picker-heading" id="${escape(headingId)}" aria-live="polite">${escape(monthTitle)}</div>+ <button type="button" class="auto-date-picker-nav" data-action="next" aria-label="${escape(t('auto.calendar_next_month'))}" title="${escape(t('auto.calendar_next_month'))}">${icon('chevron-right', 'ui-icon')}</button>+ </div>+ <div class="auto-date-picker-weekdays" role="row">${weekdayHtml}</div>+ <div class="auto-date-picker-grid" role="grid" aria-labelledby="${escape(headingId)}">${cellHtml}</div>+ <div class="auto-date-picker-footer">+ <button type="button" class="auto-date-picker-today" data-action="today">${escape(t('auto.calendar_today'))}</button>+ </div>`;+ if (focusActive) popover.querySelector('.auto-date-picker-day[tabindex="0"]')?.focus();+ };++ const reposition = () => {+ if (!state.open) return;+ const rect = el.getBoundingClientRect();+ const edge = 8;+ const width = Math.min(296, Math.max(240, window.innerWidth - edge * 2));+ const left = Math.max(edge, Math.min(rect.left, window.innerWidth - width - edge));+ popover.dataset.uiOverlay = '';+ popover.style.position = 'fixed';+ popover.style.left = `${left}px`;+ popover.style.width = `${width}px`;+ const popoverHeight = popover.offsetHeight || 340;+ const placement = typeof _dropdownVerticalPlacement === 'function'+ ? _dropdownVerticalPlacement(rect, popoverHeight, window.innerHeight, { edge, gap: 6 })+ : { top: Math.min(window.innerHeight - popoverHeight - edge, rect.bottom + 6), openAbove: false };+ popover.style.top = `${Math.max(edge, placement.top)}px`;+ popover.dataset.placement = placement.openAbove ? 'top' : 'bottom';+ popover.style.zIndex = String(+ typeof _aiSelectPopoverZIndexFor === 'function' ? _aiSelectPopoverZIndexFor(el) : 14000,+ );+ };++ const close = () => {+ if (!state.open) return;+ state.open = false;+ el.classList.remove('open');+ input.setAttribute('aria-expanded', 'false');+ toggle.setAttribute('aria-expanded', 'false');+ popover.hidden = true;+ popover.style.position = '';+ popover.style.left = '';+ popover.style.top = '';+ popover.style.width = '';+ popover.style.zIndex = '';+ delete popover.dataset.placement;+ if (portalParent) {+ if (portalParent.isConnected) portalParent.insertBefore(popover, portalNextSibling);+ else popover.remove();+ portalParent = null;+ portalNextSibling = null;+ }+ document.removeEventListener('mousedown', onDocumentDown, true);+ window.removeEventListener('scroll', reposition, true);+ window.removeEventListener('resize', reposition, true);+ if (_autoOpenDatePicker === api) _autoOpenDatePicker = null;+ };++ const open = ({ focusGrid = false } = {}) => {+ if (state.open) {+ if (focusGrid) render({ focusActive: true });+ return;+ }+ if (_autoOpenDatePicker && _autoOpenDatePicker !== api) _autoOpenDatePicker.close();+ _autoOpenDatePicker = api;+ syncViewFromInput();+ state.open = true;+ el.classList.add('open');+ input.setAttribute('aria-expanded', 'true');+ toggle.setAttribute('aria-expanded', 'true');+ portalParent = popover.parentNode;+ portalNextSibling = popover.nextSibling;+ // Keep calendar focus inside a form dialog while escaping its scroll area.+ (config.portalRoot || document.body).appendChild(popover);+ popover.hidden = false;+ render();+ reposition();+ document.addEventListener('mousedown', onDocumentDown, true);+ window.addEventListener('scroll', reposition, true);+ window.addEventListener('resize', reposition, true);+ if (focusGrid) popover.querySelector('.auto-date-picker-day[tabindex="0"]')?.focus();+ };++ const commit = (value) => {+ input.value = value;+ input.dispatchEvent(new Event('input', { bubbles: true }));+ input.dispatchEvent(new Event('change', { bubbles: true }));+ close();+ input.focus();+ };++ function onDocumentDown(event) {+ if (!el.contains(event.target) && !popover.contains(event.target)) close();+ }++ popover.addEventListener('click', (event) => {+ const button = event.target.closest('button');+ if (!button) return;+ if (button.dataset.date) {+ commit(button.dataset.date);+ return;+ }+ if (button.dataset.action === 'today') {+ commit(todayValue());+ return;+ }+ if (button.dataset.action === 'previous' || button.dataset.action === 'next') {+ const delta = button.dataset.action === 'previous' ? -1 : 1;+ state.activeValue = _autoCalendarShiftMonth(state.activeValue, delta);+ const active = _autoCalendarDateFromValue(state.activeValue);+ state.viewYear = active.getFullYear();+ state.viewMonth = active.getMonth();+ render({ focusActive: true });+ reposition();+ }+ });++ popover.addEventListener('keydown', (event) => {+ if (event.isComposing || event.keyCode === 229) return;+ let nextValue = '';+ if (event.key === 'Escape') {+ close();+ input.focus();+ event.preventDefault();+ event.stopPropagation();+ return;+ }+ if (event.key === 'ArrowLeft') nextValue = _autoCalendarShiftDate(state.activeValue, -1);+ else if (event.key === 'ArrowRight') nextValue = _autoCalendarShiftDate(state.activeValue, 1);+ else if (event.key === 'ArrowUp') nextValue = _autoCalendarShiftDate(state.activeValue, -7);+ else if (event.key === 'ArrowDown') nextValue = _autoCalendarShiftDate(state.activeValue, 7);+ else if (event.key === 'Home') {+ const active = _autoCalendarDateFromValue(state.activeValue);+ nextValue = _autoCalendarShiftDate(state.activeValue, -active.getDay());+ } else if (event.key === 'End') {+ const active = _autoCalendarDateFromValue(state.activeValue);+ nextValue = _autoCalendarShiftDate(state.activeValue, 6 - active.getDay());+ } else if (event.key === 'PageUp') nextValue = _autoCalendarShiftMonth(state.activeValue, -1);+ else if (event.key === 'PageDown') nextValue = _autoCalendarShiftMonth(state.activeValue, 1);+ if (!nextValue) return;+ const active = _autoCalendarDateFromValue(nextValue);+ state.activeValue = nextValue;+ state.viewYear = active.getFullYear();+ state.viewMonth = active.getMonth();+ render({ focusActive: true });+ reposition();+ event.preventDefault();+ });++ input.addEventListener('click', () => open());+ input.addEventListener('input', () => {+ if (!state.open) return;+ const parsed = _autoCalendarDateFromValue(input.value);+ if (parsed) {+ state.viewYear = parsed.getFullYear();+ state.viewMonth = parsed.getMonth();+ state.activeValue = _autoCalendarDateValue(parsed);+ }+ render();+ reposition();+ });+ input.addEventListener('keydown', (event) => {+ if (event.isComposing || event.keyCode === 229) return;+ if ((event.altKey && event.key === 'ArrowDown') || event.key === 'F4') {+ open({ focusGrid: true });+ event.preventDefault();+ } else if (event.key === 'Escape' && state.open) {+ close();+ event.preventDefault();+ event.stopPropagation();+ }+ });+ toggle.addEventListener('click', () => {+ if (state.open) close();+ else open({ focusGrid: true });+ });++ const api = {+ el,+ state,+ getValue() { return input.value; },+ setValue(value) {+ input.value = String(value || '');+ if (state.open) {+ syncViewFromInput();+ render();+ reposition();+ }+ },+ repaint() {+ const label = t(config.labelKey || 'auto.date_label');+ input.setAttribute('aria-label', label);+ toggle.setAttribute('aria-label', t('auto.calendar_open'));+ toggle.setAttribute('title', t('auto.calendar_open'));+ popover.setAttribute('aria-label', label);+ if (state.open) {+ render();+ reposition();+ }+ },+ open,+ close,+ };++ input.setAttribute('aria-haspopup', 'dialog');+ input.setAttribute('aria-controls', popover.id);+ input.setAttribute('aria-expanded', 'false');+ toggle.setAttribute('aria-expanded', 'false');+ toggle.innerHTML = icon('calendar', 'ui-icon auto-date-picker-icon');+ api.repaint();+ return api;+}++// Only pure calendar helpers are exposed to deterministic tests.+if (typeof module !== 'undefined' && typeof module.exports === 'object') {+ module.exports = { _autoLocalDateParts, _autoCalendarCells, _autoCalendarShiftDate, _autoCalendarShiftMonth };+}diff --git a/src/renderer/modules/dialogs.js b/src/renderer/modules/dialogs.jsindex 05842423..6410658a 100644--- a/src/renderer/modules/dialogs.js+++ b/src/renderer/modules/dialogs.js@@ -131,7 +131,7 @@ function _uiKeepDialogFocus(overlay, preferredFocus) {return () => document.removeEventListener('focusin', onFocusIn, true);}-function _uiShowDialog({ message, context, showCancel, okLabel, cancelLabel, signal }) {+function _uiShowDialog({ message, context, showCancel, okLabel, cancelLabel, signal, onConfirm }) {return new Promise((resolve) => {if (signal && signal.aborted) {resolve(false);@@ -162,12 +162,14 @@ function _uiShowDialog({ message, context, showCancel, okLabel, cancelLabel, sigconst cancelBtn = overlay.querySelector('[data-act="cancel"]');const releaseFocusGuard = _uiKeepDialogFocus(overlay, okBtn);let finished = false;+ let busy = false;const onKey = (e) => {// IME guard (CLAUDE.md §8) — Enter while composing should commit// the IME candidate, not auto-confirm the dialog.if (e.isComposing || e.keyCode === 229) return;if (!_uiIsTopDialogOverlay(overlay)) return;if (_uiTrapDialogTab(overlay, e)) return;+ if (busy) { if (e.key === 'Escape' || e.key === 'Enter') e.preventDefault(); return; }if (e.key === 'Escape') {e.preventDefault();finish(false);@@ -180,7 +182,7 @@ function _uiShowDialog({ message, context, showCancel, okLabel, cancelLabel, sig: null;if (interactive) return;e.preventDefault();- finish(true);+ confirm();}};const finish = (val) => {@@ -195,9 +197,30 @@ function _uiShowDialog({ message, context, showCancel, okLabel, cancelLabel, sigresolve(val);};const onAbort = () => finish(false);+ const confirm = async () => {+ if (finished || busy) return;+ if (typeof onConfirm !== 'function') { finish(true); return; }+ busy = true;+ okBtn.disabled = true;+ okBtn.classList.add('is-loading');+ okBtn.setAttribute('aria-busy', 'true');+ if (cancelBtn) cancelBtn.disabled = true;+ try {+ // The action owns failure feedback; false keeps the dialog retryable.+ if (await onConfirm() !== false) finish(true);+ } catch (_) { /* Restore the action after an unexpected rejection. */ }+ finally {+ busy = false;+ okBtn.disabled = false;+ okBtn.classList.remove('is-loading');+ okBtn.removeAttribute('aria-busy');+ if (cancelBtn) cancelBtn.disabled = false;+ if (!finished) okBtn.focus();+ }+ };if (signal) signal.addEventListener('abort', onAbort, { once: true });- okBtn.addEventListener('click', () => finish(true));- if (cancelBtn) cancelBtn.addEventListener('click', () => finish(false));+ okBtn.addEventListener('click', confirm);+ if (cancelBtn) cancelBtn.addEventListener('click', () => { if (!busy) finish(false); });document.addEventListener('keydown', onKey, true);setTimeout(() => {if (_uiIsTopDialogOverlay(overlay) && document.body.contains(overlay)) okBtn.focus();@@ -210,6 +233,8 @@ function _uiShowDialog({ message, context, showCancel, okLabel, cancelLabel, sig// the action wants a more specific verb (e.g. "Open Folder" for the// preview-fallback dialog) — avoids forking a near-duplicate confirm// helper per CLAUDE.md §"Reuse UI components".+// Optional onConfirm keeps the action loading until it resolves; return false+// after showing failure feedback to leave the dialog available for retry.function uiConfirm(arg) {if (arg && typeof arg === 'object') {return _uiShowDialog({@@ -219,6 +244,7 @@ function uiConfirm(arg) {okLabel: arg.okLabel,cancelLabel: arg.cancelLabel,signal: arg.signal,+ onConfirm: arg.onConfirm,});}return _uiShowDialog({ message: arg, showCancel: true });diff --git a/src/renderer/modules/ipc-shim.js b/src/renderer/modules/ipc-shim.jsindex 9d76611c..832278f7 100644--- a/src/renderer/modules/ipc-shim.js+++ b/src/renderer/modules/ipc-shim.js@@ -22,6 +22,8 @@ let _ipcErrorSentCount = 0;// - opts.stream: boolean (this call yields an SSE-style stream)// - opts.wrapAsUpdates: wrap the whole body under `updates` keyconst _IPC_ROUTES = [+ ['POST', '/api/apps/data-impact-from-path', 'savedApps.dataImpactFromPath'],+ ['POST', '/api/apps/export-data-from-path', 'savedApps.exportDataFromPath'],['POST', '/api/conversations/cleanup/preview', 'conversations.cleanup.preview'],['POST', '/api/conversations/cleanup/page', 'conversations.cleanup.page'],['POST', '/api/conversations/cleanup/remove', 'conversations.cleanup.remove'],diff --git a/src/renderer/modules/lazy-features.js b/src/renderer/modules/lazy-features.jsindex 546f65d0..2bf84ca6 100644--- a/src/renderer/modules/lazy-features.js+++ b/src/renderer/modules/lazy-features.js@@ -22,10 +22,12 @@ const _rendererFeatureManifest = Object.freeze({],project: [{ src: './modules/library-transfer.js' },+ { src: './modules/date-picker.js' },{ src: './modules/project-detail.js' },{ src: './modules/todos.js' },],auto: [+ { src: './modules/date-picker.js' },{ src: './modules/auto.js' },],contexts: [diff --git a/src/renderer/modules/local-agents.js b/src/renderer/modules/local-agents.jsindex 573e2328..e0d96f1f 100644--- a/src/renderer/modules/local-agents.js+++ b/src/renderer/modules/local-agents.js@@ -30,32 +30,32 @@ const _localAgentsLog = createLogger('local-agents');const CLI_DEFAULTS = {claude: {name: 'ClaudeCode',- description_zh: '在本地项目中实现功能、修复缺陷、跨文件重构、编写测试和调试,通过文件编辑与命令执行交付代码改动及验证结果。',- description_en: 'Implements features, fixes bugs, refactors across files, writes tests and debugs in a local project, using file edits and commands to deliver code changes and verification results.',+ description_zh: '理解和维护项目代码,解答代码问题、开发功能、修复缺陷和审查改动,提供代码修改或分析建议。',+ description_en: 'Understands and maintains project code, answers code questions, develops features, fixes bugs, and reviews changes, providing code changes or analysis and recommendations.',isCoding: true,},codex: {name: 'Codex',- description_zh: '在本地项目中按需求或 issue 实现功能、修复缺陷和跨文件重构,通过文件编辑与命令执行交付代码补丁及验证结果。',- description_en: 'Implements requirements or issues, fixes bugs and refactors across files in a local project, using file edits and commands to deliver code patches and verification results.',+ description_zh: '理解和维护项目代码,解答代码问题、开发功能、修复缺陷和审查改动,提供代码修改或分析建议。',+ description_en: 'Understands and maintains project code, answers code questions, develops features, fixes bugs, and reviews changes, providing code changes or analysis and recommendations.',isCoding: true,},openclaw: {name: 'OpenClaw',- description_zh: '组合可用工具执行通用多步任务与轻量自动化流程,汇总各步骤结果,交付所需的任务成果。',- description_en: 'Carries out general multi-step tasks and lightweight automation by combining available tools, consolidating their results into the requested deliverable.',+ description_zh: '协助处理日常事务,包括查找资料、撰写内容、整理文件和执行自动化任务,提供所需内容及处理结果。',+ description_en: 'Helps with everyday tasks, including finding information, writing content, organizing files, and running automated tasks, providing the requested content and results.',isCoding: false,},opencode: {name: 'OpenCode',- description_zh: '在本地项目中实现功能和修复缺陷,通过文件编辑与终端命令执行交付代码改动及验证结果。',- description_en: 'Implements features and fixes bugs in a local project, editing files and running terminal commands to deliver code changes and verification results.',+ description_zh: '理解和维护项目代码,解答代码问题、开发功能、修复缺陷和审查改动,提供代码修改或分析建议。',+ description_en: 'Understands and maintains project code, answers code questions, develops features, fixes bugs, and reviews changes, providing code changes or analysis and recommendations.',isCoding: true,},hermes: {name: 'Hermes',- description_zh: '使用可用工具按既定流程推进通用多步任务,汇总各步骤结果,交付所需的任务成果。',- description_en: 'Carries out general multi-step tasks by following defined workflows with available tools, consolidating step results into the requested deliverable.',+ description_zh: '完成资料研究、代码开发和需要多个步骤的任务,提供研究结论、代码修改或生成的文件。',+ description_en: 'Carries out research, code development, and tasks that require multiple steps, providing research findings, code changes, or generated files.',isCoding: false,},};@@ -232,6 +232,7 @@ async function loadLocalCliEntries(options = {}) {//let _extCliSelectApi = null;let _externalCliLastOnChange = null;+let _cliUpgradeControlId = 0;function _setExternalCliDetectionBusy(busy,@@ -488,11 +489,17 @@ window.getExternalCliSelectionWarning = getExternalCliSelectionWarning;window.setExternalCliValue = setExternalCliValue;/** Shared recovery action. Updates never replay a failed task or alter its model. */-function createLocalCliUpgradeControl(target, { cli = target.type, chip = false } = {}) {+function createLocalCliUpgradeControl(target, { cli = target.type, chip = false, named = chip, warningVersion } = {}) {const root = document.createElement('div');root.className = 'local-cli-upgrade-control' + (chip ? ' chat-app-nav-row' : '');root.dataset.cli = cli || '';- root.dataset.named = chip ? '1' : '';+ root.dataset.named = named ? '1' : '';+ if (warningVersion !== undefined) {+ root.dataset.warningVersion = warningVersion || '?';+ const warning = document.createElement('span');+ warning.className = 'local-cli-upgrade-warning agent-cli-selection-warning';+ root.appendChild(warning);+ }const button = document.createElement('button');button.type = 'button';button.className = 'btn local-cli-upgrade-btn' + (chip ? ' chat-app-nav-btn' : '');@@ -500,21 +507,47 @@ function createLocalCliUpgradeControl(target, { cli = target.type, chip = falsestatus.className = 'agents-detail-cli-note';status.setAttribute('role', 'status');status.setAttribute('aria-live', 'polite');- root.append(button, status);+ const feedback = document.createElement('span');+ feedback.className = 'local-cli-upgrade-feedback';+ const details = document.createElement('button');+ details.type = 'button';+ details.className = 'settings-link-btn local-cli-upgrade-details';+ details.setAttribute('aria-expanded', 'false');+ const label = document.createElement('span');+ label.className = 'local-cli-upgrade-error-label';+ details.appendChild(label);+ if (typeof window.uiIconHtml === 'function') details.insertAdjacentHTML('beforeend', window.uiIconHtml('chevron-right', 'sidebar-section-chevron'));+ const error = document.createElement('div');+ error.className = 'local-cli-upgrade-error';+ error.id = 'local-cli-upgrade-error-' + (++_cliUpgradeControlId);+ error.tabIndex = 0;+ details.setAttribute('aria-controls', error.id);+ feedback.append(status, details);+ root.append(button, feedback, error);+ details.addEventListener('click', () => {+ if (details.hidden) return;+ details.setAttribute('aria-expanded', String(details.getAttribute('aria-expanded') !== 'true'));+ _renderCliUpgradeState(root);+ });_renderCliUpgradeState(root);button.addEventListener('click', async () => {if (button.disabled) return;root.dataset.state = 'upgrading';+ details.setAttribute('aria-expanded', 'false');+ error.textContent = '';_renderCliUpgradeState(root);try {const result = await window.orkas.invoke('localAgents.upgrade', target);if (result?.ok && result.entry?.available) {- root.dataset.state = 'success';+ root.dataset.state = result.outcome === 'up_to_date' ? 'up_to_date' : 'success';// Discovery refresh is separate from the updater's authoritative result._localCliEntries = null;window.dispatchEvent(new CustomEvent('local-cli-upgraded', { detail: { type: result.type } }));} else {root.dataset.state = 'failure';+ // Main owns redaction. Treat installer output strictly as bounded text,+ // never Markdown/HTML, and never include it in the telemetry above.+ error.textContent = typeof result?.error_detail === 'string' ? result.error_detail.slice(0, 8192) : '';}} catch (_) {root.dataset.state = 'failure';@@ -523,7 +556,7 @@ function createLocalCliUpgradeControl(target, { cli = target.type, chip = falsereturn root;}function _renderCliUpgradeState(root) {- const button = root.querySelector('button');+ const button = root.querySelector('.local-cli-upgrade-btn');const pending = root.dataset.state === 'upgrading';const cli = t('agent_modal.runtime_cli_' + root.dataset.cli);button.textContent = t(pending ? 'cli_upgrade.pending'@@ -531,25 +564,38 @@ function _renderCliUpgradeState(root) {button.disabled = pending;button.classList.toggle('is-loading', pending);button.setAttribute('aria-busy', String(pending));- root.querySelector('[role="status"]').textContent = root.dataset.state === 'success'- ? t('cli_upgrade.success') : root.dataset.state === 'failure' ? t('cli_upgrade.failed') : '';+ root.querySelector('[role="status"]').textContent = root.dataset.state === 'up_to_date'+ ? t('cli_upgrade.up_to_date') : root.dataset.state === 'success'+ ? t('cli_upgrade.success') : root.dataset.state === 'failure' ? t('cli_upgrade.failed') : '';+ const warning = root.querySelector('.local-cli-upgrade-warning');+ if (warning) {+ warning.hidden = !root.dataset.warningVersion;+ warning.textContent = root.dataset.warningVersion+ ? cli + ': ' + getLocalCliUnavailableHint({ error: 'version_too_old', version: root.dataset.warningVersion }) : '';+ }+ const error = root.querySelector('.local-cli-upgrade-error');+ const details = root.querySelector('.local-cli-upgrade-details');+ details.hidden = root.dataset.state !== 'failure' || !error.textContent;+ if (details.hidden) details.setAttribute('aria-expanded', 'false');+ error.hidden = details.hidden || details.getAttribute('aria-expanded') !== 'true';+ root.querySelector('.local-cli-upgrade-feedback').hidden = !root.querySelector('[role="status"]').textContent;+ root.querySelector('.local-cli-upgrade-error-label').textContent = t('cli_upgrade.error_details');}function _renderExternalCliUpgrades(entries) {const slot = document.getElementById('agent-modal-ext-cli-upgrades');if (!slot) return;const oldEntries = entries.filter(entry => entry.error === 'version_too_old');- const warning = document.getElementById('agent-modal-ext-cli-upgrade-warning');- if (warning) {- warning.textContent = oldEntries.map(entry => t('agent_modal.runtime_cli_' + entry.type) + ': ' + getLocalCliUnavailableHint(entry)).join(' · ');- warning.hidden = oldEntries.length === 0;- }// Keep pending and terminal states mounted while discovery refreshes.for (const row of slot.querySelectorAll('[data-cli]')) {- if (!oldEntries.some(entry => entry.type === row.dataset.cli) && !row.dataset.state) row.remove();+ const entry = oldEntries.find(entry => entry.type === row.dataset.cli);+ if (!entry && !row.dataset.state) { row.remove(); continue; }+ if (entry) row.dataset.warningVersion = entry.version || '?';+ else delete row.dataset.warningVersion;+ _renderCliUpgradeState(row);}for (const entry of oldEntries) {if (slot.querySelector('[data-cli="' + entry.type + '"]')) continue;- slot.appendChild(createLocalCliUpgradeControl({ type: entry.type }));+ slot.appendChild(createLocalCliUpgradeControl({ type: entry.type }, { named: true, warningVersion: entry.version || '?' }));}}window.createLocalCliUpgradeControl = createLocalCliUpgradeControl;diff --git a/src/renderer/modules/overlay-manager.js b/src/renderer/modules/overlay-manager.jsindex fa6b4580..600318fa 100644--- a/src/renderer/modules/overlay-manager.js+++ b/src/renderer/modules/overlay-manager.js@@ -62,14 +62,17 @@&& [...element.getClientRects()].some(rect => rect.width > 0 && rect.height > 0);}+ function setWaiting(element, waiting) {+ if (element.classList.contains('ui-overlay-waiting') !== waiting) {+ element.classList.toggle('ui-overlay-waiting', waiting);+ }+ }+function gatePendingLayers() {// Keep a newly opened surface unpainted until main has removed the native// pixels. Opacity does not change its geometry or the detection above.for (const element of candidates) {- const waiting = browserOpen && active.has(element) && !acknowledgedBlocked;- if (element.classList.contains('ui-overlay-waiting') !== waiting) {- element.classList.toggle('ui-overlay-waiting', waiting);- }+ setWaiting(element, browserOpen && active.has(element) && !acknowledgedBlocked);}}@@ -111,8 +114,12 @@function refresh() {const next = new Set();for (const element of candidates) {- if (!element.isConnected || !element.matches(selector)) candidates.delete(element);- else if (displayed(element)) next.add(element);+ if (!element.isConnected || !element.matches(selector)) {+ // Gating only revisits candidates. A page that drops its overlay+ // modifier before acknowledgement must not stay unpainted.+ candidates.delete(element);+ setWaiting(element, false);+ } else if (displayed(element)) next.add(element);}const changed = next.size !== active.size || [...next].some(element => !active.has(element));active = next;diff --git a/src/renderer/modules/project-detail.js b/src/renderer/modules/project-detail.jsindex 77e67aea..b8cdb5f9 100644--- a/src/renderer/modules/project-detail.js+++ b/src/renderer/modules/project-detail.js@@ -2028,8 +2028,9 @@ function _todoCommanderAgent() {return { agent_id: 'commander', name: t('chat.recipient_commander'), enabled: true, ...avatar };}+// An unavailable binding cannot run; an existing owner keeps its stored name.function _todoAssignableAgents(list = []) {- return [_todoCommanderAgent(), ...list.filter((a) => a?.agent_id && a.agent_id !== 'commander')+ return [_todoCommanderAgent(), ...list.filter((a) => a?.agent_id && a.agent_id !== 'commander' && !a.unavailable).slice().sort((a, b) => String(a.name || a.agent_id).localeCompare(String(b.name || b.agent_id)))];}@@ -2490,18 +2491,21 @@ function _renderProjectAgentCards(items) {return sorted.map((a) => {const id = a.agent_id || a.id || '';const enabled = a.enabled !== false;+ const unavailable = a.unavailable === true;const avatarHtml = (typeof renderAvatarHtml === 'function')? renderAvatarHtml(a.icon, a.color, {size: 28, seed: id, extraClass: 'project-agent-row-avatar',}): '';+ // Missing local definitions keep their binding until explicit removal.+ const unavailableAttr = unavailable ? ' data-project-agent-unavailable="removable"' : '';return `<div class="project-agent-row${enabled ? '' : ' is-disabled'}" role="button" tabindex="0"- data-project-agent-id="${escapeHtml(id)}" data-project-agent-name="${escapeHtml(a.name || '')}" data-source="${escapeHtml(a.source || '')}">+ data-project-agent-id="${escapeHtml(id)}" data-project-agent-name="${escapeHtml(a.name || '')}" data-source="${escapeHtml(a.source || '')}"${unavailableAttr}>${avatarHtml}- <span class="project-agent-row-name">${escapeHtml(a.name || t('agents.unnamed'))}</span>+ <span class="project-agent-row-name">${escapeHtml(unavailable ? t('project.bindings.unavailable') : (a.name || t('agents.unnamed')))}</span><div class="project-agent-row-actions">- <button type="button" class="project-agent-row-run agent-card-use" data-project-agent-run title="${useTitle}" aria-label="${useTitle}">+ <button type="button" class="project-agent-row-run agent-card-use" data-project-agent-run title="${useTitle}" aria-label="${useTitle}" ${unavailable ? 'disabled' : ''}>${useLabel}</button><button type="button" class="project-agent-row-remove" data-project-agent-remove title="${removeTitle}" aria-label="${removeTitle}">@@ -2518,15 +2522,16 @@ function _bindProjectAgentCards() {if (!root) return;root.querySelectorAll('.project-agent-row[data-project-agent-id]').forEach((card) => {const id = card.dataset.projectAgentId || '';+ const unavailable = card.dataset.projectAgentUnavailable || '';card.addEventListener('click', async () => {- await _openProjectAgentDetail(id);+ await _openProjectAgentDetail(id, unavailable);});card.addEventListener('keydown', async (e) => {if (e.isComposing || e.keyCode === 229) return;if (e.target?.closest?.('button')) return;if (e.key !== 'Enter' && e.key !== ' ') return;e.preventDefault();- await _openProjectAgentDetail(id);+ await _openProjectAgentDetail(id, unavailable);});card.querySelector('[data-project-agent-run]')?.addEventListener('click', async (e) => {e.stopPropagation();@@ -2539,8 +2544,14 @@ function _bindProjectAgentCards() {});}-async function _openProjectAgentDetail(agentId) {+async function _openProjectAgentDetail(agentId, unavailable = '') {if (!agentId) return;+ if (unavailable) {+ if (typeof uiToast === 'function') {+ uiToast(t('project.bindings.unavailable_remove_hint'));+ }+ return;+ }try {if (typeof openAgentDetail === 'function') {await openAgentDetail(agentId);diff --git a/src/renderer/modules/settings.js b/src/renderer/modules/settings.jsindex 284b8366..be3e2910 100644--- a/src/renderer/modules/settings.js+++ b/src/renderer/modules/settings.js@@ -1552,6 +1552,7 @@ function _settingsShowApiKeyForm(provider, modelId) {saveBtn.className = 'btn btn-primary';saveBtn.textContent = t('settings.save');const save = async () => {+ if (saveBtn.disabled || overlay._onKey !== formOwner) return;const startedAt = Date.now();const resolvedModelId = _settingsResolveApiKeyModelId(provider.id, modelId, modelInput?.value);const label = (labelInput.value || '').trim();@@ -1581,6 +1582,10 @@ function _settingsShowApiKeyForm(provider, modelId) {} catch (_) {addRes = { ok: false, code: 'invoke_failed' };}+ if (overlay._onKey !== formOwner) {+ if (addRes && addRes.ok) await _settingsReload();+ return;+ }if (!addRes || !addRes.ok) {saveBtn.disabled = false;msg.textContent = (addRes && addRes.error) || t('settings.save_failed');@@ -1611,6 +1616,7 @@ function _settingsShowApiKeyForm(provider, modelId) {actions.appendChild(cancelBtn);actions.appendChild(saveBtn);_settingsOpenModal(overlay);+ const formOwner = overlay._onKey;setTimeout(() => (modelInput || labelInput).focus(), 0);}@@ -1752,6 +1758,7 @@ function _settingsShowCustomModelForm(provider) {saveBtn.className = 'btn btn-primary';saveBtn.textContent = t('settings.save');const save = async () => {+ if (saveBtn.disabled || overlay._onKey !== formOwner) return;const startedAt = Date.now();const payload = _settingsBuildCustomModelPayload({label: labelInput.value,@@ -1781,6 +1788,10 @@ function _settingsShowCustomModelForm(provider) {} catch (_) {addRes = { ok: false, code: 'invoke_failed' };}+ if (overlay._onKey !== formOwner) {+ if (addRes && addRes.ok) await _settingsReload();+ return;+ }if (!addRes || !addRes.ok) {saveBtn.disabled = false;msg.textContent = _settingsCustomModelError(addRes && addRes.code, addRes && addRes.error);@@ -1816,6 +1827,7 @@ function _settingsShowCustomModelForm(provider) {actions.appendChild(cancelBtn);actions.appendChild(saveBtn);_settingsOpenModal(overlay);+ const formOwner = overlay._onKey;setTimeout(() => labelInput.focus(), 0);}@@ -1845,7 +1857,8 @@ function _settingsCloseModal(overlay) {let _oauthFlowPollTimer = null;let _oauthFlowId = null;-let _oauthFlowTarget = null;+let _oauthFlowTarget = null;+let _oauthFlowOwner = null;async function _settingsStartOAuthFlow(provider, modelId) {const overlay = document.getElementById('oauth-flow-modal');@@ -1860,6 +1873,8 @@ async function _settingsStartOAuthFlow(provider, modelId) {const aliased = oauthProviderId !== provider.id;_settingsCloseAddModal();+ if (_oauthFlowOwner) _oauthFlowOwner.closeFlow();+ const owner = { closeFlow: null, settling: false };_oauthFlowTarget = { provider, modelId, oauthProviderId };title.textContent = t('settings.oauth.title_prefix', { provider: provider.label || provider.id });const aliasTip = aliased@@ -1869,23 +1884,36 @@ async function _settingsStartOAuthFlow(provider, modelId) {overlay.classList.add('open');const closeFlow = () => {+ if (_oauthFlowOwner !== owner) return;if (_oauthFlowPollTimer) { clearInterval(_oauthFlowPollTimer); _oauthFlowPollTimer = null; }if (_oauthFlowId) {window.orkas.invoke('auth.cancelOAuthFlow', { flowId: _oauthFlowId }).catch(() => {});}_oauthFlowId = null;_oauthFlowTarget = null;+ _oauthFlowOwner = null;overlay.classList.remove('open');document.removeEventListener('keydown', onKey, true);};const onKey = (e) => { if (e.key === 'Escape') closeFlow(); };+ owner.closeFlow = closeFlow;+ _oauthFlowOwner = owner;closeBtn.onclick = closeFlow;document.addEventListener('keydown', onKey, true);_settingsLog.info('oauth start', { provider: oauthProviderId });- let startRes;- try { startRes = await window.orkas.invoke('auth.startOAuth', { provider: oauthProviderId }); }- catch (_) { startRes = { ok: false, code: 'invoke_failed' }; }+ let startRes = null;+ try {+ startRes = await window.orkas.invoke('auth.startOAuth', { provider: oauthProviderId });+ } catch (_) {+ startRes = { ok: false, code: 'invoke_failed' };+ }+ if (_oauthFlowOwner !== owner) {+ if (startRes && startRes.ok && startRes.flowId) {+ window.orkas.invoke('auth.cancelOAuthFlow', { flowId: startRes.flowId }).catch(() => {});+ }+ return;+ }if (!startRes || !startRes.ok) {body.innerHTML = `<div class="oauth-flow-stage error">${escapeHtml((startRes && startRes.error) || t('settings.oauth.start_failed'))}</div>`;_settingsLog.warn('oauth start failed', { provider: oauthProviderId, error: startRes && startRes.error });@@ -1895,8 +1923,9 @@ async function _settingsStartOAuthFlow(provider, modelId) {let lastKind = '';_oauthFlowPollTimer = setInterval(async () => {- if (!_oauthFlowId) return;+ if (_oauthFlowOwner !== owner || !_oauthFlowId) return;const res = await window.orkas.invoke('auth.pollOAuthFlow', { flowId: _oauthFlowId });+ if (_oauthFlowOwner !== owner) return;if (!res || !res.ok) return;const status = res.status || {};if (status.kind === lastKind && status.kind !== 'done' && status.kind !== 'error') return;@@ -1908,6 +1937,9 @@ async function _settingsStartOAuthFlow(provider, modelId) {function _oauthFlowRender(provider, status, closeFlow) {const body = document.getElementById('oauth-flow-body');if (!body) return;+ const owner = _oauthFlowOwner;+ if (!owner || owner.closeFlow !== closeFlow || owner.settling) return;+ const isCurrent = () => _oauthFlowOwner === owner;if (status.kind === 'starting' || status.kind === 'progress') {body.innerHTML = `<div class="oauth-flow-stage">${escapeHtml(status.message || t('settings.oauth.processing'))}</div>`;@@ -1994,6 +2026,9 @@ function _oauthFlowRender(provider, status, closeFlow) {}if (status.kind === 'done') {+ // Finish an admitted write and its failure cleanup with captured inputs;+ // only its view updates belong to this dialog.+ owner.settling = true;const target = _oauthFlowTarget;const profileId = status.profileId || '';body.innerHTML = `<div class="oauth-flow-stage ok">${escapeHtml(t('settings.oauth.success_writing'))}</div>`;@@ -2005,7 +2040,9 @@ function _oauthFlowRender(provider, status, closeFlow) {};const failEntrySave = async (errorCode, message, logContext = {}) => {await removeNewCredential();- body.innerHTML = `<div class="oauth-flow-stage error">${escapeHtml(message || t('settings.add_entry_failed'))}</div>`;+ if (isCurrent()) {+ body.innerHTML = `<div class="oauth-flow-stage error">${escapeHtml(message || t('settings.add_entry_failed'))}</div>`;+ }_settingsLog.warn('oauth entry save failed', {error_code: errorCode,...logContext,@@ -2056,13 +2093,14 @@ function _oauthFlowRender(provider, status, closeFlow) {});return;}- closeFlow();+ if (isCurrent()) closeFlow();await _settingsReload();})();return;}if (status.kind === 'error') {+ owner.settling = true;body.innerHTML = `<div class="oauth-flow-stage error">${escapeHtml(status.error || t('settings.oauth.auth_failed'))}</div>`;if (_oauthFlowPollTimer) { clearInterval(_oauthFlowPollTimer); _oauthFlowPollTimer = null; }return;@@ -2495,6 +2533,7 @@ function _settingsOrkasServiceLabel(service) {const _SEARCH_PROVIDER_OPTIONS = [{ id: 'orkas-api', label: _settingsOrkasServiceLabel('Search'), docs: _ORKAS_API_KEYS_URL },{ id: 'tavily', label: 'Tavily', docs: 'https://tavily.com/' },+ { id: 'deepseek', label: 'DeepSeek', docs: 'https://api-docs.deepseek.com/guides/search/' },{ id: 'serper', label: 'Serper', docs: 'https://serper.dev/' },{ id: 'brave-search', label: 'Brave', docs: 'https://brave.com/search/api/' },{ id: 'baidu-ai-search', label: 'Baidu', docs: 'https://cloud.baidu.com/doc/qianfan-api/s/em82g4tlk' },@@ -2633,7 +2672,7 @@ function _settingsRenderSearchEntries() {// ── Image generation API key section ────────────────────────────────────//// Multi-model providers are flattened into individual choices. The picker-// shows DouBao · Seedream 5.0 Lite / Pro directly, while the main process+// shows DouBao · Seedream 5.0 Flash / Pro directly, while the main process// still persists provider=doubao plus the selected model id.const _IMAGE_PROVIDER_OPTIONS = [diff --git a/src/renderer/style.css b/src/renderer/style.cssindex 261f5823..3010edc7 100644--- a/src/renderer/style.css+++ b/src/renderer/style.css@@ -1800,6 +1800,11 @@ html[dir="rtl"] .project-driver-toggle[aria-pressed="true"] .project-driver-swit.project-todo-attach-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 11px; color: var(--muted); }.project-todo-attach-badge:hover { color: var(--primary); }.project-todo-attach-badge-icon { width: 13px; height: 13px; }+/* Due date beside the other meta facts; red once an open task is past it. */+.project-todo-due { flex: 0 0 auto; font-size: 11px; color: var(--muted); }+.project-todo-due.is-overdue { color: var(--danger); }+.auto-date-picker.todo-editor-date { width: 100%; min-width: 0; }+.todo-editor-date > input { min-height: 38px; }.project-todo-conversation {flex: 0 0 auto;display: inline-flex;@@ -1921,11 +1926,18 @@ html[dir="rtl"] .project-driver-toggle[aria-pressed="true"] .project-driver-swit.todo-editor-select .ai-select-trigger:disabled { cursor: default; color: var(--muted); background: var(--surface-2); }#project-todo-agent.is-readonly .ai-select-trigger:disabled { color: var(--text); background: var(--surface); opacity: 1; }.todos-scroll { flex: 1; min-height: 0; overflow: auto; }+/* Both entry points keep lanes on the page ground and use the same card surface. */.todo-board { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 16px; align-items: stretch; overflow-x: auto; border: 0; border-radius: 0; background: transparent; }.todo-board[hidden], .todo-column-body[hidden], .todo-load-error[hidden] { display: none; }.project-todo-list { min-width: 0; width: 100%; overflow: auto; min-height: 0; }.project-todo-list .todo-board { min-width: 0; width: 100%; box-sizing: border-box; }-.todo-column { min-width: 0; display: flex; flex-direction: column; min-height: 0; padding: 12px; border: 0; border-radius: var(--radius-md); background: var(--surface-2); overflow: hidden; }+/* The board is a flex child of the scrolling list, so a column taller than the+ panel is shrunk to it instead of overflowing, and the list's own scrollbar+ never appears: 15 to-dos left 1379px of cards clipped and unreachable. Each+ column scrolls its own body, which also keeps the status header in place. */+.todo-column { min-width: 0; display: flex; flex-direction: column; min-height: 0; padding: 12px; border: 0; border-radius: var(--radius-md); background: transparent; overflow: hidden; }+/* Long expanded cards consume the body height; keep the disclosure header+ outside that shrinking scroller so content cannot overlap its controls. */.todo-column-head { flex: 0 0 auto; display: flex; align-items: center; min-height: 0; padding: 0 2px; gap: 4px; }.todo-column-head .todo-collapse { padding: 2px 0; }.todo-collapse { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; border: 0; background: transparent; padding: 10px 2px; cursor: pointer; text-align: left; }@@ -1975,13 +1987,14 @@ html[dir="rtl"] .project-driver-toggle[aria-pressed="true"] .project-driver-swit.todo-scope-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }#panel-todos .todo-board { align-items: start; }#panel-todos .todo-column-body { min-height: 224px; }+/* Project board: a collapsed lane narrows to a 40px strip so the open lanes+ get its width. Cards keep the account board's chrome. */#panel-project .todo-board { display: flex; align-items: stretch; }#panel-project .todo-column {flex: 1 1 0;min-width: 190px;padding: 0;border-radius: 0;- background: transparent;}#panel-project .todo-column-body { padding: 8px 0 16px; }#panel-project .todo-column-empty {@@ -2066,7 +2079,10 @@ html[dir="rtl"] .project-driver-toggle[aria-pressed="true"] .project-driver-swit.todo-driver-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }.todo-driver-bar-head { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding-inline-end: 12px; border-inline-end: 1px solid var(--border); }.todo-driver-bar-head .project-driver-hint { margin-inline-start: 0; }+/* Keep the track's focus-ring inset inside the row, beside its fixed controls. */.todo-driver-bar > .todo-scroll-track { margin-inline-end: 0; }+/* Responsibility filtering stays reachable while the scope track scrolls. */+.todo-driver-bar > .project-todo-shared-filter { flex: 0 0 auto; }.todo-driver-bar-label { color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }.todo-scope-driver-toggle { flex: 0 0 auto; }.todo-driver-bar .project-driver-toggle.is-switch {@@ -2084,6 +2100,8 @@ html[dir="rtl"] .project-driver-toggle[aria-pressed="true"] .project-driver-swit.todo-driver-scope-icon { flex: 0 0 auto; width: 13px; height: 13px; }.todo-load-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; color: var(--warn-text); font-size: 12px; }.todo-editor-dialog {+ display: flex;+ flex-direction: column;width: min(560px, calc(100vw - 40px));min-width: 0;max-width: 560px;@@ -2091,8 +2109,9 @@ html[dir="rtl"] .project-driver-toggle[aria-pressed="true"] .project-driver-switborder-radius: 18px;box-shadow: 0 24px 70px rgba(15, 23, 42, .2);}-.todo-editor-header { align-items: center; margin-bottom: 20px; }-.todo-editor-dialog .project-todo-add { display: flex; flex-direction: column; gap: 18px; margin: 0; }+.todo-editor-header { flex-shrink: 0; align-items: center; margin-bottom: 20px; }+/* Let the dialog size content, fields and actions within one scroll range. */+.todo-editor-dialog .project-todo-add { display: contents; }.todo-editor-dialog .project-todo-add[hidden] { display: none; }.todo-editor-field { display: flex; flex-direction: column; gap: 7px; margin: 0; font-size: 12.5px; font-weight: 500; color: var(--text-2); }.todo-editor-field textarea {@@ -2107,6 +2126,11 @@ html[dir="rtl"] .project-driver-toggle[aria-pressed="true"] .project-driver-switfont-weight: 400;outline: none;}+/* Preserve six lines plus the label/composer controls when the whole dialog+ must scroll in a short window. */+.todo-editor-content-field { min-height: 224px; flex-shrink: 1; }+.todo-editor-content-field .todo-editor-composer { min-height: 0; }+.todo-editor-field-grid, .todo-editor-actions { flex-shrink: 0; }.todo-editor-field > textarea { min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.55; }.todo-editor-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }.todo-editor-composer {@@ -2124,10 +2148,13 @@ html[dir="rtl"] .project-driver-toggle[aria-pressed="true"] .project-driver-swit.todo-editor-composer.drag-over { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }.todo-editor-composer .chat-input-overlay { position: static; transform: none; align-items: flex-start; pointer-events: none; }.todo-editor-composer .chat-input-overlay > .chat-attachments { max-width: 100%; pointer-events: auto; }+/* Flex layout gives long content the space left by the actual fields and+ actions. Six lines remain the minimum; short windows scroll the dialog. */.todo-editor-composer textarea {field-sizing: content;min-height: 136px;- max-height: max(136px, calc(85vh - 480px));+ max-height: none;+ flex: 1 1 auto;padding: 2px;border: 0;border-radius: 0;@@ -2142,7 +2169,8 @@ html[dir="rtl"] .project-driver-toggle[aria-pressed="true"] .project-driver-swit.project-todo-attach-btn { font-size: 20px; line-height: 1; font-weight: 300; }.project-todo-attachments { margin: 0; }.todo-editor-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }-.todo-editor-actions { margin-top: 2px; padding-top: 18px; border-top: 1px solid var(--border); }+.todo-editor-dialog .todo-editor-field-grid { margin-top: 18px; }+.todo-editor-dialog .todo-editor-actions { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--border); }.todo-board button:focus-visible, .todo-page-actions button:focus-visible, .todo-scope-actions button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }@media (max-width: 620px) {@@ -7696,7 +7724,7 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }display: block;}.chat-file-viewer-add-library,-.chat-file-viewer-save-app,+:is(.chat-file-viewer-save-app, .chat-file-viewer-save-new-app),.chat-file-viewer-share,.chat-file-viewer-reveal {height: 28px;@@ -7713,7 +7741,7 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }justify-content: center;}.chat-file-viewer-add-library,-.chat-file-viewer-save-app,+:is(.chat-file-viewer-save-app, .chat-file-viewer-save-new-app),.chat-file-viewer-share {width: 28px;padding: 0;@@ -7726,7 +7754,7 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }padding: 0;}.chat-file-viewer-add-library:disabled,-.chat-file-viewer-save-app:disabled,+:is(.chat-file-viewer-save-app, .chat-file-viewer-save-new-app):disabled,.chat-file-viewer-share:disabled {cursor: default;opacity: 0.72;@@ -7734,9 +7762,9 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }.chat-file-viewer-reveal:hover,.chat-file-viewer-share:hover:not(:disabled),.chat-file-viewer-add-library:hover:not(:disabled),-.chat-file-viewer-save-app:hover:not(:disabled) { background: #e2e8f0; color: #0f172a; }+:is(.chat-file-viewer-save-app, .chat-file-viewer-save-new-app):hover:not(:disabled) { background: #e2e8f0; color: #0f172a; }.chat-file-viewer-add-library svg,-.chat-file-viewer-save-app svg,+:is(.chat-file-viewer-save-app, .chat-file-viewer-save-new-app) svg,.chat-file-viewer-share svg,.chat-file-viewer-reveal svg { display: block; }.chat-file-viewer-actions > button[data-tooltip] {@@ -8883,13 +8911,15 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }.app-publication-header .header-actions { display:flex; flex:none; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:8px; max-width:100%; margin-inline-start:auto; }.app-publication-header .app-publication-back { flex:none; padding:4px 10px; line-height:1.2; }.app-publication-header .app-publication-update { margin:0; }+.app-publication-refresh:disabled { background:var(--surface-2); color:var(--muted); border-color:var(--border-strong); opacity:.65; cursor:not-allowed; }+.app-publication-refresh.is-loading:disabled { background:var(--primary-soft); color:var(--primary-text); border-color:rgba(91,87,214,.18); opacity:1; cursor:wait; }.app-publication-content { flex:1; min-height:0; overflow:auto; padding:24px max(24px,calc((100% - 864px)/2)); box-sizing:border-box; }.app-publication-notices { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }.app-publication-notices > .app-publication-warning,.app-publication-notices > .app-publication-status { margin:0; }.app-publication-notices:not(:has(> :not(:empty))) { display:none; }.app-publication-warning-detail { display:block; color:var(--muted); overflow-wrap:break-word; }.app-publication-page .app-publication-info { gap:16px; font-size:13px; line-height:1.5; }-.app-publication-overview,.app-publication-stats-card,.app-publication-data { min-width:0; padding:16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); }+.app-publication-overview,.app-publication-stats-card,.app-publication-storage,.app-publication-data { min-width:0; padding:16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); }.app-publication-content h3 { margin:0; font-size:14px; font-weight:600; line-height:1.5; color:var(--text); }.app-publication-page .app-publication-links { gap:8px; padding:0 0 16px; border:0; border-radius:0; background:transparent; }.app-publication-address { display:flex; flex:1; flex-direction:column; gap:4px; min-width:0; }@@ -8912,13 +8942,21 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }.app-data-tools .header-actions { display:flex; flex:none; gap:8px; margin-inline-start:auto; }.app-data-more { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:28px; padding:4px 6px; }.app-data-more-icon { width:16px; height:16px; }-.app-data-usage { margin-inline-end:auto; font-size:12px; }-.app-data-workspace { min-width:0; border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }-.app-data-table-tabs { display:flex; gap:12px; overflow-x:auto; padding:0 12px; border-bottom:1px solid var(--border); }+.app-storage-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }+.app-storage-total { color:var(--text-2); font-size:12px; font-variant-numeric:tabular-nums; }+.app-data-usage { display:flex; flex-wrap:wrap; gap:8px 24px; margin-top:12px; color:var(--text-2); font-size:12px; }+.app-data-usage > span { display:inline-flex; align-items:center; gap:10px; }+.app-storage-value { color:var(--text); font-weight:500; font-variant-numeric:tabular-nums; }+.app-data-record-heading { flex-direction:column; align-items:flex-start; gap:4px; }+.app-data-description { margin:0; color:var(--text-2); font-size:12px; }+.app-data-workspace { min-width:0; overflow:hidden; }+.app-data-table-bar { display:flex; align-items:center; gap:16px; border-bottom:1px solid var(--border); }+.app-data-table-label { flex:none; color:var(--muted); font-size:12px; }+.app-data-table-tabs { display:flex; gap:12px; min-width:0; overflow-x:auto; }.app-data-table-tabs:empty { display:none; }.app-data-table-tabs .btn { flex:none; padding:10px 4px; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:var(--text-2); }.app-data-table-tabs .btn.is-active { border-bottom-color:var(--primary); color:var(--primary-text); font-weight:600; }-.app-data-range { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px; border-bottom:1px solid var(--border); }+.app-data-range { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 0; border-bottom:1px solid var(--border); }.app-data-tools > .ai-select,.app-data-range > .ai-select { min-width:min(180px,100%); max-width:100%; }.app-data-range > button { max-width:100%; }.app-data-edit-actions { display:flex; gap:6px; margin-inline-start:auto; }@@ -8929,6 +8967,9 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }.app-publication-data[aria-busy="true"] .app-data-status:not(:empty) { --orkas-ui-layer:chrome; position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center; text-align:center; background:color-mix(in srgb,var(--surface) 80%,transparent); }.app-data-records { min-height:80px; max-height:480px; overflow:auto; }.app-data-records:not(:has(.app-data-row)) { display:grid; place-items:center; min-height:96px; }+.app-data-empty { padding:24px 12px; text-align:center; }+.app-data-empty-title { color:var(--text-2); }+.app-data-empty-hint { margin-top:4px; color:var(--muted); font-size:12px; }.app-data-grid { width:100%; border-collapse:separate; border-spacing:0; color:var(--text); font-size:13px; }.app-data-grid th { --orkas-ui-layer:chrome; position:sticky; top:0; z-index:1; padding:10px 12px; background:var(--bg); font-weight:600; text-align:start; white-space:nowrap; }.app-data-grid th,.app-data-grid td { vertical-align:middle; border-bottom:1px solid var(--border); border-inline-end:1px solid var(--border); }@@ -8936,12 +8977,13 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }.app-data-grid tbody tr:last-child td { border-bottom:0; }.app-data-cell { min-width:180px; padding:4px; }.app-data-cell.is-number { min-width:100px; }-.app-data-cell.is-number input { text-align:end; font-variant-numeric:tabular-nums; }+.app-data-cell.is-number input,.app-data-cell.is-number .app-data-cell-value { text-align:end; font-variant-numeric:tabular-nums; }.app-data-cell.is-boolean { min-width:72px; text-align:center; }.app-data-cell.is-multiline { min-width:260px; }.app-data-cell.is-readonly { color:var(--muted); }.app-data-cell.is-dirty { background:var(--primary-soft); box-shadow:inset 2px 0 var(--primary); }-.app-data-grid .app-data-cell-input { display:block; width:100%; min-width:0; margin:0; padding:6px 8px; border:1px solid transparent; border-radius:var(--radius-sm); background:transparent; color:inherit; font:inherit; line-height:1.5; box-sizing:border-box; }+.app-data-grid .app-data-cell-input,.app-data-grid .app-data-cell-value { display:block; width:100%; min-width:0; margin:0; padding:6px 8px; border:1px solid transparent; border-radius:var(--radius-sm); background:transparent; color:inherit; font:inherit; line-height:1.5; box-sizing:border-box; }+.app-data-grid .app-data-cell-value { white-space:pre-wrap; overflow-wrap:anywhere; max-height:240px; overflow:auto; }.app-data-grid textarea.app-data-cell-input { resize:vertical; min-height:52px; max-height:240px; }.app-data-grid .app-data-cell-input:not([readonly]):not(:disabled):hover { border-color:var(--border-strong); }.app-data-grid .app-data-cell-input:focus-visible { outline:2px solid var(--primary); outline-offset:-2px; background:var(--surface); }@@ -8956,11 +8998,10 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }.app-publication-content { padding:16px; }.app-publication-page .app-publication-links { flex-wrap:wrap; }.app-publication-address { flex-basis:100%; }- .app-publication-overview,.app-publication-stats-card,.app-publication-data { padding:14px; }+ .app-publication-overview,.app-publication-stats-card,.app-publication-storage,.app-publication-data { padding:14px; }.app-publication-page .app-publication-dates { grid-template-columns:minmax(0,1fr); gap:12px; }.app-data-tools { gap:6px; }.app-data-tools h3 { flex:1; }- .app-data-usage { flex-basis:100%; order:2; }}.app-card {@@ -9527,139 +9568,6 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }.chat-msg-actions:empty {display: none;}-.modal-overlay.chat-share-overlay {- --orkas-ui-layer: overlay;- z-index: 1010;- background: rgba(15, 23, 42, 0.38);- backdrop-filter: blur(3px);-}-.chat-share-modal {- width: min(500px, calc(100vw - 32px));- max-width: 500px;- min-width: 0;- padding: 24px;- border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);- border-radius: 16px;- box-shadow: 0 20px 56px rgba(15, 23, 42, 0.18);-}-.chat-share-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }-.chat-share-head h2 { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }-.chat-share-close { margin-left: auto; }-.chat-share-overlay [hidden] { display: none !important; }-.chat-share-form { display: grid; gap: 14px; }-.chat-share-title-row { display: grid; gap: 7px; margin: 0; }-.chat-share-title-row > span { color: var(--text); font-size: 13px; font-weight: 600; }-.chat-share-title-input {- width: 100%;- min-height: 42px;- padding: 9px 12px;- border-color: var(--border-strong);- border-radius: 9px;- background: var(--surface);- font-size: 14px;-}-.chat-share-title-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent); }-.chat-share-summary {- display: grid;- grid-template-columns: repeat(2, minmax(0, 1fr));- overflow: hidden;- border: 1px solid var(--border);- border-radius: 10px;- background: var(--surface);-}-.chat-share-summary > div {- display: grid;- gap: 4px;- min-width: 0;- padding: 11px 13px;-}-.chat-share-summary > div + div { border-left: 1px solid var(--border); }-.chat-share-summary strong { color: var(--muted); font-size: 11px; font-weight: 500; }-.chat-share-summary span { color: var(--text); font-size: 13px; font-weight: 500; text-align: left; }-.chat-share-artifacts {- min-width: 0;- margin: 0;- padding: 12px;- border: 1px solid var(--border);- border-radius: 10px;-}-.chat-share-artifacts legend { padding: 0 4px; color: var(--text); font-size: 13px; font-weight: 600; }-.chat-share-artifacts > p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }-.chat-share-artifact-list { display: grid; gap: 2px; max-height: min(224px, 32vh); overflow: auto; }-.chat-share-artifact-row {- display: grid;- grid-template-columns: 18px 20px minmax(0, 1fr);- align-items: center;- gap: 8px;- min-width: 0;- padding: 7px 6px;- border-radius: 7px;- cursor: pointer;-}-.chat-share-artifact-row:hover { background: var(--surface-2); }-.chat-share-artifact-row:has(input:checked) { background: color-mix(in srgb, var(--primary) 9%, transparent); }-.chat-share-artifact-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }-.chat-share-artifact-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }-.chat-share-artifact-copy { display: grid; min-width: 0; }-.chat-share-artifact-copy strong,-.chat-share-artifact-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }-.chat-share-artifact-copy strong { color: var(--text); font-size: 13px; font-weight: 500; }-.chat-share-artifact-copy small { color: var(--muted); font-size: 11px; }-.chat-share-notice { padding: 0 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }-.chat-share-sdk-notice {- display: flex;- align-items: flex-start;- gap: 8px;- margin: 14px 0;- padding: 10px 12px;- color: var(--text);- background: var(--surface-2);- border-radius: 8px;-}-.chat-share-sdk-notice > .ui-icon { flex: 0 0 auto; margin-top: 2px; color: var(--primary); }-.chat-share-error { padding: 10px 12px; color: var(--danger); background: rgba(220, 38, 38, 0.08); border-radius: 8px; font-size: 13px; }-.chat-share-actions .btn[data-share-submit] {- min-width: 92px;-}-[data-share-submit][disabled] { cursor: default; }-.chat-share-actions { margin-top: 18px; }-.chat-share-actions .btn { min-width: 74px; }-.chat-share-success { padding: 4px 0; }-.chat-share-link-row {- display: grid;- grid-template-columns: minmax(0, 1fr) auto;- align-items: center;- gap: 10px;-}-.chat-share-link-row code {- display: block;- min-width: 0;- padding: 11px 13px;- border: 1px solid var(--border);- border-radius: 9px;- color: var(--text);- background: var(--surface-2);- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;- font-size: 13px;- line-height: 1.5;- overflow-wrap: anywhere;- white-space: normal;-}-.chat-share-link-row .btn {- align-self: center;- min-width: 60px;- height: 36px;- padding: 0 13px;- border-radius: 8px;-}-@media (max-width: 560px) {- .chat-share-modal { padding: 20px; }- .chat-share-artifact-list { max-height: min(192px, 30vh); }- .chat-share-summary { grid-template-columns: 1fr; }- .chat-share-summary > div + div { border-top: 1px solid var(--border); border-left: 0; }- .chat-share-link-row { grid-template-columns: 1fr; }- .chat-share-link-row .btn { justify-self: end; }-}.chat-bubble-actions {position: relative;display: inline-flex;@@ -11556,6 +11464,19 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }.skill-tree-node .ctx-kb-chip.is-failed:hover {background: rgba(220, 38, 38, 0.18);}+/* Image failures need a readable label, not only an unexplained exclamation. */+.skill-tree-node .ctx-kb-chip.is-image-failed {+ width: auto;+ height: auto;+ min-height: 20px;+ padding: 2px 7px;+ border: 0;+ border-radius: 99px;+ font-family: inherit;+ font-size: 10.5px;+ font-weight: 600;+ line-height: 1.4;+}.ctx-kb-spinner {width: 10px;height: 10px;@@ -16976,8 +16897,7 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }min-width: 160px;font-family: inherit;}-#auto-date-input,-#auto-end-date-input {+.auto-date-picker > input {width: 100%;min-width: 0;padding: 8px 38px 8px 12px;@@ -16990,12 +16910,9 @@ body.is-task-side-panel-resizing * { cursor: col-resize !important; }box-sizing: border-box;transition: border-color 0.15s, box-shadow 0.15s;}-#auto-date-input:hover,-#auto-end-date-input:hover { border-color: var(--border-strong, #cbd5e1); }-#auto-date-input:focus,-#auto-end-date-input:focus,-.auto-date-picker.open #auto-date-input,-.auto-date-picker.open #auto-end-date-input {+.auto-date-picker > input:hover { border-color: var(--border-strong, #cbd5e1); }+.auto-date-picker > input:focus,+.auto-date-picker.open > input {outline: none;border-color: var(--primary);box-shadow: 0 0 0 3px rgba(91, 87, 214, 0.12);@@ -18724,19 +18641,59 @@ html[dir="rtl"] .sidebar-search-label { text-align: start; }align-items: center;gap: 8px;margin-top: 0;+ min-width: 0;+ max-width: 100%;+}+.local-cli-upgrade-control .agents-detail-cli-note { margin: 0; overflow-wrap: anywhere; }+.local-cli-upgrade-warning { flex: 1 1 200px; overflow-wrap: anywhere; }+.local-cli-upgrade-feedback {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ max-width: 100%;+ white-space: nowrap;+}+.local-cli-upgrade-details {+ padding: 0;+ gap: 4px;+ font-size: 12px;+}+.local-cli-upgrade-details[aria-expanded="true"] .sidebar-section-chevron { transform: rotate(90deg); }+.local-cli-upgrade-details[hidden],+.local-cli-upgrade-feedback[hidden],+.local-cli-upgrade-error[hidden] { display: none; }+.local-cli-upgrade-error {+ flex: 1 1 100%;+ min-width: 0;+ max-width: 100%;+ max-height: 144px;+ box-sizing: border-box;+ overflow: auto;+ white-space: pre-wrap;+ overflow-wrap: anywhere;+ margin: 0;+ padding: 8px 12px;+ border: 1px solid var(--border);+ border-radius: var(--radius-sm);+ background: var(--surface-2);+ color: var(--text-2);+ font-family: inherit;+ font-size: 12px;+ line-height: 1.5;}-.local-cli-upgrade-control .agents-detail-cli-note { margin: 0; }.local-cli-upgrade-btn:not(.chat-app-nav-btn) {- height: 100%;+ height: auto;min-height: 34px;padding: 8px 12px;line-height: 16px;- white-space: nowrap;+ max-width: 100%;+ white-space: normal;+ overflow-wrap: anywhere;}.agent-cli-select-row > .ai-select .ai-select-trigger,.agents-detail-runtime-select .ai-select-trigger { line-height: 16px; }-#agent-modal-ext-cli-upgrades { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }-#agent-modal-ext-cli-upgrade-warning:not([hidden]) { margin-top: 8px; }+#agent-modal-ext-cli-upgrades { display: flex; flex-direction: column; gap: 8px; min-width: 0; }+#agent-modal-ext-cli-upgrades:not(:empty) { margin-top: 8px; }.local-cli-upgrade-control.chat-app-nav-row { margin-top: 14px; }.local-cli-upgrade-control.chat-app-nav-row .agents-detail-cli-note { align-self: center; }@@ -18949,6 +18906,10 @@ html[dir="rtl"] .sidebar-search-label { text-align: start; }width: 3px;background: var(--primary);}+.context-menu-item.is-danger { color: var(--danger); }+.context-menu-item.is-danger:hover,+.context-menu-item.is-danger.is-active,+.context-menu-item.is-danger:focus-visible { background: rgba(220, 38, 38, 0.08); }.app-card-header { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 32px; }.app-card-title-block { flex: 1; min-width: 0; }.settings-header {diff --git a/test/e2e/cli_upgrade_e2e_recovery.spec.ts b/test/e2e/cli_upgrade_e2e_recovery.spec.tsindex e49e3ca1..0f12b198 100644--- a/test/e2e/cli_upgrade_e2e_recovery.spec.ts+++ b/test/e2e/cli_upgrade_e2e_recovery.spec.ts@@ -1,6 +1,21 @@import { chmodSync, mkdirSync, readFileSync, symlinkSync, writeFileSync } from 'node:fs';import path from 'node:path';+import type { Locator } from '@playwright/test';import { openSidebarEntry, expect, test } from './fixtures/orkas';+declare const currentCid: string;++async function expectInlineErrorDetails(control: Locator) {+ const toggle = control.locator('.local-cli-upgrade-details');+ await expect(toggle).toHaveAttribute('aria-expanded', 'false');+ await expect(toggle).toHaveAttribute('aria-controls', (await control.locator('.local-cli-upgrade-error').getAttribute('id'))!);+ const status = (await control.locator('[role="status"]').boundingBox())!;+ const label = (await control.locator('.local-cli-upgrade-error-label').boundingBox())!;+ const arrow = (await control.locator('.sidebar-section-chevron').boundingBox())!;+ expect(label.x).toBeGreaterThanOrEqual(status.x + status.width);+ expect(label.x - status.x - status.width).toBeLessThanOrEqual(20);+ expect(Math.abs(label.y + label.height / 2 - status.y - status.height / 2)).toBeLessThanOrEqual(2);+ expect(arrow.x).toBeGreaterThanOrEqual(label.x + label.width);+}// Real Electron/IPC/discovery/updater flow with an isolated native installer.// No host package manager, real account or paid model is used.@@ -12,6 +27,7 @@ test('offers CLI upgrade on creation, details and execution failures', async ({const modeFile = path.join(app.root, 'upgrade-mode');const updatesFile = path.join(app.root, 'upgrade-calls');const bin = path.join(app.root, '.codex/packages/standalone/current/bin/codex');+ const failureText = 'Installer could not download the update\n' + 'LongDiagnostic'.repeat(160) + '\nRetry later';mkdirSync(path.dirname(bin), { recursive: true });writeFileSync(versionFile, '0.144.0'); writeFileSync(modeFile, 'success');const source = `#!${process.env.ORKAS_TEST_NODE || process.execPath}\n@@ -21,7 +37,9 @@ if (process.argv.includes('--version')) console.log(fs.readFileSync(versionFile,else if (process.argv.includes('--help')) console.log('Commands:\\n update Upgrade Codex');else if (process.argv.includes('update')) {fs.appendFileSync(${JSON.stringify(updatesFile)}, 'update\\n');- setTimeout(() => { if (fs.readFileSync(modeFile, 'utf8') === 'failure') process.exit(7);+ setTimeout(() => { if (fs.readFileSync(modeFile, 'utf8') === 'failure') {+ process.stderr.write(${JSON.stringify(failureText)}); process.exitCode = 7; return;+ }fs.writeFileSync(versionFile, '0.159.3'); }, 2000);} else {const child = cp.spawn(${JSON.stringify(app.fakeCodexPath)}, process.argv.slice(2), { stdio: 'inherit', env: process.env });@@ -35,12 +53,12 @@ else if (process.argv.includes('update')) {await page.locator('#agents-connect-cli-btn').click();const creation = page.locator('#agent-modal-ext-cli-upgrades [data-cli="codex"]');await expect(creation.locator('.local-cli-upgrade-btn')).toBeVisible();- await expect(creation.locator('button')).toHaveText('升级 CLI');- await expect(page.locator('#agent-modal-ext-cli-upgrade-warning')).toContainText('0.144.0');+ await expect(creation.locator('.local-cli-upgrade-btn')).toHaveText('升级 Codex CLI');+ await expect(creation.locator('.local-cli-upgrade-warning')).toContainText('0.144.0');await page.screenshot({ path: testInfo.outputPath('01-create-upgrade.png') });- await creation.locator('button').click();- await expect(creation.locator('button')).toHaveText('升级中…');- await expect(creation.locator('button')).toBeDisabled();+ await creation.locator('.local-cli-upgrade-btn').click();+ await expect(creation.locator('.local-cli-upgrade-btn')).toHaveText('升级中…');+ await expect(creation.locator('.local-cli-upgrade-btn')).toBeDisabled();await expect(creation.locator('[role="status"]')).toBeEmpty();await page.screenshot({ path: testInfo.outputPath('02-upgrade-progress.png') });await expect(creation.locator('[role="status"]')).toHaveText('升级成功', { timeout: 30_000 });@@ -58,12 +76,21 @@ else if (process.argv.includes('update')) {expect(created).toMatchObject({ ok: true, agent: { agent_id: expect.any(String) } });await page.evaluate(async id => { await (window as any).openAgentDetail(id); }, created.agent.agent_id);const detail = page.locator('#agents-detail-runtime .local-cli-upgrade-control');- await expect(detail.locator('button')).toBeVisible();+ await expect(detail.locator('.local-cli-upgrade-btn')).toBeVisible();await expect(page.locator('#agents-detail-cli-settings [data-role="model"]')).toBeVisible({ timeout: 30_000 });await page.screenshot({ path: testInfo.outputPath('04-details-upgrade.png') });writeFileSync(modeFile, 'failure');- await detail.locator('button').click();+ await detail.locator('.local-cli-upgrade-btn').click();await expect(detail.locator('[role="status"]')).toContainText('升级失败', { timeout: 30_000 });+ await expect(detail.locator('.local-cli-upgrade-error')).toBeHidden();+ await expect(detail.locator('.local-cli-upgrade-details')).toHaveText('错误详情');+ await expectInlineErrorDetails(detail);+ await page.screenshot({ path: testInfo.outputPath('05-details-collapsed.png') });+ await detail.locator('.local-cli-upgrade-details').focus(); await page.keyboard.press('Enter');+ await expect(detail.locator('.local-cli-upgrade-details')).toHaveAttribute('aria-expanded', 'true');+ await expect(detail.locator('.local-cli-upgrade-error')).toBeVisible();+ await expect(detail.locator('.local-cli-upgrade-error')).toContainText('Installer could not download the update');+ expect(await detail.evaluate(el => el.scrollWidth <= el.clientWidth + 1)).toBe(true);await page.screenshot({ path: testInfo.outputPath('05-upgrade-failure.png') });writeFileSync(versionFile, '0.144.0'); writeFileSync(modeFile, 'success');await app.invoke('localAgents.detect', { type: 'codex' });@@ -71,28 +98,61 @@ else if (process.argv.includes('update')) {await page.locator('#new-chat-input').fill('@CodexUpgradeDemo 请检查 CLI 版本');await page.locator('#new-chat-send-btn').click();const recovery = page.locator('#chat-history .chat-message[data-failure-code="version_too_old"] .chat-bubble .chat-app-nav-row');- await expect(recovery.locator('button')).toHaveText('升级 Codex CLI', { timeout: 30_000 });+ await expect(recovery.locator('.local-cli-upgrade-btn')).toHaveText('升级 Codex CLI', { timeout: 30_000 });await page.screenshot({ path: testInfo.outputPath('06-execution-upgrade.png') });- await recovery.locator('button').click();- await expect(recovery.locator('button')).toHaveText('升级中…');+ await recovery.locator('.local-cli-upgrade-btn').click();+ await expect(recovery.locator('.local-cli-upgrade-btn')).toHaveText('升级中…');await expect(recovery.locator('[role="status"]')).toBeEmpty();await page.screenshot({ path: testInfo.outputPath('07-execution-progress.png') });+ // Reconcile durable history while maintenance still owns the visible action.+ await page.evaluate(async () => {+ await (window as any).loadConversationHistory(currentCid, { preserveScroll: true });+ });await expect(recovery.locator('[role="status"]')).toHaveText('升级成功', { timeout: 30_000 });+ await page.evaluate(async () => {+ await (window as any).loadConversationHistory(currentCid, { preserveScroll: true });+ });+ await expect(recovery.locator('[role="status"]')).toHaveText('升级成功');await page.screenshot({ path: testInfo.outputPath('08-execution-success.png') });+ await recovery.locator('.local-cli-upgrade-btn').click();+ await expect(recovery.locator('[role="status"]')).toHaveText('当前已是最新版', { timeout: 30_000 });+ await page.evaluate(async () => {+ await (window as any).loadConversationHistory(currentCid, { preserveScroll: true });+ });+ await expect(recovery.locator('[role="status"]')).toHaveText('当前已是最新版');+ await page.screenshot({ path: testInfo.outputPath('08b-execution-up-to-date.png') });+ writeFileSync(modeFile, 'failure');+ await recovery.locator('.local-cli-upgrade-btn').click();+ await expect(recovery.locator('[role="status"]')).toHaveText('升级失败');+ await expect(recovery.locator('.local-cli-upgrade-error')).toBeHidden();+ await expect(recovery.locator('.local-cli-upgrade-details')).toHaveText('错误详情');+ await expectInlineErrorDetails(recovery);+ await page.screenshot({ path: testInfo.outputPath('08c-execution-collapsed.png') });+ await recovery.locator('.local-cli-upgrade-details').click();+ await expect(recovery.locator('.local-cli-upgrade-error')).toBeVisible();+ await expect(recovery.locator('.local-cli-upgrade-error')).toContainText('Installer could not download the update');+ await page.evaluate(async () => {+ await (window as any).loadConversationHistory(currentCid, { preserveScroll: true });+ });+ await expect(recovery.locator('.local-cli-upgrade-error')).toContainText('Retry later');+ await expect(recovery.locator('.local-cli-upgrade-error')).toBeVisible();+ expect(await recovery.evaluate(el => el.scrollWidth <= el.clientWidth + 1)).toBe(true);+ await page.screenshot({ path: testInfo.outputPath('08c-execution-error.png') });// Upgrade is maintenance only: no task replay/model request follows it.expect(app.readCliState().invocations).toHaveLength(0);- expect(readFileSync(updatesFile, 'utf8').trim().split('\n')).toHaveLength(3);+ expect(readFileSync(updatesFile, 'utf8').trim().split('\n')).toHaveLength(5);// Source/custom installations keep their owner instead of installing a second CLI.const customBin = path.join(app.root, 'custom-codex');writeFileSync(customBin, source); chmodSync(customBin, 0o755);await app.electronApp!.evaluate((_electron, file) => { process.env.ORKAS_CODEX_PATH = file; }, customBin);await app.invoke('localAgents.detect', { type: 'codex' });await page.evaluate(async id => { await (window as any).openAgentDetail(id); }, created.agent.agent_id);- await detail.locator('button').click();+ await detail.locator('.local-cli-upgrade-btn').click();await expect(detail.locator('[role="status"]')).toHaveText('升级失败');- await expect(detail.locator('button')).toHaveText('升级 CLI');+ await expect(detail.locator('.local-cli-upgrade-details')).toBeHidden();+ await expect(detail.locator('.local-cli-upgrade-btn')).toHaveText('升级 CLI');await expect(page.getByText('查看升级说明', { exact: true })).toHaveCount(0);- expect(readFileSync(updatesFile, 'utf8').trim().split('\n')).toHaveLength(3);+ expect(readFileSync(updatesFile, 'utf8').trim().split('\n')).toHaveLength(5);});test('adapts supported CLI defaults and keeps unavailable selections out of upgrade recovery', async ({ cliOrkas }, testInfo) => {@@ -199,9 +259,9 @@ else if (process.argv.slice(2).join(' ') === 'update') {await (window as any).setLang('zh'); await (window as any).openAgentDetail(id);}, created.agent.agent_id);const control = page.locator('#agents-detail-runtime .local-cli-upgrade-control');- await expect(control.locator('button')).toHaveText('升级 CLI');- await control.locator('button').click();- await expect(control.locator('button')).toHaveText('升级中…');+ await expect(control.locator('.local-cli-upgrade-btn')).toHaveText('升级 CLI');+ await control.locator('.local-cli-upgrade-btn').click();+ await expect(control.locator('.local-cli-upgrade-btn')).toHaveText('升级中…');await expect(control.locator('[role="status"]')).toHaveText('升级成功', { timeout: 30_000 });await expect(page.locator('#agents-detail-runtime .ai-select-trigger')).toContainText('2.1.113');expect(readFileSync(calls, 'utf8')).toBe('update\n');@@ -226,7 +286,7 @@ else if (process.argv.slice(2).join(' ') === 'update') {await page.evaluate(async () => { await (window as any).setLang('en'); });await expect.poll(() => page.evaluate(() => (window as any).__upgradeDiscoveries.length)).toBe(3);await expect(control.locator('[role="status"]')).toHaveText('Upgrade successful');- await expect(control.locator('button')).toHaveText('Upgrade CLI');+ await expect(control.locator('.local-cli-upgrade-btn')).toHaveText('Upgrade CLI');await page.screenshot({ path: testInfo.outputPath('14-pending-feedback-en-narrow.png') });await page.evaluate(async () => {const w = window as any;@@ -239,7 +299,7 @@ else if (process.argv.slice(2).join(' ') === 'update') {});await expect(page.locator('#agents-detail-runtime .ai-select-trigger')).toContainText('2.1.113');await expect(control.locator('[role="status"]')).toHaveText('Upgrade successful');- await expect(control.locator('button')).toBeEnabled();+ await expect(control.locator('.local-cli-upgrade-btn')).toBeEnabled();expect(readFileSync(calls, 'utf8')).toBe('update\n');expect(app.readCliState().invocations).toHaveLength(0);} finally {@@ -249,6 +309,21 @@ else if (process.argv.slice(2).join(' ') === 'update') {delete w.__upgradeDiscoveryOriginal; delete w.__upgradeDiscoveries; delete w.__upgradeRefreshes;});}+ await page.evaluate(async () => { await (window as any).setLang('zh'); });+ // Repeat maintenance on the installed version: no update must be claimed.+ await control.locator('.local-cli-upgrade-btn').click();+ await expect(control.locator('.local-cli-upgrade-btn')).toHaveText('升级中…');+ await expect(control.locator('[role="status"]')).toBeEmpty();+ await expect(control.locator('[role="status"]')).toHaveText('当前已是最新版', { timeout: 30_000 });+ await expect(control.locator('.local-cli-upgrade-btn')).toBeEnabled();+ await page.screenshot({ path: testInfo.outputPath('15-claude-up-to-date-zh.png') });+ await page.setViewportSize({ width: 1000, height: 700 });+ await page.evaluate(async () => { await (window as any).setLang('en'); });+ await expect(control.locator('[role="status"]')).toHaveText('Already up to date');+ await expect(control.locator('.local-cli-upgrade-btn')).toHaveText('Upgrade CLI');+ await page.screenshot({ path: testInfo.outputPath('16-claude-up-to-date-en-narrow.png') });+ expect(readFileSync(calls, 'utf8')).toBe('update\nupdate\n');+ expect(app.readCliState().invocations).toHaveLength(0);});@@ -281,8 +356,8 @@ else if (process.argv.slice(2).join(' ') === 'update') {await openSidebarEntry(page, '#agents-btn');await page.locator('#agents-connect-cli-btn').click();// Connection recovery targets the CLI named in the outdated-version warning.- await expect(page.locator('#agent-modal-ext-cli-upgrade-warning')).toContainText('Codex');- await page.locator('#agent-modal-ext-cli-upgrades button').click();+ await expect(page.locator('#agent-modal-ext-cli-upgrades .local-cli-upgrade-warning')).toContainText('Codex');+ await page.locator('#agent-modal-ext-cli-upgrades .local-cli-upgrade-btn').click();await expect(page.locator('#agent-modal-ext-cli-upgrades [role="status"]')).toHaveText('升级成功');expect(readFileSync(calls, 'utf8')).toBe('codex\n');expect(readFileSync(versions.claude, 'utf8')).toBe('2.1.112');@@ -297,7 +372,7 @@ else if (process.argv.slice(2).join(' ') === 'update') {await page.locator('.ai-select-popover:visible .ai-select-item[data-value="cli:claude"]').click();await expect(page.locator('#agents-detail-runtime .ai-select-trigger')).toContainText('Claude');const detail = page.locator('#agents-detail-runtime .local-cli-upgrade-control');- await detail.locator('button').click();+ await detail.locator('.local-cli-upgrade-btn').click();await expect(detail.locator('[role="status"]')).toHaveText('升级成功');expect(readFileSync(calls, 'utf8')).toBe('codex\nclaude\n');writeFileSync(versions.claude, '1.9.0');@@ -306,10 +381,167 @@ else if (process.argv.slice(2).join(' ') === 'update') {await page.locator('#new-chat-input').fill('@UpgradeRouting 检查 CLI 版本');await page.locator('#new-chat-send-btn').click();const chip = page.locator('#chat-history .chat-message[data-failure-code="version_too_old"] .chat-bubble .local-cli-upgrade-control');- await expect(chip.locator('button')).toHaveText('升级 Claude Code CLI', { timeout: 30_000 });- await chip.locator('button').click();+ await expect(chip.locator('.local-cli-upgrade-btn')).toHaveText('升级 Claude Code CLI', { timeout: 30_000 });+ await chip.locator('.local-cli-upgrade-btn').click();await expect(chip.locator('[role="status"]')).toHaveText('升级成功');expect(readFileSync(calls, 'utf8')).toBe('codex\nclaude\nclaude\n');expect(readFileSync(versions.codex, 'utf8')).toBe('0.159.3');expect(app.readCliState().invocations).toHaveLength(0);});++test('groups outdated CLIs with their actions and contains installer errors through retry', async ({ cliOrkas }, testInfo) => {+ test.skip(process.platform === 'win32', 'POSIX global npm installation fixture.');+ const app = cliOrkas; const page = app.page!;+ const prefix = path.join(app.root, 'npm-prefix');+ const packageRoot = path.join(prefix, 'lib/node_modules/openclaw');+ const bin = path.join(prefix, 'bin/openclaw');+ const state = path.join(app.root, 'openclaw-version');+ const mode = path.join(app.root, 'npm-mode');+ const calls = path.join(app.root, 'npm-calls');+ mkdirSync(packageRoot, { recursive: true }); mkdirSync(path.dirname(bin), { recursive: true });+ writeFileSync(state, '2026.2.3'); writeFileSync(mode, 'pending'); writeFileSync(calls, '');+ writeFileSync(path.join(packageRoot, 'package.json'), JSON.stringify({ name: 'openclaw' }));+ const entry = path.join(packageRoot, 'openclaw.js');+ writeFileSync(entry, `#!${process.env.ORKAS_TEST_NODE || process.execPath}\nconsole.log(require('node:fs').readFileSync(${JSON.stringify(state)}, 'utf8'));`);+ chmodSync(entry, 0o755); symlinkSync(entry, bin);+ const diagnostic = 'OpenClaw requires Node >=24.22.1; current: 24.13.0\n'+ + '<img src=x onerror=alert(1)>\n' + 'x'.repeat(2000) + '\n'+ + 'Installer diagnostic line\n'.repeat(40)+ + 'Authorization: Bearer fixture-private-token\n/Users/test/install.log\n';+ const npm = path.join(prefix, 'bin/npm');+ writeFileSync(npm, `#!${process.env.ORKAS_TEST_NODE || process.execPath}\n+const fs = require('node:fs');+fs.appendFileSync(${JSON.stringify(calls)}, 'install\\n');+const timer = setInterval(() => {+ const mode = fs.readFileSync(${JSON.stringify(mode)}, 'utf8');+ if (mode === 'pending') return;+ clearInterval(timer);+ if (mode === 'failure') {+ process.stderr.write(${JSON.stringify(diagnostic)}); process.exitCode = 1;+ } else if (mode === 'empty') {+ process.exitCode = 7;+ } else fs.writeFileSync(${JSON.stringify(state)}, '2026.4.11');+}, 50);+`); chmodSync(npm, 0o755);+ const codex = path.join(app.root, 'old-codex');+ writeFileSync(codex, `#!${process.env.ORKAS_TEST_NODE || process.execPath}\nconsole.log('0.144.0');`); chmodSync(codex, 0o755);+ await app.electronApp!.evaluate((_electron, paths) => {+ process.env.ORKAS_OPENCLAW_PATH = paths.bin; process.env.ORKAS_CODEX_PATH = paths.codex;+ // Package-manager lookup searches PATH before the installation directory.+ // Keep the test's installer authoritative; never invoke a host npm.+ process.env.PATH = paths.npmDirectory + ':' + process.env.PATH;+ }, { bin, codex, npmDirectory: path.dirname(npm) });+ for (const type of ['openclaw', 'codex']) await app.invoke('localAgents.detect', { type });+ await page.setViewportSize({ width: 1280, height: 800 });+ await page.evaluate(async () => { await (window as any).setLang('zh'); });+ await openSidebarEntry(page, '#agents-btn'); await page.locator('#agents-connect-cli-btn').click();+ const rows = page.locator('#agent-modal-ext-cli-upgrades');+ const openclaw = rows.locator('[data-cli="openclaw"]');+ const codexRow = rows.locator('[data-cli="codex"]');+ await expect(openclaw.locator('.local-cli-upgrade-btn')).toHaveText('升级 OpenClaw CLI');+ await expect(codexRow.locator('.local-cli-upgrade-btn')).toHaveText('升级 Codex CLI');+ await expect(openclaw.locator('.local-cli-upgrade-warning')).toContainText('2026.2.3');+ await expect(codexRow.locator('.local-cli-upgrade-warning')).toContainText('0.144.0');+ const selector = page.locator('#agent-modal-ext-cli-select');+ const selectorBox = (await selector.boundingBox())!;+ expect((await rows.boundingBox())!.y).toBeGreaterThanOrEqual(selectorBox.y + selectorBox.height);+ await selector.locator('.ai-select-trigger').click();+ for (const cli of ['openclaw', 'codex']) {+ const option = page.locator(`.ai-select-popover:visible [data-value="${cli}"]`);+ await expect(option).toContainText('版本过低'); await expect(option).toHaveAttribute('aria-disabled', 'true');+ }+ await page.keyboard.press('Escape');+ const selected = await selector.getAttribute('data-value');+ await openclaw.locator('.local-cli-upgrade-btn').click();+ const error = openclaw.locator('.local-cli-upgrade-error');+ await expect(openclaw.locator('.local-cli-upgrade-btn')).toBeDisabled();+ await expect(openclaw.locator('.local-cli-upgrade-btn')).toHaveAttribute('aria-busy', 'true');+ await expect(error).toBeHidden();+ await expect.poll(() => readFileSync(calls, 'utf8')).toBe('install\n');+ // An out-of-band version refresh must preserve the pending control. Hold the+ // fake installer until the UI assertions complete instead of racing a delay.+ writeFileSync(state, '2026.2.4');+ await page.evaluate(async () => {+ window.dispatchEvent(new CustomEvent('local-cli-upgraded', { detail: { type: 'openclaw' } }));+ await (window as any).setLang('en');+ });+ await expect(openclaw.locator('.local-cli-upgrade-warning')).toContainText('2026.2.4');+ await expect(openclaw.locator('.local-cli-upgrade-btn')).toBeDisabled();+ await expect(openclaw.locator('.local-cli-upgrade-btn')).toHaveText('Upgrading…');+ await openclaw.locator('.local-cli-upgrade-btn').evaluate(button => {+ button.dispatchEvent(new MouseEvent('click', { bubbles: true }));+ button.dispatchEvent(new MouseEvent('click', { bubbles: true }));+ });+ await expect(rows.locator('[data-cli="openclaw"]')).toHaveCount(1);+ expect(readFileSync(calls, 'utf8')).toBe('install\n');+ // A second outdated CLI can fail independently, without installer detail.+ // Its unsupported source installation must not block or reset OpenClaw.+ await codexRow.locator('.local-cli-upgrade-btn').click();+ await expect(codexRow.locator('[role="status"]')).toHaveText('Upgrade failed');+ await expect(codexRow.locator('.local-cli-upgrade-error')).toBeHidden();+ await expect(codexRow.locator('.local-cli-upgrade-btn')).toBeEnabled();+ await expect(openclaw.locator('.local-cli-upgrade-btn')).toBeDisabled();+ writeFileSync(mode, 'failure');+ await expect(openclaw.locator('[role="status"]')).toHaveText('Upgrade failed');+ await expect(openclaw.locator('.local-cli-upgrade-details')).toHaveText('Error details');+ await expect(error).toBeHidden();+ await expect(error).toContainText('OpenClaw requires Node >=24.22.1; current: 24.13.0');+ await expect(error).toContainText('<img src=x onerror=alert(1)>');+ await expect(error.locator('img')).toHaveCount(0);+ await expect(error).not.toContainText('fixture-private-token');+ await expect(error).not.toContainText('/Users/test');+ await expect(codexRow.locator('[role="status"]')).toHaveText('Upgrade failed');+ // Background discovery may fill in a version while the user upgrades a+ // different CLI. The selected identity, not the transient label, must stay.+ await expect(selector).toHaveAttribute('data-value', selected!);+ for (const [locale, width, height] of [['zh', 1280, 800], ['en', 1000, 700], ['zh', 560, 700]] as const) {+ await page.setViewportSize({ width, height });+ await page.evaluate(async lang => { await (window as any).setLang(lang); }, locale);+ await expect(error).toBeHidden();+ await expect(openclaw.locator('.local-cli-upgrade-details')).toHaveText(locale === 'en' ? 'Error details' : '错误详情');+ await expectInlineErrorDetails(openclaw);+ await page.screenshot({ path: testInfo.outputPath(`grouped-collapsed-${locale}-${width}.png`) });+ await openclaw.locator('.local-cli-upgrade-details').focus(); await page.keyboard.press('Enter');+ await expect(error).toBeVisible();+ await error.evaluate(el => { el.scrollTop = 0; });+ const bounds = await error.evaluate(el => ({ client: el.clientWidth, scroll: el.scrollWidth,+ height: el.clientHeight, scrollHeight: el.scrollHeight, right: el.getBoundingClientRect().right }));+ expect(bounds.scroll).toBeLessThanOrEqual(bounds.client + 1);+ expect(bounds.height).toBeLessThanOrEqual(160);+ expect(bounds.scrollHeight).toBeGreaterThan(bounds.height);+ expect(bounds.right).toBeLessThanOrEqual(width);+ await page.screenshot({ path: testInfo.outputPath(`grouped-error-${locale}-${width}.png`) });+ await error.hover(); await page.mouse.wheel(0, 200);+ await expect.poll(() => error.evaluate(el => el.scrollTop)).toBeGreaterThan(0);+ await openclaw.locator('.local-cli-upgrade-details').click();+ await expect(error).toBeHidden();+ const confirm = page.locator('#agent-modal .modal-actions .btn-primary');+ await confirm.scrollIntoViewIfNeeded(); await expect(confirm).toBeInViewport();+ }+ // Retrying clears the old long diagnostic immediately. A later silent failure+ // must show its own safe exit code, not stale output from the previous attempt.+ writeFileSync(mode, 'pending');+ await openclaw.locator('.local-cli-upgrade-btn').click();+ await expect(error).toBeHidden();+ await expect(error).toBeEmpty();+ await expect(openclaw.locator('.local-cli-upgrade-details')).toBeHidden();+ await expect(openclaw.locator('[role="status"]')).toBeEmpty();+ await expect.poll(() => readFileSync(calls, 'utf8')).toBe('install\ninstall\n');+ writeFileSync(mode, 'empty');+ await expect(openclaw.locator('[role="status"]')).toHaveText('升级失败');+ await expect(error).toHaveText('exit_code=7, signal=none');+ await expect(error).toBeHidden();+ await openclaw.locator('.local-cli-upgrade-details').click();+ await expect(error).toBeVisible();+ await expect(openclaw.locator('.local-cli-upgrade-btn')).toBeEnabled();+ await expect(codexRow.locator('[role="status"]')).toHaveText('升级失败');+ writeFileSync(mode, 'success');+ await openclaw.locator('.local-cli-upgrade-btn').click();+ await expect(error).toBeHidden();+ await expect(openclaw.locator('[role="status"]')).toHaveText('升级成功');+ await expect(openclaw.locator('.local-cli-upgrade-details')).toBeHidden();+ await expect(openclaw.locator('.local-cli-upgrade-warning')).toBeHidden();+ await expect(codexRow.locator('.local-cli-upgrade-warning')).toContainText('0.144.0');+ expect(readFileSync(calls, 'utf8')).toBe('install\ninstall\ninstall\n');+ expect(app.readCliState().invocations).toHaveLength(0);+});diff --git a/test/e2e/fixtures/held-invoke-response.ts b/test/e2e/fixtures/held-invoke-response.tsnew file mode 100644index 00000000..0c2c2b34--- /dev/null+++ b/test/e2e/fixtures/held-invoke-response.ts@@ -0,0 +1,28 @@+import type { ElectronApplication } from '@playwright/test';++export async function holdInvokeResponse(app: ElectronApplication, channel: string) {+ await app.evaluate(({ ipcMain }, channel) => {+ const handlers = (ipcMain as any)._invokeHandlers as Map<string, Function>;+ const original = handlers?.get('orkas.invoke');+ if (typeof original !== 'function' || (globalThis as any).__heldInvokeResponse) {+ throw new Error('Native held-response adapter unavailable');+ }+ let release!: () => void;+ const gate = new Promise<void>(resolve => { release = resolve; });+ const control = { calls: 0, polls: 0, flowId: '', ready: false, entryIds: [] as string[], release, restore: () => {+ if (handlers.get('orkas.invoke') !== wrapped) throw new Error('Native handler owner changed');+ ipcMain.removeHandler('orkas.invoke'); ipcMain.handle('orkas.invoke', original as any);+ delete (globalThis as any).__heldInvokeResponse;+ } };+ const wrapped = async (event: unknown, request: any) => {+ if (request?.channel === 'auth.pollOAuthFlow') control.polls += 1;+ if (request?.channel !== channel) return original(event, request);+ const call = ++control.calls;+ const result = await original(event, request);+ if (call === 1) { control.flowId = result?.flowId || ''; control.entryIds = Array.isArray(result?.entries) ? result.entries.map((entry: any) => entry.entryId) : []; control.ready = true; await gate; }+ return result;+ };+ ipcMain.removeHandler('orkas.invoke'); ipcMain.handle('orkas.invoke', wrapped as any);+ (globalThis as any).__heldInvokeResponse = control;+ }, channel);+}diff --git a/test/e2e/projects_e2e_smoke.spec.ts b/test/e2e/projects_e2e_smoke.spec.tsindex 1d5f43ca..d4eba7c6 100644--- a/test/e2e/projects_e2e_smoke.spec.ts+++ b/test/e2e/projects_e2e_smoke.spec.ts@@ -361,7 +361,7 @@ test.describe('projects', () => {await page.locator('#project-chat-input').fill('Use the attached project brief.');await page.locator('#project-chat-send-btn').click();await expect(page.locator('#panel-conversation')).toHaveClass(/\bactive\b/);- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]')).toContainText(+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble > :is(.markdown-body, [data-role="final"])')).toContainText('E2E project attachment received.',{ timeout: 20_000 },);@@ -399,7 +399,7 @@ test.describe('projects', () => {await page.locator('#project-chat-input').fill(taskText);await page.locator('#project-chat-send-btn').click();await expect(page.locator('#panel-conversation')).toHaveClass(/\bactive\b/);- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]')).toContainText(+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble > :is(.markdown-body, [data-role="final"])')).toContainText('E2E image deliverable is ready.',{ timeout: 20_000 },);@@ -473,7 +473,7 @@ test.describe('projects', () => {await expect(page.locator('#chat-history .chat-message.user')).toContainText('Give a self-contained status update for this project.',);- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]')).toContainText(+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble > :is(.markdown-body, [data-role="final"])')).toContainText(modelReply,{ timeout: 20_000 },);@@ -524,7 +524,7 @@ test.describe('projects', () => {'Keep the existing project instructions and add that all customer copy must be English.',);await page.locator('#project-chat-send-btn').click();- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]')).toContainText(+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble .markdown-body')).toContainText(toolReply,{ timeout: 20_000 },);@@ -535,11 +535,14 @@ test.describe('projects', () => {await modelOrkas.invoke<{ content: string }>('projects.instructions.get', { projectId })).content).toBe(replacement);+ // A visible final body can precede stream teardown. Wait until this+ // control is Send; clicking it while streaming invokes Stop instead.+ await expect(page.locator('#chat-send-btn')).not.toHaveClass(/\bstreaming\b/);modelOrkas.clearModelToolScenario();modelOrkas.setModelTextReplies([nextTurnReply]);await page.locator('#chat-input').fill('Confirm the current project rules.');await page.locator('#chat-send-btn').click();- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]', {+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble .markdown-body', {hasText: nextTurnReply,})).toBeVisible({ timeout: 20_000 });await expect.poll(() => modelOrkas.modelRequests.length).toBe(3);@@ -547,6 +550,7 @@ test.describe('projects', () => {expect(nextTurnRequest).toContain(original);expect(nextTurnRequest).toContain('All customer copy must be English.');+ await expect(page.locator('#chat-send-btn')).not.toHaveClass(/\bstreaming\b/);const concurrentUiEdit = `${replacement}\nUse the July launch checklist.`;const staleModelReplacement = `${replacement}\nPublish on Friday.`;const conflictReply = 'E2E stale project-instructions replacement was rejected.';@@ -565,7 +569,7 @@ test.describe('projects', () => {content: concurrentUiEdit,});} finally { releaseTool(); }- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]', {+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble .markdown-body', {hasText: conflictReply,})).toBeVisible({ timeout: 20_000 });await expect.poll(() => modelOrkas.modelRequests.length).toBe(5);@@ -598,7 +602,7 @@ test.describe('projects', () => {modelOrkas.setModelTextReplies([sourceReply]);await page.locator('#project-chat-input').fill('Record the Nimbus payments decision for this project.');await page.locator('#project-chat-send-btn').click();- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]')).toContainText(+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble > :is(.markdown-body, [data-role="final"])')).toContainText(sourceReply,{ timeout: 20_000 },);@@ -619,7 +623,7 @@ test.describe('projects', () => {'Continue the earlier Nimbus payments plan from this project. Do not make me repeat its constraints.',);await page.locator('#project-chat-send-btn').click();- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]')).toContainText(+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble > :is(.markdown-body, [data-role="final"])')).toContainText(finalReply,{ timeout: 20_000 },);@@ -636,7 +640,7 @@ test.describe('projects', () => {/please.{0,20}(?:repeat|restate)|请.{0,20}(?:重复|重述)/i,);await expect(- page.locator('#chat-history .chat-message.assistant [data-role="final"]'),+ page.locator('#chat-history .chat-message.assistant .chat-bubble > :is(.markdown-body, [data-role="final"])'),).not.toContainText(/chat_history|<chat-history/i);const allConversations = await modelOrkas.invoke<{diff --git a/test/e2e/saved_apps_e2e_lifecycle.spec.ts b/test/e2e/saved_apps_e2e_lifecycle.spec.tsindex 2c9ff592..393772e3 100644--- a/test/e2e/saved_apps_e2e_lifecycle.spec.ts+++ b/test/e2e/saved_apps_e2e_lifecycle.spec.ts@@ -238,7 +238,7 @@ test.describe('My Apps', () => {await expect(page.locator('#chat-header .chat-app-type-tag')).toHaveCount(0);await expect(page.locator('#chat-history .chat-message.user')).toHaveCount(1);await expect(page.locator('#chat-history .chat-message.user')).toContainText(prompt);- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]', { hasText: 'APP_CREATE_ACK' })).toBeVisible({ timeout: 20_000 });+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble > :is(.markdown-body, [data-role="final"])', { hasText: 'APP_CREATE_ACK' })).toBeVisible({ timeout: 20_000 });expect(orkas.modelRequests).toHaveLength(1);expectAppCreationContext(orkas.modelRequests[0]);await expect(page.locator('#chat-history .chat-message.user')).not.toContainText('## App creation');@@ -288,7 +288,7 @@ test.describe('My Apps', () => {expect(orkas.modelRequests).toHaveLength(0);expect((await orkas.invoke<{ conversations: unknown[] }>('conversations.list')).conversations).toHaveLength(1);await page.locator('#chat-send-btn').click();- await expect(page.locator('#chat-history .chat-message.assistant [data-role="final"]', { hasText: 'APP_RETRY_ACK' })).toBeVisible({ timeout: 20_000 });+ await expect(page.locator('#chat-history .chat-message.assistant .chat-bubble > :is(.markdown-body, [data-role="final"])', { hasText: 'APP_RETRY_ACK' })).toBeVisible({ timeout: 20_000 });expect((await orkas.invoke<{ conversations: unknown[] }>('conversations.list')).conversations).toHaveLength(1);expect(orkas.modelRequests).toHaveLength(1);expectAppCreationContext(orkas.modelRequests[0]);diff --git a/test/e2e/settings_e2e_modules.spec.ts b/test/e2e/settings_e2e_modules.spec.tsindex 7cfa6127..b227f1d8 100644--- a/test/e2e/settings_e2e_modules.spec.ts+++ b/test/e2e/settings_e2e_modules.spec.ts@@ -197,7 +197,15 @@ test.describe('settings modules and model guard', () => {await expect(protocolMenu).toHaveCount(0);await expect(modal).toHaveClass(/\bopen\b/);await protocolTrigger.click();- if (protocol === 'anthropic') await orkas.page.keyboard.press('ArrowDown');+ if (protocol === 'anthropic') {+ const option = protocolMenu.getByRole('option', { name: 'Anthropic-compatible', exact: true });+ const optionId = await option.getAttribute('id');+ for (let index = 0; index < await protocolMenu.getByRole('option').count(); index += 1) {+ if (await protocolTrigger.getAttribute('aria-activedescendant') === optionId) break;+ await orkas.page.keyboard.press('ArrowDown');+ }+ await expect(protocolTrigger).toHaveAttribute('aria-activedescendant', optionId!);+ }await orkas.page.keyboard.press('Enter');await expect(protocolMenu).toHaveCount(0);await expect(protocolPicker).toHaveAttribute('data-value', protocol);diff --git a/test/e2e/todos_e2e_due_date.spec.ts b/test/e2e/todos_e2e_due_date.spec.tsindex 7b16ebe7..2eb5bbc3 100644--- a/test/e2e/todos_e2e_due_date.spec.ts+++ b/test/e2e/todos_e2e_due_date.spec.ts@@ -15,9 +15,12 @@ const test = base.extend({finally {if (previous === undefined) delete process.env.ORKAS_E2E_KEEP_LOGS;else process.env.ORKAS_E2E_KEEP_LOGS = previous;- const log = info.outputPath('electron-main.log');- expect(existsSync(log), 'Retain complete Electron logs on passing runs too').toBe(true);- const analysis = analyzeWebAppLogs(readFileSync(log, 'utf8'));+ const retainedLog = info.outputPath('electron-main.log');+ // Checkpoint failures retain an immutable, uniquely named snapshot.+ const log = existsSync(retainedLog) ? retainedLog : info.attachments+ .find(attachment => attachment.name === 'electron-logs' && attachment.path && existsSync(attachment.path))?.path;+ expect(!!log, 'Retain complete Electron logs on passing runs too').toBe(true);+ const analysis = analyzeWebAppLogs(readFileSync(log!, 'utf8'));writeFileSync(info.outputPath('log-analysis.json'), JSON.stringify(analysis, null, 2));expect(analysis.passed, 'Review log-analysis.json for errors or incomplete coverage').toBe(true);if (analysis.requiresReview) console.warn('Due date E2E log warnings:', JSON.stringify(analysis.findings));@@ -126,6 +129,19 @@ for (const scope of ['global', 'project'] as const) {// Edge-aligned native scrolling can leave fractional clipping in the dialog.// Center the action before requiring complete visibility; keep the strict oracle.await page.locator('#project-todo-save').evaluate(element => element.scrollIntoView({ block: 'center', inline: 'nearest' }));+ await info.attach('save-button-geometry', {+ contentType: 'application/json',+ body: JSON.stringify(await page.locator('#project-todo-save').evaluate(element => {+ const ancestors = [];+ for (let node: HTMLElement | null = element as HTMLElement; node; node = node.parentElement) {+ const style = getComputedStyle(node);+ ancestors.push({ id: node.id, className: node.className, rect: node.getBoundingClientRect().toJSON(),+ scrollTop: node.scrollTop, scrollHeight: node.scrollHeight, clientHeight: node.clientHeight,+ overflowY: style.overflowY, paddingBottom: style.paddingBottom, flexShrink: style.flexShrink });+ }+ return { viewport: { width: innerWidth, height: innerHeight }, ancestors };+ })),+ });await expect(page.locator('#project-todo-save')).toBeInViewport({ ratio: 1 });await page.screenshot({ path: info.outputPath('due-form-en-1024.png') });await input.fill('');diff --git a/test/e2e/web_app_sdk_e2e_runtime.spec.ts b/test/e2e/web_app_sdk_e2e_runtime.spec.tsindex 69e43a3e..4ee85730 100644--- a/test/e2e/web_app_sdk_e2e_runtime.spec.ts+++ b/test/e2e/web_app_sdk_e2e_runtime.spec.ts@@ -712,6 +712,7 @@ test('new ordinary apps isolate browser data across objects and accounts while rconst app: any = await orkas.invoke('savedApps.saveFromPath', { path: entry, title, mode: 'new' });expect(app.ok).toBe(true); saved.push(app);}+ expect(new Set(saved.map(app => app.id)).size).toBe(3);const oldMeta = path.join(orkas.workspaceRoot, 'account-e2e/cloud/saved_apps', saved[2].id, '__orkas-meta.json');const metadata = JSON.parse(readFileSync(oldMeta, 'utf8')); delete metadata.browserStorage;writeFileSync(oldMeta, JSON.stringify(metadata));diff --git a/test/main/features/local_agents/upgrade.test.ts b/test/main/features/local_agents/upgrade.test.tsindex 754d907a..b43ce969 100644--- a/test/main/features/local_agents/upgrade.test.ts+++ b/test/main/features/local_agents/upgrade.test.ts@@ -34,6 +34,119 @@ describe('CLI maintenance failure evidence', () => {expect(JSON.stringify(result)).not.toContain('PRIVATE_UPDATER_OUTPUT');expect(warningLog).not.toHaveBeenCalled();});++ it('returns bounded, redacted installer diagnostics only for explicit failed maintenance', async () => {+ const message = '\u001b[31mOpenClaw requires Node >=24.22.1; current: 24.13.0\u001b[0m\n'+ + 'Authorization: Bearer example-private-token\n'+ + 'token=example-secret\n/Users/test/private/install.log\nC:\\Users\\example\\install.log';+ const result = await runUpgradeCommand(TEST_NODE,+ ['-e', `process.stderr.write(${JSON.stringify(message)}); process.exit(7)`], 3000, 'failure');+ expect(result).toMatchObject({ ok: false, text: '', error: 'failed' });+ expect(result.error_detail).toContain('OpenClaw requires Node >=24.22.1; current: 24.13.0');+ for (const secret of ['\u001b', 'example-private-token', 'example-secret', '/Users/test', 'C:\\Users\\example']) {+ expect(result.error_detail).not.toContain(secret);+ }+ expect(warningLog).not.toHaveBeenCalled();+ const success = await runUpgradeCommand(TEST_NODE,+ ['-e', `process.stderr.write(${JSON.stringify(message)})`], 3000, 'failure');+ expect(success).toMatchObject({ ok: true, text: '' });+ expect(success).not.toHaveProperty('error_detail');+ });++ it('retains the terminal error after long output and supports stdout-only installers', async () => {+ for (const stream of ['stdout', 'stderr']) {+ const result = await runUpgradeCommand(TEST_NODE, ['-e',+ `process.${stream}.write('progress\\n'.repeat(10000) + 'Network unavailable: retry later'); process.exitCode = 1;`,+ ], 3000, 'failure');+ expect(result.error_detail).toContain('Network unavailable: retry later');+ expect(result.error_detail!.length).toBeLessThanOrEqual(8192);+ expect(result.text).toBe('');+ }+ });++ it.each([8191, 8192, 8193])('bounds a %i-character diagnostic without losing its final cause', async length => {+ const message = 'x'.repeat(length - 17) + 'Download refused.';+ const result = await runUpgradeCommand(TEST_NODE,+ ['-e', `process.stderr.write(${JSON.stringify(message)}); process.exitCode = 1;`], 3000, 'failure');+ expect(result).toMatchObject({ ok: false, error: 'failed', text: '' });+ expect(result.error_detail).toBe(length <= 8192 ? message : '…' + message.slice(-8191));+ });++ it.each([8189, 8190, 8191])('keeps Unicode intact when truncation meets a surrogate pair (%i trailing characters)', async trailing => {+ const message = 'prefix'.repeat(20) + '😀' + 'z'.repeat(trailing);+ const result = await runUpgradeCommand(TEST_NODE,+ ['-e', `process.stderr.write(${JSON.stringify(message)}); process.exitCode = 1;`], 3000, 'failure');+ const detail = result.error_detail!;+ expect(detail.length).toBeLessThanOrEqual(8192);+ expect(detail.startsWith('…')).toBe(true);+ // UTF-8 round-trip replaces lone surrogates, independently detecting damage.+ expect(Buffer.from(detail, 'utf8').toString('utf8')).toBe(detail);+ expect(detail.endsWith('z'.repeat(trailing))).toBe(true);+ });++ it.each([32767, 32768, 32769])('does not expose a credential crossing the %i-character capture boundary', async length => {+ const suffix = '\nInstallation refused';+ const secret = 'private'.repeat(Math.ceil(length / 7));+ const message = 'Authorization: Bearer ' + secret.slice(0, length - 22 - suffix.length) + suffix;+ expect(message.length).toBe(length);+ // Keep the fixture below Windows' command-line limit; the output itself is+ // deliberately larger than a safe process argument on that platform.+ const file = path.join(root, 'diagnostic.txt'); fs.writeFileSync(file, message);+ const result = await runUpgradeCommand(TEST_NODE,+ ['-e', `process.stderr.write(require('node:fs').readFileSync(${JSON.stringify(file)})); process.exitCode = 1;`], 3000, 'failure');+ expect(result.error_detail).toContain('Installation refused');+ expect(result.error_detail).not.toContain('private');+ expect(result.error_detail!.length).toBeLessThanOrEqual(8192);+ });++ it('decodes split UTF-8 and redacts split terminal escapes and credentials on both streams', async () => {+ const message = '\u001b[31m安装失败 😀\u001b[0m\nAuthorization: Bearer private-token\n';+ // One byte per write, spaced over event-loop turns, exercises partial UTF-8+ // sequences and redaction prefixes instead of relying on pipe chunk sizes.+ for (const stream of ['stdout', 'stderr']) {+ const result = await runUpgradeCommand(TEST_NODE, ['-e', `+const bytes = Buffer.from(${JSON.stringify(message)}); let index = 0;+const timer = setInterval(() => {+ process.${stream}.write(bytes.subarray(index, ++index));+ if (index === bytes.length) { clearInterval(timer); process.exitCode = 7; }+}, 2);`], 3000, 'failure');+ expect(result.error_detail).toContain('安装失败 😀');+ expect(result.error_detail).not.toContain('\u001b');+ expect(result.error_detail).not.toContain('private-token');+ expect(result.error_detail).not.toContain('�');+ }+ });++ it.each(['', ' \n\t\r ', '\u001b[31m\u001b[0m\u0000'])('provides a safe exit diagnostic for empty or invisible output (%j)', async output => {+ const result = await runUpgradeCommand(TEST_NODE,+ ['-e', `process.stderr.write(${JSON.stringify(output)}); process.exitCode = 7;`], 3000, 'failure');+ expect(result).toMatchObject({ ok: false, error: 'failed', error_detail: 'exit_code=7, signal=none' });+ });++ it('provides a safe user-visible diagnostic when an installer cannot spawn', async () => {+ const missing = path.join(root, 'private-missing');+ const result = await runUpgradeCommand(missing, [], 3000, 'failure');+ expect(result).toMatchObject({ ok: false, error: 'failed', error_detail: 'ENOENT' });+ expect(JSON.stringify(result)).not.toContain(missing);+ });++ it.each([1048575, 1048576, 1048577])('enforces the combined stdout/stderr byte budget at %i bytes', async bytes => {+ const result = await runUpgradeCommand(TEST_NODE, ['-e', `+process.stdout.write('progress\\n'.repeat(65536), () => {+ process.stderr.write('x'.repeat(${bytes} - 589824)); process.exitCode = 7;+});`], 5000, 'failure');+ expect(result).toMatchObject({ ok: false, text: '', error: bytes > 1048576 ? 'output_limit' : 'failed' });+ expect(result.error_detail?.length || 0).toBeLessThanOrEqual(8192);+ });++ it('preserves redacted evidence when a verbose installer hangs', async () => {+ const result = await runUpgradeCommand(TEST_NODE, ['-e', `+process.stderr.write('Download stalled\\nAuthorization: Bearer private-token\\n');+setInterval(() => {}, 1000);`], 1000, 'failure');+ expect(result).toMatchObject({ ok: false, error: 'timeout', text: '' });+ expect(result.error_detail).toContain('Download stalled');+ expect(result.error_detail).not.toContain('private-token');+ });});describe('CLI installation ownership', () => {@@ -159,8 +272,8 @@ else process.exit(9);`);});});describe.skipIf(process.platform === 'win32')('native CLI maintenance lifecycle', () => {- function native(mode: string) {- const state = path.join(root, 'version'); fs.writeFileSync(state, '0.144.0');+ function native(mode: string, initialVersion = '0.144.0') {+ const state = path.join(root, 'version'); fs.writeFileSync(state, initialVersion);const updates = path.join(root, 'updates');const bin = executable(path.join(root, '.codex/packages/standalone/current/bin/codex'), `const fs = require('node:fs'); const state = ${JSON.stringify(state)};@@ -168,7 +281,7 @@ if (process.argv.includes('--version')) console.log(fs.readFileSync(state, 'utf8else if (process.argv.includes('--help')) console.log('Commands:\\n update Upgrade Codex');else if (process.argv.includes('update')) {fs.appendFileSync(${JSON.stringify(updates)}, 'update\\n');- setTimeout(() => { ${mode === 'failure' ? 'process.exit(7);' : `fs.writeFileSync(state, '${mode === 'unchanged' ? '0.144.0' : '0.159.3'}');`} }, 200);+ setTimeout(() => { ${mode === 'failure' ? "process.stderr.write('Installer could not download the update'); process.exit(7);" : `fs.writeFileSync(state, '${mode === 'unchanged' ? initialVersion : '0.159.3'}');`} }, 200);} else process.exit(8);`);process.env.ORKAS_CODEX_PATH = bin; return { bin, updates };}@@ -176,9 +289,42 @@ else if (process.argv.includes('update')) {const { bin, updates } = native('success');const one = upgradeLocalCli('codex'); const two = upgradeLocalCli('codex'); expect(two).toBe(one);const result = await one;- expect(result).toMatchObject({ ok: true, method: 'native', version: '0.159.3', entry: { path: bin, available: true } });+ expect(result).toMatchObject({ ok: true, outcome: 'upgraded', method: 'native', version: '0.159.3', entry: { path: bin, available: true } });+ expect(fs.readFileSync(updates, 'utf8')).toBe('update\n');+ });+ it('reports an already-current supported CLI without claiming an upgrade', async () => {+ const { bin, updates } = native('unchanged', '0.159.3');+ expect(await upgradeLocalCli('codex')).toMatchObject({+ ok: true, outcome: 'up_to_date', version: '0.159.3', entry: { path: bin, available: true },+ });expect(fs.readFileSync(updates, 'utf8')).toBe('update\n');});+ it('reports a prerelease-to-stable change as an upgrade even with the same core version', async () => {+ native('success', '0.159.3-beta.1');+ expect(await upgradeLocalCli('codex')).toMatchObject({ ok: true, outcome: 'upgraded', version: '0.159.3' });+ });+ it('does not report up to date when the updater fails on a supported version', async () => {+ native('failure', '0.159.3');+ const result = await upgradeLocalCli('codex');+ expect(result).toMatchObject({ ok: false, error_code: 'failed' });+ expect(result.error_detail).toBe('Installer could not download the update');+ expect(JSON.stringify(warningLog.mock.calls)).not.toContain('Installer could not download');+ expect(result).not.toHaveProperty('outcome');+ });+ it('releases a failed operation for retry and clears its previous error after success', async () => {+ const { bin, updates } = native('failure');+ const failed = await upgradeLocalCli('codex');+ expect(failed).toMatchObject({ ok: false, error_detail: 'Installer could not download the update' });+ native('success');+ const retried = upgradeLocalCli('codex');+ expect(upgradeLocalCli('codex')).toBe(retried);+ const result = await retried;+ expect(result).toMatchObject({ ok: true, outcome: 'upgraded', entry: { path: bin, available: true } });+ expect(result.operation_id).not.toBe(failed.operation_id);+ expect(result).not.toHaveProperty('error_detail');+ expect(result).not.toHaveProperty('error_code');+ expect(fs.readFileSync(updates, 'utf8')).toBe('update\nupdate\n');+ });it.each(['failure', 'unchanged'])('does not claim a successful upgrade for %s', async mode => {native(mode);const result = await upgradeLocalCli('codex');diff --git a/test/main/i18n.test.ts b/test/main/i18n.test.tsindex bc5ec413..adb4902b 100644--- a/test/main/i18n.test.ts+++ b/test/main/i18n.test.ts@@ -175,16 +175,19 @@ describe('i18n › t() lookup', () => {});it('ships privacy-safe task-intervention notification copy in every supported language', () => {+ // The copy names what kind of work wants attention and how many, never+ // the task's content or title.const expected = {- en: ['Task status updated', 'Open Orkas to view details.'],- zh: ['任务状态已更新', '打开 Orkas 查看详情。'],- ja: ['タスクのステータスが更新されました', 'Orkas を開いて詳細を確認してください。'],- pt: ['Status da tarefa atualizado', 'Abra o Orkas para ver os detalhes.'],+ en: ['A task needs your reply', 'Open Orkas to view details.', '3 automation runs failed'],+ zh: ['有任务等你回复', '打开 Orkas 查看详情。', '3 个自动化运行失败'],+ ja: ['タスクが返信を待っています', 'Orkas を開いて詳細を確認してください。', '3 件の自動化の実行が失敗しました'],+ pt: ['Uma tarefa aguarda sua resposta', 'Abra o Orkas para ver os detalhes.', '3 execuções de automação falharam'],} as const;for (const lang of ['en', 'zh', 'ja', 'pt'] as const) {expect([t('notification.task.waiting_input.title', undefined, lang),t('notification.task.waiting_input.body', undefined, lang),+ t('notification.automation.failed.title_many', { count: 3 }, lang),]).toEqual(expected[lang]);}});diff --git a/test/main/ipc/project-binding-continuity.test.ts b/test/main/ipc/project-binding-continuity.test.tsindex 67a2226b..4aefe806 100644--- a/test/main/ipc/project-binding-continuity.test.ts+++ b/test/main/ipc/project-binding-continuity.test.ts@@ -110,7 +110,8 @@ describe('local project binding continuity', () => {await reached;expect(fs.existsSync(target)).toBe(false);expect(await invoke('projects.bindings.list', { projectId: pid })).toMatchObject({- ok: true, bindings: { agents: [aid] }, agentDetails: [],+ ok: true, bindings: { agents: [aid] },+ agentDetails: [{ agent_id: aid, name: '', enabled: false, unavailable: true }],});expect(fs.readFileSync(bindingsFile, 'utf8')).toBe(before);} finally {@@ -179,7 +180,8 @@ describe('local project binding continuity', () => {fs.unlinkSync(definition);agents.clearAgentListCache();expect(await invoke('projects.bindings.list', { projectId: pid })).toMatchObject({- ok: true, bindings: { agents: [aid] }, agentDetails: [],+ ok: true, bindings: { agents: [aid] },+ agentDetails: [{ agent_id: aid, name: '', enabled: false, unavailable: true }],});expect(await invoke('projects.bindings.remove', { projectId: pid, kind: 'agent', id: aid })).toMatchObject({ ok: true, bindings: { agents: [] } });@@ -190,5 +192,24 @@ describe('local project binding continuity', () => {.toMatchObject({ ok: true, bindings: { agents: [] }, agentDetails: [] });expect((await projects.getBindings('member', pid)).agents).toEqual([]);});-});+ it('marks a deleted custom Agent unavailable until the user removes it', async () => {+ const { agents, projects, pid, aid } = await fixture();+ const created = await agents.createCustomAgent({ name: 'Deleted-later', description: 'desc' });+ if (!created) throw new Error('fixture Agent creation failed');+ const id = created.agent_id;+ expect((await projects.addAgentBinding('member', pid, id)).ok).toBe(true);+ expect(await agents.deleteCustomAgent(id)).toBe(true);+ const listed = await invoke('projects.bindings.list', { projectId: pid });+ expect(listed.ok).toBe(true);+ expect(listed.bindings.agents.sort()).toEqual([aid, id].sort());+ // An ordinary project carries no sharing metadata on the placeholder.+ expect(listed.agentDetails.find((agent: any) => agent.agent_id === id))+ .toEqual({ agent_id: id, name: '', enabled: false, unavailable: true });+ expect(listed.agentDetails.find((agent: any) => agent.agent_id === aid)).toMatchObject({ name: 'Bound' });+ expect(await invoke('projects.bindings.remove', { projectId: pid, kind: 'agent', id }))+ .toMatchObject({ ok: true, bindings: { agents: [aid] } });+ expect((await invoke('projects.bindings.list', { projectId: pid })).agentDetails+ .map((agent: any) => agent.agent_id)).toEqual([aid]);+ });+});diff --git a/test/renderer/agents-detail-layout.test.ts b/test/renderer/agents-detail-layout.test.tsindex c28eaf9c..b332084c 100644--- a/test/renderer/agents-detail-layout.test.ts+++ b/test/renderer/agents-detail-layout.test.ts@@ -176,7 +176,7 @@ describe('external CLI Agent detail layout', () => {expect(settings).toContain('_mergeAgentIntoCache(saved.agent)');expect(settings).not.toContain('_agentsCache = null');});- it.each([false, true])('retains upgrade feedback and current discovery across overlapping detail refreshes (older first: %s)', async olderFirst => {+ it.each([['success', false], ['success', true], ['up_to_date', false], ['up_to_date', true]] as const)('retains %s upgrade feedback across overlapping detail refreshes (older first: %s)', async (state, olderFirst) => {const source = fs.readFileSync(path.join(rendererRoot, 'modules/agents.js'), 'utf8');const ast = ts.createSourceFile('agents.js', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.JS);const entry = ast.statements.find(node => ts.isFunctionDeclaration(node) && node.name?.text === '_renderAgentDetailRuntime');@@ -206,7 +206,7 @@ describe('external CLI Agent detail layout', () => {}const slot = new Element(), section = new Element(), feedback = new Element();slot.dataset.runtimeKey = 'one::claude';- feedback.className = 'local-cli-upgrade-control'; feedback.dataset.state = 'success';+ feedback.className = 'local-cli-upgrade-control'; feedback.dataset.state = state;slot.appendChild(feedback);const resolveDiscovery: Array<(entries: unknown[]) => void> = [];const context = vm.createContext({@@ -229,7 +229,7 @@ describe('external CLI Agent detail layout', () => {await runs[index];}expect(slot.querySelector('.local-cli-upgrade-control')).toBe(feedback);- expect(slot.querySelector('.local-cli-upgrade-control')?.dataset.state).toBe('success');+ expect(slot.querySelector('.local-cli-upgrade-control')?.dataset.state).toBe(state);expect(slot.querySelector('.agents-detail-runtime-select')?.options[0].label).toContain('2.1.113');});diff --git a/test/renderer/design-token-integrity.test.ts b/test/renderer/design-token-integrity.test.tsindex 0f412af0..a67b4f57 100644--- a/test/renderer/design-token-integrity.test.ts+++ b/test/renderer/design-token-integrity.test.ts@@ -19,8 +19,6 @@ const RUNTIME_INJECTED = new Set(['--oss-c', // modules/oss.js, modules/marketplace.js'--chat-image-aspect-ratio', // modules/utils.js'--chat-image-natural-width', // modules/utils.js- '--composer-model-marquee-distance', // modules/composer-model-picker.js- '--composer-model-marquee-duration', // modules/composer-model-picker.js'--turn-nav-preview-y', // modules/conversation-turn-nav.js'--activity-group-height', // modules/web-assist.js, set before `.is-contained` applies it]);@@ -29,19 +27,36 @@ function readRendererCss() {return fs.readFileSync(CSS_PATH, 'utf8');}+function withoutCssLiterals(css: string) {+ return css.replace(/"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\/\*[\s\S]*?\*\//g, ' ');+}+function declaredProperties(css: string) {const names = new Set<string>();- for (const match of css.matchAll(/(?:^|[;{\s])(--[a-zA-Z0-9_-]+)\s*:/g)) names.add(match[1]);+ for (const match of withoutCssLiterals(css).matchAll(/(?:^|[;{\s])(--[a-zA-Z0-9_-]+)\s*:/g)) names.add(match[1]);return names;}function referencedProperties(css: string) {const names = new Set<string>();- for (const match of css.matchAll(/var\(\s*(--[a-zA-Z0-9_-]+)/g)) names.add(match[1]);+ for (const match of withoutCssLiterals(css).matchAll(/var\(\s*(--[a-zA-Z0-9_-]+)/g)) names.add(match[1]);return names;}describe('renderer design token integrity', () => {+ it.each([+ ['comment declaration', '/* --missing: red; */ .example { color: var(--missing); }', [], ['--missing']],+ ['quoted declaration', '.example { content: " --missing: red;"; color: var(--missing); }', [], ['--missing']],+ ['comment reference', '/* color: var(--ghost); */ .example { --real: black; color: var(--real); }', ['--real'], ['--real']],+ ['quoted reference', '.example { content: "var(--ghost)"; --real: black; color: var(--real); }', ['--real'], ['--real']],+ ['single-quoted literal', `.example { content: 'var(--ghost) --missing:red;'; --real: black; color: var(--real); }`, ['--real'], ['--real']],+ ['escaped quote', String.raw`.example { content: "escaped \" var(--ghost) --missing:red;"; --real: black; color: var(--real); }`, ['--real'], ['--real']],+ ['comment markers in a string', '.example { content: "/* --missing:red; */ var(--ghost)"; --real: black; color: var(--real); }', ['--real'], ['--real']],+ ] as const)('counts executable CSS tokens only: %s', (_label, css, declarations, references) => {+ expect([...declaredProperties(css)]).toEqual(declarations);+ expect([...referencedProperties(css)]).toEqual(references);+ });+it('never references a custom property that nothing defines', () => {const css = readRendererCss();const declared = declaredProperties(css);@@ -53,7 +68,7 @@ describe('renderer design token integrity', () => {it('keeps the palette entries TOKENS.md declares binding', () => {const css = readRendererCss();- const root = css.match(/:root\s*\{[\s\S]*?\}/)?.[0] || '';+ const root = withoutCssLiterals(css).match(/:root\s*\{[\s\S]*?\}/)?.[0] || '';for (const [name, value] of [['--primary', '#5b57d6'],['--primary-soft', '#e8e8fe'],@@ -68,7 +83,7 @@ describe('renderer design token integrity', () => {});it('does not reintroduce the retired ghost token names', () => {- const css = readRendererCss();+ const css = withoutCssLiterals(readRendererCss());for (const ghost of ['--accent','--accent-soft',diff --git a/test/renderer/dialogs.test.ts b/test/renderer/dialogs.test.tsindex 7ef7e4b8..374a2b9e 100644--- a/test/renderer/dialogs.test.ts+++ b/test/renderer/dialogs.test.ts@@ -112,6 +112,8 @@ class FakeElement {this.attributes.set(name, value);}+ removeAttribute(name: string): void { this.attributes.delete(name); }+addEventListener(type: string, listener: Listener): void {const listeners = this.listeners.get(type) || [];listeners.push(listener);@@ -278,6 +280,27 @@ describe('shared renderer dialogs', () => {expect(ctx._document.activeElement).toBe(unrelated);});+ it('keeps browser-opening confirmation busy, then allows retry on failure', async () => {+ const ctx = loadDialogs();+ let finish!: (value: boolean) => void;+ const open = vi.fn(() => new Promise<boolean>(resolve => { finish = resolve; }));+ const result = ctx.uiConfirm({ message: 'Subscribe', onConfirm: open });+ const overlay = overlays(ctx)[0];+ const button = overlay.querySelector('[data-act="ok"]')!;+ button.click(); button.click();+ ctx._document.dispatchKey({ key: 'Escape' });+ expect(open).toHaveBeenCalledTimes(1);+ expect(button.disabled).toBe(true);+ expect(button.classList.contains('is-loading')).toBe(true);+ expect(overlays(ctx)).toEqual([overlay]);+ finish(false); await new Promise<void>(resolve => setImmediate(resolve));+ expect(button.disabled).toBe(false);+ expect(button.classList.contains('is-loading')).toBe(false);+ button.click(); finish(true);+ expect(await result).toBe(true);+ expect(overlays(ctx)).toHaveLength(0);+ });+it('keeps an async danger action visible and prevents duplicate confirmation or dismissal until it succeeds', async () => {const ctx = loadDialogs();let complete!: () => void;diff --git a/test/renderer/floating-layering.test.ts b/test/renderer/floating-layering.test.tsindex f0ddcaaf..26e6164c 100644--- a/test/renderer/floating-layering.test.ts+++ b/test/renderer/floating-layering.test.ts@@ -7,12 +7,29 @@ function readRendererCss() {}function zIndexForSelector(css: string, selector: string) {- const escaped = selector.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');- const match = css.match(new RegExp(`${escaped}\\s*\\{[\\s\\S]*?z-index:\\s*(\\d+)`));- return match ? Number(match[1]) : null;+ const rules = css.replace(/\/\*[\s\S]*?\*\//g, '').matchAll(/([^{}]+)\{([^{}]*)\}/g);+ const rule = Array.from(rules).find(([, selectors]) =>+ selectors.split(',').some(value => value.trim() === selector),+ );+ const declaration = rule?.[2].match(/(?:^|;)\s*z-index\s*:\s*(-?\d+)\s*(?:!important\s*)?(?:;|$)/i);+ return declaration ? Number(declaration[1]) : null;}describe('floating layer ordering', () => {+ it.each([+ ['adjacent rule', '.skill-picker { position: fixed; } .other { z-index: 14000; }', null],+ ['descendant selector', '.parent .skill-picker { z-index: 14000; }', null],+ ['commented declaration', '.skill-picker { /* z-index: 14000; */ position: fixed; }', null],+ ['custom property', '.skill-picker { --z-index: 14000; }', null],+ ['different class', '.skill-picker-other { z-index: 14000; }', null],+ ['missing selector', '.other { z-index: 14000; }', null],+ ['signed value', '.skill-picker { z-index: -1; }', -1],+ ['important declaration', '.skill-picker { z-index : 14000 !important; }', 14000],+ ['shared selector list', '.other, .skill-picker { z-index: 14000; }', 14000],+ ] as const)('reads only the owning declaration: %s', (_label, css, expected) => {+ expect(zIndexForSelector(css, '.skill-picker')).toBe(expected);+ });+it('keeps body-level pickers above shared dialog overlays', () => {const css = readRendererCss();const dialogZ = zIndexForSelector(css, '.ui-dialog-overlay');diff --git a/test/renderer/helpers/mini-dom.ts b/test/renderer/helpers/mini-dom.tsindex a538a564..ee537e2c 100644--- a/test/renderer/helpers/mini-dom.ts+++ b/test/renderer/helpers/mini-dom.ts@@ -162,6 +162,21 @@ export class MiniElement extends MiniNode {this.childNodes.push(node);return node;}+ cloneNode(deep = false): MiniElement {+ const copy = new MiniElement(this.ownerDocument, this.localName);+ for (const [name, value] of this.attributes) copy.setAttribute(name, value);+ Object.assign(copy.style, this.style);+ if (deep) for (const child of this.childNodes) copy.appendChild(child instanceof MiniElement+ ? child.cloneNode(true) : new MiniText(this.ownerDocument, child.textContent));+ return copy;+ }+ replaceChild<T extends MiniNode>(next: MiniNode, previous: T): T {+ if (previous.parentNode !== this) throw new Error('Child not found');+ next.remove();+ const index = this.childNodes.indexOf(previous);+ this.childNodes[index] = next; next.parentNode = this; previous.parentNode = null;+ return previous;+ }append(...nodes: Array<MiniNode | string>): void {for (const node of nodes) this.appendChild(typeof node === 'string' ? new MiniText(this.ownerDocument, node) : node);}diff --git a/test/renderer/i18n.test.ts b/test/renderer/i18n.test.tsindex 1bde65ee..a0387e82 100644--- a/test/renderer/i18n.test.ts+++ b/test/renderer/i18n.test.ts@@ -595,3 +595,27 @@ describe('locale resource contract', () => {}});});+++describe('shared 1.9.5 and API-key voice translations', () => {+ const sharedKeys = ['chat.task_status_planning', 'contexts.kb.image_failed', 'contexts.kb.image_failed_hint',+ 'project.todo.delete_confirm', 'project.todo.due_label',+ 'project.todo.due_on', 'project.todo.due_overdue', 'project.todo.due_invalid'];+ const voiceKeys = ['chat.mic_title', 'chat.mic_stop_title', 'chat.mic_error_permission',+ 'chat.mic_error_no_device', 'chat.mic_error_unavailable', 'chat.mic_insufficient_credits',+ 'chat.mic_limit_reached', 'settings.orkas_api.key_required'];+ it.each(LANGS)('renders shared status, recovery and voice guidance using the selected %s table', lang => {+ const tables = localeTables('renderer');+ const { sandbox } = loadI18n({boot:{lang,tables}});+ for (const key of [...sharedKeys,...voiceKeys]) {+ expect(tables[lang][key], lang + ':' + key).toBeTypeOf('string');+ expect(tables[lang][key].trim(), lang + ':' + key).not.toBe('');+ const variables = Object.fromEntries(placeholders(tables.en[key]).map(name => [name, name === 'seconds' ? '120' : '2026-10-26']));+ const expected = tables[lang][key].replace(/\{(\w+)\}/g, (_match: string,name: string) => variables[name]);+ expect(sandbox.t(key,variables), lang + ':' + key).toBe(expected);+ expect(sandbox.t(key,variables)).not.toMatch(/\{\w+\}/);+ }+ if(lang !== 'en') for(const key of voiceKeys)+ expect(tables[lang][key], lang + ':' + key + ' translated voice recovery').not.toBe(tables.en[key]);+ });+});diff --git a/test/renderer/lazy-features.test.ts b/test/renderer/lazy-features.test.tsindex 66160ca8..e2dd64d6 100644--- a/test/renderer/lazy-features.test.ts+++ b/test/renderer/lazy-features.test.ts@@ -5,26 +5,15 @@ import * as vm from 'node:vm';function loadFeatureLoader(onAppend?: (script: any, context: any) => void) {const appended: any[] = [];- const telemetry = {- events: [] as Array<{ action: string; data: Record<string, unknown> }>,- errors: [] as Array<{ action: string; data: Record<string, unknown> }>,- };+ const warnings: unknown[][] = [];const context: any = {Map,Promise,Error,Object,String,- window: {- Monitor: {- event(action: string, data: Record<string, unknown>) {- telemetry.events.push({ action, data });- },- error(action: string, data: Record<string, unknown>) {- telemetry.errors.push({ action, data });- },- },- },+ window: {},+ console: { warn: (...args: unknown[]) => warnings.push(args) },document: {createElement: () => ({ dataset: {} }),head: {@@ -41,12 +30,12 @@ function loadFeatureLoader(onAppend?: (script: any, context: any) => void) {vm.createContext(context);const source = fs.readFileSync(path.join(__dirname, '../../src/renderer/modules/lazy-features.js'), 'utf8');vm.runInContext(source, context, { filename: 'lazy-features.js' });- return { context, appended, telemetry };+ return { context, appended, warnings };}describe('renderer lazy feature loader', () => {it('loads the Settings bundle in declared classic-script order and shares concurrent work', async () => {- const { context, appended, telemetry } = loadFeatureLoader();+ const { context, appended } = loadFeatureLoader();const first = context.loadRendererFeature('settings');const second = context.loadRendererFeature('settings');@@ -59,12 +48,10 @@ describe('renderer lazy feature loader', () => {'./modules/task-cleanup.js',]);expect(appended.every((script) => script.async === false)).toBe(true);- expect(telemetry.events).toEqual([]);- expect(telemetry.errors).toEqual([]);});it('does not fail marketplace loading when the optional dev enhancer is absent', async () => {- const { context, appended, telemetry } = loadFeatureLoader((script) => {+ const { context, appended } = loadFeatureLoader((script) => {if (script.src.endsWith('marketplace_dev.js')) script.onerror();else script.onload();});@@ -74,8 +61,6 @@ describe('renderer lazy feature loader', () => {'./modules/semver.js','./modules/marketplace.js',]);- expect(telemetry.events).toEqual([]);- expect(telemetry.errors).toEqual([]);});it('loads public Agent and Skill surfaces without private publishing modules', async () => {@@ -106,7 +91,7 @@ describe('renderer lazy feature loader', () => {it('retries a required script while reusing scripts that already loaded', async () => {let contextAttempts = 0;- const { context, appended, telemetry } = loadFeatureLoader((script) => {+ const { context, appended } = loadFeatureLoader((script) => {if (script.src.endsWith('contexts.js') && contextAttempts++ === 0) script.onerror();else script.onload();});@@ -119,17 +104,16 @@ describe('renderer lazy feature loader', () => {'./modules/contexts.js','./modules/kb-picker.js',]);- expect(telemetry.events).toEqual([]);- expect(telemetry.errors).toEqual([]);});it('collapses unknown feature names before reporting a bounded failure', async () => {- const { context, telemetry } = loadFeatureLoader();+ const { context, warnings } = loadFeatureLoader();await expect(context.loadRendererFeature('private-feature-name')).rejects.toThrow('unknown renderer feature');+ expect(warnings).toEqual([['[renderer-feature]', { result: 'failure', feature: 'unknown',+ duration_ms: expect.any(Number), retry_count: 0, error_code: 'unknown_feature' }]]);+ expect(JSON.stringify(warnings)).not.toContain('private-feature-name');- expect(telemetry.events).toEqual([]);- expect(telemetry.errors).toEqual([]);});it('keeps tab-only project, Library, apps, and devtools scripts out of the eager HTML', async () => {@@ -161,6 +145,7 @@ describe('renderer lazy feature loader', () => {await context.loadRendererFeature('project');expect(appended.map((script) => script.src)).toEqual(['./modules/library-transfer.js',+ './modules/date-picker.js','./modules/project-detail.js','./modules/todos.js',]);@@ -169,6 +154,7 @@ describe('renderer lazy feature loader', () => {expect(appended.map((script) => script.src)).toEqual(['./modules/library-transfer.js',+ './modules/date-picker.js','./modules/project-detail.js','./modules/todos.js','./modules/auto.js',diff --git a/test/renderer/modal-close-consistency.test.ts b/test/renderer/modal-close-consistency.test.tsindex b5ea10fe..73e78a82 100644--- a/test/renderer/modal-close-consistency.test.ts+++ b/test/renderer/modal-close-consistency.test.ts@@ -5,6 +5,50 @@ import { describe, expect, it } from 'vitest';const root = path.join(__dirname, '../..');const read = (relativePath: string) => fs.readFileSync(path.join(root, relativePath), 'utf8');+function splitSelectorList(list: string): string[] {+ const selectors: string[] = [];+ let depth = 0, start = 0;+ for (let index = 0; index < list.length; index++) {+ if (list[index] === '(') depth++;+ else if (list[index] === ')') depth--;+ else if (list[index] === ',' && depth === 0) {+ selectors.push(list.slice(start, index).trim());+ start = index + 1;+ }+ }+ selectors.push(list.slice(start).trim());+ return selectors;+}++function selectorVariants(selector: string): string[] {+ const group = selector.match(/^(.*?):is\((\.[\w-]+(?:\s*,\s*\.[\w-]+)*)\)(.*)$/);+ if (!group) return [selector.trim()];+ // Expand only a selector-level class group, retaining its context. Nested+ // logical pseudo-classes are outside these simple numeric contracts.+ const depth = [...group[1]].reduce((value, char) => value + (char === '(' ? 1 : char === ')' ? -1 : 0), 0);+ if (depth !== 0) return [selector.trim()];+ return group[2].split(',').flatMap(part => selectorVariants(group[1] + part.trim() + group[3]));+}++// These contracts use simple selectors and numeric declarations. Ignore CSS+// literals and keep each value inside the rule that actually owns the selector.+function declarationsFor(css: string, selector: string) {+ const executable = css.replace(/"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\/\*[\s\S]*?\*\//g, ' ');+ const declarations: Record<string, string> = {};+ const important = new Set<string>();+ for (const [, selectors, body] of executable.matchAll(/([^{}]+)\{([^{}]*)\}/g)) {+ const matches = splitSelectorList(selectors).flatMap(selectorVariants).includes(selector);+ if (!matches) continue;+ for (const [, property, value] of body.matchAll(/(?:^|;)\s*([\w-]+)\s*:\s*([^;]*)/g)) {+ const isImportant = /!important\s*$/i.test(value);+ if (important.has(property) && !isImportant) continue;+ if (isImportant) important.add(property);+ declarations[property] = value.trim().replace(/\s*!important\s*$/i, '');+ }+ }+ return declarations;+}+const indexSource = read('src/renderer/index.html');const styleSource = read('src/renderer/style.css');const backdropDismissSources = [@@ -24,6 +68,40 @@ const dialogSources = [];describe('modal close control consistency', () => {+ it.each([+ ['adjacent rule', '.modal-title { color: red; } .other { font-size: 16px; }'],+ ['commented declaration', '.modal-title { /* font-size: 16px; */ }'],+ ['commented rule', '/* .modal-title { font-size: 16px; } */'],+ ['quoted rule', '.other { content: ".modal-title { font-size: 16px; }"; }'],+ ['quoted declaration', '.modal-title { content: "font-size: 16px;"; }'],+ ['custom property', '.modal-title { --font-size: 16px; }'],+ ['descendant selector', '.other .modal-title { font-size: 16px; }'],+ ['different class', '.modal-title-other { font-size: 16px; }'],+ ['pseudo-class suffix', ':is(.modal-title, .other):disabled { font-size: 16px; }'],+ ['descendant prefix', '.other :is(.unused, .modal-title) { font-size: 16px; }'],+ ['compound prefix', '.other:is(.unused, .modal-title) { font-size: 16px; }'],+ ])('does not borrow a declaration from %s', (_label, css) => {+ expect(declarationsFor(css, '.modal-title')['font-size']).toBeUndefined();+ });++ it('reads shared selectors and later declarations within the owning rules', () => {+ expect(declarationsFor('.other, .modal-title { font-size: 14px; font-size: 16px !important; }', '.modal-title'))+ .toMatchObject({ 'font-size': '16px' });+ expect(declarationsFor(':is(.save-app, .save-new-app) { border-radius: 8px; }', '.save-new-app'))+ .toMatchObject({ 'border-radius': '8px' });+ expect(declarationsFor('.modal-title { font-size: 14px !important; font-size: 16px; }', '.modal-title'))+ .toMatchObject({ 'font-size': '14px' });+ });++ it('retains selector context around class-list groups', () => {+ expect(declarationsFor(':is(.modal-title, .other):disabled { font-size: 16px; }', '.modal-title:disabled'))+ .toMatchObject({ 'font-size': '16px' });+ expect(declarationsFor('.parent :is(.unused, .modal-title) { font-size: 16px; }', '.parent .modal-title'))+ .toMatchObject({ 'font-size': '16px' });+ expect(declarationsFor('.parent:is(.unused, .modal-title) { font-size: 16px; }', '.parent.modal-title'))+ .toMatchObject({ 'font-size': '16px' });+ });+it('does not dismiss the audited open-source dialogs from a backdrop click', () => {for (const source of backdropDismissSources) {expect(source).not.toMatch(/event\.target\s*===\s*overlay|e\.target\s*===\s*overlay/);@@ -47,14 +125,24 @@ describe('modal close control consistency', () => {});it('keeps viewer function buttons on the same small corner radius', () => {- expect(styleSource).toMatch(/\.chat-lightbox-share,\s*\.chat-lightbox-add-library,\s*\.chat-lightbox-reveal\s*\{[\s\S]*?border-radius: 8px;/);- expect(styleSource).toMatch(/\.chat-file-viewer-md-actions \.ctx-viewer-action-icon-btn\s*\{[\s\S]*?border-radius: 8px;/);- expect(styleSource).toMatch(/\.chat-file-viewer-add-library,\s*\.chat-file-viewer-save-app,\s*\.chat-file-viewer-share,\s*\.chat-file-viewer-reveal\s*\{[\s\S]*?border-radius: 8px;/);+ for (const selector of [+ '.chat-lightbox-add-library', '.chat-lightbox-reveal',+ '.chat-file-viewer-md-actions .ctx-viewer-action-icon-btn',+ ...['add-library', 'save-app', 'save-new-app', 'reveal'].map(button => `.chat-file-viewer-${button}`),+ ]) {+ expect(declarationsFor(styleSource, selector)['border-radius'], selector).toBe('8px');+ }});it('uses one title, body, and action-button sizing contract', () => {- expect(styleSource).toMatch(/\.modal-title\s*\{[\s\S]*?font-size:\s*16px;[\s\S]*?font-weight:\s*600;[\s\S]*?line-height:\s*1\.4;/);- expect(styleSource).toMatch(/\.modal-body\s*\{[\s\S]*?font-size:\s*14px;[\s\S]*?line-height:\s*1\.6;/);- expect(styleSource).toMatch(/\.modal-actions \.btn,[\s\S]*?min-width:\s*76px;[\s\S]*?min-height:\s*36px;[\s\S]*?padding:\s*0 16px;[\s\S]*?font-size:\s*13px;/);+ expect(declarationsFor(styleSource, '.modal-title')).toMatchObject({+ 'font-size': '16px', 'font-weight': '600', 'line-height': '1.4',+ });+ expect(declarationsFor(styleSource, '.modal-body')).toMatchObject({+ 'font-size': '14px', 'line-height': '1.6',+ });+ expect(declarationsFor(styleSource, '.modal-actions .btn')).toMatchObject({+ 'min-width': '76px', 'min-height': '36px', padding: '0 16px', 'font-size': '13px',+ });});});diff --git a/test/renderer/modal-ime-dismissal.test.ts b/test/renderer/modal-ime-dismissal.test.tsnew file mode 100644index 00000000..f3683141--- /dev/null+++ b/test/renderer/modal-ime-dismissal.test.ts@@ -0,0 +1,104 @@+import { readFileSync } from 'node:fs';+import { join } from 'node:path';+import vm from 'node:vm';+import ts from 'typescript';+import { describe, expect, it, vi } from 'vitest';++const root = join(__dirname, '../../src/renderer/modules');+const specs = [+ ['library-transfer', 'openLibraryTransfer', 'variable'],+ ['conversation', '_openReferenceTargetPicker', 'listener'],+ ['memory', '_memOpenModal', 'variable'],+ ['search', '_bindGlobalSearch', 'listener'],+ ['chat-artifact', '_openViewer', 'assignment:_viewerKeyHandler'],+ ['chat-artifact', '_ensureMenuEl', 'listener'],+ ['saved-apps', '_openAppViewer', 'assignment:_appViewerKeyHandler'],+] as const;+function keyboardHandler(file: string, owner: string, kind: string) {+ const source = ts.createSourceFile(file, readFileSync(join(root, `${file}.js`), 'utf8'), ts.ScriptTarget.Latest, true);+ let parent: ts.FunctionDeclaration | undefined;+ const findOwner = (node: ts.Node) => { if (ts.isFunctionDeclaration(node) && node.name?.text === owner) parent = node; else ts.forEachChild(node, findOwner); };+ findOwner(source); if (!parent) throw new Error(`Missing owner ${owner}`);+ const handlers: ts.Expression[] = [];+ const find = (node: ts.Node) => {+ if (kind.startsWith('assignment:') && ts.isBinaryExpression(node)+ && node.left.getText(source) === kind.slice('assignment:'.length)) handlers.push(node.right);+ if (kind === 'variable' && ts.isVariableDeclaration(node) && node.name.getText(source) === 'onKey' && node.initializer) handlers.push(node.initializer);+ if (kind === 'listener' && ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression)+ && node.expression.name.text === 'addEventListener' && node.arguments[0]?.getText(source) === "'keydown'"+ && node.arguments[1] && ts.isArrowFunction(node.arguments[1])) handlers.push(node.arguments[1]);+ ts.forEachChild(node, find);+ };+ find(parent); if (handlers.length !== 1) throw new Error(`Ambiguous key handler ${owner}: ${handlers.length}`);+ const close = vi.fn(), open = vi.fn();+ const context = vm.createContext({ close, _closeReferenceTargetPicker: close, _memCloseModal: close, _closeViewer: close, _closeAppViewer: close, _closeMenu: close,+ _appViewerEl: { classList: { contains: () => true } }, el: { style: { display: '' } }, closeGlobalSearch: close, openGlobalSearch: open,+ document: { removeEventListener: vi.fn(), getElementById: () => ({ style: { display: '' } }), querySelector: () => null } });+ return { close, open, context, run: vm.runInContext(`const onKey = (${handlers[0].getText(source)}); onKey`, context) };+}++describe('modal Escape preserves active IME composition', () => {+ for (const [file, owner, kind] of specs) {+ it.each([{ isComposing: true, keyCode: 27 }, { isComposing: false, keyCode: 229 }])(+ `${file} leaves the modal open while composing (%j)`, fields => {+ const h = keyboardHandler(file, owner, kind);+ h.run({ key: 'Escape', ...fields, preventDefault: vi.fn(), stopPropagation: vi.fn() });+ expect(h.close).not.toHaveBeenCalled();+ },+ );+ it(`${file} retains ordinary Escape dismissal and ignores other keys`, () => {+ const h = keyboardHandler(file, owner, kind);+ h.run({ key: 'a', isComposing: false, keyCode: 65, preventDefault: vi.fn(), stopPropagation: vi.fn() });+ expect(h.close).not.toHaveBeenCalled();+ h.run({ key: 'Escape', isComposing: false, keyCode: 27, preventDefault: vi.fn(), stopPropagation: vi.fn() });+ expect(h.close).toHaveBeenCalledOnce();+ });+ }+});++describe('global search shortcut preserves IME composition', () => {+ it.each([+ { key: 'k', metaKey: true, isComposing: true, keyCode: 75 },+ { key: 'K', ctrlKey: true, isComposing: true, keyCode: 75 },+ { key: 'k', metaKey: true, isComposing: false, keyCode: 229 },+ { key: 'K', ctrlKey: true, isComposing: false, keyCode: 229 },+ ])('does not toggle the search panel for a composing shortcut %j', fields => {+ const h = keyboardHandler('search', '_bindGlobalSearch', 'listener');+ h.run({ ...fields, preventDefault: vi.fn(), stopPropagation: vi.fn() });+ expect(h.close).not.toHaveBeenCalled(); expect(h.open).not.toHaveBeenCalled();+ });+});+++function memoryShell() {+ const listeners = new Set<(event: any) => void>();+ let attached: any = null, peak = 0;+ const context: any = {+ window: { addEventListener: vi.fn() }, createLogger: () => ({ debug: vi.fn(), info: vi.fn(), warn: vi.fn(), error: vi.fn() }),+ document: {+ readyState: 'loading',+ addEventListener(type: string, listener: (event: any) => void) { if (type === 'keydown') { listeners.add(listener); peak = Math.max(peak, listeners.size); } },+ removeEventListener(type: string, listener: (event: any) => void) { if (type === 'keydown') listeners.delete(listener); },+ getElementById: (id: string) => id === 'memory-modal-host' ? attached : null,+ createElement: () => ({ remove() { attached = null; } }),+ body: { appendChild(node: any) { attached = node; } },+ },+ };+ vm.createContext(context); vm.runInContext(readFileSync(join(root, 'memory.js'), 'utf8'), context);+ return { context, listeners, open: () => context._memOpenModal(560, '<p>Fixture</p>'),+ close: () => context._memCloseModal(), peak: () => peak, attached: () => attached };+}++describe('memory modal listener lifetime', () => {+ it('releases the document key handler on ordinary close across repeated use', () => {+ const h = memoryShell();+ for (let index = 0; index < 100; index++) { h.open(); h.close(); }+ expect(h.listeners.size).toBe(0); expect(h.peak()).toBe(1); expect(h.attached()).toBeNull();+ });+ it('replaces the old shell without stacking listeners and supports Escape cleanup', () => {+ const h = memoryShell(); h.open(); const first = h.attached(); h.open();+ expect(h.attached()).not.toBe(first); expect(h.listeners.size).toBe(1);+ for (const run of [...h.listeners]) run({ key: 'Escape', isComposing: false, keyCode: 27 });+ expect(h.attached()).toBeNull(); expect(h.listeners.size).toBe(0);+ });+});diff --git a/test/renderer/overlay-manager.test.ts b/test/renderer/overlay-manager.test.tsindex d9b5da2e..3a442075 100644--- a/test/renderer/overlay-manager.test.ts+++ b/test/renderer/overlay-manager.test.ts@@ -83,6 +83,20 @@ describe('application floating layer presentation', () => {expect(f.invoke).toHaveBeenCalledExactlyOnceWith('webAssist.overlayState', expect.objectContaining({ blocked: false }));});+ it('repaints a page that stops being a layer before native acknowledgement', async () => {+ const f = fixture(); f.manager.setBrowserOpen(true); await f.drain();+ f.invoke.mockImplementationOnce(() => new Promise(() => {}));+ // A page panel briefly carries an overlay modifier (detail opened over+ // another page) and drops it again when the detail fails to load.+ const panel = f.add();+ f.manager.refresh();+ expect(panel.classList.contains('ui-overlay-waiting')).toBe(true);+ panel.classList.toggle('fresh-surface', false); f.change(panel); await f.drain();+ expect(f.manager.count()).toBe(0);+ expect(panel.classList.contains('ui-overlay-waiting')).toBe(false);+ expect(f.invoke).toHaveBeenLastCalledWith('webAssist.overlayState', expect.objectContaining({ blocked: false }));+ });+it('handles hidden ancestors, empty roots, visibility-only closing and browser close without a dangling blocker', async () => {const f = fixture(); const a = f.add(); a.parentHidden = true; await f.drain();f.manager.setBrowserOpen(true); await f.drain(); expect(f.manager.count()).toBe(0);diff --git a/test/renderer/project-agent-sharing.test.ts b/test/renderer/project-agent-sharing.test.tsindex f6cb8b5e..2da9827c 100644--- a/test/renderer/project-agent-sharing.test.ts+++ b/test/renderer/project-agent-sharing.test.ts@@ -1,7 +1,7 @@import { readFileSync } from 'node:fs';import path from 'node:path';import vm from 'node:vm';-import { describe, expect, it } from 'vitest';+import { describe, expect, it, vi } from 'vitest';const source = readFileSync(path.join(__dirname, '../../src/renderer/modules/project-detail.js'), 'utf8');const start = source.indexOf('function _renderProjectAgentCards(items) {');@@ -35,3 +35,71 @@ describe('ordinary project Agent controls', () => {});});++// Rows are parsed from the production markup so the click handlers see the+// same data attributes the renderer emits.+function rowHarness(project: Record<string, unknown>, agentDetails: any[]) {+ const cards: any[] = [];+ const list: any = {+ style: {}, html: '',+ set innerHTML(html: string) {+ this.html = html;+ cards.length = 0;+ for (const [tag] of html.matchAll(/<div class="project-agent-row[^>]*>/g)) {+ const attr = (name: string) => tag.match(new RegExp(`${name}="([^"]*)"`))?.[1];+ const handlers: Record<string, (event: any) => Promise<void>> = {};+ const dataset: Record<string, string> = { projectAgentId: attr('data-project-agent-id') || '' };+ const unavailable = attr('data-project-agent-unavailable');+ if (unavailable) dataset.projectAgentUnavailable = unavailable;+ cards.push({ dataset, handlers, querySelector: () => null,+ addEventListener: (event: string, fn: any) => { handlers[event] = fn; } });+ }+ },+ querySelectorAll: () => cards,+ };+ const context: any = {+ createLogger: () => ({ warn: vi.fn(), debug: vi.fn() }),+ document: { readyState: 'loading', addEventListener: vi.fn(),+ getElementById: (id: string) => id === 'project-agents-list' ? list : null },+ window: { addEventListener: vi.fn(), orkas: { invoke: vi.fn() } },+ currentUserId: 'member', escapeHtml: (value: unknown) => String(value ?? ''), t: (key: string) => key,+ _byDisplayName: () => 0, uiToast: vi.fn(), openAgentDetail: vi.fn(async () => true),+ };+ vm.createContext(context);+ vm.runInContext(source, context);+ context._projectUiIconHtml = () => '';+ context.meta = { project, agentDetails };+ vm.runInContext("_projectDetailPid = 'project'; _projectDetailMeta = meta", context);+ context._renderProjectAgents();+ return { context, cards, html: () => list.html };+}++describe('unavailable project Agent rows', () => {+ const ordinary = {};+ const placeholder = { agent_id: 'deleted01', name: '', source: 'custom', enabled: false, unavailable: true };++ it('names a deleted Agent in an ordinary project as unavailable and keeps it removable', () => {+ const { html } = rowHarness(ordinary, [placeholder]);+ expect(html()).toContain('project.bindings.unavailable');+ expect(html()).toMatch(/data-project-agent-run[^>]*disabled/);+ expect(html()).toContain('data-project-agent-remove');+ expect(html()).not.toContain('data-project-agent-unshare');+ });++ it.each([+ ['an ordinary project', ordinary, placeholder, 'project.bindings.unavailable_remove_hint'],+ ])('explains a click on an unavailable row in %s instead of opening a missing detail page', async (_label, project, agent, message) => {+ const { context, cards } = rowHarness(project, [agent]);+ await cards[0].handlers.click({});+ await cards[0].handlers.keydown({ key: 'Enter', preventDefault: vi.fn(), target: {} });+ expect(context.openAgentDetail).not.toHaveBeenCalled();+ expect(context.uiToast.mock.calls).toEqual([[message], [message]]);+ });++ it('still opens the detail page for an available Agent', async () => {+ const { context, cards } = rowHarness(ordinary, [{ agent_id: 'live01', name: 'Live', source: 'custom' }]);+ await cards[0].handlers.click({});+ expect(context.openAgentDetail).toHaveBeenCalledWith('live01');+ expect(context.uiToast).not.toHaveBeenCalled();+ });+});diff --git a/test/renderer/project-todo-controls.test.ts b/test/renderer/project-todo-controls.test.tsindex 758099f9..78fe99d6 100644--- a/test/renderer/project-todo-controls.test.ts+++ b/test/renderer/project-todo-controls.test.ts@@ -243,6 +243,29 @@ describe('project to-do controls', () => {}});+ it('offers only usable Agents for assignment when a bound Agent is unavailable', () => {+ let menu: any[] = [];+ const context = vm.createContext({+ currentUserId: 'me',+ createLogger: () => ({ warn() {}, info() {}, error() {} }),+ document: { readyState: 'loading', addEventListener() {} },+ window: { addEventListener() {}, orkas: { async invoke() { return { ok: true }; } } },+ showContextMenu(_event: any, items: any[]) { menu = items; },+ t: (key: string) => key,+ setTimeout, clearTimeout,+ });+ vm.runInContext(composerAccessorSource, context);+ vm.runInContext(source, context);+ const task = { id: 't_a', status: 'todo', owner_agent_id: 'deleted01', owner_agent: 'Previous owner' };+ const scope = { pid: 'p_personal', project: {}, tasks: [task], agents: [+ { agent_id: 'deleted01', name: '', source: 'custom', enabled: false, unavailable: true },+ { agent_id: 'a', name: 'Alpha' },+ ] };+ context._openTodoAssignMenu({}, 't_a', scope);+ expect(menu.map((item) => item.label)).toEqual(['chat.recipient_commander', 'Alpha']);+ expect(menu.some((item) => item.trailingIcon === 'check')).toBe(false);+ });+it.each(['todo', 'progress', 'review', 'done'])('offers immediate processing only for unfinished %s tasks', async (status) => {const calls: any[] = [];const navigations: any[] = [];diff --git a/test/renderer/todo-editor-agent.test.ts b/test/renderer/todo-editor-agent.test.tsindex e6e9d684..21d5d0da 100644--- a/test/renderer/todo-editor-agent.test.ts+++ b/test/renderer/todo-editor-agent.test.ts@@ -81,6 +81,21 @@ describe('todo editor assignment', () => {expect(patch).toEqual({ projectId: '', taskId: 't_aabbccddeeff', content: 'New', attachment_order: [] });});+ it('keeps an unavailable project owner under its stored name without offering it as a new choice', async () => {+ const h = harness(async (channel) => {+ if (channel === 'projects.bindings.list') return { ok: true, agentDetails: [+ { agent_id: 'removed', name: '', source: 'custom', enabled: false, unavailable: true },+ { agent_id: 'a', name: 'Alpha' },+ ] };+ return { ok: true };+ });+ await h.open({ id: 't_aabbccddeeff', content: 'Old', status: 'todo', owner_agent_id: 'removed', owner_agent: 'Previous owner' }, 'p');+ const options = h.selects['project-todo-agent'].state.options;+ expect(options.map((o: any) => o.value)).toEqual(['', 'commander', 'a', 'removed']);+ expect(options.find((o: any) => o.value === 'removed').label).toBe('Previous owner');+ expect(h.selects['project-todo-agent'].getValue()).toBe('removed');+ });+it('discards stale agent responses when the project changes and never carries an owner across scopes', async () => {let release: (value: any) => void = () => {};const h = harness(async (channel, args) => {