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:
Yiling-J
2026-09-06 17:15:58 +08:00
committed by GitHub
parent b087bf73ae
commit 8c1e59d131
28 changed files with 1300 additions and 10 deletions
+8 -1
View File
@@ -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?.()