gm-skill 2.0.1104 → 2.0.1105

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/README.md CHANGED
@@ -28,7 +28,7 @@ npx gm-skill-bootstrap
28
28
 
29
29
  ## Version
30
30
 
31
- `2.0.1104` — auto-bumped from the canonical `gm` repo. Every push to `AnEntrypoint/gm` republishes this package alongside all 15 platform packages.
31
+ `2.0.1105` — auto-bumped from the canonical `gm` repo. Every push to `AnEntrypoint/gm` republishes this package alongside all 15 platform packages.
32
32
 
33
33
  ## Source of truth
34
34
 
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1104",
3
+ "version": "2.0.1105",
4
4
  "description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
3
  const https = require('https');
4
- const { execSync, spawn } = require('child_process');
4
+ const { execSync, execFileSync, spawn } = require('child_process');
5
5
  const crypto = require('crypto');
6
6
  const os = require('os');
7
7
  const spool = require('./spool.js');
@@ -117,13 +117,11 @@ function findPlugkitWasmPids() {
117
117
  const pids = [];
118
118
  try {
119
119
  if (process.platform === 'win32') {
120
- const output = execSync('wmic process where "Name=\'bun.exe\' or Name=\'node.exe\'" get ProcessId,CommandLine /FORMAT:CSV', { encoding: 'utf8' });
121
- const lines = output.split('\n').filter(Boolean);
122
- for (const line of lines) {
123
- if (!line.includes('plugkit-wasm-wrapper.js')) continue;
124
- const parts = line.split(',');
125
- const pid = parts[parts.length - 1].trim();
126
- if (/^\d+$/.test(pid)) pids.push(pid);
120
+ const ps = "Get-CimInstance Win32_Process -Filter \"Name='bun.exe' OR Name='node.exe'\" | Where-Object { $_.CommandLine -match 'plugkit-wasm-wrapper' } | Select-Object -ExpandProperty ProcessId";
121
+ const output = execFileSync('powershell', ['-NoProfile', '-Command', ps], { encoding: 'utf8', windowsHide: true });
122
+ for (const line of output.split(/\r?\n/)) {
123
+ const trimmed = line.trim();
124
+ if (/^\d+$/.test(trimmed)) pids.push(trimmed);
127
125
  }
128
126
  } else {
129
127
  const output = execSync("ps -eo pid,args", { encoding: 'utf8' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-skill",
3
- "version": "2.0.1104",
3
+ "version": "2.0.1105",
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",
@@ -39,7 +39,7 @@
39
39
  "gm.json"
40
40
  ],
41
41
  "dependencies": {
42
- "gm-plugkit": "^2.0.1104"
42
+ "gm-plugkit": "^2.0.1105"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=16.0.0"