Skip to content

docs: add docs#34

Merged
christianalfoni merged 1 commit intomainfrom
CSB-1341
Apr 16, 2026
Merged

docs: add docs#34
christianalfoni merged 1 commit intomainfrom
CSB-1341

Conversation

@christianalfoni
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds initial end-user documentation for the Together Sandbox toolchain (TypeScript SDK, Python SDK, and CLI) so developers can install, authenticate, and use the APIs/commands.

Changes:

  • Add TypeScript SDK usage and API reference (@together-sandbox/sdk)
  • Add Python SDK usage and API reference (together-sandbox)
  • Add CLI installation/usage docs (@together-sandbox/cli)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
docs/typescript-sdk.md New TypeScript SDK guide with lifecycle + sandbox sub-namespace API docs
docs/python-sdk.md New Python SDK guide with async usage patterns and API docs
docs/cli.md New CLI guide describing build workflow, args/options, and env vars

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/typescript-sdk.md
The main entry point for the SDK.

```typescript
const sdk = new TogetherSandbox(config: TogetherSandboxConfig);
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The constructor example uses new TogetherSandbox(config: TogetherSandboxConfig), which isn’t valid TypeScript syntax for a function call. Consider either showing new TogetherSandbox(config) or declaring const config: TogetherSandboxConfig = ... before passing it in, so the snippet can be copied/pasted.

Suggested change
const sdk = new TogetherSandbox(config: TogetherSandboxConfig);
const sdk = new TogetherSandbox({ apiKey: process.env.TOGETHER_API_KEY! });

Copilot uses AI. Check for mistakes.
Comment thread docs/typescript-sdk.md

| Property | Type | Required | Description |
| --------- | -------- | -------- | ------------------------------------------------------------------------------- |
| `apiKey` | `string` | Yes | Together AI API key. Falls back to `TOGETHER_API_KEY` env var if not set. |
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

TogetherSandboxConfig.apiKey is marked as required, but the description says it falls back to TOGETHER_API_KEY “if not set”. In the actual TypeScript type (TogetherSandboxConfig), apiKey is not optional, so the fallback language is misleading unless the interface is changed. Please align the table with the public TypeScript API (either make apiKey optional in code, or remove the fallback claim here).

Suggested change
| `apiKey` | `string` | Yes | Together AI API key. Falls back to `TOGETHER_API_KEY` env var if not set. |
| `apiKey` | `string` | Yes | Together AI API key. |

Copilot uses AI. Check for mistakes.
Comment thread docs/typescript-sdk.md
Comment on lines +51 to +55
| Property | Type | Required | Description |
| --------- | -------- | -------- | ------------------------------------------------------------------------------- |
| `apiKey` | `string` | Yes | Together AI API key. Falls back to `TOGETHER_API_KEY` env var if not set. |
| `baseUrl` | `string` | No | Override the management API base URL. Defaults to `https://api.codesandbox.io`. |

Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The markdown tables are written with a leading || on each row (e.g. || Property | Type | ... |), which renders as an extra empty first column in most Markdown renderers. Consider switching to a single leading | per row to produce the intended columns.

Copilot uses AI. Check for mistakes.
Comment thread docs/python-sdk.md
Comment on lines +53 to +57
| Parameter | Type | Description |
| ---------- | ------------- | ------------------------------------------------------------------ |
| `api_key` | `str \| None` | Together AI API key. Falls back to the `TOGETHER_API_KEY` env var. |
| `base_url` | `str` | Management API base URL. Defaults to `https://api.codesandbox.io`. |

Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The parameter table rows start with || (double pipe), which typically renders as an extra empty column in Markdown. Consider using a single leading | for the table rows so the columns align correctly in rendered docs.

Copilot uses AI. Check for mistakes.
Comment thread docs/cli.md
Comment on lines +51 to +66
#### Arguments

| Argument | Description |
| ------------- | ------------------------------------------------------ |
| `<directory>` | Path to the project directory to build from. Required. |

#### Options

| Option | Type | Default | Description |
| ---------------- | --------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--name` | `string` | — | Display name for the resulting sandbox template. |
| `--alias` | `string` | — | Alias that points to the created template. Format: `alias` or `namespace@alias`. Namespace defaults to the directory name. Characters: `a-z A-Z 0-9 - _`, max 64 chars each. |
| `--from-sandbox` | `string` | — | ID of an existing sandbox to use as the base template instead of the default. |
| `--vm-tier` | `string` | `Micro` | VM size for the template sandbox. One of: `Pico`, `Nano`, `Micro`, `Small`, `Medium`, `Large`, `XLarge`. |
| `--ci` | `boolean` | `false` | CI mode — exits the process with a non-zero code on any error. |
| `--log-path` | `string` | — | Relative path to write log output to a file. |
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The Arguments/Options tables use || at the start of each row, which usually creates an unintended empty first column when rendered. Consider updating these tables to use a single leading | so they render with the expected columns.

Copilot uses AI. Check for mistakes.
@christianalfoni christianalfoni merged commit b310a0a into main Apr 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants