fix: merge main
This commit is contained in:
commit
0b011ea5d6
35 changed files with 928 additions and 595 deletions
269
core/package-lock.json
generated
269
core/package-lock.json
generated
|
|
@ -40,7 +40,7 @@
|
|||
"fastest-levenshtein": "^1.0.16",
|
||||
"filtrex": "^3.1.0",
|
||||
"follow-redirects": "^1.15.5",
|
||||
"google-auth-library": "^9.14.2",
|
||||
"google-auth-library": "^10.4.1",
|
||||
"handlebars": "^4.7.8",
|
||||
"http-proxy-agent": "^7.0.1",
|
||||
"https-proxy-agent": "^7.0.3",
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
"pg": "^8.11.3",
|
||||
"plist": "^3.1.0",
|
||||
"posthog-node": "^3.6.3",
|
||||
"puppeteer": "^22.4.0",
|
||||
"puppeteer": "^24.15.0",
|
||||
"puppeteer-chromium-resolver": "^23.0.0",
|
||||
"quick-lru": "^7.0.0",
|
||||
"replicate": "^0.26.0",
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
"winston": "^3.17.0",
|
||||
"workerpool": "^9.1.3",
|
||||
"yaml": "^2.4.2",
|
||||
"zod": "^3.24.2"
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.24.7",
|
||||
|
|
@ -158,8 +158,8 @@
|
|||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-types": "^1.0.14",
|
||||
"yaml": "^2.6.1",
|
||||
"zod": "^3.24.2"
|
||||
"yaml": "^2.8.1",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"bin": {
|
||||
"config-yaml": "dist/cli.js"
|
||||
|
|
@ -220,19 +220,19 @@
|
|||
"version": "1.15.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.62.0",
|
||||
"@anthropic-ai/sdk": "^0.67.0",
|
||||
"@aws-sdk/client-bedrock-runtime": "^3.842.0",
|
||||
"@aws-sdk/credential-providers": "^3.840.0",
|
||||
"@aws-sdk/credential-providers": "^3.913.0",
|
||||
"@continuedev/config-types": "^1.0.14",
|
||||
"@continuedev/config-yaml": "^1.14.0",
|
||||
"@continuedev/config-yaml": "^1.29.0",
|
||||
"@continuedev/fetch": "^1.5.0",
|
||||
"dotenv": "^16.5.0",
|
||||
"google-auth-library": "^10.1.0",
|
||||
"google-auth-library": "^10.4.1",
|
||||
"json-schema": "^0.4.0",
|
||||
"node-fetch": "^3.3.2",
|
||||
"openai": "^5.13.1",
|
||||
"openai": "^5.23.2",
|
||||
"uuid": "^11.1.0",
|
||||
"zod": "^3.24.2"
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
|
|
@ -5143,17 +5143,17 @@
|
|||
"integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw=="
|
||||
},
|
||||
"node_modules/@puppeteer/browsers": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.3.0.tgz",
|
||||
"integrity": "sha512-ioXoq9gPxkss4MYhD+SFaU9p1IHFUX0ILAWFPyjGaBdjLsYAlZw6j1iLA0N/m12uVHLFDfSYNF7EQccjinIMDA==",
|
||||
"version": "2.10.13",
|
||||
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.10.13.tgz",
|
||||
"integrity": "sha512-a9Ruw3j3qlnB5a/zHRTkruppynxqaeE4H9WNj5eYGRWqw0ZauZ23f4W2ARf3hghF5doozyD+CRtt7XSYuYRI/Q==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"debug": "^4.3.5",
|
||||
"debug": "^4.4.3",
|
||||
"extract-zip": "^2.0.1",
|
||||
"progress": "^2.0.3",
|
||||
"proxy-agent": "^6.4.0",
|
||||
"semver": "^7.6.3",
|
||||
"tar-fs": "^3.0.6",
|
||||
"unbzip2-stream": "^1.4.3",
|
||||
"proxy-agent": "^6.5.0",
|
||||
"semver": "^7.7.3",
|
||||
"tar-fs": "^3.1.1",
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"bin": {
|
||||
|
|
@ -5164,9 +5164,10 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@puppeteer/browsers/node_modules/semver": {
|
||||
"version": "7.6.3",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
|
||||
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
|
||||
"version": "7.7.3",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",
|
||||
"integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==",
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
},
|
||||
|
|
@ -8207,9 +8208,10 @@
|
|||
"integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ=="
|
||||
},
|
||||
"node_modules/bignumber.js": {
|
||||
"version": "9.1.2",
|
||||
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.2.tgz",
|
||||
"integrity": "sha512-2/mKyZH9K85bzOEfhXDBFZTGd1CTs+5IHpeFQo9luiBG7hghdC851Pj2WAhb6E3R6b9tZj/XKhbg4fum+Kepug==",
|
||||
"version": "9.3.1",
|
||||
"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz",
|
||||
"integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "*"
|
||||
}
|
||||
|
|
@ -8768,26 +8770,18 @@
|
|||
}
|
||||
},
|
||||
"node_modules/chromium-bidi": {
|
||||
"version": "0.6.3",
|
||||
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.6.3.tgz",
|
||||
"integrity": "sha512-qXlsCmpCZJAnoTYI83Iu6EdYQpMYdVkCfq08KDh2pmlVqK5t5IA9mGs4/LwCwp4fqisSOMXZxP3HIh8w8aRn0A==",
|
||||
"version": "11.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-11.0.0.tgz",
|
||||
"integrity": "sha512-cM3DI+OOb89T3wO8cpPSro80Q9eKYJ7hGVXoGS3GkDPxnYSqiv+6xwpIf6XERyJ9Tdsl09hmNmY94BkgZdVekw==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"mitt": "3.0.1",
|
||||
"urlpattern-polyfill": "10.0.0",
|
||||
"zod": "3.23.8"
|
||||
"mitt": "^3.0.1",
|
||||
"zod": "^3.24.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"devtools-protocol": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/chromium-bidi/node_modules/zod": {
|
||||
"version": "3.23.8",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz",
|
||||
"integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/colinhacks"
|
||||
}
|
||||
},
|
||||
"node_modules/ci-info": {
|
||||
"version": "3.9.0",
|
||||
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
|
||||
|
|
@ -9314,9 +9308,10 @@
|
|||
}
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "4.4.0",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
|
||||
"integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
|
||||
"version": "4.4.3",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
|
||||
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ms": "^2.1.3"
|
||||
},
|
||||
|
|
@ -9524,9 +9519,10 @@
|
|||
}
|
||||
},
|
||||
"node_modules/devtools-protocol": {
|
||||
"version": "0.0.1312386",
|
||||
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1312386.tgz",
|
||||
"integrity": "sha512-DPnhUXvmvKT2dFA/j7B+riVLUt9Q6RKJlcppojL5CoRywJJKLDYnRlw0gTFKfgDPHP5E04UoB71SxoJlVZy8FA=="
|
||||
"version": "0.0.1521046",
|
||||
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1521046.tgz",
|
||||
"integrity": "sha512-vhE6eymDQSKWUXwwA37NtTTVEzjtGVfDr3pRbsWEQ5onH/Snp2c+2xZHWJJawG/0hCCJLRGt4xVtEVUVILol4w==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/diff": {
|
||||
"version": "7.0.0",
|
||||
|
|
@ -11508,68 +11504,76 @@
|
|||
}
|
||||
},
|
||||
"node_modules/gaxios": {
|
||||
"version": "6.7.1",
|
||||
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz",
|
||||
"integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==",
|
||||
"version": "7.1.3",
|
||||
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.3.tgz",
|
||||
"integrity": "sha512-YGGyuEdVIjqxkxVH1pUTMY/XtmmsApXrCVv5EU25iX6inEPbV+VakJfLealkBtJN69AQmh1eGOdCl9Sm1UP6XQ==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"extend": "^3.0.2",
|
||||
"https-proxy-agent": "^7.0.1",
|
||||
"is-stream": "^2.0.0",
|
||||
"node-fetch": "^2.6.9",
|
||||
"uuid": "^9.0.1"
|
||||
"node-fetch": "^3.3.2",
|
||||
"rimraf": "^5.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/gaxios/node_modules/node-fetch": {
|
||||
"version": "2.7.0",
|
||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
|
||||
"integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
|
||||
"node_modules/gaxios/node_modules/glob": {
|
||||
"version": "10.5.0",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",
|
||||
"integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"whatwg-url": "^5.0.0"
|
||||
"foreground-child": "^3.1.0",
|
||||
"jackspeak": "^3.1.2",
|
||||
"minimatch": "^9.0.4",
|
||||
"minipass": "^7.1.2",
|
||||
"package-json-from-dist": "^1.0.0",
|
||||
"path-scurry": "^1.11.1"
|
||||
},
|
||||
"bin": {
|
||||
"glob": "dist/esm/bin.mjs"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/gaxios/node_modules/minipass": {
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
|
||||
"integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
|
||||
"license": "ISC",
|
||||
"engines": {
|
||||
"node": "4.x || >=6.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"encoding": "^0.1.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"encoding": {
|
||||
"optional": true
|
||||
}
|
||||
"node": ">=16 || 14 >=14.17"
|
||||
}
|
||||
},
|
||||
"node_modules/gaxios/node_modules/tr46": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
||||
"integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
|
||||
},
|
||||
"node_modules/gaxios/node_modules/webidl-conversions": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
|
||||
"integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
|
||||
},
|
||||
"node_modules/gaxios/node_modules/whatwg-url": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
|
||||
"integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
|
||||
"node_modules/gaxios/node_modules/rimraf": {
|
||||
"version": "5.0.10",
|
||||
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz",
|
||||
"integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"tr46": "~0.0.3",
|
||||
"webidl-conversions": "^3.0.0"
|
||||
"glob": "^10.3.7"
|
||||
},
|
||||
"bin": {
|
||||
"rimraf": "dist/esm/bin.mjs"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/gcp-metadata": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.0.tgz",
|
||||
"integrity": "sha512-Jh/AIwwgaxan+7ZUUmRLCjtchyDiqh4KjBJ5tW3plBZb5iL/BPcso8A5DlzeD9qlw0duCamnNdpFjxwaT0KyKg==",
|
||||
"version": "8.1.2",
|
||||
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.2.tgz",
|
||||
"integrity": "sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"gaxios": "^6.0.0",
|
||||
"gaxios": "^7.0.0",
|
||||
"google-logging-utils": "^1.0.0",
|
||||
"json-bigint": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/generate-function": {
|
||||
|
|
@ -11780,17 +11784,28 @@
|
|||
}
|
||||
},
|
||||
"node_modules/google-auth-library": {
|
||||
"version": "9.15.0",
|
||||
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.0.tgz",
|
||||
"integrity": "sha512-7ccSEJFDFO7exFbO6NRyC+xH8/mZ1GZGG2xxx9iHxZWcjUjJpjWxIMw3cofAKcueZ6DATiukmmprD7yavQHOyQ==",
|
||||
"version": "10.5.0",
|
||||
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.5.0.tgz",
|
||||
"integrity": "sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"base64-js": "^1.3.0",
|
||||
"ecdsa-sig-formatter": "^1.0.11",
|
||||
"gaxios": "^6.1.1",
|
||||
"gcp-metadata": "^6.1.0",
|
||||
"gtoken": "^7.0.0",
|
||||
"gaxios": "^7.0.0",
|
||||
"gcp-metadata": "^8.0.0",
|
||||
"google-logging-utils": "^1.0.0",
|
||||
"gtoken": "^8.0.0",
|
||||
"jws": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/google-logging-utils": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz",
|
||||
"integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==",
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
}
|
||||
|
|
@ -11883,15 +11898,16 @@
|
|||
}
|
||||
},
|
||||
"node_modules/gtoken": {
|
||||
"version": "7.1.0",
|
||||
"resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz",
|
||||
"integrity": "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==",
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/gtoken/-/gtoken-8.0.0.tgz",
|
||||
"integrity": "sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"gaxios": "^6.0.0",
|
||||
"gaxios": "^7.0.0",
|
||||
"jws": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.0.0"
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/guid-typescript": {
|
||||
|
|
@ -13955,6 +13971,7 @@
|
|||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz",
|
||||
"integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"bignumber.js": "^9.0.0"
|
||||
}
|
||||
|
|
@ -16586,18 +16603,21 @@
|
|||
}
|
||||
},
|
||||
"node_modules/puppeteer": {
|
||||
"version": "22.15.0",
|
||||
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-22.15.0.tgz",
|
||||
"integrity": "sha512-XjCY1SiSEi1T7iSYuxS82ft85kwDJUS7wj1Z0eGVXKdtr5g4xnVcbjwxhq5xBnpK/E7x1VZZoJDxpjAOasHT4Q==",
|
||||
"version": "24.30.0",
|
||||
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-24.30.0.tgz",
|
||||
"integrity": "sha512-A5OtCi9WpiXBQgJ2vQiZHSyrAzQmO/WDsvghqlN4kgw21PhxA5knHUaUQq/N3EMt8CcvSS0RM+kmYLJmedR3TQ==",
|
||||
"hasInstallScript": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@puppeteer/browsers": "2.3.0",
|
||||
"@puppeteer/browsers": "2.10.13",
|
||||
"chromium-bidi": "11.0.0",
|
||||
"cosmiconfig": "^9.0.0",
|
||||
"devtools-protocol": "0.0.1312386",
|
||||
"puppeteer-core": "22.15.0"
|
||||
"devtools-protocol": "0.0.1521046",
|
||||
"puppeteer-core": "24.30.0",
|
||||
"typed-query-selector": "^2.12.0"
|
||||
},
|
||||
"bin": {
|
||||
"puppeteer": "lib/esm/puppeteer/node/cli.js"
|
||||
"puppeteer": "lib/cjs/puppeteer/node/cli.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
@ -16690,15 +16710,18 @@
|
|||
}
|
||||
},
|
||||
"node_modules/puppeteer-core": {
|
||||
"version": "22.15.0",
|
||||
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-22.15.0.tgz",
|
||||
"integrity": "sha512-cHArnywCiAAVXa3t4GGL2vttNxh7GqXtIYGym99egkNJ3oG//wL9LkvO4WE8W1TJe95t1F1ocu9X4xWaGsOKOA==",
|
||||
"version": "24.30.0",
|
||||
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-24.30.0.tgz",
|
||||
"integrity": "sha512-2S3Smy0t0W4wJnNvDe7W0bE7wDmZjfZ3ljfMgJd6hn2Hq/f0jgN+x9PULZo2U3fu5UUIJ+JP8cNUGllu8P91Pg==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@puppeteer/browsers": "2.3.0",
|
||||
"chromium-bidi": "0.6.3",
|
||||
"debug": "^4.3.6",
|
||||
"devtools-protocol": "0.0.1312386",
|
||||
"ws": "^8.18.0"
|
||||
"@puppeteer/browsers": "2.10.13",
|
||||
"chromium-bidi": "11.0.0",
|
||||
"debug": "^4.4.3",
|
||||
"devtools-protocol": "0.0.1521046",
|
||||
"typed-query-selector": "^2.12.0",
|
||||
"webdriver-bidi-protocol": "0.3.8",
|
||||
"ws": "^8.18.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
@ -19674,6 +19697,12 @@
|
|||
"resolved": "https://registry.npmjs.org/web-tree-sitter/-/web-tree-sitter-0.21.0.tgz",
|
||||
"integrity": "sha512-iJ+QJ6ikN9D9cG7Kh6q3KtAstYFUQbYZ8OjuPEJYWfj2kLrmp5I3C2n6WjE1Y3jvj7nJbkcrJytJGWUEhCxn+g=="
|
||||
},
|
||||
"node_modules/webdriver-bidi-protocol": {
|
||||
"version": "0.3.8",
|
||||
"resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.3.8.tgz",
|
||||
"integrity": "sha512-21Yi2GhGntMc671vNBCjiAeEVknXjVRoyu+k+9xOMShu+ZQfpGQwnBqbNz/Sv4GXZ6JmutlPAi2nIJcrymAWuQ==",
|
||||
"license": "Apache-2.0"
|
||||
},
|
||||
"node_modules/webidl-conversions": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
|
||||
|
|
@ -20080,9 +20109,10 @@
|
|||
}
|
||||
},
|
||||
"node_modules/ws": {
|
||||
"version": "8.18.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz",
|
||||
"integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==",
|
||||
"version": "8.18.3",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",
|
||||
"integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
|
|
@ -20206,9 +20236,10 @@
|
|||
}
|
||||
},
|
||||
"node_modules/zod": {
|
||||
"version": "3.24.2",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz",
|
||||
"integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==",
|
||||
"version": "3.25.76",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
|
||||
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/colinhacks"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
"fastest-levenshtein": "^1.0.16",
|
||||
"filtrex": "^3.1.0",
|
||||
"follow-redirects": "^1.15.5",
|
||||
"google-auth-library": "^9.14.2",
|
||||
"google-auth-library": "^10.4.1",
|
||||
"handlebars": "^4.7.8",
|
||||
"http-proxy-agent": "^7.0.1",
|
||||
"https-proxy-agent": "^7.0.3",
|
||||
|
|
@ -109,7 +109,7 @@
|
|||
"pg": "^8.11.3",
|
||||
"plist": "^3.1.0",
|
||||
"posthog-node": "^3.6.3",
|
||||
"puppeteer": "^22.4.0",
|
||||
"puppeteer": "^24.15.0",
|
||||
"puppeteer-chromium-resolver": "^23.0.0",
|
||||
"quick-lru": "^7.0.0",
|
||||
"replicate": "^0.26.0",
|
||||
|
|
@ -130,7 +130,7 @@
|
|||
"winston": "^3.17.0",
|
||||
"workerpool": "^9.1.3",
|
||||
"yaml": "^2.4.2",
|
||||
"zod": "^3.24.2"
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"engine-strict": true,
|
||||
"engines": {
|
||||
|
|
|
|||
232
docs/package-lock.json
generated
232
docs/package-lock.json
generated
|
|
@ -9,7 +9,9 @@
|
|||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@c15t/react": "^1.7.0"
|
||||
"@c15t/react": "^1.7.1",
|
||||
"axios": "^1.13.2",
|
||||
"tar-fs": "^3.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mintlify": "^4.2.3"
|
||||
|
|
@ -93,13 +95,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@c15t/backend": {
|
||||
"version": "1.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@c15t/backend/-/backend-1.7.0.tgz",
|
||||
"integrity": "sha512-rEhyWAq2xeAljL1ctSD9YGu/wG7GRwsUNTm6pEAS7q5nQ4ApRppUmQcLqJDb/B4gyY0Z/HCx56iIPkXYnymDYg==",
|
||||
"version": "1.8.0",
|
||||
"resolved": "https://registry.npmjs.org/@c15t/backend/-/backend-1.8.0.tgz",
|
||||
"integrity": "sha512-vM/jXQfWrI2XqN8h3Wq0IRWFBLz5o98vPUVAPu8Mdw9WblnBRwVRIEtmN6maMVM3yyai4yZA8fbXAi0e3PSM/Q==",
|
||||
"license": "GPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@c15t/logger": "1.0.0",
|
||||
"@c15t/translations": "1.7.0",
|
||||
"@c15t/logger": "1.0.1",
|
||||
"@c15t/translations": "1.8.0",
|
||||
"@opentelemetry/api": "1.9.0",
|
||||
"@opentelemetry/resources": "^2.0.1",
|
||||
"@opentelemetry/sdk-node": "^0.203.0",
|
||||
|
|
@ -111,7 +113,7 @@
|
|||
"@orpc/zod": "1.8.1",
|
||||
"base-x": "^5.0.1",
|
||||
"defu": "^6.1.4",
|
||||
"drizzle-orm": "^0.41.0",
|
||||
"drizzle-orm": "^0.44.6",
|
||||
"fumadb": "^0.1.1",
|
||||
"kysely": "^0.27.6",
|
||||
"neverthrow": "^8.2.0",
|
||||
|
|
@ -119,127 +121,6 @@
|
|||
"zod": "^4.0.17"
|
||||
}
|
||||
},
|
||||
"node_modules/@c15t/backend/node_modules/drizzle-orm": {
|
||||
"version": "0.41.0",
|
||||
"resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.41.0.tgz",
|
||||
"integrity": "sha512-7A4ZxhHk9gdlXmTdPj/lREtP+3u8KvZ4yEN6MYVxBzZGex5Wtdc+CWSbu7btgF6TB0N+MNPrvW7RKBbxJchs/Q==",
|
||||
"license": "Apache-2.0",
|
||||
"peerDependencies": {
|
||||
"@aws-sdk/client-rds-data": ">=3",
|
||||
"@cloudflare/workers-types": ">=4",
|
||||
"@electric-sql/pglite": ">=0.2.0",
|
||||
"@libsql/client": ">=0.10.0",
|
||||
"@libsql/client-wasm": ">=0.10.0",
|
||||
"@neondatabase/serverless": ">=0.10.0",
|
||||
"@op-engineering/op-sqlite": ">=2",
|
||||
"@opentelemetry/api": "^1.4.1",
|
||||
"@planetscale/database": ">=1",
|
||||
"@prisma/client": "*",
|
||||
"@tidbcloud/serverless": "*",
|
||||
"@types/better-sqlite3": "*",
|
||||
"@types/pg": "*",
|
||||
"@types/sql.js": "*",
|
||||
"@vercel/postgres": ">=0.8.0",
|
||||
"@xata.io/client": "*",
|
||||
"better-sqlite3": ">=7",
|
||||
"bun-types": "*",
|
||||
"expo-sqlite": ">=14.0.0",
|
||||
"gel": ">=2",
|
||||
"knex": "*",
|
||||
"kysely": "*",
|
||||
"mysql2": ">=2",
|
||||
"pg": ">=8",
|
||||
"postgres": ">=3",
|
||||
"sql.js": ">=1",
|
||||
"sqlite3": ">=5"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@aws-sdk/client-rds-data": {
|
||||
"optional": true
|
||||
},
|
||||
"@cloudflare/workers-types": {
|
||||
"optional": true
|
||||
},
|
||||
"@electric-sql/pglite": {
|
||||
"optional": true
|
||||
},
|
||||
"@libsql/client": {
|
||||
"optional": true
|
||||
},
|
||||
"@libsql/client-wasm": {
|
||||
"optional": true
|
||||
},
|
||||
"@neondatabase/serverless": {
|
||||
"optional": true
|
||||
},
|
||||
"@op-engineering/op-sqlite": {
|
||||
"optional": true
|
||||
},
|
||||
"@opentelemetry/api": {
|
||||
"optional": true
|
||||
},
|
||||
"@planetscale/database": {
|
||||
"optional": true
|
||||
},
|
||||
"@prisma/client": {
|
||||
"optional": true
|
||||
},
|
||||
"@tidbcloud/serverless": {
|
||||
"optional": true
|
||||
},
|
||||
"@types/better-sqlite3": {
|
||||
"optional": true
|
||||
},
|
||||
"@types/pg": {
|
||||
"optional": true
|
||||
},
|
||||
"@types/sql.js": {
|
||||
"optional": true
|
||||
},
|
||||
"@vercel/postgres": {
|
||||
"optional": true
|
||||
},
|
||||
"@xata.io/client": {
|
||||
"optional": true
|
||||
},
|
||||
"better-sqlite3": {
|
||||
"optional": true
|
||||
},
|
||||
"bun-types": {
|
||||
"optional": true
|
||||
},
|
||||
"expo-sqlite": {
|
||||
"optional": true
|
||||
},
|
||||
"gel": {
|
||||
"optional": true
|
||||
},
|
||||
"knex": {
|
||||
"optional": true
|
||||
},
|
||||
"kysely": {
|
||||
"optional": true
|
||||
},
|
||||
"mysql2": {
|
||||
"optional": true
|
||||
},
|
||||
"pg": {
|
||||
"optional": true
|
||||
},
|
||||
"postgres": {
|
||||
"optional": true
|
||||
},
|
||||
"prisma": {
|
||||
"optional": true
|
||||
},
|
||||
"sql.js": {
|
||||
"optional": true
|
||||
},
|
||||
"sqlite3": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@c15t/backend/node_modules/zod": {
|
||||
"version": "4.1.12",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-4.1.12.tgz",
|
||||
|
|
@ -250,9 +131,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@c15t/logger": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@c15t/logger/-/logger-1.0.0.tgz",
|
||||
"integrity": "sha512-z2RrUnvO5bbEg/qd9iD/TqdBi04vfvALf2uovDVLJiQTNfOVUb7FM/GkPH5mugiDwErlrtVhAW8hW/2VmBXbUA==",
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@c15t/logger/-/logger-1.0.1.tgz",
|
||||
"integrity": "sha512-Yz+HkHjsGWPkJ7nWGqlSgF3LG9WtV72Om5NoWrW6YJHLMNasC5Z6opi9GM8B1Nm8ivZBzJpADEc4gVIBCkqamw==",
|
||||
"license": "GPL-3.0-only",
|
||||
"dependencies": {
|
||||
"chalk": "^5.4.1",
|
||||
|
|
@ -261,15 +142,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@c15t/react": {
|
||||
"version": "1.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@c15t/react/-/react-1.7.0.tgz",
|
||||
"integrity": "sha512-0hduy9wlLMcKgj7Pf5f3B4JjbLPVKDlurwuC0d9NyyTABFaegn9ehbP6kiyDt7qVCoiaN2jyOhMQyKON5Tb49g==",
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/@c15t/react/-/react-1.8.1.tgz",
|
||||
"integrity": "sha512-Slh98Rxo4gYhrcOU+rR7M8HiAB084EE8VyW6JMXC8ItXWSCqu+1O89hpikn+2i3PdgyCIbwUv+VKEVm4KcAmBg==",
|
||||
"license": "GPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@radix-ui/react-accordion": "1.2.4",
|
||||
"@radix-ui/react-slot": "1.2.0",
|
||||
"@radix-ui/react-switch": "1.1.4",
|
||||
"c15t": "1.7.0",
|
||||
"c15t": "1.8.1",
|
||||
"clsx": "2.1.1",
|
||||
"zustand": "^5.0.3"
|
||||
},
|
||||
|
|
@ -279,9 +160,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@c15t/translations": {
|
||||
"version": "1.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@c15t/translations/-/translations-1.7.0.tgz",
|
||||
"integrity": "sha512-irrJAni2Cei56wHLmGoIoPHoXk/ygXllWs4dBF9LL0D/Ns7bvcBi/CAPCnCD1hw4FnoJ9amPqYtVKQ3sT++JaQ==",
|
||||
"version": "1.8.0",
|
||||
"resolved": "https://registry.npmjs.org/@c15t/translations/-/translations-1.8.0.tgz",
|
||||
"integrity": "sha512-iCw8iOc9lgXpIJaN/WzN+T3FMzFUgjN+UZ7tp6hKSV4RktXwr7C/z3HAOdeGYZE01BdmunrlOZGQB/N3hZoZZQ==",
|
||||
"license": "GPL-3.0-only"
|
||||
},
|
||||
"node_modules/@clack/core": {
|
||||
|
|
@ -3303,12 +3184,12 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@orpc/otel": {
|
||||
"version": "1.10.4",
|
||||
"resolved": "https://registry.npmjs.org/@orpc/otel/-/otel-1.10.4.tgz",
|
||||
"integrity": "sha512-iXl0HBVK2i5PoCxhK1MRxKuZWsdD/v1+Oz4LSOqtVulIt5H9/Idb790Eu/R46rwyu/sZ5eJ0PFn2V9xpaFH6vw==",
|
||||
"version": "1.11.3",
|
||||
"resolved": "https://registry.npmjs.org/@orpc/otel/-/otel-1.11.3.tgz",
|
||||
"integrity": "sha512-Xm6zeI4HMwlBWr5tzvt1eOPh+5bDmb3R6h4ZR1xO9MOnbUOvazc2z/YiSbooiwTK9IIJmyP6DAEMucGUA3xvwQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@orpc/shared": "1.10.4"
|
||||
"@orpc/shared": "1.11.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@opentelemetry/api": ">=1.9.0",
|
||||
|
|
@ -3316,9 +3197,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@orpc/otel/node_modules/@orpc/shared": {
|
||||
"version": "1.10.4",
|
||||
"resolved": "https://registry.npmjs.org/@orpc/shared/-/shared-1.10.4.tgz",
|
||||
"integrity": "sha512-NNQFfVVI2GFpJsaHdT6Zs/89NGod15DhGPSPFmtk9lNdQ4QzuqjAvTvEdNyeDEmcnUdNEJqhk5S2bpK1QTjWvQ==",
|
||||
"version": "1.11.3",
|
||||
"resolved": "https://registry.npmjs.org/@orpc/shared/-/shared-1.11.3.tgz",
|
||||
"integrity": "sha512-hOPZhNI0oIhw91NNu4ndrmpWLdZyXTGx7tzq/bG5LwtuHuUsl4FalRsUfSIuap/V1ESOnPqSzmmSOdRv+ITcRA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"radash": "^12.1.1",
|
||||
|
|
@ -4026,9 +3907,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@rollup/rollup-linux-x64-gnu": {
|
||||
"version": "4.53.1",
|
||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.1.tgz",
|
||||
"integrity": "sha512-E/n8x2MSjAQgjj9IixO4UeEUeqXLtiA7pyoXCFYLuXpBA/t2hnbIdxHfA7kK9BFsYAoNU4st1rHYdldl8dTqGA==",
|
||||
"version": "4.53.2",
|
||||
"resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.2.tgz",
|
||||
"integrity": "sha512-yo8d6tdfdeBArzC7T/PnHd7OypfI9cbuZzPnzLJIyKYFhAQ8SvlkKtKBMbXDxe1h03Rcr7u++nFS7tqXz87Gtw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
|
|
@ -5091,7 +4972,6 @@
|
|||
"version": "0.4.0",
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/auto-bind": {
|
||||
|
|
@ -5133,10 +5013,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "1.11.0",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.11.0.tgz",
|
||||
"integrity": "sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==",
|
||||
"dev": true,
|
||||
"version": "1.13.2",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz",
|
||||
"integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.15.6",
|
||||
|
|
@ -5148,7 +5027,6 @@
|
|||
"version": "1.6.7",
|
||||
"resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.7.tgz",
|
||||
"integrity": "sha512-OnAYlL5b7LEkALw87fUVafQw5rVR9RjwGd4KUwNQ6DrrNmaVaUCgLipfVlzrPQ4tWOR9P0IXGNOx50jYCCdSJg==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0"
|
||||
},
|
||||
"node_modules/bail": {
|
||||
|
|
@ -5172,7 +5050,6 @@
|
|||
"version": "2.5.4",
|
||||
"resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.4.tgz",
|
||||
"integrity": "sha512-+gFfDkR8pj4/TrWCGUGWmJIkBwuxPS5F+a5yWjOHQt2hHvNZd5YLzadjmDUtFmMM4y429bnKLa8bYBMHcYdnQA==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true
|
||||
},
|
||||
|
|
@ -5180,7 +5057,6 @@
|
|||
"version": "4.1.6",
|
||||
"resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.1.6.tgz",
|
||||
"integrity": "sha512-25RsLF33BqooOEFNdMcEhMpJy8EoR88zSMrnOQOaM3USnOK2VmaJ1uaQEwPA6AQjrv1lXChScosN6CzbwbO9OQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
|
|
@ -5204,7 +5080,6 @@
|
|||
"version": "3.6.1",
|
||||
"resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.1.tgz",
|
||||
"integrity": "sha512-uaIjxokhFidJP+bmmvKSgiMzj2sV5GPHaZVAIktcxcpCyBFFWO+YlikVAdhmUo2vYFvFhOXIAlldqV29L8126g==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"engines": {
|
||||
|
|
@ -5215,7 +5090,6 @@
|
|||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz",
|
||||
"integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
|
|
@ -5226,7 +5100,6 @@
|
|||
"version": "2.6.5",
|
||||
"resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.6.5.tgz",
|
||||
"integrity": "sha512-jSmxKJNJmHySi6hC42zlZnq00rga4jjxcgNZjY9N5WlOe/iOoGRtdwGsHzQv2RlH2KOYMwGUXhf2zXd32BA9RA==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
|
|
@ -5429,13 +5302,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/c15t": {
|
||||
"version": "1.7.0",
|
||||
"resolved": "https://registry.npmjs.org/c15t/-/c15t-1.7.0.tgz",
|
||||
"integrity": "sha512-YmVrOEEQruyLY0iqdlY9/NsAlfaIrCy3bgc8snAFLNNdZtKJpcRbf3Q1cR51sA+foN0Sw0N0aS0sbQWzLLZTuw==",
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmjs.org/c15t/-/c15t-1.8.1.tgz",
|
||||
"integrity": "sha512-D4We2FxVN7tGf/LQsMCWQj+GrSVKX6HSC9Leyw/Ble74E0ocmVKI61+YcP6rdEpmIv6e9T9lO7NECtX0RTEEWA==",
|
||||
"license": "GPL-3.0-only",
|
||||
"dependencies": {
|
||||
"@c15t/backend": "1.7.0",
|
||||
"@c15t/translations": "1.7.0",
|
||||
"@c15t/backend": "1.8.0",
|
||||
"@c15t/translations": "1.8.0",
|
||||
"@orpc/client": "1.8.1",
|
||||
"@orpc/server": "1.8.1",
|
||||
"zustand": "^5.0.3"
|
||||
|
|
@ -5945,7 +5818,6 @@
|
|||
"version": "1.0.8",
|
||||
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
|
||||
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"delayed-stream": "~1.0.0"
|
||||
|
|
@ -6337,7 +6209,6 @@
|
|||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.4.0"
|
||||
|
|
@ -6477,8 +6348,6 @@
|
|||
"resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.44.7.tgz",
|
||||
"integrity": "sha512-quIpnYznjU9lHshEOAYLoZ9s3jweleHlZIAWR/jX9gAWNg/JhQ1wj0KGRf7/Zm+obRrYd9GjPVJg790QY9N5AQ==",
|
||||
"license": "Apache-2.0",
|
||||
"optional": true,
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@aws-sdk/client-rds-data": ">=3",
|
||||
"@cloudflare/workers-types": ">=4",
|
||||
|
|
@ -6648,7 +6517,6 @@
|
|||
"version": "1.4.5",
|
||||
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
|
||||
"integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"once": "^1.4.0"
|
||||
|
|
@ -6907,7 +6775,6 @@
|
|||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
|
||||
"integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
|
|
@ -7327,7 +7194,6 @@
|
|||
"version": "1.3.2",
|
||||
"resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz",
|
||||
"integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/fast-memoize": {
|
||||
|
|
@ -7446,7 +7312,6 @@
|
|||
"version": "1.15.9",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
|
||||
"integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
|
|
@ -7512,7 +7377,6 @@
|
|||
"version": "4.0.4",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
|
||||
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"asynckit": "^0.4.0",
|
||||
|
|
@ -7839,9 +7703,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/glob": {
|
||||
"version": "10.4.5",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",
|
||||
"integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==",
|
||||
"version": "10.5.0",
|
||||
"resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",
|
||||
"integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",
|
||||
"license": "ISC",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
|
|
@ -10917,7 +10781,6 @@
|
|||
"version": "1.52.0",
|
||||
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
||||
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
|
|
@ -10927,7 +10790,6 @@
|
|||
"version": "2.1.35",
|
||||
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
||||
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mime-db": "1.52.0"
|
||||
|
|
@ -11258,7 +11120,6 @@
|
|||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||
"integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"wrappy": "1"
|
||||
|
|
@ -11768,7 +11629,6 @@
|
|||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
||||
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/public-ip": {
|
||||
|
|
@ -11819,7 +11679,6 @@
|
|||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz",
|
||||
"integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"end-of-stream": "^1.1.0",
|
||||
|
|
@ -13358,7 +13217,6 @@
|
|||
"version": "2.22.1",
|
||||
"resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.1.tgz",
|
||||
"integrity": "sha512-znKXEBxfatz2GBNK02kRnCXjV+AA4kjZIUxeWSr3UGirZMJfTE9uiwKHobnbgxWyL/JWro8tTq+vOqAK1/qbSA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"fast-fifo": "^1.3.2",
|
||||
|
|
@ -13640,10 +13498,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/tar-fs": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.0.tgz",
|
||||
"integrity": "sha512-5Mty5y/sOF1YWj1J6GiBodjlDc05CUR8PKXrsnFAiSG0xA+GHeWLovaZPYUDXkH/1iKRf2+M5+OrRgzC7O9b7w==",
|
||||
"dev": true,
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.1.tgz",
|
||||
"integrity": "sha512-LZA0oaPOc2fVo82Txf3gw+AkEd38szODlptMYejQUhndHMLQ9M059uXR+AfS7DNo0NpINvSqDsvyaCrBVkptWg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"pump": "^3.0.0",
|
||||
|
|
@ -13658,7 +13515,6 @@
|
|||
"version": "3.1.7",
|
||||
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz",
|
||||
"integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"b4a": "^1.6.4",
|
||||
|
|
@ -13670,7 +13526,6 @@
|
|||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz",
|
||||
"integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"b4a": "^1.6.4"
|
||||
|
|
@ -14657,7 +14512,6 @@
|
|||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/ws": {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@
|
|||
"mintlify": "^4.2.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@c15t/react": "^1.7.0"
|
||||
"@c15t/react": "^1.7.1",
|
||||
"axios": "^1.13.2",
|
||||
"tar-fs": "^3.1.1"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
33
extensions/cli/package-lock.json
generated
33
extensions/cli/package-lock.json
generated
|
|
@ -11,7 +11,8 @@
|
|||
"dependencies": {
|
||||
"@sentry/profiling-node": "^9.43.0",
|
||||
"fdir": "^6.4.2",
|
||||
"fzf": "^0.5.2"
|
||||
"fzf": "^0.5.2",
|
||||
"js-yaml": "^4.1.1"
|
||||
},
|
||||
"bin": {
|
||||
"cn": "dist/cn.js"
|
||||
|
|
@ -148,7 +149,7 @@
|
|||
"fastest-levenshtein": "^1.0.16",
|
||||
"filtrex": "^3.1.0",
|
||||
"follow-redirects": "^1.15.5",
|
||||
"google-auth-library": "^9.14.2",
|
||||
"google-auth-library": "^10.4.1",
|
||||
"handlebars": "^4.7.8",
|
||||
"http-proxy-agent": "^7.0.1",
|
||||
"https-proxy-agent": "^7.0.3",
|
||||
|
|
@ -172,7 +173,7 @@
|
|||
"pg": "^8.11.3",
|
||||
"plist": "^3.1.0",
|
||||
"posthog-node": "^3.6.3",
|
||||
"puppeteer": "^22.4.0",
|
||||
"puppeteer": "^24.15.0",
|
||||
"puppeteer-chromium-resolver": "^23.0.0",
|
||||
"quick-lru": "^7.0.0",
|
||||
"replicate": "^0.26.0",
|
||||
|
|
@ -193,7 +194,7 @@
|
|||
"winston": "^3.17.0",
|
||||
"workerpool": "^9.1.3",
|
||||
"yaml": "^2.4.2",
|
||||
"zod": "^3.24.2"
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.24.7",
|
||||
|
|
@ -243,8 +244,8 @@
|
|||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-types": "^1.0.14",
|
||||
"yaml": "^2.6.1",
|
||||
"zod": "^3.24.2"
|
||||
"yaml": "^2.8.1",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"bin": {
|
||||
"config-yaml": "dist/cli.js"
|
||||
|
|
@ -270,19 +271,19 @@
|
|||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.62.0",
|
||||
"@anthropic-ai/sdk": "^0.67.0",
|
||||
"@aws-sdk/client-bedrock-runtime": "^3.842.0",
|
||||
"@aws-sdk/credential-providers": "^3.840.0",
|
||||
"@aws-sdk/credential-providers": "^3.913.0",
|
||||
"@continuedev/config-types": "^1.0.14",
|
||||
"@continuedev/config-yaml": "^1.14.0",
|
||||
"@continuedev/config-yaml": "^1.29.0",
|
||||
"@continuedev/fetch": "^1.5.0",
|
||||
"dotenv": "^16.5.0",
|
||||
"google-auth-library": "^10.1.0",
|
||||
"google-auth-library": "^10.4.1",
|
||||
"json-schema": "^0.4.0",
|
||||
"node-fetch": "^3.3.2",
|
||||
"openai": "^5.13.1",
|
||||
"openai": "^5.23.2",
|
||||
"uuid": "^11.1.0",
|
||||
"zod": "^3.24.2"
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
|
|
@ -6385,7 +6386,6 @@
|
|||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
||||
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
||||
"dev": true,
|
||||
"license": "Python-2.0"
|
||||
},
|
||||
"node_modules/argv-formatter": {
|
||||
|
|
@ -11545,10 +11545,9 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/js-yaml": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
||||
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
|
||||
"dev": true,
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
|
||||
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"argparse": "^2.0.1"
|
||||
|
|
|
|||
|
|
@ -46,7 +46,8 @@
|
|||
"dependencies": {
|
||||
"@sentry/profiling-node": "^9.43.0",
|
||||
"fdir": "^6.4.2",
|
||||
"fzf": "^0.5.2"
|
||||
"fzf": "^0.5.2",
|
||||
"js-yaml": "^4.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@continuedev/config-yaml": "file:../../packages/config-yaml",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { vi } from "vitest";
|
||||
import type { AuthConfig } from "../../auth/workos.js";
|
||||
|
||||
export const isAuthenticated = vi.fn(() => false);
|
||||
export const isAuthenticated = vi.fn(() => Promise.resolve(false));
|
||||
export const isAuthenticatedConfig = vi.fn(() => false);
|
||||
export const isEnvironmentAuthConfig = vi.fn(() => false);
|
||||
export const loadAuthConfig = vi.fn(() => null);
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { isAuthenticated, login } from "./workos.js";
|
|||
export async function ensureAuthenticated(
|
||||
requireAuth: boolean = true,
|
||||
): Promise<boolean> {
|
||||
if (isAuthenticated()) {
|
||||
if (await isAuthenticated()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
autoSelectOrganizationAndConfig,
|
||||
createUpdatedAuthConfig,
|
||||
} from "./orgSelection.js";
|
||||
import type { AuthenticatedConfig } from "./workos.js";
|
||||
import { AuthenticatedConfig } from "./workos-types.js";
|
||||
|
||||
// Mock dependencies
|
||||
vi.mock("fs");
|
||||
|
|
|
|||
|
|
@ -3,11 +3,13 @@ import * as path from "path";
|
|||
|
||||
import chalk from "chalk";
|
||||
|
||||
import type { AuthConfig, AuthenticatedConfig } from "../auth/workos.js";
|
||||
import type { AuthConfig } from "../auth/workos.js";
|
||||
import { saveAuthConfig } from "../auth/workos.js";
|
||||
import { getApiClient } from "../config.js";
|
||||
import { env } from "../env.js";
|
||||
|
||||
import { AuthenticatedConfig } from "./workos-types.js";
|
||||
|
||||
/**
|
||||
* Creates an updated AuthenticatedConfig with a new organization ID and optional config URI
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import chalk from "chalk";
|
||||
import { describe, expect, test, beforeEach, vi } from "vitest";
|
||||
import { beforeEach, describe, expect, test, vi } from "vitest";
|
||||
|
||||
import { getApiClient } from "../config.js";
|
||||
|
||||
import { AuthenticatedConfig, EnvironmentAuthConfig } from "./workos-types.js";
|
||||
import { ensureOrganization } from "./workos.js";
|
||||
import type { AuthenticatedConfig, EnvironmentAuthConfig } from "./workos.js";
|
||||
|
||||
// Mock dependencies
|
||||
vi.mock("../config.js", () => ({
|
||||
|
|
|
|||
38
extensions/cli/src/auth/workos-types.ts
Normal file
38
extensions/cli/src/auth/workos-types.ts
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/**
|
||||
* Device authorization response from WorkOS
|
||||
*/
|
||||
export interface DeviceAuthorizationResponse {
|
||||
device_code: string;
|
||||
user_code: string;
|
||||
verification_uri: string;
|
||||
verification_uri_complete: string;
|
||||
expires_in: number;
|
||||
interval: number;
|
||||
}
|
||||
|
||||
// Represents an authenticated user's configuration
|
||||
export interface AuthenticatedConfig {
|
||||
userId: string;
|
||||
userEmail: string;
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
expiresAt: number;
|
||||
organizationId: string | null | undefined; // null means personal organization, undefined triggers auto-selection
|
||||
configUri?: string; // Optional config URI (file:// or slug://owner/slug)
|
||||
modelName?: string; // Name of the selected model
|
||||
}
|
||||
|
||||
// Represents configuration when using environment variable auth
|
||||
export interface EnvironmentAuthConfig {
|
||||
/**
|
||||
* This userId?: undefined; field a trick to help TypeScript differentiate between
|
||||
* AuthenticatedConfig and EnvironmentAuthConfig. Otherwise AuthenticatedConfig is
|
||||
* a possible subtype of EnvironmentAuthConfig and TypeScript gets confused where
|
||||
* type guards are involved.
|
||||
*/
|
||||
userId?: undefined;
|
||||
accessToken: string;
|
||||
organizationId: string | null; // Can be set via --org flag in headless mode
|
||||
configUri?: string; // Optional config URI (file:// or slug://owner/slug)
|
||||
modelName?: string; // Name of the selected model
|
||||
}
|
||||
|
|
@ -4,11 +4,8 @@ import { getApiClient } from "../config.js";
|
|||
import { safeStderr } from "../init.js";
|
||||
import { gracefulExit } from "../util/exit.js";
|
||||
|
||||
import type {
|
||||
AuthConfig,
|
||||
AuthenticatedConfig,
|
||||
EnvironmentAuthConfig,
|
||||
} from "./workos.js";
|
||||
import { AuthenticatedConfig, EnvironmentAuthConfig } from "./workos-types.js";
|
||||
import type { AuthConfig } from "./workos.js";
|
||||
import { saveAuthConfig } from "./workos.js";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { slugToUri } from "./uriUtils.js";
|
||||
import { AuthenticatedConfig, EnvironmentAuthConfig } from "./workos-types.js";
|
||||
import {
|
||||
AuthenticatedConfig,
|
||||
EnvironmentAuthConfig,
|
||||
getAccessToken,
|
||||
getAssistantSlug,
|
||||
getOrganizationId,
|
||||
|
|
|
|||
|
|
@ -3,13 +3,15 @@ import * as os from "os";
|
|||
import * as path from "path";
|
||||
|
||||
import chalk from "chalk";
|
||||
// Polyfill fetch for Node < 18
|
||||
import nodeFetch from "node-fetch";
|
||||
import open from "open";
|
||||
|
||||
import { logger } from "src/util/logger.js";
|
||||
|
||||
import { getApiClient } from "../config.js";
|
||||
// eslint-disable-next-line import/order
|
||||
import { env } from "../env.js";
|
||||
|
||||
if (!globalThis.fetch) {
|
||||
globalThis.fetch = nodeFetch as unknown as typeof globalThis.fetch;
|
||||
}
|
||||
|
|
@ -21,33 +23,6 @@ function getAuthConfigPath() {
|
|||
return path.join(continueHome, "auth.json");
|
||||
}
|
||||
|
||||
// Represents an authenticated user's configuration
|
||||
export interface AuthenticatedConfig {
|
||||
userId: string;
|
||||
userEmail: string;
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
expiresAt: number;
|
||||
organizationId: string | null | undefined; // null means personal organization, undefined triggers auto-selection
|
||||
configUri?: string; // Optional config URI (file:// or slug://owner/slug)
|
||||
modelName?: string; // Name of the selected model
|
||||
}
|
||||
|
||||
// Represents configuration when using environment variable auth
|
||||
export interface EnvironmentAuthConfig {
|
||||
/**
|
||||
* This userId?: undefined; field a trick to help TypeScript differentiate between
|
||||
* AuthenticatedConfig and EnvironmentAuthConfig. Otherwise AuthenticatedConfig is
|
||||
* a possible subtype of EnvironmentAuthConfig and TypeScript gets confused where
|
||||
* type guards are involved.
|
||||
*/
|
||||
userId?: undefined;
|
||||
accessToken: string;
|
||||
organizationId: string | null; // Can be set via --org flag in headless mode
|
||||
configUri?: string; // Optional config URI (file:// or slug://owner/slug)
|
||||
modelName?: string; // Name of the selected model
|
||||
}
|
||||
|
||||
// Union type representing the possible authentication states
|
||||
export type AuthConfig = AuthenticatedConfig | EnvironmentAuthConfig | null;
|
||||
|
||||
|
|
@ -117,6 +92,11 @@ import {
|
|||
|
||||
import { autoSelectOrganizationAndConfig } from "./orgSelection.js";
|
||||
import { pathToUri, slugToUri, uriToPath, uriToSlug } from "./uriUtils.js";
|
||||
import {
|
||||
AuthenticatedConfig,
|
||||
DeviceAuthorizationResponse,
|
||||
EnvironmentAuthConfig,
|
||||
} from "./workos-types.js";
|
||||
import {
|
||||
handleCliOrgForAuthenticatedConfig,
|
||||
handleCliOrgForEnvironmentAuth,
|
||||
|
|
@ -266,46 +246,30 @@ export function updateLocalConfigPath(localConfigPath: string | null): void {
|
|||
/**
|
||||
* Checks if the user is authenticated and the token is valid
|
||||
*/
|
||||
export function isAuthenticated(): boolean {
|
||||
export async function isAuthenticated(): Promise<boolean> {
|
||||
const config = loadAuthConfig();
|
||||
|
||||
if (config === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Environment auth is always valid
|
||||
if (isEnvironmentAuthConfig(config)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* THIS CODE DOESN'T WORK.
|
||||
* .catch() will never return in a non-async function.
|
||||
* It's a hallucination.
|
||||
**/
|
||||
if (Date.now() > config.expiresAt) {
|
||||
// Try refreshing the token
|
||||
refreshToken(config.refreshToken).catch(() => {
|
||||
// If refresh fails, we're not authenticated
|
||||
try {
|
||||
const refreshed = await refreshToken(config.refreshToken);
|
||||
return isAuthenticatedConfig(refreshed);
|
||||
} catch (e) {
|
||||
logger.error("Failed to refresh auto token", e);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Device authorization response from WorkOS
|
||||
*/
|
||||
interface DeviceAuthorizationResponse {
|
||||
device_code: string;
|
||||
user_code: string;
|
||||
verification_uri: string;
|
||||
verification_uri_complete: string;
|
||||
expires_in: number;
|
||||
interval: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Request device authorization from WorkOS
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export async function handleInfoSlashCommand() {
|
|||
);
|
||||
|
||||
// Auth info
|
||||
if (isAuthenticated()) {
|
||||
if (await isAuthenticated()) {
|
||||
const config = loadAuthConfig();
|
||||
if (config && isAuthenticatedConfig(config)) {
|
||||
const email = config.userEmail || config.userId;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@ import * as path from "path";
|
|||
import { AssistantUnrolled, ModelConfig } from "@continuedev/config-yaml";
|
||||
import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
|
||||
|
||||
import { AuthenticatedConfig } from "src/auth/workos-types.js";
|
||||
|
||||
import {
|
||||
AuthenticatedConfig,
|
||||
getModelName,
|
||||
loadAuthConfig,
|
||||
saveAuthConfig,
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ import * as path from "path";
|
|||
import { AssistantUnrolled, ModelConfig } from "@continuedev/config-yaml";
|
||||
import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
|
||||
|
||||
import { AuthenticatedConfig } from "src/auth/workos-types.js";
|
||||
import { AuthService } from "src/services/AuthService.js";
|
||||
|
||||
import {
|
||||
AuthenticatedConfig,
|
||||
getModelName,
|
||||
loadAuthConfig,
|
||||
saveAuthConfig,
|
||||
|
|
|
|||
|
|
@ -4,8 +4,9 @@ import * as path from "path";
|
|||
|
||||
import { afterEach, beforeEach, describe, expect, test } from "vitest";
|
||||
|
||||
import { AuthenticatedConfig } from "src/auth/workos-types.js";
|
||||
|
||||
import {
|
||||
AuthenticatedConfig,
|
||||
getModelName,
|
||||
loadAuthConfig,
|
||||
saveAuthConfig,
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
import { describe, expect, test, beforeEach, vi } from "vitest";
|
||||
import { beforeEach, describe, expect, test, vi } from "vitest";
|
||||
|
||||
// Mock the workos module
|
||||
vi.mock("../auth/workos.js");
|
||||
|
||||
// Import the workos functions we need to mock
|
||||
import {
|
||||
loadAuthConfig,
|
||||
ensureOrganization,
|
||||
isAuthenticated,
|
||||
listUserOrganizations,
|
||||
loadAuthConfig,
|
||||
login,
|
||||
logout,
|
||||
ensureOrganization,
|
||||
saveAuthConfig,
|
||||
listUserOrganizations,
|
||||
} from "../auth/workos.js";
|
||||
|
||||
import { AuthService } from "./AuthService.js";
|
||||
|
|
@ -35,7 +35,7 @@ describe("AuthService", () => {
|
|||
describe("State Management", () => {
|
||||
test("should initialize with unauthenticated state", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(null);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(false);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(false);
|
||||
|
||||
const state = await service.initialize();
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ describe("AuthService", () => {
|
|||
|
||||
test("should initialize with authenticated state", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
|
||||
const state = await service.initialize();
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ describe("AuthService", () => {
|
|||
test("should update state after successful login", async () => {
|
||||
// Initialize first
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(null);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(false);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(false);
|
||||
await service.initialize();
|
||||
|
||||
// Mock successful login
|
||||
|
|
@ -93,7 +93,7 @@ describe("AuthService", () => {
|
|||
test("should clear state after logout", async () => {
|
||||
// Initialize with authenticated state
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
const state = await service.logout();
|
||||
|
|
@ -112,7 +112,7 @@ describe("AuthService", () => {
|
|||
// Initialize with auth but no org
|
||||
const authWithoutOrg = { ...mockAuthConfig, organizationId: null };
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(authWithoutOrg);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
// Mock ensure organization
|
||||
|
|
@ -129,7 +129,7 @@ describe("AuthService", () => {
|
|||
|
||||
test("should throw error if not authenticated", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(null);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(false);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(false);
|
||||
await service.initialize();
|
||||
|
||||
await expect(service.ensureOrganization()).rejects.toThrow(
|
||||
|
|
@ -139,7 +139,7 @@ describe("AuthService", () => {
|
|||
|
||||
test("should pass organization slug to ensureOrganization in headless mode", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
const updatedConfig = { ...mockAuthConfig, organizationId: "org-456" };
|
||||
|
|
@ -161,7 +161,7 @@ describe("AuthService", () => {
|
|||
|
||||
test("should handle personal organization slug", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
const personalConfig = { ...mockAuthConfig, organizationId: null };
|
||||
|
|
@ -183,7 +183,7 @@ describe("AuthService", () => {
|
|||
|
||||
test("should work without organization slug parameter", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
vi.mocked(ensureOrganization).mockResolvedValue(mockAuthConfig);
|
||||
|
|
@ -206,7 +206,7 @@ describe("AuthService", () => {
|
|||
describe("switchOrganization()", () => {
|
||||
test("should update state with new organization", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
const state = await service.switchOrganization("org-456");
|
||||
|
|
@ -227,7 +227,7 @@ describe("AuthService", () => {
|
|||
|
||||
test("should handle null organization", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
const state = await service.switchOrganization(null);
|
||||
|
|
@ -238,7 +238,7 @@ describe("AuthService", () => {
|
|||
test("should throw error if not file-based auth", async () => {
|
||||
const tokenOnlyAuth = { accessToken: "token" } as any;
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(tokenOnlyAuth);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
await expect(service.switchOrganization("org-456")).rejects.toThrow(
|
||||
|
|
@ -250,7 +250,7 @@ describe("AuthService", () => {
|
|||
describe("getAvailableOrganizations()", () => {
|
||||
test("should return organizations when authenticated", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
const mockOrgs = [
|
||||
|
|
@ -265,7 +265,7 @@ describe("AuthService", () => {
|
|||
|
||||
test("should return null when not authenticated", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(null);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(false);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(false);
|
||||
await service.initialize();
|
||||
|
||||
const orgs = await service.getAvailableOrganizations();
|
||||
|
|
@ -274,7 +274,7 @@ describe("AuthService", () => {
|
|||
|
||||
test("should handle errors gracefully", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
vi.mocked(listUserOrganizations).mockRejectedValue(
|
||||
|
|
@ -297,7 +297,7 @@ describe("AuthService", () => {
|
|||
describe("hasMultipleOrganizations()", () => {
|
||||
test("should return true when multiple orgs available", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
vi.mocked(listUserOrganizations).mockResolvedValue([
|
||||
|
|
@ -311,7 +311,7 @@ describe("AuthService", () => {
|
|||
|
||||
test("should return false when no orgs available", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
await service.initialize();
|
||||
|
||||
vi.mocked(listUserOrganizations).mockResolvedValue([]);
|
||||
|
|
@ -324,12 +324,12 @@ describe("AuthService", () => {
|
|||
describe("refresh()", () => {
|
||||
test("should reload auth state from disk", async () => {
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(null);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(false);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(false);
|
||||
await service.initialize();
|
||||
|
||||
// Update mock to return authenticated state
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(mockAuthConfig);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(true);
|
||||
|
||||
const state = await service.refresh();
|
||||
|
||||
|
|
@ -345,7 +345,7 @@ describe("AuthService", () => {
|
|||
test("should emit stateChanged on login", async () => {
|
||||
// Initialize with no auth config to simulate logged out state
|
||||
vi.mocked(loadAuthConfig).mockReturnValue(null);
|
||||
vi.mocked(isAuthenticated).mockReturnValue(false);
|
||||
vi.mocked(isAuthenticated).mockResolvedValue(false);
|
||||
await service.initialize();
|
||||
|
||||
const listener = vi.fn();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { AuthenticatedConfig } from "src/auth/workos-types.js";
|
||||
|
||||
import {
|
||||
AuthenticatedConfig,
|
||||
login as doLogin,
|
||||
logout as doLogout,
|
||||
ensureOrganization,
|
||||
|
|
@ -30,7 +31,7 @@ export class AuthService extends BaseService<AuthServiceState> {
|
|||
*/
|
||||
async doInitialize(): Promise<AuthServiceState> {
|
||||
const authConfig = loadAuthConfig();
|
||||
const authenticated = isAuthenticated();
|
||||
const authenticated = await isAuthenticated();
|
||||
|
||||
const state: AuthServiceState = {
|
||||
authConfig,
|
||||
|
|
|
|||
|
|
@ -4,10 +4,7 @@ import {
|
|||
} from "@continuedev/config-yaml";
|
||||
import { type AssistantConfig } from "@continuedev/sdk";
|
||||
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
||||
import {
|
||||
SSEClientTransport,
|
||||
SseError,
|
||||
} from "@modelcontextprotocol/sdk/client/sse.js";
|
||||
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
|
||||
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
||||
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
||||
import {
|
||||
|
|
@ -16,10 +13,14 @@ import {
|
|||
StdioMcpServer,
|
||||
} from "node_modules/@continuedev/config-yaml/dist/schemas/mcp/index.js";
|
||||
|
||||
import { isAuthenticated, loadAuthConfig } from "src/auth/workos.js";
|
||||
|
||||
import { get } from "../util/apiClient.js";
|
||||
import { getErrorString } from "../util/error.js";
|
||||
import { logger } from "../util/logger.js";
|
||||
|
||||
import { BaseService, ServiceWithDependencies } from "./BaseService.js";
|
||||
import { isAuthError } from "./mcpUtils.js";
|
||||
import { serviceContainer } from "./ServiceContainer.js";
|
||||
import {
|
||||
MCPConnectionInfo,
|
||||
|
|
@ -28,14 +29,6 @@ import {
|
|||
SERVICE_NAMES,
|
||||
} from "./types.js";
|
||||
|
||||
function is401Error(error: unknown) {
|
||||
return (
|
||||
(error instanceof SseError && error.code === 401) ||
|
||||
(error instanceof Error && error.message.includes("401")) ||
|
||||
(error instanceof Error && error.message.includes("Unauthorized"))
|
||||
);
|
||||
}
|
||||
|
||||
interface ServerConnection extends MCPConnectionInfo {
|
||||
client: Client | null;
|
||||
}
|
||||
|
|
@ -55,9 +48,10 @@ export class MCPService
|
|||
private assistant: AssistantConfig | null = null;
|
||||
private isShuttingDown = false;
|
||||
private isHeadless: boolean | undefined;
|
||||
private apiKeyCache: Map<string, string> = new Map();
|
||||
|
||||
getDependencies(): string[] {
|
||||
return [SERVICE_NAMES.CONFIG];
|
||||
return [SERVICE_NAMES.CONFIG, SERVICE_NAMES.AUTH];
|
||||
}
|
||||
constructor() {
|
||||
super("MCPService", {
|
||||
|
|
@ -79,34 +73,19 @@ export class MCPService
|
|||
isHeadless: boolean | undefined,
|
||||
): Promise<MCPServiceState> {
|
||||
this.isHeadless = isHeadless;
|
||||
logger.debug("Initializing MCPService", {
|
||||
configName: assistant.name,
|
||||
serverCount: assistant.mcpServers?.length || 0,
|
||||
});
|
||||
|
||||
await this.shutdownConnections();
|
||||
|
||||
this.assistant = assistant;
|
||||
this.connections.clear();
|
||||
|
||||
if (assistant.mcpServers?.length) {
|
||||
logger.debug("Starting MCP server connections", {
|
||||
serverCount: assistant.mcpServers.length,
|
||||
});
|
||||
}
|
||||
const connectionPromises = assistant.mcpServers?.map(async (config) => {
|
||||
if (config) {
|
||||
return await this.connectServer(config);
|
||||
}
|
||||
});
|
||||
|
||||
const connectionInit = Promise.all(connectionPromises ?? []).then(
|
||||
(connections) => {
|
||||
logger.debug("MCP connections established", {
|
||||
connectionCount: connections.length,
|
||||
});
|
||||
},
|
||||
);
|
||||
const connectionInit = Promise.all(connectionPromises ?? []);
|
||||
if (isHeadless || hasAgentFile) {
|
||||
await connectionInit;
|
||||
|
||||
|
|
@ -184,6 +163,86 @@ export class MCPService
|
|||
return { status: "idle", hasWarnings };
|
||||
}
|
||||
|
||||
/**
|
||||
* Generic wrapper for client operations that handles 401 errors with token refresh
|
||||
* Only applies to SSE/HTTP connections, not stdio
|
||||
*/
|
||||
private async withTokenRefresh<T>(
|
||||
serverName: string,
|
||||
operation: () => Promise<T>,
|
||||
): Promise<T> {
|
||||
const connection = this.connections.get(serverName);
|
||||
if (!connection) {
|
||||
throw new Error(`Connection ${serverName} not found`);
|
||||
}
|
||||
|
||||
const serverConfig = connection.config;
|
||||
if (!serverConfig || "command" in serverConfig) {
|
||||
// For stdio connections, just execute normally (no token refresh possible)
|
||||
return await operation();
|
||||
}
|
||||
|
||||
try {
|
||||
// Try the operation first
|
||||
return await operation();
|
||||
} catch (error: unknown) {
|
||||
// If not a 401 error, rethrow
|
||||
if (!isAuthError(error)) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
// Check if user is signed in
|
||||
const isAuthed = await isAuthenticated();
|
||||
if (!isAuthed) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
const authConfig = loadAuthConfig();
|
||||
|
||||
// Clear cached token since it's invalid
|
||||
this.apiKeyCache.delete(serverName);
|
||||
|
||||
// Fetch OAuth token from backend
|
||||
const organizationSlug = authConfig?.organizationId;
|
||||
|
||||
let token: string | null = null;
|
||||
try {
|
||||
const params = new URLSearchParams({
|
||||
url: serverConfig.url,
|
||||
});
|
||||
if (organizationSlug) {
|
||||
params.set("organizationSlug", organizationSlug);
|
||||
}
|
||||
if (serverConfig.sourceSlug) {
|
||||
params.set("slug", serverConfig.sourceSlug);
|
||||
}
|
||||
|
||||
const response = await get<{
|
||||
configured: boolean;
|
||||
hasCredentials: boolean;
|
||||
accessToken?: string;
|
||||
expiresAt?: string;
|
||||
expired?: boolean;
|
||||
}>(`/ide/mcp-auth?${params.toString()}`);
|
||||
|
||||
if (response.data.hasCredentials && response.data.accessToken) {
|
||||
token = response.data.accessToken;
|
||||
this.apiKeyCache.set(serverName, token);
|
||||
}
|
||||
} catch {
|
||||
logger.debug("Failed to fetch mcp oauth credentials");
|
||||
}
|
||||
|
||||
if (!token) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
this.apiKeyCache.set(serverConfig.name, token);
|
||||
|
||||
return await operation();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Run a tool by name
|
||||
*/
|
||||
|
|
@ -192,9 +251,16 @@ export class MCPService
|
|||
if (connection.status === "connected" && connection.client) {
|
||||
const tool = connection.tools.find((t) => t.name === name);
|
||||
if (tool) {
|
||||
return await connection.client.callTool({
|
||||
name,
|
||||
arguments: args,
|
||||
const serverName = connection.config!.name;
|
||||
return await this.withTokenRefresh(serverName, async () => {
|
||||
const conn = this.connections.get(serverName);
|
||||
if (!conn?.client) {
|
||||
throw new Error(`Client for ${serverName} not available`);
|
||||
}
|
||||
return await conn.client.callTool({
|
||||
name,
|
||||
arguments: args,
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -208,7 +274,6 @@ export class MCPService
|
|||
public async restartAllServers(): Promise<void> {
|
||||
if (!this.assistant) return;
|
||||
|
||||
logger.debug("Restarting all MCP servers");
|
||||
await this.shutdownConnections();
|
||||
await this.initialize(this.assistant);
|
||||
}
|
||||
|
|
@ -227,8 +292,6 @@ export class MCPService
|
|||
throw new Error(`Server ${serverName} not found in configuration`);
|
||||
}
|
||||
|
||||
logger.debug("Restarting MCP server", { name: serverName });
|
||||
|
||||
const existingConnection = this.connections.get(serverName);
|
||||
if (existingConnection) {
|
||||
if (existingConnection.status === "connected") {
|
||||
|
|
@ -277,19 +340,19 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co
|
|||
this.updateState();
|
||||
|
||||
const capabilities = client.getServerCapabilities();
|
||||
logger.debug("MCP server capabilities", {
|
||||
name: serverName,
|
||||
hasPrompts: !!capabilities?.prompts,
|
||||
hasTools: !!capabilities?.tools,
|
||||
});
|
||||
|
||||
if (capabilities?.prompts) {
|
||||
try {
|
||||
connection.prompts = (await client.listPrompts()).prompts;
|
||||
logger.debug("Loaded MCP prompts", {
|
||||
name: serverName,
|
||||
count: connection.prompts.length,
|
||||
});
|
||||
connection.prompts = await this.withTokenRefresh(
|
||||
serverName,
|
||||
async () => {
|
||||
const conn = this.connections.get(serverName);
|
||||
if (!conn?.client) {
|
||||
throw new Error(`Client for ${serverName} not available`);
|
||||
}
|
||||
return (await conn.client.listPrompts()).prompts;
|
||||
},
|
||||
);
|
||||
} catch (error) {
|
||||
const errorMessage = getErrorString(error);
|
||||
connection.warnings.push(`Failed to load prompts: ${errorMessage}`);
|
||||
|
|
@ -302,11 +365,16 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co
|
|||
|
||||
if (capabilities?.tools) {
|
||||
try {
|
||||
connection.tools = (await client.listTools()).tools;
|
||||
logger.debug("Loaded MCP tools", {
|
||||
name: serverName,
|
||||
count: connection.tools.length,
|
||||
});
|
||||
connection.tools = await this.withTokenRefresh(
|
||||
serverName,
|
||||
async () => {
|
||||
const conn = this.connections.get(serverName);
|
||||
if (!conn?.client) {
|
||||
throw new Error(`Client for ${serverName} not available`);
|
||||
}
|
||||
return (await conn.client.listTools()).tools;
|
||||
},
|
||||
);
|
||||
} catch (error) {
|
||||
const errorMessage = getErrorString(error);
|
||||
connection.warnings.push(`Failed to load tools: ${errorMessage}`);
|
||||
|
|
@ -316,8 +384,6 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
logger.debug("MCP server connected successfully", { name: serverName });
|
||||
} catch (error) {
|
||||
const errorMessage = getErrorString(error);
|
||||
connection.status = "error";
|
||||
|
|
@ -344,8 +410,6 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co
|
|||
* Stop a specific server
|
||||
*/
|
||||
public async stopServer(serverName: string): Promise<void> {
|
||||
logger.debug("Stopping MCP server", { name: serverName });
|
||||
|
||||
const connection = this.connections.get(serverName);
|
||||
if (connection) {
|
||||
await this.shutdownConnection(connection);
|
||||
|
|
@ -394,7 +458,6 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co
|
|||
this.isShuttingDown = true;
|
||||
|
||||
this.removeAllListeners();
|
||||
logger.debug("Shutting down MCPService");
|
||||
await this.shutdownConnections();
|
||||
}
|
||||
|
||||
|
|
@ -412,30 +475,37 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co
|
|||
|
||||
if ("command" in serverConfig) {
|
||||
// STDIO: no need to check type, just if command is present
|
||||
logger.debug("Connecting to MCP server", {
|
||||
name: serverConfig.name,
|
||||
command: serverConfig.command,
|
||||
});
|
||||
const transport = this.constructStdioTransport(serverConfig, connection);
|
||||
await client.connect(transport, {});
|
||||
} else {
|
||||
// SSE/HTTP: if type isn't explicit: try http and fall back to sse
|
||||
logger.debug("Connecting to MCP server", {
|
||||
name: serverConfig.name,
|
||||
url: serverConfig.url,
|
||||
});
|
||||
|
||||
try {
|
||||
if (serverConfig.type === "sse") {
|
||||
const transport = this.constructSseTransport(serverConfig);
|
||||
await client.connect(transport, {});
|
||||
} else if (serverConfig.type === "streamable-http") {
|
||||
const transport = this.constructHttpTransport(serverConfig);
|
||||
await client.connect(transport, {});
|
||||
}
|
||||
await this.withTokenRefresh(serverConfig.name, async () => {
|
||||
if (serverConfig.apiKey && !this.apiKeyCache.get(serverConfig.name)) {
|
||||
this.apiKeyCache.set(serverConfig.name, serverConfig.apiKey);
|
||||
}
|
||||
if (serverConfig.type === "sse") {
|
||||
const transport = this.constructSseTransport(serverConfig);
|
||||
await client.connect(transport, {});
|
||||
} else if (serverConfig.type === "streamable-http") {
|
||||
const transport = this.constructHttpTransport(serverConfig);
|
||||
await client.connect(transport, {});
|
||||
} else {
|
||||
try {
|
||||
const transport = this.constructHttpTransport(serverConfig);
|
||||
await client.connect(transport, {});
|
||||
} catch (e) {
|
||||
if (isAuthError(e)) {
|
||||
throw e;
|
||||
}
|
||||
const transport = this.constructSseTransport(serverConfig);
|
||||
await client.connect(transport, {});
|
||||
}
|
||||
}
|
||||
});
|
||||
} catch (error: unknown) {
|
||||
// on authorization error, use "mcp-remote" with stdio transport to connect
|
||||
if (is401Error(error)) {
|
||||
// If token refresh didn't work and it's a 401, fall back to mcp-remote
|
||||
if (isAuthError(error) && !this.isHeadless) {
|
||||
const transport = this.constructStdioTransport(
|
||||
{
|
||||
name: serverConfig.name,
|
||||
|
|
@ -449,32 +519,6 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co
|
|||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof serverConfig.type === "undefined") {
|
||||
try {
|
||||
const transport = this.constructHttpTransport(serverConfig);
|
||||
await client.connect(transport, {});
|
||||
} catch {
|
||||
logger.debug(
|
||||
"MCP Connection: http connection failed, falling back to sse connection",
|
||||
{
|
||||
name: serverConfig.name,
|
||||
},
|
||||
);
|
||||
try {
|
||||
const transport = this.constructSseTransport(serverConfig);
|
||||
await client.connect(transport, {});
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
`MCP config with URL and no type specified failed both SSE and HTTP connection: ${e instanceof Error ? e.message : String(e)}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
} else if (
|
||||
!["streamable-http", "sse", "stdio"].includes(serverConfig.type)
|
||||
) {
|
||||
throw new Error(`Unsupported transport type: ${serverConfig.type}`);
|
||||
}
|
||||
}
|
||||
|
||||
return client;
|
||||
|
|
@ -483,11 +527,12 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co
|
|||
private constructSseTransport(
|
||||
serverConfig: SseMcpServer,
|
||||
): SSEClientTransport {
|
||||
const apiKey = this.apiKeyCache.get(serverConfig.name);
|
||||
// Merge apiKey into headers if provided
|
||||
const headers = {
|
||||
...serverConfig.requestOptions?.headers,
|
||||
...(serverConfig.apiKey && {
|
||||
Authorization: `Bearer ${serverConfig.apiKey}`,
|
||||
...(apiKey && {
|
||||
Authorization: `Bearer ${apiKey}`,
|
||||
}),
|
||||
};
|
||||
|
||||
|
|
@ -509,10 +554,12 @@ Org-level secrets can only be used for MCP by Background Agents (https://docs.co
|
|||
serverConfig: HttpMcpServer,
|
||||
): StreamableHTTPClientTransport {
|
||||
// Merge apiKey into headers if provided
|
||||
const apiKey = this.apiKeyCache.get(serverConfig.name);
|
||||
|
||||
const headers = {
|
||||
...serverConfig.requestOptions?.headers,
|
||||
...(serverConfig.apiKey && {
|
||||
Authorization: `Bearer ${serverConfig.apiKey}`,
|
||||
...(apiKey && {
|
||||
Authorization: `Bearer ${apiKey}`,
|
||||
}),
|
||||
};
|
||||
|
||||
|
|
|
|||
19
extensions/cli/src/services/mcpUtils.ts
Normal file
19
extensions/cli/src/services/mcpUtils.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { SseError } from "@modelcontextprotocol/sdk/client/sse.js";
|
||||
import { StreamableHTTPError } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
||||
|
||||
/**
|
||||
* Check if an error is an authentication error that should trigger token refresh
|
||||
* 405 is technically "not allowed" but some servers like Sanity don't return the correct error
|
||||
* Since we're using mcp library there's a good chance 405 means auth issue and doesn't hurt to retry with auth
|
||||
*/
|
||||
export function isAuthError(error: unknown): boolean {
|
||||
return (
|
||||
(error instanceof SseError && error.code === 401) ||
|
||||
(error instanceof SseError && error.code === 405) ||
|
||||
(error instanceof StreamableHTTPError && error.code === 401) ||
|
||||
(error instanceof StreamableHTTPError && error.code === 405) ||
|
||||
(error instanceof Error && error.message.includes("401")) ||
|
||||
(error instanceof Error && error.message.includes("405")) ||
|
||||
(error instanceof Error && error.message.includes("Unauthorized"))
|
||||
);
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import * as workosModule from "./auth/workos.js";
|
||||
import { services } from "./services/index.js";
|
||||
|
|
@ -57,7 +57,7 @@ describe("handleSlashCommands - /info", () => {
|
|||
|
||||
it("should include version and working directory in output", async () => {
|
||||
// Mock auth as not authenticated
|
||||
vi.mocked(workosModule.isAuthenticated).mockReturnValue(false);
|
||||
vi.mocked(workosModule.isAuthenticated).mockResolvedValue(false);
|
||||
|
||||
// Mock config service
|
||||
const mockConfigState = {
|
||||
|
|
@ -85,7 +85,7 @@ describe("handleSlashCommands - /info", () => {
|
|||
|
||||
it("should handle authenticated user info", async () => {
|
||||
// Mock auth as authenticated
|
||||
vi.mocked(workosModule.isAuthenticated).mockReturnValue(true);
|
||||
vi.mocked(workosModule.isAuthenticated).mockResolvedValue(true);
|
||||
vi.mocked(workosModule.loadAuthConfig).mockReturnValue({
|
||||
userEmail: "test@example.com",
|
||||
userId: "test-user",
|
||||
|
|
@ -112,7 +112,7 @@ describe("handleSlashCommands - /info", () => {
|
|||
|
||||
it("should handle missing model info gracefully", async () => {
|
||||
// Mock auth as not authenticated
|
||||
vi.mocked(workosModule.isAuthenticated).mockReturnValue(false);
|
||||
vi.mocked(workosModule.isAuthenticated).mockResolvedValue(false);
|
||||
|
||||
// Mock config service with no model info
|
||||
const mockConfigState = {
|
||||
|
|
@ -129,7 +129,7 @@ describe("handleSlashCommands - /info", () => {
|
|||
|
||||
it("should handle config service error", async () => {
|
||||
// Mock auth as not authenticated
|
||||
vi.mocked(workosModule.isAuthenticated).mockReturnValue(false);
|
||||
vi.mocked(workosModule.isAuthenticated).mockResolvedValue(false);
|
||||
|
||||
// Mock config service throwing error
|
||||
vi.mocked(services.config.getState).mockImplementation(() => {
|
||||
|
|
|
|||
|
|
@ -1,14 +1,15 @@
|
|||
import type { AssistantUnrolled } from "@continuedev/config-yaml";
|
||||
import {
|
||||
describe,
|
||||
it,
|
||||
expect,
|
||||
vi,
|
||||
beforeEach,
|
||||
describe,
|
||||
expect,
|
||||
it,
|
||||
vi,
|
||||
type MockedFunction,
|
||||
} from "vitest";
|
||||
|
||||
import type { AuthConfig, AuthenticatedConfig } from "./auth/workos.js";
|
||||
import { AuthenticatedConfig } from "./auth/workos-types.js";
|
||||
import type { AuthConfig } from "./auth/workos.js";
|
||||
import type { ConfigServiceState } from "./services/types.js";
|
||||
import { handleSlashCommands } from "./slashCommands.js";
|
||||
|
||||
|
|
@ -128,7 +129,7 @@ describe("slashCommands", () => {
|
|||
|
||||
(
|
||||
isAuthenticated as MockedFunction<typeof isAuthenticated>
|
||||
).mockReturnValue(false);
|
||||
).mockResolvedValue(false);
|
||||
(
|
||||
services.config.getState as MockedFunction<
|
||||
typeof services.config.getState
|
||||
|
|
@ -157,7 +158,7 @@ describe("slashCommands", () => {
|
|||
|
||||
(
|
||||
isAuthenticated as MockedFunction<typeof isAuthenticated>
|
||||
).mockReturnValue(true);
|
||||
).mockResolvedValue(true);
|
||||
(loadAuthConfig as MockedFunction<typeof loadAuthConfig>).mockReturnValue(
|
||||
{} as AuthConfig,
|
||||
);
|
||||
|
|
@ -199,7 +200,7 @@ describe("slashCommands", () => {
|
|||
|
||||
(
|
||||
isAuthenticated as MockedFunction<typeof isAuthenticated>
|
||||
).mockReturnValue(true);
|
||||
).mockResolvedValue(true);
|
||||
(loadAuthConfig as MockedFunction<typeof loadAuthConfig>).mockReturnValue(
|
||||
mockAuthConfig,
|
||||
);
|
||||
|
|
@ -230,7 +231,7 @@ describe("slashCommands", () => {
|
|||
|
||||
(
|
||||
isAuthenticated as MockedFunction<typeof isAuthenticated>
|
||||
).mockReturnValue(false);
|
||||
).mockResolvedValue(false);
|
||||
(
|
||||
services.config.getState as MockedFunction<
|
||||
typeof services.config.getState
|
||||
|
|
@ -263,7 +264,7 @@ describe("slashCommands", () => {
|
|||
|
||||
(
|
||||
isAuthenticated as MockedFunction<typeof isAuthenticated>
|
||||
).mockReturnValue(false);
|
||||
).mockResolvedValue(false);
|
||||
(
|
||||
services.config.getState as MockedFunction<
|
||||
typeof services.config.getState
|
||||
|
|
|
|||
|
|
@ -93,9 +93,10 @@ async function handleLogout() {
|
|||
}
|
||||
}
|
||||
|
||||
function handleWhoami() {
|
||||
if (isAuthenticated()) {
|
||||
const config = loadAuthConfig();
|
||||
async function handleWhoami() {
|
||||
const authed = await isAuthenticated();
|
||||
if (authed) {
|
||||
const config = loadAuthConfig(); // TODO duplicate auth config loading
|
||||
if (config && isAuthenticatedConfig(config)) {
|
||||
return {
|
||||
exit: false,
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export async function getRenderedV1Prompt(
|
|||
const getUriFromPath = (path: string) => {
|
||||
return resolveRelativePathInDir(path, ideMessenger.ide, workspaceDirs);
|
||||
};
|
||||
const handlebars = await import("handlebars");
|
||||
const handlebars = (await import("handlebars")).default;
|
||||
let rendered = await renderTemplatedString(
|
||||
handlebars,
|
||||
command.prompt,
|
||||
|
|
|
|||
22
packages/config-yaml/package-lock.json
generated
22
packages/config-yaml/package-lock.json
generated
|
|
@ -10,8 +10,8 @@
|
|||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-types": "^1.0.14",
|
||||
"yaml": "^2.6.1",
|
||||
"zod": "^3.24.2"
|
||||
"yaml": "^2.8.1",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"bin": {
|
||||
"config-yaml": "dist/cli.js"
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
"version": "1.0.14",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"zod": "^3.24.2"
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.11.19",
|
||||
|
|
@ -10447,14 +10447,15 @@
|
|||
"dev": true
|
||||
},
|
||||
"node_modules/yaml": {
|
||||
"version": "2.6.1",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz",
|
||||
"integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==",
|
||||
"version": "2.8.1",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
|
||||
"integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"yaml": "bin.mjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 14"
|
||||
"node": ">= 14.6"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs": {
|
||||
|
|
@ -10506,9 +10507,10 @@
|
|||
}
|
||||
},
|
||||
"node_modules/zod": {
|
||||
"version": "3.24.2",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.24.2.tgz",
|
||||
"integrity": "sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==",
|
||||
"version": "3.25.76",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
|
||||
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/colinhacks"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-types": "^1.0.14",
|
||||
"yaml": "^2.6.1",
|
||||
"zod": "^3.24.2"
|
||||
"yaml": "^2.8.1",
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.14",
|
||||
|
|
|
|||
|
|
@ -486,6 +486,258 @@ describe("parseAgentFileTools", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("URL-based MCP references", () => {
|
||||
it("should parse HTTPS URL without tool name", () => {
|
||||
const result = parseAgentFileTools("https://mcp.example.com");
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "https://mcp.example.com" }],
|
||||
mcpServers: ["https://mcp.example.com"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse HTTP URL without tool name", () => {
|
||||
const result = parseAgentFileTools("http://mcp.example.com");
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "http://mcp.example.com" }],
|
||||
mcpServers: ["http://mcp.example.com"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse HTTPS URL with port", () => {
|
||||
const result = parseAgentFileTools("https://mcp.example.com:8080");
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "https://mcp.example.com:8080" }],
|
||||
mcpServers: ["https://mcp.example.com:8080"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse HTTPS URL with tool name", () => {
|
||||
const result = parseAgentFileTools("https://mcp.example.com:tool_name");
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "https://mcp.example.com", toolName: "tool_name" },
|
||||
],
|
||||
mcpServers: ["https://mcp.example.com"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse HTTP URL with tool name", () => {
|
||||
const result = parseAgentFileTools("http://mcp.example.com:my_tool");
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "http://mcp.example.com", toolName: "my_tool" }],
|
||||
mcpServers: ["http://mcp.example.com"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse HTTPS URL with port and tool name", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"https://mcp.example.com:8080:tool_name",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "https://mcp.example.com:8080", toolName: "tool_name" },
|
||||
],
|
||||
mcpServers: ["https://mcp.example.com:8080"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse URL with path", () => {
|
||||
const result = parseAgentFileTools("https://api.example.com/mcp");
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "https://api.example.com/mcp" }],
|
||||
mcpServers: ["https://api.example.com/mcp"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse URL with path and tool name", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"https://api.example.com/mcp:tool_name",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "https://api.example.com/mcp", toolName: "tool_name" },
|
||||
],
|
||||
mcpServers: ["https://api.example.com/mcp"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse URL with query parameters", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"https://api.example.com/mcp?key=value",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "https://api.example.com/mcp?key=value" }],
|
||||
mcpServers: ["https://api.example.com/mcp?key=value"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse URL with query parameters and tool name", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"https://api.example.com/mcp?key=value:tool_name",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{
|
||||
mcpServer: "https://api.example.com/mcp?key=value",
|
||||
toolName: "tool_name",
|
||||
},
|
||||
],
|
||||
mcpServers: ["https://api.example.com/mcp?key=value"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse tool names with hyphens", () => {
|
||||
const result = parseAgentFileTools("https://mcp.example.com:read-alerts");
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "https://mcp.example.com", toolName: "read-alerts" },
|
||||
],
|
||||
mcpServers: ["https://mcp.example.com"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse tool names with mixed alphanumeric and special chars", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"https://mcp.example.com:tool_name-123",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "https://mcp.example.com", toolName: "tool_name-123" },
|
||||
],
|
||||
mcpServers: ["https://mcp.example.com"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse multiple URL-based MCP references", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"https://mcp1.example.com:tool1, https://mcp2.example.com:tool2",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "https://mcp1.example.com", toolName: "tool1" },
|
||||
{ mcpServer: "https://mcp2.example.com", toolName: "tool2" },
|
||||
],
|
||||
mcpServers: ["https://mcp1.example.com", "https://mcp2.example.com"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse mixed URL and slug-based MCP references", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"https://mcp.example.com:tool1, owner/package:tool2, bash",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "https://mcp.example.com", toolName: "tool1" },
|
||||
{ mcpServer: "owner/package", toolName: "tool2" },
|
||||
{ toolName: "bash" },
|
||||
],
|
||||
mcpServers: ["https://mcp.example.com", "owner/package"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should deduplicate URL-based MCP servers", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"https://mcp.example.com:tool1, https://mcp.example.com:tool2, https://mcp.example.com",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "https://mcp.example.com", toolName: "tool1" },
|
||||
{ mcpServer: "https://mcp.example.com", toolName: "tool2" },
|
||||
{ mcpServer: "https://mcp.example.com" },
|
||||
],
|
||||
mcpServers: ["https://mcp.example.com"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should reject URL with whitespace in tool name", () => {
|
||||
expect(() =>
|
||||
parseAgentFileTools("https://mcp.example.com:tool name"),
|
||||
).toThrow(
|
||||
'Invalid URL-based MCP tool reference "https://mcp.example.com:tool name": the part after the last colon must be either a port number or a valid tool name',
|
||||
);
|
||||
});
|
||||
|
||||
it("should reject URL with invalid characters after colon", () => {
|
||||
expect(() =>
|
||||
parseAgentFileTools("https://mcp.example.com:invalid@tool"),
|
||||
).toThrow(
|
||||
'Invalid URL-based MCP tool reference "https://mcp.example.com:invalid@tool": the part after the last colon must be either a port number or a valid tool name',
|
||||
);
|
||||
});
|
||||
|
||||
it("should reject URL with whitespace before colon", () => {
|
||||
expect(() =>
|
||||
parseAgentFileTools("https://mcp.example.com :tool"),
|
||||
).toThrow(
|
||||
'Invalid MCP tool reference "https://mcp.example.com :tool": colon-separated tool references cannot contain whitespace',
|
||||
);
|
||||
});
|
||||
|
||||
it("should handle URL-based MCP with built_in keyword", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"built_in, https://mcp.example.com:tool1",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "https://mcp.example.com", toolName: "tool1" }],
|
||||
mcpServers: ["https://mcp.example.com"],
|
||||
allBuiltIn: true,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse localhost URLs", () => {
|
||||
const result = parseAgentFileTools("http://localhost:3000");
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "http://localhost:3000" }],
|
||||
mcpServers: ["http://localhost:3000"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse localhost URLs with tool name", () => {
|
||||
const result = parseAgentFileTools("http://localhost:3000:my_tool");
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "http://localhost:3000", toolName: "my_tool" }],
|
||||
mcpServers: ["http://localhost:3000"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse IP address URLs", () => {
|
||||
const result = parseAgentFileTools("https://192.168.1.1:8080");
|
||||
expect(result).toEqual({
|
||||
tools: [{ mcpServer: "https://192.168.1.1:8080" }],
|
||||
mcpServers: ["https://192.168.1.1:8080"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("should parse IP address URLs with tool name", () => {
|
||||
const result = parseAgentFileTools("https://192.168.1.1:8080:tool_name");
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "https://192.168.1.1:8080", toolName: "tool_name" },
|
||||
],
|
||||
mcpServers: ["https://192.168.1.1:8080"],
|
||||
allBuiltIn: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("whitespace validation in colon-separated MCP tool references", () => {
|
||||
it("should reject MCP tool reference with space after colon", () => {
|
||||
expect(() => parseAgentFileTools("owner/slug: tool")).toThrow(
|
||||
|
|
@ -601,4 +853,53 @@ describe("parseAgentFileTools", () => {
|
|||
expect(() => parseAgentFileTools("my tool")).not.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe("edge cases", () => {
|
||||
it("should handle empty tool names correctly", () => {
|
||||
const result = parseAgentFileTools("owner/package:,https://example.com:");
|
||||
expect(result.tools).toEqual([
|
||||
{ mcpServer: "owner/package", toolName: "" },
|
||||
{ mcpServer: "https://example.com", toolName: "" },
|
||||
]);
|
||||
});
|
||||
|
||||
it("should handle trailing commas", () => {
|
||||
const result = parseAgentFileTools("bash, owner/package,");
|
||||
expect(result.tools).toEqual([
|
||||
{ toolName: "bash" },
|
||||
{ mcpServer: "owner/package" },
|
||||
]);
|
||||
});
|
||||
|
||||
it("should handle multiple consecutive commas", () => {
|
||||
const result = parseAgentFileTools("bash,,owner/package");
|
||||
expect(result.tools).toEqual([
|
||||
{ toolName: "bash" },
|
||||
{ mcpServer: "owner/package" },
|
||||
]);
|
||||
});
|
||||
|
||||
it("should parse complex real-world example", () => {
|
||||
const result = parseAgentFileTools(
|
||||
"built_in, linear/mcp, sentry/mcp:read-alerts, https://custom-mcp.internal.com:8443:custom_tool, bash",
|
||||
);
|
||||
expect(result).toEqual({
|
||||
tools: [
|
||||
{ mcpServer: "linear/mcp" },
|
||||
{ mcpServer: "sentry/mcp", toolName: "read-alerts" },
|
||||
{
|
||||
mcpServer: "https://custom-mcp.internal.com:8443",
|
||||
toolName: "custom_tool",
|
||||
},
|
||||
{ toolName: "bash" },
|
||||
],
|
||||
mcpServers: [
|
||||
"linear/mcp",
|
||||
"sentry/mcp",
|
||||
"https://custom-mcp.internal.com:8443",
|
||||
],
|
||||
allBuiltIn: true,
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export type AgentFile = z.infer<typeof agentFileSchema>;
|
|||
* Parsed agent tool reference
|
||||
*/
|
||||
export interface AgentToolReference {
|
||||
/** MCP server slug (owner/package) if this is an MCP tool */
|
||||
/** MCP server slug (owner/package) or URL (https://...) if this is an MCP tool */
|
||||
mcpServer?: string;
|
||||
/** Specific tool name - either MCP tool name or built-in tool name */
|
||||
toolName?: string;
|
||||
|
|
@ -91,6 +91,8 @@ export function serializeAgentFile(agentFile: AgentFile): string {
|
|||
* Supports formats:
|
||||
* - owner/package - all tools from MCP server
|
||||
* - owner/package:tool_name - specific tool from MCP server
|
||||
* - https://mcp.url.com or http://mcp.url.com - all tools from URL-based MCP server
|
||||
* - https://mcp.url.com:tool_name - specific tool from URL-based MCP server
|
||||
* - ToolName or tool_name - built-in tool
|
||||
* - built_in - all built-in tools
|
||||
*
|
||||
|
|
@ -115,6 +117,53 @@ export function parseAgentFileTools(toolsString?: string): ParsedAgentTools {
|
|||
if (toolRef === "built_in") {
|
||||
// Special keyword for all built-in tools
|
||||
allBuiltIn = true;
|
||||
} else if (
|
||||
toolRef.startsWith("http://") ||
|
||||
toolRef.startsWith("https://")
|
||||
) {
|
||||
// URL-based MCP tool reference: "https://mcp.url.com" or "https://mcp.url.com:tool_name"
|
||||
const protocolEndIndex = toolRef.indexOf("://") + 3;
|
||||
const lastColonIndex = toolRef.lastIndexOf(":");
|
||||
|
||||
// Check if there's a colon after the protocol
|
||||
if (lastColonIndex > protocolEndIndex) {
|
||||
const afterLastColon = toolRef.substring(lastColonIndex + 1);
|
||||
|
||||
// Check if it's a port number (only digits), empty string, or a tool name
|
||||
if (/^\d+(?:$|[/?#])/.test(afterLastColon)) {
|
||||
// It's a port number, treat the whole thing as the server
|
||||
const mcpServer = toolRef;
|
||||
tools.push({ mcpServer });
|
||||
mcpServerSet.add(mcpServer);
|
||||
} else if (
|
||||
afterLastColon === "" ||
|
||||
/^[a-zA-Z0-9_-]+$/.test(afterLastColon)
|
||||
) {
|
||||
// It's a tool name (or empty string)
|
||||
// Reject references with whitespace to prevent silent misconfigurations
|
||||
if (/\s/.test(toolRef)) {
|
||||
throw new Error(
|
||||
`Invalid MCP tool reference "${toolRef}": colon-separated tool references cannot contain whitespace. ` +
|
||||
`Use format "https://server:tool_name" without spaces.`,
|
||||
);
|
||||
}
|
||||
|
||||
const mcpServer = toolRef.substring(0, lastColonIndex);
|
||||
const toolName = afterLastColon;
|
||||
|
||||
tools.push({ mcpServer, toolName });
|
||||
mcpServerSet.add(mcpServer);
|
||||
} else {
|
||||
throw new Error(
|
||||
`Invalid URL-based MCP tool reference "${toolRef}": the part after the last colon must be either a port number or a valid tool name (alphanumeric, underscores, hyphens).`,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
// No colon after the protocol, treat the whole thing as the server
|
||||
const mcpServer = toolRef;
|
||||
tools.push({ mcpServer });
|
||||
mcpServerSet.add(mcpServer);
|
||||
}
|
||||
} else if (toolRef.includes("/")) {
|
||||
// MCP tool reference: "owner/package" or "owner/package:tool_name"
|
||||
const colonIndex = toolRef.indexOf(":");
|
||||
|
|
|
|||
53
packages/hub/package-lock.json
generated
53
packages/hub/package-lock.json
generated
|
|
@ -9,7 +9,8 @@
|
|||
"version": "0.0.7",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-yaml": "^1.33.0"
|
||||
"@continuedev/config-yaml": "^1.33.0",
|
||||
"js-yaml": "^4.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.14",
|
||||
|
|
@ -595,6 +596,30 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
||||
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"sprintf-js": "~1.0.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": {
|
||||
"version": "3.14.2",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz",
|
||||
"integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"argparse": "^1.0.7",
|
||||
"esprima": "^4.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"js-yaml": "bin/js-yaml.js"
|
||||
}
|
||||
},
|
||||
"node_modules/@istanbuljs/schema": {
|
||||
"version": "0.1.3",
|
||||
"resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz",
|
||||
|
|
@ -1175,13 +1200,10 @@
|
|||
"dev": true
|
||||
},
|
||||
"node_modules/argparse": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
|
||||
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"sprintf-js": "~1.0.2"
|
||||
}
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
||||
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
||||
"license": "Python-2.0"
|
||||
},
|
||||
"node_modules/async": {
|
||||
"version": "3.2.5",
|
||||
|
|
@ -1730,6 +1752,7 @@
|
|||
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
|
||||
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
|
||||
"dev": true,
|
||||
"license": "BSD-2-Clause",
|
||||
"bin": {
|
||||
"esparse": "bin/esparse.js",
|
||||
"esvalidate": "bin/esvalidate.js"
|
||||
|
|
@ -2777,13 +2800,12 @@
|
|||
"dev": true
|
||||
},
|
||||
"node_modules/js-yaml": {
|
||||
"version": "3.14.1",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
|
||||
"integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
|
||||
"dev": true,
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
|
||||
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"argparse": "^1.0.7",
|
||||
"esprima": "^4.0.0"
|
||||
"argparse": "^2.0.1"
|
||||
},
|
||||
"bin": {
|
||||
"js-yaml": "bin/js-yaml.js"
|
||||
|
|
@ -3347,7 +3369,8 @@
|
|||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
|
||||
"integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
|
||||
"dev": true
|
||||
"dev": true,
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/stack-utils": {
|
||||
"version": "2.0.6",
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
"author": "Continue Dev, Inc.",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-yaml": "^1.33.0"
|
||||
"@continuedev/config-yaml": "^1.33.0",
|
||||
"js-yaml": "^4.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.14",
|
||||
|
|
|
|||
32
packages/openai-adapters/package-lock.json
generated
32
packages/openai-adapters/package-lock.json
generated
|
|
@ -16,12 +16,12 @@
|
|||
"@continuedev/config-yaml": "^1.33.0",
|
||||
"@continuedev/fetch": "^1.5.0",
|
||||
"dotenv": "^16.5.0",
|
||||
"google-auth-library": "^10.1.0",
|
||||
"google-auth-library": "^10.4.1",
|
||||
"json-schema": "^0.4.0",
|
||||
"node-fetch": "^3.3.2",
|
||||
"openai": "^5.13.1",
|
||||
"openai": "^5.23.2",
|
||||
"uuid": "^11.1.0",
|
||||
"zod": "^3.24.2"
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
|
|
@ -8274,9 +8274,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/gcp-metadata": {
|
||||
"version": "7.0.1",
|
||||
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-7.0.1.tgz",
|
||||
"integrity": "sha512-UcO3kefx6dCcZkgcTGgVOTFb7b1LlQ02hY1omMjjrrBzkajRMCFgYOjs7J71WqnuG1k2b+9ppGL7FsOfhZMQKQ==",
|
||||
"version": "8.1.2",
|
||||
"resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.2.tgz",
|
||||
"integrity": "sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"gaxios": "^7.0.0",
|
||||
|
|
@ -8370,15 +8370,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/google-auth-library": {
|
||||
"version": "10.3.0",
|
||||
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.3.0.tgz",
|
||||
"integrity": "sha512-ylSE3RlCRZfZB56PFJSfUCuiuPq83Fx8hqu1KPWGK8FVdSaxlp/qkeMMX/DT/18xkwXIHvXEXkZsljRwfrdEfQ==",
|
||||
"version": "10.5.0",
|
||||
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.5.0.tgz",
|
||||
"integrity": "sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"base64-js": "^1.3.0",
|
||||
"ecdsa-sig-formatter": "^1.0.11",
|
||||
"gaxios": "^7.0.0",
|
||||
"gcp-metadata": "^7.0.0",
|
||||
"gcp-metadata": "^8.0.0",
|
||||
"google-logging-utils": "^1.0.0",
|
||||
"gtoken": "^8.0.0",
|
||||
"jws": "^4.0.0"
|
||||
|
|
@ -8388,9 +8388,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/google-logging-utils": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.1.tgz",
|
||||
"integrity": "sha512-rcX58I7nqpu4mbKztFeOAObbomBbHU2oIb/d3tJfF3dizGSApqtSwYJigGCooHdnMyQBIw8BrWyK96w3YXgr6A==",
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz",
|
||||
"integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==",
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
|
|
@ -13900,9 +13900,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/openai": {
|
||||
"version": "5.20.3",
|
||||
"resolved": "https://registry.npmjs.org/openai/-/openai-5.20.3.tgz",
|
||||
"integrity": "sha512-8V0KgAcPFppDIP8uMBOkhRrhDBuxNQYQxb9IovP4NN4VyaYGISAzYexyYYuAwVul2HB75Wpib0xDboYJqRMNow==",
|
||||
"version": "5.23.2",
|
||||
"resolved": "https://registry.npmjs.org/openai/-/openai-5.23.2.tgz",
|
||||
"integrity": "sha512-MQBzmTulj+MM5O8SKEk/gL8a7s5mktS9zUtAkU257WjvobGc9nKcBuVwjyEEcb9SI8a8Y2G/mzn3vm9n1Jlleg==",
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"openai": "bin/cli"
|
||||
|
|
|
|||
|
|
@ -19,12 +19,12 @@
|
|||
"@continuedev/config-yaml": "^1.33.0",
|
||||
"@continuedev/fetch": "^1.5.0",
|
||||
"dotenv": "^16.5.0",
|
||||
"google-auth-library": "^10.1.0",
|
||||
"google-auth-library": "^10.4.1",
|
||||
"json-schema": "^0.4.0",
|
||||
"node-fetch": "^3.3.2",
|
||||
"openai": "^5.13.1",
|
||||
"openai": "^5.23.2",
|
||||
"uuid": "^11.1.0",
|
||||
"zod": "^3.24.2"
|
||||
"zod": "^3.25.76"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@semantic-release/changelog": "^6.0.3",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue