{"record":{"id":"6bbc35b79ad69fee","repo":"deepseek-ai/deepseek-harness","slug":"command-command-error-text-must-be-a-non-empt","errorCode":null,"errorMessage":"command \"${command}\" error text must be a non-empty string","messagePattern":"command \"(.+?)\" error text must be a non-empty string","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"packages/interaction/commands/src/index.ts","lineNumber":238,"sourceCode":"  }\n  const result = value as { kind?: unknown; text?: unknown; sourceEventSeq?: unknown }\n  if (result.kind === 'success') {\n    if (result.text !== undefined && typeof result.text !== 'string') {\n      throw new TypeError(`command \"${command}\" success text must be a string when supplied`)\n    }\n    if (result.sourceEventSeq !== undefined\n      && (!Number.isSafeInteger(result.sourceEventSeq) || (result.sourceEventSeq as number) < 0)) {\n      throw new TypeError(`command \"${command}\" success sourceEventSeq must be a non-negative safe integer when supplied`)\n    }\n    return Object.freeze({\n      kind: 'success',\n      ...result.text === undefined ? {} : { text: result.text },\n      ...result.sourceEventSeq === undefined ? {} : { sourceEventSeq: result.sourceEventSeq as number },\n    })\n  }\n  if (result.kind === 'error') {\n    if (typeof result.text !== 'string' || result.text.trim().length === 0) {\n      throw new TypeError(`command \"${command}\" error text must be a non-empty string`)\n    }\n    return Object.freeze({ kind: 'error', text: result.text })\n  }\n  throw new TypeError(`command \"${command}\" returned unknown result kind \"${String(result.kind)}\"`)\n}\n\n/**\n * Human-command registry. Plain-context definitions are global; definitions\n * registered through a command-injected child of an agent context shadow\n * globals for that agent.\n */\nexport class CommandRuntime extends TypertRemoteService {\n  private readonly layers = new ScopedLayers(\n    scope => new CommandLayer(scope),\n    () => { this.notifyChange() },\n  )\n\n  /** Monotonic per-instance counter behind {@link mintCommandId}. */","sourceCodeStart":220,"sourceCodeEnd":256,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/interaction/commands/src/index.ts#L220-L256","documentation":"Error \"command \"${command}\" error text must be a non-empty string\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/interaction/commands/src/index.ts:238 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}