@bugzy-ai/bugzy 1.9.2 → 1.9.4

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.
Files changed (48) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +273 -273
  3. package/dist/cli/index.cjs +23 -50
  4. package/dist/cli/index.cjs.map +1 -1
  5. package/dist/cli/index.js +22 -49
  6. package/dist/cli/index.js.map +1 -1
  7. package/dist/index.cjs +20 -46
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +20 -46
  10. package/dist/index.js.map +1 -1
  11. package/dist/subagents/index.cjs.map +1 -1
  12. package/dist/subagents/index.js.map +1 -1
  13. package/dist/subagents/metadata.cjs.map +1 -1
  14. package/dist/subagents/metadata.js.map +1 -1
  15. package/dist/tasks/index.cjs +20 -9
  16. package/dist/tasks/index.cjs.map +1 -1
  17. package/dist/tasks/index.js +20 -9
  18. package/dist/tasks/index.js.map +1 -1
  19. package/dist/templates/init/.bugzy/runtime/knowledge-base.md +61 -0
  20. package/dist/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -0
  21. package/dist/templates/init/.bugzy/runtime/project-context.md +35 -0
  22. package/dist/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -0
  23. package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -0
  24. package/dist/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -0
  25. package/dist/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -0
  26. package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +632 -0
  27. package/dist/templates/init/.gitignore-template +25 -0
  28. package/package.json +95 -95
  29. package/templates/init/.bugzy/runtime/knowledge-base.md +61 -61
  30. package/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -97
  31. package/templates/init/.bugzy/runtime/project-context.md +35 -35
  32. package/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -87
  33. package/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -50
  34. package/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -498
  35. package/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -535
  36. package/templates/init/.bugzy/runtime/testing-best-practices.md +724 -724
  37. package/templates/init/.env.testdata +18 -18
  38. package/templates/init/.gitignore-template +24 -24
  39. package/templates/init/AGENTS.md +155 -155
  40. package/templates/init/CLAUDE.md +157 -157
  41. package/templates/init/test-runs/README.md +45 -45
  42. package/templates/playwright/BasePage.template.ts +190 -190
  43. package/templates/playwright/auth.setup.template.ts +89 -89
  44. package/templates/playwright/dataGenerators.helper.template.ts +148 -148
  45. package/templates/playwright/dateUtils.helper.template.ts +96 -96
  46. package/templates/playwright/pages.fixture.template.ts +50 -50
  47. package/templates/playwright/playwright.config.template.ts +97 -97
  48. package/templates/playwright/reporters/bugzy-reporter.ts +454 -454
package/dist/index.cjs CHANGED
@@ -334,7 +334,9 @@ Extract the following from arguments:
334
334
  - **type**: Test type (exploratory, functional, regression, smoke) - defaults to functional
335
335
  - **focus**: Optional specific feature or section to focus on`
336
336
  },
337
- // Step 4: Knowledge Base Read (library)
337
+ // Step 4: Load Project Context (library)
338
+ "load-project-context",
339
+ // Step 5: Knowledge Base Read (library)
338
340
  "read-knowledge-base",
339
341
  // Step 5: Gather Context (inline)
340
342
  {
@@ -633,10 +635,10 @@ var generateTestPlanTask = {
633
635
  title: "Arguments",
634
636
  content: `Product description: $ARGUMENTS`
635
637
  },
636
- // Step 4: Knowledge Base Read (library)
637
- "read-knowledge-base",
638
- // Step 5: Load Project Context (library)
638
+ // Step 4: Load Project Context (library)
639
639
  "load-project-context",
640
+ // Step 5: Knowledge Base Read (library)
641
+ "read-knowledge-base",
640
642
  // Step 6: Process Description (inline)
641
643
  {
642
644
  inline: true,
@@ -858,7 +860,9 @@ Process team responses from Slack threads and handle multi-turn conversations wi
858
860
  title: "Arguments",
859
861
  content: `Team message/thread context: $ARGUMENTS`
860
862
  },
861
- // Step 4: Knowledge Base Read (library)
863
+ // Step 4: Load Project Context (library)
864
+ "load-project-context",
865
+ // Step 5: Knowledge Base Read (library)
862
866
  "read-knowledge-base",
863
867
  // Step 5: Detect Intent (inline - task-specific)
864
868
  {
@@ -997,7 +1001,9 @@ Process various types of events using intelligent pattern matching and historica
997
1001
  title: "Arguments",
998
1002
  content: `Arguments: $ARGUMENTS`
999
1003
  },
1000
- // Step 4: Knowledge Base Read (library)
1004
+ // Step 4: Load Project Context (library)
1005
+ "load-project-context",
1006
+ // Step 5: Knowledge Base Read (library)
1001
1007
  "read-knowledge-base",
1002
1008
  // Step 5: Understand Event Context (inline)
1003
1009
  {
@@ -1429,7 +1435,9 @@ Extract the following from arguments:
1429
1435
  - Specific file: "tests/specs/login.spec.ts"
1430
1436
  - All tests: "all" or "" \u2192 runs entire test suite`
