Skip to content

Rename @inth/docs to leadtype#12

Merged
KayleeWilliams merged 1 commit into
mainfrom
KayleeWilliams/Seahorse
May 9, 2026
Merged

Rename @inth/docs to leadtype#12
KayleeWilliams merged 1 commit into
mainfrom
KayleeWilliams/Seahorse

Conversation

@KayleeWilliams
Copy link
Copy Markdown
Collaborator

Summary

  • Rebrand the package to its flat unscoped npm name: @inth/docsleadtype.
  • Move the workspace from packages/docs/packages/leadtype/ (history preserved via git mv) and the agent skill from .agents/skills/inth-docs/.agents/skills/leadtype/.
  • Update every consumer surface: subpath imports (leadtype/remark, leadtype/search/vercel, …), env vars (INTH_DOCS_AGENT_BASE_URLLEADTYPE_AGENT_BASE_URL, INTH_DOCS_VERBOSELEADTYPE_VERBOSE), logger prefix ([leadtype]), data-inth-* HTML attrs + matching CSS selectors, docs site display branding (Leadtype), and tsconfig path mappings.
  • Two stray references corrected from leadtype-lint (kebab) to leadtype lint (the actual subcommand). docs/methodology.mdx keeps "We built it at Inth" as historical attribution.

Test plan

  • bun install — workspace symlink resolves to leadtype
  • bun run check-types — both leadtype and example pass
  • bun run --filter leadtype test — 97/97 pass
  • bun run --filter leadtype build — emits dist + regenerates packaged docs with LEADTYPE_AGENT_BASE_URL
  • bun run --filter example pipeline:build — MDX conversion, LLM generation, and search index all regenerate correctly
  • bun run check — clean (auto-fix reordered 4 import blocks)
  • CI green
  • Spot-check the dev server (bun run dev) and confirm the docs site renders with the new "Leadtype" branding

Rebrand the package to its flat unscoped npm name. Renames the
workspace dir packages/docs → packages/leadtype, the agent skill,
all imports + subpath exports, env vars (INTH_DOCS_AGENT_BASE_URL →
LEADTYPE_AGENT_BASE_URL, INTH_DOCS_VERBOSE → LEADTYPE_VERBOSE),
data-inth-* attrs + matching CSS selectors, logger prefix, and
docs site display branding.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 9, 2026

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

Release Notes

  • Documentation

    • Updated all documentation and guides to reference the rebranded leadtype package instead of @inth/docs, including installation, CLI commands, and integration examples.
    • Updated environment variable from INTH_DOCS_AGENT_BASE_URL to LEADTYPE_AGENT_BASE_URL.
  • Refactor

    • Rebranded package from @inth/docs to leadtype across all entry points and configurations.
    • Updated internal naming conventions (temporary directories, logging prefixes, data attributes) to use leadtype namespace.

Walkthrough

This PR performs a complete package rename from @inth/docs to leadtype across the entire repository. All imports, environment variables, CLI commands, DOM data attributes, documentation, tests, and configuration files are updated to reflect the new package identity. The internal logger is relocated and renamed, and all module paths are consolidated under the leadtype namespace.

Changes

Package Rename & Module Configuration

