deepseek-ai/deepseek-harness · error · TypeError
typert-protocol: Remote decorator context is missing
Error message
typert-protocol: Remote decorator context is missing
What it means
Error "typert-protocol: Remote decorator context is missing" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/typert/protocol/src/index.ts:194
*/
export function Remote(exportName: string): RemoteMethodDecorator
export function Remote<This extends object, Args extends unknown[], Result>(
methodOrExportName: string | ((this: This, ...args: Args) => Result),
context?: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Result>,
): void | RemoteMethodDecorator {
if (typeof methodOrExportName === 'string') {
validateName('Remote export name', methodOrExportName)
return function <DecoratorThis extends object, DecoratorArgs extends unknown[], DecoratorResult>(
_method: (this: DecoratorThis, ...args: DecoratorArgs) => DecoratorResult,
decoratorContext: ClassMethodDecoratorContext<
DecoratorThis,
(this: DecoratorThis, ...args: DecoratorArgs) => DecoratorResult
>,
): void {
addMarkerInitializer(decoratorContext, { kind: 'direct' }, methodOrExportName)
}
}
if (context === undefined) throw new TypeError('typert-protocol: Remote decorator context is missing')
addMarkerInitializer(context, { kind: 'direct' })
}
/**
* Create a decorator for a method resolved from one Remote Scope.
* @param key - scope key declared through the Context map.
* @param exportName - optional Remote export name; defaults to the method name.
* @returns a standard method decorator that records only private module state.
*/
export function RemoteScope(
key: Extract<keyof TypertContextMap, string>,
exportName?: string,
): RemoteMethodDecorator {
validateName('Scope key', key)
if (exportName !== undefined) validateName('Remote export name', exportName)
return function <This extends object, Args extends unknown[], Result>(
_method: (this: This, ...args: Args) => Result,
context: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Result>,View on GitHub (pinned to b150a551b8)
Solutions
- Apply the Remote decorator only where decorator context is available (standard TC39 decorators).
When it happens
Trigger: Thrown at packages/typert/protocol/src/index.ts:194 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/90b20aa377d2d4e0.
Report an issue: GitHub.