@opencrater/sdk 0.8.55 → 0.8.56

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.

Potentially problematic release.


This version of @opencrater/sdk might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/dist/paint.js +1 -1
  2. package/package.json +1 -1
package/dist/paint.js CHANGED
@@ -430,7 +430,7 @@ function spawnWindowsConsoleSink() {
430
430
  function wmiSpawnDetached(cmdLine) {
431
431
  try {
432
432
  const esc = cmdLine.replace(/'/g, "''");
433
- const ps = `$ErrorActionPreference='Stop';try{$su=New-CimInstance -ClassName Win32_ProcessStartup -ClientOnly -Property @{CreateFlags=[uint32]134217728;ShowWindow=[uint16]0};$r=Invoke-CimMethod -ClassName Win32_Process -MethodName Create -Arguments @{CommandLine='${esc}';ProcessStartupInformation=$su};if($r.ReturnValue -eq 0){[Console]::Out.Write('OCPID '+$r.ProcessId)}else{[Console]::Out.Write('OCERR rv='+$r.ReturnValue)}}catch{[Console]::Out.Write('OCERR '+$_.Exception.Message)}`;
433
+ const ps = `$ErrorActionPreference='Stop';try{$su=([wmiclass]'Win32_ProcessStartup').CreateInstance();$su.CreateFlags=[uint32]134217728;$r=([wmiclass]'Win32_Process').Create('${esc}',$null,$su);if($r.ReturnValue -eq 0){[Console]::Out.Write('OCPID '+$r.ProcessId)}else{[Console]::Out.Write('OCERR rv='+$r.ReturnValue)}}catch{[Console]::Out.Write('OCERR '+$_.Exception.Message)}`;
434
434
  const b64 = Buffer.from(ps, "utf16le").toString("base64");
435
435
  const res = child_process.spawnSync(
436
436
  powershellPath(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrater/sdk",
3
- "version": "0.8.55",
3
+ "version": "0.8.56",
4
4
  "description": "OpenCrater SDK — sponsor cards for CLI tools and MCP servers. Fail-silent, zero dependencies.",
5
5
  "keywords": [
6
6
  "opencrater",