@snack-kit/porygon 0.5.0 → 0.6.0

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/index.js CHANGED
@@ -236,7 +236,7 @@ var InterceptorManager = class {
236
236
  };
237
237
 
238
238
  // src/process/process-handle.ts
239
- import { spawn } from "child_process";
239
+ import spawn from "cross-spawn";
240
240
  import { EventEmitter } from "events";
241
241
  import { createInterface } from "readline";
242
242
  var GRACE_PERIOD_MS = 5e3;
@@ -897,8 +897,9 @@ var ClaudeAdapter = class extends AbstractAgentAdapter {
897
897
  async isAvailable() {
898
898
  try {
899
899
  const proc = new EphemeralProcess();
900
+ const findCmd = process.platform === "win32" ? "where" : "which";
900
901
  const result = await proc.execute({
901
- command: "which",
902
+ command: findCmd,
902
903
  args: [this.cliCommand]
903
904
  });
904
905
  return result.exitCode === 0;