generator-agent 1.0.23 → 1.0.24
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/.github/agents/Generator.agent.md +10 -19
- package/README.md +7 -13
- package/package.json +4 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: Generator
|
|
2
|
+
name: Generator 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
|
|
|
@@ -12,20 +12,15 @@ Responsible for building generators that follow strict rules and guidelines base
|
|
|
12
12
|
|
|
13
13
|
1. Read all generator type definitions in the Generator_Patterns folder to understand their rules and structures, then use them to create generators based on the OAS file’s schema and dependencies.
|
|
14
14
|
|
|
15
|
-
2.
|
|
15
|
+
2. **Strict Rule (Non-Negotiable):** Add only dependencies, fields, and parameters explicitly mentioned by the user. Do not guess from old generators, past outputs, OAS specs, or optional fields. Do not auto-create additional dependency generators unless explicitly asked.
|
|
16
16
|
|
|
17
17
|
3. For user-requested dependencies, ensure generators extract the required values from API responses so downstream generators can consume them clearly and correctly.
|
|
18
18
|
|
|
19
|
-
4.
|
|
19
|
+
4. Refer to the `PathConfig.properties` file to find the paths for OAS files and existing generator files. Always use these paths when reading or referencing OAS or generator files.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
6. Use only the dependencies explicitly provided in the user prompt. Do not include every parameter listed in the OAS, and do not auto-create additional dependency generators unless the user explicitly asks.
|
|
24
|
-
|
|
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
|
-
|
|
27
|
-
8. You may use tools if necessary to generate the generators correctly.
|
|
21
|
+
6. You may use tools if necessary to generate the generators correctly.
|
|
28
22
|
|
|
23
|
+
7. **Strict Rule (Non-Negotiable):** Follow all agent rules for every request and response without exception. Validate output against these rules before finalizing, and do not skip any rule.
|
|
29
24
|
---
|
|
30
25
|
|
|
31
26
|
## Generator
|
|
@@ -34,11 +29,9 @@ Responsible for building generators that follow strict rules and guidelines base
|
|
|
34
29
|
|
|
35
30
|
2. Maintain order in generator creation based on dependencies. If Generator A depends on Generator B, ensure that Generator B is created before Generator A.
|
|
36
31
|
|
|
37
|
-
3.
|
|
38
|
-
|
|
39
|
-
4. Choose the correct generator type strictly according to its definition file.
|
|
32
|
+
3. Choose the correct generator type and ensure all generators strictly follow the definitions and rules specified in the generator type definition files.
|
|
40
33
|
|
|
41
|
-
|
|
34
|
+
4. For the `name` field inside a generator, use snake_case and keep it resource-specific and meaningful. Use singular for single values (for example: `ticket_id`) and plural for lists (for example: `ticket_ids`).
|
|
42
35
|
|
|
43
36
|
6. Follow exact reference syntax, dataPath format, and structural rules as defined in the type definition files and README.md.
|
|
44
37
|
|
|
@@ -79,7 +72,7 @@ All generators must be created using the following structure:
|
|
|
79
72
|
|
|
80
73
|
## Generator Creation Rules
|
|
81
74
|
|
|
82
|
-
1.
|
|
75
|
+
1. Read `PathConfig.properties` to get the `CREATED_GENERATOR_PATH` directory path, then create a subfolder with PascalCase name (e.g., `CreateContact`, `CreateTicket`) inside it, and add `test_data_generation_configurations.json` inside the subfolder.
|
|
83
76
|
|
|
84
77
|
2. Only create the generator JSON file.
|
|
85
78
|
|
|
@@ -101,6 +94,8 @@ All generators must be created using the following structure:
|
|
|
101
94
|
|
|
102
95
|
6. **Optional Param Choice**: In ambiguous enum/choice situations, ask the user with available options and include one extra option: **"Don't consider this param"**. If the user selects it, omit that parameter from the generator.
|
|
103
96
|
|
|
97
|
+
|
|
98
|
+
|
|
104
99
|
---
|
|
105
100
|
|
|
106
101
|
## Do Not:
|
|
@@ -116,7 +111,3 @@ All generators must be created using the following structure:
|
|
|
116
111
|
5. Never include any param or field in a generator unless it is explicitly defined in the OAS for that operation.
|
|
117
112
|
|
|
118
113
|
6. Don't auto-add setup generators (for example Contact/Department/Account) unless those dependencies are explicitly requested by the user.
|
|
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.
|
|
121
|
-
|
|
122
|
-
8. Don't give text response in chat window.Only output the generator JSON object as specified.
|
package/README.md
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
A powerful VS Code extension that integrates custom AI agents with multiple UI interfaces - dropdown selection, chat panel, and command palette.
|
|
1
|
+
# generator-agent - VS Code Extension
|
|
4
2
|
|
|
5
3
|
## Features
|
|
6
4
|
|
|
@@ -16,16 +14,12 @@ A powerful VS Code extension that integrates custom AI agents with multiple UI i
|
|
|
16
14
|
|
|
17
15
|
#### To install the latest version, run:
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
npm install generator-agent@latest
|
|
21
|
-
npx generatoragent init
|
|
17
|
+
# Step1: Install the extension from npm package:
|
|
18
|
+
- npm install generator-agent@latest
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
- Check file extension is `.agent.md`
|
|
26
|
-
- Reload VS Code window after adding agents
|
|
20
|
+
# Step2 : Run the initialization command to set up the extension:
|
|
21
|
+
- npx generatoragent init
|
|
27
22
|
|
|
28
|
-
|
|
23
|
+
# Step3: Reload VS Code window to activate the extension.
|
|
24
|
+
- Reload VS Code window after adding agents
|
|
29
25
|
|
|
30
|
-
For issues and feature requests, visit:
|
|
31
|
-
[GitHub Issues](https://github.com/ishwaryaramesh200-byte/AgentPublishTest/issues)
|
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.24",
|
|
6
6
|
"publisher": "Ishwarya",
|
|
7
7
|
"author": "Ishwarya",
|
|
8
8
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://
|
|
21
|
+
"url": "https://zrepository.zohocorpcloud.in/zohocorp/user/IshwaryaRamesh_26/Test_Data_Generation.git"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"agent",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"ai",
|
|
29
29
|
"automation"
|
|
30
30
|
],
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://zrepository.zohocorpcloud.in/zohocorp/user/IshwaryaRamesh_26/Test_Data_Generation#readme",
|
|
32
32
|
"bugs": {
|
|
33
|
-
"url": "https://
|
|
33
|
+
"url": "https://zrepository.zohocorpcloud.in/zohocorp/user/IshwaryaRamesh_26/Test_Data_Generation.git"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"vscode": "^1.109.0"
|
|
@@ -39,11 +39,6 @@
|
|
|
39
39
|
"Other",
|
|
40
40
|
"AI"
|
|
41
41
|
],
|
|
42
|
-
"activationEvents": [
|
|
43
|
-
"onCommand:my-agent.selectAgent",
|
|
44
|
-
"onCommand:my-agent.openChatPanel",
|
|
45
|
-
"onCommand:my-agent.runFromPalette"
|
|
46
|
-
],
|
|
47
42
|
"main": "./extension.js",
|
|
48
43
|
"contributes": {
|
|
49
44
|
"commands": [
|