@aigne/example-workflow-code-execution 1.15.3 → 1.16.1
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/index.ts +1 -1
- package/package.json +8 -8
- package/usages.ts +1 -1
package/index.ts
CHANGED
|
@@ -20,7 +20,7 @@ This agent generates a JavaScript code snippet that is suitable to be passed dir
|
|
|
20
20
|
}),
|
|
21
21
|
process: async (input: { jsCode: string }) => {
|
|
22
22
|
const { jsCode } = input;
|
|
23
|
-
// biome-ignore lint/security/noGlobalEval:
|
|
23
|
+
// biome-ignore lint/security/noGlobalEval: just for demonstration purposes
|
|
24
24
|
const result = eval(jsCode);
|
|
25
25
|
return { result };
|
|
26
26
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/example-workflow-code-execution",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.1",
|
|
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",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"zod": "^3.
|
|
20
|
-
"@aigne/
|
|
21
|
-
"@aigne/
|
|
22
|
-
"@aigne/
|
|
23
|
-
"@aigne/
|
|
19
|
+
"zod": "^3.25.67",
|
|
20
|
+
"@aigne/core": "^1.31.0",
|
|
21
|
+
"@aigne/agent-library": "^1.19.0",
|
|
22
|
+
"@aigne/openai": "^0.7.1",
|
|
23
|
+
"@aigne/cli": "^1.22.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/bun": "^1.2.
|
|
27
|
-
"@aigne/test-utils": "^0.
|
|
26
|
+
"@types/bun": "^1.2.17",
|
|
27
|
+
"@aigne/test-utils": "^0.5.1"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"start": "bun run index.ts",
|
package/usages.ts
CHANGED
|
@@ -18,7 +18,7 @@ const sandbox = FunctionAgent.from({
|
|
|
18
18
|
}),
|
|
19
19
|
process: async (input: { code: string }) => {
|
|
20
20
|
const { code } = input;
|
|
21
|
-
// biome-ignore lint/security/noGlobalEval:
|
|
21
|
+
// biome-ignore lint/security/noGlobalEval: just for demonstration purposes
|
|
22
22
|
const result = eval(code);
|
|
23
23
|
return { result };
|
|
24
24
|
},
|