@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/cli/index.js CHANGED
@@ -20,12 +20,12 @@ var __copyProps = (to, from, except, desc) => {
20
20
  };
21
21
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
22
 
23
- // node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js
23
+ // node_modules/.pnpm/tsup@8.5.0_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js
24
24
  import path from "path";
25
25
  import { fileURLToPath } from "url";
26
26
  var getFilename, getDirname, __dirname;
27
27
  var init_esm_shims = __esm({
28
- "node_modules/.pnpm/tsup@8.5.1_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js"() {
28
+ "node_modules/.pnpm/tsup@8.5.0_postcss@8.5.6_typescript@5.9.3/node_modules/tsup/assets/esm_shims.js"() {
29
29
  "use strict";
30
30
  getFilename = () => fileURLToPath(import.meta.url);
31
31
  getDirname = () => path.dirname(getFilename());
@@ -127,7 +127,9 @@ Extract the following from arguments:
127
127
  - **type**: Test type (exploratory, functional, regression, smoke) - defaults to functional
128
128
  - **focus**: Optional specific feature or section to focus on`
129
129
  },
130
- // Step 4: Knowledge Base Read (library)
130
+ // Step 4: Load Project Context (library)
131
+ "load-project-context",
132
+ // Step 5: Knowledge Base Read (library)
131
133
  "read-knowledge-base",
132
134
  // Step 5: Gather Context (inline)
133
135
  {
@@ -434,10 +436,10 @@ var init_generate_test_plan = __esm({
434
436
  title: "Arguments",
435
437
  content: `Product description: $ARGUMENTS`
436
438
  },
437
- // Step 4: Knowledge Base Read (library)
438
- "read-knowledge-base",
439
- // Step 5: Load Project Context (library)
439
+ // Step 4: Load Project Context (library)
440
440
  "load-project-context",
441
+ // Step 5: Knowledge Base Read (library)
442
+ "read-knowledge-base",
441
443
  // Step 6: Process Description (inline)
442
444
  {
443
445
  inline: true,
@@ -667,7 +669,9 @@ Process team responses from Slack threads and handle multi-turn conversations wi
667
669
  title: "Arguments",
668
670
  content: `Team message/thread context: $ARGUMENTS`
669
671
  },
670
- // Step 4: Knowledge Base Read (library)
672
+ // Step 4: Load Project Context (library)
673
+ "load-project-context",
674
+ // Step 5: Knowledge Base Read (library)
671
675
  "read-knowledge-base",
672
676
  // Step 5: Detect Intent (inline - task-specific)
673
677
  {
@@ -814,7 +818,9 @@ Process various types of events using intelligent pattern matching and historica
814
818
  title: "Arguments",
815
819
  content: `Arguments: $ARGUMENTS`
816
820
  },
817
- // Step 4: Knowledge Base Read (library)
821
+ // Step 4: Load Project Context (library)
822
+ "load-project-context",
823
+ // Step 5: Knowledge Base Read (library)
818
824
  "read-knowledge-base",
819
825
  // Step 5: Understand Event Context (inline)
820
826
  {
@@ -1254,7 +1260,9 @@ Extract the following from arguments:
1254
1260
  - Specific file: "tests/specs/login.spec.ts"
1255
1261
  - All tests: "all" or "" \u2192 runs entire test suite`
1256
1262
  },
1257
- // Step 4: Knowledge Base Read (library)
1263
+ // Step 4: Load Project Context (library)
1264
+ "load-project-context",
1265
+ // Step 5: Knowledge Base Read (library)
1258
1266
  "read-knowledge-base",
1259
1267
  // Step 5: Test Execution Strategy (library)
1260
1268
  "read-test-strategy",
@@ -1417,7 +1425,9 @@ This task performs comprehensive change verification with:
1417
1425
 
1418
1426
  The input format determines the trigger source and context extraction strategy.`
1419
1427
  },
1420
- // Step 4: Knowledge Base Read (library)
1428
+ // Step 4: Load Project Context (library)
1429
+ "load-project-context",
1430
+ // Step 5: Knowledge Base Read (library)
1421
1431
  "read-knowledge-base",
1422
1432
  // Step 5: Detect Trigger Source (inline)
1423
1433
  {
@@ -1918,6 +1928,7 @@ This command orchestrates the complete test coverage workflow in a single execut
1918
1928
  content: `Focus area: $ARGUMENTS`
1919
1929
  },
1920
1930
  // Phase 1: Setup
1931
+ "load-project-context",
1921
1932
  "read-knowledge-base",
1922
1933
  // Phase 2: Exploration Protocol
1923
1934
  "exploration-protocol",
@@ -1992,8 +2003,8 @@ var init_explore_application = __esm({
1992
2003
  - **system**: target system (optional for multi-system setups)`
1993
2004
  },
1994
2005
  // Setup
1995
- "read-knowledge-base",
1996
2006
  "load-project-context",
2007
+ "read-knowledge-base",
1997
2008
  // Exploration Protocol (adaptive depth)
1998
2009
  "exploration-protocol",
1999
2010
  // Execute
@@ -6318,43 +6329,6 @@ Test Strategy: [exists/missing]
6318
6329
  tags: ["setup", "context"]
6319
6330
  };
6320
6331
 
6321
- // src/tasks/steps/setup/check-existing-artifacts.ts
6322
- init_esm_shims();
6323
- var checkExistingArtifactsStep = {
6324
- id: "check-existing-artifacts",
6325
- title: "Assess Existing Artifacts",
6326
- category: "setup",
6327
- content: `## Assess Existing Artifacts
6328
-
6329
- Before proceeding, check what already exists to determine which phases to skip.
6330
-
6331
- **1. Check Project Context**
6332
- - Read \`.bugzy/runtime/project-context.md\` if it exists
6333
- - Check if it contains information relevant to: $ARGUMENTS
6334
- - **Decision**: If project context exists and covers the focus area -> Skip exploration
6335
-
6336
- **2. Check Test Plan**
6337
- - Read \`test-plan.md\` if it exists
6338
- - Check if it contains features related to: $ARGUMENTS
6339
- - **Decision**: If test plan exists and covers the focus area -> Skip test plan generation
6340
-
6341
- **3. Check Existing Test Cases**
6342
- - List files in \`./test-cases/\` for tests related to focus area
6343
- - List files in \`./tests/specs/\` for automated tests
6344
- - **Decision**: If test cases already exist for the focus area -> Skip to verification only
6345
-
6346
- **4. Document Assessment**
6347
- Create a brief assessment summary:
6348
- \`\`\`
6349
- Assessment for: $ARGUMENTS
6350
- - Project context: [exists/missing] - [covers focus area: yes/no]
6351
- - Test plan: [exists/missing] - [covers focus area: yes/no]
6352
- - Test cases: [count] existing for focus area
6353
- - Phases to run: [list phases]
6354
- \`\`\``,
6355
- tags: ["setup", "assessment"]
6356
- };
6357
-
6358
6332
  // src/tasks/steps/setup/security-notice.ts
6359
6333
  init_esm_shims();
6360
6334
  var securityNoticeStep = {
@@ -7640,7 +7614,6 @@ var STEP_LIBRARY = {
7640
7614
  "read-knowledge-base": readKnowledgeBaseStep,
7641
7615
  "read-test-strategy": readTestStrategyStep,
7642
7616
  "load-project-context": loadProjectContextStep,
7643
- "check-existing-artifacts": checkExistingArtifactsStep,
7644
7617
  // Exploration
7645
7618
  "exploration-protocol": explorationProtocolStep,
7646
7619
  // Clarification