@bugzy-ai/bugzy 1.9.3 → 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 +25 -57
  4. package/dist/cli/index.cjs.map +1 -1
  5. package/dist/cli/index.js +24 -56
  6. package/dist/cli/index.js.map +1 -1
  7. package/dist/index.cjs +22 -53
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +22 -53
  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
@@ -17,19 +17,14 @@ var MCP_SERVERS = {
17
17
  teams: {
18
18
  provider: "teams",
19
19
  name: "Microsoft Teams",
20
- description: "Microsoft Teams MCP server for messaging via Bot Connector API",
20
+ description: "Microsoft Teams MCP server for messaging and channel operations",
21
21
  requiresCredentials: true,
22
22
  npmPackages: ["@bugzy-ai/teams-mcp-server"],
23
23
  config: {
24
24
  command: "teams-mcp-server",
25
25
  args: [],
26
26
  env: {
27
- // Bot credentials (platform-level, from Bugzy's Azure Bot registration)
28
- TEAMS_BOT_APP_ID: "${TEAMS_BOT_APP_ID}",
29
- TEAMS_BOT_APP_PASSWORD: "${TEAMS_BOT_APP_PASSWORD}",
30
- // Conversation context (per-project, from stored conversation reference)
31
- TEAMS_SERVICE_URL: "${TEAMS_SERVICE_URL}",
32
- TEAMS_CONVERSATION_ID: "${TEAMS_CONVERSATION_ID}"
27
+ TEAMS_ACCESS_TOKEN: "${TEAMS_ACCESS_TOKEN}"
33
28
  }
34
29
  }
35
30
  },
@@ -283,7 +278,9 @@ Extract the following from arguments:
283
278
  - **type**: Test type (exploratory, functional, regression, smoke) - defaults to functional
284
279
  - **focus**: Optional specific feature or section to focus on`
285
280
  },
286
- // Step 4: Knowledge Base Read (library)
281
+ // Step 4: Load Project Context (library)
282
+ "load-project-context",
283
+ // Step 5: Knowledge Base Read (library)
287
284
  "read-knowledge-base",
288
285
  // Step 5: Gather Context (inline)
289
286
  {
@@ -582,10 +579,10 @@ var generateTestPlanTask = {
582
579
  title: "Arguments",
583
580
  content: `Product description: $ARGUMENTS`
584
581
  },
585
- // Step 4: Knowledge Base Read (library)
586
- "read-knowledge-base",
587
- // Step 5: Load Project Context (library)
582
+ // Step 4: Load Project Context (library)
588
583
  "load-project-context",
584
+ // Step 5: Knowledge Base Read (library)
585
+ "read-knowledge-base",
589
586
  // Step 6: Process Description (inline)
590
587
  {
591
588
  inline: true,
@@ -807,7 +804,9 @@ Process team responses from Slack threads and handle multi-turn conversations wi
807
804
  title: "Arguments",
808
805
  content: `Team message/thread context: $ARGUMENTS`
809
806
  },
810
- // Step 4: Knowledge Base Read (library)
807
+ // Step 4: Load Project Context (library)
808
+ "load-project-context",
809
+ // Step 5: Knowledge Base Read (library)
811
810
  "read-knowledge-base",
812
811
  // Step 5: Detect Intent (inline - task-specific)
813
812
  {
@@ -946,7 +945,9 @@ Process various types of events using intelligent pattern matching and historica
946
945
  title: "Arguments",
947
946
  content: `Arguments: $ARGUMENTS`
948
947
  },
949
- // Step 4: Knowledge Base Read (library)
948
+ // Step 4: Load Project Context (library)
949
+ "load-project-context",
950
+ // Step 5: Knowledge Base Read (library)
950
951
  "read-knowledge-base",
951
952
  // Step 5: Understand Event Context (inline)
952
953
  {
@@ -1378,7 +1379,9 @@ Extract the following from arguments:
1378
1379
  - Specific file: "tests/specs/login.spec.ts"
1379
1380
  - All tests: "all" or "" \u2192 runs entire test suite`
1380
1381
  },
