mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 21:44:27 +00:00
feat(agent): add asset management tools and CLI commands (#387)
* feat(agent): add asset management tools and CLI commands * fix(core): resolve code review findings for reparenting cycles, agent deniedTools update, and CLI folder delete
This commit is contained in:
@@ -307,7 +307,14 @@ export const useChatbotStore = create<ChatbotState>((set) => ({
|
||||
if (
|
||||
entryObj.role === 'toolResult' &&
|
||||
typeof entryObj.toolName === 'string' &&
|
||||
['create_file', 'create_folder', 'create_version'].includes(entryObj.toolName) &&
|
||||
[
|
||||
'create_file',
|
||||
'create_folder',
|
||||
'create_version',
|
||||
'rename_asset',
|
||||
'move_assets',
|
||||
'delete_asset',
|
||||
].includes(entryObj.toolName) &&
|
||||
!entryObj.isError
|
||||
) {
|
||||
onAssetMutation?.()
|
||||
|
||||
Reference in New Issue
Block a user