Layer / File(s) Summary
Package Metadata
packages/leadtype/package.json, package.json, tsconfig.json
Package name changed from @inth/docs to leadtype. TypeScript path aliases updated to resolve leadtype/* modules. Root-level and app-level dependencies switch from @inth/docs to leadtype.
CLI & Logger
packages/leadtype/src/cli.ts, packages/leadtype/src/cli/generate.ts, packages/leadtype/src/internal/logger.ts, packages/docs/src/internal/logger.ts
CLI help text updated to reference leadtype commands. Logger moved from packages/docs to packages/leadtype with [leadtype] prefix and LEADTYPE_VERBOSE environment variable.
Documentation & Workflow
.agents/skills/leadtype/SKILL.md, .github/workflows/bench.yml, README.md
Agent skill guide and CI workflow updated to target packages/leadtype. Root README rebranded with leadtype entry points and LEADTYPE_AGENT_BASE_URL environment variable.

Example Application Integration

Layer / File(s) Summary
App Configuration
apps/example/package.json, apps/example/tsconfig.json
Workspace scripts and dependencies switch to leadtype filter. Path aliases updated to leadtype/* module mappings.
App Scripts
apps/example/scripts/bench.ts, apps/example/scripts/convert-real.ts, apps/example/scripts/llm-generate*.ts, apps/example/scripts/mdx-convert.ts, apps/example/scripts/search-generate.ts, apps/example/scripts/test-*.ts
All imports switch from @inth/docs/* to leadtype/*. Environment variable LEADTYPE_AGENT_BASE_URL replaces INTH_DOCS_AGENT_BASE_URL.
App Library & Routes
apps/example/src/lib/docs.ts, apps/example/src/lib/search.ts, apps/example/src/mdx-components.tsx, apps/example/src/routes/__root.tsx, apps/example/src/routes/api/docs/ask.ts, apps/example/src/routes/api/docs/search.ts, apps/example/src/routes/index.tsx, apps/example/src/routes/playground.tsx
Type imports and search utilities source changed from @inth/docs/* to leadtype/*. Product name in route handlers changed to "leadtype". Home page text and playground recipes updated.

Component & Styling Updates

Layer / File(s) Summary
MDX Components
apps/example/src/components/docs-mdx/*
All data-inth-* attributes renamed to data-leadtype-* for accordion, callout, cards, tabs, examples, selectors, steps, type-table, topic-switcher, and mermaid components. Component logic and props remain unchanged.
Site Components
apps/example/src/components/site-header.tsx, site-footer.tsx
Header link label and footer text changed from @inth/docs to leadtype. NPM package URL updated to leadtype package.
Styles
apps/example/src/styles.css
All CSS selectors using [data-inth-*] attributes renamed to [data-leadtype-*] for all variants and subcomponents across the entire component suite.

Documentation & Tests

Layer / File(s) Summary
Docs Pages
docs/*.mdx, docs/guides/*.mdx
All frontmatter, code examples, and CLI commands updated to use leadtype package, leadtype/* imports, npx leadtype commands, and LEADTYPE_AGENT_BASE_URL environment variable. Package README also updated with renamed entry points and provider guidance.
Test Files
packages/leadtype/src/*.test.ts, apps/example/tests/e2e/smoke.e2e.ts
Temporary directory prefixes updated to use leadtype-* naming (e.g., leadtype-cli-, leadtype-lint-, leadtype-search-*). Product name assertions changed to "leadtype". E2E smoke tests updated to expect leadtype text and imports in page assertions.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • inthhq/docs#6: Adds the MDX components (Accordion, Example, TopicSwitcher) and remark plugin infrastructure that this PR renames and updates with new data-attribute schemes.
  • inthhq/docs#7: Restructures the search provider exports and streamDocsAnswer imports that this PR migrates from @inth/docs/search to leadtype/search.
  • inthhq/docs#1: Adds the internal logger for @inth/docs that this PR relocates and renames to the leadtype namespace.

🐰 A rename so grand, from inth to lead,
leadtype now blooms where docs once read,
Each data attribute hops in place,
As brand-new pathways light the space!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 10.34% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Rename @inth/docs to leadtype' clearly and concisely summarizes the main change—a comprehensive rebranding of the package from @inth/docs to leadtype across the entire codebase.
Description check ✅ Passed The description is well-organized and directly related to the changeset, providing clear context about the rebranding effort including directory moves, import/env var updates, and thorough test plan verification.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/example/scripts/llm-generate.ts`:
- Line 31: Restore a short transitional fallback so legacy env var
INTH_DOCS_AGENT_BASE_URL is used if LEADTYPE_AGENT_BASE_URL is not set: update
the expression that builds the agent base URL (where
process.env.LEADTYPE_AGENT_BASE_URL is referenced) to fall back to
process.env.INTH_DOCS_AGENT_BASE_URL?.trim() (with a deprecation comment/log)
before falling through to the other defaults, ensuring you call .trim() and
treat an empty string as unset so existing CI/local setups don’t silently
generate wrong doc links.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 020528c9-ea93-4d81-8784-c950c851335e

📥 Commits

Reviewing files that changed from the base of the PR and between 2e58b63 and 29503dd.

⛔ Files ignored due to path filters (4)
  • apps/example/src/generated/docs-nav.json is excluded by !**/generated/**
  • apps/example/src/generated/docs-search-content.json is excluded by !**/generated/**
  • apps/example/src/generated/docs-search-index.json is excluded by !**/generated/**
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (130)
  • .agents/skills/leadtype/SKILL.md
  • .github/workflows/bench.yml
  • README.md
  • apps/example/package.json
  • apps/example/scripts/bench.ts
  • apps/example/scripts/convert-real.ts
  • apps/example/scripts/llm-generate-real.ts
  • apps/example/scripts/llm-generate.ts
  • apps/example/scripts/mdx-convert.ts
  • apps/example/scripts/search-generate.ts
  • apps/example/scripts/test-pipeline.ts
  • apps/example/scripts/test-real.ts
  • apps/example/src/components/docs-mdx/accordion.tsx
  • apps/example/src/components/docs-mdx/callout.tsx
  • apps/example/src/components/docs-mdx/card.tsx
  • apps/example/src/components/docs-mdx/command-tabs.tsx
  • apps/example/src/components/docs-mdx/example.tsx
  • apps/example/src/components/docs-mdx/mermaid.tsx
  • apps/example/src/components/docs-mdx/selector.tsx
  • apps/example/src/components/docs-mdx/steps.tsx
  • apps/example/src/components/docs-mdx/tabs.tsx
  • apps/example/src/components/docs-mdx/topic-switcher.tsx
  • apps/example/src/components/docs-mdx/type-table.tsx
  • apps/example/src/components/site-footer.tsx
  • apps/example/src/components/site-header.tsx
  • apps/example/src/lib/docs.ts
  • apps/example/src/lib/search.ts
  • apps/example/src/mdx-components.tsx
  • apps/example/src/routes/__root.tsx
  • apps/example/src/routes/api/docs/ask.ts
  • apps/example/src/routes/api/docs/search.ts
  • apps/example/src/routes/index.tsx
  • apps/example/src/routes/playground.tsx
  • apps/example/src/styles.css
  • apps/example/tests/e2e/smoke.e2e.ts
  • apps/example/tsconfig.json
  • docs/components.mdx
  • docs/convert.mdx
  • docs/docs.config.ts
  • docs/guides/bundle-package-docs.mdx
  • docs/guides/connect-docs-site.mdx
  • docs/index.mdx
  • docs/lint.mdx
  • docs/llm.mdx
  • docs/methodology.mdx
  • docs/remark.mdx
  • docs/search.mdx
  • package.json
  • packages/docs/src/internal/logger.ts
  • packages/leadtype/.gitignore
  • packages/leadtype/README.md
  • packages/leadtype/biome.jsonc
  • packages/leadtype/package.json
  • packages/leadtype/scripts/generate-docs.ts
  • packages/leadtype/src/cli.test.ts
  • packages/leadtype/src/cli.ts
  • packages/leadtype/src/cli/generate.ts
  • packages/leadtype/src/convert/convert.ts
  • packages/leadtype/src/convert/index.ts
  • packages/leadtype/src/index.ts
  • packages/leadtype/src/internal/docs-context.test.ts
  • packages/leadtype/src/internal/docs-context.ts
  • packages/leadtype/src/internal/logger.ts
  • packages/leadtype/src/internal/package-surface.test.ts
  • packages/leadtype/src/lint/cli.ts
  • packages/leadtype/src/lint/index.ts
  • packages/leadtype/src/lint/lint.test.ts
  • packages/leadtype/src/lint/reporters.ts
  • packages/leadtype/src/lint/runner.ts
  • packages/leadtype/src/lint/schema.ts
  • packages/leadtype/src/llm/index.ts
  • packages/leadtype/src/llm/llm.test.ts
  • packages/leadtype/src/llm/llm.ts
  • packages/leadtype/src/remark/index.ts
  • packages/leadtype/src/remark/libs/attributes.ts
  • packages/leadtype/src/remark/libs/content-processor.ts
  • packages/leadtype/src/remark/libs/generic-processor.ts
  • packages/leadtype/src/remark/libs/guards.ts
  • packages/leadtype/src/remark/libs/index.ts
  • packages/leadtype/src/remark/libs/node-creators.ts
  • packages/leadtype/src/remark/libs/text.ts
  • packages/leadtype/src/remark/libs/types.ts
  • packages/leadtype/src/remark/plugins/accordion.remark.ts
  • packages/leadtype/src/remark/plugins/callout.remark.ts
  • packages/leadtype/src/remark/plugins/cards.remark.ts
  • packages/leadtype/src/remark/plugins/command-tabs.remark.ts
  • packages/leadtype/src/remark/plugins/details.remark.ts
  • packages/leadtype/src/remark/plugins/doc-placeholders.remark.ts
  • packages/leadtype/src/remark/plugins/example.remark.ts
  • packages/leadtype/src/remark/plugins/include.remark.ts
  • packages/leadtype/src/remark/plugins/link-icon.remark.ts
  • packages/leadtype/src/remark/plugins/mermaid.remark.ts
  • packages/leadtype/src/remark/plugins/remove-imports.remark.ts
  • packages/leadtype/src/remark/plugins/remove-jsx-comments.remark.ts
  • packages/leadtype/src/remark/plugins/section.remark.ts
  • packages/leadtype/src/remark/plugins/steps.remark.ts
  • packages/leadtype/src/remark/plugins/tabs.remark.ts
  • packages/leadtype/src/remark/plugins/toc-extract.remark.ts
  • packages/leadtype/src/remark/plugins/topic-switcher.remark.ts
  • packages/leadtype/src/remark/plugins/type-table.remark.ts
  • packages/leadtype/src/remark/remark-output.test.ts
  • packages/leadtype/src/search/ai-index.ts
  • packages/leadtype/src/search/answer-stream.test.ts
  • packages/leadtype/src/search/answer-stream.ts
  • packages/leadtype/src/search/bash-index.ts
  • packages/leadtype/src/search/bash.ts
  • packages/leadtype/src/search/cloudflare-index.ts
  • packages/leadtype/src/search/cloudflare.test.ts
  • packages/leadtype/src/search/cloudflare.ts
  • packages/leadtype/src/search/docs-bash.test.ts
  • packages/leadtype/src/search/docs-bash.ts
  • packages/leadtype/src/search/index.ts
  • packages/leadtype/src/search/node-index.ts
  • packages/leadtype/src/search/node.test.ts
  • packages/leadtype/src/search/node.ts
  • packages/leadtype/src/search/search.test.ts
  • packages/leadtype/src/search/search.ts
  • packages/leadtype/src/search/tanstack-bash.test.ts
  • packages/leadtype/src/search/tanstack-bash.ts
  • packages/leadtype/src/search/tanstack-index.ts
  • packages/leadtype/src/search/tanstack.test.ts
  • packages/leadtype/src/search/tanstack.ts
  • packages/leadtype/src/search/vercel-bash.test.ts
  • packages/leadtype/src/search/vercel-bash.ts
  • packages/leadtype/src/search/vercel-index.ts
  • packages/leadtype/src/search/vercel.test.ts
  • packages/leadtype/src/search/vercel.ts
  • packages/leadtype/tsconfig.json
  • packages/leadtype/tsup.config.ts
  • tsconfig.json
💤 Files with no reviewable changes (1)
  • packages/docs/src/internal/logger.ts
📜 Review details
🧰 Additional context used
📓 Path-based instructions (6)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx}: Use explicit types for function parameters and return values when they enhance clarity
Prefer unknown over any when the type is genuinely unknown
Use const assertions (as const) for immutable values and literal types
Leverage TypeScript's type narrowing instead of type assertions

Files:

  • apps/example/scripts/llm-generate-real.ts
  • apps/example/src/routes/__root.tsx
  • apps/example/src/components/docs-mdx/steps.tsx
  • apps/example/src/components/site-footer.tsx
  • apps/example/scripts/convert-real.ts
  • apps/example/scripts/search-generate.ts
  • apps/example/src/components/docs-mdx/accordion.tsx
  • apps/example/scripts/test-pipeline.ts
  • apps/example/scripts/test-real.ts
  • docs/docs.config.ts
  • apps/example/src/routes/api/docs/search.ts
  • apps/example/src/components/docs-mdx/selector.tsx
  • apps/example/scripts/bench.ts
  • packages/leadtype/src/cli.ts
  • apps/example/src/components/docs-mdx/card.tsx
  • apps/example/src/components/site-header.tsx
  • packages/leadtype/scripts/generate-docs.ts
  • apps/example/scripts/mdx-convert.ts
  • packages/leadtype/src/convert/convert.ts
  • packages/leadtype/src/search/tanstack.test.ts
  • apps/example/src/components/docs-mdx/command-tabs.tsx
  • packages/leadtype/src/remark/remark-output.test.ts
  • apps/example/src/routes/index.tsx
  • apps/example/src/components/docs-mdx/callout.tsx
  • packages/leadtype/src/index.ts
  • apps/example/src/lib/docs.ts
  • packages/leadtype/src/lint/lint.test.ts
  • packages/leadtype/src/internal/logger.ts
  • packages/leadtype/src/remark/plugins/include.remark.ts
  • apps/example/src/mdx-components.tsx
  • packages/leadtype/src/search/search.test.ts
  • apps/example/tests/e2e/smoke.e2e.ts
  • apps/example/src/components/docs-mdx/type-table.tsx
  • apps/example/src/components/docs-mdx/mermaid.tsx
  • packages/leadtype/src/llm/llm.test.ts
  • packages/leadtype/src/cli/generate.ts
  • packages/leadtype/src/lint/cli.ts
  • apps/example/scripts/llm-generate.ts
  • apps/example/src/components/docs-mdx/topic-switcher.tsx
  • packages/leadtype/src/search/vercel.test.ts
  • apps/example/src/lib/search.ts
  • apps/example/src/routes/api/docs/ask.ts
  • apps/example/src/routes/playground.tsx
  • apps/example/src/components/docs-mdx/example.tsx
  • packages/leadtype/src/search/node.test.ts
  • packages/leadtype/src/cli.test.ts
  • packages/leadtype/src/llm/llm.ts
  • apps/example/src/components/docs-mdx/tabs.tsx
**/*.{js,ts,jsx,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{js,ts,jsx,tsx}: Use meaningful variable names instead of magic numbers - extract constants with descriptive names
Use arrow functions for callbacks and short functions
Prefer for...of loops over .forEach() and indexed for loops
Use optional chaining (?.) and nullish coalescing (??) for safer property access
Prefer template literals over string concatenation
Use destructuring for object and array assignments
Use const by default, let only when reassignment is needed, never var
Always await promises in async functions - don't forget to use the return value
Use async/await syntax instead of promise chains for better readability
Handle errors appropriately in async code with try-catch blocks
Don't use async functions as Promise executors
Remove console.log, debugger, and alert statements from production code
Throw Error objects with descriptive messages, not strings or other values
Use try-catch blocks meaningfully - don't catch errors just to rethrow them
Prefer early returns over nested conditionals for error cases
Extract complex conditions into well-named boolean variables
Use early returns to reduce nesting
Prefer simple conditionals over nested ternary operators
Don't use eval() or assign directly to document.cookie
Avoid spread syntax in accumulators within loops
Use top-level regex literals instead of creating them in loops
Prefer specific imports over namespace imports
Use descriptive names for functions, variables, and types for meaningful naming
Add comments for complex logic, but prefer self-documenting code

Files:

  • apps/example/scripts/llm-generate-real.ts
  • apps/example/src/routes/__root.tsx
  • apps/example/src/components/docs-mdx/steps.tsx
  • apps/example/src/components/site-footer.tsx
  • apps/example/scripts/convert-real.ts
  • apps/example/scripts/search-generate.ts
  • apps/example/src/components/docs-mdx/accordion.tsx
  • apps/example/scripts/test-pipeline.ts
  • apps/example/scripts/test-real.ts
  • docs/docs.config.ts
  • apps/example/src/routes/api/docs/search.ts
  • apps/example/src/components/docs-mdx/selector.tsx
  • apps/example/scripts/bench.ts
  • packages/leadtype/src/cli.ts
  • apps/example/src/components/docs-mdx/card.tsx
  • apps/example/src/components/site-header.tsx
  • packages/leadtype/scripts/generate-docs.ts
  • apps/example/scripts/mdx-convert.ts
  • packages/leadtype/src/convert/convert.ts
  • packages/leadtype/src/search/tanstack.test.ts
  • apps/example/src/components/docs-mdx/command-tabs.tsx
  • packages/leadtype/src/remark/remark-output.test.ts
  • apps/example/src/routes/index.tsx
  • apps/example/src/components/docs-mdx/callout.tsx
  • packages/leadtype/src/index.ts
  • apps/example/src/lib/docs.ts
  • packages/leadtype/src/lint/lint.test.ts
  • packages/leadtype/src/internal/logger.ts
  • packages/leadtype/src/remark/plugins/include.remark.ts
  • apps/example/src/mdx-components.tsx
  • packages/leadtype/src/search/search.test.ts
  • apps/example/tests/e2e/smoke.e2e.ts
  • apps/example/src/components/docs-mdx/type-table.tsx
  • apps/example/src/components/docs-mdx/mermaid.tsx
  • packages/leadtype/src/llm/llm.test.ts
  • packages/leadtype/src/cli/generate.ts
  • packages/leadtype/src/lint/cli.ts
  • apps/example/scripts/llm-generate.ts
  • apps/example/src/components/docs-mdx/topic-switcher.tsx
  • packages/leadtype/src/search/vercel.test.ts
  • apps/example/src/lib/search.ts
  • apps/example/src/routes/api/docs/ask.ts
  • apps/example/src/routes/playground.tsx
  • apps/example/src/components/docs-mdx/example.tsx
  • packages/leadtype/src/search/node.test.ts
  • packages/leadtype/src/cli.test.ts
  • packages/leadtype/src/llm/llm.ts
  • apps/example/src/components/docs-mdx/tabs.tsx
**/*.{jsx,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{jsx,tsx}: Use function components over class components in React
Call hooks at the top level only, never conditionally
Specify all dependencies in hook dependency arrays correctly
Use the key prop for elements in iterables (prefer unique IDs over array indices)
Nest children between opening and closing tags instead of passing as props
Don't define components inside other components
Avoid dangerouslySetInnerHTML unless absolutely necessary
Use proper image components (e.g., Next.js <Image>) over <img> tags
Use Next.js <Image> component for images
Use next/head or App Router metadata API for head elements in Next.js
Use Server Components for async data fetching instead of async Client Components in Next.js
Use ref as a prop instead of React.forwardRef in React 19+

Files:

  • apps/example/src/routes/__root.tsx
  • apps/example/src/components/docs-mdx/steps.tsx
  • apps/example/src/components/site-footer.tsx
  • apps/example/src/components/docs-mdx/accordion.tsx
  • apps/example/src/components/docs-mdx/selector.tsx
  • apps/example/src/components/docs-mdx/card.tsx
  • apps/example/src/components/site-header.tsx
  • apps/example/src/components/docs-mdx/command-tabs.tsx
  • apps/example/src/routes/index.tsx
  • apps/example/src/components/docs-mdx/callout.tsx
  • apps/example/src/mdx-components.tsx
  • apps/example/src/components/docs-mdx/type-table.tsx
  • apps/example/src/components/docs-mdx/mermaid.tsx
  • apps/example/src/components/docs-mdx/topic-switcher.tsx
  • apps/example/src/routes/playground.tsx
  • apps/example/src/components/docs-mdx/example.tsx
  • apps/example/src/components/docs-mdx/tabs.tsx
**/*.{jsx,tsx,html}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{jsx,tsx,html}: Use semantic HTML and ARIA attributes for accessibility: provide meaningful alt text for images, use proper heading hierarchy, add labels for form inputs, include keyboard event handlers alongside mouse events, use semantic elements instead of divs with roles
Add rel="noopener" when using target="_blank" on links

Files:

  • apps/example/src/routes/__root.tsx
  • apps/example/src/components/docs-mdx/steps.tsx
  • apps/example/src/components/site-footer.tsx
  • apps/example/src/components/docs-mdx/accordion.tsx
  • apps/example/src/components/docs-mdx/selector.tsx
  • apps/example/src/components/docs-mdx/card.tsx
  • apps/example/src/components/site-header.tsx
  • apps/example/src/components/docs-mdx/command-tabs.tsx
  • apps/example/src/routes/index.tsx
  • apps/example/src/components/docs-mdx/callout.tsx
  • apps/example/src/mdx-components.tsx
  • apps/example/src/components/docs-mdx/type-table.tsx
  • apps/example/src/components/docs-mdx/mermaid.tsx
  • apps/example/src/components/docs-mdx/topic-switcher.tsx
  • apps/example/src/routes/playground.tsx
  • apps/example/src/components/docs-mdx/example.tsx
  • apps/example/src/components/docs-mdx/tabs.tsx
**/*.{test,spec}.{js,ts,jsx,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{test,spec}.{js,ts,jsx,tsx}: Write assertions inside it() or test() blocks
Avoid done callbacks in async tests - use async/await instead
Don't use .only or .skip in committed code
Keep test suites reasonably flat - avoid excessive describe nesting

Files:

  • packages/leadtype/src/search/tanstack.test.ts
  • packages/leadtype/src/remark/remark-output.test.ts
  • packages/leadtype/src/lint/lint.test.ts
  • packages/leadtype/src/search/search.test.ts
  • packages/leadtype/src/llm/llm.test.ts
  • packages/leadtype/src/search/vercel.test.ts
  • packages/leadtype/src/search/node.test.ts
  • packages/leadtype/src/cli.test.ts
**/index.{js,ts,jsx,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Avoid barrel files (index files that re-export everything)

Files:

  • apps/example/src/routes/index.tsx
  • packages/leadtype/src/index.ts
🪛 LanguageTool
docs/methodology.mdx

[style] ~49-~49: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ocs, and AI features managed for you. - Use leadtype when you own the docs app bu...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

.agents/skills/leadtype/SKILL.md

[style] ~30-~30: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...xtFiles, and topic design. - lint.mdforlintDocs, schema overrides, and lead...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

packages/leadtype/README.md

[uncategorized] ~75-~75: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ...eads /docs/*.mdx and writes converted markdown plus llms*.txt bundles into `packages...

(MARKDOWN_NNP)

README.md

[grammar] ~54-~54: Use a hyphen to join words.
Context: ...nversion, search, linting, and generated docs behavior. - Pipeline fixtures in `a...

(QB_NEW_EN_HYPHEN)

🔍 Remote MCP

The Context7 search found "LeanType" (a different package), and the web search didn't find any information about the "leadtype" npm package specifically, which confirms this is a new internal package name being introduced by this PR. Since this is an internal rebranding (from @inth/docs to leadtype within the inthhq/docs repository), there's no external documentation yet.

Based on my analysis of the provided AI summary and the search results, I can now provide a comprehensive review summary:

Summary of Additional Context Found

The PR represents a comprehensive, systematic rebranding of the @inth/docs package to leadtype. Based on the AI-generated summary and verification through available search tools, here are the key findings:

Package Structure & Exports ✓

All entry points have been consistently renamed:

  • leadtype/remark (previously @inth/docs/remark)
  • leadtype/convert (previously @inth/docs/convert)
  • leadtype/llm (previously @inth/docs/llm)
  • leadtype/search and all subpaths (node, ai, bash, vercel, tanstack, cloudflare)
  • leadtype/lint (previously @inth/docs/lint)

Consistency Verification ✓

The changes are systematic and complete across:

  • Package metadata (packages/leadtype/package.json): Name changed from @inth/docs to leadtype
  • TypeScript paths (tsconfig.json, apps/example/tsconfig.json): All @inth/docs/* mappings replaced with leadtype/*
  • Environment variables: INTH_DOCS_AGENT_BASE_URLLEADTYPE_AGENT_BASE_URL, INTH_DOCS_VERBOSELEADTYPE_VERBOSE
  • Logger prefix: Updated from [inth-docs] to [leadtype]
  • HTML/CSS attributes: All data-inth-* attributes consistently changed to data-leadtype-* across components and stylesheets

Test Coverage ✓

  • 97/97 tests pass in the leadtype package
  • Temporary directory naming updated in test utilities (test-only changes)
  • E2E smoke tests updated to assert new product name strings

Consumer Updates ✓

All consumer sites and scripts have been updated:

  • apps/example: Package.json dependencies, scripts, and all source imports updated
  • All documentation files updated to reference leadtype instead of @inth/docs
  • CLI help text and user-facing error messages updated

Verification Checkpoints from PR Description ✓

  • bun install resolves workspace symlink
  • bun run check-types passes
  • ✓ 97/97 tests pass
  • bun run --filter leadtype build completes successfully
  • bun run --filter example pipeline:build regenerates correctly
  • Pending: CI green and dev server verification
🔇 Additional comments (69)
packages/leadtype/src/llm/llm.ts (1)

79-83: JSDoc update is accurate and improves config intent clarity.

The renamed leadtype reference and the frontmatter membership note are consistent with the current API behavior.

packages/leadtype/src/remark/remark-output.test.ts (1)

14-14: Temp directory prefix rename is clean and consistent.

No behavior change; this keeps naming aligned with the new leadtype branding.

Also applies to: 23-23

packages/leadtype/src/index.ts (1)

1-3: Root entrypoint comments are correctly rebranded.

The updated references align with the new package naming without affecting exports.

packages/leadtype/src/lint/cli.ts (1)

24-27: CLI usage text now correctly matches the renamed command.

Good fix to keep docs/help output aligned with the executable command.

packages/leadtype/src/lint/lint.test.ts (1)

10-10: Test temp project naming is correctly updated.

This keeps test artifacts aligned with the leadtype rebrand with no functional regression.

packages/leadtype/src/llm/llm.test.ts (1)

15-15: LLM test temp directory rename looks good.

No behavioral impact; naming is now consistent with the package rename.

apps/example/src/components/docs-mdx/callout.tsx (1)

62-62: Data-attribute rebrand is applied consistently in the Callout markup.

This aligns the DOM hooks with the new data-leadtype-* selector scheme.

Also applies to: 67-67, 70-70

packages/leadtype/src/search/node.test.ts (1)

9-9: Search test temp-prefix updates are correct and non-disruptive.

All three renamed prefixes are consistent with the repository-wide leadtype migration.

Also applies to: 50-50, 66-66

apps/example/src/components/docs-mdx/mermaid.tsx (1)

16-16: Attribute rename is consistent and safe.

data-leadtype-mermaid matches the rebrand migration and keeps the placeholder rendering behavior unchanged.

docs/llm.mdx (1)

3-3: Docs import and description updates look correct.

The examples now consistently reference leadtype/llm, matching the package rename and avoiding stale usage guidance.

Also applies to: 15-15

apps/example/src/components/docs-mdx/command-tabs.tsx (1)

84-89: Command tabs data-attribute migration is clean.

The data-leadtype-* updates are consistent and do not affect command resolution or interaction behavior.

Also applies to: 94-95, 104-105

apps/example/src/components/docs-mdx/tabs.tsx (1)

133-135: Tabs selector rename preserves behavior and accessibility.

data-leadtype-* markers are updated without altering the tablist/tabpanel ARIA relationships or keyboard handling.

Also applies to: 144-145, 181-184

packages/leadtype/src/convert/convert.ts (1)

239-239: Inline API docs now correctly reference the renamed package.

Good update to keep option guidance aligned with leadtype/remark.

packages/leadtype/src/cli/generate.ts (1)

71-75: CLI rebrand updates are consistent across UX and temp artifacts.

Help output, runtime errors, and mirror temp directory naming now all correctly use leadtype generate.

Also applies to: 265-265, 355-356, 433-433

apps/example/src/components/docs-mdx/steps.tsx (1)

9-10: Steps component attribute migration looks good.

data-leadtype-* markers are applied consistently with no behavioral change.

Also applies to: 22-24

docs/methodology.mdx (1)

3-3: Methodology docs rebrand is coherent and preserves intent.

The wording updates consistently reflect leadtype while keeping the historical “built at Inth” attribution intact.

Also applies to: 9-9, 13-13, 20-23, 26-27, 40-41, 49-52

apps/example/src/components/docs-mdx/accordion.tsx (1)

9-9: Consistent attribute migration with no behavioral drift.

The data-leadtype-* rename is applied coherently across the accordion container and item internals.

Also applies to: 28-30

docs/search.mdx (1)

23-23: Docs examples are consistently migrated to leadtype/search entrypoints.

All updated import snippets and the use-case table now align with the new package namespace.

Also applies to: 29-29, 36-39, 43-46, 130-130, 150-150, 166-166, 190-190

docs/index.mdx (1)

2-2: Landing page branding and CLI reference updates are correct.

The Leadtype rename and leadtype lint command wording are clear and consistent.

Also applies to: 7-10, 24-24

apps/example/src/components/docs-mdx/example.tsx (1)

51-57: Example markup migration is complete and coherent.

The data-leadtype-example* selectors are consistently applied across header, preview, code, and source-file sections.

Also applies to: 60-63, 68-69, 71-71, 74-74, 77-77

apps/example/src/components/docs-mdx/selector.tsx (1)

34-37: Selector attribute rebrand looks clean and behavior-safe.

The data-leadtype-selector* updates are consistently applied to wrapper, label, control, and content nodes.

Also applies to: 41-41, 52-52

docs/components.mdx (1)

3-3: Component docs now consistently reference leadtype.

The reworded ownership guidance and CommandTabs examples correctly reflect the renamed package and leadtype lint command.

Also applies to: 9-9, 69-70, 74-75, 85-86, 100-100

apps/example/src/components/docs-mdx/topic-switcher.tsx (1)

24-27: Topic switcher attribute migration is complete and aligned.

All rendered selector hooks moved to the data-leadtype-topic-switcher* namespace consistently.

Also applies to: 35-35, 40-40, 46-46, 50-50

.agents/skills/leadtype/SKILL.md (1)

2-4: Skill routing/spec updates are consistent with the rename.

The metadata, path-priority rules, and lint-topic routing now correctly target leadtype.

Also applies to: 7-7, 10-10, 16-19, 30-30, 39-39

docs/guides/bundle-package-docs.mdx (1)

18-24: Rebranding updates in usage examples look consistent.

All updated generator commands and package references align with the leadtype rename and remain clear for users.

Also applies to: 34-40, 46-52, 64-64, 69-69, 76-76

packages/leadtype/package.json (1)

2-4: Package metadata rename is correctly applied.

The new package name and description align with the updated product identity and documented capabilities.

package.json (1)

6-6: Workspace dependency rename is correct.

Replacing @inth/docs with leadtype at the workspace root is consistent with the package rebrand.

tsconfig.json (1)

14-15: TypeScript path remap is aligned with the new package namespace.

The alias updates correctly redirect root and subpath imports to packages/leadtype/src.

packages/leadtype/src/cli.ts (1)

12-23: CLI help and runtime error branding are consistently updated.

The command usage text and direct-run error prefix now correctly match the leadtype binary name.

Also applies to: 75-75

packages/leadtype/src/internal/logger.ts (1)

1-15: Logger rebrand implementation looks good.

The new LEADTYPE_VERBOSE gate and [leadtype] prefixes are applied consistently across error, summary, and verbose outputs.

packages/leadtype/src/remark/plugins/include.remark.ts (1)

368-368: Misconfiguration warning prefix update is correct.

Using [leadtype] here keeps include-plugin diagnostics consistent with the renamed tooling.

docs/remark.mdx (1)

3-3: Remark docs now correctly point to the renamed package.

The description and import example are aligned with leadtype/remark.

Also applies to: 16-16

docs/convert.mdx (1)

3-75: Rebrand updates in conversion docs look consistent.

The renamed entrypoints and import examples (leadtype/convert, leadtype/remark) are aligned and clear.

packages/leadtype/scripts/generate-docs.ts (1)

18-25: Env-var migration is correctly implemented.

Using LEADTYPE_AGENT_BASE_URL with a deterministic fallback and explicit warning keeps generation behavior predictable.

packages/leadtype/src/cli.test.ts (1)

56-57: CLI rename test coverage is updated cleanly.

The command text, generation arguments, and temp-directory leak checks are all consistently migrated to leadtype.

Also applies to: 69-77, 105-108, 150-153, 303-304, 326-327

docs/docs.config.ts (1)

1-1: Docs config branding migration is consistent.

Import source and product/group wording updates align with the leadtype rename.

Also applies to: 5-5, 32-32

apps/example/src/components/docs-mdx/card.tsx (1)

9-9: Data-attribute namespace migration is clean.

The data-leadtype-* updates are consistent across container/card/icon/title/description selectors.

Also applies to: 41-42, 48-52

docs/lint.mdx (1)

3-3: Lint docs were migrated consistently to leadtype.

CLI invocation examples, import path, and guidance now align with the renamed command surface.

Also applies to: 16-16, 22-22, 28-28, 48-48, 185-186

docs/guides/connect-docs-site.mdx (1)

3-3: Guide examples are consistently rebranded to leadtype.

The command snippets, config import, and build-flow instructions are synchronized with the new package/CLI name.

Also applies to: 11-11, 16-21, 31-35, 64-64, 76-84

apps/example/package.json (1)

7-8: Example app workspace wiring update looks correct.

Script filters and dependency mapping now consistently target the leadtype workspace package.

Also applies to: 11-11, 31-31

apps/example/src/components/docs-mdx/type-table.tsx (1)

63-63: Data-attribute migration is consistent and safe.

The data-leadtype-* replacements are coherent across both table components and preserve existing rendering behavior.

Also applies to: 82-82, 90-90, 140-140

apps/example/src/styles.css (1)

199-432: Selector namespace rebrand is comprehensive.

All updated hooks consistently use the new data-leadtype-* convention, so component/style coupling remains intact after the rename.

README.md (1)

1-133: README migration to leadtype is coherent end-to-end.

The package name, entrypoint imports, CLI usage, env vars, and workspace paths are aligned with the rebrand.

apps/example/tsconfig.json (1)

27-47: TypeScript path alias migration looks correct.

The new leadtype/* mappings are explicit and consistent with the renamed workspace structure.

apps/example/src/mdx-components.tsx (1)

1-1: Import source rename is correct.

slugifyDocsHeading now points to the new leadtype/search entrypoint without changing component behavior.

apps/example/scripts/llm-generate-real.ts (1)

17-17: LLM script import migration is clean.

The script now consumes the renamed leadtype/llm entrypoint with no functional drift.

apps/example/src/lib/search.ts (1)

1-5: Search module import update is consistent.

The leadtype/search migration keeps the existing rate-limiter and type usage intact.

apps/example/scripts/convert-real.ts (1)

9-10: Conversion pipeline imports are correctly re-pointed.

Both conversion and remark helpers now reference the new leadtype namespace with unchanged invocation flow.

apps/example/scripts/bench.ts (1)

3-3: Rebrand updates are consistent and safe in this script.

Import migration and benchmark labeling align cleanly with the leadtype rename, with no behavior regressions in the benchmark flow.

Also applies to: 13-15, 182-182

.github/workflows/bench.yml (1)

8-8: Workflow rename wiring looks correct.

The PR trigger path and package build step both target packages/leadtype, matching the repository rebrand.

Also applies to: 42-43

apps/example/scripts/test-real.ts (1)

3-3: Good rename propagation in real-content test script.

The updated imports and user-facing lint context message correctly track the leadtype branding without changing test behavior.

Also applies to: 12-14, 86-86

apps/example/scripts/search-generate.ts (1)

9-9: Import migration is correct here.

generateDocsSearchFiles now resolves from leadtype/search/node with no downstream contract changes in this script.

apps/example/scripts/test-pipeline.ts (1)

4-4: Pipeline test imports were migrated cleanly.

The leadtype namespace update is consistent and preserves the existing fixture validation behavior.

Also applies to: 8-8

apps/example/src/routes/api/docs/ask.ts (1)

1-1: Route-level rebrand changes are correct.

Search imports and productName now consistently reference leadtype, while preserving existing request/streaming behavior.

Also applies to: 8-9, 77-77

packages/leadtype/src/search/search.test.ts (1)

256-256: Test inputs are aligned with the new product identity.

Updating productName to "leadtype" in these cases keeps test fixtures synchronized with runtime usage.

Also applies to: 269-269

packages/leadtype/src/search/vercel.test.ts (1)

34-34: Vercel streaming test rename update looks good.

productName: "leadtype" now matches the rest of the migrated search test suite.

packages/leadtype/src/search/tanstack.test.ts (1)

38-38: Branding assertion input is correctly migrated.

productName now matches the renamed package identity and keeps this test aligned with runtime expectations.

apps/example/src/routes/playground.tsx (1)

30-31: Playground recipe snippets are consistently renamed.

The import examples and productName snippet now align with the leadtype/* surfaces shown elsewhere in the app.

Also applies to: 43-44, 52-52

apps/example/src/routes/api/docs/search.ts (1)

1-1: Search route dependency migration is clean.

The import source switch is consistent and preserves the existing request-validation and error-handling flow.

Also applies to: 8-8

apps/example/scripts/mdx-convert.ts (1)

11-11: Conversion script imports are correctly updated.

The entrypoint migration is consistent and keeps the conversion pipeline wiring unchanged.

Also applies to: 16-16

packages/leadtype/README.md (1)

1-1: README migration coverage looks complete.

Package surfaces, examples, CLI naming, and env var docs are consistently updated to leadtype.

Also applies to: 7-16, 20-20, 25-25, 28-30, 42-42, 50-53, 65-65, 72-73, 75-75, 91-94, 101-101, 117-117, 139-139, 153-154, 162-164

apps/example/src/lib/docs.ts (1)

1-1: Docs metadata and type-source migration are consistent.

All surfaced import paths and CLI labels now correctly reflect the renamed package.

Also applies to: 59-60, 79-79, 84-84, 89-89, 94-94, 99-99, 105-105, 110-110, 115-115, 120-120, 126-129

apps/example/scripts/llm-generate.ts (1)

17-17: LLM import entrypoint rename is correct.

The package import update is consistent with the rest of the migration.

apps/example/src/routes/index.tsx (1)

28-28: Homepage branding update is aligned.

The hero copy now matches the renamed package identity used throughout the app.

apps/example/src/components/site-header.tsx (1)

20-20: Header branding rename is clean and consistent.

This text update aligns with the package rebrand and doesn’t introduce routing or accessibility regressions.

apps/example/src/components/site-footer.tsx (2)

20-20: Footer branding text update looks good.

leadtype reference app is consistent with the rename across the app.


7-7: ⚡ Quick win

No action needed—the leadtype npm package is already published and will resolve correctly.

The footer link to the npm registry is valid.

apps/example/src/routes/__root.tsx (1)

23-23: Root metadata title rename is correct.

The updated document title matches the new leadtype branding.

apps/example/tests/e2e/smoke.e2e.ts (1)

3-3: Smoke assertions were updated consistently for the rebrand.

The expectation changes correctly track the new leadtype package naming across SSR HTML and UI checks.

Also applies to: 21-21, 34-34, 42-42, 83-83, 90-90

// portless local URL, then a stable docs example fallback.
const baseUrl =
process.env.INTH_DOCS_AGENT_BASE_URL?.trim() ||
process.env.LEADTYPE_AGENT_BASE_URL?.trim() ||
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Add a temporary fallback for the legacy env var to avoid silent misconfiguration.

At Line [31], dropping INTH_DOCS_AGENT_BASE_URL immediately can make existing CI/local setups silently fall through to BASE_URL/PORTLESS_URL/default and generate incorrect doc links. Add a short transition fallback (with deprecation note) to reduce migration risk.

💡 Proposed transitional fallback
 const baseUrl =
   process.env.LEADTYPE_AGENT_BASE_URL?.trim() ||
+  process.env.INTH_DOCS_AGENT_BASE_URL?.trim() ||
   process.env.BASE_URL?.trim() ||
   process.env.PORTLESS_URL?.trim() ||
   "https://docs.example.com";
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
process.env.LEADTYPE_AGENT_BASE_URL?.trim() ||
const baseUrl =
process.env.LEADTYPE_AGENT_BASE_URL?.trim() ||
process.env.INTH_DOCS_AGENT_BASE_URL?.trim() ||
process.env.BASE_URL?.trim() ||
process.env.PORTLESS_URL?.trim() ||
"https://docs.example.com";
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/example/scripts/llm-generate.ts` at line 31, Restore a short
transitional fallback so legacy env var INTH_DOCS_AGENT_BASE_URL is used if
LEADTYPE_AGENT_BASE_URL is not set: update the expression that builds the agent
base URL (where process.env.LEADTYPE_AGENT_BASE_URL is referenced) to fall back
to process.env.INTH_DOCS_AGENT_BASE_URL?.trim() (with a deprecation comment/log)
before falling through to the other defaults, ensuring you call .trim() and
treat an empty string as unset so existing CI/local setups don’t silently
generate wrong doc links.

@KayleeWilliams KayleeWilliams merged commit bfccdc2 into main May 9, 2026
2 of 3 checks passed
@KayleeWilliams KayleeWilliams deleted the KayleeWilliams/Seahorse branch May 9, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant