|
|
@@ -288,18 +288,6 @@ public class AgentService extends ServiceImpl<AgentMapper, AgentEntity> {
|
|
|
return b.build();
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 首次使用时为隔离工作目录补脚手架(AGENTS.md / skills / memory 等标准结构)。
|
|
|
- * 幂等:已存在的文件不覆盖。
|
|
|
- */
|
|
|
- private static void scaffoldWorkspace(Path workspace, String sysPrompt) {
|
|
|
- try {
|
|
|
- WorkspaceScaffolder.scaffold(workspace, null, sysPrompt);
|
|
|
- } catch (java.io.IOException e) {
|
|
|
- log.warn("工作空间脚手架失败: {}, error={}", workspace, e.getMessage());
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 解析 {@code agent.skill_repositories_json}(与 {@code agentscope.json} 的 skillRepositories 同构)。
|
|
|
* 坏 JSON 静默降级为 null(等同「没配技能仓库」)。
|