claxman
claxman
I'd like to land a fix for #4264. Ran `tsx --eval` with `update("proj_x","dev","FOO",{value:"bar"})` on 0a23814a0 against `packages/trigger-sdk/src/v3/envvars.ts`. It threw `ReferenceError: name is not defined` at line 341. Branch is `fix/4264-envvars-update-name`...
With no `E2B_API_KEY`, `pnpm --dir packages/js-sdk exec vitest run tests/sandbox/lifecyclePayload.test.ts --project unit` fails the two client-side tests with `AuthenticationError` instead of `InvalidArgumentError`. They die at `new ApiClient` in `createSandbox` (`sandboxApi.ts`),...
`deserializeChart` in `packages/code-interpreter-js/src/charts.ts` maps SuperChart children from `data.data`. The `SuperChart` type and Python `_deserialize_chart` use `elements`. `Result` in `messaging.ts` assigns `this.chart = data['chart']` and never calls `deserializeChart`. Python `Result` does...
Secret.fill('') and Secret.fill('a}b') raise InvalidArgumentException, but Secret.create('', 'v') and Secret.create('a}b', 'v') skip that check: in the python-sdk venv with E2B_API_KEY unset they raise AuthenticationException from get_api_client instead. JS matches: in...
_deserialize_chart({"type": "not-a-chart", "title": "x", "elements": []}) raises ValueError: 'not-a-chart' is not a valid ChartType (code-interpreter-python venv, no sandbox). Same call with "unknown" returns ChartType.UNKNOWN. JS deserializeChart's default branch falls back...
Python `LineChart(..., x_scale='not-a-scale')` is `ScaleType.UNKNOWN`. JS `ScaleType` in packages/code-interpreter-js/src/charts.ts has no UNKNOWN, and `deserializeChart` for line/scatter returns `{ ...data }`, so `x_scale` stays `'not-a-scale'`. ChartType already has UNKNOWN on the...
Python `Sandbox.create(timeout=0)` with a mocked `post_sandboxes` posted `timeout: 300`. Same for `Sandbox.connect(..., timeout=0)` via mocked `post_sandboxes_sandbox_id_connect`. Sync `_create` uses `timeout or cls.default_sandbox_timeout` (300) and sync `_cls_connect` uses `timeout or SandboxBase.default_sandbox_timeout`,...
OpenAPI `NewVolume.name` pattern is `^[a-zA-Z0-9_-]+$`. In the Python SDK with E2B_API_KEY unset, `Volume.create('')` and `Volume.create('vol name')` both raised AuthenticationException from get_api_client, so nothing checks the name before the API client...
`cd frontend && ./node_modules/.bin/tsx --test tests/test-ai-sdk-parser.test.ts tests/test-normalize-messages.test.ts` on `main`: 30 pass, 2 fail. Both failures expect `content.length === 1` and get `2`. The comment on `convertOne` in `frontend/lib/spans/types/ai-sdk.ts` says empty...