@aigne/afs 1.4.0-beta.4 → 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 +14 -0
- package/lib/cjs/afs.js +2 -2
- package/lib/cjs/type.d.ts +3 -0
- package/lib/dts/type.d.ts +3 -0
- package/lib/esm/afs.js +2 -2
- package/lib/esm/type.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
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)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add session compact support for AIAgent ([#863](https://github.com/AIGNE-io/aigne-framework/issues/863)) ([9010918](https://github.com/AIGNE-io/aigne-framework/commit/9010918cd3f18b02b5c60ddc9ed5c34b568d0b28))
|
|
16
|
+
|
|
3
17
|
## [1.4.0-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/afs-v1.4.0-beta.3...afs-v1.4.0-beta.4) (2025-12-26)
|
|
4
18
|
|
|
5
19
|
|
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
|
-
|
|
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
|
-
|
|
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/cjs/type.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export interface AFSListOptions {
|
|
|
5
5
|
agentId?: string;
|
|
6
6
|
userId?: string;
|
|
7
7
|
sessionId?: string;
|
|
8
|
+
before?: string;
|
|
9
|
+
after?: string;
|
|
8
10
|
};
|
|
9
11
|
maxDepth?: number;
|
|
10
12
|
limit?: number;
|
|
@@ -38,6 +40,7 @@ export interface AFSSearchResult {
|
|
|
38
40
|
message?: string;
|
|
39
41
|
}
|
|
40
42
|
export interface AFSReadOptions {
|
|
43
|
+
filter?: AFSListOptions["filter"];
|
|
41
44
|
context?: any;
|
|
42
45
|
}
|
|
43
46
|
export interface AFSReadResult {
|
package/lib/dts/type.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export interface AFSListOptions {
|
|
|
5
5
|
agentId?: string;
|
|
6
6
|
userId?: string;
|
|
7
7
|
sessionId?: string;
|
|
8
|
+
before?: string;
|
|
9
|
+
after?: string;
|
|
8
10
|
};
|
|
9
11
|
maxDepth?: number;
|
|
10
12
|
limit?: number;
|
|
@@ -38,6 +40,7 @@ export interface AFSSearchResult {
|
|
|
38
40
|
message?: string;
|
|
39
41
|
}
|
|
40
42
|
export interface AFSReadOptions {
|
|
43
|
+
filter?: AFSListOptions["filter"];
|
|
41
44
|
context?: any;
|
|
42
45
|
}
|
|
43
46
|
export interface AFSReadResult {
|
package/lib/esm/afs.js
CHANGED
|
@@ -79,7 +79,7 @@ export class AFS extends Emitter {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
catch (error) {
|
|
82
|
-
|
|
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
|
-
|
|
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/lib/esm/type.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export interface AFSListOptions {
|
|
|
5
5
|
agentId?: string;
|
|
6
6
|
userId?: string;
|
|
7
7
|
sessionId?: string;
|
|
8
|
+
before?: string;
|
|
9
|
+
after?: string;
|
|
8
10
|
};
|
|
9
11
|
maxDepth?: number;
|
|
10
12
|
limit?: number;
|
|
@@ -38,6 +40,7 @@ export interface AFSSearchResult {
|
|
|
38
40
|
message?: string;
|
|
39
41
|
}
|
|
40
42
|
export interface AFSReadOptions {
|
|
43
|
+
filter?: AFSListOptions["filter"];
|
|
41
44
|
context?: any;
|
|
42
45
|
}
|
|
43
46
|
export interface AFSReadResult {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/afs",
|
|
3
|
-
"version": "1.4.0-beta.
|
|
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"
|