Skip to content

sandbox-guest

const sandboxGuestResultSchema: ZodDiscriminatedUnion<[ZodObject<{ ok: ZodLiteral<true>>; value: ZodUnknown; }, $strict>>, ZodObject<{ ok: ZodLiteral<false>>; error: ZodObject<{ kind: ZodLiteral<"guest_threw">>; name: ZodString; message: ZodString; transportMessage: ZodOptional<ZodString>>; }, $strict>>; }, $strict>>], "ok">>

Closed guest envelope: guest exceptions cannot masquerade as host failures.

submittedSourceLocation(normalized, submitted): Readonly<{ line: number; column: number; excerpt: string; }> | null

Locate syntax in the submitted code, accounting for Codemode’s normalization.

string

string

Readonly<{ line: number; column: number; excerpt: string; }> | null


sandboxGuestProgram(normalized): string

Capture name and text inside the guest, before Codemode erases Error.name.

string

string