@aigne/example-workflow-code-execution 1.16.6 → 1.16.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.
Files changed (2) hide show
  1. package/index.ts +4 -0
  2. package/package.json +3 -3
package/index.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  import { DefaultMemory } from "@aigne/agent-library/default-memory/index.js";
4
4
  import { runWithAIGNE } from "@aigne/cli/utils/run-with-aigne.js";
5
5
  import { AIAgent, FunctionAgent } from "@aigne/core";
6
+ import { logger } from "@aigne/core/utils/logger.js";
6
7
  import { z } from "zod";
7
8
 
8
9
  const sandbox = FunctionAgent.from({
@@ -20,6 +21,9 @@ This agent generates a JavaScript code snippet that is suitable to be passed dir
20
21
  }),
21
22
  process: async (input: { jsCode: string }) => {
22
23
  const { jsCode } = input;
24
+
25
+ logger.info(`Evaluating JavaScript code: ${jsCode}`);
26
+
23
27
  // biome-ignore lint/security/noGlobalEval: just for demonstration purposes
24
28
  const result = eval(jsCode);
25
29
  return { result };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/example-workflow-code-execution",
3
- "version": "1.16.6",
3
+ "version": "1.16.7",
4
4
  "description": "A demonstration of using AIGNE Framework to build a code-execution workflow",
5
5
  "author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
6
6
  "homepage": "https://github.com/AIGNE-io/aigne-framework/tree/main/examples/workflow-code-execution",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "zod": "^3.25.67",
20
20
  "@aigne/agent-library": "^1.20.3",
21
- "@aigne/core": "^1.33.0",
21
+ "@aigne/cli": "^1.22.6",
22
22
  "@aigne/openai": "^0.9.0",
23
- "@aigne/cli": "^1.22.5"
23
+ "@aigne/core": "^1.33.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/bun": "^1.2.17",