@aigne/core 1.61.0-beta.5 → 1.61.0-beta.7

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.61.0-beta.7](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.61.0-beta.6...core-v1.61.0-beta.7) (2025-09-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **core:** check agent by structure instead of instanceOf ([826ef6f](https://github.com/AIGNE-io/aigne-framework/commit/826ef6fd4e9603cf51344e8e5b11af644396220e))
9
+
10
+ ## [1.61.0-beta.6](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.61.0-beta.5...core-v1.61.0-beta.6) (2025-09-26)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * multiple input reminder ([#550](https://github.com/AIGNE-io/aigne-framework/issues/550)) ([0ab858f](https://github.com/AIGNE-io/aigne-framework/commit/0ab858fbe5177f02c1ca6af239b4171a358545df))
16
+
3
17
  ## [1.61.0-beta.5](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.61.0-beta.4...core-v1.61.0-beta.5) (2025-09-25)
4
18
 
5
19
 
@@ -68,7 +82,6 @@
68
82
 
69
83
  ### Bug Fixes
70
84
 
71
- * **models:** convert local image to base64 for image model ([#517](https://github.com/AIGNE-io/aigne-framework/issues/517)) ([c0bc971](https://github.com/AIGNE-io/aigne-framework/commit/c0bc971087ef6e1caa641a699aed391a24feb40d))
72
85
  * **models:** convert local image to base64 for image model ([#517](https://github.com/AIGNE-io/aigne-framework/issues/517)) ([c0bc971](https://github.com/AIGNE-io/aigne-framework/commit/c0bc971087ef6e1caa641a699aed391a24feb40d))
73
86
 
74
87
  ## [1.60.2](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.60.1...core-v1.60.2) (2025-09-11)
@@ -420,7 +420,10 @@ async function* withAbortSignal(signal, error, fn) {
420
420
  }
421
421
  }
422
422
  const aigneContextInvokeArgsSchema = zod_1.z.object({
423
- agent: zod_1.z.union([zod_1.z.custom(), zod_1.z.custom()]),
423
+ agent: zod_1.z.union([
424
+ zod_1.z.function(),
425
+ zod_1.z.custom((agent) => !!agent && typeof agent.invoke === "function"),
426
+ ]),
424
427
  message: zod_1.z.union([zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()), zod_1.z.string()]).optional(),
425
428
  options: zod_1.z.object({ returnActiveAgent: zod_1.z.boolean().optional() }).optional(),
426
429
  });
@@ -22,7 +22,10 @@ const AIGNE_FILE_NAME = ["aigne.yaml", "aigne.yml"];
22
22
  async function load(path, options = {}) {
23
23
  const { aigne, rootDir } = await loadAIGNEFile(path);
24
24
  const allAgentPaths = new Set((0, type_utils_js_1.flat)(aigne.agents, aigne.skills, aigne.mcpServer?.agents, aigne.cli?.agents, aigne.cli?.chat).map((i) => index_js_1.nodejs.path.join(rootDir, i)));
25
- const allAgents = Object.fromEntries(await Promise.all(Array.from(allAgentPaths).map(async (path) => [path, await loadAgent(path, options)])));
25
+ const allAgents = {};
26
+ for (const path of allAgentPaths) {
27
+ allAgents[path] = await loadAgent(path, options);
28
+ }
26
29
  const pickAgents = (paths) => paths.map((filename) => allAgents[index_js_1.nodejs.path.join(rootDir, filename)]).filter(type_utils_js_1.isNonNullable);
27
30
  return {
28
31
  ...aigne,
@@ -413,7 +413,10 @@ async function* withAbortSignal(signal, error, fn) {
413
413
  }
414
414
  }
415
415
  const aigneContextInvokeArgsSchema = z.object({
416
- agent: z.union([z.custom(), z.custom()]),
416
+ agent: z.union([
417
+ z.function(),
418
+ z.custom((agent) => !!agent && typeof agent.invoke === "function"),
419
+ ]),
417
420
  message: z.union([z.record(z.string(), z.unknown()), z.string()]).optional(),
418
421
  options: z.object({ returnActiveAgent: z.boolean().optional() }).optional(),
419
422
  });
@@ -17,7 +17,10 @@ const AIGNE_FILE_NAME = ["aigne.yaml", "aigne.yml"];
17
17
  export async function load(path, options = {}) {
18
18
  const { aigne, rootDir } = await loadAIGNEFile(path);
19
19
  const allAgentPaths = new Set(flat(aigne.agents, aigne.skills, aigne.mcpServer?.agents, aigne.cli?.agents, aigne.cli?.chat).map((i) => nodejs.path.join(rootDir, i)));
20
- const allAgents = Object.fromEntries(await Promise.all(Array.from(allAgentPaths).map(async (path) => [path, await loadAgent(path, options)])));
20
+ const allAgents = {};
21
+ for (const path of allAgentPaths) {
22
+ allAgents[path] = await loadAgent(path, options);
23
+ }
21
24
  const pickAgents = (paths) => paths.map((filename) => allAgents[nodejs.path.join(rootDir, filename)]).filter(isNonNullable);
22
25
  return {
23
26
  ...aigne,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/core",
3
- "version": "1.61.0-beta.5",
3
+ "version": "1.61.0-beta.7",
4
4
  "description": "The functional core of agentic AI",
5
5
  "publishConfig": {
6
6
  "access": "public"