@ai-hero/sandcastle 0.13.0 → 0.14.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.
Files changed (66) hide show
  1. package/README.md +3 -3
  2. package/dist/{SandboxProvider-YCL97qco.d.ts → SandboxProvider-Chsi-Zs6.d.ts} +3 -2
  3. package/dist/{chunk-767EAJVT.js → chunk-ATA2V2TC.js} +3 -3
  4. package/dist/{chunk-767EAJVT.js.map → chunk-ATA2V2TC.js.map} +1 -1
  5. package/dist/{chunk-4EIVTSOZ.js → chunk-BIF2X6QB.js} +4 -3
  6. package/dist/chunk-BIF2X6QB.js.map +1 -0
  7. package/dist/{chunk-XCYK7I45.js → chunk-BVZWLFFT.js} +2 -2
  8. package/dist/chunk-BVZWLFFT.js.map +1 -0
  9. package/dist/chunk-EXYXBRCX.js +60 -0
  10. package/dist/chunk-EXYXBRCX.js.map +1 -0
  11. package/dist/chunk-G2R53CVZ.js +3172 -0
  12. package/dist/chunk-G2R53CVZ.js.map +1 -0
  13. package/dist/{chunk-U42XXICG.js → chunk-GCLEXPXG.js} +7 -4
  14. package/dist/chunk-GCLEXPXG.js.map +1 -0
  15. package/dist/chunk-H2PEFS4W.js +1244 -0
  16. package/dist/chunk-H2PEFS4W.js.map +1 -0
  17. package/dist/{chunk-NMQ5Z6YG.js → chunk-HSXPRZKG.js} +5 -3
  18. package/dist/chunk-HSXPRZKG.js.map +1 -0
  19. package/dist/{chunk-J5J5YJ5S.js → chunk-IBK2XNSS.js} +3 -3
  20. package/dist/{chunk-J5J5YJ5S.js.map → chunk-IBK2XNSS.js.map} +1 -1
  21. package/dist/chunk-RDW7FNN6.js +792 -0
  22. package/dist/chunk-RDW7FNN6.js.map +1 -0
  23. package/dist/{chunk-A4C2FG74.js → chunk-S6UHPTRG.js} +43 -42
  24. package/dist/chunk-S6UHPTRG.js.map +1 -0
  25. package/dist/{chunk-LWNC4UTZ.js → chunk-STB2U7BB.js} +5414 -9389
  26. package/dist/chunk-STB2U7BB.js.map +1 -0
  27. package/dist/{chunk-XCWKLDH4.js → chunk-VRXR2T3S.js} +3 -3
  28. package/dist/{chunk-XCWKLDH4.js.map → chunk-VRXR2T3S.js.map} +1 -1
  29. package/dist/index.d.ts +6 -2
  30. package/dist/index.js +458 -1675
  31. package/dist/index.js.map +1 -1
  32. package/dist/main.js +262 -247
  33. package/dist/main.js.map +1 -1
  34. package/dist/sandboxes/bwrap.d.ts +1 -1
  35. package/dist/sandboxes/bwrap.js +9 -6
  36. package/dist/sandboxes/bwrap.js.map +1 -1
  37. package/dist/sandboxes/daytona.d.ts +1 -1
  38. package/dist/sandboxes/daytona.js +179 -135
  39. package/dist/sandboxes/daytona.js.map +1 -1
  40. package/dist/sandboxes/docker.d.ts +1 -1
  41. package/dist/sandboxes/docker.js +6 -3
  42. package/dist/sandboxes/e2b.d.ts +41 -0
  43. package/dist/sandboxes/e2b.js +202 -0
  44. package/dist/sandboxes/e2b.js.map +1 -0
  45. package/dist/sandboxes/modal.d.ts +78 -0
  46. package/dist/sandboxes/modal.js +171 -0
  47. package/dist/sandboxes/modal.js.map +1 -0
  48. package/dist/sandboxes/no-sandbox.d.ts +1 -1
  49. package/dist/sandboxes/podman.d.ts +1 -1
  50. package/dist/sandboxes/podman.js +6 -3
  51. package/dist/sandboxes/podman.js.map +1 -1
  52. package/dist/sandboxes/seatbelt.d.ts +1 -1
  53. package/dist/sandboxes/seatbelt.js +9 -6
  54. package/dist/sandboxes/seatbelt.js.map +1 -1
  55. package/dist/sandboxes/sprites.d.ts +54 -0
  56. package/dist/sandboxes/sprites.js +198 -0
  57. package/dist/sandboxes/sprites.js.map +1 -0
  58. package/dist/sandboxes/vercel.d.ts +1 -1
  59. package/dist/sandboxes/vercel.js +1 -1
  60. package/package.json +30 -2
  61. package/dist/chunk-4EIVTSOZ.js.map +0 -1
  62. package/dist/chunk-A4C2FG74.js.map +0 -1
  63. package/dist/chunk-LWNC4UTZ.js.map +0 -1
  64. package/dist/chunk-NMQ5Z6YG.js.map +0 -1
  65. package/dist/chunk-U42XXICG.js.map +0 -1
  66. package/dist/chunk-XCYK7I45.js.map +0 -1
