the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow sandbox lookup by name or id

+5 -2
+5 -2
apps/api/src/xrpc/io/pocketenv/sandbox/getExposedPorts.ts
··· 1 1 import { XRPCError, type HandlerAuth } from "@atproto/xrpc-server"; 2 2 import type { Context } from "context"; 3 - import { and, eq } from "drizzle-orm"; 3 + import { and, eq, or } from "drizzle-orm"; 4 4 import type { Server } from "lexicon"; 5 5 import type { 6 6 QueryParams, ··· 27 27 .leftJoin(schema.users, eq(schema.sandboxes.userId, schema.users.id)) 28 28 .where( 29 29 and( 30 - eq(sandboxPorts.sandboxId, params.id), 30 + or( 31 + eq(sandboxPorts.sandboxId, params.id), 32 + eq(schema.sandboxes.name, params.id), 33 + ), 31 34 eq(schema.users.did, auth.credentials.did), 32 35 ), 33 36 )