generator-agent 1.0.23 → 1.0.25

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: Generator-agent
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. Analyze the user prompt to identify only the dependencies explicitly requested by the user. Do not add extra setup dependencies on your own.
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. Always create a new generator file instead of modifying existing ones. If you need to modify or add to an existing generator, request explicit user permission before proceeding.
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
- 5. 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.
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. Ensure that all generators strictly follow the definitions and rules specified in the generator type definition files.
32
+ 3. Choose the correct generator type and ensure all generators strictly follow the definitions and rules specified in the generator type definition files.
38
33
 
39
- 4. Choose the correct generator type strictly according to its definition file.
40
-
41
- 5. For the "name" field inside a generator, use the resource name from PathConfig in snake_case: plural for lists, singular for single items (e.g., "resources", "resource", "records").
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
 
@@ -50,12 +43,18 @@ Responsible for building generators that follow strict rules and guidelines base
50
43
 
51
44
  10. When params are used in a dynamic generator, the parameter names should be the same as those defined in the OpenAPI specification.
52
45
 
53
- 11. If you use param input from body, query, path or header, please make sure the reference path is correct and the field exists in the OpenAPI specification. For example: "$.input.body:$.ticketId" for request body, "$.input.query:$.status" for query parameter, "$.input.path:$.agentId" for path parameter, "$.input.header:$.Authorization" for header.
46
+ 11. If you use param input from body, query, path, or header, make sure the input path is correct and the field exists in the OpenAPI specification. For example: "$.input.body:$.ticketId" for request body, "$.input.query:$.status" for query parameter, "$.input.path:$.agentId" for path parameter, "$.input.header:$.Authorization" for header.
54
47
 
55
48
  12. If the same API with the same payload is needed more than once, call that API only once, store the entire response object, and extract all required values from that stored response.
56
49
 
57
50
  13. When storing an entire object in a generator, the `dataPath` must use the `:$` format (for example: `$.response.body:$`).
58
51
 
52
+ 14. Do not hardcode business values (for example department names/ids, status values, or entity identifiers) when they can be provided at runtime. Prefer parameterized input references (for example `$.input.query`, `$.input.body`, `$.input.path`, `$.input.header`) and pass them through generator params.
53
+
54
+ 15. When a runtime value is expected directly in `params`, provide it as an explicit placeholder string in this format: `"<provide_param_name>"` (for example: `"searchStr": "<provide_department_name>"`). Do not hardcode concrete business values.
55
+
56
+ 15. The first generator in any generator list must not be of type `reference`. Start with a data-producing generator type (for example `dynamic`, `static`, `remote`, or `conditional`) and use `reference` only after an earlier step has produced source data.
57
+
59
58
  ---
60
59
 
61
60
  ## Generator Structure Rule
@@ -79,7 +78,7 @@ All generators must be created using the following structure:
79
78
 
80
79
  ## Generator Creation Rules
81
80
 
82
- 1. Create subfolder with PascalCase name (e.g., `CreateContact`, `CreateTicket`) in `Created_Generators` directory, add `test_data_generation_configurations.json` inside.
81
+ 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
82
 
84
83
  2. Only create the generator JSON file.
85
84
 
@@ -101,6 +100,8 @@ All generators must be created using the following structure:
101
100
 
102
101
  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
102
 
103
+
104
+
104
105
  ---
105
106
 
106
107
  ## Do Not:
@@ -116,7 +117,3 @@ All generators must be created using the following structure:
116
117
  5. Never include any param or field in a generator unless it is explicitly defined in the OAS for that operation.
117
118
 
118
119
  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
- # AgentPublishTest - VS Code Extension
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
- ```bash
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
- **Agents not appearing in dropdown?**
24
- - Make sure agents are in `.github/agents/` folder
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
- ### Supported
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.23",
5
+ "version": "1.0.25",
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://github.com/ishwaryaramesh200-byte/AgentPublishTest.git"
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://github.com/ishwaryaramesh200-byte/AgentPublishTest#readme",
31
+ "homepage": "https://zrepository.zohocorpcloud.in/zohocorp/user/IshwaryaRamesh_26/Test_Data_Generation#readme",
32
32
  "bugs": {
33
- "url": "https://github.com/ishwaryaramesh200-byte/AgentPublishTest/issues"
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": [