feat: 添加 markdown 导出支持#336
Conversation
|
|
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR adds markdown export support to the ChangesMarkdown Export
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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. 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 `@packages/chat-sdk/package.json`:
- Line 9: The package.json exports include a public subpath "./markdown"
pointing to "./dist/lib-source/src/exports/markdown/index.js" but there is no
corresponding types mapping, so TypeScript consumers of `@coze/chat-sdk/markdown`
will lack typings; add a types entry for "./markdown" mirroring the pattern used
by "./webJs" and "./markdownJs" (e.g., map "./markdown" to the compiled d.ts
path under exports.types and/or add an entry in typesVersions pointing
"./markdown" to the appropriate source .d.ts), ensuring the symbol "./markdown"
appears in both exports.types (or exports["./markdown"].types) and typesVersions
the same way as "./webJs" and "./markdownJs".
🪄 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: defaults
Review profile: CHILL
Plan: Pro
Run ID: d7bf4ea3-de34-41f7-8cbc-957fd9c664da
📒 Files selected for processing (2)
common/changes/@coze/chat-sdk/feat-chat-sdk-add-markdown-export_2026-05-15-07-40.jsonpackages/chat-sdk/package.json
926e67b to
a863525
Compare
增加小程序专用 markdown 导出,在直接使用 markdown 场景下,优化约 120kb 大小
Summary by CodeRabbit