@aigne/core 1.72.0-beta.8 → 1.72.0-beta.9

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.72.0-beta.9](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.72.0-beta.8...core-v1.72.0-beta.9) (2026-01-02)
4
+
5
+
6
+ ### Features
7
+
8
+ * **cli:** add run-skill command ([#868](https://github.com/AIGNE-io/aigne-framework/issues/868)) ([f62ffe2](https://github.com/AIGNE-io/aigne-framework/commit/f62ffe21acc49ec1a68349fbb35a13d0fadd239a))
9
+
3
10
  ## [1.72.0-beta.8](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.72.0-beta.7...core-v1.72.0-beta.8) (2025-12-31)
4
11
 
5
12
 
@@ -82,14 +82,18 @@ class AgentSession {
82
82
  ...(currentEntry?.messages ?? []),
83
83
  ];
84
84
  // Filter out thinking messages from content
85
- return messages.map((msg) => {
85
+ return messages
86
+ .map((msg) => {
86
87
  if (!msg.content || typeof msg.content === "string") {
87
88
  return msg;
88
89
  }
89
90
  // Filter out thinking from UnionContent[]
90
91
  const filteredContent = msg.content.filter((c) => !(c.type === "text" && c.isThinking));
91
- return { ...msg, content: filteredContent.length > 0 ? filteredContent : undefined };
92
- });
92
+ if (filteredContent.length === 0)
93
+ return null;
94
+ return { ...msg, content: filteredContent };
95
+ })
96
+ .filter(type_utils_js_1.isNonNullable);
93
97
  }
94
98
  async startMessage(input, message, options) {
95
99
  await this.ensureInitialized();
@@ -44,6 +44,7 @@ async function loadAgentSkillFromAFS({ afs, }) {
44
44
  for (const module of filtered) {
45
45
  const data = (await afs.list(module.path, {
46
46
  pattern: "**/SKILL.md",
47
+ maxDepth: 10,
47
48
  })).data;
48
49
  for (const entry of data) {
49
50
  const { data: file } = await afs.read(entry.path);
@@ -46,14 +46,18 @@ export class AgentSession {
46
46
  ...(currentEntry?.messages ?? []),
47
47
  ];
48
48
  // Filter out thinking messages from content
49
- return messages.map((msg) => {
49
+ return messages
50
+ .map((msg) => {
50
51
  if (!msg.content || typeof msg.content === "string") {
51
52
  return msg;
52
53
  }
53
54
  // Filter out thinking from UnionContent[]
54
55
  const filteredContent = msg.content.filter((c) => !(c.type === "text" && c.isThinking));
55
- return { ...msg, content: filteredContent.length > 0 ? filteredContent : undefined };
56
- });
56
+ if (filteredContent.length === 0)
57
+ return null;
58
+ return { ...msg, content: filteredContent };
59
+ })
60
+ .filter(isNonNullable);
57
61
  }
58
62
  async startMessage(input, message, options) {
59
63
  await this.ensureInitialized();
@@ -36,6 +36,7 @@ export async function loadAgentSkillFromAFS({ afs, }) {
36
36
  for (const module of filtered) {
37
37
  const data = (await afs.list(module.path, {
38
38
  pattern: "**/SKILL.md",
39
+ maxDepth: 10,
39
40
  })).data;
40
41
  for (const entry of data) {
41
42
  const { data: file } = await afs.read(entry.path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/core",
3
- "version": "1.72.0-beta.8",
3
+ "version": "1.72.0-beta.9",
4
4
  "description": "The functional core of agentic AI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -93,9 +93,9 @@
93
93
  "zod": "^3.25.67",
94
94
  "zod-from-json-schema": "^0.0.5",
95
95
  "zod-to-json-schema": "^3.24.6",
96
- "@aigne/observability-api": "^0.11.14-beta.1",
97
- "@aigne/platform-helpers": "^0.6.7-beta",
98
96
  "@aigne/afs": "^1.4.0-beta.5",
97
+ "@aigne/platform-helpers": "^0.6.7-beta",
98
+ "@aigne/observability-api": "^0.11.14-beta.1",
99
99
  "@aigne/afs-history": "^1.2.0-beta.5"
100
100
  },
101
101
  "devDependencies": {