{"version":3,"file":"exceptions-DB_Bm5PX.mjs","names":[],"sources":["../src/batteries/sandbox/exceptions.ts"],"sourcesContent":["import { createException } from '../../lib/utils/exceptions'\n/** Invalid sandbox configuration. */\nexport const E_INVALID_SANDBOX_CONFIG = createException<[string]>(\n  'E_INVALID_SANDBOX_CONFIG',\n  '%s',\n  'E_INVALID_SANDBOX_CONFIG',\n  400,\n  false\n)\n/** Sandbox environment is unsupported. */\nexport const E_SANDBOX_UNSUPPORTED_ENV = createException<[string]>(\n  'E_SANDBOX_UNSUPPORTED_ENV',\n  '%s',\n  'E_SANDBOX_UNSUPPORTED_ENV',\n  400,\n  false\n)\n/** Sandbox dependency is missing or unavailable at assembly time. */\nexport const E_SANDBOX_DEPENDENCY_MISSING = createException<[string]>(\n  'E_SANDBOX_DEPENDENCY_MISSING',\n  '%s',\n  'E_SANDBOX_DEPENDENCY_MISSING',\n  424,\n  false\n)\n/** Sandbox operation was attempted before initialization. */\nexport const E_SANDBOX_NOT_INITIALIZED = createException<[string]>(\n  'E_SANDBOX_NOT_INITIALIZED',\n  '%s',\n  'E_SANDBOX_NOT_INITIALIZED',\n  500,\n  false\n)\n/** Requested policy conflicts with another enforced policy. */\nexport const E_SANDBOX_POLICY_CONFLICT = createException<[string]>(\n  'E_SANDBOX_POLICY_CONFLICT',\n  '%s',\n  'E_SANDBOX_POLICY_CONFLICT',\n  409,\n  false\n)\n/** A requested policy narrowing cannot be represented by the backend. */\nexport const E_SANDBOX_NARROWING_UNSUPPORTED = createException<[string]>(\n  'E_SANDBOX_NARROWING_UNSUPPORTED',\n  '%s',\n  'E_SANDBOX_NARROWING_UNSUPPORTED',\n  422,\n  false\n)\n/** A required approval gate was not supplied. */\nexport const E_SANDBOX_GATE_REQUIRED = createException<[string]>(\n  'E_SANDBOX_GATE_REQUIRED',\n  '%s',\n  'E_SANDBOX_GATE_REQUIRED',\n  428,\n  false\n)\n/** Sandbox refusal presented to the model. */\nexport const E_SANDBOX_REFUSED = createException<[string]>(\n  'E_SANDBOX_REFUSED',\n  '%s',\n  'E_SANDBOX_REFUSED',\n  403,\n  false\n)\n/** Sandbox operational failure presented to the model. */\nexport const E_SANDBOX_FAILED = createException<[string]>(\n  'E_SANDBOX_FAILED',\n  '%s',\n  'E_SANDBOX_FAILED',\n  500,\n  false\n)\n/**\n * Thrown when a model-supplied path is an UNAMBIGUOUS escape or an unsupported form.\n *\n * @remarks\n * Only the refuse-outright set of LLM-operator rule 1 reaches this: a NUL byte anywhere, a leading\n * `~`, any leading drive letter, a device/verbatim prefix, a UNC form, and a `../` that still escapes\n * after lexical resolution. A leading `/` does NOT — it normalises to the sandbox root, because the\n * model's world IS the sandbox and refusing it would punish the model for a distinction we\n * deliberately hid from it. Message template is bare `'%s'` so the narrator text arrives unprefixed.\n */\nexport const E_SANDBOX_PATH_ESCAPE = createException<[string]>(\n  'E_SANDBOX_PATH_ESCAPE',\n  '%s',\n  'E_SANDBOX_PATH_ESCAPE',\n  400,\n  false\n)\n"],"mappings":";;;AAEA,IAAa,2BAA2B,gBACtC,4BACA,MACA,4BACA,KACA,KACF;;AAEA,IAAa,4BAA4B,gBACvC,6BACA,MACA,6BACA,KACA,KACF;;AAEA,IAAa,+BAA+B,gBAC1C,gCACA,MACA,gCACA,KACA,KACF;;AAEA,IAAa,4BAA4B,gBACvC,6BACA,MACA,6BACA,KACA,KACF;;AAEA,IAAa,4BAA4B,gBACvC,6BACA,MACA,6BACA,KACA,KACF;;AAEA,IAAa,kCAAkC,gBAC7C,mCACA,MACA,mCACA,KACA,KACF;;AAEA,IAAa,0BAA0B,gBACrC,2BACA,MACA,2BACA,KACA,KACF;;AAEA,IAAa,oBAAoB,gBAC/B,qBACA,MACA,qBACA,KACA,KACF;;AAEA,IAAa,mBAAmB,gBAC9B,oBACA,MACA,oBACA,KACA,KACF;;;;;;;;;;;AAWA,IAAa,wBAAwB,gBACnC,yBACA,MACA,yBACA,KACA,KACF"}