Skip to content

Commit c62b34f

Browse files
author
linyuan.yang
committed
log
1 parent e2482e6 commit c62b34f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/scorpio.ai/src/Skills/SkillService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ export class SkillService implements ISkillService {
166166
}
167167

168168
new UsageTracker(skill.path).recordUse();
169-
const { stdout, stderr } = await execAsync(command, { cwd: path.dirname(fullPath), env: process.env, timeout: 60000, maxBuffer: 10 * 1024 * 1024 });
169+
const cwd = path.dirname(fullPath);
170+
this.logger?.info(`执行 skill 脚本 ${skillName}/${scriptPath} cwd=${cwd}`);
171+
const { stdout, stderr } = await execAsync(command, { cwd, env: process.env, timeout: 60000, maxBuffer: 10 * 1024 * 1024 });
170172

171173
const result = [];
172174
if (stdout.trim()) result.push(createTextContent(stdout.trim()));

0 commit comments

Comments
 (0)