gm-cc 2.0.652 → 2.0.653

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.
@@ -4,7 +4,7 @@
4
4
  "name": "AnEntrypoint"
5
5
  },
6
6
  "description": "State machine agent with hooks, skills, and automated git enforcement",
7
- "version": "2.0.652",
7
+ "version": "2.0.653",
8
8
  "metadata": {
9
9
  "description": "State machine agent with hooks, skills, and automated git enforcement"
10
10
  },
package/bin/plugkit.js CHANGED
@@ -19,6 +19,22 @@ if (platform === 'win32') {
19
19
  bin = path.join(dir, arch === 'arm64' || arch === 'aarch64' ? 'plugkit-linux-arm64' : 'plugkit-linux-x64');
20
20
  }
21
21
 
22
+ if (platform === 'win32' && fs.existsSync(bin)) {
23
+ try {
24
+ const mtime = fs.statSync(bin).mtimeMs;
25
+ const runDir = path.join(os.tmpdir(), 'plugkit-run');
26
+ fs.mkdirSync(runDir, { recursive: true });
27
+ const ext = path.extname(bin);
28
+ const cached = path.join(runDir, `plugkit-${Math.floor(mtime)}${ext}`);
29
+ if (!fs.existsSync(cached)) {
30
+ const entries = fs.readdirSync(runDir).filter(f => f.startsWith('plugkit-') && f.endsWith(ext));
31
+ for (const old of entries) try { fs.unlinkSync(path.join(runDir, old)); } catch (_) {}
32
+ fs.copyFileSync(bin, cached);
33
+ }
34
+ bin = cached;
35
+ } catch (_) {}
36
+ }
37
+
22
38
  const args = process.argv.slice(2);
23
39
  const isHook = args[0] === 'hook';
24
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-cc",
3
- "version": "2.0.652",
3
+ "version": "2.0.653",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.652",
3
+ "version": "2.0.653",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": {
6
6
  "name": "AnEntrypoint",