agentscope-ai / agentscope-ai/agentscope-java

[Bug]:MarketplaceStager filesystem 抽象层 工作区下公共技能无法使用

Aperta
#2,181 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area/harness bug
Lingua principale
Java
Stelle
5.6k
Fork
1.3k
Merge medio
4g 12h
PR unite (30g)
77

Descrizione

HarnessAgent智能体构建的时候
工作区
/workspace

/workspace/skills/ 公共技能
/workspace/userid/skills 个人技能
IsolationScope.USER

公共技能会生成一个.skill-cache

/workspace/.skill-cache

当使用技能的时候,读取技能下的某个文件,不是SKILL.MD文件,是其他的文件
比如技能doc的 /workspace/.skills-cache/filesystem-workspace_skills/docx/docx-js.md

进入到FileSystemTool会被norm ReadResult r = abstractFilesystem.read(runtimeContext, norm(path), offset, limit);
norm 后路径变为 .skills-cache/filesystem-workspace_skills/docx/docx-js.md
然后进入OverlayFilesystem upper.exists(runtimeContext, path)
最后走的还是LocalFileSystem
return Files.exists(resolvePath(runtimeContext, path));
String effectiveKey = applyNamespacePrefix(rc, key);又会拼接namespacemanager的userId
resolvePath(runtimeContext, path)的ROOTED模式 再拼接工作区
最后得到地址 /workspace/USERID/.skills-cache/filesystem-workspace_skills/docx/docx-js.md
完全不是一个路径,我不懂这一块的逻辑是怎么串的,怎么使用公共技能,大家都能跑通嘛,是我使用的问题嘛?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.