mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-11 03:13:24 +00:00
fix(tools): use_skill inlines content when read_file isn't granted (#1547)
* feat(store): add context helper for per-iteration tool allowlist * feat(pipeline): surface resolved tool allowlist to tool dispatch via context * fix(tools): use_skill inlines content when read_file isn't granted Fixes #1477 --------- Co-authored-by: isaacgao4396 <gaoyuan4396@gmail.com>
This commit is contained in:
1 parent
e0792f56e0
commit
169e0bafaf
6 files changed
+179
-7
No files matched your search
@@ -579,7 +579,7 @@ func setupSkillsSystem(
|
||||
skillsLoader := skills.NewLoader(workspace, globalSkillsDir, builtinSkillsDir)
|
||||
skillSearchTool := tools.NewSkillSearchTool(skillsLoader)
|
||||
toolsReg.Register(skillSearchTool)
|
||||
toolsReg.Register(tools.NewUseSkillTool())
|
||||
toolsReg.Register(tools.NewUseSkillTool(skillsLoader))
|
||||
slog.Info("skill_search tool registered", "skills", len(skillsLoader.ListSkills(context.Background())))
|
||||
|
||||
// Wire skills-store directory into filesystem loader so agents
|
||||
|
||||
Reference in new issue
Block a user