From 372f304025e059c9124686b6b4e6199be8b3aeee Mon Sep 17 00:00:00 2001 From: jtl959 Date: Thu, 20 Aug 2026 11:31:33 +0800 Subject: [PATCH] fix --- agents/syncAgentRule.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/syncAgentRule.mjs b/agents/syncAgentRule.mjs index 2c92716..96fa28a 100644 --- a/agents/syncAgentRule.mjs +++ b/agents/syncAgentRule.mjs @@ -2,7 +2,7 @@ // 到本项目根目录(覆盖现有文件)。 // 使用 Node 内置 fetch,跨 Windows / Linux / macOS 平台,无需额外工具。 -// 调用:在 package.json 的 scripts 里添加 "syncAgents": "node -e \"fetch('https://git.tic.cc/opx/sysconfig/raw/branch/main/agents/syncAgents.mjs').then(r=>{if(!r.ok)throw new Error('HTTP '+r.status);return r.text()}).then(async t=>{await import('data:text/javascript;base64,'+Buffer.from(t).toString('base64'))})\"" +// 调用:在 package.json 的 scripts 里添加 "syncAgentRule": "node -e \"fetch('https://git.tic.cc/opx/sysconfig/raw/branch/main/agents/syncAgentRule.mjs').then(r=>{if(!r.ok)throw new Error('HTTP '+r.status);return r.text()}).then(async t=>{await import('data:text/javascript;base64,'+Buffer.from(t).toString('base64'))})\"" import { writeFile } from 'node:fs/promises'; const BASE_URL = 'https://git.tic.cc/opx/sysconfig/raw/branch/main/agents/';