@aigne/afs 1.4.0-beta.5 → 1.4.0-beta.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.4.0-beta.6](https://github.com/AIGNE-io/aigne-framework/compare/afs-v1.4.0-beta.5...afs-v1.4.0-beta.6) (2026-01-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **afs:** throw errors instead of logging in AFS module operations ([#874](https://github.com/AIGNE-io/aigne-framework/issues/874)) ([f0cc1c4](https://github.com/AIGNE-io/aigne-framework/commit/f0cc1c4056f8b95b631d595892bb12eb75da4b9f))
9
+
3
10
  ## [1.4.0-beta.5](https://github.com/AIGNE-io/aigne-framework/compare/afs-v1.4.0-beta.4...afs-v1.4.0-beta.5) (2025-12-31)
4
11
 
5
12
 
package/lib/cjs/afs.js CHANGED
@@ -82,7 +82,7 @@ class AFS extends strict_event_emitter_1.Emitter {
82
82
  }
83
83
  }
84
84
  catch (error) {
85
- console.error(`Error listing from module at ${matched.modulePath}`, error);
85
+ throw new Error(`Error listing from module at ${matched.modulePath}: ${error.message}`);
86
86
  }
87
87
  }
88
88
  return { data: results };
@@ -196,7 +196,7 @@ class AFS extends strict_event_emitter_1.Emitter {
196
196
  messages.push(message);
197
197
  }
198
198
  catch (error) {
199
- console.error(`Error searching in module at ${modulePath}`, error);
199
+ throw new Error(`Error searching in module at ${modulePath}: ${error.message}`);
200
200
  }
201
201
  }
202
202
  return { data: results, message: messages.join("; ") };
package/lib/esm/afs.js CHANGED
@@ -79,7 +79,7 @@ export class AFS extends Emitter {
79
79
  }
80
80
  }
81
81
  catch (error) {
82
- console.error(`Error listing from module at ${matched.modulePath}`, error);
82
+ throw new Error(`Error listing from module at ${matched.modulePath}: ${error.message}`);
83
83
  }
84
84
  }
85
85
  return { data: results };
@@ -193,7 +193,7 @@ export class AFS extends Emitter {
193
193
  messages.push(message);
194
194
  }
195
195
  catch (error) {
196
- console.error(`Error searching in module at ${modulePath}`, error);
196
+ throw new Error(`Error searching in module at ${modulePath}: ${error.message}`);
197
197
  }
198
198
  }
199
199
  return { data: results, message: messages.join("; ") };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/afs",
3
- "version": "1.4.0-beta.5",
3
+ "version": "1.4.0-beta.6",
4
4
  "description": "Agentic File System (AFS) is a virtual file system that supports various storage backends and provides a unified API for file operations.",
5
5
  "publishConfig": {
6
6
  "access": "public"