@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.cjs CHANGED
@@ -73,19 +73,14 @@ var MCP_SERVERS = {
73
73
  teams: {
74
74
  provider: "teams",
75
75
  name: "Microsoft Teams",
76
- description: "Microsoft Teams MCP server for messaging via Bot Connector API",
76
+ description: "Microsoft Teams MCP server for messaging and channel operations",
77
77
  requiresCredentials: true,
78
78
  npmPackages: ["@bugzy-ai/teams-mcp-server"],
79
79
  config: {
80
80
  command: "teams-mcp-server",
81
81
  args: [],
82
82
  env: {
83
- // Bot credentials (platform-level, from Bugzy's Azure Bot registration)
84
- TEAMS_BOT_APP_ID: "${TEAMS_BOT_APP_ID}",
85
- TEAMS_BOT_APP_PASSWORD: "${TEAMS_BOT_APP_PASSWORD}",
86
- // Conversation context (per-project, from stored conversation reference)
87
- TEAMS_SERVICE_URL: "${TEAMS_SERVICE_URL}",
88
- TEAMS_CONVERSATION_ID: "${TEAMS_CONVERSATION_ID}"
83
+ TEAMS_ACCESS_TOKEN: "${TEAMS_ACCESS_TOKEN}"
89
84
  }
90
85
  }
91
86
  },
@@ -339,7 +334,9 @@ Extract the following from arguments:
339
334
  - **type**: Test type (exploratory, functional, regression, smoke) - defaults to functional
340
335
  - **focus**: Optional specific feature or section to focus on`
341
336
  },
342
- // Step 4: Knowledge Base Read (library)
337
+ // Step 4: Load Project Context (library)
338
+ "load-project-context",
339
+ // Step 5: Knowledge Base Read (library)
343
340
  "read-knowledge-base",
344
341
  // Step 5: Gather Context (inline)
345
342
  {
@@ -638,10 +635,10 @@ var generateTestPlanTask = {
638
635
  title: "Arguments",
639
636
  content: `Product description: $ARGUMENTS`
640
637
  },
641
- // Step 4: Knowledge Base Read (library)
642
- "read-knowledge-base",
643
- // Step 5: Load Project Context (library)
638
+ // Step 4: Load Project Context (library)
644
639
  "load-project-context",
640
+ // Step 5: Knowledge Base Read (library)
641
+ "read-knowledge-base",
645
642
  // Step 6: Process Description (inline)
646
643
  {
647
644
  inline: true,
@@ -863,7 +860,9 @@ Process team responses from Slack threads and handle multi-turn conversations wi
863
860
  title: "Arguments",
864
861
  content: `Team message/thread context: $ARGUMENTS`
865
862
  },
866
- // Step 4: Knowledge Base Read (library)
863
+ // Step 4: Load Project Context (library)
864
+ "load-project-context",
865
+ // Step 5: Knowledge Base Read (library)
867
866
  "read-knowledge-base",
868
867
  // Step 5: Detect Intent (inline - task-specific)
869
868
  {
@@ -1002,7 +1001,9 @@ Process various types of events using intelligent pattern matching and historica
1002
1001
  title: "Arguments",
1003
1002
  content: `Arguments: $ARGUMENTS`
1004
1003
  },
1005
- // Step 4: Knowledge Base Read (library)
1004
+ // Step 4: Load Project Context (library)
1005
+ "load-project-context",
1006
+ // Step 5: Knowledge Base Read (library)
1006
1007
  "read-knowledge-base",
1007
1008
  // Step 5: Understand Event Context (inline)
1008
1009
  {
@@ -1434,7 +1435,9 @@ Extract the following from arguments:
1434
1435
  - Specific file: "tests/specs/login.spec.ts"
1435
1436
  - All tests: "all" or "" \u2192 runs entire test suite`
1436
1437
  },
1437
- // Step 4: Knowledge Base Read (library)
1438
+ // Step 4: Load Project Context (library)
1439
+ "load-project-context",
1440
+ // Step 5: Knowledge Base Read (library)
1438
1441
  "read-knowledge-base",
