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

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [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
+
5
+
6
+ ### Features
7
+
8
+ * 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))
9
+
10
+ ## [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)
11
+
12
+
13
+ ### Features
14
+
15
+ * **core:** add session history support ([#858](https://github.com/AIGNE-io/aigne-framework/issues/858)) ([28a070e](https://github.com/AIGNE-io/aigne-framework/commit/28a070ed33b821d1fd344b899706d817ca992b9f))
16
+
3
17
  ## [1.4.0-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/afs-v1.4.0-beta.2...afs-v1.4.0-beta.3) (2025-12-24)
4
18
 
5
19
 
package/lib/cjs/type.d.ts CHANGED
@@ -2,8 +2,11 @@ import type { Emitter } from "strict-event-emitter";
2
2
  import { type ZodType } from "zod";
3
3
  export interface AFSListOptions {
4
4
  filter?: {
5
+ agentId?: string;
5
6
  userId?: string;
6
7
  sessionId?: string;
8
+ before?: string;
9
+ after?: string;
7
10
  };
8
11
  maxDepth?: number;
9
12
  limit?: number;
@@ -37,6 +40,7 @@ export interface AFSSearchResult {
37
40
  message?: string;
38
41
  }
39
42
  export interface AFSReadOptions {
43
+ filter?: AFSListOptions["filter"];
40
44
  context?: any;
41
45
  }
42
46
  export interface AFSReadResult {
@@ -87,10 +91,16 @@ export interface AFSModule {
87
91
  exec?(path: string, args: Record<string, any>, options: AFSExecOptions): Promise<AFSExecResult>;
88
92
  }
89
93
  export type AFSRootEvents = {
90
- agentSucceed: [{
91
- input: object;
92
- output: object;
93
- }];
94
+ agentSucceed: [
95
+ {
96
+ agentId?: string;
97
+ userId?: string;
98
+ sessionId?: string;
99
+ input: object;
100
+ output: object;
101
+ messages?: object[];
102
+ }
103
+ ];
94
104
  historyCreated: [{
95
105
  entry: AFSEntry;
96
106
  }];
@@ -126,6 +136,7 @@ export interface AFSEntry<T = any> {
126
136
  createdAt?: Date;
127
137
  updatedAt?: Date;
128
138
  path: string;
139
+ agentId?: string | null;
129
140
  userId?: string | null;
130
141
  sessionId?: string | null;
131
142
  summary?: string | null;
package/lib/dts/type.d.ts CHANGED
@@ -2,8 +2,11 @@ import type { Emitter } from "strict-event-emitter";
2
2
  import { type ZodType } from "zod";
3
3
  export interface AFSListOptions {
4
4
  filter?: {
5
+ agentId?: string;
5
6
  userId?: string;
6
7
  sessionId?: string;
8
+ before?: string;
9
+ after?: string;
7
10
  };
8
11
  maxDepth?: number;
9
12
  limit?: number;
@@ -37,6 +40,7 @@ export interface AFSSearchResult {
37
40
  message?: string;
38
41
  }
39
42
  export interface AFSReadOptions {
43
+ filter?: AFSListOptions["filter"];
40
44
  context?: any;
41
45
  }
42
46
  export interface AFSReadResult {
@@ -87,10 +91,16 @@ export interface AFSModule {
87
91
  exec?(path: string, args: Record<string, any>, options: AFSExecOptions): Promise<AFSExecResult>;
88
92
  }
89
93
  export type AFSRootEvents = {
90
- agentSucceed: [{
91
- input: object;
92
- output: object;
93
- }];
94
+ agentSucceed: [
95
+ {
96
+ agentId?: string;
97
+ userId?: string;
98
+ sessionId?: string;
99
+ input: object;
100
+ output: object;
101
+ messages?: object[];
102
+ }
103
+ ];
94
104
  historyCreated: [{
95
105
  entry: AFSEntry;
96
106
  }];
@@ -126,6 +136,7 @@ export interface AFSEntry<T = any> {
126
136
  createdAt?: Date;
127
137
  updatedAt?: Date;
128
138
  path: string;
139
+ agentId?: string | null;
129
140
  userId?: string | null;
130
141
  sessionId?: string | null;
131
142
  summary?: string | null;
package/lib/esm/type.d.ts CHANGED
@@ -2,8 +2,11 @@ import type { Emitter } from "strict-event-emitter";
2
2
  import { type ZodType } from "zod";
3
3
  export interface AFSListOptions {
4
4
  filter?: {
5
+ agentId?: string;
5
6
  userId?: string;
6
7
  sessionId?: string;
8
+ before?: string;
9
+ after?: string;
7
10
  };
8
11
  maxDepth?: number;
9
12
  limit?: number;
@@ -37,6 +40,7 @@ export interface AFSSearchResult {
37
40
  message?: string;
38
41
  }
39
42
  export interface AFSReadOptions {
43
+ filter?: AFSListOptions["filter"];
40
44
  context?: any;
41
45
  }
42
46
  export interface AFSReadResult {
@@ -87,10 +91,16 @@ export interface AFSModule {
87
91
  exec?(path: string, args: Record<string, any>, options: AFSExecOptions): Promise<AFSExecResult>;
88
92
  }
89
93
  export type AFSRootEvents = {
90
- agentSucceed: [{
91
- input: object;
92
- output: object;
93
- }];
94
+ agentSucceed: [
95
+ {
96
+ agentId?: string;
97
+ userId?: string;
98
+ sessionId?: string;
99
+ input: object;
100
+ output: object;
101
+ messages?: object[];
102
+ }
103
+ ];
94
104
  historyCreated: [{
95
105
  entry: AFSEntry;
96
106
  }];
@@ -126,6 +136,7 @@ export interface AFSEntry<T = any> {
126
136
  createdAt?: Date;
127
137
  updatedAt?: Date;
128
138
  path: string;
139
+ agentId?: string | null;
129
140
  userId?: string | null;
130
141
  sessionId?: string | null;
131
142
  summary?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/afs",
3
- "version": "1.4.0-beta.3",
3
+ "version": "1.4.0-beta.5",
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"