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
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abox-dev/cli",
"version": "0.1.5",
"version": "0.1.6",
"description": "CLI for AgentBox sandboxes and templates",
"homepage": "https://docs.agentbox.ru/en/cli/",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/code-interpreter-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abox-dev/code-interpreter",
"version": "0.1.5",
"version": "0.1.6",
"packageManager": "pnpm@10.34.5",
"description": "AgentBox Code Interpreter - Stateful code execution",
"homepage": "https://docs.agentbox.ru/en/sdk/code-interpreter/",
Expand Down
2 changes: 1 addition & 1 deletion packages/code-interpreter-python/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@abox-dev/code-interpreter-python",
"private": true,
"version": "0.1.5",
"version": "0.1.6",
"scripts": {
"test": "uv run pytest -n 2 --verbose -x tests/test_sandbox_url.py",
"test:integration": "uv run pytest -n 2 --verbose -x",
Expand Down
2 changes: 1 addition & 1 deletion packages/code-interpreter-python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "abox-code-interpreter"
version = "0.1.5"
version = "0.1.6"
description = "AgentBox Code Interpreter - Stateful code execution"
authors = [{ name = "RetailDriver LLC" }]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions packages/code-interpreter-python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/go-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func main() {
Code Interpreter is available from
`github.com/abox-dev/sdk/packages/go-sdk/codeinterpreter`.

API reference for this release: [core SDK on pkg.go.dev](https://pkg.go.dev/github.com/abox-dev/sdk/packages/go-sdk@v0.1.5) and
[Code Interpreter on pkg.go.dev](https://pkg.go.dev/github.com/abox-dev/sdk/packages/go-sdk/codeinterpreter@v0.1.5).
API reference for this release: [core SDK on pkg.go.dev](https://pkg.go.dev/github.com/abox-dev/sdk/packages/go-sdk@v0.1.6) and
[Code Interpreter on pkg.go.dev](https://pkg.go.dev/github.com/abox-dev/sdk/packages/go-sdk/codeinterpreter@v0.1.6).

Documentation: [core SDK](https://docs.agentbox.ru/en/sdk/),
[sandboxes](https://docs.agentbox.ru/en/sdk/sandboxes/),
Expand Down
2 changes: 1 addition & 1 deletion packages/go-sdk/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package agentbox

// Version is the AgentBox SDK release version.
const Version = "0.1.5"
const Version = "0.1.6"
2 changes: 1 addition & 1 deletion packages/js-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abox-dev/sdk",
"version": "0.1.5",
"version": "0.1.6",
"description": "AgentBox SDK for secure cloud sandboxes",
"homepage": "https://docs.agentbox.ru/en/sdk/",
"license": "MIT",
Expand Down
6 changes: 5 additions & 1 deletion packages/js-sdk/src/connectionConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,11 @@ export class ConnectionConfig {
if (this.sandboxUrl) {
const proxyUrl = this.parseSandboxUrl()
const proxyPort = proxyUrl.port ? `:${proxyUrl.port}` : ''
return `${port}-${sandboxId}.${proxyUrl.hostname}${proxyPort}`
const host =
proxyUrl.hostname === `sandbox.${sandboxDomain}`
? sandboxDomain
: proxyUrl.hostname
return `${port}-${sandboxId}.${host}${proxyPort}`
}

if (this.debug) {
Expand Down
25 changes: 25 additions & 0 deletions packages/js-sdk/tests/connectionConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,31 @@ test('sandbox URL routing preserves the configured protocol', () => {
)
})

test('shared sandbox URL derives direct hosts from the runtime domain', () => {
const config = new ConnectionConfig({
sandboxUrl: 'https://sandbox.agentbox-runtime.ru',
})

assert.equal(
config.getSandboxUrl('sbx-test', {
sandboxDomain: 'agentbox-runtime.ru',
envdPort: 49983,
}),
'https://sandbox.agentbox-runtime.ru'
)
assert.equal(
config.getHost('sbx-test', 8080, 'agentbox-runtime.ru'),
'8080-sbx-test.agentbox-runtime.ru'
)
assert.equal(
config.getSandboxDirectUrl('sbx-test', {
sandboxDomain: 'agentbox-runtime.ru',
envdPort: 49983,
}),
'https://49983-sbx-test.agentbox-runtime.ru'
)
})

test('sandbox URL routing rejects an invalid URL', () => {
const config = new ConnectionConfig({
debug: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/python-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@abox-dev/python-sdk",
"private": true,
"version": "0.1.5",
"version": "0.1.6",
"scripts": {
"test": "uv run pytest -n 4 --verbose -x tests/test_*.py tests/shared",
"test:integration": "uv run pytest -n 4 --verbose -x tests/sync tests/async",
Expand Down
2 changes: 1 addition & 1 deletion packages/python-sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "abox-sdk"
version = "0.1.5"
version = "0.1.6"
description = "AgentBox SDK for secure cloud sandboxes"
authors = [{ name = "RetailDriver LLC" }]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion packages/python-sdk/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions reference/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"sdk/cli/sandbox.md": "16b64c5a4e932eca2452e400e0faf154eba1d3c7373513aa7cd9744e02908313",
"sdk/cli/template.md": "f270b22b9ee10a9b954a14f24e04c5449b4d5823bb28002ffde3ed682594cfc5",
"sdk/go/code-interpreter.md": "9c56333b8181878d656baa27a4b56b768a0cb01c9d764f7ac8d52d32d8faa70c",
"sdk/go/core.md": "bfef1b73c0df94691e918838117ef2892baed56ffb2d1f12171898133265f09a",
"sdk/go/core.md": "4753f87bfb08f0462964d72780feb338a147be5de5a0bd97a32121ac87916d2b",
"sdk/javascript/code-interpreter/README.md": "a787206eb86f81fc306b373ce20bc6c91464b0ab3c3ec7650eccbb6be5f676c5",
"sdk/javascript/code-interpreter/classes/Sandbox.md": "19d9f1f1e8847606a54d93c5a6e5d4c89f936a745866e8d6a2aa06758b605e60",
"sdk/javascript/code-interpreter/enumerations/ChartType.md": "cf1ba00cd3258cc88814b7215e101b0d775ceb15dd833636d58ae538d8107ec1",
Expand Down Expand Up @@ -184,12 +184,12 @@
},
"monoRevision": "a7d59d50e3dd84faee59aca08df1b5bb175266e6",
"packages": {
"@abox-dev/cli": "0.1.5",
"@abox-dev/code-interpreter": "0.1.5",
"@abox-dev/sdk": "0.1.5",
"abox-code-interpreter": "0.1.5",
"abox-sdk": "0.1.5",
"github.com/abox-dev/sdk/packages/go-sdk": "0.1.5"
"@abox-dev/cli": "0.1.6",
"@abox-dev/code-interpreter": "0.1.6",
"@abox-dev/sdk": "0.1.6",
"abox-code-interpreter": "0.1.6",
"abox-sdk": "0.1.6",
"github.com/abox-dev/sdk/packages/go-sdk": "0.1.6"
},
"schemaVersion": 1
}
2 changes: 1 addition & 1 deletion reference/sdk/go/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Create a client, start a sandbox, and run a command:

<a name="Version"></a>Version is the AgentBox SDK release version.

const Version = "0.1.5"
const Version = "0.1.6"

<a name="IAMTokenPlaceholder"></a>
## func IAMTokenPlaceholder
Expand Down
Loading