Rename @inth/docs to leadtype#12
Conversation
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.
📝 WalkthroughSummary by CodeRabbitRelease Notes
WalkthroughThis PR performs a complete package rename from ChangesPackage Rename & Module Configuration
Example Application Integration
Component & Styling Updates
Documentation & Tests
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
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
⛔ Files ignored due to path filters (4)
apps/example/src/generated/docs-nav.jsonis excluded by!**/generated/**apps/example/src/generated/docs-search-content.jsonis excluded by!**/generated/**apps/example/src/generated/docs-search-index.jsonis excluded by!**/generated/**bun.lockis excluded by!**/*.lock
📒 Files selected for processing (130)
.agents/skills/leadtype/SKILL.md.github/workflows/bench.ymlREADME.mdapps/example/package.jsonapps/example/scripts/bench.tsapps/example/scripts/convert-real.tsapps/example/scripts/llm-generate-real.tsapps/example/scripts/llm-generate.tsapps/example/scripts/mdx-convert.tsapps/example/scripts/search-generate.tsapps/example/scripts/test-pipeline.tsapps/example/scripts/test-real.tsapps/example/src/components/docs-mdx/accordion.tsxapps/example/src/components/docs-mdx/callout.tsxapps/example/src/components/docs-mdx/card.tsxapps/example/src/components/docs-mdx/command-tabs.tsxapps/example/src/components/docs-mdx/example.tsxapps/example/src/components/docs-mdx/mermaid.tsxapps/example/src/components/docs-mdx/selector.tsxapps/example/src/components/docs-mdx/steps.tsxapps/example/src/components/docs-mdx/tabs.tsxapps/example/src/components/docs-mdx/topic-switcher.tsxapps/example/src/components/docs-mdx/type-table.tsxapps/example/src/components/site-footer.tsxapps/example/src/components/site-header.tsxapps/example/src/lib/docs.tsapps/example/src/lib/search.tsapps/example/src/mdx-components.tsxapps/example/src/routes/__root.tsxapps/example/src/routes/api/docs/ask.tsapps/example/src/routes/api/docs/search.tsapps/example/src/routes/index.tsxapps/example/src/routes/playground.tsxapps/example/src/styles.cssapps/example/tests/e2e/smoke.e2e.tsapps/example/tsconfig.jsondocs/components.mdxdocs/convert.mdxdocs/docs.config.tsdocs/guides/bundle-package-docs.mdxdocs/guides/connect-docs-site.mdxdocs/index.mdxdocs/lint.mdxdocs/llm.mdxdocs/methodology.mdxdocs/remark.mdxdocs/search.mdxpackage.jsonpackages/docs/src/internal/logger.tspackages/leadtype/.gitignorepackages/leadtype/README.mdpackages/leadtype/biome.jsoncpackages/leadtype/package.jsonpackages/leadtype/scripts/generate-docs.tspackages/leadtype/src/cli.test.tspackages/leadtype/src/cli.tspackages/leadtype/src/cli/generate.tspackages/leadtype/src/convert/convert.tspackages/leadtype/src/convert/index.tspackages/leadtype/src/index.tspackages/leadtype/src/internal/docs-context.test.tspackages/leadtype/src/internal/docs-context.tspackages/leadtype/src/internal/logger.tspackages/leadtype/src/internal/package-surface.test.tspackages/leadtype/src/lint/cli.tspackages/leadtype/src/lint/index.tspackages/leadtype/src/lint/lint.test.tspackages/leadtype/src/lint/reporters.tspackages/leadtype/src/lint/runner.tspackages/leadtype/src/lint/schema.tspackages/leadtype/src/llm/index.tspackages/leadtype/src/llm/llm.test.tspackages/leadtype/src/llm/llm.tspackages/leadtype/src/remark/index.tspackages/leadtype/src/remark/libs/attributes.tspackages/leadtype/src/remark/libs/content-processor.tspackages/leadtype/src/remark/libs/generic-processor.tspackages/leadtype/src/remark/libs/guards.tspackages/leadtype/src/remark/libs/index.tspackages/leadtype/src/remark/libs/node-creators.tspackages/leadtype/src/remark/libs/text.tspackages/leadtype/src/remark/libs/types.tspackages/leadtype/src/remark/plugins/accordion.remark.tspackages/leadtype/src/remark/plugins/callout.remark.tspackages/leadtype/src/remark/plugins/cards.remark.tspackages/leadtype/src/remark/plugins/command-tabs.remark.tspackages/leadtype/src/remark/plugins/details.remark.tspackages/leadtype/src/remark/plugins/doc-placeholders.remark.tspackages/leadtype/src/remark/plugins/example.remark.tspackages/leadtype/src/remark/plugins/include.remark.tspackages/leadtype/src/remark/plugins/link-icon.remark.tspackages/leadtype/src/remark/plugins/mermaid.remark.tspackages/leadtype/src/remark/plugins/remove-imports.remark.tspackages/leadtype/src/remark/plugins/remove-jsx-comments.remark.tspackages/leadtype/src/remark/plugins/section.remark.tspackages/leadtype/src/remark/plugins/steps.remark.tspackages/leadtype/src/remark/plugins/tabs.remark.tspackages/leadtype/src/remark/plugins/toc-extract.remark.tspackages/leadtype/src/remark/plugins/topic-switcher.remark.tspackages/leadtype/src/remark/plugins/type-table.remark.tspackages/leadtype/src/remark/remark-output.test.tspackages/leadtype/src/search/ai-index.tspackages/leadtype/src/search/answer-stream.test.tspackages/leadtype/src/search/answer-stream.tspackages/leadtype/src/search/bash-index.tspackages/leadtype/src/search/bash.tspackages/leadtype/src/search/cloudflare-index.tspackages/leadtype/src/search/cloudflare.test.tspackages/leadtype/src/search/cloudflare.tspackages/leadtype/src/search/docs-bash.test.tspackages/leadtype/src/search/docs-bash.tspackages/leadtype/src/search/index.tspackages/leadtype/src/search/node-index.tspackages/leadtype/src/search/node.test.tspackages/leadtype/src/search/node.tspackages/leadtype/src/search/search.test.tspackages/leadtype/src/search/search.tspackages/leadtype/src/search/tanstack-bash.test.tspackages/leadtype/src/search/tanstack-bash.tspackages/leadtype/src/search/tanstack-index.tspackages/leadtype/src/search/tanstack.test.tspackages/leadtype/src/search/tanstack.tspackages/leadtype/src/search/vercel-bash.test.tspackages/leadtype/src/search/vercel-bash.tspackages/leadtype/src/search/vercel-index.tspackages/leadtype/src/search/vercel.test.tspackages/leadtype/src/search/vercel.tspackages/leadtype/tsconfig.jsonpackages/leadtype/tsup.config.tstsconfig.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
Preferunknownoveranywhen 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.tsapps/example/src/routes/__root.tsxapps/example/src/components/docs-mdx/steps.tsxapps/example/src/components/site-footer.tsxapps/example/scripts/convert-real.tsapps/example/scripts/search-generate.tsapps/example/src/components/docs-mdx/accordion.tsxapps/example/scripts/test-pipeline.tsapps/example/scripts/test-real.tsdocs/docs.config.tsapps/example/src/routes/api/docs/search.tsapps/example/src/components/docs-mdx/selector.tsxapps/example/scripts/bench.tspackages/leadtype/src/cli.tsapps/example/src/components/docs-mdx/card.tsxapps/example/src/components/site-header.tsxpackages/leadtype/scripts/generate-docs.tsapps/example/scripts/mdx-convert.tspackages/leadtype/src/convert/convert.tspackages/leadtype/src/search/tanstack.test.tsapps/example/src/components/docs-mdx/command-tabs.tsxpackages/leadtype/src/remark/remark-output.test.tsapps/example/src/routes/index.tsxapps/example/src/components/docs-mdx/callout.tsxpackages/leadtype/src/index.tsapps/example/src/lib/docs.tspackages/leadtype/src/lint/lint.test.tspackages/leadtype/src/internal/logger.tspackages/leadtype/src/remark/plugins/include.remark.tsapps/example/src/mdx-components.tsxpackages/leadtype/src/search/search.test.tsapps/example/tests/e2e/smoke.e2e.tsapps/example/src/components/docs-mdx/type-table.tsxapps/example/src/components/docs-mdx/mermaid.tsxpackages/leadtype/src/llm/llm.test.tspackages/leadtype/src/cli/generate.tspackages/leadtype/src/lint/cli.tsapps/example/scripts/llm-generate.tsapps/example/src/components/docs-mdx/topic-switcher.tsxpackages/leadtype/src/search/vercel.test.tsapps/example/src/lib/search.tsapps/example/src/routes/api/docs/ask.tsapps/example/src/routes/playground.tsxapps/example/src/components/docs-mdx/example.tsxpackages/leadtype/src/search/node.test.tspackages/leadtype/src/cli.test.tspackages/leadtype/src/llm/llm.tsapps/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
Preferfor...ofloops over.forEach()and indexedforloops
Use optional chaining (?.) and nullish coalescing (??) for safer property access
Prefer template literals over string concatenation
Use destructuring for object and array assignments
Useconstby default,letonly when reassignment is needed, nevervar
Alwaysawaitpromises in async functions - don't forget to use the return value
Useasync/awaitsyntax 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
Removeconsole.log,debugger, andalertstatements from production code
ThrowErrorobjects with descriptive messages, not strings or other values
Usetry-catchblocks 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 useeval()or assign directly todocument.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.tsapps/example/src/routes/__root.tsxapps/example/src/components/docs-mdx/steps.tsxapps/example/src/components/site-footer.tsxapps/example/scripts/convert-real.tsapps/example/scripts/search-generate.tsapps/example/src/components/docs-mdx/accordion.tsxapps/example/scripts/test-pipeline.tsapps/example/scripts/test-real.tsdocs/docs.config.tsapps/example/src/routes/api/docs/search.tsapps/example/src/components/docs-mdx/selector.tsxapps/example/scripts/bench.tspackages/leadtype/src/cli.tsapps/example/src/components/docs-mdx/card.tsxapps/example/src/components/site-header.tsxpackages/leadtype/scripts/generate-docs.tsapps/example/scripts/mdx-convert.tspackages/leadtype/src/convert/convert.tspackages/leadtype/src/search/tanstack.test.tsapps/example/src/components/docs-mdx/command-tabs.tsxpackages/leadtype/src/remark/remark-output.test.tsapps/example/src/routes/index.tsxapps/example/src/components/docs-mdx/callout.tsxpackages/leadtype/src/index.tsapps/example/src/lib/docs.tspackages/leadtype/src/lint/lint.test.tspackages/leadtype/src/internal/logger.tspackages/leadtype/src/remark/plugins/include.remark.tsapps/example/src/mdx-components.tsxpackages/leadtype/src/search/search.test.tsapps/example/tests/e2e/smoke.e2e.tsapps/example/src/components/docs-mdx/type-table.tsxapps/example/src/components/docs-mdx/mermaid.tsxpackages/leadtype/src/llm/llm.test.tspackages/leadtype/src/cli/generate.tspackages/leadtype/src/lint/cli.tsapps/example/scripts/llm-generate.tsapps/example/src/components/docs-mdx/topic-switcher.tsxpackages/leadtype/src/search/vercel.test.tsapps/example/src/lib/search.tsapps/example/src/routes/api/docs/ask.tsapps/example/src/routes/playground.tsxapps/example/src/components/docs-mdx/example.tsxpackages/leadtype/src/search/node.test.tspackages/leadtype/src/cli.test.tspackages/leadtype/src/llm/llm.tsapps/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 thekeyprop 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
AvoiddangerouslySetInnerHTMLunless absolutely necessary
Use proper image components (e.g., Next.js<Image>) over<img>tags
Use Next.js<Image>component for images
Usenext/heador 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 ofReact.forwardRefin React 19+
Files:
apps/example/src/routes/__root.tsxapps/example/src/components/docs-mdx/steps.tsxapps/example/src/components/site-footer.tsxapps/example/src/components/docs-mdx/accordion.tsxapps/example/src/components/docs-mdx/selector.tsxapps/example/src/components/docs-mdx/card.tsxapps/example/src/components/site-header.tsxapps/example/src/components/docs-mdx/command-tabs.tsxapps/example/src/routes/index.tsxapps/example/src/components/docs-mdx/callout.tsxapps/example/src/mdx-components.tsxapps/example/src/components/docs-mdx/type-table.tsxapps/example/src/components/docs-mdx/mermaid.tsxapps/example/src/components/docs-mdx/topic-switcher.tsxapps/example/src/routes/playground.tsxapps/example/src/components/docs-mdx/example.tsxapps/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
Addrel="noopener"when usingtarget="_blank"on links
Files:
apps/example/src/routes/__root.tsxapps/example/src/components/docs-mdx/steps.tsxapps/example/src/components/site-footer.tsxapps/example/src/components/docs-mdx/accordion.tsxapps/example/src/components/docs-mdx/selector.tsxapps/example/src/components/docs-mdx/card.tsxapps/example/src/components/site-header.tsxapps/example/src/components/docs-mdx/command-tabs.tsxapps/example/src/routes/index.tsxapps/example/src/components/docs-mdx/callout.tsxapps/example/src/mdx-components.tsxapps/example/src/components/docs-mdx/type-table.tsxapps/example/src/components/docs-mdx/mermaid.tsxapps/example/src/components/docs-mdx/topic-switcher.tsxapps/example/src/routes/playground.tsxapps/example/src/components/docs-mdx/example.tsxapps/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 insideit()ortest()blocks
Avoid done callbacks in async tests - use async/await instead
Don't use.onlyor.skipin committed code
Keep test suites reasonably flat - avoid excessivedescribenesting
Files:
packages/leadtype/src/search/tanstack.test.tspackages/leadtype/src/remark/remark-output.test.tspackages/leadtype/src/lint/lint.test.tspackages/leadtype/src/search/search.test.tspackages/leadtype/src/llm/llm.test.tspackages/leadtype/src/search/vercel.test.tspackages/leadtype/src/search/node.test.tspackages/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.tsxpackages/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/searchand 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/docstoleadtype - TypeScript paths (
tsconfig.json,apps/example/tsconfig.json): All@inth/docs/*mappings replaced withleadtype/* - Environment variables:
INTH_DOCS_AGENT_BASE_URL→LEADTYPE_AGENT_BASE_URL,INTH_DOCS_VERBOSE→LEADTYPE_VERBOSE - Logger prefix: Updated from
[inth-docs]to[leadtype] - HTML/CSS attributes: All
data-inth-*attributes consistently changed todata-leadtype-*across components and stylesheets
Test Coverage ✓
- 97/97 tests pass in the
leadtypepackage - 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
leadtypeinstead of@inth/docs - CLI help text and user-facing error messages updated
Verification Checkpoints from PR Description ✓
- ✓
bun installresolves workspace symlink - ✓
bun run check-typespasses - ✓ 97/97 tests pass
- ✓
bun run --filter leadtype buildcompletes successfully - ✓
bun run --filter example pipeline:buildregenerates 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
leadtypereference 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
leadtypebranding.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
leadtyperebrand 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
leadtypemigration.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-mermaidmatches 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
leadtypewhile 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 toleadtype/searchentrypoints.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
Leadtyperename andleadtype lintcommand wording are clear and consistent.Also applies to: 7-10, 24-24
apps/example/src/components/docs-mdx/example.tsx (1)
51-57:Examplemarkup 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 referenceleadtype.The reworded ownership guidance and
CommandTabsexamples correctly reflect the renamed package andleadtype lintcommand.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
leadtyperename 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/docswithleadtypeat 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
leadtypebinary name.Also applies to: 75-75
packages/leadtype/src/internal/logger.ts (1)
1-15: Logger rebrand implementation looks good.The new
LEADTYPE_VERBOSEgate 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_URLwith 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
leadtyperename.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 toleadtype.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 toleadtype.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
leadtypeworkspace 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 toleadtypeis 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.
slugifyDocsHeadingnow points to the newleadtype/searchentrypoint 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/llmentrypoint with no functional drift.apps/example/src/lib/search.ts (1)
1-5: Search module import update is consistent.The
leadtype/searchmigration 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
leadtypenamespace 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
leadtyperename, 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
leadtypebranding 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.
generateDocsSearchFilesnow resolves fromleadtype/search/nodewith no downstream contract changes in this script.apps/example/scripts/test-pipeline.ts (1)
4-4: Pipeline test imports were migrated cleanly.The
leadtypenamespace 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
productNamenow consistently referenceleadtype, 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
productNameto"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.
productNamenow 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
productNamesnippet now align with theleadtype/*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 appis consistent with the rename across the app.
7-7: ⚡ Quick winNo action needed—the
leadtypenpm 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
leadtypebranding.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
leadtypepackage 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() || |
There was a problem hiding this comment.
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.
| 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.
Summary
@inth/docs→leadtype.packages/docs/→packages/leadtype/(history preserved viagit mv) and the agent skill from.agents/skills/inth-docs/→.agents/skills/leadtype/.leadtype/remark,leadtype/search/vercel, …), env vars (INTH_DOCS_AGENT_BASE_URL→LEADTYPE_AGENT_BASE_URL,INTH_DOCS_VERBOSE→LEADTYPE_VERBOSE), logger prefix ([leadtype]),data-inth-*HTML attrs + matching CSS selectors, docs site display branding (Leadtype), and tsconfig path mappings.leadtype-lint(kebab) toleadtype lint(the actual subcommand).docs/methodology.mdxkeeps "We built it at Inth" as historical attribution.Test plan
bun install— workspace symlink resolves toleadtypebun run check-types— bothleadtypeandexamplepassbun run --filter leadtype test— 97/97 passbun run --filter leadtype build— emits dist + regenerates packaged docs withLEADTYPE_AGENT_BASE_URLbun run --filter example pipeline:build— MDX conversion, LLM generation, and search index all regenerate correctlybun run check— clean (auto-fix reordered 4 import blocks)bun run dev) and confirm the docs site renders with the new "Leadtype" branding