{"version":3,"file":"remote-execution-error.d.ts","sourceRoot":"","sources":["../../../src/core/remote-execution/remote-execution-error.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,wBAAwB,GACjC,2BAA2B,GAC3B,oBAAoB,GACpB,wBAAwB,GACxB,4BAA4B,GAC5B,0BAA0B,GAC1B,sBAAsB,GACtB,yBAAyB,GACzB,uBAAuB,GACvB,0BAA0B,GAC1B,sBAAsB,GACtB,qBAAqB,GACrB,uBAAuB,GACvB,yBAAyB,CAAC;AAE7B,qBAAa,oBAAqB,SAAQ,KAAK;IAC9C,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAEpD,YAAY,IAAI,EAAE,wBAAwB,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM,EAK3G;CACD","sourcesContent":["/**\n * Remote Execution — structured error model (2.14.0).\n *\n * Transport/execution failures are categorised, never collapsed into a generic\n * EXECUTION_FAILED. The categories are the contract the control plane reasons\n * about (retryable vs not, stale vs launch, ...).\n */\n\nexport type RemoteExecutionErrorCode =\n\t| \"REMOTE_TARGET_UNAVAILABLE\"\n\t| \"REMOTE_AUTH_FAILED\"\n\t| \"REMOTE_CONNECT_TIMEOUT\"\n\t| \"REMOTE_RUNTIME_UNAVAILABLE\"\n\t| \"REMOTE_PROTOCOL_MISMATCH\"\n\t| \"REMOTE_LAUNCH_FAILED\"\n\t| \"REMOTE_EXECUTION_FAILED\"\n\t| \"REMOTE_EXECUTION_LOST\"\n\t| \"REMOTE_HEARTBEAT_TIMEOUT\"\n\t| \"REMOTE_CANCEL_FAILED\"\n\t| \"REMOTE_RESULT_STALE\"\n\t| \"REMOTE_PROTOCOL_ERROR\"\n\t| \"REMOTE_DUPLICATE_LAUNCH\";\n\nexport class RemoteExecutionError extends Error {\n\treadonly code: RemoteExecutionErrorCode;\n\treadonly details: Readonly<Record<string, unknown>>;\n\n\tconstructor(code: RemoteExecutionErrorCode, message: string, details: Readonly<Record<string, unknown>> = {}) {\n\t\tsuper(message);\n\t\tthis.name = \"RemoteExecutionError\";\n\t\tthis.code = code;\n\t\tthis.details = Object.freeze({ ...details });\n\t}\n}\n"]}