zen-fs-config 0.3.0 → 0.3.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.d.mts CHANGED
@@ -136,6 +136,8 @@ interface IConfigRepo {
136
136
  readonly nodeId: string;
137
137
  /** ZenFS-compatible fs object, context-isolated to this app's directories. */
138
138
  readonly fs: typeof node_fs;
139
+ /** Un-chrooted fs for low-level browsing (includes /.meta/, all app dirs). */
140
+ readonly rootFS: typeof node_fs;
139
141
  /** Load or reload configuration from a raw string. */
140
142
  load(rawConfig: string): Promise<void>;
141
143
  /** Read a config value. */
@@ -229,6 +231,8 @@ declare class ConfigRepo implements IConfigRepo {
229
231
  readonly nodeId: string;
230
232
  /** Chroot-isolated fs for app-facing API. Typed as `any` to match `typeof import('node:fs')` duck-typically. */
231
233
  readonly fs: any;
234
+ /** Un-chrooted fs for low-level browsing. */
235
+ readonly rootFS: any;
232
236
  private cachedFS;
233
237
  private fullFS;
234
238
  private serializer;
package/dist/index.d.ts CHANGED
@@ -136,6 +136,8 @@ interface IConfigRepo {
136
136
  readonly nodeId: string;
137
137
  /** ZenFS-compatible fs object, context-isolated to this app's directories. */
138
138
  readonly fs: typeof node_fs;
139
+ /** Un-chrooted fs for low-level browsing (includes /.meta/, all app dirs). */
140
+ readonly rootFS: typeof node_fs;
139
141
  /** Load or reload configuration from a raw string. */
140
142
  load(rawConfig: string): Promise<void>;
141
143
  /** Read a config value. */
@@ -229,6 +231,8 @@ declare class ConfigRepo implements IConfigRepo {
229
231
  readonly nodeId: string;
230
232
  /** Chroot-isolated fs for app-facing API. Typed as `any` to match `typeof import('node:fs')` duck-typically. */
231
233
  readonly fs: any;
234
+ /** Un-chrooted fs for low-level browsing. */
235
+ readonly rootFS: any;
232
236
  private cachedFS;
233
237
  private fullFS;
234
238
  private serializer;
package/dist/index.js CHANGED
@@ -883,6 +883,8 @@ var ConfigRepo = class {
883
883
  nodeId;
884
884
  /** Chroot-isolated fs for app-facing API. Typed as `any` to match `typeof import('node:fs')` duck-typically. */
885
885
  fs;
886
+ /** Un-chrooted fs for low-level browsing. */
887
+ rootFS;
886
888
  cachedFS;
887
889
  fullFS;
888
890
  serializer;
@@ -901,6 +903,7 @@ var ConfigRepo = class {
901
903
  this.onConflictCallback = onConflict;
902
904
  this.fullFS = cachedFSToSyncableFS(cachedFS);
903
905
  this.fs = createChrootFS(cachedFS, `/${appId}`);
906
+ this.rootFS = createChrootFS(cachedFS, "/");
904
907
  }
905
908
  // -----------------------------------------------------------------------
906
909
  // IConfigRepo — Load
package/dist/index.mjs CHANGED
@@ -836,6 +836,8 @@ var ConfigRepo = class {
836
836
  nodeId;
837
837
  /** Chroot-isolated fs for app-facing API. Typed as `any` to match `typeof import('node:fs')` duck-typically. */
838
838
  fs;
839
+ /** Un-chrooted fs for low-level browsing. */
840
+ rootFS;
839
841
  cachedFS;
840
842
  fullFS;
841
843
  serializer;
@@ -854,6 +856,7 @@ var ConfigRepo = class {
854
856
  this.onConflictCallback = onConflict;
855
857
  this.fullFS = cachedFSToSyncableFS(cachedFS);
856
858
  this.fs = createChrootFS(cachedFS, `/${appId}`);
859
+ this.rootFS = createChrootFS(cachedFS, "/");
857
860
  }
858
861
  // -----------------------------------------------------------------------
859
862
  // IConfigRepo — Load
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-fs-config",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Distributed config management library built on ZenFS, zen-fs-cache, and zen-fs-sync",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",