Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix naming
Tomas Valenta5a1aadb53451
diff --git a/packages/js-sdk/tests/api/kill.test.mts b/packages/js-sdk/tests/api/kill.test.tssimilarity index 86%rename from packages/js-sdk/tests/api/kill.test.mtsrename to packages/js-sdk/tests/api/kill.test.tsindex 8d5f0367c..8017daf93 100644--- a/packages/js-sdk/tests/api/kill.test.mts+++ b/packages/js-sdk/tests/api/kill.test.ts@@ -1,6 +1,6 @@import { expect } from 'vitest'-import { sandboxTest, isDebug } from '../setup.mjs'+import { sandboxTest, isDebug } from '../setup.js'import { Sandbox } from '../../src'sandboxTest.skipIf(isDebug)('kill existing sandbox', async ({ sandbox }) => {diff --git a/packages/js-sdk/tests/api/list.test.mts b/packages/js-sdk/tests/api/list.test.tssimilarity index 85%rename from packages/js-sdk/tests/api/list.test.mtsrename to packages/js-sdk/tests/api/list.test.tsindex 871593ff4..31746a46c 100644--- a/packages/js-sdk/tests/api/list.test.mts+++ b/packages/js-sdk/tests/api/list.test.ts@@ -1,7 +1,7 @@import { assert } from 'vitest'import { Sandbox } from '../../src'-import { sandboxTest, isDebug } from '../setup.mjs'+import { sandboxTest, isDebug } from '../setup.js'sandboxTest.skipIf(isDebug)('list sandboxes', async ({ sandbox }) => {const sandboxes = await Sandbox.list()diff --git a/packages/js-sdk/tests/sandbox/commands/connect.test.mts b/packages/js-sdk/tests/sandbox/commands/connect.test.tssimilarity index 91%rename from packages/js-sdk/tests/sandbox/commands/connect.test.mtsrename to packages/js-sdk/tests/sandbox/commands/connect.test.tsindex ae561fb46..a624e0408 100644--- a/packages/js-sdk/tests/sandbox/commands/connect.test.mts+++ b/packages/js-sdk/tests/sandbox/commands/connect.test.ts@@ -1,5 +1,5 @@import { assert, expect } from 'vitest'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('connect to process', async ({ sandbox }) => {const cmd = await sandbox.commands.run('sleep 10', { background: true })diff --git a/packages/js-sdk/tests/sandbox/commands/kill.test.mts b/packages/js-sdk/tests/sandbox/commands/kill.test.tssimilarity index 93%rename from packages/js-sdk/tests/sandbox/commands/kill.test.mtsrename to packages/js-sdk/tests/sandbox/commands/kill.test.tsindex 2a6e51546..72a64c408 100644--- a/packages/js-sdk/tests/sandbox/commands/kill.test.mts+++ b/packages/js-sdk/tests/sandbox/commands/kill.test.ts@@ -2,7 +2,7 @@ import { expect } from 'vitest'import { NotFoundError } from '../../../src/errors.js'import { ProcessExitError } from '../../../src/index.js'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('kill process', async ({ sandbox }) => {const cmd = await sandbox.commands.run('sleep 10', { background: true })diff --git a/packages/js-sdk/tests/sandbox/commands/list.test.mts b/packages/js-sdk/tests/sandbox/commands/list.test.tssimilarity index 90%rename from packages/js-sdk/tests/sandbox/commands/list.test.mtsrename to packages/js-sdk/tests/sandbox/commands/list.test.tsindex 051e1d9b8..02ba61a54 100644--- a/packages/js-sdk/tests/sandbox/commands/list.test.mts+++ b/packages/js-sdk/tests/sandbox/commands/list.test.ts@@ -1,5 +1,5 @@import { assert } from 'vitest'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('list processes', async ({ sandbox }) => {// Start them firstsdiff --git a/packages/js-sdk/tests/sandbox/commands/run.test.mts b/packages/js-sdk/tests/sandbox/commands/run.test.tssimilarity index 95%rename from packages/js-sdk/tests/sandbox/commands/run.test.mtsrename to packages/js-sdk/tests/sandbox/commands/run.test.tsindex 5f451e8e1..d7262e520 100644--- a/packages/js-sdk/tests/sandbox/commands/run.test.mts+++ b/packages/js-sdk/tests/sandbox/commands/run.test.ts@@ -1,6 +1,6 @@import { expect, assert } from 'vitest'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('run', async ({ sandbox }) => {const text = 'Hello, World!'diff --git a/packages/js-sdk/tests/sandbox/commands/sendStdin.test.mts b/packages/js-sdk/tests/sandbox/commands/sendStdin.test.tssimilarity index 96%rename from packages/js-sdk/tests/sandbox/commands/sendStdin.test.mtsrename to packages/js-sdk/tests/sandbox/commands/sendStdin.test.tsindex 09cb0ceaa..550c04a15 100644--- a/packages/js-sdk/tests/sandbox/commands/sendStdin.test.mts+++ b/packages/js-sdk/tests/sandbox/commands/sendStdin.test.ts@@ -1,5 +1,5 @@import { assert } from 'vitest'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('send stdin to process', async ({ sandbox }) => {const text = 'Hello, World!'diff --git a/packages/js-sdk/tests/sandbox/connect.test.mts b/packages/js-sdk/tests/sandbox/connect.test.tssimilarity index 90%rename from packages/js-sdk/tests/sandbox/connect.test.mtsrename to packages/js-sdk/tests/sandbox/connect.test.tsindex 20d2b24ab..d5884b9bf 100644--- a/packages/js-sdk/tests/sandbox/connect.test.mts+++ b/packages/js-sdk/tests/sandbox/connect.test.ts@@ -1,7 +1,7 @@import { test, assert } from 'vitest'import { Sandbox } from '../../src'-import { template } from '../setup.mjs'+import { template } from '../setup.js'test('connect', async () => {const sbx = await Sandbox.create(template, { timeoutMs: 10_000 })diff --git a/packages/js-sdk/tests/sandbox/create.test.mts b/packages/js-sdk/tests/sandbox/create.test.tssimilarity index 92%rename from packages/js-sdk/tests/sandbox/create.test.mtsrename to packages/js-sdk/tests/sandbox/create.test.tsindex c4b0842c0..70d005938 100644--- a/packages/js-sdk/tests/sandbox/create.test.mts+++ b/packages/js-sdk/tests/sandbox/create.test.ts@@ -1,7 +1,7 @@import { test, assert } from 'vitest'import { Sandbox } from '../../src'-import { template, isDebug } from '../setup.mjs'+import { template, isDebug } from '../setup.js'test.skipIf(isDebug)('create', async () => {const sbx = await Sandbox.create(template, { timeoutMs: 5_000 })diff --git a/packages/js-sdk/tests/sandbox/files/exists.test.mts b/packages/js-sdk/tests/sandbox/files/exists.test.tssimilarity index 90%rename from packages/js-sdk/tests/sandbox/files/exists.test.mtsrename to packages/js-sdk/tests/sandbox/files/exists.test.tsindex f851f3965..4ebc0ce8a 100644--- a/packages/js-sdk/tests/sandbox/files/exists.test.mts+++ b/packages/js-sdk/tests/sandbox/files/exists.test.ts@@ -1,6 +1,6 @@import { assert } from 'vitest'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('file exists', async ({ sandbox }) => {const filename = 'test_exists.txt'diff --git a/packages/js-sdk/tests/sandbox/files/list.test.mts b/packages/js-sdk/tests/sandbox/files/list.test.tssimilarity index 100%rename from packages/js-sdk/tests/sandbox/files/list.test.mtsrename to packages/js-sdk/tests/sandbox/files/list.test.tsdiff --git a/packages/js-sdk/tests/sandbox/files/makeDir.test.mts b/packages/js-sdk/tests/sandbox/files/makeDir.test.tssimilarity index 91%rename from packages/js-sdk/tests/sandbox/files/makeDir.test.mtsrename to packages/js-sdk/tests/sandbox/files/makeDir.test.tsindex 2787bf6ba..5a3c752cc 100644--- a/packages/js-sdk/tests/sandbox/files/makeDir.test.mts+++ b/packages/js-sdk/tests/sandbox/files/makeDir.test.ts@@ -1,6 +1,6 @@import { assert } from 'vitest'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('make directory', async ({ sandbox }) => {const dirName = 'test_directory'diff --git a/packages/js-sdk/tests/sandbox/files/read.test.mts b/packages/js-sdk/tests/sandbox/files/read.test.tssimilarity index 92%rename from packages/js-sdk/tests/sandbox/files/read.test.mtsrename to packages/js-sdk/tests/sandbox/files/read.test.tsindex 34d34ced6..e9c26969c 100644--- a/packages/js-sdk/tests/sandbox/files/read.test.mts+++ b/packages/js-sdk/tests/sandbox/files/read.test.ts@@ -1,7 +1,7 @@import { expect, assert } from 'vitest'import { NotFoundError } from '../../../src'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('read file', async ({ sandbox }) => {const filename = 'test_read.txt'diff --git a/packages/js-sdk/tests/sandbox/files/remove.test.mts b/packages/js-sdk/tests/sandbox/files/remove.test.tssimilarity index 91%rename from packages/js-sdk/tests/sandbox/files/remove.test.mtsrename to packages/js-sdk/tests/sandbox/files/remove.test.tsindex b3dcc02e7..ef760d025 100644--- a/packages/js-sdk/tests/sandbox/files/remove.test.mts+++ b/packages/js-sdk/tests/sandbox/files/remove.test.ts@@ -1,6 +1,6 @@import { assert } from 'vitest'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('remove file', async ({ sandbox }) => {const filename = 'test_remove.txt'diff --git a/packages/js-sdk/tests/sandbox/files/rename.test.mts b/packages/js-sdk/tests/sandbox/files/rename.test.tssimilarity index 95%rename from packages/js-sdk/tests/sandbox/files/rename.test.mtsrename to packages/js-sdk/tests/sandbox/files/rename.test.tsindex 18eb5d1b4..55354befb 100644--- a/packages/js-sdk/tests/sandbox/files/rename.test.mts+++ b/packages/js-sdk/tests/sandbox/files/rename.test.ts@@ -1,7 +1,7 @@import { assert, expect } from 'vitest'import { NotFoundError } from '../../../src'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('rename file', async ({ sandbox }) => {const oldFilename = 'test_rename_old.txt'diff --git a/packages/js-sdk/tests/sandbox/files/watch.test.mts b/packages/js-sdk/tests/sandbox/files/watch.test.tssimilarity index 95%rename from packages/js-sdk/tests/sandbox/files/watch.test.mtsrename to packages/js-sdk/tests/sandbox/files/watch.test.tsindex bab1adb93..0f14a76f6 100644--- a/packages/js-sdk/tests/sandbox/files/watch.test.mts+++ b/packages/js-sdk/tests/sandbox/files/watch.test.ts@@ -1,6 +1,6 @@import { assert, expect } from 'vitest'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'import { FilesystemEventType, NotFoundError } from '../../../src'sandboxTest('watch directory changes', async ({ sandbox }) => {diff --git a/packages/js-sdk/tests/sandbox/files/write.test.mts b/packages/js-sdk/tests/sandbox/files/write.test.tssimilarity index 96%rename from packages/js-sdk/tests/sandbox/files/write.test.mtsrename to packages/js-sdk/tests/sandbox/files/write.test.tsindex d8fe91b4e..b59e1626a 100644--- a/packages/js-sdk/tests/sandbox/files/write.test.mts+++ b/packages/js-sdk/tests/sandbox/files/write.test.ts@@ -1,6 +1,6 @@import { assert } from 'vitest'-import { sandboxTest } from '../../setup.mjs'+import { sandboxTest } from '../../setup.js'sandboxTest('write file', async ({ sandbox }) => {const filename = 'test_write.txt'diff --git a/packages/js-sdk/tests/sandbox/host.test.mts b/packages/js-sdk/tests/sandbox/host.test.tssimilarity index 88%rename from packages/js-sdk/tests/sandbox/host.test.mtsrename to packages/js-sdk/tests/sandbox/host.test.tsindex d9c535c77..f499f7d3e 100644--- a/packages/js-sdk/tests/sandbox/host.test.mts+++ b/packages/js-sdk/tests/sandbox/host.test.ts@@ -1,6 +1,6 @@import { assert } from 'vitest'-import { isDebug, sandboxTest, wait } from '../setup.mjs'+import { isDebug, sandboxTest, wait } from '../setup.js'sandboxTest('ping server in sandbox', async ({ sandbox }) => {const cmd = await sandbox.commands.run('python -m http.server 8000', { background: true })diff --git a/packages/js-sdk/tests/sandbox/kill.test.mts b/packages/js-sdk/tests/sandbox/kill.test.tssimilarity index 77%rename from packages/js-sdk/tests/sandbox/kill.test.mtsrename to packages/js-sdk/tests/sandbox/kill.test.tsindex 11ac5c978..53366b6a5 100644--- a/packages/js-sdk/tests/sandbox/kill.test.mts+++ b/packages/js-sdk/tests/sandbox/kill.test.ts@@ -1,6 +1,6 @@import { expect } from 'vitest'-import { sandboxTest, isDebug } from '../setup.mjs'+import { sandboxTest, isDebug } from '../setup.js'sandboxTest.skipIf(isDebug)('kill', async ({ sandbox }) => {await sandbox.kill()diff --git a/packages/js-sdk/tests/sandbox/pty/create.test.mts b/packages/js-sdk/tests/sandbox/pty/create.test.tssimilarity index 100%rename from packages/js-sdk/tests/sandbox/pty/create.test.mtsrename to packages/js-sdk/tests/sandbox/pty/create.test.tsdiff --git a/packages/js-sdk/tests/sandbox/pty/resize.test.mts b/packages/js-sdk/tests/sandbox/pty/resize.test.tssimilarity index 100%rename from packages/js-sdk/tests/sandbox/pty/resize.test.mtsrename to packages/js-sdk/tests/sandbox/pty/resize.test.tsdiff --git a/packages/js-sdk/tests/sandbox/pty/streamInput.test.mts b/packages/js-sdk/tests/sandbox/pty/streamInput.test.tssimilarity index 100%rename from packages/js-sdk/tests/sandbox/pty/streamInput.test.mtsrename to packages/js-sdk/tests/sandbox/pty/streamInput.test.tsdiff --git a/packages/js-sdk/tests/sandbox/timeout.test.mts b/packages/js-sdk/tests/sandbox/timeout.test.tssimilarity index 88%rename from packages/js-sdk/tests/sandbox/timeout.test.mtsrename to packages/js-sdk/tests/sandbox/timeout.test.tsindex 4312198a3..c02e84286 100644--- a/packages/js-sdk/tests/sandbox/timeout.test.mts+++ b/packages/js-sdk/tests/sandbox/timeout.test.ts@@ -1,6 +1,6 @@import { expect } from 'vitest'-import { sandboxTest, isDebug, wait } from '../setup.mjs'+import { sandboxTest, isDebug, wait } from '../setup.js'sandboxTest.skipIf(isDebug)('shorten timeout', async ({ sandbox }) => {await sandbox.setTimeout(5000)diff --git a/packages/js-sdk/tests/sandbox/uploadUrl.test.mts b/packages/js-sdk/tests/sandbox/uploadUrl.test.tssimilarity index 87%rename from packages/js-sdk/tests/sandbox/uploadUrl.test.mtsrename to packages/js-sdk/tests/sandbox/uploadUrl.test.tsindex b225c4ab4..3c6798c80 100644--- a/packages/js-sdk/tests/sandbox/uploadUrl.test.mts+++ b/packages/js-sdk/tests/sandbox/uploadUrl.test.ts@@ -1,5 +1,5 @@-import { sandboxTest } from '../setup.mjs'+import { sandboxTest } from '../setup.js'sandboxTest('upload file via url', async ({ sandbox }) => {const url = sandbox.uploadUrl()diff --git a/packages/js-sdk/tests/setup.mts b/packages/js-sdk/tests/setup.tssimilarity index 100%rename from packages/js-sdk/tests/setup.mtsrename to packages/js-sdk/tests/setup.tsdiff --git a/packages/js-sdk/vitest.config.mts b/packages/js-sdk/vitest.config.mtsindex 084b9bbe6..f56619342 100644--- a/packages/js-sdk/vitest.config.mts+++ b/packages/js-sdk/vitest.config.mts@@ -8,7 +8,7 @@ export default defineConfig({poolOptions: {threads: {minThreads: 1,- maxThreads: 5,+ maxThreads: 4,},},maxWorkers: 5,diff --git a/packages/python-sdk/package.json b/packages/python-sdk/package.jsonindex a6aca3c3f..03fc8fb92 100644--- a/packages/python-sdk/package.json+++ b/packages/python-sdk/package.json@@ -3,7 +3,7 @@"private": true,"version": "0.17.1","scripts": {- "test": "poetry run pytest -n 5 --verbose -x",+ "test": "poetry run pytest -n 4 --verbose -x","postVersion": "poetry version $(pnpm pkg get version --workspaces=false | tr -d \\\")","postPublish": "poetry build && poetry config pypi-token.pypi ${PYPI_TOKEN} && poetry publish --skip-existing","pretest": "poetry install"