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
+6 -2
View File
@@ -7,6 +7,7 @@ import {
AgentSessionInfo,
AgentInfo,
AgentType,
DEFAULT_DENIED_TOOLS,
} from '@shumai/dtos'
import {
paginateQuery,
@@ -208,7 +209,7 @@ export class AgentService {
model: modelId || '',
thinkingLevel,
systemPrompt,
deniedTools: deniedTools || [],
deniedTools: deniedTools ?? [...DEFAULT_DENIED_TOOLS],
avatarPreset,
}
@@ -351,7 +352,10 @@ export class AgentService {
model: modelId || '',
thinkingLevel,
systemPrompt,
deniedTools: deniedTools || [],
deniedTools:
deniedTools !== undefined
? deniedTools
: (currentConfig.deniedTools ?? [...DEFAULT_DENIED_TOOLS]),
avatarPreset: newAvatarPreset,
}