poe-code 14.0.22 → 14.0.23

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 (30) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/metafile.json +1 -1
  4. package/package.json +1 -1
  5. package/packages/safe-bash/dist/browser.js +108 -12
  6. package/packages/safe-bash/dist/browser.js.map +2 -2
  7. package/packages/safe-bash/dist/commands/network/fetch-transport.d.ts.map +1 -1
  8. package/packages/safe-bash/dist/commands/network/fetch-transport.js +2 -0
  9. package/packages/safe-bash/dist/commands/network/fetch-transport.js.map +1 -1
  10. package/packages/safe-bash/dist/commands/streams.d.ts.map +1 -1
  11. package/packages/safe-bash/dist/commands/streams.js +114 -13
  12. package/packages/safe-bash/dist/commands/streams.js.map +1 -1
  13. package/packages/safe-fs/dist/contracts/filesystem.d.ts +1 -0
  14. package/packages/safe-js/dist/browser/chunks/{chunk-ET2GNCA5.js → chunk-EMJUKJ6C.js} +6 -1
  15. package/packages/safe-js/dist/browser/chunks/chunk-EMJUKJ6C.js.map +7 -0
  16. package/packages/safe-js/dist/browser/safe-fs-core.js +1 -1
  17. package/packages/safe-js/dist/browser/safe-fs.js +1 -1
  18. package/packages/safe-js/dist/chunks/{chunk-WFXKOHDU.js → chunk-AFVEPD3R.js} +2 -2
  19. package/packages/safe-js/dist/chunks/{chunk-BUNDGMBF.js → chunk-WGUFH7HF.js} +3 -3
  20. package/packages/safe-js/dist/chunks/{chunk-FEOGVSSU.js → chunk-WMZQYBLB.js} +6 -1
  21. package/packages/safe-js/dist/chunks/chunk-WMZQYBLB.js.map +7 -0
  22. package/packages/safe-js/dist/cli.js +3 -3
  23. package/packages/safe-js/dist/index.js +3 -3
  24. package/packages/safe-js/dist/safe-fs-core.js +1 -1
  25. package/packages/safe-js/dist/safe-fs-node.js +2 -2
  26. package/packages/safe-js/dist/safe-fs.js +2 -2
  27. package/packages/safe-js/dist/browser/chunks/chunk-ET2GNCA5.js.map +0 -7
  28. package/packages/safe-js/dist/chunks/chunk-FEOGVSSU.js.map +0 -7
  29. /package/packages/safe-js/dist/chunks/{chunk-WFXKOHDU.js.map → chunk-AFVEPD3R.js.map} +0 -0
  30. /package/packages/safe-js/dist/chunks/{chunk-BUNDGMBF.js.map → chunk-WGUFH7HF.js.map} +0 -0
@@ -32,7 +32,7 @@ import {
32
32
  toFsError,
33
33
  validatePath,
34
34
  withFileSystemQuota
35
- } from "./chunks/chunk-ET2GNCA5.js";
35
+ } from "./chunks/chunk-EMJUKJ6C.js";
36
36
  export {
37
37
  ACCESS_MODES,
38
38
  FileSystemQuotaError,
@@ -32,7 +32,7 @@ import {
32
32
  toFsError,
33
33
  validatePath,
34
34
  withFileSystemQuota
35
- } from "./chunks/chunk-ET2GNCA5.js";
35
+ } from "./chunks/chunk-EMJUKJ6C.js";
36
36
  export {
37
37
  ACCESS_MODES,
38
38
  FileSystemQuotaError,
@@ -16,7 +16,7 @@ import {
16
16
  toByteSource,
17
17
  toFsError,
18
18
  validatePath
19
- } from "./chunk-FEOGVSSU.js";
19
+ } from "./chunk-WMZQYBLB.js";
20
20
 
21
21
  // packages/safe-fs/src/contracts/path.ts
22
22
  import { posix } from "node:path";
@@ -2610,4 +2610,4 @@ export {
2610
2610
  createFileSystem,
2611
2611
  createNodeFileSystemAdapterRegistry
2612
2612
  };
