Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix bug in edge environment; Improve start command logs handling; Fix timeout close; Reduce reconnect interval
Tomas Valenta5768231001e4
diff --git a/.changeset/lovely-gorillas-yell.md b/.changeset/lovely-gorillas-yell.mdnew file mode 100644index 000000000..c9136e336--- /dev/null+++ b/.changeset/lovely-gorillas-yell.md@@ -0,0 +1,5 @@+---+"@e2b/sdk": patch+---++Fix bug in edge environment; Improve start command logs handling; Fix timeout close; Reduce reconnect intervaldiff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex 9216e5649..6f6588dce 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -42,6 +42,7 @@"@types/normalize-path": "^3.0.0","@types/path-browserify": "^1.0.1","@types/platform": "^1.3.4",+ "@types/ws": "^8.5.10","@typescript-eslint/eslint-plugin": "^6.8.0","@typescript-eslint/parser": "^6.8.0","knip": "^2.34.0",@@ -72,16 +73,21 @@"typescript"],"dependencies": {+ "isomorphic-ws": "^5.0.0","normalize-path": "^3.0.0","openapi-typescript-fetch": "^1.1.3","path-browserify": "^1.0.1","platform": "^1.3.6",- "rpc-websocket-client": "^1.1.4"+ "ws": "^8.15.1"},"engines": {"node": ">=18"},"browserslist": ["defaults"- ]+ ],+ "optionalDependencies": {+ "bufferutil": "^4.0.8",+ "utf-8-validate": "^6.0.3"+ }}\ No newline at end of filediff --git a/packages/js-sdk/src/constants.ts b/packages/js-sdk/src/constants.tsindex 7d42a11a6..c759f8121 100644--- a/packages/js-sdk/src/constants.ts+++ b/packages/js-sdk/src/constants.ts@@ -1,5 +1,5 @@export const SANDBOX_REFRESH_PERIOD = 5_000 // 5s-export const WS_RECONNECT_INTERVAL = 600 // 600ms+export const WS_RECONNECT_INTERVAL = 150 // 150msexport const TIMEOUT = 60_000 // 60sdiff --git a/packages/js-sdk/src/sandbox/index.ts b/packages/js-sdk/src/sandbox/index.tsindex bb1e4e396..1f64c5489 100644--- a/packages/js-sdk/src/sandbox/index.ts+++ b/packages/js-sdk/src/sandbox/index.ts@@ -719,7 +719,9 @@ export class Sandbox extends SandboxConnection {await this.filesystem.makeDir(this.cwd)}- this.handleStartCmdLogs()+ if ((this.opts as SandboxOpts).onStdout || (this.opts as SandboxOpts).onStderr) {+ this.handleStartCmdLogs()+ }return this}diff --git a/packages/js-sdk/src/sandbox/rpc.ts b/packages/js-sdk/src/sandbox/rpc.tsnew file mode 100644index 000000000..70fa491b1--- /dev/null+++ b/packages/js-sdk/src/sandbox/rpc.ts@@ -0,0 +1,431 @@+// Based on https://github.com/radarsu/rpc-websocket-client++import IWebSocket from 'isomorphic-ws';++import { id } from '../utils/id';++export type RpcEventFunction = (+ // @ts-ignore+ e: IWebSocket.OpenEvent | IWebSocket.ErrorEvent+) => void;+export type RpcMessageEventFunction = (e: IWebSocket.MessageEvent) => void;+export type RpcCloseEventFunction = (e: IWebSocket.CloseEvent) => void;++export type RpcNotificationEvent = (data: IRpcNotification) => void;+export type RpcRequestEvent = (data: IRpcRequest) => void;+export type RpcSuccessResponseEvent = (data: IRpcSuccessResponse) => void;+export type RpcErrorResponseEvent = (data: IRpcErrorResponse) => void;++export enum RpcVersions {+ RPC_VERSION = '2.0'+}++export type RpcId = string | number;++export interface IRpcData {+ method: string;+ params?: any;+}++export interface IRpcNotification extends IRpcData {+ jsonrpc: RpcVersions.RPC_VERSION;+}++export interface IRpcRequest extends IRpcNotification {+ // if not included its notification+ id: RpcId;+}++export interface IRpcResponse {+ id: RpcId;+ jsonrpc: RpcVersions.RPC_VERSION;+}++export interface IRpcSuccessResponse extends IRpcResponse {+ // if not included its notification+ result: any;+}++export interface IRpcError {+ code: number;+ message: string;+ data?: any;+}++export interface IRpcErrorResponse extends IRpcResponse {+ error: IRpcError;+}++export interface IRpcWebSocketConfig {+ responseTimeout: number;+}++export type RpcUnidentifiedMessage =+ | IRpcRequest+ | IRpcNotification+ | IRpcSuccessResponse+ | IRpcErrorResponse;++export class RpcWebSocketClient {+ // native websocket++ public ws: IWebSocket;++ public onOpenHandlers: RpcEventFunction[] = [];+ public onAnyMessageHandlers: RpcMessageEventFunction[] = [];++ public onNotification: RpcNotificationEvent[] = [];+ public onRequest: RpcRequestEvent[] = [];+ public onSuccessResponse: RpcSuccessResponseEvent[] = [];+ public onErrorResponse: RpcErrorResponseEvent[] = [];++ public onErrorHandlers: RpcEventFunction[] = [];+ public onCloseHandlers: RpcCloseEventFunction[] = [];++ public config: IRpcWebSocketConfig = {+ responseTimeout: 10000+ };++ private idAwaiter: {+ [id: string]: (data?: any) => void;+ } = {};++ // constructor+ /**+ * Does not start WebSocket connection!+ * You need to call connect() method first.+ * @memberof RpcWebSocketClient+ */+ public constructor() {+ this.ws = undefined as any;+ }++ // public+ /**+ * Starts WebSocket connection. Returns Promise when connection is established.+ * @param {string} url+ * @param {(string | string[])} [protocols]+ * @memberof RpcWebSocketClient+ */+ public connect(url: string, protocols?: string | string[]) {+ this.ws = new IWebSocket(url, protocols);+ return this.listen();+ }++ // events+ public onOpen(fn: RpcEventFunction) {+ this.onOpenHandlers.push(fn);+ }++ /**+ * Native onMessage event. DO NOT USE THIS unless you really have to or for debugging purposes.+ * Proper RPC events are onRequest, onNotification, onSuccessResponse and onErrorResponse (or just awaiting response).+ * @param {RpcMessageEventFunction} fn+ * @memberof RpcWebSocketClient+ */+ public onAnyMessage(fn: RpcMessageEventFunction) {+ this.onAnyMessageHandlers.push(fn);+ }++ public onError(fn: RpcEventFunction) {+ this.onErrorHandlers.push(fn);+ }++ public onClose(fn: RpcCloseEventFunction) {+ this.onCloseHandlers.push(fn);+ }++ /**+ * Appends onmessage listener on native websocket with RPC handlers.+ * If onmessage function was already there, it will call it on beggining.+ * Useful if you want to use RPC WebSocket Client on already established WebSocket along with function changeSocket().+ * @memberof RpcWebSocketClient+ */+ public listenMessages() {+ let previousOnMessage: RpcMessageEventFunction | undefined;+ if (this.ws.onmessage) {+ previousOnMessage = this.ws.onmessage.bind(this.ws);+ }++ this.ws.onmessage = (e: IWebSocket.MessageEvent) => {+ if (previousOnMessage) {+ previousOnMessage(e);+ }++ for (const handler of this.onAnyMessageHandlers) {+ handler(e);+ }++ const data: RpcUnidentifiedMessage = JSON.parse(e.data.toString());+ if (this.isNotification(data)) {+ // notification+ for (const handler of this.onNotification) {+ handler(data);+ }+ } else if (this.isRequest(data)) {+ // request+ for (const handler of this.onRequest) {+ handler(data);+ }+ // responses+ } else if (this.isSuccessResponse(data)) {+ // success+ for (const handler of this.onSuccessResponse) {+ handler(data);+ }++ // resolve awaiting function+ this.idAwaiter[data.id](data.result);+ } else if (this.isErrorResponse(data)) {+ // error+ for (const handler of this.onErrorResponse) {+ handler(data);+ }++ // resolve awaiting function+ this.idAwaiter[data.id](data.error);+ }+ };+ }++ // communication++ /**+ * Creates and sends RPC request. Resolves when appropirate response is returned from server or after config.responseTimeout.+ * @param {string} method+ * @param {*} [params]+ * @returns+ * @memberof RpcWebSocketClient+ */+ public call(method: string, params?: any) {+ return new Promise((resolve, reject) => {+ const data = this.buildRequest(method, params);++ // give limited time for response+ let timeout: number | NodeJS.Timeout;+ if (this.config.responseTimeout) {+ timeout = setTimeout(() => {+ // stop waiting for response+ delete this.idAwaiter[data.id];+ reject(+ `Awaiting response to "${method}" with id: ${data.id} timed out.`+ );+ }, this.config.responseTimeout);+ }++ // expect response+ this.idAwaiter[data.id] = (responseData?: any) => {+ // stop timeout+ clearInterval(timeout as number);+ // stop waiting for response+ delete this.idAwaiter[data.id];++ if (this.isRpcError(responseData)) {+ reject(responseData);+ return;+ }++ resolve(responseData);+ };++ const json = JSON.stringify(data);+ this.ws.send(json);+ });+ }++ /**+ * Creates and sends RPC Notification.+ * @param {string} method+ * @param {*} [params]+ * @memberof RpcWebSocketClient+ */+ public notify(method: string, params?: any) {+ this.ws.send(JSON.stringify(this.buildNotification(method, params)));+ }++ // setup++ /**+ * You can provide custom id generation function to replace default uuid/v1.+ * @param {() => string} idFn+ * @memberof RpcWebSocketClient+ */+ public customId(idFn: () => string) {+ this.idFn = idFn;+ }++ /**+ * Removed jsonrpc from sent messages. Good if you don't care about standards or need better performance.+ * @memberof RpcWebSocketClient+ */+ public noRpc() {+ this.buildRequest = this.buildRequestBase;+ this.buildNotification = this.buildNotificationBase;+ this.buildRpcSuccessResponse = this.buildRpcSuccessResponseBase;+ this.buildRpcErrorResponse = this.buildRpcErrorResponseBase;+ }++ /**+ * Allows modifying configuration.+ * @param {RpcWebSocketConfig} options+ * @memberof RpcWebSocketClient+ */+ public configure(options: IRpcWebSocketConfig) {+ Object.assign(this.config, options);+ }++ /**+ * Allows you to change used native WebSocket client to another one.+ * If you have already-connected WebSocket, use this with listenMessages().+ * @param {WebSocket} ws+ * @memberof RpcWebSocketClient+ */+ public changeSocket(ws: IWebSocket) {+ this.ws = ws;+ }++ // private++ // events+ private listen() {+ return new Promise((resolve, reject) => {+ // @ts-ignore+ this.ws.onopen = (e: IWebSocket.OpenEvent) => {+ for (const handler of this.onOpenHandlers) {+ handler(e);+ }+ resolve(e);+ };++ // listen for messages+ this.listenMessages();++ // called before onclose+ this.ws.onerror = (e: IWebSocket.ErrorEvent) => {+ for (const handler of this.onErrorHandlers) {+ handler(e);+ }+ };++ this.ws.onclose = (e: IWebSocket.CloseEvent) => {+ for (const handler of this.onCloseHandlers) {+ handler(e);+ }+ reject(e);+ };+ });+ }++ // request+ private buildRequest(method: string, params?: any): IRpcRequest {+ const data = this.buildRequestBase(method, params);+ data.jsonrpc = RpcVersions.RPC_VERSION;+ return data;+ }++ private buildRequestBase(method: string, params?: any): IRpcRequest {+ const data: IRpcRequest = {} as any;+ data.id = this.idFn();+ data.method = method;++ if (params) {+ data.params = params;+ }++ return data;+ }++ // notification+ private buildNotification(method: string, params?: any): IRpcNotification {+ const data = this.buildNotificationBase(method, params);+ data.jsonrpc = RpcVersions.RPC_VERSION;+ return data;+ }++ private buildNotificationBase(+ method: string,+ params?: any+ ): IRpcNotification {+ const data: IRpcNotification = {} as any;+ data.method = method;++ if (params) {+ data.params = params;+ }++ return data;+ }++ // success response+ private buildRpcSuccessResponse(+ id: RpcId,+ result: any+ ): IRpcSuccessResponse {+ const data = this.buildRpcSuccessResponseBase(id, result);+ data.jsonrpc = RpcVersions.RPC_VERSION;+ return data;+ }++ private buildRpcSuccessResponseBase(+ id: RpcId,+ result: any+ ): IRpcSuccessResponse {+ const data: IRpcSuccessResponse = {} as any;+ data.id = id;+ data.result = result;+ return data;+ }++ // error response+ private buildRpcErrorResponse(+ id: RpcId,+ error: IRpcError+ ): IRpcErrorResponse {+ const data = this.buildRpcErrorResponseBase(id, error);+ data.jsonrpc = RpcVersions.RPC_VERSION;+ return data;+ }++ private buildRpcErrorResponseBase(+ id: RpcId,+ error: IRpcError+ ): IRpcErrorResponse {+ const data: IRpcErrorResponse = {} as any;+ data.id = id;+ data.error = error;+ return data;+ }++ private idFn(): RpcId {+ return id(12);+ }++ // tests+ private isNotification(+ data: RpcUnidentifiedMessage+ ): data is IRpcNotification {+ return !(data as any).id;+ }++ private isRequest(data: RpcUnidentifiedMessage): data is IRpcRequest {+ return (data as any).method;+ }++ private isSuccessResponse(+ data: RpcUnidentifiedMessage+ ): data is IRpcSuccessResponse {+ // eslint-disable-next-line no-prototype-builtins+ return data.hasOwnProperty(`result`);+ }++ private isErrorResponse(+ data: RpcUnidentifiedMessage+ ): data is IRpcErrorResponse {+ // eslint-disable-next-line no-prototype-builtins+ return data.hasOwnProperty(`error`);+ }++ private isRpcError(data: any): data is IRpcError {+ return typeof data?.code !== 'undefined';+ }+}diff --git a/packages/js-sdk/src/sandbox/sandboxConnection.ts b/packages/js-sdk/src/sandbox/sandboxConnection.tsindex 484ac3689..449dc03be 100644--- a/packages/js-sdk/src/sandbox/sandboxConnection.ts+++ b/packages/js-sdk/src/sandbox/sandboxConnection.ts@@ -1,4 +1,4 @@-import { IRpcNotification, RpcWebSocketClient } from 'rpc-websocket-client'+import { IRpcNotification, RpcWebSocketClient } from './rpc'import api, { components, withAPIKey } from '../api'import { ENVD_PORT, SANDBOX_DOMAIN, SANDBOX_REFRESH_PERIOD, SECURE, WS_RECONNECT_INTERVAL, WS_ROUTE } from '../constants'@@ -366,7 +366,13 @@ export class SandboxConnection {await this.connectRpc()return this}- return await withTimeout(open, opts?.timeout)()++ try {+ return await withTimeout(open, opts?.timeout)()+ } catch (err) {+ await this.close()+ throw err+ }}private async connectRpc() {@@ -374,14 +380,6 @@ export class SandboxConnection {const protocol = this.getProtocol('ws')const sandboxURL = `${protocol}://${hostname}${WS_ROUTE}`- this.rpc.onError((err) => {- // not warn, because this is somewhat expected behaviour during initialization- this.logger.debug?.(- `Error in WebSocket of sandbox "${this.sandbox?.instanceID}": ${err.message ?? err.code ?? err.toString()- }. Trying to reconnect...`,- )- })-let isFinished = falselet resolveOpening: (() => void) | undefinedlet rejectOpening: (() => void) | undefined@@ -406,10 +404,12 @@ export class SandboxConnection {resolveOpening?.()})- this.rpc.onClose(async () => {+ this.rpc.onError(async (err) => {this.logger.debug?.(- `Closing WebSocket connection to sandbox "${this.sandbox?.instanceID}"`,+ `Error in WebSocket of sandbox "${this.sandbox?.instanceID}": ${err.message ?? err.code ?? err.toString()+ }. Trying to reconnect...`,)+if (this.isOpen) {await wait(WS_RECONNECT_INTERVAL)this.logger.debug?.(@@ -436,14 +436,19 @@ export class SandboxConnection {}})+ this.rpc.onClose(async () => {+ this.logger.debug?.(+ `WebSocket connection to sandbox "${this.sandbox?.instanceID}" closed`,+ )+ })+this.rpc.onNotification.push(this.handleNotification.bind(this))try {this.logger.debug?.(- `Connection to sandbox "${this.sandbox?.instanceID}"`,+ `Connecting to sandbox "${this.sandbox?.instanceID}"`,)await this.rpc.connect(sandboxURL)-// eslint-disable-next-line @typescript-eslint/no-explicit-any} catch (err: any) {// not warn, because this is somewhat expected behaviour during initialization@@ -455,6 +460,7 @@ export class SandboxConnection {await openingPromise}+private handleNotification(data: IRpcNotification) {this.logger.debug?.('Handling notification:', data)this.subscribersdiff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9fa641b21..04ec33825 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -315,6 +315,9 @@ importers:packages/js-sdk:dependencies:+ isomorphic-ws:+ specifier: ^5.0.0+ version: 5.0.0([email protected])normalize-path:specifier: ^3.0.0version: 3.0.0@@ -330,9 +333,16 @@ importers:platform:specifier: ^1.3.6version: 1.3.6- rpc-websocket-client:- specifier: ^1.1.4- version: 1.1.4+ ws:+ specifier: ^8.15.1+ version: 8.15.1([email protected])([email protected])+ optionalDependencies:+ bufferutil:+ specifier: ^4.0.8+ version: 4.0.8+ utf-8-validate:+ specifier: ^6.0.3+ version: 6.0.3devDependencies:'@types/node':specifier: ^18.18.6@@ -346,6 +356,9 @@ importers:'@types/platform':specifier: ^1.3.4version: 1.3.5+ '@types/ws':+ specifier: ^8.5.10+ version: 8.5.10'@typescript-eslint/eslint-plugin':specifier: ^6.8.0@@ -2878,7 +2891,7 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-bQVlnMLFJ2d35DkPNjEPmd9ueO/rh5EiaZt2bhqiSarPjZIuIV6bPQVqcrEyvNo+AfTrRGVazle1tl597w3gfA==}dependencies:- '@types/node': 20.10.4+ '@types/node': 20.6.3form-data: 4.0.0dev: false@@ -3019,6 +3032,12 @@ packages:'@types/node': 20.10.4dev: false+ /@types/[email protected]:+ resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==}+ dependencies:+ '@types/node': 20.10.4+ dev: true+/@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-ooaHxlmSgZTM6CHYAFRlifqh1OAr3PAQEwi7lhYhaegbnXrnh7CDcHmc3+ihhbQC7H0i4JF0psI5ehzkF6Yl6Q==}engines: {node: ^16.0.0 || >=18.0.0}@@ -3967,6 +3986,14 @@ packages:node-gyp-build: 4.6.1dev: false+ resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==}+ engines: {node: '>=6.14.2'}+ requiresBuild: true+ dependencies:+ node-gyp-build: 4.6.1+ dev: false+resolution: {integrity: sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==}dependencies:@@ -5062,7 +5089,7 @@ packages:eslint: 8.49.0eslint-import-resolver-node: 0.3.9eslint-import-resolver-typescript: 3.6.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- eslint-plugin-import: 2.28.1(@typescript-eslint/[email protected])([email protected])+ eslint-plugin-import: 2.28.1(@typescript-eslint/[email protected])([email protected])([email protected])eslint-plugin-jsx-a11y: 6.7.1([email protected])eslint-plugin-react: 7.33.2([email protected])eslint-plugin-react-hooks: 4.6.0([email protected])@@ -5093,7 +5120,7 @@ packages:enhanced-resolve: 5.15.0eslint: 8.49.0eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])- eslint-plugin-import: 2.28.1(@typescript-eslint/[email protected])([email protected])+ eslint-plugin-import: 2.28.1(@typescript-eslint/[email protected])([email protected])([email protected])fast-glob: 3.3.1get-tsconfig: 4.7.0is-core-module: 2.13.0@@ -5135,36 +5162,7 @@ packages:- supports-colordev: true- resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}- engines: {node: '>=4'}- peerDependencies:- '@typescript-eslint/parser': '*'- eslint: '*'- eslint-import-resolver-node: '*'- eslint-import-resolver-typescript: '*'- eslint-import-resolver-webpack: '*'- peerDependenciesMeta:- '@typescript-eslint/parser':- optional: true- eslint:- optional: true- eslint-import-resolver-node:- optional: true- eslint-import-resolver-typescript:- optional: true- eslint-import-resolver-webpack:- optional: true- dependencies:- '@typescript-eslint/parser': 6.7.2([email protected])([email protected])- debug: 3.2.7- eslint: 8.49.0- eslint-import-resolver-node: 0.3.9- transitivePeerDependencies:- - supports-color- dev: true-resolution: {integrity: sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==}engines: {node: '>=4'}peerDependencies:@@ -5174,7 +5172,7 @@ packages:'@typescript-eslint/parser':optional: truedependencies:- '@typescript-eslint/parser': 6.7.2([email protected])([email protected])+ '@typescript-eslint/parser': 6.7.2([email protected])([email protected])array-includes: 3.1.7array.prototype.findlastindex: 1.2.3array.prototype.flat: 1.3.2@@ -5183,7 +5181,7 @@ packages:doctrine: 2.1.0eslint: 8.49.0eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])+ eslint-module-utils: 2.8.0(@typescript-eslint/[email protected])([email protected])([email protected])([email protected])has: 1.0.3is-core-module: 2.13.0is-glob: 4.0.3@@ -6666,6 +6664,14 @@ packages:ws: 7.5.9dev: false+ resolution: {integrity: sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==}+ peerDependencies:+ ws: '*'+ dependencies:+ ws: 8.15.1([email protected])([email protected])+ dev: false+resolution: {integrity: sha512-hJnEP2Xk4+44DDwJqUQGdXal5VbyeWLaPyDl2AQc242Zr7iqz4DgpQOrEzglWVMGHMDCkguLHEKxd1+rOsmgSQ==}engines: {node: '>=4'}@@ -6703,7 +6709,7 @@ packages:resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}engines: {node: '>= 10.13.0'}dependencies:- '@types/node': 20.10.4+ '@types/node': 20.6.3merge-stream: 2.0.0supports-color: 8.1.1dev: false@@ -10949,6 +10955,14 @@ packages:node-gyp-build: 4.6.1dev: false+ resolution: {integrity: sha512-uIuGf9TWQ/y+0Lp+KGZCMuJWc3N9BHA+l/UmHd/oUHwJJDeysyTRxNQVkbzsIWfGFbRe3OcgML/i0mvVRPOyDA==}+ engines: {node: '>=6.14.2'}+ requiresBuild: true+ dependencies:+ node-gyp-build: 4.6.1+ dev: false+resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}@@ -11410,6 +11424,22 @@ packages:optional: truedev: false+ resolution: {integrity: sha512-W5OZiCjXEmk0yZ66ZN82beM5Sz7l7coYxpRkzS+p9PP+ToQry8szKh+61eNktr7EA9DOwvFGhfC605jDHbP6QQ==}+ engines: {node: '>=10.0.0'}+ peerDependencies:+ bufferutil: ^4.0.1+ utf-8-validate: '>=5.0.2'+ peerDependenciesMeta:+ bufferutil:+ optional: true+ utf-8-validate:+ optional: true+ dependencies:+ bufferutil: 4.0.8+ utf-8-validate: 6.0.3+ dev: false+resolution: {integrity: sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==}engines: {node: '>=8'}