@cg3/equip 0.2.3 → 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.
Files changed (2) hide show
  1. package/bin/equip.js +6 -0
  2. package/package.json +1 -1
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",
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": {