{"record":{"id":"eb1853c8b803a278","repo":"paperclipai/paperclip","slug":"llm-wiki-space-not-found-slug","errorCode":null,"errorMessage":"LLM Wiki space not found: ${slug}","messagePattern":"LLM Wiki space not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/wiki/core.ts","lineNumber":1369,"sourceCode":"  return rows[0] ? wikiSpaceFromRow(rows[0]) : fallbackDefaultSpace({ companyId: input.companyId, wikiId });\n}\n\nexport async function resolveSpace(ctx: PluginContext, input: SpaceInput): Promise<WikiSpace> {\n  const wikiId = normalizeWikiId(input.wikiId);\n  const slug = normalizeSpaceSlug(input.spaceSlug);\n  if (slug === DEFAULT_SPACE_SLUG) {\n    return ensureDefaultSpace(ctx, { companyId: input.companyId, wikiId });\n  }\n  const rows = await ctx.db.query<WikiSpaceRow>(\n    `SELECT id, company_id, wiki_id, slug, display_name, space_type, folder_mode, root_folder_key,\n            path_prefix, configured_root_path, access_scope, owner_user_id, owner_agent_id, team_key,\n            settings, status, created_at::text AS created_at, updated_at::text AS updated_at\n       FROM ${spaceTable(ctx)}\n      WHERE company_id = $1 AND wiki_id = $2 AND slug = $3 AND status <> 'archived'\n      LIMIT 1`,\n    [input.companyId, wikiId, slug],\n  );\n  if (!rows[0]) throw new Error(`LLM Wiki space not found: ${slug}`);\n  return wikiSpaceFromRow(rows[0]);\n}\n\nasync function resolveSpaceAnyStatus(ctx: PluginContext, input: SpaceInput): Promise<WikiSpace> {\n  const wikiId = normalizeWikiId(input.wikiId);\n  const slug = normalizeSpaceSlug(input.spaceSlug);\n  if (slug === DEFAULT_SPACE_SLUG) {\n    return ensureDefaultSpace(ctx, { companyId: input.companyId, wikiId });\n  }\n  const rows = await ctx.db.query<WikiSpaceRow>(\n    `SELECT id, company_id, wiki_id, slug, display_name, space_type, folder_mode, root_folder_key,\n            path_prefix, configured_root_path, access_scope, owner_user_id, owner_agent_id, team_key,\n            settings, status, created_at::text AS created_at, updated_at::text AS updated_at\n       FROM ${spaceTable(ctx)}\n      WHERE company_id = $1 AND wiki_id = $2 AND slug = $3\n      LIMIT 1`,\n    [input.companyId, wikiId, slug],\n  );","sourceCodeStart":1351,"sourceCodeEnd":1387,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/packages/plugins/plugin-llm-wiki/src/wiki/core.ts#L1351-L1387","documentation":"Error \"LLM Wiki space not found: ${slug}\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/wiki/core.ts:1370 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the wiki space first or use the slug of an existing space."],"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"}