Skip to content
Open
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
2 changes: 1 addition & 1 deletion apps/hash-ai-worker-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"cache-manager": "5.7.6",
"dedent": "0.7.0",
"dotenv-flow": "3.3.0",
"e2b": "0.13.1",
"e2b": "0.16.2",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrading to e2b@0.16.2 appears to remove the CodeInterpreter export (it exists in 0.13.x), but the worker imports it from "e2b" in answer-question-action.ts. This will likely break compilation/runtime unless that usage is migrated to the updated E2B Code Interpreter API.

Other Locations
  • apps/hash-ai-worker-ts/src/activities/flow-activities/answer-question-action.ts:19

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeInterpreter removed from e2b package in v0.14.0

High Severity

The e2b package update from 0.13.1 to 0.16.2 removes the CodeInterpreter export that existing code depends on. According to the v0.14.0 release notes, CodeInterpreter was moved to a separate @e2b/code-interpreter package. The file answer-question-action.ts imports CodeInterpreter from e2b and uses it in runPythonCode(), which will fail after this update. The @e2b/code-interpreter package needs to be added as a dependency and the import updated accordingly.

Fix in Cursor Fix in Web

"exponential-backoff": "3.1.1",
"googleapis": "133.0.0",
"is-docker": "3.0.0",
Expand Down
12 changes: 5 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ __metadata:
cache-manager: "npm:5.7.6"
dedent: "npm:0.7.0"
dotenv-flow: "npm:3.3.0"
e2b: "npm:0.13.1"
e2b: "npm:0.16.2"
eslint: "npm:9.17.0"
exponential-backoff: "npm:3.1.1"
googleapis: "npm:133.0.0"
Expand Down Expand Up @@ -25420,9 +25420,9 @@ __metadata:
languageName: node
linkType: hard

"e2b@npm:0.13.1":
version: 0.13.1
resolution: "e2b@npm:0.13.1"
"e2b@npm:0.16.2":
version: 0.16.2
resolution: "e2b@npm:0.16.2"
dependencies:
bufferutil: "npm:^4.0.8"
isomorphic-ws: "npm:^5.0.0"
Expand All @@ -25432,14 +25432,12 @@ __metadata:
platform: "npm:^1.3.6"
utf-8-validate: "npm:^6.0.3"
ws: "npm:^8.15.1"
peerDependencies:
openai: ^4.17.4
dependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
checksum: 10c0/847029b8e83a6d60eff9d56e663231f6ecb474718698f391a37244e6e42188c1897be8129bfdd83cf6d03cc9365331d70845b230263a5e91e9a5d3f531230a4f
checksum: 10c0/7a5d0ba4c7c8b46147cdb6f70f8348ae877660a3b1ec643eba26b27e5844847f81e6eab53122272cdfcef45ee137f37d132d1247412b2e1defe1c7d05af272ec
languageName: node
linkType: hard

Expand Down