{"record":{"id":"bae3bc00ea2280a0","repo":"paperclipai/paperclip","slug":"selected-llm-wiki-project-was-not-found","errorCode":null,"errorMessage":"Selected LLM Wiki project was not found.","messagePattern":"Selected LLM Wiki project was not found\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/wiki/core.ts","lineNumber":2144,"sourceCode":"    reconcileWikiAgentResource(ctx, companyId),\n    reconcileWikiProjectResource(ctx, companyId),\n  ]);\n\n  const managedRoutines = await Promise.all(\n    WIKI_MAINTENANCE_ROUTINE_KEYS.map((routineKey) =>\n      ctx.routines.managed.reconcile(routineKey, companyId, {\n        assigneeAgentId: managedAgent.agentId,\n        projectId: managedProject.projectId,\n      })),\n  );\n\n  return { managedAgent, managedProject, managedRoutines };\n}\n\nexport async function selectWikiProjectResource(ctx: PluginContext, input: { companyId: string; projectId: string }): Promise<WikiProjectResource> {\n  const project = await ctx.projects.get(input.projectId, input.companyId);\n  if (!project) {\n    throw new Error(\"Selected LLM Wiki project was not found.\");\n  }\n  await upsertResourceBinding(ctx, {\n    companyId: input.companyId,\n    wikiId: DEFAULT_WIKI_ID,\n    resourceKind: \"project\",\n    resourceKey: WIKI_PROJECT_KEY,\n    resolvedId: project.id,\n    metadata: { source: \"selected-existing\", updatedBy: \"settings\" },\n  });\n  return projectResource({ status: \"resolved\", source: \"selected\", project });\n}\n\nexport async function listWikiAgentOptions(ctx: PluginContext, companyId: string): Promise<WikiResourceOption[]> {\n  const agents = await ctx.agents.list({ companyId, limit: 200 });\n  return agents\n    .filter((agent) => agent.status !== \"terminated\")\n    .map((agent) => ({\n      id: agent.id,","sourceCodeStart":2126,"sourceCodeEnd":2162,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/packages/plugins/plugin-llm-wiki/src/wiki/core.ts#L2126-L2162","documentation":"Error \"Selected LLM Wiki project was not found.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/wiki/core.ts:2145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Select an existing project for the LLM Wiki configuration."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5716fe907e596ce73501408fc6efdb19fb61edf2","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}