{"record":{"id":"0efe5a50d6844f44","repo":"deepseek-ai/deepseek-harness","slug":"typert-host-artifact-package-must-export-re","errorCode":null,"errorMessage":"typert(host): ${artifact.package} must export ./remote as ${JSON.stringify(remoteExpected)}","messagePattern":"typert\\(host\\): (.+?) must export \\./remote as (.+?)","errorType":"exception","errorClass":"TypertAnalysisError","httpStatus":null,"severity":"error","filePath":"packages/typert/generator/src/workspace.ts","lineNumber":117,"sourceCode":"      ? (manifest.exports as Record<string, unknown>)['./remote']\n      : undefined\n    // The declaration map is emitted beside these two but never published: it\n    // serves editor navigation in the workspace, where the package link\n    // resolves its source.\n    const remoteFiles = [\n      'lib/typert.remote-client.js',\n      'lib/typert.remote-client.d.ts',\n    ]\n    if (artifact.remote === undefined) {\n      if (remoteActual !== undefined || remoteFiles.some(file => files.includes(file))) {\n        throw new TypertAnalysisError(\n          `typert(host): ${artifact.package} publishes Remote artifacts but has no Remote methods`,\n        )\n      }\n      return\n    }\n    if (!sameExport(remoteActual, remoteExpected)) {\n      throw new TypertAnalysisError(\n        `typert(host): ${artifact.package} must export ./remote as ${JSON.stringify(remoteExpected)}`,\n      )\n    }\n    for (const file of remoteFiles) {\n      if (!files.includes(file)) {\n        throw new TypertAnalysisError(`typert(host): ${artifact.package} package files must include ${file}`)\n      }\n    }\n  }\n}\n\nfunction sameExport(actual: unknown, expected: { types: string; default: string }): boolean {\n  if (actual === null || typeof actual !== 'object' || Array.isArray(actual)) return false\n  const value = actual as Record<string, unknown>\n  return value.types === expected.types && value.default === expected.default\n}\n","sourceCodeStart":99,"sourceCodeEnd":134,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/typert/generator/src/workspace.ts#L99-L134","documentation":"Error \"typert(host): ${artifact.package} must export ./remote as ${JSON.stringify(remoteExpected)}\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/typert/generator/src/workspace.ts:117 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Export ./remote with the expected mapping from the package."],"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"}