{"record":{"id":"3270ce36ee004bfa","repo":"different-ai/openwork","slug":"collection-resolved-response-was-incomplete","errorCode":null,"errorMessage":"Collection resolved response was incomplete.","messagePattern":"Collection resolved response was incomplete\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx","lineNumber":172,"sourceCode":"\nfunction parseCloudReadiness(value: unknown): MarketplacePluginCloudReadiness | null {\n  if (!isRecord(value)) return null;\n  const state = parseCloudReadinessState(value.state);\n  if (!state || typeof value.hasInstructional !== \"boolean\") return null;\n  return {\n    state,\n    hasInstructional: value.hasInstructional,\n    connections: Array.isArray(value.connections)\n      ? value.connections.map(parseCloudReadinessConnection).filter((connection): connection is MarketplacePluginCloudReadinessConnection => Boolean(connection))\n      : [],\n  };\n}\n\nexport function parseMarketplaceResolvedPayload(payload: unknown): MarketplaceResolved {\n  const item = isRecord(payload) && isRecord(payload.item) ? payload.item : null;\n  const marketplace = item && isRecord(item.marketplace) ? parseMarketplace(item.marketplace) : null;\n  if (!item || !marketplace) {\n    throw new Error(\"Collection resolved response was incomplete.\");\n  }\n\n  const plugins = Array.isArray(item.plugins)\n    ? item.plugins.flatMap((entry) => {\n        if (!isRecord(entry)) return [];\n        const id = asString(entry.id);\n        const name = asString(entry.name);\n        if (!id || !name) return [];\n        const componentCounts: Record<string, number> = {};\n        if (isRecord(entry.componentCounts)) {\n          for (const [key, value] of Object.entries(entry.componentCounts)) {\n            if (typeof value === \"number\" && value > 0) {\n              componentCounts[key] = value;\n            }\n          }\n        }\n        const cloudReadiness = parseCloudReadiness(entry.cloudReadiness);\n        return [{","sourceCodeStart":154,"sourceCodeEnd":190,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx#L154-L190","documentation":"Error \"Collection resolved response was incomplete.\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-web/app/(den)/dashboard/_components/marketplace-data.tsx:172 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":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}