mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-07 09:10:55 +00:00
Comprehensive test coverage for the CodeSandbox provider (merged in #857) which previously had zero dedicated tests. Validates: - Manifest integration (type, auth, exec_method, matrix entries) - lib/common.sh API surface (13 required functions, no SSH leakage) - SDK security: all 5 SDK functions pass user data via env vars - Sandbox ID validation (regex, error handling, called by consumers) - upload_file() security (path injection protection, base64 encoding) - Authentication flow (ensure_api_token_with_provider delegation) - create_server/destroy_server/list_servers SDK patterns - Agent scripts follow standard provisioning flow (3 scripts) - macOS bash 3.x compatibility (no echo -e, source <(), set -u) - Node.js SDK code quality (try/catch, process.exit, process.env) - No dangerous patterns (no eval, no unquoted expansions, no injection) Agent: test-engineer Co-authored-by: A <6723574+louisgv@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| commands.ts | ||
| history.ts | ||
| index.ts | ||
| manifest.ts | ||
| security.ts | ||
| unicode-detect.ts | ||
| update-check.ts | ||