MCPcopy Index your code
hub / github.com/simstudioai/sim / encodeSandboxId

Function encodeSandboxId

apps/sim/tools/daytona/utils.ts:11–17  ·  view source on GitHub ↗
(sandboxId: string)

Source from the content-addressed store, hash-verified

9 * blank ID can never resolve to a different API route.
10 */
11export function encodeSandboxId(sandboxId: string): string {
12 const trimmed = sandboxId?.trim()
13 if (!trimmed) {
14 throw new Error('Sandbox ID is required')
15 }
16 return encodeURIComponent(trimmed)
17}
18
19/**
20 * Builds a toolbox API URL for a sandbox-scoped endpoint.

Callers 5

stop_sandbox.tsFile · 0.90
get_sandbox.tsFile · 0.90
delete_sandbox.tsFile · 0.90
start_sandbox.tsFile · 0.90
daytonaToolboxUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected