Skip to content

Fix theorem-chat-register Next webpack imports - #194

Merged
Travis-Gilbert merged 1 commit into
mainfrom
fix/theorem-chat-register-imports
Aug 5, 2026
Merged

Fix theorem-chat-register Next webpack imports#194
Travis-Gilbert merged 1 commit into
mainfrom
fix/theorem-chat-register-imports

Conversation

@Travis-Gilbert

Copy link
Copy Markdown
Owner

Summary

  • Console deploy 8383fb37 failed: webpack could not resolve ./register-impl.js style imports from @commonplace/theorem-chat-register.
  • Align with other workspace packages: extensionless relative imports.

Test plan

  • pnpm --filter @commonplace/theorem-chat-register test
  • Console Railway build SUCCESS
  • node scripts/doctor.mjs /chat green

Drop extensionful relative imports so the console Railway build can
transpile the package the same way theorem-acp and model-canvas do.
Copilot AI lite review requested due to automatic review settings August 5, 2026 23:28
@Travis-Gilbert
Travis-Gilbert merged commit 1e65fe5 into main Aug 5, 2026
@Travis-Gilbert
Travis-Gilbert deleted the fix/theorem-chat-register-imports branch August 5, 2026 23:28
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Travis-Gilbert, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 362bd35e-c2b0-4dd3-9e42-d86c3aa81287

📥 Commits

Reviewing files that changed from the base of the PR and between 0fba892 and e0068dd.

📒 Files selected for processing (7)
  • packages/theorem-chat-register/src/TheoremChatRegister.tsx
  • packages/theorem-chat-register/src/http-stream-transport.ts
  • packages/theorem-chat-register/src/index.ts
  • packages/theorem-chat-register/src/session.test.ts
  • packages/theorem-chat-register/src/session.ts
  • packages/theorem-chat-register/src/webview-html.ts
  • packages/theorem-chat-register/tsconfig.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes a Console/Next.js webpack resolution failure when consuming @commonplace/theorem-chat-register by removing explicit .js suffixes from the package’s internal relative imports (aligning with other workspace packages’ extensionless import style).

Changes:

  • Replaced ./*.js relative imports with extensionless ./* imports across the package.
  • Updated the package barrel (src/index.ts) to use extensionless re-exports (including removing the explicit .tsx suffix).
  • Adjusted TypeScript compiler options in tsconfig.json (removed verbatimModuleSyntax; see review comment).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/theorem-chat-register/tsconfig.json Compiler option tweak related to module syntax handling.
packages/theorem-chat-register/src/webview-html.ts Extensionless import for REGISTER_IMPL.
packages/theorem-chat-register/src/TheoremChatRegister.tsx Extensionless imports for internal modules/types.
packages/theorem-chat-register/src/session.ts Extensionless type import for transport.
packages/theorem-chat-register/src/session.test.ts Updated test imports to match new extensionless paths.
packages/theorem-chat-register/src/index.ts Extensionless barrel exports for all submodules.
packages/theorem-chat-register/src/http-stream-transport.ts Extensionless type import for transport.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 8 to 12
"strict": true,
"skipLibCheck": true,
"noEmit": true,
"verbatimModuleSyntax": true,
"types": ["vitest/globals"]
},
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.

2 participants