Skip to content

docs: import languages from the shared entry - #14

Merged
ugi-dev merged 1 commit into
mainfrom
docs/barrel-language-imports
Oct 22, 2026
Merged

ugi-dev merged 1 commit into
mainfrom
docs/barrel-language-imports

Conversation

@ugi-dev

@ugi-dev ugi-dev commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

What and why

Docs examples, the READMEs, and the docs site import language definitions from the shared entry:

import { javascript, typescript } from '@vortexlabs/kirari/languages'

Bundlers keep only the imported definitions, so bundle sizes do not change: a tokenize + python bundle is 6,713 bytes gzip with either import path. The languages page now lists export names, notes that per-file paths such as @vortexlabs/kirari/languages/python remain for use without a bundler, and the API page lists the ./languages entry.

Stacked on #13.

Checklist

  • bun run check passes
  • Tests cover the change (docs only)
  • Changeset added (bunx changeset), or not needed for docs, tests, or internal changes
  • Docs updated if behavior or APIs changed

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T05:24:06.184046Z 4dc34fa Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

  • Run on-demand review

This review includes 18 billable files and costs up to $4.50.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 27 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 5 included reviews currently available. Your 12 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 62f78e92-ccc4-4009-89af-fb7552edc14b
📥 Commits

Reviewing files that changed from the base of the PR and between 9bd13da and ba7c183.

📒 Files selected for processing: 18
  • docs/language-integration.md
  • docs/streaming.md
  • packages/kirari/README.md
  • packages/react/README.md
  • packages/rehype/README.md
  • sites/docs/content/api.md
  • sites/docs/content/grammars.md
  • sites/docs/content/languages.md
  • sites/docs/content/markdown.md
  • sites/docs/content/react.md
  • sites/docs/content/rehype.md
  • sites/docs/content/streaming.md
  • sites/docs/src/components/code/ThemeCard/ThemeCard.tsx
  • sites/docs/src/features/compare/Compare/Compare.tsx
  • sites/docs/src/features/landing/LandingPage/LandingPage.tsx
  • sites/docs/src/features/landing/StreamDemo/StreamDemo.tsx
  • sites/docs/src/features/playground/Playground/Playground.tsx
  • sites/docs/src/lib/languages.ts

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 5785a912-3e23-4588-a515-687e9b7b68e6
📥 Commits

Reviewing files that changed from the base of the PR and between 22ff4d9 and 595a59e.

📒 Files selected for processing: 18
  • docs/language-integration.md
  • docs/streaming.md
  • packages/kirari/README.md
  • packages/react/README.md
  • packages/rehype/README.md
  • sites/docs/content/api.md
  • sites/docs/content/grammars.md
  • sites/docs/content/languages.md
  • sites/docs/content/markdown.md
  • sites/docs/content/react.md
  • sites/docs/content/rehype.md
  • sites/docs/content/streaming.md
  • sites/docs/src/components/code/ThemeCard/ThemeCard.tsx
  • sites/docs/src/features/compare/Compare/Compare.tsx
  • sites/docs/src/features/landing/LandingPage/LandingPage.tsx
  • sites/docs/src/features/landing/StreamDemo/StreamDemo.tsx
  • sites/docs/src/features/playground/Playground/Playground.tsx
  • sites/docs/src/lib/languages.ts

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Walkthrough

Examples and docs-site code now import language definitions from @vortexlabs/kirari/languages instead of individual language subpaths. The API and language reference describe named exports, bundler behavior, and the option to import individual language files.

Changes

Language Entry-Point Adoption

Layer / File(s) Summary
Language entry-point reference
sites/docs/content/api.md, sites/docs/content/languages.md, sites/docs/content/grammars.md
The API and language reference describe named language exports. The language guide also notes bundler behavior and individual-file imports.
Integration examples
docs/*, packages/*/README.md, sites/docs/content/*
Kirari, React, rehype, streaming, and language-integration examples use the shared languages entry point.
Docs-site imports
sites/docs/src/components/code/ThemeCard/ThemeCard.tsx, sites/docs/src/features/*, sites/docs/src/lib/languages.ts
The docs-site language registry and UI components import language definitions from the shared entry point.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 595a5

The docs and site now use the shared language entry. The changed exports are available, and no new merge-blocking risk is established.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating documentation and examples to import languages from the shared entry point.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 6…
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.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 6 files. (12 skipped: 12 unsupported.)

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@ugi-dev
ugi-dev force-pushed the docs/barrel-language-imports branch from 595a59e to 4dc34fa Compare October 22, 2026 05:16
@ugi-dev
ugi-dev changed the base branch from main to refactor/scanner October 22, 2026 05:16
@ugi-dev

ugi-dev commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@ugi-dev

ugi-dev commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

@codex review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ugi-dev
ugi-dev added this pull request to stack #15 October 22, 2026 05:23
@ugi-dev
ugi-dev force-pushed the docs/barrel-language-imports branch from 4dc34fa to c9a031c Compare October 22, 2026 05:23
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 4dc34fa420

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ugi-dev
ugi-dev force-pushed the docs/barrel-language-imports branch 2 times, most recently from 3b71429 to 9bd13da Compare October 22, 2026 05:29
Base automatically changed from refactor/scanner to main October 22, 2026 05:31
Examples and the docs site import definitions from @vortexlabs/kirari/languages. Bundlers keep only the imported definitions, so bundle sizes are unchanged. Per-file paths stay documented for use without a bundler.
@ugi-dev
ugi-dev force-pushed the docs/barrel-language-imports branch from 9bd13da to ba7c183 Compare October 22, 2026 05:31
@ugi-dev
ugi-dev merged commit 8ef9385 into main Oct 22, 2026
5 checks passed
@ugi-dev
ugi-dev deleted the docs/barrel-language-imports branch October 22, 2026 05:33
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