1431
1437
  },
1432
- // Step 4: Knowledge Base Read (library)
1438
+ // Step 4: Load Project Context (library)
1439
+ "load-project-context",
1440
+ // Step 5: Knowledge Base Read (library)
1433
1441
  "read-knowledge-base",
1434
1442
  // Step 5: Test Execution Strategy (library)
1435
1443
  "read-test-strategy",
@@ -1584,7 +1592,9 @@ This task performs comprehensive change verification with:
1584
1592
 
1585
1593
  The input format determines the trigger source and context extraction strategy.`
1586
1594
  },
1587
- // Step 4: Knowledge Base Read (library)
1595
+ // Step 4: Load Project Context (library)
1596
+ "load-project-context",
1597
+ // Step 5: Knowledge Base Read (library)
1588
1598
  "read-knowledge-base",
1589
1599
  // Step 5: Detect Trigger Source (inline)
1590
1600
  {
@@ -2077,6 +2087,7 @@ This command orchestrates the complete test coverage workflow in a single execut
2077
2087
  content: `Focus area: $ARGUMENTS`
2078
2088
  },
2079
2089
  // Phase 1: Setup
2090
+ "load-project-context",
2080
2091
  "read-knowledge-base",
2081
2092
  // Phase 2: Exploration Protocol
2082
2093
  "exploration-protocol",
@@ -2143,8 +2154,8 @@ var exploreApplicationTask = {
2143
2154
  - **system**: target system (optional for multi-system setups)`
2144
2155
  },
2145
2156
  // Setup
2146
- "read-knowledge-base",
2147
2157
  "load-project-context",
2158
+ "read-knowledge-base",
2148
2159
  // Exploration Protocol (adaptive depth)
2149
2160
  "exploration-protocol",
2150
2161
  // Execute
@@ -6000,42 +6011,6 @@ Test Strategy: [exists/missing]
6000
6011
  tags: ["setup", "context"]
6001
6012
  };
6002
6013
 
6003
- // src/tasks/steps/setup/check-existing-artifacts.ts
6004
- var checkExistingArtifactsStep = {
6005
- id: "check-existing-artifacts",
6006
- title: "Assess Existing Artifacts",
6007
- category: "setup",
6008
- content: `## Assess Existing Artifacts
6009
-
6010
- Before proceeding, check what already exists to determine which phases to skip.
6011
-
6012
- **1. Check Project Context**
6013
- - Read \`.bugzy/runtime/project-context.md\` if it exists
6014
- - Check if it contains information relevant to: $ARGUMENTS
6015
- - **Decision**: If project context exists and covers the focus area -> Skip exploration
6016
-
6017
- **2. Check Test Plan**
6018
- - Read \`test-plan.md\` if it exists
6019
- - Check if it contains features related to: $ARGUMENTS
6020
- - **Decision**: If test plan exists and covers the focus area -> Skip test plan generation
6021
-
6022
- **3. Check Existing Test Cases**
6023
- - List files in \`./test-cases/\` for tests related to focus area
6024
- - List files in \`./tests/specs/\` for automated tests
6025
- - **Decision**: If test cases already exist for the focus area -> Skip to verification only
6026
-
6027
- **4. Document Assessment**
6028
- Create a brief assessment summary:
6029
- \`\`\`
6030
- Assessment for: $ARGUMENTS
6031
- - Project context: [exists/missing] - [covers focus area: yes/no]
6032
- - Test plan: [exists/missing] - [covers focus area: yes/no]
6033
- - Test cases: [count] existing for focus area
6034
- - Phases to run: [list phases]
6035
- \`\`\``,
6036
- tags: ["setup", "assessment"]
6037
- };
6038
-
6039
6014
  // src/tasks/steps/setup/security-notice.ts
6040
6015
  var securityNoticeStep = {
6041
6016
  id: "security-notice",
@@ -7299,7 +7274,6 @@ var STEP_LIBRARY = {
7299
7274
  "read-knowledge-base": readKnowledgeBaseStep,
7300
7275
  "read-test-strategy": readTestStrategyStep,
7301
7276
  "load-project-context": loadProjectContextStep,
7302
- "check-existing-artifacts": checkExistingArtifactsStep,
7303
7277
  // Exploration
7304
7278
  "exploration-protocol": explorationProtocolStep,
7305
7279
  // Clarification