From 2581f950d14c5c7dcd16fb3b8db00a4578346eff Mon Sep 17 00:00:00 2001 From: QQ Date: Wed, 11 Nov 2026 23:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20lib/skill-admin.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/skill-admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/skill-admin.js b/lib/skill-admin.js index 9076c27..c4f707c 100644 --- a/lib/skill-admin.js +++ b/lib/skill-admin.js @@ -202,7 +202,7 @@ export class SkillAdmin { if (!/^(https:\/\/|file:\/\/)/.test(url) || /[\s"'`]/.test(url) || url.length > 512) { fail('invalid_url', '只接受 https:// 或 file:// 的 git 仓库地址。'); } - const scratch = join(dshHome(), `.cloud-memory-clone-${process.pid}-${Date.now().toString(36)}`); + const scratch = join(dshHome(), `.dsh-brain-clone-${process.pid}-${Date.now().toString(36)}`); try { await new Promise((resolvePromise, rejectPromise) => { execFile('git', ['clone', '--depth', '1', '--no-tags', '--', url, scratch], { timeout: 120_000, env: { ...process.env, GIT_TERMINAL_PROMPT: '0' }, maxBuffer: 4 * 1024 * 1024 }, (error) => (error ? rejectPromise(error) : resolvePromise()));