poe-code 14.0.95 → 14.0.96

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 (39) hide show
  1. package/dist/metafile.json +1 -1
  2. package/package.json +1 -1
  3. package/packages/safe-bash/dist/commands/filesystem-requirements.d.ts.map +1 -1
  4. package/packages/safe-bash/dist/commands/filesystem-requirements.js +1 -0
  5. package/packages/safe-bash/dist/commands/filesystem-requirements.js.map +1 -1
  6. package/packages/safe-bash/dist/commands/filesystem.d.ts.map +1 -1
  7. package/packages/safe-bash/dist/commands/filesystem.js +29 -1
  8. package/packages/safe-bash/dist/commands/filesystem.js.map +1 -1
  9. package/packages/safe-bash/dist/contracts/filesystem.d.ts +1 -1
  10. package/packages/safe-bash/dist/contracts/filesystem.d.ts.map +1 -1
  11. package/packages/safe-bash/dist/core.browser.js +34 -2
  12. package/packages/safe-bash/dist/core.browser.js.map +2 -2
  13. package/packages/safe-fs/dist/contracts/filesystem.d.ts +5 -1
  14. package/packages/safe-fs/dist/fs/devices/index.d.ts +2 -2
  15. package/packages/safe-fs/dist/fs/memory/index.d.ts +3 -2
  16. package/packages/safe-fs/dist/fs/mount/index.d.ts +2 -2
  17. package/packages/safe-fs/dist/fs/overlay/index.d.ts +2 -2
  18. package/packages/safe-fs/dist/fs/readonly/index.d.ts +2 -2
  19. package/packages/safe-fs/dist/fs/real/index.d.ts +2 -2
  20. package/packages/safe-fs/dist/fs/s3/filesystem.d.ts +3 -2
  21. package/packages/safe-fs/dist/fs/webdav/webdav.d.ts +3 -2
  22. package/packages/safe-js/dist/browser/chunks/{chunk-YJ7IIV57.js → chunk-QK4IEGRO.js} +44 -2
  23. package/packages/safe-js/dist/browser/chunks/chunk-QK4IEGRO.js.map +7 -0
  24. package/packages/safe-js/dist/browser/safe-fs-core.js +1 -1
  25. package/packages/safe-js/dist/browser/safe-fs.js +1 -1
  26. package/packages/safe-js/dist/chunks/{chunk-3HQSRMV6.js → chunk-6V4U2JZS.js} +44 -2
  27. package/packages/safe-js/dist/chunks/chunk-6V4U2JZS.js.map +7 -0
  28. package/packages/safe-js/dist/chunks/{chunk-NZIVWYYY.js → chunk-EZRL4ES2.js} +3 -3
  29. package/packages/safe-js/dist/chunks/{chunk-5JIIALYB.js → chunk-XOQ5CVQM.js} +9 -2
  30. package/packages/safe-js/dist/chunks/chunk-XOQ5CVQM.js.map +7 -0
  31. package/packages/safe-js/dist/cli.js +3 -3
  32. package/packages/safe-js/dist/index.js +3 -3
  33. package/packages/safe-js/dist/safe-fs-core.js +1 -1
  34. package/packages/safe-js/dist/safe-fs-node.js +2 -2
  35. package/packages/safe-js/dist/safe-fs.js +2 -2
  36. package/packages/safe-js/dist/browser/chunks/chunk-YJ7IIV57.js.map +0 -7
  37. package/packages/safe-js/dist/chunks/chunk-3HQSRMV6.js.map +0 -7
  38. package/packages/safe-js/dist/chunks/chunk-5JIIALYB.js.map +0 -7
  39. /package/packages/safe-js/dist/chunks/{chunk-NZIVWYYY.js.map → chunk-EZRL4ES2.js.map} +0 -0
@@ -31,14 +31,14 @@ import {
31
31
  import {
32
32
  createNodeFileSystemAdapterRegistry,
33
33
  createNodeFsBridge
34
- } from "./chunk-5JIIALYB.js";
34
+ } from "./chunk-XOQ5CVQM.js";
35
35
  import {
36
36
  FsError,
37
37
  createFileSystem,
38
38
  isPathWithin,
39
39
  readConfigRecord,
40
40
  validateFileSystemConfig
41
- } from "./chunk-3HQSRMV6.js";
41
+ } from "./chunk-6V4U2JZS.js";
42
42
 
43
43
  // packages/safe-js/src/migrate.ts
44
44
  import { createHash } from "node:crypto";
@@ -8249,4 +8249,4 @@ export {
8249
8249
  parseMcpConfig,
8250
8250
  makeMcpModule
8251
8251
  };
8252
- //# sourceMappingURL=chunk-NZIVWYYY.js.map
8252
+ //# sourceMappingURL=chunk-EZRL4ES2.js.map
@@ -20,7 +20,7 @@ import {
20
20
  toByteSource,
21
21
  toFsError,
22
22
  validatePath
23
- } from "./chunk-3HQSRMV6.js";
23
+ } from "./chunk-6V4U2JZS.js";
24
24
 
25
25
  // packages/safe-fs/src/contracts/path.ts
26
26
  import { posix } from "node:path";
@@ -105,6 +105,7 @@ var RealFileSystem = class _RealFileSystem {
105
105
  removeDirectory: true,
106
106
  recursiveRemove: true,
107
107
  rename: true,
108
+ atomicRenameNoReplace: false,
108
109
  copy: true,
109
110
  exclusiveCopy: true,
110
111
  readlink: true,
@@ -354,6 +355,7 @@ var RealFileSystem = class _RealFileSystem {
354
355
  }
355
356
  async rename(source, destination, options = {}) {
356
357
  return this.operation("rename", source, options, async () => {
358
+ if (options.noReplace) throw new FsError("ENOTSUP", { syscall: "rename", path: source, dest: destination });
357
359
  const from = await this.path(source, { ...options, followFinal: false });
358
360
  const to = await this.path(destination, { ...options, followFinal: false, missing: "final" });
359
361
  this.protectTerminal(source);
@@ -829,6 +831,7 @@ var S3FileSystem = class {
829
831
  append: options.transport.capabilities?.conditionalPut === true,
830
832
  exclusiveCreate: options.transport.capabilities?.conditionalPut === true,
831
833
  truncate: options.transport.capabilities?.conditionalPut === true,
834
+ atomicRenameNoReplace: false,
832
835
  rename: this.allowRename && options.transport.capabilities?.conditionalDelete === true && (options.transport.capabilities?.conditionalCopy === true || options.transport.capabilities?.conditionalPut === true),
833
836
  streamingAppend: options.transport.capabilities?.streamingWrite === true && options.transport.capabilities?.conditionalPut === true && typeof options.transport.putObjectStream === "function",
834
837
  randomAccessWrite: false,
@@ -1301,6 +1304,10 @@ var S3FileSystem = class {
1301
1304
  }
1302
1305
  }
1303
1306
  async rename(sourceInput, destinationInput, options = {}) {
1307
+ if (options.noReplace) {
1308
+ options.signal?.throwIfAborted();
1309
+ this.unsupported("atomic no-replace rename", sourceInput);
1310
+ }
1304
1311
  const source = this.path(sourceInput);
1305
1312
  const destination = this.path(destinationInput);
1306
1313
  this.writable(destination);
@@ -2750,4 +2757,4 @@ export {
2750
2757
  createNodeFsBridge,
2751
2758
  createNodeFileSystemAdapterRegistry
2752
2759
  };
2753
- //# sourceMappingURL=chunk-5JIIALYB.js.map
2760
+ //# sourceMappingURL=chunk-XOQ5CVQM.js.map