@aigne/core 1.64.0-beta → 1.64.0
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 +16 -0
- package/lib/cjs/prompt/skills/afs.js +27 -6
- package/lib/esm/prompt/skills/afs.js +27 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.64.0](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.64.0-beta.1...core-v1.64.0) (2025-10-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @aigne/observability-api bumped to 0.11.3
|
|
11
|
+
|
|
12
|
+
## [1.64.0-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.64.0-beta...core-v1.64.0-beta.1) (2025-10-22)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* standardize AFS skills return format with status and metadata ([#653](https://github.com/AIGNE-io/aigne-framework/issues/653)) ([66b6b00](https://github.com/AIGNE-io/aigne-framework/commit/66b6b005a846ab795e65e9f20b950c854a69ffd2))
|
|
18
|
+
|
|
3
19
|
## [1.64.0-beta](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.63.0...core-v1.64.0-beta) (2025-10-21)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -19,7 +19,13 @@ async function getAFSSkills(afs) {
|
|
|
19
19
|
.optional(),
|
|
20
20
|
}),
|
|
21
21
|
process: async (input) => {
|
|
22
|
-
|
|
22
|
+
const result = await afs.list(input.path, input.options);
|
|
23
|
+
return {
|
|
24
|
+
status: "success",
|
|
25
|
+
tool: "afs_list",
|
|
26
|
+
options: input.options,
|
|
27
|
+
...result,
|
|
28
|
+
};
|
|
23
29
|
},
|
|
24
30
|
}),
|
|
25
31
|
agent_js_1.FunctionAgent.from({
|
|
@@ -37,7 +43,14 @@ async function getAFSSkills(afs) {
|
|
|
37
43
|
.optional(),
|
|
38
44
|
}),
|
|
39
45
|
process: async (input) => {
|
|
40
|
-
|
|
46
|
+
const result = await afs.search(input.path, input.query, input.options);
|
|
47
|
+
return {
|
|
48
|
+
status: "success",
|
|
49
|
+
tool: "afs_search",
|
|
50
|
+
query: input.query,
|
|
51
|
+
options: input.options,
|
|
52
|
+
...result,
|
|
53
|
+
};
|
|
41
54
|
},
|
|
42
55
|
}),
|
|
43
56
|
agent_js_1.FunctionAgent.from({
|
|
@@ -49,9 +62,12 @@ async function getAFSSkills(afs) {
|
|
|
49
62
|
.describe("Exact file path from list or search results (e.g., '/docs/api.md', '/src/utils/helper.js')"),
|
|
50
63
|
}),
|
|
51
64
|
process: async (input) => {
|
|
52
|
-
const
|
|
65
|
+
const result = await afs.read(input.path);
|
|
53
66
|
return {
|
|
54
|
-
|
|
67
|
+
status: "success",
|
|
68
|
+
tool: "afs_read",
|
|
69
|
+
path: input.path,
|
|
70
|
+
...result,
|
|
55
71
|
};
|
|
56
72
|
},
|
|
57
73
|
}),
|
|
@@ -65,10 +81,15 @@ async function getAFSSkills(afs) {
|
|
|
65
81
|
content: zod_1.z.string().describe("The text content to write to the file"),
|
|
66
82
|
}),
|
|
67
83
|
process: async (input) => {
|
|
68
|
-
const
|
|
84
|
+
const result = await afs.write(input.path, {
|
|
69
85
|
content: input.content,
|
|
70
86
|
});
|
|
71
|
-
return {
|
|
87
|
+
return {
|
|
88
|
+
status: "success",
|
|
89
|
+
tool: "afs_write",
|
|
90
|
+
path: input.path,
|
|
91
|
+
...result,
|
|
92
|
+
};
|
|
72
93
|
},
|
|
73
94
|
}),
|
|
74
95
|
];
|
|
@@ -16,7 +16,13 @@ export async function getAFSSkills(afs) {
|
|
|
16
16
|
.optional(),
|
|
17
17
|
}),
|
|
18
18
|
process: async (input) => {
|
|
19
|
-
|
|
19
|
+
const result = await afs.list(input.path, input.options);
|
|
20
|
+
return {
|
|
21
|
+
status: "success",
|
|
22
|
+
tool: "afs_list",
|
|
23
|
+
options: input.options,
|
|
24
|
+
...result,
|
|
25
|
+
};
|
|
20
26
|
},
|
|
21
27
|
}),
|
|
22
28
|
FunctionAgent.from({
|
|
@@ -34,7 +40,14 @@ export async function getAFSSkills(afs) {
|
|
|
34
40
|
.optional(),
|
|
35
41
|
}),
|
|
36
42
|
process: async (input) => {
|
|
37
|
-
|
|
43
|
+
const result = await afs.search(input.path, input.query, input.options);
|
|
44
|
+
return {
|
|
45
|
+
status: "success",
|
|
46
|
+
tool: "afs_search",
|
|
47
|
+
query: input.query,
|
|
48
|
+
options: input.options,
|
|
49
|
+
...result,
|
|
50
|
+
};
|
|
38
51
|
},
|
|
39
52
|
}),
|
|
40
53
|
FunctionAgent.from({
|
|
@@ -46,9 +59,12 @@ export async function getAFSSkills(afs) {
|
|
|
46
59
|
.describe("Exact file path from list or search results (e.g., '/docs/api.md', '/src/utils/helper.js')"),
|
|
47
60
|
}),
|
|
48
61
|
process: async (input) => {
|
|
49
|
-
const
|
|
62
|
+
const result = await afs.read(input.path);
|
|
50
63
|
return {
|
|
51
|
-
|
|
64
|
+
status: "success",
|
|
65
|
+
tool: "afs_read",
|
|
66
|
+
path: input.path,
|
|
67
|
+
...result,
|
|
52
68
|
};
|
|
53
69
|
},
|
|
54
70
|
}),
|
|
@@ -62,10 +78,15 @@ export async function getAFSSkills(afs) {
|
|
|
62
78
|
content: z.string().describe("The text content to write to the file"),
|
|
63
79
|
}),
|
|
64
80
|
process: async (input) => {
|
|
65
|
-
const
|
|
81
|
+
const result = await afs.write(input.path, {
|
|
66
82
|
content: input.content,
|
|
67
83
|
});
|
|
68
|
-
return {
|
|
84
|
+
return {
|
|
85
|
+
status: "success",
|
|
86
|
+
tool: "afs_write",
|
|
87
|
+
path: input.path,
|
|
88
|
+
...result,
|
|
89
|
+
};
|
|
69
90
|
},
|
|
70
91
|
}),
|
|
71
92
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/core",
|
|
3
|
-
"version": "1.64.0
|
|
3
|
+
"version": "1.64.0",
|
|
4
4
|
"description": "The functional core of agentic AI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"zod": "^3.25.67",
|
|
92
92
|
"zod-from-json-schema": "^0.0.5",
|
|
93
93
|
"zod-to-json-schema": "^3.24.6",
|
|
94
|
-
"@aigne/observability-api": "^0.11.3
|
|
94
|
+
"@aigne/observability-api": "^0.11.3",
|
|
95
95
|
"@aigne/platform-helpers": "^0.6.3",
|
|
96
96
|
"@aigne/afs": "^1.1.0"
|
|
97
97
|
},
|