Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed multiple writes race condition on config file watcher. [#398](https://github.com/sourcebot-dev/sourcebot/pull/398)

### Changed
- Bumped AI SDK and associated packages version. [#404](https://github.com/sourcebot-dev/sourcebot/pull/404)

## [4.6.0] - 2025-07-25

### Added
Expand Down
24 changes: 12 additions & 12 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"build": "cross-env SKIP_ENV_VALIDATION=1 next build",
"start": "next start",
"lint": "cross-env SKIP_ENV_VALIDATION=1 next lint",
"test": "vitest",
"dev:emails": "email dev --dir ./src/emails",
"stripe:listen": "stripe listen --forward-to http://localhost:3000/api/stripe"
},
"dependencies": {
"@ai-sdk/amazon-bedrock": "3.0.0-beta.10",
"@ai-sdk/anthropic": "2.0.0-beta.9",
"@ai-sdk/azure": "2.0.0-beta.12",
"@ai-sdk/deepseek": "1.0.0-beta.9",
"@ai-sdk/google": "2.0.0-beta.15",
"@ai-sdk/google-vertex": "3.0.0-beta.17",
"@ai-sdk/mistral": "2.0.0-beta.7",
"@ai-sdk/openai": "2.0.0-beta.12",
"@ai-sdk/react": "2.0.0-beta.28",
"@ai-sdk/xai": "2.0.0-beta.11",
"@ai-sdk/amazon-bedrock": "3.0.0-beta.12",
"@ai-sdk/anthropic": "2.0.0-beta.10",
"@ai-sdk/azure": "2.0.0-beta.13",
"@ai-sdk/deepseek": "1.0.0-beta.10",
"@ai-sdk/google": "2.0.0-beta.16",
"@ai-sdk/google-vertex": "3.0.0-beta.18",
"@ai-sdk/mistral": "2.0.0-beta.8",
"@ai-sdk/openai": "2.0.0-beta.13",
"@ai-sdk/react": "2.0.0-beta.29",
"@ai-sdk/xai": "2.0.0-beta.12",
"@auth/prisma-adapter": "^2.7.4",
"@codemirror/commands": "^6.6.0",
"@codemirror/lang-cpp": "^6.0.2",
Expand Down Expand Up @@ -108,7 +108,7 @@
"@vercel/otel": "^1.13.0",
"@viz-js/lang-dot": "^1.0.4",
"@xiechao/codemirror-lang-handlebars": "^1.0.4",
"ai": "5.0.0-beta.28",
"ai": "5.0.0-beta.29",
"ajv": "^8.17.1",
"bcryptjs": "^3.0.2",
"chokidar": "^4.0.3",
Expand Down
7 changes: 6 additions & 1 deletion packages/web/src/features/chat/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ export const createAgentStream = async ({
onStepFinish: ({ toolResults }) => {
// This takes care of extracting any sources that the LLM has seen as part of
// the tool calls it made.
toolResults.forEach(({ output, toolName }) => {
toolResults.forEach(({ toolName, output, dynamic }) => {
// we don't care about dynamic tool results here.
if (dynamic) {
return;
}

if (isServiceError(output)) {
// is there something we want to do here?
return;
Expand Down
174 changes: 87 additions & 87 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,145 +5,145 @@ __metadata:
version: 8
cacheKey: 10c0

"@ai-sdk/amazon-bedrock@npm:3.0.0-beta.10":
version: 3.0.0-beta.10
resolution: "@ai-sdk/amazon-bedrock@npm:3.0.0-beta.10"
"@ai-sdk/amazon-bedrock@npm:3.0.0-beta.12":
version: 3.0.0-beta.12
resolution: "@ai-sdk/amazon-bedrock@npm:3.0.0-beta.12"
dependencies:
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
"@smithy/eventstream-codec": "npm:^4.0.1"
"@smithy/util-utf8": "npm:^4.0.0"
aws4fetch: "npm:^1.0.20"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/1e18b20adddee827337e15939f298c621464547819ea9c5f12746f36e6c4fd2215abc9b2ac3445de63dc58550c7b465375b0377a3a7045cee38c8b6da0ed0d72
checksum: 10c0/7fa26ae892e390d6c9f7515d7d8539cd03a4d30d867fe4a06dfb85996718efe3aa3227854e93174ec4717db7047c41e2bd6275e827a9dff65c67e20174cb09a4
languageName: node
linkType: hard

"@ai-sdk/anthropic@npm:2.0.0-beta.9":
version: 2.0.0-beta.9
resolution: "@ai-sdk/anthropic@npm:2.0.0-beta.9"
"@ai-sdk/anthropic@npm:2.0.0-beta.10":
version: 2.0.0-beta.10
resolution: "@ai-sdk/anthropic@npm:2.0.0-beta.10"
dependencies:
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/ed7974f9ad399d206629a5bfa88964f9542cb95f820a0710b2b0af9677029e2164a5efa2e2d53cb6592a3eba6a43c8e963a7039fba9ff331ada17b98a2838f66
checksum: 10c0/525a71545ff759e4b370be54fe9a763c9d011deba3a1bb742d2c6aa136a62e1aa7abba6b9fd6a09484081db4e1d26003425ff3e8c8c998e9aa6a773a47065fc4
languageName: node
linkType: hard

"@ai-sdk/azure@npm:2.0.0-beta.12":
version: 2.0.0-beta.12
resolution: "@ai-sdk/azure@npm:2.0.0-beta.12"
"@ai-sdk/azure@npm:2.0.0-beta.13":
version: 2.0.0-beta.13
resolution: "@ai-sdk/azure@npm:2.0.0-beta.13"
dependencies:
"@ai-sdk/openai": "npm:2.0.0-beta.12"
"@ai-sdk/openai": "npm:2.0.0-beta.13"
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/aaf5704c91a00b2f48b0e6b916c958803c5e3761fafa83e9e617a2f2ba2adbda911a0f8cd221297f17926f62d09dcf9fc0252851ec7455be45bd751dd485b19e
checksum: 10c0/d47d630823fc5ce288605bb563815d8abf4b1438dc6e771ea503a01584f991a9d2ac4bafd53bd64bda7bab23e8a2a331984dd33fa843903e3dbd3cbaf2db96f9
languageName: node
linkType: hard

"@ai-sdk/deepseek@npm:1.0.0-beta.9":
version: 1.0.0-beta.9
resolution: "@ai-sdk/deepseek@npm:1.0.0-beta.9"
"@ai-sdk/deepseek@npm:1.0.0-beta.10":
version: 1.0.0-beta.10
resolution: "@ai-sdk/deepseek@npm:1.0.0-beta.10"
dependencies:
"@ai-sdk/openai-compatible": "npm:1.0.0-beta.9"
"@ai-sdk/openai-compatible": "npm:1.0.0-beta.10"
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/4dd98316ab91610ab64aea2f44c701d59ea37a5a6480f3a27470cfa3109348e8b1dd0117a9e235150ff1c81a47454cfc26a46e13e8c2896710eae2cd403f84eb
checksum: 10c0/d36554f514d57506bdcdbcd1183e7a526b36b361e13b2bffdccde480830a66dca697a869b2892621e42467f8aac5d74b5ac958db2185a202bb5f174a94055950
languageName: node
linkType: hard

"@ai-sdk/gateway@npm:1.0.0-beta.14":
version: 1.0.0-beta.14
resolution: "@ai-sdk/gateway@npm:1.0.0-beta.14"
"@ai-sdk/gateway@npm:1.0.0-beta.15":
version: 1.0.0-beta.15
resolution: "@ai-sdk/gateway@npm:1.0.0-beta.15"
dependencies:
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/f3d155bd7c5a842a126dbdf25eb16cadb4f785f516e28c995d7e430f0c1974466b402552fdf9f00e6897584299b927888ecb6319599646c12373b3bf147647f9
checksum: 10c0/b9199de4185b742675e57b0ea043f82bbaf77f4186afa18a331e13e4f68527b0d411755d2959dd31c1cf89aefa9099b027b20fc3a51b339ce5fea37869da1d38
languageName: node
linkType: hard

"@ai-sdk/google-vertex@npm:3.0.0-beta.17":
version: 3.0.0-beta.17
resolution: "@ai-sdk/google-vertex@npm:3.0.0-beta.17"
"@ai-sdk/google-vertex@npm:3.0.0-beta.18":
version: 3.0.0-beta.18
resolution: "@ai-sdk/google-vertex@npm:3.0.0-beta.18"
dependencies:
"@ai-sdk/anthropic": "npm:2.0.0-beta.9"
"@ai-sdk/google": "npm:2.0.0-beta.15"
"@ai-sdk/anthropic": "npm:2.0.0-beta.10"
"@ai-sdk/google": "npm:2.0.0-beta.16"
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
google-auth-library: "npm:^9.15.0"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/95544f7f1fd0b7c2bf67d98c87233738a82a733e86c9c809f22b2c1db8809baa1ba2cea9edab7bc47f7947aa314507fa67ce741e54cb881e06341598c7e7dd33
checksum: 10c0/de5566cbfcc89d93b5923a6e4b69ca64772881e91c8a3f6fbaec18ea3a38dba0a9c75c35c886340d47af7a6d0673796b0941498327f71e35bfc4296f6eb25fa8
languageName: node
linkType: hard

"@ai-sdk/google@npm:2.0.0-beta.15":
version: 2.0.0-beta.15
resolution: "@ai-sdk/google@npm:2.0.0-beta.15"
"@ai-sdk/google@npm:2.0.0-beta.16":
version: 2.0.0-beta.16
resolution: "@ai-sdk/google@npm:2.0.0-beta.16"
dependencies:
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/527f16f46b8ab3240a38c39d1f5b09f3e9ca66f10229676647e86b1a0e13901c5bc4739386e4a81036657f01d28cd16b8bc206a3de5a425b2bb67961b5166db7
checksum: 10c0/9772697552718286e1549b4ff2261c49e5a71d6245cac6063c36063074cdb700820dfa13c089b7ac73306845b88b2c0f506a4ac2f35b3262c0e4ed926d0e7f66
languageName: node
linkType: hard

"@ai-sdk/mistral@npm:2.0.0-beta.7":
version: 2.0.0-beta.7
resolution: "@ai-sdk/mistral@npm:2.0.0-beta.7"
"@ai-sdk/mistral@npm:2.0.0-beta.8":
version: 2.0.0-beta.8
resolution: "@ai-sdk/mistral@npm:2.0.0-beta.8"
dependencies:
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/69000e13adb306d33199818a97bfbed8d721b8c453f53ff58b25d6b554b3e65ce6c3f5239bfa61fdf15fb9ceb5a4b4f768173fde8c26d059f73b5a66a54df4d8
checksum: 10c0/ce8ae39dc082670e30919db4cfabd2475daaf1fe8272f7e9027e24116cb341f76b0565a9143cb5e117923c6c724a60664cc5edca6a7f4aca01cf120509403744
languageName: node
linkType: hard

"@ai-sdk/openai-compatible@npm:1.0.0-beta.9":
version: 1.0.0-beta.9
resolution: "@ai-sdk/openai-compatible@npm:1.0.0-beta.9"
"@ai-sdk/openai-compatible@npm:1.0.0-beta.10":
version: 1.0.0-beta.10
resolution: "@ai-sdk/openai-compatible@npm:1.0.0-beta.10"
dependencies:
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/bee6d3acef2efd874fcdd83662349b95172011addb9a224187920784cf5fec53a3eb4b4ca2801cb8b745f90c4a2406c4683ef006c48d94d6a91492c68289e636
checksum: 10c0/eb303a06972ece1e2aca4b0d5192001195784f57b1815d2e88026cc179874a847234fc1a8ff90ac096cc0c3c2138b807b4a5a64698b5658cc533ffaf904f45dc
languageName: node
linkType: hard

"@ai-sdk/openai@npm:2.0.0-beta.12":
version: 2.0.0-beta.12
resolution: "@ai-sdk/openai@npm:2.0.0-beta.12"
"@ai-sdk/openai@npm:2.0.0-beta.13":
version: 2.0.0-beta.13
resolution: "@ai-sdk/openai@npm:2.0.0-beta.13"
dependencies:
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/a96f918f6264a335f26ff694c8952085dbb9a07df455ef32fcd5e8cc4ed7f7e59f2581e7b962a1c38ffd9d74d19290e78c003ab1c568287e029349652852a5a2
checksum: 10c0/5228cba76923b5662cd22b1a317f2e02466584808f6ddc2ca27695d34e3d575e1437467f1b613a423174ca48ad76e0bbaebb0e958b0da22affc99ceaf0fa4e38
languageName: node
linkType: hard

"@ai-sdk/provider-utils@npm:3.0.0-beta.6":
version: 3.0.0-beta.6
resolution: "@ai-sdk/provider-utils@npm:3.0.0-beta.6"
"@ai-sdk/provider-utils@npm:3.0.0-beta.7":
version: 3.0.0-beta.7
resolution: "@ai-sdk/provider-utils@npm:3.0.0-beta.7"
dependencies:
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@standard-schema/spec": "npm:^1.0.0"
eventsource-parser: "npm:^3.0.3"
zod-to-json-schema: "npm:^3.24.1"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/d1cc412d637689e9252b7e14c8db03e98df06bfd471aba2b1a1d715dbd1353854d046f3028dca6460b2f3741f9d76b0cf52ad76b4c833e3da87bb27d026a450a
checksum: 10c0/e26e8940b8841e0eb8341f7923bc418e9999c2ecbd290c9556b060cb7f9f3cc53ff70bc309229292ed014efb2a315f3e3992dbb5308bf0845bb5605aa9613da8
languageName: node
linkType: hard

Expand All @@ -156,12 +156,12 @@ __metadata:
languageName: node
linkType: hard

"@ai-sdk/react@npm:2.0.0-beta.28":
version: 2.0.0-beta.28
resolution: "@ai-sdk/react@npm:2.0.0-beta.28"
"@ai-sdk/react@npm:2.0.0-beta.29":
version: 2.0.0-beta.29
resolution: "@ai-sdk/react@npm:2.0.0-beta.29"
dependencies:
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
ai: "npm:5.0.0-beta.28"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
ai: "npm:5.0.0-beta.29"
swr: "npm:^2.2.5"
throttleit: "npm:2.1.0"
peerDependencies:
Expand All @@ -170,20 +170,20 @@ __metadata:
peerDependenciesMeta:
zod:
optional: true
checksum: 10c0/a3435b49eade4d51bbd608aba10102393fd0555004db4b300642fbf70617022741413230a5941afbadc7baf8a3a6f8a5607e50fae1616992c0b706760fc091b9
checksum: 10c0/3eb827b9edcac17a4eefcc7bff89ce44a74c3844e6a79749cbc729e39d845950dd88bc512902535888f0ee26726d6d2b2f57f870496d05a1ccbeaadfa997d771
languageName: node
linkType: hard

"@ai-sdk/xai@npm:2.0.0-beta.11":
version: 2.0.0-beta.11
resolution: "@ai-sdk/xai@npm:2.0.0-beta.11"
"@ai-sdk/xai@npm:2.0.0-beta.12":
version: 2.0.0-beta.12
resolution: "@ai-sdk/xai@npm:2.0.0-beta.12"
dependencies:
"@ai-sdk/openai-compatible": "npm:1.0.0-beta.9"
"@ai-sdk/openai-compatible": "npm:1.0.0-beta.10"
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
peerDependencies:
zod: ^3.25.76 || ^4
checksum: 10c0/1a3d8c4bab61cba471eb4fa2cf010c53d4c0ba56dec464bf2eebf37723049a40369db5ffc0d19a561a11b928f0509e2bc61d9d8f745266f17ad41b34fa850179
checksum: 10c0/1e2c25b7789a4d970d75b8313071b62edd04f933d50340673dc4ae8b8d2b38530a56e973fb7e1467a60c8a59de16afd30f104613db55c9184ed6c4213f92e882
languageName: node
linkType: hard

Expand Down Expand Up @@ -6497,16 +6497,16 @@ __metadata:
version: 0.0.0-use.local
resolution: "@sourcebot/web@workspace:packages/web"
dependencies:
"@ai-sdk/amazon-bedrock": "npm:3.0.0-beta.10"
"@ai-sdk/anthropic": "npm:2.0.0-beta.9"
"@ai-sdk/azure": "npm:2.0.0-beta.12"
"@ai-sdk/deepseek": "npm:1.0.0-beta.9"
"@ai-sdk/google": "npm:2.0.0-beta.15"
"@ai-sdk/google-vertex": "npm:3.0.0-beta.17"
"@ai-sdk/mistral": "npm:2.0.0-beta.7"
"@ai-sdk/openai": "npm:2.0.0-beta.12"
"@ai-sdk/react": "npm:2.0.0-beta.28"
"@ai-sdk/xai": "npm:2.0.0-beta.11"
"@ai-sdk/amazon-bedrock": "npm:3.0.0-beta.12"
"@ai-sdk/anthropic": "npm:2.0.0-beta.10"
"@ai-sdk/azure": "npm:2.0.0-beta.13"
"@ai-sdk/deepseek": "npm:1.0.0-beta.10"
"@ai-sdk/google": "npm:2.0.0-beta.16"
"@ai-sdk/google-vertex": "npm:3.0.0-beta.18"
"@ai-sdk/mistral": "npm:2.0.0-beta.8"
"@ai-sdk/openai": "npm:2.0.0-beta.13"
"@ai-sdk/react": "npm:2.0.0-beta.29"
"@ai-sdk/xai": "npm:2.0.0-beta.12"
"@auth/prisma-adapter": "npm:^2.7.4"
"@codemirror/commands": "npm:^6.6.0"
"@codemirror/lang-cpp": "npm:^6.0.2"
Expand Down Expand Up @@ -6603,7 +6603,7 @@ __metadata:
"@vercel/otel": "npm:^1.13.0"
"@viz-js/lang-dot": "npm:^1.0.4"
"@xiechao/codemirror-lang-handlebars": "npm:^1.0.4"
ai: "npm:5.0.0-beta.28"
ai: "npm:5.0.0-beta.29"
ajv: "npm:^8.17.1"
bcryptjs: "npm:^3.0.2"
chokidar: "npm:^4.0.3"
Expand Down Expand Up @@ -7992,19 +7992,19 @@ __metadata:
languageName: node
linkType: hard

"ai@npm:5.0.0-beta.28":
version: 5.0.0-beta.28
resolution: "ai@npm:5.0.0-beta.28"
"ai@npm:5.0.0-beta.29":
version: 5.0.0-beta.29
resolution: "ai@npm:5.0.0-beta.29"
dependencies:
"@ai-sdk/gateway": "npm:1.0.0-beta.14"
"@ai-sdk/gateway": "npm:1.0.0-beta.15"
"@ai-sdk/provider": "npm:2.0.0-beta.1"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.6"
"@ai-sdk/provider-utils": "npm:3.0.0-beta.7"
"@opentelemetry/api": "npm:1.9.0"
peerDependencies:
zod: ^3.25.76 || ^4
bin:
ai: dist/bin/ai.min.js
checksum: 10c0/58f178923ac885cde420091529cdc347b39f52389c06f7a1186564cb7936b761b4790aafd2d9e32c03b8805336be94c94957d3f0515acad7922a41c1d5239cda
checksum: 10c0/8d8632496a6812bb1d4c13858d0f301c75e1886ff4eec8097cdd4ff8745db6d3e1da4f7bd3c23bcdc57f5eaea92f3c39fae758ea74a37f47d276dff2ab2a3e92
languageName: node
linkType: hard

Expand Down