@cg3/equip 0.2.2 → 0.2.4
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/equip.js +6 -0
- package/package.json +3 -2
package/bin/equip.js
CHANGED
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
8
|
const { spawn } = require("child_process");
|
|
9
|
+
const path = require("path");
|
|
10
|
+
|
|
11
|
+
const EQUIP_VERSION = JSON.parse(
|
|
12
|
+
require("fs").readFileSync(path.join(__dirname, "..", "package.json"), "utf-8")
|
|
13
|
+
).version;
|
|
9
14
|
|
|
10
15
|
// ─── Tool Registry ──────────────────────────────────────────
|
|
11
16
|
|
|
@@ -42,6 +47,7 @@ const npxCmd = process.platform === "win32" ? "npx.cmd" : "npx";
|
|
|
42
47
|
const child = spawn(npxCmd, ["-y", entry.package, entry.command, ...extraArgs], {
|
|
43
48
|
stdio: "inherit",
|
|
44
49
|
shell: process.platform === "win32",
|
|
50
|
+
env: { ...process.env, EQUIP_VERSION },
|
|
45
51
|
});
|
|
46
52
|
|
|
47
53
|
child.on("close", (code) => process.exit(code || 0));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cg3/equip",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Universal MCP + behavioral rules installer for AI coding agents",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"./mcp": "./lib/mcp.js",
|
|
13
13
|
"./rules": "./lib/rules.js",
|
|
14
14
|
"./platforms": "./lib/platforms.js",
|
|
15
|
-
"./cli": "./lib/cli.js"
|
|
15
|
+
"./cli": "./lib/cli.js",
|
|
16
|
+
"./package.json": "./package.json"
|
|
16
17
|
},
|
|
17
18
|
"files": [
|
|
18
19
|
"index.js",
|