@d5render/cli 0.1.65 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/d5cli +2 -1
- package/package.json +1 -1
package/bin/d5cli
CHANGED
|
@@ -4,6 +4,7 @@ import { execSync, spawn } from "node:child_process";
|
|
|
4
4
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
|
+
import { createHash } from "node:crypto";
|
|
7
8
|
|
|
8
9
|
//#region package.json
|
|
9
10
|
var name$1 = "@d5render/cli";
|
|
@@ -128,7 +129,7 @@ const common_review_prompt = `Load code-review skills, then call the mcp tool '$
|
|
|
128
129
|
Then use chinese(中文) to call the mcp tool '${name}-${report}', only main agent can call the tool '${name}-${report}', **prevent** subagent from calling tool '${name}-${report}`;
|
|
129
130
|
async function changelog() {
|
|
130
131
|
const changelog = readFileSync(join(RUNTIME_CWD, "README.md"), "utf8");
|
|
131
|
-
const cachepath = join(TEMP, "CHANGELOG_" + (env.CI_RUNNER_ID
|
|
132
|
+
const cachepath = join(TEMP, "CHANGELOG_" + createHash("md5").update(env.DINGTALK_WEBHOOK || env.CI_RUNNER_ID || env.CI_PROJECT_ID || "").digest("hex"));
|
|
132
133
|
if (changelog === (existsSync(cachepath) ? readFileSync(cachepath, "utf8") : "")) return;
|
|
133
134
|
if (!existsSync(TEMP)) mkdirSync(TEMP, { recursive: true });
|
|
134
135
|
writeFileSync(cachepath, changelog, "utf8");
|