Execute

codemode-gatewaysourcetypescript
Path: codemode-gateway/src/types/execute.tsRelative: src/types/execute.tsSubproject: codemode-gatewayCategory: codemode-gateway
Lines: 36Bytes: 1,268Imports: 0Exports: 3

Content Preview

  1. /**
  2. * HTTP request/response contracts for `POST /execute`.
  3. *
  4. * These are the gateway's own wire types and are intentionally distinct from
  5. * the codemode `ExecuteResult` returned by the sandbox (although the success
  6. * body is structurally identical to `ExecuteResult` so the executor result can
  7. * be serialized directly).
  8. */
  9. /** Inbound body for `POST /execute`. */
  10. export interface ExecuteRequest {
  11. /**
  12. * Code executed in the isolated sandbox. Must be coercible by `normalizeCode`
  13. * t