@aigne/core 1.67.0-beta.2 → 1.67.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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.67.0-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.67.0-beta.3...core-v1.67.0-beta.4) (2025-11-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **core:** order history entries by time in ascending order ([#736](https://github.com/AIGNE-io/aigne-framework/issues/736)) ([7a3c2c3](https://github.com/AIGNE-io/aigne-framework/commit/7a3c2c32c428026ae7b8025f42ac51c38374915a))
9
+
10
+ ## [1.67.0-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.67.0-beta.2...core-v1.67.0-beta.3) (2025-11-12)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **core:** improved ImageAgent parameter filtering to reduce redundant parameter passing ([#734](https://github.com/AIGNE-io/aigne-framework/issues/734)) ([f8f7da2](https://github.com/AIGNE-io/aigne-framework/commit/f8f7da21d6e55062da0d2070b3289388ba5e6702))
16
+
3
17
  ## [1.67.0-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.67.0-beta.1...core-v1.67.0-beta.2) (2025-11-12)
4
18
 
5
19
 
@@ -44,8 +44,9 @@ class ImageAgent extends agent_js_1.Agent {
44
44
  input,
45
45
  agent: this,
46
46
  });
47
+ const n = input.n || this.modelOptions?.n;
47
48
  return (await this.invokeChildAgent(imageModel, {
48
- ...input,
49
+ n: n && typeof n === "number" ? n : undefined,
49
50
  modelOptions: this.modelOptions,
50
51
  prompt,
51
52
  image,
@@ -125,7 +125,9 @@ class PromptBuilder {
125
125
  const ms = result.list.map((entry) => ({ content: (0, yaml_1.stringify)(entry.content) }));
126
126
  memories.push(...ms);
127
127
  }
128
- memories.push(...history.list.filter((i) => (0, type_utils_js_1.isNonNullable)(i.content)));
128
+ memories.push(...history.list
129
+ .reverse()
130
+ .filter((i) => (0, type_utils_js_1.isNonNullable)(i.content)));
129
131
  }
130
132
  }
131
133
  if (memories.length)
@@ -38,8 +38,9 @@ export class ImageAgent extends Agent {
38
38
  input,
39
39
  agent: this,
40
40
  });
41
+ const n = input.n || this.modelOptions?.n;
41
42
  return (await this.invokeChildAgent(imageModel, {
42
- ...input,
43
+ n: n && typeof n === "number" ? n : undefined,
43
44
  modelOptions: this.modelOptions,
44
45
  prompt,
45
46
  image,
@@ -122,7 +122,9 @@ export class PromptBuilder {
122
122
  const ms = result.list.map((entry) => ({ content: stringify(entry.content) }));
123
123
  memories.push(...ms);
124
124
  }
125
- memories.push(...history.list.filter((i) => isNonNullable(i.content)));
125
+ memories.push(...history.list
126
+ .reverse()
127
+ .filter((i) => isNonNullable(i.content)));
126
128
  }
127
129
  }
128
130
  if (memories.length)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/core",
3
- "version": "1.67.0-beta.2",
3
+ "version": "1.67.0-beta.4",
4
4
  "description": "The functional core of agentic AI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -93,8 +93,8 @@
93
93
  "zod-from-json-schema": "^0.0.5",
94
94
  "zod-to-json-schema": "^3.24.6",
95
95
  "@aigne/afs": "^1.1.2-beta",
96
- "@aigne/observability-api": "^0.11.6-beta.2",
97
- "@aigne/platform-helpers": "^0.6.3"
96
+ "@aigne/platform-helpers": "^0.6.3",
97
+ "@aigne/observability-api": "^0.11.6-beta.2"
98
98
  },
99
99
  "devDependencies": {
100
100
  "@types/bun": "^1.2.22",