mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-14 04:01:35 +00:00
refactor(api): converge the Remote failure vocabulary and client surface
Single RemoteError with a merge-extensible, domain-prefixed code map; owners throw at the failure point; streams surface marked failures; clients consume ctx.remote directly with isRemoteFailure as the only discrimination point and construct no failure instances.
This commit is contained in:
@@ -415,3 +415,10 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
surfaceOp?: SurfaceOp
|
||||
} : object)
|
||||
}[T]
|
||||
|
||||
declare module '@deepseek-ai/dsh-typert-protocol' {
|
||||
interface RemoteErrorDetailsMap {
|
||||
/** The named Session does not exist; produced by every layer that resolves a SessionId. */
|
||||
'session/not-found': { readonly sessionId: SessionId }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user