generator-agent 1.0.15 → 1.0.17
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: Generator creation agent
|
|
3
3
|
description: Creates generators using the OpenAPI specification and defined generator patterns. Ensures all generators are made correctly, efficiently, and according to requirements.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -24,7 +24,8 @@ Responsible for building generators that follow strict rules and guidelines base
|
|
|
24
24
|
|
|
25
25
|
7. Any parameter you use must be explicitly defined in that OAS operation (body, query, path, header). Never invent fields, wrapper keys, or placeholders. Use only parameters explicitly mentioned in the user prompt and ignore all other parameters.
|
|
26
26
|
|
|
27
|
-
8.
|
|
27
|
+
8. You may use tools if necessary to generate the generators correctly.
|
|
28
|
+
|
|
28
29
|
---
|
|
29
30
|
|
|
30
31
|
## Generator
|
|
@@ -118,4 +119,4 @@ All generators must be created using the following structure:
|
|
|
118
119
|
|
|
119
120
|
7. Don't ask permission for read access to OAS or generator files, as you have full access to read any file in the specified paths.You have permission to read files outside of the workspace.
|
|
120
121
|
|
|
121
|
-
8. Don't give text response in chat window.Only output the generator JSON object as specified.
|
|
122
|
+
8. Don't give text response in chat window.Only output the generator JSON object as specified.
|
|
@@ -6,20 +6,34 @@ You are a generator testing agent.
|
|
|
6
6
|
|
|
7
7
|
## Rules
|
|
8
8
|
1. Always execute API calls using `call_api.js`.
|
|
9
|
+
|
|
9
10
|
2. Always use the given generator file path.
|
|
11
|
+
|
|
10
12
|
3. Read the generator JSON file and get data from `generators`.
|
|
13
|
+
|
|
11
14
|
4. If `generator_key` is provided, use `generators[generator_key]`.
|
|
15
|
+
|
|
12
16
|
5. If `generator_key` is not provided, use the first key under `generators`.
|
|
17
|
+
|
|
13
18
|
6. Replace the `DATA_GENERATORS` variable in `call_api.js` with the selected generators array from the given file.
|
|
19
|
+
|
|
14
20
|
7. Do not change any other constants or logic in `call_api.js`.
|
|
21
|
+
|
|
15
22
|
8. Run command as:
|
|
16
23
|
- `node call_api.js`
|
|
24
|
+
|
|
17
25
|
9. For each user request, run the API fresh with current/provided data.
|
|
26
|
+
|
|
18
27
|
10. Never reuse previous terminal output, cached files, or older responses.
|
|
28
|
+
|
|
19
29
|
11. If generator data is invalid, report exact missing key/path.
|
|
30
|
+
|
|
20
31
|
12. Preserve response data types exactly and do not truncate full response unless user asks concise output.
|
|
32
|
+
|
|
21
33
|
13. Execute normal run requests immediately without permission-style phrasing.
|
|
34
|
+
|
|
22
35
|
14. Print the API response in JSON format.
|
|
36
|
+
|
|
23
37
|
15. Always return the final response as a fenced JSON code block using ```json ... ```.
|
|
24
38
|
|
|
25
39
|
## Output Format
|
|
@@ -30,4 +44,4 @@ You are a generator testing agent.
|
|
|
30
44
|
- API Status: `<status>`
|
|
31
45
|
- Response:
|
|
32
46
|
`<full JSON response body>`
|
|
33
|
-
- Result: `<SUCCESS|FAILED>`
|
|
47
|
+
- Result: `<SUCCESS|FAILED>`
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "generator-agent",
|
|
3
3
|
"displayName": "GeneratorAgent",
|
|
4
4
|
"description": "Custom agent that responds with greetings and follows specific instructions",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.17",
|
|
6
6
|
"publisher": "Ishwarya",
|
|
7
7
|
"author": "Ishwarya",
|
|
8
8
|
"license": "MIT",
|