1381
- // Step 4: Knowledge Base Read (library)
1382
+ // Step 4: Load Project Context (library)
1383
+ "load-project-context",
1384
+ // Step 5: Knowledge Base Read (library)
1382
1385
  "read-knowledge-base",
1383
1386
  // Step 5: Test Execution Strategy (library)
1384
1387
  "read-test-strategy",
@@ -1533,7 +1536,9 @@ This task performs comprehensive change verification with:
1533
1536
 
1534
1537
  The input format determines the trigger source and context extraction strategy.`
1535
1538
  },
1536
- // Step 4: Knowledge Base Read (library)
1539
+ // Step 4: Load Project Context (library)
1540
+ "load-project-context",
1541
+ // Step 5: Knowledge Base Read (library)
1537
1542
  "read-knowledge-base",
1538
1543
  // Step 5: Detect Trigger Source (inline)
1539
1544
  {
@@ -2026,6 +2031,7 @@ This command orchestrates the complete test coverage workflow in a single execut
2026
2031
  content: `Focus area: $ARGUMENTS`
2027
2032
  },
2028
2033
  // Phase 1: Setup
2034
+ "load-project-context",
2029
2035
  "read-knowledge-base",
2030
2036
  // Phase 2: Exploration Protocol
2031
2037
  "exploration-protocol",
@@ -2092,8 +2098,8 @@ var exploreApplicationTask = {
2092
2098
  - **system**: target system (optional for multi-system setups)`
2093
2099
  },
2094
2100
  // Setup
2095
- "read-knowledge-base",
2096
2101
  "load-project-context",
2102
+ "read-knowledge-base",
2097
2103
  // Exploration Protocol (adaptive depth)
2098
2104
  "exploration-protocol",
2099
2105
  // Execute
@@ -5949,42 +5955,6 @@ Test Strategy: [exists/missing]
5949
5955
  tags: ["setup", "context"]
5950
5956
  };
5951
5957
 
5952
- // src/tasks/steps/setup/check-existing-artifacts.ts
5953
- var checkExistingArtifactsStep = {
5954
- id: "check-existing-artifacts",
5955
- title: "Assess Existing Artifacts",
5956
- category: "setup",
5957
- content: `## Assess Existing Artifacts
5958
-
5959
- Before proceeding, check what already exists to determine which phases to skip.
5960
-
5961
- **1. Check Project Context**
5962
- - Read \`.bugzy/runtime/project-context.md\` if it exists
5963
- - Check if it contains information relevant to: $ARGUMENTS
5964
- - **Decision**: If project context exists and covers the focus area -> Skip exploration
5965
-
5966
- **2. Check Test Plan**
5967
- - Read \`test-plan.md\` if it exists
5968
- - Check if it contains features related to: $ARGUMENTS
5969
- - **Decision**: If test plan exists and covers the focus area -> Skip test plan generation
5970
-
5971
- **3. Check Existing Test Cases**
5972
- - List files in \`./test-cases/\` for tests related to focus area
5973
- - List files in \`./tests/specs/\` for automated tests
5974
- - **Decision**: If test cases already exist for the focus area -> Skip to verification only
5975
-
5976
- **4. Document Assessment**
5977
- Create a brief assessment summary:
5978
- \`\`\`
5979
- Assessment for: $ARGUMENTS
5980
- - Project context: [exists/missing] - [covers focus area: yes/no]
5981
- - Test plan: [exists/missing] - [covers focus area: yes/no]
5982
- - Test cases: [count] existing for focus area
5983
- - Phases to run: [list phases]
5984
- \`\`\``,
5985
- tags: ["setup", "assessment"]
5986
- };
5987
-
5988
5958
  // src/tasks/steps/setup/security-notice.ts
5989
5959
  var securityNoticeStep = {
5990
5960
  id: "security-notice",
@@ -7248,7 +7218,6 @@ var STEP_LIBRARY = {
7248
7218
  "read-knowledge-base": readKnowledgeBaseStep,
7249
7219
  "read-test-strategy": readTestStrategyStep,
7250
7220
  "load-project-context": loadProjectContextStep,
7251
- "check-existing-artifacts": checkExistingArtifactsStep,
7252
7221
  // Exploration
7253
7222
  "exploration-protocol": explorationProtocolStep,
7254
7223
  // Clarification