@d5render/cli 0.1.68 → 0.1.70
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 +5 -2
- package/package.json +1 -1
package/bin/d5cli
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { argv, env, platform } from "node:process";
|
|
3
3
|
import { execSync, spawn } from "node:child_process";
|
|
4
|
+
import { createHash } from "node:crypto";
|
|
4
5
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
|
|
5
6
|
import { dirname, join } from "node:path";
|
|
6
7
|
import { fileURLToPath } from "node:url";
|
|
7
|
-
import { createHash } from "node:crypto";
|
|
8
8
|
|
|
9
9
|
//#region package.json
|
|
10
10
|
var name$1 = "@d5render/cli";
|
|
11
|
+
var version = "0.1.70";
|
|
11
12
|
|
|
12
13
|
//#endregion
|
|
13
14
|
//#region packages/env.ts
|
|
@@ -124,6 +125,7 @@ async function sendding(title, text) {
|
|
|
124
125
|
//#endregion
|
|
125
126
|
//#region review/helper.ts
|
|
126
127
|
const NAME = name$1.replaceAll("/", "_");
|
|
128
|
+
const VERSION = version;
|
|
127
129
|
const TEMP = join(env.CI_PROJECT_DIR || "", `../../.${NAME}`);
|
|
128
130
|
const common_review_prompt = `Load code-review skills, then call the mcp tool '${name}-${getHash}' to load code-review commits.
|
|
129
131
|
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}`;
|
|
@@ -145,7 +147,7 @@ function deploySkills(SKILLS_DIR = ".copilot/skills") {
|
|
|
145
147
|
if (!HOME) throw new Error("cannot find `USERPROFILE` directory");
|
|
146
148
|
const dir = join(HOME, `${SKILLS_DIR}/code-review`);
|
|
147
149
|
mkdirSync(dir, { recursive: true });
|
|
148
|
-
console.log("deploy code-review skills...");
|
|
150
|
+
console.log("deploy code-review skills..." + VERSION);
|
|
149
151
|
const skillRoot = join(RUNTIME_CWD, ".skills/code-review");
|
|
150
152
|
readdirSync(skillRoot).forEach((file) => copyFileSync(join(skillRoot, file), join(dir, file)));
|
|
151
153
|
const instructionsRoot = join(RUNTIME_CWD, ".github/instructions");
|
|
@@ -314,6 +316,7 @@ async function cli() {
|
|
|
314
316
|
const httpsProxy = env.HTTPS_PROXY || env.https_proxy || "";
|
|
315
317
|
if (httpProxy) env.HTTP_PROXY = httpProxy;
|
|
316
318
|
if (httpsProxy) env.HTTPS_PROXY = httpsProxy;
|
|
319
|
+
console.log("@d5render/cli version:", VERSION);
|
|
317
320
|
const child = spawn(bind, [
|
|
318
321
|
...tools,
|
|
319
322
|
"-p",
|