@aigne/agent-library 1.12.2 → 1.12.3

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
@@ -5,6 +5,22 @@
5
5
 
6
6
  * add schema transform ([#35](https://github.com/AIGNE-io/aigne-framework/issues/35)) ([c7d9a2c](https://github.com/AIGNE-io/aigne-framework/commit/c7d9a2c9fcab8d384d4198db5ff6ba4603846cdf))
7
7
 
8
+ ## [1.12.3](https://github.com/AIGNE-io/aigne-framework/compare/agent-library-v1.12.2...agent-library-v1.12.3) (2025-06-05)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * compatible nodejs version >=20 ([#149](https://github.com/AIGNE-io/aigne-framework/issues/149)) ([d5ae9f2](https://github.com/AIGNE-io/aigne-framework/commit/d5ae9f245972e87e70fd87cdd960ade9940f288c))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * The following workspace dependencies were updated
19
+ * dependencies
20
+ * @aigne/core bumped to 1.18.3
21
+ * @aigne/openai bumped to 0.2.4
22
+ * @aigne/sqlite bumped to 0.1.1
23
+
8
24
  ## [1.12.2](https://github.com/AIGNE-io/aigne-framework/compare/agent-library-v1.12.1...agent-library-v1.12.2) (2025-05-30)
9
25
 
10
26
 
@@ -1,5 +1,6 @@
1
1
  import type { AgentInvokeOptions, Context, Memory } from "@aigne/core";
2
2
  import type { PromiseOrValue } from "@aigne/core/utils/type-utils.js";
3
+ import type { SqliteRemoteDatabase } from "drizzle-orm/sqlite-proxy";
3
4
  import { MemoryStorage } from "../storage.js";
4
5
  export interface DefaultMemoryStorageOptions {
5
6
  url?: string;
@@ -10,7 +11,7 @@ export declare class DefaultMemoryStorage extends MemoryStorage {
10
11
  constructor(options?: DefaultMemoryStorageOptions | undefined);
11
12
  private _db;
12
13
  private initSqlite;
13
- get db(): Promise<import("drizzle-orm/libsql/driver-core.js").LibSQLDatabase<Record<string, never>> | import("drizzle-orm/sqlite-proxy/driver.js").SqliteRemoteDatabase<Record<string, never>>>;
14
+ get db(): Promise<SqliteRemoteDatabase<Record<string, never>>>;
14
15
  private convertMemory;
15
16
  search(query: {
16
17
  limit?: number;
@@ -15,7 +15,7 @@ class DefaultMemoryStorage extends storage_js_1.MemoryStorage {
15
15
  }
16
16
  _db;
17
17
  async initSqlite() {
18
- const db = await (0, sqlite_1.initDatabase)({ url: this.options?.url });
18
+ const db = (await (0, sqlite_1.initDatabase)({ url: this.options?.url }));
19
19
  await (0, migrate_js_1.migrate)(db);
20
20
  return db;
21
21
  }
@@ -1,5 +1,6 @@
1
1
  import type { AgentInvokeOptions, Context, Memory } from "@aigne/core";
2
2
  import type { PromiseOrValue } from "@aigne/core/utils/type-utils.js";
3
+ import type { SqliteRemoteDatabase } from "drizzle-orm/sqlite-proxy";
3
4
  import { MemoryStorage } from "../storage.js";
4
5
  export interface DefaultMemoryStorageOptions {
5
6
  url?: string;
@@ -10,7 +11,7 @@ export declare class DefaultMemoryStorage extends MemoryStorage {
10
11
  constructor(options?: DefaultMemoryStorageOptions | undefined);
11
12
  private _db;
12
13
  private initSqlite;
13
- get db(): Promise<import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>>>;
14
+ get db(): Promise<SqliteRemoteDatabase<Record<string, never>>>;
14
15
  private convertMemory;
15
16
  search(query: {
16
17
  limit?: number;
@@ -1,5 +1,6 @@
1
1
  import type { AgentInvokeOptions, Context, Memory } from "@aigne/core";
2
2
  import type { PromiseOrValue } from "@aigne/core/utils/type-utils.js";
3
+ import type { SqliteRemoteDatabase } from "drizzle-orm/sqlite-proxy";
3
4
  import { MemoryStorage } from "../storage.js";
4
5
  export interface DefaultMemoryStorageOptions {
5
6
  url?: string;
@@ -10,7 +11,7 @@ export declare class DefaultMemoryStorage extends MemoryStorage {
10
11
  constructor(options?: DefaultMemoryStorageOptions | undefined);
11
12
  private _db;
12
13
  private initSqlite;
13
- get db(): Promise<import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>>>;
14
+ get db(): Promise<SqliteRemoteDatabase<Record<string, never>>>;
14
15
  private convertMemory;
15
16
  search(query: {
16
17
  limit?: number;
@@ -12,7 +12,7 @@ export class DefaultMemoryStorage extends MemoryStorage {
12
12
  }
13
13
  _db;
14
14
  async initSqlite() {
15
- const db = await initDatabase({ url: this.options?.url });
15
+ const db = (await initDatabase({ url: this.options?.url }));
16
16
  await migrate(db);
17
17
  return db;
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/agent-library",
3
- "version": "1.12.2",
3
+ "version": "1.12.3",
4
4
  "description": "Collection of agent libraries for AIGNE framework",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -47,9 +47,9 @@
47
47
  "uuid": "^11.1.0",
48
48
  "yaml": "^2.7.1",
49
49
  "zod": "^3.24.4",
50
- "@aigne/sqlite": "^0.1.0",
51
- "@aigne/core": "^1.18.2",
52
- "@aigne/openai": "^0.2.3"
50
+ "@aigne/core": "^1.18.3",
51
+ "@aigne/sqlite": "^0.1.1",
52
+ "@aigne/openai": "^0.2.4"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/bun": "^1.2.12",