buddy-builder 1.4.6 → 1.4.8

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/dist/main.cjs CHANGED
@@ -16396,6 +16396,14 @@ function buildHandlers(mgr) {
16396
16396
  broadcast("indexProgress", status);
16397
16397
  });
16398
16398
  },
16399
+ runCommand: ({ command, cwd }) => {
16400
+ return new Promise((resolve) => {
16401
+ const { exec } = require("child_process");
16402
+ exec(command, { cwd, timeout: 3e4, maxBuffer: 1024 * 1024, env: process.env }, (err, stdout, stderr) => {
16403
+ resolve({ stdout: stdout ?? "", stderr: stderr ?? "", exitCode: err ? err.code ?? 1 : 0 });
16404
+ });
16405
+ });
16406
+ },
16399
16407
  winMinimize: () => {
16400
16408
  import_electron6.BrowserWindow.getFocusedWindow()?.minimize();
16401
16409
  },