Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
bde9bde17c3edbb75d35dd1f1907e2bc9033344c
lobe-chat
/
src
/
services
下载当前目录
G
GitHub
✅ test: add unit tests for ImportService (
#10599
)
068d5d34
创建于
2025年12月5日
历史提交
文件
最后提交记录
最后更新时间
__tests__
🐛 fix(operation): isolate loading state to current active topic (#10360) * fix(operation): isolate loading state to current active topic - Modified isMainWindowAgentRuntimeRunning to only check operations in current active topic - Prevents loading state from other topics affecting the send button - Added comprehensive test case to verify topic isolation - Fixes issue where switching topics would still show loading state from previous topic * test: fix isMainWindowAgentRuntimeRunning tests to set active context - Added activeId and activeTopicId setup in test cases - Ensured operation context matches active context for proper filtering - Fixed tests to align with new getCurrentContextOperations-based implementation * fix: change activeTopicId from null to undefined in tests - Fixed TypeScript type error where null is not assignable to string | undefined - Changed all activeTopicId: null to activeTopicId: undefined * fix: check if operation's message is in current displayed messages - Changed from using getCurrentContextOperations to checking message presence - Prevents loading state from showing when switching back to default topic - Operation's context topicId is captured at creation time and doesn't update - Now checks if operation's message is in activeDisplayMessages instead * refactor * refactor to fix * try to fix stylelint ci issue * fix tests * fix tests
5 个月前
aiModel
♻️ refactor: refactor services to a more clean structure (#10050) * refactor services * clean tests * fix type
6 个月前
aiProvider
♻️ refactor: refactor services to a more clean structure (#10050) * refactor services * clean tests * fix type
6 个月前
chat
🐛 fix: update apiMode handling in ChatService to prioritize user preferences (#10487)
5 个月前
chatGroup
♻️ refactor: refactor services to a more clean structure (#10050) * refactor services * clean tests * fix type
6 个月前
document
✨ feat: Create Pages in Knowledge Base (#9895) * feat: New note entry * feat: save * feat: custom note * feat: save * feat: editor * feat: editor * feat: editor * lint: Regroup files * fix: Image border * feat: editor * feat: masonry view in chat * style: column * 🐛 fix: Fix editor in modal * fix: Mansory stuck * feat: New note view * feat: New note view * fix: New note draft * fix: New note draft * style: New sidebar * style: Remove icon * style: Add skeleton * style: button style * fix: Lint error * fix: Preview not updating * style: Collection style * fix: Cannot query other data * style: New header style * feat: Empty placeholder * style: Adjust padding * feat: Upload markdown * fix: Tab active status * style: image placeholder * fix: Cannot delete note * feat: Emoji picker * style: Move icon to leading position * style: Fix input color * fix: Icon not saved * style: leading icon * style: Adjust skelton shape * feat: Auto save * feat: Upgrade file * feat: Knowlwdge home * feat: Knowlwdge home * feat: Knowlwdge home * feat: Knowlwdge home * feat: Rename files * fix: Knowledge base not working * fix: Knowledge base home * fix: Knowledge base home * feat: Three dot menu * fix: New knowledge base modal not working * feat: Cannot use upload * fix: documents not aloding * feat: Route for document * fix: Test error * fix: Lint * fix: Type error * refac: Rename symbol * fix: Cannot save icon * fix: Add missing translations * feat: Use virtualso for the list * fix: Hover style * fix: Cannot open documents * feat: Bump Editor version * fix: Editor blur * feat: Hide preview for selected item * style: Limit max width * feat: Auto save hint * style: New doc list style * style: New header * feat: Heade tyle * style: Adjust padding * feat: Duplicate document * fix: Add missing i18n * fix: Add missing translation * fix: Test error * lint: Seperate code * fix: Style pollution * feat: Share state * fix: Word count * fix: Navigation * feat: Add heading option * fix: Add missing translation * feat: Delete confirm * feat: Collpased by default * fix: Editor hot area * fix: Add missing translation * style: Adjust file list density * fix: Remove website for now * feat: Use masonry by default * feat: Collapse switch * fix: Remove useless query * feat: Remove unused features * feat: Immeditaely create knowledge base * feat: Immedately create the document * feat: Add missing translation * feat: Open emoji pciker by default * fix: Emoji picker * feat: Rename * feat: Rename * fix: Emoji picker disappear * fix: Route flickering * feat: Refactor document * fix: Address ts error * feat: Reduce delay * feat: Document -> Page * fix: Add missing translation * fix: URL * fix: add missing translation * fix: editor blurred * fix: No skelton after successfuly deletion * fix: Filter * build: Add test * fix: Test * fix: Test coverage drop --------- Co-authored-by: canisminor1990 <i@canisminor.cc>
6 个月前
electron
🌐 chore: translate non-English comments to English in services and desktop modules (#10339) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
5 个月前
export
♻️ refactor: refactor services to a more clean structure (#10050) * refactor services * clean tests * fix type
6 个月前
file
👷 build: Update schema for incoming folder (#10217) * feat: Update schema * fix: Circular deps * feat: Add more validate * fix: Vercel build error * fix: Duplicated import * fix: Circular deps * feat: Set varchar from 30 to 255 * feat: Regenerate migration file * feat: Regenerate migration * feat: Regenerate migration
6 个月前
import
✅ test: add unit tests for ImportService (#10599) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
5 个月前
message
✨ feat: support parallel topic agent runtime (#10273) * add * refactor to support split topic running * refactor to support split topic running * support loading * fix tests * fix tests * fix tests * fix getDbMessageById
6 个月前
plugin
♻️ refactor: refactor services to a more clean structure (#10050) * refactor services * clean tests * fix type
6 个月前
session
🐛 fix: fix mcp server return image error (#10113) * support upload image * support upload image in mcp * fix tests * update * fix * improve tests * fix tests * Update route.ts
6 个月前
tableViewer
♻️ refactor: remove client service (#9991) * remove client service * remove edge client and <InitClientDB /> * fix search tests * fix app url * fix tests * fix tests * fix tests * remove InitClientDB * fix tests * fix tests
6 个月前
thread
♻️ refactor: refactor services to a more clean structure (#10050) * refactor services * clean tests * fix type
6 个月前
topic
♻️ refactor: refactor services to a more clean structure (#10050) * refactor services * clean tests * fix type
6 个月前
user
✨ feat: betterauth username signin (#10607)
5 个月前
utils
✨ feat: refactor to use agent runtime as the generation core and support branch mode (#10080) * refactor * refactor * refactor message group * wip # Conflicts: # src/store/chat/slices/aiChat/actions/generateAIChatV2.ts * refactor * refactor agent mode * fix style * refactor agent executors * finish the refactor * remove gpt-tokenizer * add metadata api * add fix * support branch * fix branch render data * fix send issue * refactor style * refactor style * refactor tests * refactor chatStore * refactor from model to model * fix tests * refactor regenerate mode * update style * fix lint * refactor * refactor * refactor * fix delete * refactor thread mode * fix basic experience * fix * fix tests * fix manual add * fix tests * fix group
6 个月前
_auth.ts
🐛 fix(operation): isolate loading state to current active topic (#10360) * fix(operation): isolate loading state to current active topic - Modified isMainWindowAgentRuntimeRunning to only check operations in current active topic - Prevents loading state from other topics affecting the send button - Added comprehensive test case to verify topic isolation - Fixes issue where switching topics would still show loading state from previous topic * test: fix isMainWindowAgentRuntimeRunning tests to set active context - Added activeId and activeTopicId setup in test cases - Ensured operation context matches active context for proper filtering - Fixed tests to align with new getCurrentContextOperations-based implementation * fix: change activeTopicId from null to undefined in tests - Fixed TypeScript type error where null is not assignable to string | undefined - Changed all activeTopicId: null to activeTopicId: undefined * fix: check if operation's message is in current displayed messages - Changed from using getCurrentContextOperations to checking message presence - Prevents loading state from showing when switching back to default topic - Operation's context topicId is captured at creation time and doesn't update - Now checks if operation's message is in activeDisplayMessages instead * refactor * refactor to fix * try to fix stylelint ci issue * fix tests * fix tests
5 个月前
_header.ts
🐛 fix(operation): isolate loading state to current active topic (#10360) * fix(operation): isolate loading state to current active topic - Modified isMainWindowAgentRuntimeRunning to only check operations in current active topic - Prevents loading state from other topics affecting the send button - Added comprehensive test case to verify topic isolation - Fixes issue where switching topics would still show loading state from previous topic * test: fix isMainWindowAgentRuntimeRunning tests to set active context - Added activeId and activeTopicId setup in test cases - Ensured operation context matches active context for proper filtering - Fixed tests to align with new getCurrentContextOperations-based implementation * fix: change activeTopicId from null to undefined in tests - Fixed TypeScript type error where null is not assignable to string | undefined - Changed all activeTopicId: null to activeTopicId: undefined * fix: check if operation's message is in current displayed messages - Changed from using getCurrentContextOperations to checking message presence - Prevents loading state from showing when switching back to default topic - Operation's context topicId is captured at creation time and doesn't update - Now checks if operation's message is in activeDisplayMessages instead * refactor * refactor to fix * try to fix stylelint ci issue * fix tests * fix tests
5 个月前
_url.ts
✨ feat:support LobeHub MarketPlace (#8841) * feat: 链接market 做基本的市场接驳功能 * feat: 重写分享助手的页面 * feat: 新增market-auth 的 oidc 方案 * feat: 增加初次agent发布链路和更agent逻辑 * feat: 增加二次添加助手时候的提示 * feat: 重新授权时候唤起新的重新授权而不是自动 token 换取 * feat: 添加market-auth-callback的 layout * feat: 调整env 中的market 引用 * fix: 解决url 双/导致的路径请求问题 * fix: fix build error * feat: 更新sitemap 的生成逻辑 * feat: 更新pglite的session meta 定义,增加 marketIdentifier * feat: 增加个人信息存储的逻辑 & 整理发布 agent 时候按钮的整体逻辑 * fix: delete 0030 * feat: add search myown in discover * feat: clean cthe code & refactor agents showpannel * feat: support assistant detail pages have unpublish & achiave hint * feat: change text render type * feat: add submit mode style fixed * fix: fixed migrations * feat: update agent publish version modal * feat: update market publish button * feat: update exmaple &summary show case * feat: add token show in publish modal * feat: add verison show tags antd version? params search * feat: add desktop market auth request way * feat: delete market-oidc second path,change all to base url * feat: change sdk & api into url const & change market api into servers * feat: change all api into /market server path * feat: change the migrations insert position * feat: support assistant origin checkout feature * feat: change the item show place * feat: add market source switch components * feat: add 'force-dynamic' in discord/detail page * feat: change the describe name * feat: styles & locals add * feat: add locals * feat: fixed market update locals * feat: update market-oidc layout * feat: delete some types * feat: support leacgcy params change * feat: change the oidc url * feat: agent detial page should have status show page * feat: add db migrations * test: update test * feat: delete database change & update i18n * fix: rollback mirgration * fix: change mirgration * fix: back snapshot * Update print statement from 'Hello' to 'Goodbye'
6 个月前
agent.ts
♻️ refactor: Refactor services code style (#5180) * ♻️ refactor: Refactor services code style * ✅ test: Fix test * 🐛 fix: Fix review problem
1 年前
aiChat.ts
✨ feat: support Group Chat, Mention, and Multi-Agent Orchestration with feature flag (#8976) * feat: implement group chat functionality * fix * update * revert pglite mock * fix: Add missing test * fix mention * fix mention * lint: Clear unused varibles * fix: type check * fix: Coverage * build: Add missing test * fix: add mention back * fix: Add missing test * fix: Add test for topic * feat: Group chat fallback style * fix: Revert unncessary files * fix: circular deps * feat: tool usage * fix: Replace debug info * feat: Update i18n * opti: Better prompr * fix claude * feat: Filter model without function calling * fix: DM reduction * lint: Address build error * fix: Test error * feat: Store model info * style: Clean up welcome messaeg * feat: Use new welcome message * fix: inbox not working * fix: inbox not working * fix: type error * feat: Optimize prompt * fix: Revert unintentional changes * lint: Remove unused code * fix: better test * fix: Use debug * refact: Move normalization postion * opti: Better prompt * opti: Better prompt * opti: Better prompt * lint: Clear console.log * fix: Update test snap * fix: test error * fix: Unexpectly test fail --------- Co-authored-by: arvinxx <arvinx@foxmail.com>
7 个月前
config.ts
♻️ refactor: remove `language_model_settings` and remove isDeprecatedEdition (#10264)
6 个月前
debug.ts
🌐 chore: translate non-English comments to English in services and desktop modules (#10339) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
5 个月前
discover.ts
✨ feat: support market cloud endpoint mcp (#10484) * feat: add market into userSettings & save the oidc token into db * feat: support market mcp endpoint to use in web * feat: add market signIn before use cloudEndpoint mcp * fix: update mcp call fc * fix: update test.ts * feat: delete client type cloud ts * feat: add auth market modal * fix: close some antd message * feat: update docs & remove the message loading in oidc
5 个月前
generation.ts
✨ feat: support AI Image (#8312) Co-authored-by: canisminor1990 <i@canisminor.cc>
10 个月前
generationBatch.ts
✨ feat: support AI Image (#8312) Co-authored-by: canisminor1990 <i@canisminor.cc>
10 个月前
generationTopic.ts
✨ feat: support AI Image (#8312) Co-authored-by: canisminor1990 <i@canisminor.cc>
10 个月前
github.ts
✨ feat: support to use pglite as client db (#4873) * ✨ feat: pglite 迁移实现 refactor modal name pin pglite@0.2.13 add serverExternalPackages for pglite fix tests update model remove migration back previous test file * 💚 build: fix build with ReactScan * clean * refactor with isDBinit * fix test
1 年前
global.ts
♻️ refactor: replace `utility-types` with `type-fest` (#8370)
10 个月前
image.ts
✨ feat: support AI Image (#8312) Co-authored-by: canisminor1990 <i@canisminor.cc>
10 个月前
knowledgeBase.ts
♻️ refactor: Refactor services code style (#5180) * ♻️ refactor: Refactor services code style * ✅ test: Fix test * 🐛 fix: Fix review problem
1 年前
marketApi.ts
✨ feat:support LobeHub MarketPlace (#8841) * feat: 链接market 做基本的市场接驳功能 * feat: 重写分享助手的页面 * feat: 新增market-auth 的 oidc 方案 * feat: 增加初次agent发布链路和更agent逻辑 * feat: 增加二次添加助手时候的提示 * feat: 重新授权时候唤起新的重新授权而不是自动 token 换取 * feat: 添加market-auth-callback的 layout * feat: 调整env 中的market 引用 * fix: 解决url 双/导致的路径请求问题 * fix: fix build error * feat: 更新sitemap 的生成逻辑 * feat: 更新pglite的session meta 定义,增加 marketIdentifier * feat: 增加个人信息存储的逻辑 & 整理发布 agent 时候按钮的整体逻辑 * fix: delete 0030 * feat: add search myown in discover * feat: clean cthe code & refactor agents showpannel * feat: support assistant detail pages have unpublish & achiave hint * feat: change text render type * feat: add submit mode style fixed * fix: fixed migrations * feat: update agent publish version modal * feat: update market publish button * feat: update exmaple &summary show case * feat: add token show in publish modal * feat: add verison show tags antd version? params search * feat: add desktop market auth request way * feat: delete market-oidc second path,change all to base url * feat: change sdk & api into url const & change market api into servers * feat: change all api into /market server path * feat: change the migrations insert position * feat: support assistant origin checkout feature * feat: change the item show place * feat: add market source switch components * feat: add 'force-dynamic' in discord/detail page * feat: change the describe name * feat: styles & locals add * feat: add locals * feat: fixed market update locals * feat: update market-oidc layout * feat: delete some types * feat: support leacgcy params change * feat: change the oidc url * feat: agent detial page should have status show page * feat: add db migrations * test: update test * feat: delete database change & update i18n * fix: rollback mirgration * fix: change mirgration * fix: back snapshot * Update print statement from 'Hello' to 'Goodbye'
6 个月前
mcp.test.ts
♻️ refactor: refactor mcp context use and support continueGeneration (#10096) * refactor plugin actions * refactor mcp invoke * refactor MCPType display * support Continue Generate * support continueGeneration message * fix tests * fix tests * fix parentId issue * fix duration is NaN * improve mcp render * 🐛 fix(context-engine): preserve reasoning field in MessageCleanupProcessor The MessageCleanupProcessor was removing the reasoning field from assistant messages during cleanup. This fix ensures that reasoning field is preserved along with other necessary fields like tool_calls. Changes: - Added reasoning field preservation in MessageCleanup.ts - Added test case to verify reasoning field is correctly preserved 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix maxSteps * ✅ test: update test expectation for reasoning field preservation Updated the test to expect the reasoning field to be preserved in the output, which is now the correct behavior after fixing MessageCleanupProcessor. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
6 个月前
mcp.ts
✨ feat: support market cloud endpoint mcp (#10484) * feat: add market into userSettings & save the oidc token into db * feat: support market mcp endpoint to use in web * feat: add market signIn before use cloudEndpoint mcp * fix: update mcp call fc * fix: update test.ts * feat: delete client type cloud ts * feat: add auth market modal * fix: close some antd message * feat: update docs & remove the message loading in oidc
5 个月前
models.ts
🌐 chore: translate non-English comments to English in services and desktop modules (#10339) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
5 个月前
python.ts
✨ feat: add builtin Python plugin (#8873) * feat: 初步完成 * chore: type * feat: 图片功能 * feat: 文件下载功能 * refactor: 简化代码 * chore: 清理代码 * chore: clean * chore: 清理代码 * chore: 清理代码 * chore: 小改进 * fix: 上传完成前图片无法显示 * refactor: 增加 python-interpreter package * chore: 清理 * feat: 传入上下文中的文件 * chore: 小优化 * chore: 中文字体 * chore: clean * fix: 服务端部署 * fix: 重复文件检查 * test: 增加 interpreter.test.ts * test: add worker.test.ts * style: fix import * test: fix * style: fix import * style: move env file to envs * style: 限制代码框高度 * style: 重命名 * misc: 小修小补 * refactor: 重命名为 code-interpreter --------- Co-authored-by: Arvin Xu <arvinx@foxmail.com>
7 个月前
rag.ts
✨ feat: refactor to use kb search tool (#10340) * fix all render * add kb builtin tool * 完成知识库搜索功能 * 初步完成知识库读取实现 * finish display * fix * fix * fix * fix server api mode * update i18n
5 个月前
ragEval.ts
♻️ refactor: move database to packages (#8874) * move db * refactor db import * refactor eval types * fix tests * fix tests * fix tests * fix db migration issues * fix docker issue * fix tests * update alias * fix tests * update db test for client and server * refactor db * update codecov * update codecov * update codecov * add docker pr comments
8 个月前
search.ts
✨ feat: support user abort in the agent runtime (#10289) * use operation * add integration tests * refactor context to operation id * refactor to support cancel ai streaming * refactor to support to cancel tools calling * add finish type * 初步实现 agent runtime 的中断逻辑 * refactor agent runtime config * debug cancel * 完成 tool operation 调用重构 * add tests * fix tests * fix tests * refactor state to isAgentRuntimeRunning * fix loading state * add more tests * ✅ test: add test for human_abort extractAbortInfo path - Add test for unified abort check with human_abort phase - Covers extractAbortInfo lines 140-145 - Improves GeneralChatAgent coverage to 100% statements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix * auto clean up * 🐛 fix: prevent showing success status when tool execution is cancelled - Add abort check after tool execution completes - Skip completion and success logging if operation was cancelled during execution - Prevents race condition where success message shows before abort status - Add test for tool execution cancelled during execution scenario 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * fix thread send --------- Co-authored-by: Claude <noreply@anthropic.com>
6 个月前
share.ts
♻️ refactor: remove base path (#9015) * clean * remove * fix * move config to envs * remove envs
8 个月前
textToImage.ts
♻️ refactor: move the ModelProvider to model-bank (#9374) * move the ModelProvider to model-bank * fix tests * fix deps * clean deps
7 个月前
tool.ts
✨ feat: Add MCP marketplace and mcp plugin one-click installation in desktop (#8334) * move plugin Component * ✨ feat(wip): Add MCP Discover Market * ✅ test: Fix test * ✅ test: Fix test * 🐛 fix: Fix build * 🐛 fix: Fix build * 💄 style: update plugin store * 💄 style: Update plugin store * ✨ feat: Update cache control headers and optimize Next.js config for performance * 💄 style: Update discover markdown * 💄 style: Update scroes step * 优化 list 细节 * 优化 list 细节 * 优化 list 细节 * 完成基础 mcp 安装实现 * 完成安装上报 * 新增安装过程 * fix * 优化插件设置页面配置 * 💄 style: update official icon * 完善安装错误状态 * 支持取消安装 * fix types * fix types * 完成系统依赖检查流程 * 完成系统依赖安装流程上报 * try to fix suspense * try to fix suspense * try to fix suspense * try to fix tests * upgrade electron * fix suspense * fix tool name issue * fix test * add i18n * fix tool call * ✅ test: fix tests * move * fix tests * refactor plugin install store * improve old plugin install * fix * fix header link * fix plugin detail * fix oldPlugin detail * fix tests * update i18n * fix i18n * 💄 style: improve style * add debug log * fix link * improve * fix link * 🚚 refactor: refactor the market runtime to nodejs * 移除 props.searchParams 调用 * ✅ test: fix tests * 尝试静态化 discover page * ♻️ refactor: refactor config to nodejs runtime * fix min width * 修正自定义插件的编辑展示区域 * fix i18n * 调整部分组件目录结构 * 完善 MCP 市场安装流程 * 完善安装上报事件 * test: fix test * ✨ feat: 实现 m2m oauth 请求 * ✨ feat: 完善 m2m 注册链路 * ✨ feat: 完善 m2m 注册链路 * 🐛 fix: 优化 debug 日志输出问题 * ✨ feat: 支持 call 上报 * 💄 style: 使用更大的版本 * 🐛 fix: tools calling report * 🐛 fix: try to fix call report * 🐛 fix: try to use expires cookies * 🐛 fix: fix cookies expires issue * test: fix customPluginInfo report * 🐛 fix: fix connection issue * 🐛 fix: fix platform report * 🐛 fix: fix version issue --------- Co-authored-by: canisminor1990 <i@canisminor.cc>
10 个月前
trace.ts
♻️ refactor: Refactor services code style (#5180) * ♻️ refactor: Refactor services code style * ✅ test: Fix test * 🐛 fix: Fix review problem
1 年前
upload.ts
✅ test: fix upload service tests after removing ClientS3 (#10220) - Removed references to deleted clientS3Storage - Updated tests to match current server/desktop upload flow - Fixed XMLHttpRequest mocking for server upload tests - Updated filename assertions to match UUID generation behavior 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
6 个月前
usage.ts
💄 Style: RFC-113 Provider Model Usage Statistics (#8453) * :lipstick: style: migrate panel UI * :globe_with_meridians: i18n: add i18n slots * :white_check_mark: lint: fix * :globe_with_meridians: i18n: add translations * :white_check_mark: test: add usage tests * :memo: docs: update annotations * :bug: fix: always enable * :bug: fix: dayjs init error * :bug: fix: no attr len * :bug: fix: slice err
6 个月前