sandbox-guest
Variables
Section titled “Variables”sandboxGuestResultSchema
Section titled “sandboxGuestResultSchema”
constsandboxGuestResultSchema: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.
Functions
Section titled “Functions”submittedSourceLocation()
Section titled “submittedSourceLocation()”submittedSourceLocation(
normalized,submitted):Readonly<{line:number;column:number;excerpt:string; }> |null
Locate syntax in the submitted code, accounting for Codemode’s normalization.
Parameters
Section titled “Parameters”normalized
Section titled “normalized”string
submitted
Section titled “submitted”string
Returns
Section titled “Returns”Readonly<{ line: number; column: number; excerpt: string; }>
| null
sandboxGuestProgram()
Section titled “sandboxGuestProgram()”sandboxGuestProgram(
normalized):string
Capture name and text inside the guest, before Codemode erases Error.name.
Parameters
Section titled “Parameters”normalized
Section titled “normalized”string
Returns
Section titled “Returns”string