Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
docs(js): fix copy-pasted JSDoc params and an ungrammatical error message (#1815)
devin-ai-integration[bot]5921af6551c8
diff --git a/packages/code-interpreter-js/src/sandbox.ts b/packages/code-interpreter-js/src/sandbox.tsindex 7db1cd195..79210d8ec 100644--- a/packages/code-interpreter-js/src/sandbox.ts+++ b/packages/code-interpreter-js/src/sandbox.ts@@ -255,7 +255,7 @@ export class Sandbox extends BaseSandbox {if (!res.body) {throw new Error(- `Not response body: ${res.statusText} ${await res?.text()}`+ `No response body: ${res.statusText} ${await res?.text()}`)}diff --git a/packages/desktop-js/src/sandbox.ts b/packages/desktop-js/src/sandbox.tsindex 7a561118a..4ee6fbea2 100644--- a/packages/desktop-js/src/sandbox.ts+++ b/packages/desktop-js/src/sandbox.ts@@ -448,16 +448,13 @@ export class Sandbox extends SandboxBase {/*** Drag the mouse from the given position to the given position.- * @param from - The starting position.- * @param to - The ending position.+ * @param from - The starting position as `[x, y]`.+ * @param to - The ending position as `[x, y]`.*/- async drag(- [x1, y1]: [number, number],- [x2, y2]: [number, number]- ): Promise<void> {- await this.moveMouse(x1, y1)+ async drag(from: [number, number], to: [number, number]): Promise<void> {+ await this.moveMouse(...from)await this.mousePress()- await this.moveMouse(x2, y2)+ await this.moveMouse(...to)await this.mouseRelease()}diff --git a/packages/js-sdk/src/sandbox/index.ts b/packages/js-sdk/src/sandbox/index.tsindex 6dd455743..fd6c50d1d 100644--- a/packages/js-sdk/src/sandbox/index.ts+++ b/packages/js-sdk/src/sandbox/index.ts@@ -746,7 +746,7 @@ export class Sandbox extends SandboxApi {** @param path path to the file in the sandbox.*- * @param opts download url options.+ * @param opts upload url options.** @returns URL for uploading file.*/