@@ -1,5 +1,6 @@
1
1
  import { createRequire } from 'node:module';
2
- import { effect, FileSystem, BaseProto, succeed2, Path, TypeId, pipe, mergeAll, provideMerge, makeRunMain, constVoid, map3, serviceOption, WatchBackend, make8, try_, BadArgument, CommandExecutor, makeExecutor, scoped2, Terminal, provide2, layerManager, async, fail2, _void, succeed, tryPromise, acquireRelease, orDie, flatMap, getOrElse, unwrap, flatten2, stdin, unwrapScoped, flatMap3, make5, constUndefined, unsafeDone, sync, match, zipRight, isDone, orElse2, _await, ignore, ExitCode, negate, ProcessId, transduce, ProcessTypeId, drain, identity, tap, forkDaemon, run, fnUntraced, make6 as make6$1, gen, get3, make9, addFinalizer2, scoped, PlatformWorker, SystemError, effectify, fromNullable, map, Size, FileDescriptor, zip, suspend, asyncScoped, WatchEventUpdate, matchEffect, WatchEventRemove, WatchEventCreate, fromChannel2, fromChannel, asVoid, void_, uninterruptible, makePlatform, WorkerError, as, addFinalizer, interruptible, timeout, catchAllCause, flatMap4, embedInput, complete, failCause, suspend2, make2, FileTypeId, unsafeMakeSemaphore, none, some, ensuring, void_2, unsafeMakeLatch, fromEffect, write, unsafeFromArray, ensuring2, fail, NativeSandboxUnavailableError } from './chunk-LWNC4UTZ.js';
2
+ import { FileSystem, Path, TypeId, makeRunMain, WatchBackend, make, BadArgument, CommandExecutor, makeExecutor, Terminal, layerManager, flatten, stdin, ExitCode, ProcessId, ProcessTypeId, PlatformWorker, SystemError, effectify, Size, FileDescriptor, WatchEventUpdate, WatchEventRemove, WatchEventCreate, makePlatform, WorkerError, FileTypeId, NativeSandboxUnavailableError } from './chunk-RDW7FNN6.js';
3
+ import { effect, BaseProto, succeed3, pipe, mergeAll, provideMerge, constVoid, map4, serviceOption, try_, scoped2, provide2, async, fail3, _void, succeed2, tryPromise, acquireRelease, orDie, flatMap, getOrElse, unwrap, unwrapScoped, flatMap3, make5, constUndefined, unsafeDone, sync, match, zipRight, isDone, orElse2, _await, ignore, negate, transduce, drain, identity, tap, forkDaemon, run, fnUntraced, make6 as make6$1, gen, get3, make8, addFinalizer2, scoped, fromNullable, map, zip, suspend, asyncScoped, matchEffect, fromChannel2, fromChannel, asVoid, void_, uninterruptible, as, addFinalizer, interruptible, timeout, catchAllCause, flatMap4, embedInput, complete, failCause, suspend2, make2, unsafeMakeSemaphore, none, some, ensuring, void_2, unsafeMakeLatch, fromEffect, write, unsafeFromArray, ensuring2, fail } from './chunk-STB2U7BB.js';
3
4
  import { __commonJS, __require, __export, __toESM, __reExport } from './chunk-6NQPCXSG.js';
4
5
  import * as Crypto from 'crypto';
5
6
  import * as NFS from 'fs';
