claude-yes 1.17.0 → 1.17.1

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
@@ -5144,7 +5144,11 @@ async function claudeYes({
5144
5144
  const shellReady = new ReadyManager;
5145
5145
  const shellOutputStream = new TransformStream;
5146
5146
  const outputWriter = shellOutputStream.writable.getWriter();
5147
- const pty = process.versions.bun ? await import("bun-pty") : await import("node-pty");
5147
+ const pty = process.versions.bun ? await import("bun-pty").catch(() => {
5148
+ throw new Error("Please install bun-pty");
5149
+ }) : await import("node-pty").catch(() => {
5150
+ throw new Error("Please install node-pty");
5151
+ });
5148
5152
  const getPtyOptions = () => ({
5149
5153
  name: "xterm-color",
5150
5154
  cols: process.stdout.columns - PREFIXLENGTH,
@@ -5240,5 +5244,5 @@ export {
5240
5244
  claudeYes as default
5241
5245
  };
5242
5246
 
5243
- //# debugId=9DCC732BF3D33A1E64756E2164756E21
5247
+ //# debugId=D57ADA4381F993DD64756E2164756E21
5244
5248
  //# sourceMappingURL=index.js.map