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

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.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
+
5
+
6
+ ### Features
7
+
8
+ * **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))
9
+
3
10
  ## [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
11
 
5
12
 
package/lib/cjs/type.d.ts CHANGED
@@ -2,6 +2,7 @@ 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;
7
8
  };
@@ -87,10 +88,16 @@ export interface AFSModule {
87
88
  exec?(path: string, args: Record<string, any>, options: AFSExecOptions): Promise<AFSExecResult>;
88
89
  }
89
90
  export type AFSRootEvents = {
90
- agentSucceed: [{
91
- input: object;
92
- output: object;
93
- }];
91
+ agentSucceed: [
92
+ {
93
+ agentId?: string;
94
+ userId?: string;
95
+ sessionId?: string;
96
+ input: object;
97
+ output: object;
98
+ messages?: object[];
99
+ }
100
+ ];
94
101
  historyCreated: [{
95
102
  entry: AFSEntry;
96
103
  }];
@@ -126,6 +133,7 @@ export interface AFSEntry<T = any> {
126
133
  createdAt?: Date;
127
134
  updatedAt?: Date;
128
135
  path: string;
136
+ agentId?: string | null;
129
137
  userId?: string | null;
130
138
  sessionId?: string | null;
131
139
  summary?: string | null;
package/lib/dts/type.d.ts CHANGED
@@ -2,6 +2,7 @@ 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;
7
8
  };
@@ -87,10 +88,16 @@ export interface AFSModule {
87
88
  exec?(path: string, args: Record<string, any>, options: AFSExecOptions): Promise<AFSExecResult>;
88
89
  }
89
90
  export type AFSRootEvents = {
90
- agentSucceed: [{
91
- input: object;
92
- output: object;
93
- }];
91
+ agentSucceed: [
92
+ {
93
+ agentId?: string;
94
+ userId?: string;
95
+ sessionId?: string;
96
+ input: object;
97
+ output: object;
98
+ messages?: object[];
99
+ }
100
+ ];
94
101
  historyCreated: [{
95
102
  entry: AFSEntry;
96
103
  }];
@@ -126,6 +133,7 @@ export interface AFSEntry<T = any> {
126
133
  createdAt?: Date;
127
134
  updatedAt?: Date;
128
135
  path: string;
136
+ agentId?: string | null;
129
137
  userId?: string | null;
130
138
  sessionId?: string | null;
131
139
  summary?: string | null;
package/lib/esm/type.d.ts CHANGED
@@ -2,6 +2,7 @@ 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;
7
8
  };
@@ -87,10 +88,16 @@ export interface AFSModule {
87
88
  exec?(path: string, args: Record<string, any>, options: AFSExecOptions): Promise<AFSExecResult>;
88
89
  }
89
90
  export type AFSRootEvents = {
90
- agentSucceed: [{
91
- input: object;
92
- output: object;
93
- }];
91
+ agentSucceed: [
92
+ {
93
+ agentId?: string;
94
+ userId?: string;
95
+ sessionId?: string;
96
+ input: object;
97
+ output: object;
98
+ messages?: object[];
99
+ }
100
+ ];
94
101
  historyCreated: [{
95
102
  entry: AFSEntry;
96
103
  }];
@@ -126,6 +133,7 @@ export interface AFSEntry<T = any> {
126
133
  createdAt?: Date;
127
134
  updatedAt?: Date;
128
135
  path: string;
136
+ agentId?: string | null;
129
137
  userId?: string | null;
130
138
  sessionId?: string | null;
131
139
  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.4",
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"