{"record":{"id":"c5ada34bffdfba04","repo":"deepseek-ai/deepseek-harness","slug":"typert-artifact-face-artifact-package-must","errorCode":null,"errorMessage":"typert(${artifact.face}): ${artifact.package} must export ${subpath} as ${JSON.stringify(expected)}","messagePattern":"typert\\((.+?)\\): (.+?) must export (.+?) as (.+?)","errorType":"exception","errorClass":"TypertAnalysisError","httpStatus":null,"severity":"error","filePath":"packages/typert/generator/src/workspace.ts","lineNumber":83,"sourceCode":"    return artifacts\n  }\n\n  private validateExport(artifact: WorkspaceEmitResult): void {\n    const manifestPath = resolve(this.root, artifact.packageRoot, 'package.json')\n    const manifest = JSON.parse(readFileSync(manifestPath, 'utf8')) as {\n      exports?: unknown\n      files?: unknown\n    }\n    const subpath = artifact.face === 'host' ? './typert' : './client/typert'\n    const expected = {\n      types: `./lib/typert.${artifact.face}.d.ts`,\n      default: `./lib/typert.${artifact.face}.js`,\n    }\n    const actual = manifest.exports !== null && typeof manifest.exports === 'object'\n      ? (manifest.exports as Record<string, unknown>)[subpath]\n      : undefined\n    if (!sameExport(actual, expected)) {\n      throw new TypertAnalysisError(\n        `typert(${artifact.face}): ${artifact.package} must export ${subpath} as ${JSON.stringify(expected)}`,\n      )\n    }\n    const files = Array.isArray(manifest.files) ? manifest.files : []\n    for (const file of [`lib/typert.${artifact.face}.js`, `lib/typert.${artifact.face}.d.ts`]) {\n      if (!files.includes(file)) {\n        throw new TypertAnalysisError(`typert(${artifact.face}): ${artifact.package} package files must include ${file}`)\n      }\n    }\n    if (artifact.face !== 'host') return\n    const remoteExpected = {\n      types: './lib/typert.remote-client.d.ts',\n      default: './lib/typert.remote-client.js',\n    }\n    const remoteActual = manifest.exports !== null && typeof manifest.exports === 'object'\n      ? (manifest.exports as Record<string, unknown>)['./remote']\n      : undefined\n    // The declaration map is emitted beside these two but never published: it","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/generator/src/workspace.ts#L65-L101","documentation":"Error \"typert(${artifact.face}): ${artifact.package} must export ${subpath} as ${JSON.stringify(expected)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/generator/src/workspace.ts:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the package exports so the subpath maps to the expected value."],"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"}