Skip to content

Commit 99b156e

Browse files
authored
Merge pull request #16 from yepcode/bugfix/fix-run-code-schema
Fix run code schema definition
2 parents 7c6c152 + 7b95bb3 commit 99b156e

1 file changed

Lines changed: 28 additions & 2 deletions

File tree

src/tools/run-code-tool-definitinos.ts

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,34 @@ export const RunCodeOptionsSchema = z.object({
1919
.describe(
2020
"The language to be used to run the code. We support javascript or python."
2121
),
22-
comment: z.string().optional(),
23-
settings: z.record(z.unknown()).optional(),
22+
removeOnDone: z
23+
.boolean()
24+
.optional()
25+
.describe(
26+
"Whether to remove the process source code after execution. If false, the code will be kept for audit purposes. By default, code is removed after execution."
27+
),
28+
comment: z
29+
.string()
30+
.optional()
31+
.describe(
32+
"A comment or description for this execution. Useful for tracking, debugging, and providing context about the execution."
33+
),
34+
manifest: z
35+
.any()
36+
.optional()
37+
.describe(
38+
"Process manifest configuration. Contains metadata and configuration for the process deployment and execution, such as dependencies, environment setup, and other deployment-related settings."
39+
),
40+
parameters: z
41+
.any()
42+
.optional()
43+
.describe(
44+
"Input parameters to be passed to the code execution. These parameters can be accessed within your code and must match the expected parameter schema if defined."
45+
),
46+
tag: z
47+
.string()
48+
.optional()
49+
.describe("A version tag or an alias of the version"),
2450
});
2551

2652
export const getCodingRules = async (): Promise<string> => {

0 commit comments

Comments
 (0)