@@ -24739,7 +24740,7 @@ var makeTempDirectoryScoped = /* @__PURE__ */ (() => {
24739
24740
  var openFactory = (method) => {
24740
24741
  const nodeOpen = effectify(NFS.open, handleErrnoException("FileSystem", method), handleBadArgument(method));
24741
24742
  const nodeClose = effectify(NFS.close, handleErrnoException("FileSystem", method), handleBadArgument(method));
24742
- return (path, options) => pipe(acquireRelease(nodeOpen(path, options?.flag ?? "r", options?.mode), (fd) => orDie(nodeClose(fd))), map3((fd) => makeFile(FileDescriptor(fd), options?.flag?.startsWith("a") ?? false)));
24743
+ return (path, options) => pipe(acquireRelease(nodeOpen(path, options?.flag ?? "r", options?.mode), (fd) => orDie(nodeClose(fd))), map4((fd) => makeFile(FileDescriptor(fd), options?.flag?.startsWith("a") ?? false)));
24743
24744
  };
24744
24745
  var open2 = /* @__PURE__ */ openFactory("open");
24745
24746
  var makeFile = /* @__PURE__ */ (() => {
@@ -24764,7 +24765,7 @@ var makeFile = /* @__PURE__ */ (() => {
24764
24765
  this[FileTypeId] = FileTypeId;
24765
24766
  }
24766
24767
  get stat() {
24767
- return map3(nodeStat(this.fd), makeFileInfo);
24768
+ return map4(nodeStat(this.fd), makeFileInfo);
24768
24769
  }
24769
24770
  get sync() {
24770
24771
  return nodeSync(this.fd);
@@ -24781,7 +24782,7 @@ var makeFile = /* @__PURE__ */ (() => {
24781
24782
  }));
24782
24783
  }
24783
24784
  read(buffer) {
24784
- return this.semaphore.withPermits(1)(map3(suspend(() => nodeRead(this.fd, {
24785
+ return this.semaphore.withPermits(1)(map4(suspend(() => nodeRead(this.fd, {
24785
24786
  buffer,
24786
24787
  position: this.position
24787
24788
  })), (bytesRead) => {
@@ -24792,7 +24793,7 @@ var makeFile = /* @__PURE__ */ (() => {
24792
24793
  }
24793
24794
  readAlloc(size) {
24794
24795
  const sizeNumber = Number(size);
24795
- return this.semaphore.withPermits(1)(flatMap3(sync(() => Buffer.allocUnsafeSlow(sizeNumber)), (buffer) => map3(nodeReadAlloc(this.fd, {
24796
+ return this.semaphore.withPermits(1)(flatMap3(sync(() => Buffer.allocUnsafeSlow(sizeNumber)), (buffer) => map4(nodeReadAlloc(this.fd, {
24796
24797
  buffer,
24797
24798
  position: this.position
24798
24799
  }), (bytesRead) => {
@@ -24809,7 +24810,7 @@ var makeFile = /* @__PURE__ */ (() => {
24809
24810
  })));
24810
24811
  }
24811
24812
  truncate(length) {
24812
- return this.semaphore.withPermits(1)(map3(nodeTruncate(this.fd, length ? Number(length) : void 0), () => {
24813
+ return this.semaphore.withPermits(1)(map4(nodeTruncate(this.fd, length ? Number(length) : void 0), () => {
24813
24814
  if (!this.append) {
24814
24815
  const len = BigInt(length ?? 0);
24815
24816
  if (this.position > len) {
@@ -24819,7 +24820,7 @@ var makeFile = /* @__PURE__ */ (() => {
24819
24820
  }));
24820
24821
  }
24821
24822
  write(buffer) {
24822
- return this.semaphore.withPermits(1)(map3(suspend(() => nodeWrite(this.fd, buffer, void 0, void 0, this.append ? void 0 : Number(this.position))), (bytesWritten) => {
24823
+ return this.semaphore.withPermits(1)(map4(suspend(() => nodeWrite(this.fd, buffer, void 0, void 0, this.append ? void 0 : Number(this.position))), (bytesWritten) => {
24823
24824
  const sizeWritten = Size(bytesWritten);
24824
24825
  if (!this.append) {
24825
24826
  this.position = this.position + sizeWritten;
@@ -24830,7 +24831,7 @@ var makeFile = /* @__PURE__ */ (() => {
24830
24831
  writeAllChunk(buffer) {
24831
24832
  return flatMap3(suspend(() => nodeWriteAll(this.fd, buffer, void 0, void 0, this.append ? void 0 : Number(this.position))), (bytesWritten) => {
24832
24833
  if (bytesWritten === 0) {
24833
- return fail2(new SystemError({
24834
+ return fail3(new SystemError({
24834
24835
  module: "FileSystem",
24835
24836
  method: "writeAll",
24836
24837
  reason: "WriteZero",
@@ -24854,7 +24855,7 @@ var makeTempFileFactory = (method) => {
24854
24855
  const makeDirectory2 = makeTempDirectoryFactory(method);
24855
24856
  const open3 = openFactory(method);
24856
24857
  const randomHexString = (bytes) => sync(() => Crypto.randomBytes(bytes).toString("hex"));
24857
- return (options) => pipe(zip(makeDirectory2(options), randomHexString(6)), map3(([directory, random]) => Path2.join(directory, random + (options?.suffix ?? ""))), tap((path) => scoped(open3(path, {
24858
+ return (options) => pipe(zip(makeDirectory2(options), randomHexString(6)), map4(([directory, random]) => Path2.join(directory, random + (options?.suffix ?? ""))), tap((path) => scoped(open3(path, {
24858
24859
  flag: "w+"
24859
24860
  }))));
24860
24861
  };
@@ -24876,13 +24877,13 @@ var readFile2 = (path) => async((resume, signal) => {
24876
24877
  signal
24877
24878
  }, (err, data) => {
24878
24879
  if (err) {
24879
- resume(fail2(handleErrnoException("FileSystem", "readFile")(err, [path])));
24880
+ resume(fail3(handleErrnoException("FileSystem", "readFile")(err, [path])));
24880
24881
  } else {
24881
- resume(succeed(data));
24882
+ resume(succeed2(data));
24882
24883
  }
24883
24884
  });
24884
24885
  } catch (err) {
24885
- resume(fail2(handleBadArgument("readFile")(err)));
24886
+ resume(fail3(handleBadArgument("readFile")(err)));
24886
24887
  }
24887
24888
  });
24888
24889
  var readLink = /* @__PURE__ */ (() => {
@@ -24915,7 +24916,7 @@ var makeFileInfo = (stat3) => ({
24915
24916
  });
24916
24917
  var stat2 = /* @__PURE__ */ (() => {
24917
24918
  const nodeStat = /* @__PURE__ */ effectify(NFS.stat, /* @__PURE__ */ handleErrnoException("FileSystem", "stat"), /* @__PURE__ */ handleBadArgument("stat"));
24918
- return (path) => map3(nodeStat(path), makeFileInfo);
24919
+ return (path) => map4(nodeStat(path), makeFileInfo);
24919
24920
  })();
24920
24921
  var symlink2 = /* @__PURE__ */ (() => {
24921
24922
  const nodeSymlink = /* @__PURE__ */ effectify(NFS.symlink, /* @__PURE__ */ handleErrnoException("FileSystem", "symlink"), /* @__PURE__ */ handleBadArgument("symlink"));
@@ -24937,12 +24938,12 @@ var watchNode = (path, options) => asyncScoped((emit) => acquireRelease(sync(()
24937
24938
  switch (event) {
24938
24939
  case "rename": {
24939
24940
  emit.fromEffect(matchEffect(stat2(path2), {
24940
- onSuccess: (_) => succeed(WatchEventCreate({
24941
+ onSuccess: (_) => succeed2(WatchEventCreate({
24941
24942
  path: path2
24942
24943
  })),
24943
- onFailure: (err) => err._tag === "SystemError" && err.reason === "NotFound" ? succeed(WatchEventRemove({
24944
+ onFailure: (err) => err._tag === "SystemError" && err.reason === "NotFound" ? succeed2(WatchEventRemove({
24944
24945
  path: path2
24945
- })) : fail2(err)
24946
+ })) : fail3(err)
24946
24947
  }));
24947
24948
  return;
24948
24949
  }
@@ -24968,7 +24969,7 @@ var watchNode = (path, options) => asyncScoped((emit) => acquireRelease(sync(()
24968
24969
  });
24969
24970
  return watcher;
24970
24971
  }), (watcher) => sync(() => watcher.close())));
24971
- var watch2 = (backend, path, options) => stat2(path).pipe(map3((stat3) => backend.pipe(flatMap((_) => _.register(path, stat3, options)), getOrElse(() => watchNode(path, options)))), unwrap);
24972
+ var watch2 = (backend, path, options) => stat2(path).pipe(map4((stat3) => backend.pipe(flatMap((_) => _.register(path, stat3, options)), getOrElse(() => watchNode(path, options)))), unwrap);
24972
24973
  var writeFile2 = (path, data, options) => async((resume, signal) => {
24973
24974
  try {
24974
24975
  NFS.writeFile(path, data, {
@@ -24977,16 +24978,16 @@ var writeFile2 = (path, data, options) => async((resume, signal) => {
24977
24978
  mode: options?.mode
24978
24979
  }, (err) => {
24979
24980
  if (err) {
24980
- resume(fail2(handleErrnoException("FileSystem", "writeFile")(err, [path])));
24981
+ resume(fail3(handleErrnoException("FileSystem", "writeFile")(err, [path])));
24981
24982
  } else {
24982
24983
  resume(_void);
24983
24984
  }
24984
24985
  });
24985
24986
  } catch (err) {
24986
- resume(fail2(handleBadArgument("writeFile")(err)));
24987
+ resume(fail3(handleBadArgument("writeFile")(err)));
24987
24988
  }
24988
24989
  });
24989
- var makeFileSystem = /* @__PURE__ */ map3(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make8({
24990
+ var makeFileSystem = /* @__PURE__ */ map4(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make({
24990
24991
  access: access2,
24991
24992
  chmod: chmod2,
24992
24993
  chown: chown2,
@@ -25119,7 +25120,7 @@ var fromWritable = (evaluate, onError, options) => fromChannel2(fromWritableChan
25119
25120
  var fromWritableChannel = (writable, onError, options) => flatMap4(zip(sync(() => writable()), make5()), ([writable2, deferred]) => embedInput(writableOutput(writable2, deferred, onError), writeInput(writable2, (cause) => failCause(deferred, cause), options, complete(deferred, _void))));
25120
25121
  var writableOutput = (writable, deferred, onError) => suspend(() => {
25121
25122
  function handleError(err) {
25122
- unsafeDone(deferred, fail2(onError(err)));
25123
+ unsafeDone(deferred, fail3(onError(err)));
25123
25124
  }
25124
25125
  writable.on("error", handleError);
25125
25126
  return ensuring(_await(deferred), sync(() => {
@@ -25132,7 +25133,7 @@ var inputToStdioOption = (stdin2) => typeof stdin2 === "string" ? stdin2 : "pipe
25132
25133
  var outputToStdioOption = (output) => typeof output === "string" ? output : "pipe";
25133
25134
  var toError = (err) => err instanceof globalThis.Error ? err : new globalThis.Error(String(err));
25134
25135
  var toPlatformError = (method, error, command) => {
25135
- const flattened = flatten2(command).reduce((acc, curr) => {
25136
+ const flattened = flatten(command).reduce((acc, curr) => {
25136
25137
  const command2 = `${curr.command} ${curr.args.join(" ")}`;
25137
25138
  return acc.length === 0 ? command2 : `${acc} | ${command2}`;
25138
25139
  }, "");
@@ -25163,13 +25164,13 @@ var runCommand = (fileSystem) => (command) => {
25163
25164
  detached: process.platform !== "win32"
25164
25165
  });
25165
25166
  handle.on("error", (err) => {
25166
- resume(fail2(toPlatformError("spawn", err, command)));
25167
+ resume(fail3(toPlatformError("spawn", err, command)));
25167
25168
  });
25168
25169
  handle.on("exit", (...args) => {
25169
- unsafeDone(exitCode, succeed(args));
25170
+ unsafeDone(exitCode, succeed2(args));
25170
25171
  });
25171
25172
  handle.on("spawn", () => {
25172
- resume(succeed([handle, exitCode]));
25173
+ resume(succeed2([handle, exitCode]));
25173
25174
  });
25174
25175
  return sync(() => {
25175
25176
  handle.kill("SIGTERM");
@@ -25178,7 +25179,7 @@ var runCommand = (fileSystem) => (command) => {
25178
25179
  const killProcessGroup = process.platform === "win32" ? (handle, _) => async((resume) => {
25179
25180
  ChildProcess.exec(`taskkill /pid ${handle.pid} /T /F`, (error) => {
25180
25181
  if (error) {
25181
- resume(fail2(toPlatformError("kill", toError(error), command)));
25182
+ resume(fail3(toPlatformError("kill", toError(error), command)));
25182
25183
  } else {
25183
25184
  resume(_void);
25184
25185
  }
@@ -25187,7 +25188,7 @@ var runCommand = (fileSystem) => (command) => {
25187
25188
  try: () => process.kill(-handle.pid, signal),
25188
25189
  catch: (error) => toPlatformError("kill", toError(error), command)
25189
25190
  });
25190
- const killProcess = (handle, signal) => suspend(() => handle.kill(signal) ? _void : fail2(toPlatformError("kill", new globalThis.Error("Failed to kill process"), command)));
25191
+ const killProcess = (handle, signal) => suspend(() => handle.kill(signal) ? _void : fail3(toPlatformError("kill", new globalThis.Error("Failed to kill process"), command)));
25191
25192
  return pipe(
25192
25193
  // Validate that the directory is accessible
25193
25194
  match(command.cwd, {
@@ -25205,16 +25206,16 @@ var runCommand = (fileSystem) => (command) => {
25205
25206
  return _void;
25206
25207
  });
25207
25208
  }))),
25208
- map3(([handle, exitCodeDeferred]) => {
25209
+ map4(([handle, exitCodeDeferred]) => {
25209
25210
  let stdin2 = drain;
25210
25211
  if (handle.stdin !== null) {
25211
25212
  stdin2 = fromWritable(() => handle.stdin, (err) => toPlatformError("toWritable", toError(err), command));
25212
25213
  }
25213
25214
  const exitCode = flatMap3(_await(exitCodeDeferred), ([code, signal]) => {
25214
25215
  if (code !== null) {
25215
- return succeed(ExitCode(code));
25216
+ return succeed2(ExitCode(code));
25216
25217
  }
25217
- return fail2(toPlatformError("exitCode", new globalThis.Error(`Process interrupted due to receipt of signal: ${signal}`), command));
25218
+ return fail3(toPlatformError("exitCode", new globalThis.Error(`Process interrupted due to receipt of signal: ${signal}`), command));
25218
25219
  });
25219
25220
  const isRunning = negate(isDone(exitCodeDeferred));
25220
25221
  const kill = (signal = "SIGTERM") => killProcessGroup(handle, signal).pipe(orElse2(() => killProcess(handle, signal)), zipRight(asVoid(_await(exitCodeDeferred))));
@@ -25238,7 +25239,7 @@ var runCommand = (fileSystem) => (command) => {
25238
25239
  );
25239
25240
  }
25240
25241
  case "PipedCommand": {
25241
- const flattened = flatten2(command);
25242
+ const flattened = flatten(command);
25242
25243
  if (flattened.length === 1) {
25243
25244
  return pipe(flattened[0], runCommand(fileSystem));
25244
25245
  }
@@ -25246,12 +25247,12 @@ var runCommand = (fileSystem) => (command) => {
25246
25247
  const tail = flattened.slice(1);
25247
25248
  const initial = tail.slice(0, tail.length - 1);
25248
25249
  const last = tail[tail.length - 1];
25249
- const stream = initial.reduce((stdin2, command2) => pipe(stdin(command2, stdin2), runCommand(fileSystem), map3((process2) => process2.stdout), unwrapScoped), pipe(runCommand(fileSystem)(head), map3((process2) => process2.stdout), unwrapScoped));
25250
+ const stream = initial.reduce((stdin2, command2) => pipe(stdin(command2, stdin2), runCommand(fileSystem), map4((process2) => process2.stdout), unwrapScoped), pipe(runCommand(fileSystem)(head), map4((process2) => process2.stdout), unwrapScoped));
25250
25251
  return pipe(stdin(last, stream), runCommand(fileSystem));
25251
25252
  }
25252
25253
  }
25253
25254
  };
25254
- var layer4 = /* @__PURE__ */ effect(CommandExecutor, /* @__PURE__ */ pipe(FileSystem, /* @__PURE__ */ map3((fileSystem) => makeExecutor(runCommand(fileSystem)))));
25255
+ var layer4 = /* @__PURE__ */ effect(CommandExecutor, /* @__PURE__ */ pipe(FileSystem, /* @__PURE__ */ map4((fileSystem) => makeExecutor(runCommand(fileSystem)))));
25255
25256
 
25256
25257
  // node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.js
25257
25258
  var layer5 = layer4;
@@ -25273,19 +25274,19 @@ var toFileUrl = (path) => try_({
25273
25274
  cause: error
25274
25275
  })
25275
25276
  });
25276
- /* @__PURE__ */ succeed2(Path, /* @__PURE__ */ Path.of({
25277
+ /* @__PURE__ */ succeed3(Path, /* @__PURE__ */ Path.of({
25277
25278
  [TypeId]: TypeId,
25278
25279
  ...Path2.posix,
25279
25280
  fromFileUrl,
25280
25281
  toFileUrl
25281
25282
  }));
25282
- /* @__PURE__ */ succeed2(Path, /* @__PURE__ */ Path.of({
25283
+ /* @__PURE__ */ succeed3(Path, /* @__PURE__ */ Path.of({
25283
25284
  [TypeId]: TypeId,
25284
25285
  ...Path2.win32,
25285
25286
  fromFileUrl,
25286
25287
  toFileUrl
25287
25288
  }));
25288
- var layer6 = /* @__PURE__ */ succeed2(Path, /* @__PURE__ */ Path.of({
25289
+ var layer6 = /* @__PURE__ */ succeed3(Path, /* @__PURE__ */ Path.of({
25289
25290
  [TypeId]: TypeId,
25290
25291
  ...Path2,
25291
25292
  fromFileUrl,
@@ -25321,7 +25322,7 @@ var make6 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit
25321
25322
  const isTTY = sync(() => Boolean(stdout.isTTY));
25322
25323
  const readInput = gen(function* () {
25323
25324
  yield* get3(rlRef);
25324
- const mailbox = yield* make9();
25325
+ const mailbox = yield* make8();
25325
25326
  const handleKeypress = (s, k) => {
25326
25327
  const userInput = {
25327
25328
  input: fromNullable(s),
@@ -25342,12 +25343,12 @@ var make6 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit
25342
25343
  return mailbox;
25343
25344
  });
25344
25345
  const readLine = get3(rlRef).pipe(flatMap3((readlineInterface) => async((resume) => {
25345
- const onLine = (line) => resume(succeed(line));
25346
+ const onLine = (line) => resume(succeed2(line));
25346
25347
  readlineInterface.once("line", onLine);
25347
25348
  return sync(() => readlineInterface.off("line", onLine));
25348
25349
  })), scoped);
25349
25350
  const display = (prompt) => uninterruptible(async((resume) => {
25350
- stdout.write(prompt, (err) => err ? resume(fail2(new BadArgument({
25351
+ stdout.write(prompt, (err) => err ? resume(fail3(new BadArgument({
25351
25352
  module: "Terminal",
25352
25353
  method: "display",
25353
25354
  description: "Failed to write prompt to stdout",
@@ -25426,7 +25427,7 @@ var platformWorkerImpl = /* @__PURE__ */ makePlatform()({
25426
25427
  return _void;
25427
25428
  }
25428
25429
  });
25429
- var layerWorker = /* @__PURE__ */ succeed2(PlatformWorker, platformWorkerImpl);
25430
+ var layerWorker = /* @__PURE__ */ succeed3(PlatformWorker, platformWorkerImpl);
25430
25431
  var layerManager2 = /* @__PURE__ */ provide2(layerManager, layerWorker);
25431
25432
 
25432
25433
  // node_modules/@effect/platform-node/dist/esm/NodeWorker.js
@@ -25496,5 +25497,5 @@ undici/lib/web/websocket/frame.js:
25496
25497
  */
25497
25498
 
25498
25499
  export { NativeSandboxUnavailableError2 as NativeSandboxUnavailableError, NodeContext_exports, NodeFileSystem_exports, NodeRuntime_exports };
25499
- //# sourceMappingURL=chunk-A4C2FG74.js.map
25500
- //# sourceMappingURL=chunk-A4C2FG74.js.map
25500
+ //# sourceMappingURL=chunk-S6UHPTRG.js.map
25501
+ //# sourceMappingURL=chunk-S6UHPTRG.js.map