{"record":{"id":"190a891e8967feb2","repo":"paperclipai/paperclip","slug":"llm-wiki-plugin-has-not-been-set-up","errorCode":null,"errorMessage":"LLM Wiki plugin has not been set up","messagePattern":"LLM Wiki plugin has not been set up","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/worker.ts","lineNumber":108,"sourceCode":"  \"issue.created\",\n  \"issue.updated\",\n  \"issue.comment.created\",\n  \"issue.document.created\",\n  \"issue.document.updated\",\n] as const;\n\ntype ManagedRoutineDefaultDrift = {\n  changedFields: string[];\n  defaultTitle: string;\n  defaultDescription: string | null;\n};\n\ntype ManagedRoutineSettingsResolution = PluginManagedRoutineResolution & {\n  defaultDrift: ManagedRoutineDefaultDrift | null;\n};\n\nfunction requireContext(): PluginContext {\n  if (!activeContext) throw new Error(\"LLM Wiki plugin has not been set up\");\n  return activeContext;\n}\n\nfunction normalizeRoutineTemplateText(value: unknown): string | null {\n  if (typeof value !== \"string\") return null;\n  const normalized = value.replace(/\\r\\n/g, \"\\n\").trim();\n  return normalized.length > 0 ? normalized : null;\n}\n\nfunction manualDistillScopeLabel(input: { projectId?: string | null; rootIssueId?: string | null }) {\n  if (input.rootIssueId) return \"selected root issue\";\n  if (input.projectId) return \"selected project\";\n  return \"company-wide stale cursor scan\";\n}\n\nfunction buildManualDistillPrompt(input: { companyId: string; projectId?: string | null; rootIssueId?: string | null }) {\n  const scopeLabel = manualDistillScopeLabel(input);\n  return [","sourceCodeStart":90,"sourceCodeEnd":126,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/packages/plugins/plugin-llm-wiki/src/worker.ts#L90-L126","documentation":"Error \"LLM Wiki plugin has not been set up\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/worker.ts:108 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the LLM Wiki plugin setup before invoking worker operations."],"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"}