@bugzy-ai/bugzy 1.11.4 → 1.12.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/dist/cli/index.cjs +55 -93
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +55 -93
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +54 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +54 -93
- package/dist/index.js.map +1 -1
- package/dist/tasks/index.cjs +14 -85
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.js +14 -85
- package/dist/tasks/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -308,22 +308,9 @@ Read the test plan from \`test-plan.md\` to understand:
|
|
|
308
308
|
- Identify existing Page Objects in \`./tests/pages/\`
|
|
309
309
|
- Avoid creating overlapping test cases or duplicate automation`
|
|
310
310
|
},
|
|
311
|
-
// Step 6: Documentation Researcher (conditional
|
|
311
|
+
// Step 6: Documentation Researcher (conditional library step)
|
|
312
312
|
{
|
|
313
|
-
|
|
314
|
-
title: "Gather Product Documentation",
|
|
315
|
-
content: `{{INVOKE_DOCUMENTATION_RESEARCHER}} to gather comprehensive product documentation:
|
|
316
|
-
|
|
317
|
-
\`\`\`
|
|
318
|
-
Explore all available product documentation, specifically focusing on:
|
|
319
|
-
- UI elements and workflows
|
|
320
|
-
- User interactions and navigation paths
|
|
321
|
-
- Form fields and validation rules
|
|
322
|
-
- Error messages and edge cases
|
|
323
|
-
- Authentication and authorization flows
|
|
324
|
-
- Business rules and constraints
|
|
325
|
-
- API endpoints for test data setup
|
|
326
|
-
\`\`\``,
|
|
313
|
+
stepId: "gather-documentation",
|
|
327
314
|
conditionalOnSubagent: "documentation-researcher"
|
|
328
315
|
},
|
|
329
316
|
// Step 7: Exploration Protocol (from library)
|
|
@@ -601,33 +588,9 @@ var generateTestPlanTask = {
|
|
|
601
588
|
title: "Initialize Environment Variables Tracking",
|
|
602
589
|
content: `Create a list to track all TEST_ prefixed environment variables discovered throughout the process.`
|
|
603
590
|
},
|
|
604
|
-
// Step 8: Documentation Researcher (conditional
|
|
591
|
+
// Step 8: Documentation Researcher (conditional library step)
|
|
605
592
|
{
|
|
606
|
-
|
|
607
|
-
title: "Gather Comprehensive Project Documentation",
|
|
608
|
-
content: `{{INVOKE_DOCUMENTATION_RESEARCHER}} to explore and gather all available project information and other documentation sources. This ensures the test plan is based on complete and current information.
|
|
609
|
-
|
|
610
|
-
\`\`\`
|
|
611
|
-
Explore all available project documentation related to: $ARGUMENTS
|
|
612
|
-
|
|
613
|
-
Specifically gather:
|
|
614
|
-
- Product specifications and requirements
|
|
615
|
-
- User stories and acceptance criteria
|
|
616
|
-
- Technical architecture documentation
|
|
617
|
-
- API documentation and endpoints
|
|
618
|
-
- User roles and permissions
|
|
619
|
-
- Business rules and validations
|
|
620
|
-
- UI/UX specifications
|
|
621
|
-
- Known limitations or constraints
|
|
622
|
-
- Existing test documentation
|
|
623
|
-
- Bug reports or known issues
|
|
624
|
-
\`\`\`
|
|
625
|
-
|
|
626
|
-
The agent will:
|
|
627
|
-
1. Check its memory for previously discovered documentation
|
|
628
|
-
2. Explore workspace for relevant pages and databases
|
|
629
|
-
3. Build a comprehensive understanding of the product
|
|
630
|
-
4. Return synthesized information about all discovered documentation`,
|
|
593
|
+
stepId: "gather-documentation",
|
|
631
594
|
conditionalOnSubagent: "documentation-researcher"
|
|
632
595
|
},
|
|
633
596
|
// Step 9: Exploration Protocol (from library)
|
|
@@ -1091,6 +1054,7 @@ Based on the event source, load the handler from \`.bugzy/runtime/handlers/\`:
|
|
|
1091
1054
|
|
|
1092
1055
|
**Step 1: Detect Event Source from Payload:**
|
|
1093
1056
|
- \`com.jira-server.*\` event type prefix -> \`.bugzy/runtime/handlers/jira.md\`
|
|
1057
|
+
- \`com.recall.*\` event type prefix -> \`.bugzy/runtime/handlers/recall.md\`
|
|
1094
1058
|
- \`github.*\` or GitHub webhook structure -> \`.bugzy/runtime/handlers/github.md\`
|
|
1095
1059
|
- \`linear.*\` or Linear webhook -> \`.bugzy/runtime/handlers/linear.md\`
|
|
1096
1060
|
- Other sources -> Check for matching handler file by source name
|
|
@@ -1158,19 +1122,9 @@ Based on event type and content, generate 3-5 specific search queries:
|
|
|
1158
1122
|
- Find relevant documentation
|
|
1159
1123
|
- Check for known issues`
|
|
1160
1124
|
},
|
|
1161
|
-
// Step 9: Documentation Research (conditional
|
|
1125
|
+
// Step 9: Documentation Research (conditional library step)
|
|
1162
1126
|
{
|
|
1163
|
-
|
|
1164
|
-
title: "Use Documentation Researcher",
|
|
1165
|
-
content: `#### 3.3 Use Documentation Researcher if Needed
|
|
1166
|
-
|
|
1167
|
-
{{INVOKE_DOCUMENTATION_RESEARCHER}} to find information about unknown features or components:
|
|
1168
|
-
|
|
1169
|
-
For events mentioning unknown features or components, ask the agent to explore project documentation and return:
|
|
1170
|
-
- Feature specifications
|
|
1171
|
-
- Related test cases
|
|
1172
|
-
- Known issues or limitations
|
|
1173
|
-
- Component dependencies`,
|
|
1127
|
+
stepId: "gather-documentation",
|
|
1174
1128
|
conditionalOnSubagent: "documentation-researcher"
|
|
1175
1129
|
},
|
|
1176
1130
|
// Step 10: Task Planning (inline)
|
|
@@ -1348,7 +1302,7 @@ Create files if they don't exist:
|
|
|
1348
1302
|
],
|
|
1349
1303
|
requiredSubagents: ["team-communicator"],
|
|
1350
1304
|
optionalSubagents: ["documentation-researcher", "issue-tracker"],
|
|
1351
|
-
dependentTasks: ["verify-changes"]
|
|
1305
|
+
dependentTasks: ["verify-changes", "generate-test-cases", "run-tests"]
|
|
1352
1306
|
};
|
|
1353
1307
|
|
|
1354
1308
|
// src/tasks/library/run-tests.ts
|
|
@@ -1926,38 +1880,9 @@ Include in the message:
|
|
|
1926
1880
|
- Any blocking issues or critical findings`,
|
|
1927
1881
|
conditionalOnSubagent: "team-communicator"
|
|
1928
1882
|
},
|
|
1929
|
-
// Step 15: Documentation Research (conditional
|
|
1883
|
+
// Step 15: Documentation Research (conditional library step)
|
|
1930
1884
|
{
|
|
1931
|
-
|
|
1932
|
-
title: "Understanding the Change (Documentation Research)",
|
|
1933
|
-
content: `{{INVOKE_DOCUMENTATION_RESEARCHER}} to gather comprehensive context about the changed features:
|
|
1934
|
-
|
|
1935
|
-
Explore project documentation related to the changes.
|
|
1936
|
-
|
|
1937
|
-
Specifically gather:
|
|
1938
|
-
- Product specifications for affected features
|
|
1939
|
-
- User stories and acceptance criteria
|
|
1940
|
-
- Technical architecture documentation
|
|
1941
|
-
- API endpoints and contracts
|
|
1942
|
-
- User roles and permissions relevant to the change
|
|
1943
|
-
- Business rules and validations
|
|
1944
|
-
- UI/UX specifications
|
|
1945
|
-
- Known limitations or constraints
|
|
1946
|
-
- Related bug reports or known issues
|
|
1947
|
-
- Existing test documentation for this area
|
|
1948
|
-
|
|
1949
|
-
The agent will:
|
|
1950
|
-
1. Check its memory for previously discovered documentation
|
|
1951
|
-
2. Explore workspace for relevant pages and databases
|
|
1952
|
-
3. Build comprehensive understanding of the affected features
|
|
1953
|
-
4. Return synthesized information to inform testing strategy
|
|
1954
|
-
|
|
1955
|
-
Use this information to:
|
|
1956
|
-
- Better understand the change context
|
|
1957
|
-
- Identify comprehensive test scenarios
|
|
1958
|
-
- Recognize integration points and dependencies
|
|
1959
|
-
- Spot potential edge cases or risk areas
|
|
1960
|
-
- Enhance manual verification checklist generation`,
|
|
1885
|
+
stepId: "gather-documentation",
|
|
1961
1886
|
conditionalOnSubagent: "documentation-researcher"
|
|
1962
1887
|
},
|
|
1963
1888
|
// Step 16: Report Results (inline)
|
|
@@ -2092,6 +2017,10 @@ This command orchestrates the complete test coverage workflow in a single execut
|
|
|
2092
2017
|
// Phase 1: Setup
|
|
2093
2018
|
"load-project-context",
|
|
2094
2019
|
"read-knowledge-base",
|
|
2020
|
+
{
|
|
2021
|
+
stepId: "gather-documentation",
|
|
2022
|
+
conditionalOnSubagent: "documentation-researcher"
|
|
2023
|
+
},
|
|
2095
2024
|
// Phase 2: Exploration Protocol
|
|
2096
2025
|
"exploration-protocol",
|
|
2097
2026
|
// Execute exploration via test-runner
|
|
@@ -6182,6 +6111,39 @@ The \`.env\` file access is blocked by settings.json.`,
|
|
|
6182
6111
|
tags: ["security", "required"]
|
|
6183
6112
|
};
|
|
6184
6113
|
|
|
6114
|
+
// src/tasks/steps/setup/gather-documentation.ts
|
|
6115
|
+
var gatherDocumentationStep = {
|
|
6116
|
+
id: "gather-documentation",
|
|
6117
|
+
title: "Gather Project Documentation",
|
|
6118
|
+
category: "setup",
|
|
6119
|
+
content: `## Gather Project Documentation
|
|
6120
|
+
|
|
6121
|
+
{{INVOKE_DOCUMENTATION_RESEARCHER}} to explore and gather all available project information.
|
|
6122
|
+
|
|
6123
|
+
Specifically gather:
|
|
6124
|
+
- Product specifications and requirements
|
|
6125
|
+
- User stories and acceptance criteria
|
|
6126
|
+
- Technical architecture documentation
|
|
6127
|
+
- API documentation and endpoints
|
|
6128
|
+
- User roles and permissions
|
|
6129
|
+
- Business rules and validations
|
|
6130
|
+
- UI/UX specifications
|
|
6131
|
+
- Known limitations or constraints
|
|
6132
|
+
- Existing test documentation
|
|
6133
|
+
- Bug reports or known issues
|
|
6134
|
+
|
|
6135
|
+
The agent will:
|
|
6136
|
+
1. Check its memory for previously discovered documentation
|
|
6137
|
+
2. Explore workspace for relevant pages and databases
|
|
6138
|
+
3. Build comprehensive understanding of the product
|
|
6139
|
+
4. Return synthesized information about all discovered documentation
|
|
6140
|
+
|
|
6141
|
+
Use this information to inform testing strategy and identify comprehensive scenarios.`,
|
|
6142
|
+
requiresSubagent: "documentation-researcher",
|
|
6143
|
+
invokesSubagents: ["documentation-researcher"],
|
|
6144
|
+
tags: ["setup", "context", "documentation"]
|
|
6145
|
+
};
|
|
6146
|
+
|
|
6185
6147
|
// src/tasks/steps/exploration/exploration-protocol.ts
|
|
6186
6148
|
var explorationProtocolStep = {
|
|
6187
6149
|
id: "exploration-protocol",
|
|
@@ -6623,24 +6585,22 @@ Run automated Playwright tests and capture results.
|
|
|
6623
6585
|
|
|
6624
6586
|
**Build Playwright Command** based on selector:
|
|
6625
6587
|
|
|
6588
|
+
The playwright.config.ts automatically loads environment variables from .env.testdata and .env files.
|
|
6589
|
+
Use npm scripts to run tests - no manual env export needed.
|
|
6590
|
+
|
|
6626
6591
|
**For file pattern or specific file**:
|
|
6627
6592
|
\`\`\`bash
|
|
6628
|
-
|
|
6593
|
+
npm test -- [selector]
|
|
6629
6594
|
\`\`\`
|
|
6630
6595
|
|
|
6631
6596
|
**For tag**:
|
|
6632
6597
|
\`\`\`bash
|
|
6633
|
-
|
|
6598
|
+
npm test -- --grep "[tag]"
|
|
6634
6599
|
\`\`\`
|
|
6635
6600
|
|
|
6636
6601
|
**For all tests**:
|
|
6637
6602
|
\`\`\`bash
|
|
6638
|
-
|
|
6639
|
-
\`\`\`
|
|
6640
|
-
|
|
6641
|
-
**Execute Tests via Bash:**
|
|
6642
|
-
\`\`\`bash
|
|
6643
|
-
npx playwright test [selector]
|
|
6603
|
+
npm test
|
|
6644
6604
|
\`\`\`
|
|
6645
6605
|
|
|
6646
6606
|
Wait for execution to complete. This may take several minutes depending on test count.
|
|
@@ -7421,6 +7381,7 @@ var STEP_LIBRARY = {
|
|
|
7421
7381
|
"read-knowledge-base": readKnowledgeBaseStep,
|
|
7422
7382
|
"read-test-strategy": readTestStrategyStep,
|
|
7423
7383
|
"load-project-context": loadProjectContextStep,
|
|
7384
|
+
"gather-documentation": gatherDocumentationStep,
|
|
7424
7385
|
// Exploration
|
|
7425
7386
|
"exploration-protocol": explorationProtocolStep,
|
|
7426
7387
|
// Clarification
|