@aigne/afs 1.2.2-beta → 1.2.3-beta
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 +9 -0
- package/lib/cjs/afs.js +1 -1
- package/lib/esm/afs.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.3-beta](https://github.com/AIGNE-io/aigne-framework/compare/afs-v1.2.2...afs-v1.2.3-beta) (2025-12-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **afs:** check module existence on normalized path ([#793](https://github.com/AIGNE-io/aigne-framework/issues/793)) ([0c991bf](https://github.com/AIGNE-io/aigne-framework/commit/0c991bf0caa948ce62948986ce885b5a98437689))
|
|
9
|
+
|
|
10
|
+
## [1.2.2](https://github.com/AIGNE-io/aigne-framework/compare/afs-v1.2.2-beta...afs-v1.2.2) (2025-11-28)
|
|
11
|
+
|
|
3
12
|
## [1.2.2-beta](https://github.com/AIGNE-io/aigne-framework/compare/afs-v1.2.1...afs-v1.2.2-beta) (2025-11-28)
|
|
4
13
|
|
|
5
14
|
|
package/lib/cjs/afs.js
CHANGED
|
@@ -19,10 +19,10 @@ class AFS extends strict_event_emitter_1.Emitter {
|
|
|
19
19
|
if (!/^\/[^/]+$/.test(path)) {
|
|
20
20
|
throw new Error(`Invalid mount path: ${path}. Must start with '/' and contain no other '/'`);
|
|
21
21
|
}
|
|
22
|
+
path = (0, ufo_1.joinURL)(MODULES_ROOT_DIR, path);
|
|
22
23
|
if (this.modules.has(path)) {
|
|
23
24
|
throw new Error(`Module already mounted at path: ${path}`);
|
|
24
25
|
}
|
|
25
|
-
path = (0, ufo_1.joinURL)(MODULES_ROOT_DIR, path);
|
|
26
26
|
this.modules.set(path, module);
|
|
27
27
|
module.onMount?.(this);
|
|
28
28
|
return this;
|
package/lib/esm/afs.js
CHANGED
|
@@ -16,10 +16,10 @@ export class AFS extends Emitter {
|
|
|
16
16
|
if (!/^\/[^/]+$/.test(path)) {
|
|
17
17
|
throw new Error(`Invalid mount path: ${path}. Must start with '/' and contain no other '/'`);
|
|
18
18
|
}
|
|
19
|
+
path = joinURL(MODULES_ROOT_DIR, path);
|
|
19
20
|
if (this.modules.has(path)) {
|
|
20
21
|
throw new Error(`Module already mounted at path: ${path}`);
|
|
21
22
|
}
|
|
22
|
-
path = joinURL(MODULES_ROOT_DIR, path);
|
|
23
23
|
this.modules.set(path, module);
|
|
24
24
|
module.onMount?.(this);
|
|
25
25
|
return this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/afs",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3-beta",
|
|
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"
|