dsh 0.2.0-rc.2: in-container update (experimental channel), path-agnostic compose, upstream patches adapted to 0.1.x/0.2.x

This commit is contained in:
hermes committed 2026-10-01 19:21:19 +00:00
commit e6dcef9bf5
302 files changed
+75178

No files matched your search

@@ -0,0 +1,26 @@
export class ProxyConfigurationError extends Error {
constructor(message, {
code = 'INVALID_CONFIG',
statusCode = 400,
stage = 'validate',
retryable = false,
} = {}) {
super(message)
this.name = 'ProxyConfigurationError'
this.code = code
this.statusCode = statusCode
this.stage = stage
this.retryable = retryable
}
}
export function proxyErrorBody(error) {
return Object.freeze({
error: Object.freeze({
code: error?.code ?? 'PROXY_MANAGER_UNAVAILABLE',
message: error?.message ?? 'proxy manager is unavailable',
stage: error?.stage ?? 'unknown',
retryable: error?.retryable === true,
}),
})
}