core
core copied to clipboard
refactor: update the references about mana in the notebook
Types
- [ ] 🎉 New Features
- [ ] 🐛 Bug Fixes
- [ ] 📚 Documentation Changes
- [ ] 💄 Code Style Changes
- [ ] 💄 Style Changes
- [ ] 🪚 Refactors
- [ ] 🚀 Performance Improvements
- [ ] 🏗️ Build System
- [ ] ⏱ Tests
- [ ] 🧹 Chores
- [ ] Other Changes
Background or solution
Changelog
Summary by CodeRabbit
- Chores
- 升级了部分依赖包的版本,并移除了一项依赖。
- 统一调整了多个功能模块的依赖导入来源,但未影响功能或界面。
- 优化了部分代码格式和导入顺序,未影响用户体验。
/next
Walkthrough
本次变更将所有 @difizen/mana-app 相关依赖及导入,统一替换为 @difizen/libro-common/app,并移除 @difizen/mana-app 依赖。同时,更新了所有 @difizen/libro-* 相关依赖的版本号至 1.0.2。代码逻辑和公开接口无其他变动,仅涉及依赖和导入路径调整。
Changes
| 文件/文件组 | 变更摘要 |
|---|---|
| packages/notebook/package.json | 升级所有 @difizen/libro-* 依赖至 1.0.2,移除 @difizen/mana-app 依赖。 |
| packages/notebook/src/browser/**/*.ts(x) (包括 kernel-panel-view, libro-keybind-contribution, libro-preview.view, libro.command, libro.contribution, libro.service, libro.view, diff-view 相关、editor 相关、libro-opensumi-content-contribution, libro-opensumi-save-content-contribution, mana-module, index.ts, notebook.service, toc.panel, variables 相关等) |
所有原本从 @difizen/mana-app 导入的内容,统一改为从 @difizen/libro-common/app 导入。部分文件还调整了 import 顺序或格式,无实质性逻辑变更。 |
| packages/notebook/src/browser/libro/editor/module.ts | ManaModule 导入路径变更,factory 函数缩进微调,无逻辑变更。 |
| packages/notebook/src/browser/libro/editor/opensumi-editor.ts | 调整 import 顺序,EditorStateFactory 相关 import 位置变化。 |
| packages/notebook/src/browser/libro/libro-opensumi-save-content-contribution.ts | import 路径变更,部分语句格式化(如三元表达式加括号、if 块换行),无逻辑变更。 |
| 其它所有受影响文件 | 仅 import 路径变更,无其它代码或接口调整。 |
Sequence Diagram(s)
本次变更仅涉及依赖和导入路径调整,无新增功能或控制流变更,因此无需生成时序图。
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.
🔧 ESLint
If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.
yarn install v1.22.22 [1/4] Resolving packages... warning [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options. warning eslint > @humanwhocodes/[email protected]: Use @eslint/config-array instead warning eslint > @humanwhocodes/config-array > @humanwhocodes/[email protected]: Use @eslint/object-schema instead warning eslint > file-entry-cache > flat-cache > [email protected]: Rimraf versions prior to v4 are no longer supported warning eslint > file-entry-cache > flat-cache > rimraf > [email protected]: Glob versions prior to v9 are no longer supported warning eslint > file-entry-cache > flat-cache > rimraf > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning eslint-import-resolver-typescript > [email protected]: Glob versions prior to v9 are no longer supported error Couldn't find any versions for "@opensumi/ide-dev-tool" that matches "workspace:*" info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[!TIP]
⚡️ Faster reviews with caching
- CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure
Review - Disable Cacheat either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off theData Retentionsetting under your Organization Settings.Enjoy the performance boost—your workflow just got faster.
✨ Finishing Touches
- [ ] 📝 Generate Docstrings
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.
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Generate unit testing code for this file.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai generate unit testing code for this file.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and generate unit testing code.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Support
Need help? Create a ticket on our support page for assistance with any issues or questions.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR.@coderabbitai generate sequence diagramto generate a sequence diagram of the changes in this PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
Walkthrough
本次变更将所有原本从 @difizen/mana-app 导入的依赖统一替换为从 @difizen/libro-common/app 导入,并在 package.json 中移除了对 @difizen/mana-app 的依赖,同时升级了部分 @difizen/libro-* 相关依赖的版本。代码逻辑和功能未发生实质性变动,仅为依赖和导入路径的调整。
Changes
| 文件/路径分组 | 变更摘要 |
|---|---|
| packages/notebook/package.json | 升级多个 @difizen/libro-* 依赖版本,移除 @difizen/mana-app 依赖。 |
| packages/notebook/src/browser/kernel-panel/kernel-panel-view.tsx | Container 导入路径从 @difizen/mana-app 改为 @difizen/libro-common/app,React 导入合并。 |
| packages/notebook/src/browser/libro-keybind-contribution.ts | Container 和 CommandRegistry 导入路径调整。 |
| packages/notebook/src/browser/libro-preview.view.tsx | Container、URI、ViewRender 导入路径调整。 |
| packages/notebook/src/browser/libro.command.ts | Container 导入路径调整。 |
| packages/notebook/src/browser/libro.contribution.tsx | 多个 Mana 相关组件导入路径调整。 |
| packages/notebook/src/browser/libro.service.ts | Container、URI、getOrigin 导入路径调整。 |
| packages/notebook/src/browser/libro.view.tsx | 多个 Mana 相关组件导入路径调整。 |
| packages/notebook/src/browser/libro/diff-view/components/... | useInject、Container 导入路径调整。 |
| packages/notebook/src/browser/libro/diff-view/libro-diff-color-registry.ts | 颜色相关类型和装饰器导入路径调整。 |
| packages/notebook/src/browser/libro/diff-view/libro-diff-component.tsx | ViewManager、ViewRender、useInject 导入路径调整。 |
| packages/notebook/src/browser/libro/diff-view/libro-diff-protocol.ts | 类型 URI 和 View 导入路径调整。 |
| packages/notebook/src/browser/libro/diff-view/libro-diff-view.tsx | 多个视图相关组件与装饰器导入路径调整,部分导入顺序优化。 |
| packages/notebook/src/browser/libro/diff-view/libro-version-manager.ts | ViewManager、getOrigin、inject、singleton 导入路径调整。 |
| packages/notebook/src/browser/libro/diff-view/libro-version-view.tsx | 多个视图相关组件与装饰器导入路径调整,部分导入顺序优化。 |
| packages/notebook/src/browser/libro/diff-view/module.ts | ManaModule 导入路径调整。 |
| packages/notebook/src/browser/libro/editor/editor-contribution.ts | inject、singleton 装饰器导入路径调整。 |
| packages/notebook/src/browser/libro/editor/keybind-handler.ts | 多个 Mana 相关组件导入路径调整。 |
| packages/notebook/src/browser/libro/editor/module.ts | ManaModule 导入路径调整,工厂函数缩进优化。 |
| packages/notebook/src/browser/libro/editor/opensumi-editor.ts | Mana 相关组件导入路径调整,部分导入顺序优化。 |
| packages/notebook/src/browser/libro/libro-opensumi-content-contribution.ts | getOrigin、inject、singleton 导入路径调整。 |
| packages/notebook/src/browser/libro/libro-opensumi-save-content-contribution.ts | 多个 Mana 相关组件导入路径调整,部分方法格式优化,无实质逻辑更改。 |
| packages/notebook/src/browser/libro/mana-module.ts | ManaModule 导入路径调整。 |
| packages/notebook/src/browser/mana/index.ts | GlobalContainer、Syringe 导入路径调整。 |
| packages/notebook/src/browser/notebook.service.ts | Container、getOrigin 导入路径调整。 |
| packages/notebook/src/browser/toc/toc.panel.tsx | Container、ViewManager、ViewRender 导入路径调整。 |
| packages/notebook/src/browser/variables/libro-variable-color-registry.ts | 颜色相关类型和装饰器导入路径调整。 |
| packages/notebook/src/browser/variables/libro-variable-module.ts | ManaModule 导入路径调整。 |
| packages/notebook/src/browser/variables/variable-panel.tsx | Container、ViewManager、ViewRender 导入路径调整。 |
| packages/notebook/src/browser/variables/variable-view.tsx | 多个视图相关组件与装饰器导入路径调整,部分导入顺序优化。 |
Sequence Diagram(s)
本次变更仅涉及依赖导入路径及依赖版本调整,未涉及控制流程或功能的新增/修改,因此无需生成时序图。
Suggested reviewers
- zhanba
- hacke2
- erha19
- Aaaaash
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.
🔧 ESLint
If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.
yarn install v1.22.22 [1/4] Resolving packages... warning [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options. warning eslint > @humanwhocodes/[email protected]: Use @eslint/config-array instead warning eslint > @humanwhocodes/config-array > @humanwhocodes/[email protected]: Use @eslint/object-schema instead warning eslint > file-entry-cache > flat-cache > [email protected]: Rimraf versions prior to v4 are no longer supported warning eslint > file-entry-cache > flat-cache > rimraf > [email protected]: Glob versions prior to v9 are no longer supported warning eslint > file-entry-cache > flat-cache > rimraf > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning eslint-import-resolver-typescript > [email protected]: Glob versions prior to v9 are no longer supported error Couldn't find any versions for "@opensumi/ide-dev-tool" that matches "workspace:*" info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[!TIP]
⚡️ Faster reviews with caching
- CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure
Review - Disable Cacheat either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off theData Retentionsetting under your Organization Settings.Enjoy the performance boost—your workflow just got faster.
✨ Finishing Touches
- [ ] 📝 Generate Docstrings
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.
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Generate unit testing code for this file.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai generate unit testing code for this file.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and generate unit testing code.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Support
Need help? Create a ticket on our support page for assistance with any issues or questions.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR.@coderabbitai generate sequence diagramto generate a sequence diagram of the changes in this PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
/next
🎉 PR Next publish successful!
3.8.3-next-1747044228.0
此问题已被自动标记为已过时,如果没有进一步的活动,它将被关闭。谢谢您的贡献。 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.