1439
1442
  // Step 5: Test Execution Strategy (library)
1440
1443
  "read-test-strategy",
@@ -1589,7 +1592,9 @@ This task performs comprehensive change verification with:
1589
1592
 
1590
1593
  The input format determines the trigger source and context extraction strategy.`
1591
1594
  },
1592
- // Step 4: Knowledge Base Read (library)
1595
+ // Step 4: Load Project Context (library)
1596
+ "load-project-context",
1597
+ // Step 5: Knowledge Base Read (library)
1593
1598
  "read-knowledge-base",
1594
1599
  // Step 5: Detect Trigger Source (inline)
1595
1600
  {
@@ -2082,6 +2087,7 @@ This command orchestrates the complete test coverage workflow in a single execut
2082
2087
  content: `Focus area: $ARGUMENTS`
2083
2088
  },
2084
2089
  // Phase 1: Setup
2090
+ "load-project-context",
2085
2091
  "read-knowledge-base",
2086
2092
  // Phase 2: Exploration Protocol
2087
2093
  "exploration-protocol",
@@ -2148,8 +2154,8 @@ var exploreApplicationTask = {
2148
2154
  - **system**: target system (optional for multi-system setups)`
2149
2155
  },
2150
2156
  // Setup
2151
- "read-knowledge-base",
2152
2157
  "load-project-context",
2158
+ "read-knowledge-base",
2153
2159
  // Exploration Protocol (adaptive depth)
2154
2160
  "exploration-protocol",
2155
2161
  // Execute
@@ -6005,42 +6011,6 @@ Test Strategy: [exists/missing]
6005
6011
  tags: ["setup", "context"]
6006
6012
  };
6007
6013
 
6008
- // src/tasks/steps/setup/check-existing-artifacts.ts
6009
- var checkExistingArtifactsStep = {
6010
- id: "check-existing-artifacts",
6011
- title: "Assess Existing Artifacts",
6012
- category: "setup",
6013
- content: `## Assess Existing Artifacts
6014
-
6015
- Before proceeding, check what already exists to determine which phases to skip.
6016
-
6017
- **1. Check Project Context**
6018
- - Read \`.bugzy/runtime/project-context.md\` if it exists
6019
- - Check if it contains information relevant to: $ARGUMENTS
6020
- - **Decision**: If project context exists and covers the focus area -> Skip exploration
6021
-
6022
- **2. Check Test Plan**
6023
- - Read \`test-plan.md\` if it exists
6024
- - Check if it contains features related to: $ARGUMENTS
6025
- - **Decision**: If test plan exists and covers the focus area -> Skip test plan generation
6026
-
6027
- **3. Check Existing Test Cases**
6028
- - List files in \`./test-cases/\` for tests related to focus area
6029
- - List files in \`./tests/specs/\` for automated tests
6030
- - **Decision**: If test cases already exist for the focus area -> Skip to verification only
6031
-
6032
- **4. Document Assessment**
6033
- Create a brief assessment summary:
6034
- \`\`\`
6035
- Assessment for: $ARGUMENTS
6036
- - Project context: [exists/missing] - [covers focus area: yes/no]
6037
- - Test plan: [exists/missing] - [covers focus area: yes/no]
6038
- - Test cases: [count] existing for focus area
6039
- - Phases to run: [list phases]
6040
- \`\`\``,
6041
- tags: ["setup", "assessment"]
6042
- };
6043
-
6044
6014
  // src/tasks/steps/setup/security-notice.ts
6045
6015
  var securityNoticeStep = {
6046
6016
  id: "security-notice",
@@ -7304,7 +7274,6 @@ var STEP_LIBRARY = {
7304
7274
  "read-knowledge-base": readKnowledgeBaseStep,
7305
7275
  "read-test-strategy": readTestStrategyStep,
7306
7276
  "load-project-context": loadProjectContextStep,
7307
- "check-existing-artifacts": checkExistingArtifactsStep,
7308
7277
  // Exploration
7309
7278
  "exploration-protocol": explorationProtocolStep,
7310
7279
  // Clarification