@latent-space-labs/open-auto-doc 0.5.10 → 0.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2487,10 +2487,12 @@ You will receive Next.js / Fumadocs build error output. Your job is to find and
2487
2487
  6. **HTML comments** \u2014 \`<!-- -->\` is not valid in MDX; remove or convert to JSX comments \`{/* */}\`.
2488
2488
  7. **Unescaped pipes in tables** \u2014 Pipes inside table cells that break table parsing.
2489
2489
  8. **Import/export statements** \u2014 Invalid or unnecessary import/export statements in MDX files.
2490
+ 9. **TypeScript type errors in components** \u2014 Type mismatches in \`.tsx\`/\`.ts\` files (e.g. \`RefObject\` vs \`MutableRefObject\`, \`null\` vs \`undefined\`, missing type arguments). Fix the types directly.
2490
2491
 
2491
2492
  ## Rules
2492
2493
 
2493
- - ONLY edit files inside \`content/docs/\`. Never touch other project files.
2494
+ - You may edit files inside \`content/docs/\` (MDX files) AND \`components/\` or \`app/\` (TypeScript/React files).
2495
+ - For TypeScript errors in \`.tsx\`/\`.ts\` files, fix the type issues directly (e.g. ref type mismatches, missing imports, incorrect generics).
2494
2496
  - Read the error output carefully to identify the exact file(s) and line(s).
2495
2497
  - Use Read to examine the broken file, then Edit to fix it.
2496
2498
  - After fixing, set \`fixed: true\` and list all changed file paths in \`filesChanged\`.
@@ -2509,7 +2511,7 @@ ${buildErrors}
2509
2511
  \`\`\`
2510
2512
 
2511
2513
  Read the failing files, identify the issues, and use Edit to fix them.
2512
- Only edit files inside content/docs/.`,
2514
+ You may edit files in content/docs/, components/, and app/.`,
2513
2515
  cwd: docsDir,
2514
2516
  apiKey,
2515
2517
  model,
@@ -5546,7 +5548,7 @@ async function logoutCommand() {
5546
5548
 
5547
5549
  // src/index.ts
5548
5550
  var program = new Command();
5549
- program.name("open-auto-doc").description("Auto-generate beautiful documentation websites from GitHub repositories using AI").version("0.5.10");
5551
+ program.name("open-auto-doc").description("Auto-generate beautiful documentation websites from GitHub repositories using AI").version("0.5.11");
5550
5552
  program.command("init", { isDefault: true }).description("Initialize and generate documentation for your repositories").option("-o, --output <dir>", "Output directory", "docs-site").action(initCommand);
5551
5553
  program.command("generate").description("Regenerate documentation using existing configuration").option("--incremental", "Only re-analyze changed files (uses cached results)").option("--force", "Force full regeneration (ignore cache)").option("--repo <name>", "Only analyze this repo (uses cache for others)").action(generateCommand);
5552
5554
  program.command("deploy").description("Create a GitHub repo for docs and push (connect to Vercel for auto-deploy)").option("-d, --dir <path>", "Docs site directory").action(deployCommand);
@@ -81,7 +81,7 @@ const LINK_TYPE_COLORS: Record<string, { color: string; label: string }> = {
81
81
  export function ForceGraph({ graphData, height = 500 }: ForceGraphProps) {
82
82
  const router = useRouter();
83
83
  const containerRef = useRef<HTMLDivElement>(null);
84
- const fgRef = useRef<{ centerAt: (x: number, y: number, ms: number) => void; zoom: (k: number, ms: number) => void } | null>(null);
84
+ const fgRef = useRef<{ centerAt: (x: number, y: number, ms: number) => void; zoom: (k: number, ms: number) => void } | undefined>(undefined);
85
85
  const [dimensions, setDimensions] = useState({ width: 800, height });
86
86
  const [hoverNode, setHoverNode] = useState<GraphNode | null>(null);
87
87
  const [tooltipPos, setTooltipPos] = useState({ x: 0, y: 0 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@latent-space-labs/open-auto-doc",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "description": "Auto-generate beautiful documentation websites from GitHub repositories using AI",
5
5
  "type": "module",
6
6
  "bin": {