@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/README.md +13 -0
- package/dist/index.cjs +16 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
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
|
|
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:
|
|
902
|
+
command: findCmd,
|
|
902
903
|
args: [this.cliCommand]
|
|
903
904
|
});
|
|
904
905
|
return result.exitCode === 0;
|