gm-skill 2.0.1230 → 2.0.1231

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
@@ -35,7 +35,7 @@ An earlier generation fanned out fifteen per-platform downstream repos (gm-cc, g
35
35
 
36
36
  ## Version
37
37
 
38
- `2.0.1230` — auto-bumped from the canonical `gm` repo. Every push to `AnEntrypoint/gm` (or any cascading sibling crate) republishes this package.
38
+ `2.0.1231` — auto-bumped from the canonical `gm` repo. Every push to `AnEntrypoint/gm` (or any cascading sibling crate) republishes this package.
39
39
 
40
40
  ## Source of truth
41
41
 
package/bin/bootstrap.js CHANGED
@@ -264,6 +264,9 @@ async function extractNpmPackageWasm(destPath, version) {
264
264
  timeout: ATTEMPT_TIMEOUT_MS,
265
265
  encoding: 'utf8',
266
266
  windowsHide: true,
267
+ // CREATE_NO_WINDOW — inherited by all .cmd shims npm/npx spawn
268
+ // during package extraction, so no conhost flash during install.
269
+ ...(process.platform === 'win32' ? { creationFlags: 0x08000000 } : {}),
267
270
  }
268
271
  );
269
272
 
@@ -211,6 +211,9 @@ async function extractNpmPackageWasm(destPath, version) {
211
211
  timeout: ATTEMPT_TIMEOUT_MS,
212
212
  encoding: 'utf8',
213
213
  windowsHide: true,
214
+ // CREATE_NO_WINDOW — inherited by .cmd shims npm spawns during
215
+ // package install, so no conhost flash during the extract step.
216
+ ...(process.platform === 'win32' ? { creationFlags: 0x08000000 } : {}),
214
217
  });
215
218
 
216
219
  if (result.error) throw result.error;
@@ -797,15 +797,22 @@ function ensureAcptoapi() {
797
797
  }
798
798
  // Resolve `bun` to its actual .exe on Windows so the spawned daemon
799
799
  // doesn't enter conhost via a bun.cmd shim. See
800
- // [[windows-spawn-cmd-shim-flash]] — cmd.exe + .cmd chain re-enters
801
- // conhost even with windowsHide:true on the parent. Falls back to
802
- // the bare name on non-Windows / when `where` can't resolve.
800
+ // [[windows-spawn-cmd-shim-flash]].
801
+ //
802
+ // Use CREATE_NO_WINDOW (0x08000000) | DETACHED_PROCESS (0x00000008)
803
+ // creationFlags so the suppression is INHERITED by every descendant
804
+ // bun-x downloads and launches (acptoapi itself spawns 11 ACP sub-
805
+ // daemons via .cmd shims; without this flag each one pops a conhost
806
+ // window). windowsHide:true alone only hides the immediate child.
807
+ const CREATE_NO_WINDOW = 0x08000000;
808
+ const DETACHED_PROCESS = 0x00000008;
803
809
  const cmd = resolveWindowsExeLocal('bun');
804
810
  const child = spawn(cmd, ['x', 'acptoapi@latest'], {
805
811
  detached: true,
806
812
  stdio: 'ignore',
807
813
  windowsHide: true,
808
814
  shell: false,
815
+ creationFlags: CREATE_NO_WINDOW | DETACHED_PROCESS,
809
816
  });
810
817
  child.unref();
811
818
  _acptoapiBoot.spawned_at = Date.now();
package/gm.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm",
3
- "version": "2.0.1230",
3
+ "version": "2.0.1231",
4
4
  "description": "Spool-dispatch orchestration engine with unified state machine, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",
@@ -181,11 +181,16 @@ async function ensureRsLearningDaemonRunning() {
181
181
  CLAUDE_SESSION_ID: sessionId,
182
182
  });
183
183
 
184
+ // CREATE_NO_WINDOW (0x08000000) is inherited by all descendants —
185
+ // .cmd shims that bun-x downloads/launches never get a console window.
186
+ // DETACHED_PROCESS (0x00000008) detaches the process group. Windows-only;
187
+ // Node ignores creationFlags on POSIX.
184
188
  const proc = spawn(resolveWindowsExe('bun'), ['x', 'rs-learn@latest'], {
185
189
  detached: true,
186
190
  stdio: 'ignore',
187
191
  windowsHide: true,
188
192
  env,
193
+ creationFlags: 0x08000000 | 0x00000008,
189
194
  });
190
195
 
191
196
  const pid = proc.pid;
@@ -235,11 +240,15 @@ async function ensureAcptoapiRunning() {
235
240
  });
236
241
 
237
242
  try {
243
+ // CREATE_NO_WINDOW | DETACHED_PROCESS — see ensureRsLearningDaemonRunning
244
+ // above. Inherited by acptoapi's 11 ACP sub-daemons so they don't pop
245
+ // conhost windows when bun-x launches their .cmd shims.
238
246
  const child = spawn(resolveWindowsExe('bun'), ['x', 'acptoapi@latest'], {
239
247
  detached: true,
240
248
  stdio: 'ignore',
241
249
  windowsHide: true,
242
250
  env,
251
+ creationFlags: 0x08000000 | 0x00000008,
243
252
  });
244
253
  child.unref();
245
254
  emitDaemonEvent('acptoapi', 'info', 'Daemon spawned', { pid: child.pid, port, sessionId });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-skill",
3
- "version": "2.0.1230",
3
+ "version": "2.0.1231",
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.1230"
42
+ "gm-plugkit": "^2.0.1231"
43
43
  },
44
44
  "engines": {
45
45
  "node": ">=16.0.0"