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
Update desktop dependencies and validation support
BlueSkyID666de54696831ab
diff --git a/bin/packaged-entrypoint-gate.cjs b/bin/packaged-entrypoint-gate.cjsindex 8a52f280..68a55a3d 100644--- a/bin/packaged-entrypoint-gate.cjs+++ b/bin/packaged-entrypoint-gate.cjs@@ -234,7 +234,18 @@ const PACKAGED_MCP_RUNTIME_FILES = Object.freeze([// declares; the verifier reads that `type` instead of assuming CommonJS.{ lockPath: 'node_modules/@nodable/entities', packageName: '@nodable/entities', entries: ['src/index.js'] },{ lockPath: 'node_modules/path-expression-matcher', packageName: 'path-expression-matcher', entries: ['lib/pem.cjs'] },- { lockPath: 'node_modules/strnum', packageName: 'strnum', entries: ['strnum.js'] },+ {+ lockPath: 'node_modules/strnum',+ packageName: 'strnum',+ entries: ['strnum.js'],+ // electron-builder can hoist COS's strnum 1.x and move the XML parser's+ // locked 2.x beside its consumer. Check the nearest package first, just+ // as Node does; an invalid nested package must not fall back to the root.+ packagedPaths: [+ 'node_modules/fast-xml-parser/node_modules/strnum',+ 'node_modules/strnum',+ ],+ },{ lockPath: 'node_modules/xml-naming', packageName: 'xml-naming', entries: ['src/index.js'] },]);@@ -620,7 +631,9 @@ function verifyPackagedEntrypointPayload(pcRoot, options = {}) {}for (const spec of PACKAGED_MCP_RUNTIME_FILES) {- const packageDir = path.join(pcRoot, ...(spec.packagedPath || spec.lockPath).split('/'));+ const candidates = (spec.packagedPaths || [spec.packagedPath || spec.lockPath])+ .map((relativePath) => path.join(pcRoot, ...relativePath.split('/')));+ const packageDir = candidates.find((candidate) => fs.existsSync(candidate)) || candidates[0];const packageJson = readJson(`${spec.packageName} package.json`, path.join(packageDir, 'package.json'));const expectedVersion = packageLockPathVersion(packageLock, spec.lockPath);if (String(packageJson.version || '') !== expectedVersion) {diff --git a/bin/packaged-resource-gate.cjs b/bin/packaged-resource-gate.cjsindex 8d06326b..d582e07b 100644--- a/bin/packaged-resource-gate.cjs+++ b/bin/packaged-resource-gate.cjs@@ -114,6 +114,60 @@ const MAC_LOCALIZED_METADATA_CONTRACT = Object.freeze([NSMicrophoneUsageDescription: "Orkas usa il microfono per l’inserimento vocale.",}),}),+ Object.freeze({+ directory: "hi.lproj",+ values: Object.freeze({+ NSMicrophoneUsageDescription: "Orkas वॉइस इनपुट के लिए माइक्रोफ़ोन का उपयोग करता है।",+ }),+ }),+ Object.freeze({+ directory: "id.lproj",+ values: Object.freeze({+ NSMicrophoneUsageDescription: "Orkas menggunakan mikrofon untuk input suara.",+ }),+ }),+ Object.freeze({+ directory: "th.lproj",+ values: Object.freeze({+ NSMicrophoneUsageDescription: "Orkas ใช้ไมโครโฟนสำหรับการป้อนข้อมูลด้วยเสียง",+ }),+ }),+ Object.freeze({+ directory: "tr.lproj",+ values: Object.freeze({+ NSMicrophoneUsageDescription: "Orkas, sesli giriş için mikrofonu kullanır.",+ }),+ }),+ Object.freeze({+ directory: "vi.lproj",+ values: Object.freeze({+ NSMicrophoneUsageDescription: "Orkas sử dụng micrô để nhập liệu bằng giọng nói.",+ }),+ }),+ Object.freeze({+ directory: "zh-Hant.lproj",+ values: Object.freeze({+ NSMicrophoneUsageDescription: "Orkas 會使用麥克風進行語音輸入。",+ }),+ }),+ Object.freeze({+ directory: "pt-PT.lproj",+ values: Object.freeze({+ NSMicrophoneUsageDescription: "O Orkas utiliza o microfone para a entrada de voz.",+ }),+ }),+ Object.freeze({+ directory: "es-419.lproj",+ values: Object.freeze({+ NSMicrophoneUsageDescription: "Orkas usa el micrófono para la entrada de voz.",+ }),+ }),+ Object.freeze({+ directory: "ar.lproj",+ values: Object.freeze({+ NSMicrophoneUsageDescription: "يستخدم Orkas الميكروفون للإدخال الصوتي.",+ }),+ }),]);diff --git a/package-lock.json b/package-lock.jsonindex b414a562..95f1743e 100644--- a/package-lock.json+++ b/package-lock.json@@ -10,12 +10,13 @@"hasInstallScript": true,"license": "MIT","dependencies": {- "@earendil-works/pi-ai": "^0.85.1",+ "@earendil-works/pi-ai": "^0.99.1","@modelcontextprotocol/sdk": "^1.29.0",- "adm-zip": "^0.6.0",+ "adm-zip": "^0.6.1","async-mutex": "^0.5.0","better-sqlite3": "^12.11.1","electron-log": "^5.4.3",+ "fast-xml-parser": "5.7.3","fastembed": "^2.1.0","jimp": "^1.6.1","mammoth": "^1.12.0",@@ -26,7 +27,7 @@"socks-proxy-agent": "^8.0.5","sqlite-vec": "^0.1.9","tsx": "^4.21.0",- "undici": "^7.29.0",+ "undici": "^7.30.0","zod": "^3.24.0"},"devDependencies": {@@ -38,7 +39,7 @@"@types/node": "^25.6.0","@vitest/coverage-v8": "^4.1.11","7zip-bin": "^5.2.0",- "electron": "42.8.0",+ "electron": "42.11.9","ffmpeg-static": "^5.3.0","semver": "7.8.5","tar": "7.5.21",@@ -50,9 +51,9 @@}},"node_modules/@anthropic-ai/sdk": {- "version": "0.123.0",- "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.123.0.tgz",- "integrity": "sha512-Y9oX9mPNGZClHQOFqrWRk43Srcu/UHuPq3rfxxOq7JgW0gi+lJA2MAOK4Ul3k/+AUrwRWFJvd0tK3oC0Pw25dw==",+ "version": "0.124.0",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.124.0.tgz",+ "integrity": "sha512-cN5O8i9UVxHeOQAzj/XjshWXG8KiibJDw9OGpH2Z/eR3n/RBxdoLxDJOcfqAJWvjaMDFfHTBADU04hWRJVkDyA==","license": "MIT","dependencies": {"json-schema-to-ts": "^3.1.1",@@ -140,9 +141,6 @@"cpu": ["x64"],- "libc": [- "glibc"- ],"license": "MIT","optional": true,"os": [@@ -184,88 +182,23 @@"node": ">= 10"}},- "node_modules/@aws-crypto/crc32": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz",- "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==",- "license": "Apache-2.0",- "dependencies": {- "@aws-crypto/util": "^5.2.0",- "@aws-sdk/types": "^3.222.0",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=16.0.0"- }- },- "node_modules/@aws-crypto/sha256-browser": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz",- "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==",- "license": "Apache-2.0",- "dependencies": {- "@aws-crypto/sha256-js": "^5.2.0",- "@aws-crypto/supports-web-crypto": "^5.2.0",- "@aws-crypto/util": "^5.2.0",- "@aws-sdk/types": "^3.222.0",- "@aws-sdk/util-locate-window": "^3.0.0",- "@smithy/util-utf8": "^2.0.0",- "tslib": "^2.6.2"- }- },- "node_modules/@aws-crypto/sha256-js": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz",- "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==",- "license": "Apache-2.0",- "dependencies": {- "@aws-crypto/util": "^5.2.0",- "@aws-sdk/types": "^3.222.0",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=16.0.0"- }- },- "node_modules/@aws-crypto/supports-web-crypto": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz",- "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==",- "license": "Apache-2.0",- "dependencies": {- "tslib": "^2.6.2"- }- },- "node_modules/@aws-crypto/util": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz",- "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==",- "license": "Apache-2.0",- "dependencies": {- "@aws-sdk/types": "^3.222.0",- "@smithy/util-utf8": "^2.0.0",- "tslib": "^2.6.2"- }- },"node_modules/@aws-sdk/client-bedrock-runtime": {- "version": "3.1048.0",- "resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.1048.0.tgz",- "integrity": "sha512-u+NT61JZEkRFtpL0CAw1N1dwxnaLgwVXQl/zjJxTGgLyS/jTIdg2SdoEoCTHxgDyCnqa1HEi9QOoE9/pYRNpOQ==",+ "version": "3.1127.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-bedrock-runtime/-/client-bedrock-runtime-3.1127.0.tgz",+ "integrity": "sha512-IDl/lrPb90aH+pZFHGNDmgH9nAUQj5PlZH1sJ3w7RikctyjHSnY3oNjZhrLoaBoQn/rNK0zsP6OHEqEhj2tdLA==","license": "Apache-2.0","dependencies": {- "@aws-crypto/sha256-browser": "5.2.0",- "@aws-crypto/sha256-js": "5.2.0",- "@aws-sdk/core": "^3.974.11",- "@aws-sdk/credential-provider-node": "^3.972.42",- "@aws-sdk/eventstream-handler-node": "^3.972.16",- "@aws-sdk/middleware-eventstream": "^3.972.12",- "@aws-sdk/middleware-websocket": "^3.972.19",- "@aws-sdk/token-providers": "3.1048.0",- "@aws-sdk/types": "^3.973.8",- "@smithy/core": "^3.24.2",- "@smithy/fetch-http-handler": "^5.4.2",- "@smithy/node-http-handler": "^4.7.2",- "@smithy/types": "^4.14.1",+ "@aws-sdk/core": "^3.977.9",+ "@aws-sdk/credential-provider-node": "^3.972.82",+ "@aws-sdk/eventstream-handler-node": "^3.972.34",+ "@aws-sdk/middleware-eventstream": "^3.972.29",+ "@aws-sdk/middleware-websocket": "^3.972.52",+ "@aws-sdk/token-providers": "3.1127.0",+ "@aws-sdk/types": "^3.974.5",+ "@smithy/core": "^3.33.3",+ "@smithy/fetch-http-handler": "^5.7.2",+ "@smithy/node-http-handler": "^4.11.3",+ "@smithy/types": "^4.17.2","tslib": "^2.6.2"},"engines": {@@ -273,17 +206,17 @@}},"node_modules/@aws-sdk/core": {- "version": "3.974.15",- "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.974.15.tgz",- "integrity": "sha512-UpA0rTGW/tHGITcCqHisbuuEPraYg9GG+mWmXjY5+RxZBMLGe6aL9oe0ix50LztwAcPIkGZLH0yWdMIkCM10hw==",+ "version": "3.978.1",+ "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.978.1.tgz",+ "integrity": "sha512-LbY9aGsEiznDWmUc30Nwv3aIX/+dbwTx8KfS0yOC3NPYMO+O91e6jkT1azf34FwjOndq8/Q+RcVVZz5xnerwdg==","license": "Apache-2.0","dependencies": {- "@aws-sdk/types": "^3.973.9",- "@aws-sdk/xml-builder": "^3.972.26",- "@aws/lambda-invoke-store": "^0.2.2",- "@smithy/core": "^3.24.5",- "@smithy/signature-v4": "^5.4.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/types": "^3.974.6",+ "@aws-sdk/xml-builder": "^3.972.41",+ "@aws/lambda-invoke-store": "^0.3.0",+ "@smithy/core": "^3.35.0",+ "@smithy/signature-v4": "^5.7.3",+ "@smithy/types": "^4.19.0","bowser": "^2.11.0","tslib": "^2.6.2"},@@ -292,15 +225,15 @@}},"node_modules/@aws-sdk/credential-provider-env": {- "version": "3.972.41",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.41.tgz",- "integrity": "sha512-n1EbJ98yvPWWdHZZv8bRBMqqDQJrtgtxyJ4xLy2Uqrh25BCOZQ7nnS1CsFXvuH8r0b0KVHDZEGEH5FxmEMP8jg==",+ "version": "3.972.72",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.72.tgz",+ "integrity": "sha512-xTKO/FWJPozTIXbozVnVGoNBhaGba8TBcx+KyUjRVeOlXE+dUc7GTR1cLvu0uTdIdmemzaFbqqCshXeZA1fZew==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -308,55 +241,41 @@}},"node_modules/@aws-sdk/credential-provider-http": {- "version": "3.972.43",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.43.tgz",- "integrity": "sha512-TT76RN1NkI9WoyZqCNxOw6/WBMF7pYOTJcXbMokNFU+euSG40Kaf/t/FhDACVZWP+43wEM6ZynIPIkzS1wR1iA==",+ "version": "3.972.74",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.74.tgz",+ "integrity": "sha512-u91E/hT8f4d1xy0Jl7VG4nVKJ3lxbrZkoBTeSVoJdWBiSEUMwMS/9+e0H/aJVQV//Lt5wuzP+E69v4aRSsNTmw==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/fetch-http-handler": "^5.4.5",- "@smithy/node-http-handler": "^4.7.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/fetch-http-handler": "^5.8.0",+ "@smithy/node-http-handler": "^4.12.1",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {"node": ">=20.0.0"}},- "node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler": {- "version": "4.7.5",- "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.7.5.tgz",- "integrity": "sha512-3dA9TQ+ybRSZ/m0wnbZhiBy4Dezjgq1Ib/ZZrYTpJDBgpoLLU/SDzZc/g0x0MNAdOJe1wPcM+x2PBRmoOur+Sw==",- "license": "Apache-2.0",- "dependencies": {- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=18.0.0"- }- },"node_modules/@aws-sdk/credential-provider-ini": {- "version": "3.972.46",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.972.46.tgz",- "integrity": "sha512-hvcgcwOiS0nb2XFb5Op1Pz/vYaWz5K8kKullziGpdNRuG0NwzRXseuPt2CoBqknHGaSPVesu1aOn2OcctEYdCA==",+ "version": "3.973.17",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.17.tgz",+ "integrity": "sha512-ged4KXdBkvIC81bLvNHHuQKdKak/VXhQTR1NWYTTqW0474nlmsxy9O/vlgTIohDDWH3xpBdtVMZRyjb+DnocDA==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/credential-provider-env": "^3.972.41",- "@aws-sdk/credential-provider-http": "^3.972.43",- "@aws-sdk/credential-provider-login": "^3.972.45",- "@aws-sdk/credential-provider-process": "^3.972.41",- "@aws-sdk/credential-provider-sso": "^3.972.45",- "@aws-sdk/credential-provider-web-identity": "^3.972.45",- "@aws-sdk/nested-clients": "^3.997.13",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/credential-provider-imds": "^4.3.6",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/credential-provider-env": "^3.972.72",+ "@aws-sdk/credential-provider-http": "^3.972.74",+ "@aws-sdk/credential-provider-login": "^3.972.79",+ "@aws-sdk/credential-provider-process": "^3.972.72",+ "@aws-sdk/credential-provider-sso": "^3.973.16",+ "@aws-sdk/credential-provider-web-identity": "^3.972.78",+ "@aws-sdk/nested-clients": "^3.997.46",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/credential-provider-imds": "^4.5.2",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -364,16 +283,16 @@}},"node_modules/@aws-sdk/credential-provider-login": {- "version": "3.972.45",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.45.tgz",- "integrity": "sha512-MZQv4SNjByk1iOKmrqmzcUF/uCB05wjvEHyXKxmGQTUANTIVayX6HPUF0bzkWLvtnkH7sAn9kUCfkXbSpj9sDA==",+ "version": "3.972.79",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.79.tgz",+ "integrity": "sha512-L+Z85anONJd8MaiuraO4wRxATCdEejBZ3K3eymzWI5JPXa9sOS9CkIm72PBKqXKX+Z9p9NGMX5AIMXm0LEflgw==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/nested-clients": "^3.997.13",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/nested-clients": "^3.997.46",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -381,21 +300,21 @@}},"node_modules/@aws-sdk/credential-provider-node": {- "version": "3.972.47",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.47.tgz",- "integrity": "sha512-HrId+C0DWA5qDIyLG64/kjUB2RNtPypxmABnIctK+TA1P1kHlOYoE/Wf5T5tKOMKgb08P7k/zNyhvfJ3lh5Oag==",+ "version": "3.972.84",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.84.tgz",+ "integrity": "sha512-oHt854odINVwzwsh+c5x69j0ajm4DbqqqVJ+O1ECsCIZeMDAbzFpXItaqP7UZstJj/ATdTk/KFSH0LaNAgV+kA==","license": "Apache-2.0","dependencies": {- "@aws-sdk/credential-provider-env": "^3.972.41",- "@aws-sdk/credential-provider-http": "^3.972.43",- "@aws-sdk/credential-provider-ini": "^3.972.46",- "@aws-sdk/credential-provider-process": "^3.972.41",- "@aws-sdk/credential-provider-sso": "^3.972.45",- "@aws-sdk/credential-provider-web-identity": "^3.972.45",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/credential-provider-imds": "^4.3.6",- "@smithy/types": "^4.14.2",+ "@aws-sdk/credential-provider-env": "^3.972.72",+ "@aws-sdk/credential-provider-http": "^3.972.74",+ "@aws-sdk/credential-provider-ini": "^3.973.17",+ "@aws-sdk/credential-provider-process": "^3.972.72",+ "@aws-sdk/credential-provider-sso": "^3.973.16",+ "@aws-sdk/credential-provider-web-identity": "^3.972.78",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/credential-provider-imds": "^4.5.2",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -403,15 +322,15 @@}},"node_modules/@aws-sdk/credential-provider-process": {- "version": "3.972.41",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.41.tgz",- "integrity": "sha512-7I/n1zkysouLOWvkEhjNEP4vMnD2v4kzzr3/3QBdrripEpn7ap1/I5DF3Hou1SUqkKWo1f3oPGMyFAA1FAMvsQ==",+ "version": "3.972.72",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.72.tgz",+ "integrity": "sha512-rLIp2xbMjX/k9/od7APpqq1ZgXXnV0pOL1Th3ZsL8Wu0TRtBsDTVS8iPqcfRFcHakFxPvR04OSTv2ka2qOb/2A==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -419,17 +338,17 @@}},"node_modules/@aws-sdk/credential-provider-sso": {- "version": "3.972.45",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.972.45.tgz",- "integrity": "sha512-oHgbz/eFD8IKiksqDsz9ZMU4A59BpQq4QwJedBnGD80ZqYcHPPHZBwjBnxLVkB7iRVVHWpDclR8yWdD2PkQIUA==",+ "version": "3.973.16",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.973.16.tgz",+ "integrity": "sha512-IGihaJfFZYacJJr/odqILCoK7W/mvrZ7cuK7ECn3sAu4vLC6u0V8bS7mCGbdugJ8Aum2tnvqmx0F2MRFp2rn9g==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/nested-clients": "^3.997.13",- "@aws-sdk/token-providers": "3.1056.0",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/nested-clients": "^3.997.46",+ "@aws-sdk/token-providers": "3.1138.0",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -437,16 +356,16 @@}},"node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers": {- "version": "3.1056.0",- "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1056.0.tgz",- "integrity": "sha512-81duvlltQlsfn5K+o8zILcystBRdbT1G2JJYVCML5NZHBz4CL/zf+sAemCtBh/uh6RQUMyInGeZLQ7/8igZhbA==",+ "version": "3.1138.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1138.0.tgz",+ "integrity": "sha512-GpyAr0DD63YOEmYFM6Df+gJuIgC92MMTiBK4FTKfxii5MJ9ge20epR7LyroulscYlG89J+ZB2ivFDPjvfQhzdw==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/nested-clients": "^3.997.13",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/nested-clients": "^3.997.46",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -454,16 +373,16 @@}},"node_modules/@aws-sdk/credential-provider-web-identity": {- "version": "3.972.45",- "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.45.tgz",- "integrity": "sha512-CDhzKdb2onv5bpnjn/acgdNmJOQthPDLsPizU7rZflsEcgMMp8Mlri+U5hdxf8ldvZJpvM3vLU6D56vfJm5AMQ==",+ "version": "3.972.78",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.78.tgz",+ "integrity": "sha512-/y9WvNtlcPBGLR0qc1a+9J/xtYZfVczvLUOuXaVWylzttH7ewsxwHtjmiJSolNrVSDorIxHGHMU61CbonRkmwA==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/nested-clients": "^3.997.13",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/nested-clients": "^3.997.46",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -471,14 +390,14 @@}},"node_modules/@aws-sdk/eventstream-handler-node": {- "version": "3.972.18",- "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.972.18.tgz",- "integrity": "sha512-QPQhwY/fstR8fMZFWrsJRNoTP6D1RjRPHGRX7u9/VkF3opCsvD0oXPz6qzkX94SchzvuS5vyFZbJbPcMEs2Jeg==",+ "version": "3.972.35",+ "resolved": "https://registry.npmjs.org/@aws-sdk/eventstream-handler-node/-/eventstream-handler-node-3.972.35.tgz",+ "integrity": "sha512-a8xilRoRaalvSPZdfrs0VY3/BPc0uYhXW56Z/k6nmZ5Vk430LHeowf9APIPq8utM3tMJSNGSSuJMlB9YrPsN+A==","license": "Apache-2.0","dependencies": {- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -486,14 +405,14 @@}},"node_modules/@aws-sdk/middleware-eventstream": {- "version": "3.972.14",- "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.972.14.tgz",- "integrity": "sha512-DoZ4djVj/74XQ6M/IwxuKh543tTvLCL7u1Dx+VDHMgW9yGNrFSJJ1l0LrUQRaekic5CB12wUiiOoHL0VI6H0gg==",+ "version": "3.972.30",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-eventstream/-/middleware-eventstream-3.972.30.tgz",+ "integrity": "sha512-B6gvZlcnRBNWraKgyEjKsbhv+VjtbyHmpU7hmtTHzXpDSxHPpCJnYLpglEOOsF+SFne20DbZC5IVC1aNr2Pb4A==","license": "Apache-2.0","dependencies": {- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -501,17 +420,17 @@}},"node_modules/@aws-sdk/middleware-websocket": {- "version": "3.972.23",- "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.972.23.tgz",- "integrity": "sha512-F0d4A9pJFiwljyKgSwU1Z5n+CXSv8bp+V5SthbS2rftB8wBN9z1K2Yyv3xbeK0AM2T0g4q6Ptf0shFF+oQZyiA==",+ "version": "3.972.54",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-websocket/-/middleware-websocket-3.972.54.tgz",+ "integrity": "sha512-bhESdru8u8KosziH8jcVta/NM/dNreeRz2+2aU86si5bfBYOiJ6IiqD+9U4URUcU5WJO3Yw+jO3GLDIHlscXMQ==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/fetch-http-handler": "^5.4.5",- "@smithy/signature-v4": "^5.4.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/fetch-http-handler": "^5.8.0",+ "@smithy/signature-v4": "^5.7.3",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -519,49 +438,33 @@}},"node_modules/@aws-sdk/nested-clients": {- "version": "3.997.13",- "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.997.13.tgz",- "integrity": "sha512-2pA6eyb5nSo/ZD2cayhOTEMoGQYgspq0RI05GDLkzQ3ajZ6isS6waV6E92Am/hz4LIlLUTrbwPLurJ/fuiHvkg==",+ "version": "3.997.46",+ "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.997.46.tgz",+ "integrity": "sha512-oRxtBcka/JGHGs9l9p9IVajGoTP8vTPmoAzdHGy4Qcy9P5vPnDf6nhIeM/COQNY9k/OahImTRaLkHftoXvfcmQ==","license": "Apache-2.0","dependencies": {- "@aws-crypto/sha256-browser": "5.2.0",- "@aws-crypto/sha256-js": "5.2.0",- "@aws-sdk/core": "^3.974.15",- "@aws-sdk/signature-v4-multi-region": "^3.996.30",- "@aws-sdk/types": "^3.973.9",- "@smithy/core": "^3.24.5",- "@smithy/fetch-http-handler": "^5.4.5",- "@smithy/node-http-handler": "^4.7.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/core": "^3.978.1",+ "@aws-sdk/signature-v4-multi-region": "^3.996.47",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/core": "^3.35.0",+ "@smithy/fetch-http-handler": "^5.8.0",+ "@smithy/node-http-handler": "^4.12.1",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {"node": ">=20.0.0"}},- "node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler": {- "version": "4.7.5",- "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.7.5.tgz",- "integrity": "sha512-3dA9TQ+ybRSZ/m0wnbZhiBy4Dezjgq1Ib/ZZrYTpJDBgpoLLU/SDzZc/g0x0MNAdOJe1wPcM+x2PBRmoOur+Sw==",- "license": "Apache-2.0",- "dependencies": {- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=18.0.0"- }- },"node_modules/@aws-sdk/signature-v4-multi-region": {- "version": "3.996.30",- "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.30.tgz",- "integrity": "sha512-HULDLMVzkmTSEv6//7kx2kRevp/VYUpm8hJNNFbmhxDn0fUiGTxVcM9yg31TukvTq8nyOBDUN2gH0o5IRbKjdw==",+ "version": "3.996.47",+ "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.47.tgz",+ "integrity": "sha512-Zk08macMvQTHzQJCLJVkOlviVoqwYMrpXv4lmLN7b7sAbiMoOK7Go0NYdR5UeF+MW8LIbRmwrNy9u/5VvX1U5g==","license": "Apache-2.0","dependencies": {- "@aws-sdk/types": "^3.973.9",- "@smithy/signature-v4": "^5.4.5",- "@smithy/types": "^4.14.2",+ "@aws-sdk/types": "^3.974.6",+ "@smithy/signature-v4": "^5.7.3",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -569,16 +472,16 @@}},"node_modules/@aws-sdk/token-providers": {- "version": "3.1048.0",- "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1048.0.tgz",- "integrity": "sha512-k0y/GcuesuSfWyUM0WamrGyeZmltRYaPbHO82UDA6mZ/doB+FOHKutikPAtSXMn/hDz970cF+iRuuiYO9VEbAA==",+ "version": "3.1127.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1127.0.tgz",+ "integrity": "sha512-Dv2TMWBshJ+tF6ahs2Sy5bh4Iabsd4GAQqVvE9XZmYmnoaVbpS2QKIKE/HRacc7bTtbjEEvP+laGzHvHlf1CiQ==","license": "Apache-2.0","dependencies": {- "@aws-sdk/core": "^3.974.11",- "@aws-sdk/nested-clients": "^3.997.9",- "@aws-sdk/types": "^3.973.8",- "@smithy/core": "^3.24.2",- "@smithy/types": "^4.14.1",+ "@aws-sdk/core": "^3.977.9",+ "@aws-sdk/nested-clients": "^3.997.44",+ "@aws-sdk/types": "^3.974.5",+ "@smithy/core": "^3.33.3",+ "@smithy/types": "^4.17.2","tslib": "^2.6.2"},"engines": {@@ -586,24 +489,12 @@}},"node_modules/@aws-sdk/types": {- "version": "3.973.9",- "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.973.9.tgz",- "integrity": "sha512-kuBfgQVdcz5Bmapc4A13YbpVw/pXkesfhetcFYwbntqas8sF41OHyd4o28+/TG2ZQdHBsv90Lsu5y6oitvYCdg==",- "license": "Apache-2.0",- "dependencies": {- "@smithy/types": "^4.14.2",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=20.0.0"- }- },- "node_modules/@aws-sdk/util-locate-window": {- "version": "3.965.5",- "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.965.5.tgz",- "integrity": "sha512-WhlJNNINQB+9qtLtZJcpQdgZw3SCDCpXdUJP7cToGwHbCWCnRckGlc6Bx/OhWwIYFNAn+FIydY8SZ0QmVu3xTQ==",+ "version": "3.974.6",+ "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.974.6.tgz",+ "integrity": "sha512-v/clNZzZnDxGyvpHMOGpJKVXFAExJzUNAAjaWGdcx8QAcXLGwTaOkw33p5SHAi0YAioK32xB3hWwOekRVfmfKg==","license": "Apache-2.0","dependencies": {+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -611,13 +502,12 @@}},"node_modules/@aws-sdk/xml-builder": {- "version": "3.972.26",- "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.26.tgz",- "integrity": "sha512-cDbrqvDS73whl6YAPSPq0U6whzG6UWI9PuWh0wrUuGoZexhWEqhdunbukV7iBoaWnFV1AODutM5hOD6rtn439g==",+ "version": "3.972.41",+ "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.41.tgz",+ "integrity": "sha512-ctjVSyCMegrWfXlx6VqzSBFI6UqmQ5ZlnfMhdLIiWmhoH8UAQxSCP5N3OpG7X3k4LnS7ou74C4mt20+bfTW2aQ==","license": "Apache-2.0","dependencies": {- "@smithy/types": "^4.14.2",- "fast-xml-parser": "5.7.3",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -625,9 +515,9 @@}},"node_modules/@aws/lambda-invoke-store": {- "version": "0.2.4",- "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.2.4.tgz",- "integrity": "sha512-iY8yvjE0y651BixKNPgmv1WrQc+GZ142sb0z4gYnChDDY2YqI4P/jsSopBWrKfAt7LOJAkOXt7rC/hms+WclQQ==",+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.3.0.tgz",+ "integrity": "sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==","license": "Apache-2.0","engines": {"node": ">=18.0.0"@@ -729,21 +619,21 @@}},"node_modules/@earendil-works/pi-ai": {- "version": "0.85.1",- "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.85.1.tgz",- "integrity": "sha512-+VgVIJDkDO2efYJKEEqvPTH4zmnIaXdAppGbO+vKFA9qy5PdhFiAenuFAkU+oiCSfOC4dMHDyrjdQeL4ZoC5CQ==",- "license": "MIT",- "dependencies": {- "@anthropic-ai/sdk": "0.123.0",- "@aws-sdk/client-bedrock-runtime": "3.1048.0",- "@earendil-works/pi-telemetry": "^0.85.1",- "@google/genai": "1.52.0",- "@smithy/node-http-handler": "4.7.3",- "http-proxy-agent": "7.0.2",- "https-proxy-agent": "7.0.6",- "openai": "6.40.0",+ "version": "0.99.1",+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.99.1.tgz",+ "integrity": "sha512-4nV9JKc94iPX8bwdGPc2nTuVPKIPsffhnp3WoN9NYCNqbtoOF8LhYcIs/+Sn/alroqJK/5QRu6/Z6Ck+n0hyBA==",+ "license": "MIT",+ "dependencies": {+ "@anthropic-ai/sdk": "0.124.0",+ "@aws-sdk/client-bedrock-runtime": "3.1127.0",+ "@earendil-works/pi-telemetry": "^0.99.1",+ "@google/genai": "2.21.0",+ "@smithy/node-http-handler": "4.12.1",+ "http-proxy-agent": "9.1.0",+ "https-proxy-agent": "9.1.0",+ "openai": "7.19.0","partial-json": "0.1.7",- "typebox": "1.3.7"+ "typebox": "1.3.27"},"bin": {"pi-ai": "dist/cli.js"@@ -753,9 +643,9 @@}},"node_modules/@earendil-works/pi-telemetry": {- "version": "0.85.1",- "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.85.1.tgz",- "integrity": "sha512-Bg/YN6kA7Swja/NQxka8xFdecb4E/auIEGF2G5A25EaQXhRnPj300/7/KpgsDDMYUzHTDAv4RyUxaQPJKW81Rw==",+ "version": "0.99.1",+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-0.99.1.tgz",+ "integrity": "sha512-9PBPjGk+TXRtuMianpqBbHBpYpyKusESF6rwdmgD0WTZSTUQXhcKEO0hAINRLuSwy4V7yPvXV+EVV0ONY7mbpQ==","license": "MIT","engines": {"node": ">=22.19.0"@@ -1447,9 +1337,9 @@]},"node_modules/@google/genai": {- "version": "1.52.0",- "resolved": "https://registry.npmjs.org/@google/genai/-/genai-1.52.0.tgz",- "integrity": "sha512-gwSvbpiN/17O9TbsqSsE/OzZcpv5Fo4RQjdngGgogtuB9RsyJ8ZHhX5KjHj1bp5N9snN2eK8LDGXSaWW2hof8Q==",+ "version": "2.21.0",+ "resolved": "https://registry.npmjs.org/@google/genai/-/genai-2.21.0.tgz",+ "integrity": "sha512-+PDtco2/Z0ONdzCGekCoCT+O1VJS9xJQNN4XzQpXG/t3El/SWWMkCWlFRO1KmivOHPa4Q0VjUYu1HBKCZ/v33Q==","hasInstallScript": true,"license": "Apache-2.0","dependencies": {@@ -1617,9 +1507,6 @@"cpu": ["arm"],- "libc": [- "glibc"- ],"license": "LGPL-3.0-or-later","optional": true,"os": [@@ -1636,9 +1523,6 @@"cpu": ["arm64"],- "libc": [- "glibc"- ],"license": "LGPL-3.0-or-later","optional": true,"os": [@@ -1655,9 +1539,6 @@"cpu": ["ppc64"],- "libc": [- "glibc"- ],"license": "LGPL-3.0-or-later","optional": true,"os": [@@ -1674,9 +1555,6 @@"cpu": ["riscv64"],- "libc": [- "glibc"- ],"license": "LGPL-3.0-or-later","optional": true,"os": [@@ -1693,9 +1571,6 @@"cpu": ["s390x"],- "libc": [- "glibc"- ],"license": "LGPL-3.0-or-later","optional": true,"os": [@@ -1712,9 +1587,6 @@"cpu": ["x64"],- "libc": [- "glibc"- ],"license": "LGPL-3.0-or-later","optional": true,"os": [@@ -1731,9 +1603,6 @@"cpu": ["arm64"],- "libc": [- "musl"- ],"license": "LGPL-3.0-or-later","optional": true,"os": [@@ -1750,9 +1619,6 @@"cpu": ["x64"],- "libc": [- "musl"- ],"license": "LGPL-3.0-or-later","optional": true,"os": [@@ -1769,9 +1635,6 @@"cpu": ["arm"],- "libc": [- "glibc"- ],"license": "Apache-2.0","optional": true,"os": [@@ -1794,9 +1657,6 @@"cpu": ["arm64"],- "libc": [- "glibc"- ],"license": "Apache-2.0","optional": true,"os": [@@ -1819,9 +1679,6 @@"cpu": ["ppc64"],- "libc": [- "glibc"- ],"license": "Apache-2.0","optional": true,"os": [@@ -1844,9 +1701,6 @@"cpu": ["riscv64"],- "libc": [- "glibc"- ],"license": "Apache-2.0","optional": true,"os": [@@ -1869,9 +1723,6 @@"cpu": ["s390x"],- "libc": [- "glibc"- ],"license": "Apache-2.0","optional": true,"os": [@@ -1894,9 +1745,6 @@"cpu": ["x64"],- "libc": [- "glibc"- ],"license": "Apache-2.0","optional": true,"os": [@@ -1919,9 +1767,6 @@"cpu": ["arm64"],- "libc": [- "musl"- ],"license": "Apache-2.0","optional": true,"os": [@@ -1944,9 +1789,6 @@"cpu": ["x64"],- "libc": [- "musl"- ],"license": "Apache-2.0","optional": true,"os": [@@ -2920,9 +2762,9 @@}},"node_modules/@nodable/entities": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-2.1.1.tgz",- "integrity": "sha512-Pig3HxDIoMgjdEH8OCf/dkcTmLFjJRjWuq8jSnklu284/TKOPibSRERmOykiwmyXTtv61mP+44f3GMx0tLAyjg==",+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-2.2.0.tgz",+ "integrity": "sha512-9uGyhaQavEUMC8AIddIjau4NsnsXhou+j5sBAGojCM1oxmQpVKTWR/9JxABD6UAv12vpIms55fPZKFQEhG6uBg==","funding": [{"type": "github",@@ -3027,9 +2869,9 @@"license": "BSD-3-Clause"},"node_modules/@protobufjs/utf8": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.1.tgz",- "integrity": "sha512-oOAWABowe8EAbMyWKM0tYDKi8Yaox52D+HWZhAIJqQXbqe0xI/GV7FhLWqlEKreMkfDjshR5FKgi3mnle0h6Eg==",+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.2.tgz",+ "integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==","license": "BSD-3-Clause"},"node_modules/@rolldown/binding-android-arm64": {@@ -3331,13 +3173,12 @@"license": "MIT"},"node_modules/@smithy/core": {- "version": "3.24.5",- "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.24.5.tgz",- "integrity": "sha512-Kt8phUg45M15EjhYAbZ+fFikYneijLu9Liugz8ZsYz2i8j0hzGv27LWKpEHYRfvj+LyCOSijpcR/2i8RouV+cA==",+ "version": "3.35.0",+ "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.35.0.tgz",+ "integrity": "sha512-zRMhfkByhT2snNdr1si24vJitU6Cr9ix2MikUfWmkAgp4jrNP0GcKSP5YvwQ+TlI8AZXER5QOGJn3JsVtSD9/A==","license": "Apache-2.0","dependencies": {- "@aws-crypto/crc32": "5.2.0",- "@smithy/types": "^4.14.2",+ "@smithy/types": "^4.19.0","tslib": "^2.6.2"},"engines": {@@ -3345,13 +3186,13 @@}},"node_modules/@smithy/credential-provider-imds": {- "version": "4.3.6",- "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.3.6.tgz",- "integrity": "sha512-tHhdiWZfG1ZIh2YcRfPJmY2gHcBmqbAzqm3ER4TIDFYsSEqTD5tICT7cgQ/kI8LRakxp12myOYyK68XPn7MnHw==",+ "version": "4.5.2",+ "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.5.2.tgz",+ "integrity": "sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==","license": "Apache-2.0","dependencies": {- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@smithy/core": "^3.33.2",+ "@smithy/types": "^4.17.2","tslib": "^2.6.2"},"engines": {@@ -3359,39 +3200,27 @@}},"node_modules/@smithy/fetch-http-handler": {- "version": "5.4.5",- "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.4.5.tgz",- "integrity": "sha512-SK3VMeH0fibgdTg2QeB+O4p7Yy/2E5HBOHJeC58FshkDdeuX8lOgO7PfjYfLyPLP1ch55j91cQqKBzDS0mRjSQ==",+ "version": "5.8.0",+ "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.8.0.tgz",+ "integrity": "sha512-ycSJu3tFAQ4v04CBB0agqFMVsSQ1iG3yw+SpgxRqKfaURpQD4CZ8Wn0zPMmSnOuTpTh65Vz+EA0rMrw089wvkA==","license": "Apache-2.0","dependencies": {- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@smithy/core": "^3.33.3",+ "@smithy/types": "^4.18.0","tslib": "^2.6.2"},"engines": {"node": ">=18.0.0"}},- "node_modules/@smithy/is-array-buffer": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",- "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",- "license": "Apache-2.0",- "dependencies": {- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },"node_modules/@smithy/node-http-handler": {- "version": "4.7.3",- "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.7.3.tgz",- "integrity": "sha512-/jPhevcTFPMVl6KNjbaI47iOg1zxC7IsnX4PQDGVZKMFceOXtB8IEYaB7a9VvkP/3oC60WzTeKocvSI7vLT0vA==",+ "version": "4.12.1",+ "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.12.1.tgz",+ "integrity": "sha512-ThMkboGeONWXAelq9FvGsuJC4rOi+qyC4/zhUF58xYpxUg5sQKx2VXZYJmtNjr4dSuBJ1HeJXETQILCz3wOHvw==","license": "Apache-2.0","dependencies": {- "@smithy/core": "^3.24.3",- "@smithy/types": "^4.14.2",+ "@smithy/core": "^3.33.3",+ "@smithy/types": "^4.18.0","tslib": "^2.6.2"},"engines": {@@ -3399,13 +3228,13 @@}},"node_modules/@smithy/signature-v4": {- "version": "5.4.5",- "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.4.5.tgz",- "integrity": "sha512-QBJKWGqIknH0dc9LWpfH1mkdokAx6iXYN3UcQ3eY6uIEyScuoQAhfl94ge7ozUy9WgFUdE8xsvwBjaYBbWmPNA==",+ "version": "5.7.3",+ "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.7.3.tgz",+ "integrity": "sha512-7ImGm+FkHRLcBaRttIAMZ6bzJZWb2cJGoYjq46F2UjycujWzrL9GEN9h4w7eQyXJYnltrUhxbbieBAIRrdqpow==","license": "Apache-2.0","dependencies": {- "@smithy/core": "^3.24.5",- "@smithy/types": "^4.14.2",+ "@smithy/core": "^3.33.3",+ "@smithy/types": "^4.17.2","tslib": "^2.6.2"},"engines": {@@ -3413,9 +3242,9 @@}},"node_modules/@smithy/types": {- "version": "4.14.2",- "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.14.2.tgz",- "integrity": "sha512-P+otAxbV4CqBybp7EkcJCrig63yE2E7PuNVOmilVMRcx/O+QDzGULTrKsq4DV13gSfak9ObPrWaHl/9bL5YcWw==",+ "version": "4.19.0",+ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.19.0.tgz",+ "integrity": "sha512-r7jh49VJxGerfAcTQA6gXcKc+98zOp/tqRwzYjgOE+iSQsP6cEU1hq2QzbuipmP68QtYdY9wKEhiCQZIzHgZ4Q==","license": "Apache-2.0","dependencies": {"tslib": "^2.6.2"@@ -3424,32 +3253,6 @@"node": ">=18.0.0"}},- "node_modules/@smithy/util-buffer-from": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",- "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",- "license": "Apache-2.0",- "dependencies": {- "@smithy/is-array-buffer": "^2.2.0",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@smithy/util-utf8": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",- "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",- "license": "Apache-2.0",- "dependencies": {- "@smithy/util-buffer-from": "^2.2.0",- "tslib": "^2.6.2"- },- "engines": {- "node": ">=14.0.0"- }- },"node_modules/@stablelib/base64": {"version": "1.0.1","resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz",@@ -3758,9 +3561,9 @@}},"node_modules/adm-zip": {- "version": "0.6.0",- "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.0.tgz",- "integrity": "sha512-XleryMhbuksdKtofnWZ9Sk+4CUTbms4Mb/EU32SZwToAyZ5RgVos/ki8n+yr0LWHOGKuakbXTuuYNHLQjhddgg==",+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.1.tgz",+ "integrity": "sha512-Xwrja8nx9e5o2N1my4DsKCeKpdrnACyr1wtbPxBDgGzKzKyE9kRtBFA8mWldI+RVlD7CBZNWY/wQ2+ydwOR6kQ==","license": "MIT","engines": {"node": ">=14.0"@@ -3791,6 +3594,18 @@"integrity": "sha512-uMgjozySS8adZZYePpaWs8cxB9/kdzmpX6SgJZ+wbz1K5eYk5QMYDVJaZKhxyIHUdnnJkfR7SVgStgH7LkGUyg==","license": "MIT"},+ "node_modules/anynum": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/anynum/-/anynum-1.0.1.tgz",+ "integrity": "sha512-N6//FLET/tXYNM/F6ABca1oH6fWB+KlTt909Le28WMDBk8oaT4vY17DCrwg2MvmuqUKt3Ni4N5dGJ/EoBgcO6A==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT"+ },"node_modules/argparse": {"version": "1.0.10","resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",@@ -3968,9 +3783,9 @@"license": "MIT"},"node_modules/brace-expansion": {- "version": "1.1.18",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz",- "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",+ "version": "1.1.21",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz",+ "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==","dev": true,"license": "MIT","dependencies": {@@ -4351,9 +4166,9 @@"license": "MIT"},"node_modules/electron": {- "version": "42.8.0",- "resolved": "https://registry.npmjs.org/electron/-/electron-42.8.0.tgz",- "integrity": "sha512-lgeUDjUuUzUSBchBudmjCZ8ApeYdVneMi17nLRMdfxGw7FyLFligsLtIF+dL3UoNnOsupAwdqVNJCK5MFE82kQ==",+ "version": "42.11.9",+ "resolved": "https://registry.npmjs.org/electron/-/electron-42.11.9.tgz",+ "integrity": "sha512-vPTlQws45virTh1jb/dSROz6xGkXgtEcdyT5n+0+etCmHqMtvp4Pgs6Sx5bvna+AEDAMeq10uRcjdMKCTk2Gtw==","dev": true,"license": "MIT","dependencies": {@@ -4676,9 +4491,9 @@"license": "Unlicense"},"node_modules/fast-uri": {- "version": "3.1.7",- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz",- "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==",+ "version": "3.1.8",+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz",+ "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==","funding": [{"type": "github",@@ -4692,9 +4507,9 @@"license": "BSD-3-Clause"},"node_modules/fast-xml-builder": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.2.0.tgz",- "integrity": "sha512-00aAWieqff+ZJhsXA4g1g7M8k+7AYoMUUHF+/zFb5U6Uv/P0Vl4QZo84/IcufzYalLuEj9928bXN9PbbFzMF0Q==",+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.3.1.tgz",+ "integrity": "sha512-pIM/1n3ntFXKYrUZwW7QCK0gAW7XY+wzj1YMIV3tLDvPj/V+zTGJK5e3/4WJfwj0qWw2ElNXiTixda/R+3YSug==","funding": [{"type": "github",@@ -4703,8 +4518,8 @@],"license": "MIT","dependencies": {- "path-expression-matcher": "^1.5.0",- "xml-naming": "^0.1.0"+ "path-expression-matcher": "^1.6.2",+ "xml-naming": "^0.3.0"}},"node_modules/fast-xml-parser": {@@ -4954,9 +4769,9 @@}},"node_modules/gaxios": {- "version": "7.1.4",- "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.4.tgz",- "integrity": "sha512-bTIgTsM2bWn3XklZISBTQX7ZSddGW+IO3bMdGaemHZ3tbqExMENHLx6kKZ/KlejgrMtj8q7wBItt51yegqalrA==",+ "version": "7.3.1",+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.3.1.tgz",+ "integrity": "sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==","license": "Apache-2.0","dependencies": {"extend": "^3.0.2",@@ -4967,6 +4782,19 @@"node": ">=18"}},+ "node_modules/gaxios/node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.2",+ "debug": "4"+ },+ "engines": {+ "node": ">= 14"+ }+ },"node_modules/gcp-metadata": {"version": "8.1.2","resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.2.tgz",@@ -5094,9 +4922,9 @@}},"node_modules/google-auth-library": {- "version": "10.6.2",- "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.6.2.tgz",- "integrity": "sha512-e27Z6EThmVNNvtYASwQxose/G57rkRuaRbQyxM2bvYLLX/GqWZ5chWq2EBoUchJbCc57eC9ArzO5wMsEmWftCw==",+ "version": "10.9.1",+ "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.9.1.tgz",+ "integrity": "sha512-i1ydyHrqcIxXkWh/uBmVkzCvIuq5yiK2ATndIe5XxKholrG/MTYP9xGYka4sQhrbIAgGjL2B6NOE7rFaiF3fXw==","license": "Apache-2.0","dependencies": {"base64-js": "^1.3.0",@@ -5215,16 +5043,26 @@}},"node_modules/http-proxy-agent": {- "version": "7.0.2",- "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",- "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-9.1.0.tgz",+ "integrity": "sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==","license": "MIT","dependencies": {- "agent-base": "^7.1.0",- "debug": "^4.3.4"+ "agent-base": "9.0.0",+ "debug": "^4.3.4",+ "proxy-agent-negotiate": "1.1.0"},"engines": {- "node": ">= 14"+ "node": ">= 20"+ }+ },+ "node_modules/http-proxy-agent/node_modules/agent-base": {+ "version": "9.0.0",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz",+ "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==",+ "license": "MIT",+ "engines": {+ "node": ">= 20"}},"node_modules/http-response-object": {@@ -5245,16 +5083,26 @@"license": "MIT"},"node_modules/https-proxy-agent": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",- "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-9.1.0.tgz",+ "integrity": "sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA==","license": "MIT","dependencies": {- "agent-base": "^7.1.2",- "debug": "4"+ "agent-base": "9.0.0",+ "debug": "^4.3.4",+ "proxy-agent-negotiate": "1.1.0"},"engines": {- "node": ">= 14"+ "node": ">= 20"+ }+ },+ "node_modules/https-proxy-agent/node_modules/agent-base": {+ "version": "9.0.0",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz",+ "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==",+ "license": "MIT",+ "engines": {+ "node": ">= 20"}},"node_modules/iconv-lite": {@@ -5333,9 +5181,9 @@"license": "ISC"},"node_modules/ip-address": {- "version": "10.4.0",- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.4.0.tgz",- "integrity": "sha512-oSK96Grm3aP6OrS263xVxbNDGVL7rzBtYdpGqlDG8iQdoenDoTs/nkki+DflYbAEE8Xl6o5YxhxlrKvI3nqKXQ==",+ "version": "10.7.2",+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.2.tgz",+ "integrity": "sha512-7H/2gFSIitxc0hG3nOI1glS8QLo/EHBFFLk8vEUjXY/xu0AdL8jZ9U1IzO2PUm0d2D/ofQcAifb0g6OBkt8U7w==","license": "MIT","engines": {"node": ">= 12"@@ -6148,9 +5996,9 @@}},"node_modules/node-gyp/node_modules/undici": {- "version": "6.28.0",- "resolved": "https://registry.npmjs.org/undici/-/undici-6.28.0.tgz",- "integrity": "sha512-LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==",+ "version": "6.29.0",+ "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz",+ "integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==","dev": true,"license": "MIT","engines": {@@ -6252,15 +6100,34 @@}},"node_modules/openai": {- "version": "6.40.0",- "resolved": "https://registry.npmjs.org/openai/-/openai-6.40.0.tgz",- "integrity": "sha512-MWtTjd/gQt4jpbji61NTgFWJLoY/PdRJ6wG9/ZDRMYNMlBKrCrSlkLI+KgHP1vR1qT6LKSAyAqIxno6lcK9JiA==",+ "version": "7.19.0",+ "resolved": "https://registry.npmjs.org/openai/-/openai-7.19.0.tgz",+ "integrity": "sha512-MX2s3u2L5racTO0CC/SWpCOasJQBCJrqLKXK+l82cAhdeF8mPMBEe/gxMm0ZFa2xpKpOFLRjxv5afYEZbBXmbQ==","license": "Apache-2.0",+ "engines": {+ "node": ">=22.0.0"+ },"peerDependencies": {- "ws": "^8.18.0",+ "@aws-sdk/credential-provider-node": ">=3.972.0 <4",+ "@smithy/hash-node": ">=4.3.0 <5",+ "@smithy/signature-v4": ">=5.4.0 <6",+ "undici": ">=5 <9",+ "ws": "^8.21.0","zod": "^3.25 || ^4.0"},"peerDependenciesMeta": {+ "@aws-sdk/credential-provider-node": {+ "optional": true+ },+ "@smithy/hash-node": {+ "optional": true+ },+ "@smithy/signature-v4": {+ "optional": true+ },+ "undici": {+ "optional": true+ },"ws": {"optional": true},@@ -6338,9 +6205,9 @@"license": "MIT"},"node_modules/path-expression-matcher": {- "version": "1.5.0",- "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.5.0.tgz",- "integrity": "sha512-cbrerZV+6rvdQrrD+iGMcZFEiiSrbv9Tfdkvnusy6y0x0GKBXREFg/Y65GhIfm0tnLntThhzCnfKwp1WRjeCyQ==",+ "version": "1.6.2",+ "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.6.2.tgz",+ "integrity": "sha512-enSlaiat05iasnzmgNxRj8reFdj3puY2QpNgP1aPIaVfT6nn9ICuPoFlKHk8EN22HcwewshO+mN2DGbkCEOtqQ==","funding": [{"type": "github",@@ -6600,9 +6467,9 @@}},"node_modules/protobufjs": {- "version": "7.6.5",- "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.5.tgz",- "integrity": "sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==",+ "version": "7.6.6",+ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.6.tgz",+ "integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==","hasInstallScript": true,"license": "BSD-3-Clause","dependencies": {@@ -6635,6 +6502,23 @@"node": ">= 0.10"}},+ "node_modules/proxy-agent-negotiate": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/proxy-agent-negotiate/-/proxy-agent-negotiate-1.1.0.tgz",+ "integrity": "sha512-N8IBcM3UgCVzz2L2Lqv8DVntDnnC8/hiV4nEDUPkqq72TPUgYWjQc+bdZlBPZK9LzPAvOY//gAt0S0DApoOXWQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 20"+ },+ "peerDependencies": {+ "kerberos": "^2.0.0"+ },+ "peerDependenciesMeta": {+ "kerberos": {+ "optional": true+ }+ }+ },"node_modules/pump": {"version": "3.0.4","license": "MIT",@@ -7381,16 +7265,19 @@}},"node_modules/strnum": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.3.0.tgz",- "integrity": "sha512-ums3KNd42PGyx5xaoVTO1mjU1bH3NpY4vsrVlnv9PNGqQj8wd7rJ6nEypLrJ7z5vxK5RP0yMLo6J/Gsm62DI5Q==",+ "version": "2.4.2",+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.4.2.tgz",+ "integrity": "sha512-rDG3Ah4TV0k1hWvLSzkZtMmLN9+eS+h3knq4MP6A42Y3Yh5qGNnOUs1jJkoSr8FG5dsL28c7KgkIBzSEykqtuw==","funding": [{"type": "github","url": "https://github.com/sponsors/NaturalIntelligence"}],- "license": "MIT"+ "license": "MIT",+ "dependencies": {+ "anynum": "^1.0.1"+ }},"node_modules/strtok3": {"version": "10.3.5",@@ -7652,9 +7539,9 @@}},"node_modules/typebox": {- "version": "1.3.7",- "resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.7.tgz",- "integrity": "sha512-meKuifc33Pccx0O6PdIzYMq3Og8zvP4TIi/a+Bw3AEMZMxOD0+RHGQvpglEe6Zdy3wZ8nqn/j95h8LUZLk/6Hg==",+ "version": "1.3.27",+ "resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.27.tgz",+ "integrity": "sha512-zu+jc1pcy4UiNThxikUr36f0Rybk9PEeCg/NE6adeWr/SKsdNO4EzZHYRDlv2YCVAfj3Odq3dESSo/jNyoBXzA==","license": "MIT"},"node_modules/typedarray": {@@ -7695,9 +7582,9 @@"license": "MIT"},"node_modules/undici": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.0.tgz",- "integrity": "sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==",+ "version": "7.30.0",+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",+ "integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==","license": "MIT","engines": {"node": ">=20.18.1"@@ -7987,9 +7874,9 @@}},"node_modules/xml-naming": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.1.0.tgz",- "integrity": "sha512-k8KO9hrMyNk6tUWqUfkTEZbezRRpONVOzUTnc97VnCvyj6Tf9lyUR9EDAIeiVLv56jsMcoXEwjW8Kv5yPY52lw==",+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.0.tgz",+ "integrity": "sha512-ghig2TBE/H11aOVgmahA3MhimvkBr6JIYknH/Dhdk10nXwdbIqBJsbfMxpvFPG8bAw77gN29aQWvKpmVoPlvPQ==","funding": [{"type": "github",diff --git a/package.json b/package.jsonindex 657f898f..1663cfeb 100644--- a/package.json+++ b/package.json@@ -2,7 +2,7 @@"name": "orkas","version": "2026.9.22","private": true,- "description": "Orkas desktop — Electron + Node one-piece app",+ "description": "Orkas desktop \u2014 Electron + Node one-piece app","main": "bootstrap.cjs","type": "commonjs","packageManager": "[email protected]",@@ -56,7 +56,8 @@"prepare": "node scripts/install-git-hooks.mjs","prepack": "node scripts/ensure-dev-dependencies.cjs && node bin/officecli-policy-gate.cjs --require-host-binary","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"+ "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"},"devDependencies": {"@electron/asar": "3.4.1",@@ -67,7 +68,7 @@"@types/node": "^25.6.0","@vitest/coverage-v8": "^4.1.11","7zip-bin": "^5.2.0",- "electron": "42.8.0",+ "electron": "42.11.9","ffmpeg-static": "^5.3.0","semver": "7.8.5","tar": "7.5.21",@@ -75,9 +76,9 @@"vitest": "^4.1.11"},"dependencies": {- "@earendil-works/pi-ai": "^0.85.1",+ "@earendil-works/pi-ai": "^0.99.1","@modelcontextprotocol/sdk": "^1.29.0",- "adm-zip": "^0.6.0",+ "adm-zip": "^0.6.1","async-mutex": "^0.5.0","better-sqlite3": "^12.11.1","electron-log": "^5.4.3",@@ -91,8 +92,9 @@"socks-proxy-agent": "^8.0.5","sqlite-vec": "^0.1.9","tsx": "^4.21.0",- "undici": "^7.29.0",- "zod": "^3.24.0"+ "undici": "^7.30.0",+ "zod": "^3.24.0",+ "fast-xml-parser": "5.7.3"},"overrides": {"@anush008/tokenizers": "0.6.0",@@ -258,7 +260,16 @@"ko.lproj/InfoPlist.strings","de.lproj/InfoPlist.strings","ru.lproj/InfoPlist.strings",- "it.lproj/InfoPlist.strings"+ "it.lproj/InfoPlist.strings",+ "hi.lproj/InfoPlist.strings",+ "id.lproj/InfoPlist.strings",+ "th.lproj/InfoPlist.strings",+ "tr.lproj/InfoPlist.strings",+ "vi.lproj/InfoPlist.strings",+ "zh-Hant.lproj/InfoPlist.strings",+ "pt-PT.lproj/InfoPlist.strings",+ "es-419.lproj/InfoPlist.strings",+ "ar.lproj/InfoPlist.strings"]}],diff --git a/scripts/model-eval-log-policy.mjs b/scripts/model-eval-log-policy.mjsnew file mode 100644index 00000000..ed1774d8--- /dev/null+++ b/scripts/model-eval-log-policy.mjs@@ -0,0 +1,459 @@+import fs from "node:fs";+import path from "node:path";++const RUNTIME_LOG_RE = /^\[\d{2}:\d{2}:\d{2}\.\d{3}\]\s+\[(debug|info|warn|error)\]\s+\[\s*\(([^)]*)\)\s*\]\s*(.*)$/i;+const CASE_MARKER_RE = /^\[model-eval-case\]\s+(start|end)\s+(.+)$/;+const CASE_LOG_RE = /^\[model-eval-case-log ([A-Za-z0-9_./:-]{1,240})\] (.*)$/;+const REPORT_RE = /^report=(.+)$/;+const ELECTRON_MACOS_TASK_POLICY_WARNING_RE = /^\[\d+:\d{4}\/\d{6}\.\d+:ERROR:base\/process\/process_mac\.cc:\d+\]\s+task_policy_set\s+TASK_(?:CATEGORY|SUPPRESSION)_POLICY:\s+\(os\/kern\)\s+invalid argument\s+\(4\)$/;+/** The one runtime warning whose message can span several lines: AgentRunner+ * splices a slice of the failed tool's result, newlines included. */+const TOOL_ERROR_PAYLOAD_RE = /\bTool\s+\S+\s+returned error:/i;++const STDERR_CONTEXT_CONTINUATION_RE = /^(?:\s+|\[\d+\]\s|[}\]]|\(Use\s|<\/?[a-z][\w:.-]*(?:\s[^>]*)?>?\s*$)/i;++/** Exact progress records emitted by bin/ensure-runtime.cjs, not evidence that+ * dependency preparation succeeded; the launcher still checks its exit status. */+function isRuntimePreparationProgress(line) {+ const record = /^runtime (?:python|uv|node)(: downloading| self-check ok) (\{.*\})$/.exec(line);+ if (!record) return false;+ try {+ const metadata = JSON.parse(record[2]);+ const fields = record[1] === ": downloading" ? ["key", "asset"] : ["version"];+ return Object.keys(metadata).length === fields.length+ && fields.every((field) => typeof metadata[field] === "string");+ } catch {+ return false;+ }+}++function findingDetail(code) {+ switch (code) {+ case "tool-definition-soft-budget":+ return "one or more tool definitions exceeded the configured soft description budget";+ case "node-deprecation-warning":+ return "the evaluation process used a deprecated Node.js API";+ case "node-runtime-warning":+ return "the evaluation process emitted a Node.js runtime warning";+ case "runtime-warning":+ return "the production runtime emitted a warning that requires review";+ case "runtime-error":+ return "the production runtime emitted an error-level log";+ case "tool-execution-failed":+ return "a tool failed; inspect its structured call outcome and recovery without erasing the failure";+ case "plain-process-warning":+ return "a non-structured process warning requires review";+ case "electron-runner-failure":+ return "the Electron model-evaluation runner failed before normal completion";+ case "electron-runner-signaled":+ return "the Electron model-evaluation runner was terminated by an operating-system signal";+ case "electron-macos-task-policy-warning":+ return "Chromium could not apply a non-critical macOS task policy to a child process";+ case "unclassified-stderr":+ return "unclassified stderr is treated as a process error until explicitly classified";+ case "log-coverage-gap":+ return "not every captured non-empty process-log line was analyzed";+ case "preflight-failure":+ return "the strict model-evaluation case audit failed";+ case "environment-preflight-failure":+ return "the normal product dependency preparation failed before evaluation dispatch";+ case "launcher-failure":+ return "the model-evaluation launcher could not start a required child process";+ default:+ return "the model-evaluation process emitted a classified diagnostic";+ }+}++function aggregateFindings(findings) {+ const aggregated = new Map();+ for (const finding of findings) {+ const key = [+ finding.severity,+ finding.code,+ finding.phase,+ finding.source || "",+ finding.caseKey || "",+ finding.attribution || "",+ ].join("\0");+ const current = aggregated.get(key);+ if (current) {+ current.count += finding.count;+ } else {+ aggregated.set(key, { ...finding });+ }+ }+ return [...aggregated.values()].sort((left, right) => (+ `${left.severity}/${left.phase}/${left.caseKey || ""}/${left.code}`+ .localeCompare(`${right.severity}/${right.phase}/${right.caseKey || ""}/${right.code}`)+ ));+}++export function createModelEvalLogCollector(phase) {+ const state = {+ phase,+ buffers: { stdout: "", stderr: "" },+ capturedBytes: 0,+ capturedLineCount: 0,+ analyzedLineCount: 0,+ blankLineCount: 0,+ classificationCounts: {+ runtime: 0,+ processWarning: 0,+ processError: 0,+ control: 0,+ other: 0,+ },+ levelCounts: { debug: 0, info: 0, warn: 0, error: 0 },+ streamLineCounts: { stdout: 0, stderr: 0 },+ sourceCounts: {},+ activeCases: new Set(),+ findings: [],+ reportPaths: [],+ };+ const contexts = new Map();+ let context = state;+ let attribution = {};++ const addFinding = (severity, code, source) => {+ state.findings.push({+ severity,+ code,+ count: 1,+ phase,+ ...(source ? { source } : {}),+ ...attribution,+ detail: findingDetail(code),+ });+ };++ const analyzeLine = (stream, rawLine) => {+ state.capturedLineCount += 1;+ state.analyzedLineCount += 1;+ state.streamLineCounts[stream] += 1;+ let line = rawLine.replace(/\r$/, "");+ const framed = line.match(CASE_LOG_RE);+ const legacyKey = state.activeCases.size === 1 ? [...state.activeCases][0] : undefined;+ const key = framed?.[1] ?? legacyKey;+ attribution = framed ? { caseKey: key, attribution: 'explicit' }+ : key ? { caseKey: key, attribution: 'legacy-marker' }+ : state.activeCases.size > 1 ? { attribution: 'ambiguous' } : {};+ if (framed) line = framed[2];+ // Continuation windows belong to one case and stream, not whichever case+ // happened to emit the previous process-wide warning.+ const contextKey = `${stream}:${key ?? '<unattributed>'}`;+ if (!contexts.has(contextKey)) contexts.set(contextKey, {});+ context = contexts.get(contextKey);+ if (!line.trim()) {+ state.blankLineCount += 1;+ return;+ }++ const marker = line.match(CASE_MARKER_RE);+ if (marker) {+ context.nodeToolPayloadRemaining = 0;+ context.nodeToolDiagnostic = false;+ state.classificationCounts.control += 1;+ if (marker[1] === "start") state.activeCases.add(marker[2].trim());+ else state.activeCases.delete(marker[2].trim());+ return;+ }+ const report = line.match(REPORT_RE);+ if (report) {+ state.classificationCounts.control += 1;+ state.reportPaths.push(report[1].trim());+ return;+ }++ const runtime = line.match(RUNTIME_LOG_RE);+ if (runtime) {+ context.nodeToolPayloadRemaining = 0;+ context.nodeToolDiagnostic = false;+ const level = runtime[1].toLowerCase();+ const source = runtime[2].trim() || "unknown";+ const message = runtime[3];+ state.classificationCounts.runtime += 1;+ state.levelCounts[level] += 1;+ state.sourceCounts[source] = (state.sourceCounts[source] || 0) + 1;+ if (level === "error") {+ addFinding("error", "runtime-error", source);+ } else if (level === "warn") {+ addFinding(+ "warning",+ /tool definition description exceeds soft budget/i.test(message)+ ? "tool-definition-soft-budget"+ : "runtime-warning",+ source,+ );+ }+ context.stderrContext = stream === "stderr" && (level === "warn" || level === "error")+ ? level+ : undefined;+ // AgentRunner logs a failed tool by splicing the first 150 characters of+ // the tool result into one warn record, and a tool result carries its own+ // newlines, so that single record arrives as several stderr lines. Only+ // the first one keeps the log prefix; the rest used to fall through to+ // the unclassified branch and fail the run for output the runtime was+ // asked to print. The window opens only for this known emitter and closes+ // at the next log record, so genuinely unknown stderr still fails.+ context.stderrPayload = stream === "stderr" && level === "warn"+ && TOOL_ERROR_PAYLOAD_RE.test(message);+ return;+ }++ if (stream === "stderr") {+ if (line === '[agent-runner] Tool returned error {') {+ state.classificationCounts.runtime += 1;+ state.levelCounts.warn += 1;+ context.stderrContext = undefined;+ context.stderrPayload = false;+ context.nodeToolDiagnostic = true;+ addFinding('warning', 'tool-execution-failed', 'agent-runner');+ return;+ }+ if (context.nodeToolDiagnostic) {+ if (line === '}') {+ context.nodeToolDiagnostic = false;+ state.classificationCounts.other += 1;+ return;+ }+ if (/^\s+(?:tool: '[A-Za-z0-9_-]+',?|result: \{ text_hash: '[a-f0-9]{12}', text_chars: \d+ \},?)$/.test(line)) {+ state.classificationCounts.other += 1;+ return;+ }+ context.nodeToolDiagnostic = false;+ }+ // Node-only core-agent uses console.warn rather than Electron's prefixed+ // logger. Admit only its known tool-failure emitter, not arbitrary prose.+ const toolError = /^\[agent-runner\] Tool [A-Za-z0-9_]+ returned error: ?(.*)$/.exec(line);+ if (toolError) {+ state.classificationCounts.runtime += 1;+ state.levelCounts.warn += 1;+ context.stderrContext = undefined;+ context.stderrPayload = false;+ context.nodeToolPayloadRemaining = Math.max(0, 150 - toolError[1].length);+ addFinding("warning", "tool-execution-failed", "agent-runner");+ return;+ }+ if (context.nodeToolPayloadRemaining > 0) {+ const remaining = context.nodeToolPayloadRemaining;+ context.nodeToolPayloadRemaining = 0;+ if (line.length + 1 <= remaining && !/^\[[A-Za-z]/.test(line)) {+ context.nodeToolPayloadRemaining = remaining - line.length - 1;+ state.classificationCounts.other += 1;+ return;+ }+ }+ if (/^\[model-eval\]\s+network proxy source=/i.test(line)) {+ state.classificationCounts.control += 1;+ context.stderrContext = undefined;+ context.stderrPayload = false;+ return;+ }+ if (phase === "environment" && isRuntimePreparationProgress(line)) {+ state.classificationCounts.control += 1;+ context.stderrContext = undefined;+ context.stderrPayload = false;+ return;+ }+ if (/\bDeprecationWarning\b|\[DEP\d+\]/i.test(line)) {+ state.classificationCounts.processWarning += 1;+ state.levelCounts.warn += 1;+ context.stderrContext = "warning";+ context.stderrPayload = false;+ addFinding("warning", "node-deprecation-warning", "node");+ return;+ }+ // The explicit plain-process prefix also matches the generic Node+ // Warning alternative; resolve its existing category before that branch.+ if (/^warning:/i.test(line)) {+ state.classificationCounts.processWarning += 1;+ state.levelCounts.warn += 1;+ context.stderrContext = "warning";+ context.stderrPayload = false;+ addFinding("warning", "plain-process-warning", "stderr");+ return;+ }+ if (/\b(?:ExperimentalWarning|MaxListenersExceededWarning|Warning):/i.test(line)) {+ state.classificationCounts.processWarning += 1;+ state.levelCounts.warn += 1;+ context.stderrContext = "warning";+ context.stderrPayload = false;+ addFinding("warning", "node-runtime-warning", "node");+ return;+ }+ if (ELECTRON_MACOS_TASK_POLICY_WARNING_RE.test(line)) {+ state.classificationCounts.processWarning += 1;+ state.levelCounts.warn += 1;+ context.stderrContext = "warning";+ context.stderrPayload = false;+ addFinding("warning", "electron-macos-task-policy-warning", "electron");+ return;+ }+ if (/model-eval Electron runner failed|failed to start .*runner/i.test(line)) {+ state.classificationCounts.processError += 1;+ state.levelCounts.error += 1;+ context.stderrContext = "error";+ context.stderrPayload = false;+ addFinding("error", "electron-runner-failure", "launcher");+ return;+ }+ if (+ context.stderrContext+ && STDERR_CONTEXT_CONTINUATION_RE.test(line)+ ) {+ state.classificationCounts.other += 1;+ return;+ }+ if (context.stderrPayload) {+ state.classificationCounts.other += 1;+ return;+ }+ state.classificationCounts.processError += 1;+ state.levelCounts.error += 1;+ context.stderrContext = "error";+ context.stderrPayload = false;+ addFinding("error", "unclassified-stderr", "stderr");+ return;+ }++ if (/^warning:/i.test(line)) {+ state.classificationCounts.processWarning += 1;+ state.levelCounts.warn += 1;+ addFinding("warning", "plain-process-warning", "stdout");+ return;+ }+ state.classificationCounts.other += 1;+ };++ const ingest = (stream, chunk) => {+ const text = Buffer.isBuffer(chunk) ? chunk.toString("utf8") : String(chunk);+ state.capturedBytes += Buffer.byteLength(text, "utf8");+ state.buffers[stream] += text;+ const lines = state.buffers[stream].split("\n");+ state.buffers[stream] = lines.pop() || "";+ for (const line of lines) analyzeLine(stream, line);+ };++ const finish = () => {+ for (const stream of ["stdout", "stderr"]) {+ if (state.buffers[stream].length) analyzeLine(stream, state.buffers[stream]);+ state.buffers[stream] = "";+ }+ const coveragePassed = state.capturedLineCount === state.analyzedLineCount;+ const findings = aggregateFindings([+ ...state.findings,+ ...(coveragePassed ? [] : [{+ severity: "error",+ code: "log-coverage-gap",+ count: 1,+ phase,+ detail: findingDetail("log-coverage-gap"),+ }]),+ ]);+ return {+ policyVersion: 2,+ phase,+ passed: coveragePassed && !findings.some((finding) => finding.severity === "error"),+ requiresReview: findings.length > 0,+ coveragePassed,+ capturedBytes: state.capturedBytes,+ capturedLineCount: state.capturedLineCount,+ analyzedLineCount: state.analyzedLineCount,+ blankLineCount: state.blankLineCount,+ classificationCounts: { ...state.classificationCounts },+ levelCounts: { ...state.levelCounts },+ streamLineCounts: { ...state.streamLineCounts },+ sourceCounts: { ...state.sourceCounts },+ findings,+ reportPaths: [...new Set(state.reportPaths)],+ };+ };++ return { ingest, finish, addFinding: (...args) => { attribution = {}; addFinding(...args); } };+}++export function mergeModelEvalLogAnalyses(analyses) {+ const findings = aggregateFindings(analyses.flatMap((analysis) => analysis.findings));+ const sumObject = (key) => Object.fromEntries(+ [...new Set(analyses.flatMap((analysis) => Object.keys(analysis[key] || {})))]+ .map((name) => [+ name,+ analyses.reduce((sum, analysis) => sum + Number(analysis[key]?.[name] || 0), 0),+ ]),+ );+ const capturedLineCount = analyses.reduce((sum, item) => sum + item.capturedLineCount, 0);+ const analyzedLineCount = analyses.reduce((sum, item) => sum + item.analyzedLineCount, 0);+ const coveragePassed = analyses.every((item) => item.coveragePassed)+ && capturedLineCount === analyzedLineCount;+ return {+ policyVersion: 2,+ passed: coveragePassed && !findings.some((finding) => finding.severity === "error"),+ requiresReview: findings.length > 0,+ coveragePassed,+ capturedBytes: analyses.reduce((sum, item) => sum + item.capturedBytes, 0),+ capturedLineCount,+ analyzedLineCount,+ blankLineCount: analyses.reduce((sum, item) => sum + item.blankLineCount, 0),+ classificationCounts: sumObject("classificationCounts"),+ levelCounts: sumObject("levelCounts"),+ streamLineCounts: sumObject("streamLineCounts"),+ sourceCounts: sumObject("sourceCounts"),+ phases: analyses.map((analysis) => ({+ phase: analysis.phase,+ passed: analysis.passed,+ requiresReview: analysis.requiresReview,+ capturedLineCount: analysis.capturedLineCount,+ analyzedLineCount: analysis.analyzedLineCount,+ })),+ findings,+ reportPaths: [...new Set(analyses.flatMap((analysis) => analysis.reportPaths || []))],+ };+}++export function attachProcessLogAnalysis(reportPath, analysis) {+ const report = JSON.parse(fs.readFileSync(reportPath, "utf8"));+ report.processLogAnalysis = analysis;+ const temporary = `${reportPath}.logs-${process.pid}.tmp`;+ fs.writeFileSync(temporary, `${JSON.stringify(report, null, 2)}\n`, "utf8");+ fs.renameSync(temporary, reportPath);+}++export function attachProcessTermination(reportPath, termination) {+ const report = JSON.parse(fs.readFileSync(reportPath, "utf8"));+ const observedAt = new Date().toISOString();+ const signal = String(termination?.signal || "unknown").slice(0, 32);+ report.processTermination = {+ kind: "signal",+ signal,+ observedAt,+ };+ if (report.runStatus === "running") {+ report.runStatus = "failed";+ report.completedAt = observedAt;+ report.failure = {+ code: "runner-signaled",+ phase: "process-lifecycle",+ ...(report.progress?.activeCase ? { caseKey: report.progress.activeCase } : {}),+ detail: `the Electron model-evaluation runner was terminated by ${signal}`,+ };+ }+ const temporary = `${reportPath}.termination-${process.pid}.tmp`;+ fs.writeFileSync(temporary, `${JSON.stringify(report, null, 2)}\n`, "utf8");+ fs.renameSync(temporary, reportPath);+}++export function resolveReportedPath(cwd, reportedPath) {+ return path.isAbsolute(reportedPath) ? reportedPath : path.resolve(cwd, reportedPath);+}++export function formatProcessLogSummary(analysis) {+ const status = !analysis.passed ? "FAIL" : analysis.requiresReview ? "WARN" : "PASS";+ const findingCounts = analysis.findings+ .map((finding) => `${finding.severity}:${finding.code}=${finding.count}`)+ .join(",");+ return `[model-eval-log-analysis] ${status}`+ + ` coverage=${analysis.analyzedLineCount}/${analysis.capturedLineCount}`+ + ` warnings=${analysis.levelCounts.warn || 0}`+ + ` errors=${analysis.levelCounts.error || 0}`+ + (findingCounts ? ` findings=${findingCounts}` : "");+}diff --git a/scripts/run-platform-native-tests.mjs b/scripts/run-platform-native-tests.mjsindex 8d488c99..6f4f1304 100644--- a/scripts/run-platform-native-tests.mjs+++ b/scripts/run-platform-native-tests.mjs@@ -97,21 +97,30 @@ if (result.status !== 0) process.exit(result.status ?? 1);// not exist. Composition inspect measures frame 0 in a real window, so its// runtime probe — and every verdict that depends on measuring the page — is// unreachable from them and belongs in this lane, which already requires a-// desktop host. Kept as its own step so a rendering regression reads as one-// rather than being attributed to the Vitest run.-console.log('[platform-native-tests] composition inspect canary (GUI Electron)');-const canary = spawnSync(process.execPath, [resolve(pcRoot, 'test', 'gui', 'run-inspect-canary.mjs')], {- cwd: pcRoot,- env: { ...process.env, ORKAS_PLATFORM_NATIVE_TEST: '1' },- stdio: 'inherit',- windowsHide: true,-});+// desktop host. Background browser input needs a page that no automation+// client keeps painting, which Playwright E2E cannot provide. Each canary is+// its own step so a rendering regression reads as one rather than being+// attributed to the Vitest run.+let status = 0;+for (const [label, script] of [+ ['composition inspect canary', 'run-inspect-canary.mjs'],+ ['background browser input canary', 'run-web-assist-input-canary.mjs'],+]) {+ console.log(`[platform-native-tests] ${label} (GUI Electron)`);+ const canary = spawnSync(process.execPath, [resolve(pcRoot, 'test', 'gui', script)], {+ cwd: pcRoot,+ env: { ...process.env, ORKAS_PLATFORM_NATIVE_TEST: '1' },+ stdio: 'inherit',+ windowsHide: true,+ });-if (canary.error) throw canary.error;-if (canary.status === 2) {- // Distinct from a failed case: this host gave the probe no window, so the- // lane proved nothing. Fail rather than skip — silence here is what let the- // gap live in the first place.- console.error('[platform-native-tests] inspect canary could not obtain a window; run it on a desktop session with a display');+ if (canary.error) throw canary.error;+ if (canary.status === 2) {+ // Distinct from a failed case: this host gave the probe no window, so the+ // lane proved nothing. Fail rather than skip — silence here is what let the+ // gap live in the first place.+ console.error(`[platform-native-tests] ${label} could not obtain a window; run it on a desktop session with a display`);+ }+ if (canary.status !== 0 && status === 0) status = canary.status ?? 1;}-process.exit(canary.status ?? 1);+process.exit(status);diff --git a/test/e2e/fixtures/electron-cleanup.ts b/test/e2e/fixtures/electron-cleanup.tsindex 6b5a3bf0..e656cfbc 100644--- a/test/e2e/fixtures/electron-cleanup.ts+++ b/test/e2e/fixtures/electron-cleanup.ts@@ -11,6 +11,14 @@ type OwnedApplication = {/** Run quit on the normal event loop, outside the inspector evaluation stack.* Keep Electron's before-quit flushes and wait for the actual application close. */export async function requestElectronQuit(app: ElectronApplication): Promise<void> {+ // Closing the final window already starts normal shutdown on Windows/Linux.+ // The inspector may disconnect before a second app.quit() can be evaluated.+ if (process.platform !== 'darwin' && app.windows().length === 0) {+ const child = app.process();+ if (child.exitCode !== null || child.signalCode !== null) return;+ await new Promise<void>(resolve => child.once('exit', () => resolve()));+ return;+ }let closed = false;let complete!: () => void;const completion = new Promise<void>(resolve => { complete = resolve; });diff --git a/test/e2e/fixtures/orkas.ts b/test/e2e/fixtures/orkas.tsindex 14985155..c42c40c4 100644--- a/test/e2e/fixtures/orkas.ts+++ b/test/e2e/fixtures/orkas.ts@@ -61,6 +61,11 @@ type OrkasOptions = {updateStub?: boolean;metacognitionEnabled?: boolean;enableSystemProxy?: boolean;+ /** Language persisted before launch. `null` deliberately leaves the+ * preference absent so boot must detect Electron's system locale. */+ seedLanguage?: 'en' | 'zh' | 'ja' | 'pt' | null;+ /** Process-local system language override for deterministic first-boot E2E. */+ appLocale?: string;};export type CliStubInvocation = {@@ -217,7 +222,7 @@ type ModelToolScenario =kind: 'project-instructions';instructions: string;finalText: string;- toolDelayMs: number;+ beforeTool?: Promise<void>;}| {kind: 'knowledge-base';@@ -712,20 +717,20 @@ input.on('line', line => {});`;}-function seedUserWorkspace(workspaceRoot: string, userId: string): void {+function seedUserWorkspace(workspaceRoot: string, userId: string, seedLanguage: OrkasOptions['seedLanguage'] = 'en'): void {writeJson(path.join(workspaceRoot, userId, 'cloud', 'config', 'preferences.json'), {- language: 'en', task_notifications_enabled: true,+ ...(seedLanguage ? { language: seedLanguage } : {}), task_notifications_enabled: true,metacognition_enabled: false, global_skill_roots_enabled: false,});}-function seedWorkspace(workspaceRoot: string): void {+function seedWorkspace(workspaceRoot: string, seedLanguage: OrkasOptions['seedLanguage'] = 'en'): void {const userId = LOCAL_USER_ID;writeJson(path.join(workspaceRoot, 'open-users.json'), {open_current_user_id: userId,users: [{ user_id: userId, created_at: '2026-01-01T00:00:00.000Z' }],});- seedUserWorkspace(workspaceRoot, userId);+ seedUserWorkspace(workspaceRoot, userId, seedLanguage);}@@ -743,6 +748,7 @@ export class OrkasTestApp {readonly updateStub: boolean;readonly metacognitionEnabled: boolean;readonly enableSystemProxy: boolean;+ readonly appLocale: string;readonly cliStatePath: string;readonly fakeOpenCodePath: string | null;readonly fakeHermesPath: string | null;@@ -828,6 +834,7 @@ export class OrkasTestApp {this.updateStub = options.updateStub === true;this.metacognitionEnabled = options.metacognitionEnabled === true;this.enableSystemProxy = options.enableSystemProxy === true;+ this.appLocale = options.appLocale || '';this.root = mkdtempSync(path.join(options.rootParent ?? tmpdir(), 'orkas-e2e-'));this.workspaceRoot = path.join(this.root, 'workspace');this.userWorkspaceRoot = path.join(this.root, 'userWorkSpace');@@ -861,7 +868,7 @@ export class OrkasTestApp {modelListResponses: 0,} satisfies CliStubState);}- seedWorkspace(this.workspaceRoot);+ seedWorkspace(this.workspaceRoot, options.seedLanguage);if (this.updateStub) {writeJson(path.join(this.workspaceRoot, this.activeUserId, 'local', 'config', 'remote-config.json'),@@ -939,9 +946,14 @@ export class OrkasTestApp {// observed request metadata depend on the developer's terminal.delete environment.ORKAS_CLIENT_CHANNEL;delete environment.ORKAS_CHANNEL;-+ // Chromium's --lang does not change getPreferredSystemLanguages() on macOS.+ // Override this process's AppleLanguages too, without changing host defaults.+ const localeArgs = this.appLocale ? [+ `--lang=${this.appLocale}`,+ ...(process.platform === 'darwin' ? ['-AppleLanguages', `(${this.appLocale})`] : []),+ ] : [];const app = await electron.launch({- args: ['.'],+ args: [...(this.options.softwareRendering ? ['--disable-gpu'] : []), ...(this.options.captureRendererErrorWindows ? ['--require', path.join(__dirname, 'preview-recovery-preload.cjs')] : []), '.', ...localeArgs],cwd: PC_ROOT,env: environment,timeout: 30_000,@@ -1560,11 +1572,10 @@ export class OrkasTestApp {setProjectInstructionsScenario(instructions: string,finalText: string,- options: { toolDelayMs?: number } = {},+ options: { beforeTool?: Promise<void> } = {},): void {if (!this.modelStub) throw new Error('The local model stub is not enabled for this fixture');- const toolDelayMs = options.toolDelayMs ?? 0;- if (!instructions.trim() || !finalText.trim() || toolDelayMs < 0) {+ if (!instructions.trim() || !finalText.trim()) {throw new Error('The project-instructions scenario requires full replacement text and a final reply');}this.modelToolScenarioRequestStart = this.modelRequests.length;@@ -1572,7 +1583,7 @@ export class OrkasTestApp {kind: 'project-instructions',instructions,finalText,- toolDelayMs,+ beforeTool: options.beforeTool,};}@@ -3019,10 +3030,10 @@ export class OrkasTestApp {'project_instructions',{ instructions: scenario.instructions },);- if (scenario.toolDelayMs > 0) {- setTimeout(() => {+ if (scenario.beforeTool) {+ void scenario.beforeTool.then(() => {if (!response.destroyed) finishImmediately(eventsForTool);- }, scenario.toolDelayMs);+ });} else {finishImmediately(eventsForTool);}diff --git a/test/e2e/fixtures/web-app-log-analysis.ts b/test/e2e/fixtures/web-app-log-analysis.tsnew file mode 100644index 00000000..87d15d9a--- /dev/null+++ b/test/e2e/fixtures/web-app-log-analysis.ts@@ -0,0 +1,53 @@+import { createModelEvalLogCollector } from '../../../scripts/model-eval-log-policy.mjs';++export interface RecoveredRendererRange { start: number; end: number; diagnosticIndex: number }++/** Preserve raw logs and original severity, then classify only host-attributed+ * renderer records whose recovery has been independently verified. */+export function analyzeWebAppLogs(log: string, recovered: readonly RecoveredRendererRange[] = []) {+ const original = createModelEvalLogCollector('web-app-generation');+ const reviewed = createModelEvalLogCollector('web-app-generation');+ const lines = log.split(/\r?\n/);+ const starts = new Set<number>();+ for (const range of recovered) {+ if (!Number.isInteger(range.start) || !Number.isInteger(range.end)+ || range.start < 1 || range.end < range.start || range.end > lines.length+ || !/^\[renderer:(?:error|pageerror)\] /.test(lines[range.start - 1])) {+ throw new Error('Invalid recovered renderer diagnostic range');+ }+ starts.add(range.start);+ }+ let stream = 'stdout';+ for (const [index, raw] of lines.entries()) {+ let line = raw;+ const prefix = /^\[(main|renderer):([^\]]+)\] ?/.exec(line);+ if (prefix) {+ stream = prefix[1] === 'main' && prefix[2] === 'stderr' ? 'stderr' : 'stdout';+ line = line.slice(prefix[0].length);+ if (prefix[1] === 'renderer' && ['warning', 'error', 'pageerror'].includes(prefix[2])) {+ line = `[00:00:00.000] [${prefix[2] === 'warning' ? 'warn' : 'error'}] [(renderer)] ${line}`;+ }+ }+ if (/^===/.test(line)) stream = 'stdout';+ if (/^Debugger (?:listening|ending) on ws:\/\/127\.0\.0\.1:\d+\/[a-f0-9-]+$/.test(line)+ || line === 'For help, see: https://nodejs.org/learn/getting-started/debugging'+ || line === 'Waiting for the debugger to disconnect...') {+ original.ingest('stdout', '[playwright-debugger] lifecycle\n');+ reviewed.ingest('stdout', '[playwright-debugger] lifecycle\n');+ continue;+ }+ if (line.startsWith('[fixture-cleanup] ')) {+ original.ingest('stdout', line + '\n');+ reviewed.ingest('stdout', line + '\n');+ continue;+ }+ line = line.replace(/^\[\d{4}-\d{2}-\d{2} (\d{2}:\d{2}:\d{2}\.\d{3})\]/, '[$1]');+ original.ingest(stream, line + '\n');+ reviewed.ingest(stream, (starts.has(index + 1)+ ? `[00:00:00.000] [warn] [(preview-recovery)] Recovered renderer ${prefix![2]} retained at raw log line ${index + 1}`+ : line) + '\n');+ }+ const initial = original.finish();+ return { ...reviewed.finish(), originalLevelCounts: initial.levelCounts, originalFindings: initial.findings,+ recoveredRendererErrorCount: starts.size, recoveredRendererRanges: recovered };+}diff --git a/test/helpers/capture-main-log-workers.ts b/test/helpers/capture-main-log-workers.tsindex 63eaf9b2..84ac617c 100644--- a/test/helpers/capture-main-log-workers.ts+++ b/test/helpers/capture-main-log-workers.ts@@ -5,6 +5,8 @@ import { expect, vi } from 'vitest';export async function captureMainLogWorkers(): Promise<() => Promise<void>> {type DeliveryModule = typeof import('../../src/main/util/log-delivery');const deliveries: ReturnType<DeliveryModule['createLogDelivery']>[] = [];+ const previousDisable = process.env.ORKAS_TEST_DISABLE_LOG_DELIVERY;+ process.env.ORKAS_TEST_DISABLE_LOG_DELIVERY = '0';// A persistent module mock, rather than a spy on one module instance, also// captures workers created after a case calls resetModules() again.vi.doMock('../../src/main/util/log-delivery', async importOriginal => {@@ -27,6 +29,8 @@ export async function captureMainLogWorkers(): Promise<() => Promise<void>> {} finally {await Promise.all(deliveries.map(delivery => delivery.close()));vi.doUnmock('../../src/main/util/log-delivery');+ if (previousDisable === undefined) delete process.env.ORKAS_TEST_DISABLE_LOG_DELIVERY;+ else process.env.ORKAS_TEST_DISABLE_LOG_DELIVERY = previousDisable;}};}diff --git a/test/main/util/ensure-deps.test.ts b/test/main/util/ensure-deps.test.tsindex ed6e4240..af339920 100644--- a/test/main/util/ensure-deps.test.ts+++ b/test/main/util/ensure-deps.test.ts@@ -62,7 +62,7 @@ describe('ensure-deps package-tree health', () => {packageName: 'electron',});- expect(lockedVersion).toBe('42.8.0');+ expect(lockedVersion).toBe('42.11.9');expect(packageJson.devDependencies?.electron).toBe(lockedVersion);});diff --git a/test/main/util/packaged-entrypoint-gate.test.ts b/test/main/util/packaged-entrypoint-gate.test.tsindex 3267f8e1..a6ccee95 100644--- a/test/main/util/packaged-entrypoint-gate.test.ts+++ b/test/main/util/packaged-entrypoint-gate.test.ts@@ -145,6 +145,48 @@ describe('packaged-entrypoint-gate', () => {.toEqual(gate.requiredPackagedEntrypointVerificationEntries());});+ it('accepts the XML parser dependency nested beside a different hoisted strnum version', () => {+ const pcRoot = packagedFixture();+ const root = path.join(pcRoot, 'node_modules', 'strnum');+ const nested = path.join(pcRoot, 'node_modules', 'fast-xml-parser', 'node_modules', 'strnum');+ fs.mkdirSync(path.dirname(nested), { recursive: true });+ fs.renameSync(root, nested);+ fs.mkdirSync(root);+ fs.writeFileSync(path.join(root, 'package.json'), JSON.stringify({ name: 'strnum', version: '1.1.2' }));+ fs.writeFileSync(path.join(root, 'strnum.js'), 'module.exports = {};\n');++ expect(gate.verifyPackagedEntrypointPayload(pcRoot, { projectRoot: process.cwd() }))+ .toEqual(gate.requiredPackagedEntrypointVerificationEntries());++ fs.rmSync(nested, { recursive: true });+ expect(() => gate.verifyPackagedEntrypointPayload(pcRoot, { projectRoot: process.cwd() }))+ .toThrow(/strnum version mismatch/);+ });++ it('rejects an incorrect parser-local strnum even when the hoisted version matches', () => {+ const pcRoot = packagedFixture();+ const nested = path.join(pcRoot, 'node_modules', 'fast-xml-parser', 'node_modules', 'strnum');+ fs.mkdirSync(nested, { recursive: true });+ fs.writeFileSync(path.join(nested, 'package.json'), JSON.stringify({ name: 'strnum', version: '1.1.2' }));+ fs.writeFileSync(path.join(nested, 'strnum.js'), 'module.exports = {};\n');++ expect(() => gate.verifyPackagedEntrypointPayload(pcRoot, { projectRoot: process.cwd() }))+ .toThrow(/strnum version mismatch/);+ });++ it.each(['missing', 'invalid'] as const)('rejects a %s nested strnum entry without falling back', (failure) => {+ const pcRoot = packagedFixture();+ const nested = path.join(pcRoot, 'node_modules', 'fast-xml-parser', 'node_modules', 'strnum');+ fs.mkdirSync(path.dirname(nested), { recursive: true });+ fs.cpSync(path.join(pcRoot, 'node_modules', 'strnum'), nested, { recursive: true });+ const entry = path.join(nested, 'strnum.js');+ if (failure === 'missing') fs.rmSync(entry);+ else fs.writeFileSync(entry, 'module.exports = {;\n');++ expect(() => gate.verifyPackagedEntrypointPayload(pcRoot, { projectRoot: process.cwd() }))+ .toThrow(failure === 'missing' ? /missing strnum runtime/ : /invalid strnum runtime/);+ });+it('rejects build-only or newly introduced files in the packaged bin tree', () => {const pcRoot = packagedFixture();fs.writeFileSync(path.join(pcRoot, 'bin', 'runtime-gate.cjs'), 'module.exports = {};\n');diff --git a/test/main/util/packaged-resource-gate.test.ts b/test/main/util/packaged-resource-gate.test.tsindex 654dabea..c1da6f41 100644--- a/test/main/util/packaged-resource-gate.test.ts+++ b/test/main/util/packaged-resource-gate.test.ts@@ -115,8 +115,8 @@ describe('packaged-resource-gate', () => {expect(() => verifyMacLocalizedMetadataRoot(root)).toThrow(/content mismatch/);fs.cpSync(path.join(process.cwd(), 'resources', 'mac-locales'), root, { recursive: true, force: true });- fs.mkdirSync(path.join(root, 'ar.lproj'));- fs.writeFileSync(path.join(root, 'ar.lproj', 'InfoPlist.strings'), '"key" = "value";\n');+ fs.mkdirSync(path.join(root, 'nl.lproj'));+ fs.writeFileSync(path.join(root, 'nl.lproj', 'InfoPlist.strings'), '"key" = "value";\n');expect(() => verifyMacLocalizedMetadataRoot(root)).toThrow(/unexpected mac localized metadata locale/);});diff --git a/test/main/util/validate-release-officecli.test.ts b/test/main/util/validate-release-officecli.test.tsnew file mode 100644index 00000000..6f3d4f6e--- /dev/null+++ b/test/main/util/validate-release-officecli.test.ts@@ -0,0 +1,57 @@+import { afterEach, beforeEach, describe, expect, it } from 'vitest';+import { createRequire } from 'node:module';+import { createHash } from 'node:crypto';+import * as fs from 'node:fs';+import * as os from 'node:os';+import * as path from 'node:path';++const require = createRequire(import.meta.url);+const { verifyHostOfficeCliBinary } = require('../../../bin/officecli-policy-gate.cjs');+const { VERSION } = require('../../../scripts/fetch-officecli.cjs');+let root: string;++beforeEach(() => {+ root = fs.mkdtempSync(path.join(os.tmpdir(), 'orkas-release-officecli-'));+});+afterEach(() => fs.rmSync(root, { recursive: true, force: true }));++describe.skipIf(process.platform === 'win32')('mac release OfficeCLI version probe', () => {+ function binary(version: string): string {+ const directory = path.join(root, 'resources', 'officecli');+ fs.mkdirSync(directory, { recursive: true });+ const file = path.join(directory, 'officecli');+ // Model the real upstream side effect: even --version starts an update+ // unless the caller explicitly disables it. No network is needed here.+ fs.writeFileSync(file, [+ '#!/bin/sh',+ '[ "$1" = "--version" ] || [ "$1 $2" = "view --help" ] || exit 2',+ 'if [ "$OFFICECLI_SKIP_UPDATE" != "1" ]; then',+ ' printf "partial update" > "$0.update.partial"',+ 'fi',+ `[ "$1" != "--version" ] || printf '%s\\n' '${version}'`,+ '[ "$1" != "view" ] || printf "html --page --out\\n"',+ '',+ ].join('\n'), { mode: 0o755 });+ const scripts = path.join(root, 'scripts');+ fs.mkdirSync(scripts);+ const sha = createHash('sha256').update(fs.readFileSync(file)).digest('hex');+ fs.writeFileSync(path.join(scripts, 'fetch-officecli.cjs'), `module.exports = ${JSON.stringify({+ VERSION, ASSETS: { [`${process.platform}-${process.arch}`]: 'officecli' }, SHA256: { officecli: sha },+ })};`);+ return file;+ }++ it('verifies the pinned version without modifying the signed payload directory', () => {+ const file = binary(VERSION.replace(/^v/, ''));+ const before = fs.readFileSync(file);+ verifyHostOfficeCliBinary(root, { required: true });+ expect(fs.readdirSync(path.dirname(file))).toEqual(['officecli']);+ expect(fs.readFileSync(file)).toEqual(before);+ });++ it('rejects a different version while still suppressing self-update', () => {+ const file = binary('0.0.0');+ expect(() => verifyHostOfficeCliBinary(root, { required: true })).toThrow(/version mismatch/);+ expect(fs.readdirSync(path.dirname(file))).toEqual(['officecli']);+ });+});diff --git a/test/setup-env.ts b/test/setup-env.tsindex 8d97a115..084b2019 100644--- a/test/setup-env.ts+++ b/test/setup-env.ts@@ -35,6 +35,11 @@ import { createRequire, syncBuiltinESMExports } from 'node:module';import * as os from 'node:os';import * as path from 'node:path';+// Unit tests exercise logging through focused opt-in suites. Other cases reset+// modules and temp workspaces freely, so do not start a worker that can outlive+// the owning case and recreate files during teardown.+process.env.ORKAS_TEST_DISABLE_LOG_DELIVERY = '1';+// Register tsx/cjs so that any `require('./group_chat/bus')`-style CJS lookups// (used inside features/chats.ts to break the bus ↔ chats import cycle without// triggering the ESM dual-load bug described in 0268bce7) resolve `.ts` files