@aigne/core 1.57.3 → 1.57.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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.57.4](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.57.3...core-v1.57.4) (2025-08-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **core:** handle relative path correctly ([#440](https://github.com/AIGNE-io/aigne-framework/issues/440)) ([45a65fe](https://github.com/AIGNE-io/aigne-framework/commit/45a65fea432da44218007e566fe952fa973d8ae2))
9
+
3
10
  ## [1.57.3](https://github.com/AIGNE-io/aigne-framework/compare/core-v1.57.2...core-v1.57.3) (2025-08-30)
4
11
 
5
12
 
@@ -17,6 +17,8 @@ export declare class CustomLoader extends nunjucks.Loader {
17
17
  workingDir: string;
18
18
  });
19
19
  async: boolean;
20
+ isRelative(filename: string): boolean;
21
+ resolve(from: string, to: string): string;
20
22
  getSource(name: string, callback: Callback<Error, LoaderSource>): LoaderSource;
21
23
  }
22
24
  export declare class ChatMessageTemplate {
@@ -45,6 +45,12 @@ class CustomLoader extends nunjucks_1.default.Loader {
45
45
  this.options = options;
46
46
  }
47
47
  async = true;
48
+ isRelative(filename) {
49
+ return !index_js_1.nodejs.path.isAbsolute(filename);
50
+ }
51
+ resolve(from, to) {
52
+ return index_js_1.nodejs.path.resolve(index_js_1.nodejs.path.dirname(from), to);
53
+ }
48
54
  getSource(name, callback) {
49
55
  let result = null;
50
56
  const path = index_js_1.nodejs.path.isAbsolute(name)
@@ -17,6 +17,8 @@ export declare class CustomLoader extends nunjucks.Loader {
17
17
  workingDir: string;
18
18
  });
19
19
  async: boolean;
20
+ isRelative(filename: string): boolean;
21
+ resolve(from: string, to: string): string;
20
22
  getSource(name: string, callback: Callback<Error, LoaderSource>): LoaderSource;
21
23
  }
22
24
  export declare class ChatMessageTemplate {
@@ -17,6 +17,8 @@ export declare class CustomLoader extends nunjucks.Loader {
17
17
  workingDir: string;
18
18
  });
19
19
  async: boolean;
20
+ isRelative(filename: string): boolean;
21
+ resolve(from: string, to: string): string;
20
22
  getSource(name: string, callback: Callback<Error, LoaderSource>): LoaderSource;
21
23
  }
22
24
  export declare class ChatMessageTemplate {
@@ -37,6 +37,12 @@ export class CustomLoader extends nunjucks.Loader {
37
37
  this.options = options;
38
38
  }
39
39
  async = true;
40
+ isRelative(filename) {
41
+ return !nodejs.path.isAbsolute(filename);
42
+ }
43
+ resolve(from, to) {
44
+ return nodejs.path.resolve(nodejs.path.dirname(from), to);
45
+ }
40
46
  getSource(name, callback) {
41
47
  let result = null;
42
48
  const path = nodejs.path.isAbsolute(name)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/core",
3
- "version": "1.57.3",
3
+ "version": "1.57.4",
4
4
  "description": "The functional core of agentic AI",
5
5
  "publishConfig": {
6
6
  "access": "public"