agentscope-ai / agentscope-ai/agentscope-java
[Bug]:MarketplaceStager filesystem 抽象层 工作区下公共技能无法使用
- Langage dominant
- Java
- Étoiles
- 5.6k
- Forks
- 1.3k
- Merge moyen
- 4 j 12 h
- PR mergées (30 j)
- 77
Description
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
完全不是一个路径,我不懂这一块的逻辑是怎么串的,怎么使用公共技能,大家都能跑通嘛,是我使用的问题嘛?
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.