gm-skill 2.0.1917 → 2.0.1918

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.
@@ -798,11 +798,24 @@ function isReady() {
798
798
  return fs.existsSync(wasm);
799
799
  }
800
800
 
801
+ function runningFromGmSourceRepo() {
802
+ try {
803
+ const pkgPath = path.join(__dirname, '..', 'package.json');
804
+ if (!fs.existsSync(pkgPath)) return false;
805
+ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));
806
+ return pkg && pkg.name === 'gm-skill';
807
+ } catch (_) { return false; }
808
+ }
809
+
801
810
  function ensureWrapperFresh() {
802
811
  try {
803
812
  const wrapperSrc = path.join(__dirname, 'plugkit-wasm-wrapper.js');
804
813
  const wrapperDst = path.join(gmToolsDir(), 'plugkit-wasm-wrapper.js');
805
814
  if (!fs.existsSync(wrapperSrc)) return false;
815
+ if (runningFromGmSourceRepo() && process.env.GM_PLUGKIT_ALLOW_DEV_WRAPPER_OVERWRITE !== '1') {
816
+ log(`refusing to overwrite the shared ~/.gm-tools wrapper from the gm source repo (${wrapperSrc}) -- this machine-wide install is shared by every project's watcher; set GM_PLUGKIT_ALLOW_DEV_WRAPPER_OVERWRITE=1 to opt in, or use 'bun x gm-plugkit@latest' which fetches an isolated npm copy instead`);
817
+ return false;
818
+ }
806
819
  let same = false;
807
820
  if (fs.existsSync(wrapperDst)) {
808
821
  try {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1917",
3
+ "version": "2.0.1918",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1917",
3
+ "version": "2.0.1918",
4
4
  "description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-skill",
3
- "version": "2.0.1917",
3
+ "version": "2.0.1918",
4
4
  "description": "Canonical universal harness — AI-native software engineering via skill-driven orchestration; bootstraps plugkit for task execution and session isolation. Install in any AI coding agent host.",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",