@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.js CHANGED
@@ -278,7 +278,9 @@ Extract the following from arguments:
278
278
  - **type**: Test type (exploratory, functional, regression, smoke) - defaults to functional
279
279
  - **focus**: Optional specific feature or section to focus on`
280
280
  },
281
- // Step 4: Knowledge Base Read (library)
281
+ // Step 4: Load Project Context (library)
282
+ "load-project-context",
283
+ // Step 5: Knowledge Base Read (library)
282
284
  "read-knowledge-base",
283
285
  // Step 5: Gather Context (inline)
284
286
  {
@@ -577,10 +579,10 @@ var generateTestPlanTask = {
577
579
  title: "Arguments",
578
580
  content: `Product description: $ARGUMENTS`
579
581
  },
580
- // Step 4: Knowledge Base Read (library)
581
- "read-knowledge-base",
582
- // Step 5: Load Project Context (library)
582
+ // Step 4: Load Project Context (library)
583
583
  "load-project-context",
584
+ // Step 5: Knowledge Base Read (library)
585
+ "read-knowledge-base",
584
586
  // Step 6: Process Description (inline)
585
587
  {
586
588
  inline: true,
@@ -802,7 +804,9 @@ Process team responses from Slack threads and handle multi-turn conversations wi
802
804
  title: "Arguments",
803
805
  content: `Team message/thread context: $ARGUMENTS`
804
806
  },
805
- // Step 4: Knowledge Base Read (library)
807
+ // Step 4: Load Project Context (library)
808
+ "load-project-context",
809
+ // Step 5: Knowledge Base Read (library)
806
810
  "read-knowledge-base",
807
811
  // Step 5: Detect Intent (inline - task-specific)
808
812
  {
@@ -941,7 +945,9 @@ Process various types of events using intelligent pattern matching and historica
941
945
  title: "Arguments",
942
946
  content: `Arguments: $ARGUMENTS`
943
947
  },
944
- // Step 4: Knowledge Base Read (library)
948
+ // Step 4: Load Project Context (library)
949
+ "load-project-context",
950
+ // Step 5: Knowledge Base Read (library)
945
951
  "read-knowledge-base",
946
952
  // Step 5: Understand Event Context (inline)
947
953
  {
@@ -1373,7 +1379,9 @@ Extract the following from arguments:
1373
1379
  - Specific file: "tests/specs/login.spec.ts"
1374
1380
  - All tests: "all" or "" \u2192 runs entire test suite`
1375
1381
  },
1376
- // Step 4: Knowledge Base Read (library)
1382
+ // Step 4: Load Project Context (library)
1383
+ "load-project-context",
1384
+ // Step 5: Knowledge Base Read (library)
1377
1385
  "read-knowledge-base",
1378
1386
  // Step 5: Test Execution Strategy (library)
1379
1387
  "read-test-strategy",
@@ -1528,7 +1536,9 @@ This task performs comprehensive change verification with:
1528
1536
 
1529
1537
  The input format determines the trigger source and context extraction strategy.`
1530
1538
  },
1531
- // Step 4: Knowledge Base Read (library)
1539
+ // Step 4: Load Project Context (library)
1540
+ "load-project-context",
1541
+ // Step 5: Knowledge Base Read (library)
1532
1542
  "read-knowledge-base",
1533
1543
  // Step 5: Detect Trigger Source (inline)
1534
1544
  {
@@ -2021,6 +2031,7 @@ This command orchestrates the complete test coverage workflow in a single execut
2021
2031
  content: `Focus area: $ARGUMENTS`
2022
2032
  },
2023
2033
  // Phase 1: Setup
2034
+ "load-project-context",
2024
2035
  "read-knowledge-base",
2025
2036
  // Phase 2: Exploration Protocol
2026
2037
  "exploration-protocol",
@@ -2087,8 +2098,8 @@ var exploreApplicationTask = {
2087
2098
  - **system**: target system (optional for multi-system setups)`
2088
2099
  },
2089
2100
  // Setup
2090
- "read-knowledge-base",
2091
2101
  "load-project-context",
2102
+ "read-knowledge-base",
2092
2103
  // Exploration Protocol (adaptive depth)
2093
2104
  "exploration-protocol",
2094
2105
  // Execute
@@ -5944,42 +5955,6 @@ Test Strategy: [exists/missing]
5944
5955
  tags: ["setup", "context"]
5945
5956
  };
5946
5957
 
5947
- // src/tasks/steps/setup/check-existing-artifacts.ts
5948
- var checkExistingArtifactsStep = {
5949
- id: "check-existing-artifacts",
5950
- title: "Assess Existing Artifacts",
5951
- category: "setup",
5952
- content: `## Assess Existing Artifacts
5953
-
5954
- Before proceeding, check what already exists to determine which phases to skip.
5955
-
5956
- **1. Check Project Context**
5957
- - Read \`.bugzy/runtime/project-context.md\` if it exists
5958
- - Check if it contains information relevant to: $ARGUMENTS
5959
- - **Decision**: If project context exists and covers the focus area -> Skip exploration
5960
-
5961
- **2. Check Test Plan**
5962
- - Read \`test-plan.md\` if it exists
5963
- - Check if it contains features related to: $ARGUMENTS
5964
- - **Decision**: If test plan exists and covers the focus area -> Skip test plan generation
5965
-
5966
- **3. Check Existing Test Cases**
5967
- - List files in \`./test-cases/\` for tests related to focus area
5968
- - List files in \`./tests/specs/\` for automated tests
5969
- - **Decision**: If test cases already exist for the focus area -> Skip to verification only
5970
-
5971
- **4. Document Assessment**
5972
- Create a brief assessment summary:
5973
- \`\`\`
5974
- Assessment for: $ARGUMENTS
5975
- - Project context: [exists/missing] - [covers focus area: yes/no]
5976
- - Test plan: [exists/missing] - [covers focus area: yes/no]
5977
- - Test cases: [count] existing for focus area
5978
- - Phases to run: [list phases]
5979
- \`\`\``,
5980
- tags: ["setup", "assessment"]
5981
- };
5982
-
5983
5958
  // src/tasks/steps/setup/security-notice.ts
5984
5959
  var securityNoticeStep = {
5985
5960
  id: "security-notice",
@@ -7243,7 +7218,6 @@ var STEP_LIBRARY = {
7243
7218
  "read-knowledge-base": readKnowledgeBaseStep,
7244
7219
  "read-test-strategy": readTestStrategyStep,
7245
7220
  "load-project-context": loadProjectContextStep,
7246
- "check-existing-artifacts": checkExistingArtifactsStep,
7247
7221
  // Exploration
7248
7222
  "exploration-protocol": explorationProtocolStep,
7249
7223
  // Clarification