2613
- //# sourceMappingURL=chunk-WFXKOHDU.js.map
2613
+ //# sourceMappingURL=chunk-AFVEPD3R.js.map
@@ -34,11 +34,11 @@ import {
34
34
  createNodeFsBridge,
35
35
  readConfigRecord,
36
36
  validateFileSystemConfig
37
- } from "./chunk-WFXKOHDU.js";
37
+ } from "./chunk-AFVEPD3R.js";
38
38
  import {
39
39
  FsError,
40
40
  isPathWithin
41
- } from "./chunk-FEOGVSSU.js";
41
+ } from "./chunk-WMZQYBLB.js";
42
42
 
43
43
  // packages/safe-js/src/migrate.ts
44
44
  import { createHash } from "node:crypto";
@@ -8245,4 +8245,4 @@ export {
8245
8245
  parseMcpConfig,
8246
8246
  makeMcpModule
8247
8247
  };
8248
- //# sourceMappingURL=chunk-BUNDGMBF.js.map
8248
+ //# sourceMappingURL=chunk-WGUFH7HF.js.map
@@ -2329,6 +2329,7 @@ var ReadOnlyFileSystem = class {
2329
2329
  const streamingRead = typeof filesystem.readStream === "function" ? filesystem.capabilities.streamingRead : false;
2330
2330
  this.#capabilities = Object.freeze({
2331
2331
  readOnly: true,
2332
+ append: false,
2332
2333
  symlinks: filesystem.capabilities.symlinks === true && typeof filesystem.readlink === "function",
2333
2334
  hardlinks: false,
2334
2335
  permissions: false,
@@ -2507,11 +2508,13 @@ var MountFileSystem = class _MountFileSystem {
2507
2508
  const streaming = (capability, method) => all(capability, [method]) ? true : mounts.some(({ backend }) => backend.capabilities[capability] !== false && typeof backend[method] === "function") ? void 0 : false;
2508
2509
  const streamingRead = streaming("streamingRead", "readStream");
2509
2510
  const streamingWrite = streaming("streamingWrite", "writeStream");
2511
+ const append = all("append") ? true : mounts.every(({ backend }) => backend.capabilities.append === false) ? false : void 0;
2510
2512
  this.capabilities = Object.freeze({
2511
2513
  get snapshotRmdir() {
2512
2514
  return mounts.some(({ backend }) => backend.capabilities.snapshotRmdir === true);
2513
2515
  },
2514
2516
  readOnly: all("readOnly"),
2517
+ ...append === void 0 ? {} : { append },
2515
2518
  symlinks: all("symlinks", ["readlink", "symlink"]),
2516
2519
  hardlinks: all("hardlinks", ["link"]),
2517
2520
  permissions: all("permissions", ["chmod"]),
@@ -2996,8 +2999,10 @@ var OverlayFileSystem = class {
2996
2999
  const readable = [this.#upper, this.#lower].map((backend) => typeof backend.readStream === "function" ? backend.capabilities.streamingRead : false);
2997
3000
  const streamingRead = readable.every((capability) => capability === true) ? true : readable.every((capability) => capability === false) ? false : void 0;
2998
3001
  const streamingWrite = writable && this.#upper.capabilities.streamingWrite === true && this.#upper.capabilities.streamingRead === true && typeof this.#upper.writeStream === "function" && typeof this.#upper.readStream === "function" ? readable.every((capability) => capability === true) ? true : void 0 : false;
3002
+ const append = !writable || this.#upper.capabilities.append === false ? false : this.#upper.capabilities.append === true ? true : void 0;
2999
3003
  this.capabilities = Object.freeze({
3000
3004
  readOnly: !writable,
3005
+ ...append === void 0 ? {} : { append },
3001
3006
  atomicRename: false,
3002
3007
  hardlinks: false,
3003
3008
  symlinks: writable && this.#upper.capabilities.symlinks === true && typeof this.#upper.symlink === "function" && typeof this.#upper.readlink === "function" && (this.#lower.capabilities.symlinks !== true || typeof this.#lower.readlink === "function"),
@@ -4417,4 +4422,4 @@ export {
4417
4422
  withFileSystemQuota,
4418
4423
  FileSystemBridge
4419
4424
  };
4420
- //# sourceMappingURL=chunk-FEOGVSSU.js.map
4425
+ //# sourceMappingURL=chunk-WMZQYBLB.js.map