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.

Add input schema and update deleteFile types

Add an empty JSON input schema (encoding: application/json) to the
deleteFile lexicon across JSON, PKL, and schema dictionaries. Update
TypeScript types so InputSchema and HandlerInput reflect a JSON body
with encoding. Also apply minor refactors: use const for decryptedBytes
and compact the sandboxes id declaration formatting.

+32 -7
+7
apps/api/lexicons/file/deleteFile.json
··· 15 15 "description": "The ID of the file to delete" 16 16 } 17 17 } 18 + }, 19 + "input": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "properties": {} 24 + } 18 25 } 19 26 } 20 27 }
+8 -1
apps/api/pkl/defs/file/deleteFile.pkl
··· 15 15 } 16 16 } 17 17 } 18 + input { 19 + encoding = "application/json" 20 + schema { 21 + type = "object" 22 + properties {} 23 + } 24 + } 18 25 } 19 - } 26 + }
+7
apps/api/src/lexicon/lexicons.ts
··· 304 304 }, 305 305 }, 306 306 }, 307 + input: { 308 + encoding: "application/json", 309 + schema: { 310 + type: "object", 311 + properties: {}, 312 + }, 313 + }, 307 314 }, 308 315 }, 309 316 },
+8 -2
apps/api/src/lexicon/types/io/pocketenv/file/deleteFile.ts
··· 13 13 id: string; 14 14 } 15 15 16 - export type InputSchema = undefined; 17 - export type HandlerInput = undefined; 16 + export interface InputSchema { 17 + [k: string]: unknown; 18 + } 19 + 20 + export interface HandlerInput { 21 + encoding: "application/json"; 22 + body: InputSchema; 23 + } 18 24 19 25 export interface HandlerError { 20 26 status: number;
+1 -1
apps/api/src/lib/decrypt.ts
··· 8 8 value, 9 9 sodium.base64_variants.URLSAFE_NO_PADDING, 10 10 ); 11 - let decryptedBytes = sodium.crypto_box_seal_open( 11 + const decryptedBytes = sodium.crypto_box_seal_open( 12 12 sealed, 13 13 sodium.from_hex(env.PUBLIC_KEY), 14 14 sodium.from_hex(env.PRIVATE_KEY),
+1 -3
apps/api/src/schema/sandboxes.ts
··· 9 9 import users from "./users"; 10 10 11 11 const sandboxes = pgTable("sandboxes", { 12 - id: text("id") 13 - .primaryKey() 14 - .default(sql`sandbox_id()`), 12 + id: text("id").primaryKey().default(sql`sandbox_id()`), 15 13 base: text("base"), 16 14 name: text("name").unique().notNull(), 17 15 displayName: text("display_name"),