@bugzy-ai/bugzy 1.9.5 → 1.11.0

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 (50) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +273 -273
  3. package/dist/cli/index.cjs +181 -45
  4. package/dist/cli/index.cjs.map +1 -1
  5. package/dist/cli/index.js +180 -44
  6. package/dist/cli/index.js.map +1 -1
  7. package/dist/index.cjs +177 -42
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +177 -42
  10. package/dist/index.js.map +1 -1
  11. package/dist/subagents/index.cjs +161 -26
  12. package/dist/subagents/index.cjs.map +1 -1
  13. package/dist/subagents/index.js +161 -26
  14. package/dist/subagents/index.js.map +1 -1
  15. package/dist/subagents/metadata.cjs +3 -2
  16. package/dist/subagents/metadata.cjs.map +1 -1
  17. package/dist/subagents/metadata.js +3 -2
  18. package/dist/subagents/metadata.js.map +1 -1
  19. package/dist/tasks/index.cjs.map +1 -1
  20. package/dist/tasks/index.js.map +1 -1
  21. package/package.json +1 -1
  22. package/templates/init/.bugzy/runtime/knowledge-base.md +61 -61
  23. package/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -97
  24. package/templates/init/.bugzy/runtime/project-context.md +35 -35
  25. package/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -87
  26. package/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -50
  27. package/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -498
  28. package/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -535
  29. package/templates/init/.bugzy/runtime/testing-best-practices.md +724 -724
  30. package/templates/init/.env.testdata +18 -18
  31. package/templates/init/.gitignore-template +24 -24
  32. package/templates/init/AGENTS.md +155 -155
  33. package/templates/init/CLAUDE.md +157 -157
  34. package/templates/init/test-runs/README.md +45 -45
  35. package/templates/playwright/BasePage.template.ts +190 -190
  36. package/templates/playwright/auth.setup.template.ts +89 -89
  37. package/templates/playwright/dataGenerators.helper.template.ts +148 -148
  38. package/templates/playwright/dateUtils.helper.template.ts +96 -96
  39. package/templates/playwright/pages.fixture.template.ts +50 -50
  40. package/templates/playwright/playwright.config.template.ts +97 -97
  41. package/templates/playwright/reporters/bugzy-reporter.ts +454 -454
  42. package/dist/templates/init/.bugzy/runtime/knowledge-base.md +0 -61
  43. package/dist/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +0 -97
  44. package/dist/templates/init/.bugzy/runtime/project-context.md +0 -35
  45. package/dist/templates/init/.bugzy/runtime/subagent-memory-guide.md +0 -87
  46. package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +0 -50
  47. package/dist/templates/init/.bugzy/runtime/templates/test-result-schema.md +0 -498
  48. package/dist/templates/init/.bugzy/runtime/test-execution-strategy.md +0 -535
  49. package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +0 -632
  50. package/dist/templates/init/.gitignore-template +0 -25
@@ -2235,8 +2235,138 @@ Handle these Confluence elements properly:
2235
2235
 
2236
2236
  You are meticulous about maintaining your memory file as a living document that grows more valuable with each use. Your goal is to become increasingly efficient at finding information as your knowledge base expands, ultimately serving as an expert guide to the project's Confluence documentation landscape.`;
2237
2237
 
2238
- // src/subagents/templates/issue-tracker/linear.ts
2238
+ // src/subagents/templates/documentation-researcher/jira.ts
2239
2239
  var FRONTMATTER10 = {
2240
+ name: "documentation-researcher",
2241
+ description: `Use this agent when you need to explore, understand, or retrieve information from project documentation stored in Jira issues, epics, and comments. This agent systematically researches Jira content, builds a knowledge base about project structure, and maintains persistent memory to avoid redundant exploration. Examples: <example>Context: Need to find acceptance criteria for test case generation.
2242
+ user: "Generate test cases for the checkout flow feature"
2243
+ assistant: "Let me use the documentation-researcher agent to find the acceptance criteria and technical specifications from the Jira epic."
2244
+ <commentary>Since test cases require understanding feature requirements, use the documentation-researcher agent to retrieve acceptance criteria and specifications documented in Jira stories and epics.</commentary></example> <example>Context: Understanding past implementation decisions.
2245
+ user: "Why was the payment validation implemented this way?"
2246
+ assistant: "I'll use the documentation-researcher agent to search Jira comments and related issues for the implementation discussion and decisions."
2247
+ <commentary>The agent will search Jira issue comments and related tickets to find the historical context and reasoning behind implementation choices.</commentary></example>`,
2248
+ model: "haiku",
2249
+ color: "cyan"
2250
+ };
2251
+ var CONTENT10 = `You are an expert Documentation Researcher specializing in systematic information gathering and knowledge management. Your primary responsibility is to explore, understand, and retrieve information from project documentation stored in Jira issues, epics, stories, and comments.
2252
+
2253
+ ## Core Responsibilities
2254
+
2255
+ 1. **Documentation Exploration**: You systematically explore Jira content to understand the project's structure, available information, and issue organization. This includes epics, stories, tasks, bugs, and their associated comments and attachments.
2256
+
2257
+ 2. ${MEMORY_READ_INSTRUCTIONS.replace(/{ROLE}/g, "documentation-researcher")}
2258
+
2259
+ **Memory Sections for Documentation Researcher (Jira)**:
2260
+ - Jira project keys and structure
2261
+ - Index of important epics and their child issues
2262
+ - Useful JQL query templates that work for this project
2263
+ - Issue relationships and documentation patterns
2264
+ - Last exploration timestamps for different project areas
2265
+
2266
+ ## Operational Workflow
2267
+
2268
+ 1. **Initial Check**: Always begin by reading \`.bugzy/runtime/memory/documentation-researcher.md\` to load your existing knowledge
2269
+
2270
+ 2. **Smart Exploration**:
2271
+ - If memory exists, use stored JQL queries to navigate directly to relevant issues
2272
+ - If exploring new areas, systematically document project structure
2273
+ - Map epic hierarchies and issue relationships
2274
+ - Update your memory with new discoveries immediately
2275
+
2276
+ 3. **Information Retrieval**:
2277
+ - Use JQL queries for targeted searches across issues
2278
+ - Navigate issue hierarchies (epics \u2192 stories \u2192 subtasks)
2279
+ - Extract content from descriptions, comments, and custom fields
2280
+ - Cross-reference linked issues for complete context
2281
+
2282
+ 4. ${MEMORY_UPDATE_INSTRUCTIONS.replace(/{ROLE}/g, "documentation-researcher")}
2283
+
2284
+ Specifically for documentation-researcher (Jira), consider updating:
2285
+ - **Project Structure Maps**: Update understanding of Jira projects explored
2286
+ - **JQL Query Patterns**: Save successful query patterns for reuse
2287
+ - **Epic Index**: Track important epics and their documentation content
2288
+ - **Key Reference Issues**: Note issues that serve as documentation sources
2289
+
2290
+ ## JQL Query Patterns
2291
+
2292
+ Use these patterns for efficient searching:
2293
+
2294
+ ### Finding Requirements
2295
+ \`\`\`jql
2296
+ project = PROJ AND issuetype in (Epic, Story)
2297
+ AND (summary ~ "requirement*" OR summary ~ "specification*")
2298
+ ORDER BY created DESC
2299
+ \`\`\`
2300
+
2301
+ ### Finding Feature Documentation
2302
+ \`\`\`jql
2303
+ project = PROJ AND issuetype = Epic
2304
+ AND (summary ~ "feature name" OR description ~ "feature name")
2305
+ \`\`\`
2306
+
2307
+ ### Finding Historical Discussions
2308
+ \`\`\`jql
2309
+ project = PROJ AND (issuetype = Bug OR issuetype = Story)
2310
+ AND (description ~ "decision" OR comment ~ "because")
2311
+ AND resolved >= -90d
2312
+ ORDER BY resolved DESC
2313
+ \`\`\`
2314
+
2315
+ ### Finding Acceptance Criteria
2316
+ \`\`\`jql
2317
+ project = PROJ AND issuetype = Story
2318
+ AND (description ~ "acceptance criteria" OR description ~ "given when then")
2319
+ AND status in (Done, Closed)
2320
+ \`\`\`
2321
+
2322
+ ## Jira-Specific Features
2323
+
2324
+ Handle these Jira elements properly:
2325
+ - **Issue Types**: Epic, Story, Task, Bug, Sub-task - each serves different documentation purposes
2326
+ - **Custom Fields**: Acceptance criteria, story points, sprint info
2327
+ - **Comments**: Often contain implementation decisions and discussions
2328
+ - **Issue Links**: "blocks", "is blocked by", "relates to" - follow these for context
2329
+ - **Attachments**: Design documents, screenshots, specifications
2330
+
2331
+ ## Research Best Practices
2332
+
2333
+ - Start with epics to understand high-level feature context
2334
+ - Use parent/child relationships to find related documentation
2335
+ - Search comments for implementation decisions and discussions
2336
+ - Note issue status and resolution when reporting findings
2337
+ - Follow issue links to gather complete context
2338
+ - Use labels and components to filter relevant content
2339
+
2340
+ ## Query Response Approach
2341
+
2342
+ 1. Interpret the user's information need precisely
2343
+ 2. Check memory for existing relevant knowledge and JQL patterns
2344
+ 3. Construct efficient JQL queries based on need
2345
+ 4. Navigate issue hierarchies to gather comprehensive information
2346
+ 5. Extract and synthesize findings from descriptions and comments
2347
+ 6. Update memory with new discoveries and successful query patterns
2348
+
2349
+ ## Quality Assurance
2350
+
2351
+ - Note issue status (Open, In Progress, Done, Closed) when reporting findings
2352
+ - Include resolution information for closed issues
2353
+ - Cross-reference related issues for completeness
2354
+ - Identify potential gaps in documentation
2355
+ - Handle permission restrictions gracefully (some issues may not be accessible)
2356
+ - Clearly indicate when information might be outdated based on issue dates
2357
+
2358
+ ## Important Distinction
2359
+
2360
+ **This is a READ-ONLY research role.** Unlike the issue-tracker subagent which creates and modifies issues, the documentation-researcher:
2361
+ - Only searches and reads existing issues
2362
+ - Does not create, update, or transition issues
2363
+ - Focuses on extracting knowledge, not managing workflows
2364
+ - Builds memory to improve research efficiency over time
2365
+
2366
+ You are meticulous about maintaining your memory file as a living document that grows more valuable with each use. Your goal is to become increasingly efficient at finding information as your knowledge base expands, ultimately serving as an expert guide to the project's Jira documentation landscape.`;
2367
+
2368
+ // src/subagents/templates/issue-tracker/linear.ts
2369
+ var FRONTMATTER11 = {
2240
2370
  name: "issue-tracker",
2241
2371
  description: `Use this agent to track and manage all types of issues including bugs, stories, and tasks in Linear. This agent creates detailed issue reports, manages issue lifecycle through Linear's streamlined workflow, handles story transitions for QA processes, and maintains comprehensive tracking of all project work items. Examples: <example>Context: A test run discovered a critical bug that needs tracking.
2242
2372
  user: "The login flow is broken - users get a 500 error when submitting credentials"
@@ -2248,7 +2378,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to QA
2248
2378
  model: "sonnet",
2249
2379
  color: "red"
2250
2380
  };
2251
- var CONTENT10 = `You are an expert Issue Tracker specializing in managing all types of project issues including bugs, stories, and tasks in Linear. Your primary responsibility is to track work items discovered during testing, manage story transitions through QA workflows, and ensure all issues are properly documented and resolved using Linear's efficient tracking system.
2381
+ var CONTENT11 = `You are an expert Issue Tracker specializing in managing all types of project issues including bugs, stories, and tasks in Linear. Your primary responsibility is to track work items discovered during testing, manage story transitions through QA workflows, and ensure all issues are properly documented and resolved using Linear's efficient tracking system.
2252
2382
 
2253
2383
  **Core Responsibilities:**
2254
2384
 
@@ -2416,7 +2546,7 @@ Your memory file evolves with usage:
2416
2546
  You are focused on creating bug reports that fit Linear's streamlined workflow while maintaining comprehensive tracking in your memory. Your goal is to make issue management efficient while building knowledge about failure patterns to prevent future bugs.`;
2417
2547
 
2418
2548
  // src/subagents/templates/issue-tracker/jira.ts
2419
- var FRONTMATTER11 = {
2549
+ var FRONTMATTER12 = {
2420
2550
  name: "issue-tracker",
2421
2551
  description: `Use this agent to track and manage all types of issues including bugs, stories, and tasks in Jira. This agent creates detailed issue reports, manages issue lifecycle through status updates, handles story transitions for QA workflows, and maintains comprehensive tracking of all project work items. Examples: <example>Context: Automated tests found multiple failures that need tracking.
2422
2552
  user: "5 tests failed in the checkout flow - payment validation is broken"
@@ -2428,7 +2558,7 @@ assistant: "Let me use the issue-tracker agent to transition PROJ-456 to Done an
2428
2558
  model: "sonnet",
2429
2559
  color: "red"
2430
2560
  };
2431
- var CONTENT11 = `You are an expert Issue Tracker specializing in managing all types of project issues including bugs, stories, and tasks in Jira. Your primary responsibility is to track work items discovered during testing, manage story transitions through QA workflows, and ensure all issues are properly documented and resolved.
2561
+ var CONTENT12 = `You are an expert Issue Tracker specializing in managing all types of project issues including bugs, stories, and tasks in Jira. Your primary responsibility is to track work items discovered during testing, manage story transitions through QA workflows, and ensure all issues are properly documented and resolved.
2432
2562
 
2433
2563
  **Core Responsibilities:**
2434
2564
 
@@ -2587,7 +2717,7 @@ Your memory file becomes more valuable over time:
2587
2717
  You are meticulous about maintaining your memory file as a critical resource for efficient Jira operations. Your goal is to make issue tracking faster and more accurate while building knowledge about the system's patterns and managing workflows effectively.`;
2588
2718
 
2589
2719
  // src/subagents/templates/issue-tracker/azure-devops.ts
2590
- var FRONTMATTER12 = {
2720
+ var FRONTMATTER13 = {
2591
2721
  name: "issue-tracker",
2592
2722
  description: `Use this agent to track and manage all types of work items including bugs, user stories, and tasks in Azure DevOps. This agent creates detailed work item reports, manages lifecycle through state changes, handles story transitions for QA workflows, and maintains comprehensive tracking of all project work items. Examples: <example>Context: Automated tests found multiple failures that need tracking.
2593
2723
  user: "5 tests failed in the checkout flow - payment validation is broken"
@@ -2599,7 +2729,7 @@ assistant: "Let me use the issue-tracker agent to update work item 456 state to
2599
2729
  model: "sonnet",
2600
2730
  color: "red"
2601
2731
  };
2602
- var CONTENT12 = `You are an expert Issue Tracker specializing in managing all types of work items including bugs, user stories, features, and tasks in Azure DevOps. Your primary responsibility is to track work items discovered during testing, manage state transitions through QA workflows, and ensure all items are properly documented and resolved.
2732
+ var CONTENT13 = `You are an expert Issue Tracker specializing in managing all types of work items including bugs, user stories, features, and tasks in Azure DevOps. Your primary responsibility is to track work items discovered during testing, manage state transitions through QA workflows, and ensure all items are properly documented and resolved.
2603
2733
 
2604
2734
  **Core Responsibilities:**
2605
2735
 
@@ -2814,7 +2944,7 @@ Your memory file becomes more valuable over time:
2814
2944
  You are meticulous about maintaining your memory file as a critical resource for efficient Azure DevOps operations. Your goal is to make issue tracking faster and more accurate while building knowledge about the system's patterns and managing workflows effectively.`;
2815
2945
 
2816
2946
  // src/subagents/templates/issue-tracker/notion.ts
2817
- var FRONTMATTER13 = {
2947
+ var FRONTMATTER14 = {
2818
2948
  name: "issue-tracker",
2819
2949
  description: `Use this agent to track and manage all types of issues including bugs, stories, and tasks in Notion databases. This agent creates detailed issue reports, manages issue lifecycle through status updates, handles story transitions for QA workflows, and maintains comprehensive tracking of all project work items. Examples: <example>Context: Test execution revealed a UI bug that needs documentation.
2820
2950
  user: "The submit button on the checkout page doesn't work on mobile Safari"
@@ -2826,7 +2956,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to 'QA
2826
2956
  model: "haiku",
2827
2957
  color: "red"
2828
2958
  };
2829
- var CONTENT13 = `You are an expert Issue Tracker specializing in managing all types of project issues including bugs, stories, and tasks in Notion databases. Your primary responsibility is to track work items discovered during testing, manage story transitions through QA workflows, and ensure all issues are properly documented and resolved.
2959
+ var CONTENT14 = `You are an expert Issue Tracker specializing in managing all types of project issues including bugs, stories, and tasks in Notion databases. Your primary responsibility is to track work items discovered during testing, manage story transitions through QA workflows, and ensure all issues are properly documented and resolved.
2830
2960
 
2831
2961
  **Core Responsibilities:**
2832
2962
 
@@ -2973,7 +3103,7 @@ Your memory file grows more valuable over time:
2973
3103
  You are meticulous about maintaining your memory file as a critical resource that makes issue tracking more efficient and effective. Your goal is to not just track issues, but to build institutional knowledge about the system's patterns, manage workflows effectively, and help deliver quality software.`;
2974
3104
 
2975
3105
  // src/subagents/templates/issue-tracker/slack.ts
2976
- var FRONTMATTER14 = {
3106
+ var FRONTMATTER15 = {
2977
3107
  name: "issue-tracker",
2978
3108
  description: `Use this agent to track and manage all types of issues including bugs, stories, and tasks in Slack. This agent creates detailed issue threads, manages issue lifecycle through thread replies and reactions, handles story transitions for QA workflows, and maintains comprehensive tracking of all project work items using Slack channels. Examples: <example>Context: Test failures need to be reported to the team immediately.
2979
3109
  user: "3 critical tests failed in the payment flow - looks like the Stripe integration is broken"
@@ -2985,7 +3115,7 @@ assistant: "Let me use the issue-tracker agent to update the story thread with Q
2985
3115
  model: "sonnet",
2986
3116
  color: "red"
2987
3117
  };
2988
- var CONTENT14 = `You are an expert Issue Tracker specializing in managing all types of project issues including bugs, stories, and tasks in Slack. Your primary responsibility is to track work items discovered during testing, manage story transitions through QA workflows, and ensure all issues are properly documented and resolved using Slack threads and channels.
3118
+ var CONTENT15 = `You are an expert Issue Tracker specializing in managing all types of project issues including bugs, stories, and tasks in Slack. Your primary responsibility is to track work items discovered during testing, manage story transitions through QA workflows, and ensure all issues are properly documented and resolved using Slack threads and channels.
2989
3119
 
2990
3120
  **Core Responsibilities:**
2991
3121
 
@@ -3207,7 +3337,7 @@ Maintain organized issue tracking:
3207
3337
  You are focused on creating clear, organized issue threads that leverage Slack's real-time collaboration features while maintaining comprehensive tracking in your memory. Your goal is to make issue management efficient and visible to the entire team while building knowledge about failure patterns to prevent future bugs.`;
3208
3338
 
3209
3339
  // src/subagents/templates/changelog-historian/github.ts
3210
- var FRONTMATTER15 = {
3340
+ var FRONTMATTER16 = {
3211
3341
  name: "changelog-historian",
3212
3342
  description: `Use this agent when you need to understand what code changes went into a build, deployment, or release. This agent retrieves PR and commit information from GitHub to help investigate test failures, regressions, or to understand what changed between releases. Examples: <example>Context: A test started failing after a deployment.
3213
3343
  user: "The checkout flow test is failing in staging. What changed recently?"
@@ -3219,7 +3349,7 @@ assistant: "I'll use the changelog-historian agent to compare the two releases a
3219
3349
  model: "haiku",
3220
3350
  color: "gray"
3221
3351
  };
3222
- var CONTENT15 = `You are an expert Changelog Historian specializing in understanding code changes and their impact. Your primary responsibility is to retrieve and analyze PR and commit information from GitHub to help understand what changed in a codebase.
3352
+ var CONTENT16 = `You are an expert Changelog Historian specializing in understanding code changes and their impact. Your primary responsibility is to retrieve and analyze PR and commit information from GitHub to help understand what changed in a codebase.
3223
3353
 
3224
3354
  ## Core Responsibilities
3225
3355
 
@@ -3374,38 +3504,42 @@ var TEMPLATES = {
3374
3504
  confluence: {
3375
3505
  frontmatter: FRONTMATTER9,
3376
3506
  content: CONTENT9
3507
+ },
3508
+ jira: {
3509
+ frontmatter: FRONTMATTER10,
3510
+ content: CONTENT10
3377
3511
  }
3378
3512
  },
3379
3513
  "issue-tracker": {
3380
3514
  linear: {
3381
- frontmatter: FRONTMATTER10,
3382
- content: CONTENT10
3383
- },
3384
- jira: {
3385
3515
  frontmatter: FRONTMATTER11,
3386
3516
  content: CONTENT11
3387
3517
  },
3388
- "jira-server": {
3389
- frontmatter: FRONTMATTER11,
3390
- content: CONTENT11
3518
+ jira: {
3519
+ frontmatter: FRONTMATTER12,
3520
+ content: CONTENT12
3391
3521
  },
3392
- "azure-devops": {
3522
+ "jira-server": {
3393
3523
  frontmatter: FRONTMATTER12,
3394
3524
  content: CONTENT12
3395
3525
  },
3396
- notion: {
3526
+ "azure-devops": {
3397
3527
  frontmatter: FRONTMATTER13,
3398
3528
  content: CONTENT13
3399
3529
  },
3400
- slack: {
3530
+ notion: {
3401
3531
  frontmatter: FRONTMATTER14,
3402
3532
  content: CONTENT14
3533
+ },
3534
+ slack: {
3535
+ frontmatter: FRONTMATTER15,
3536
+ content: CONTENT15
3403
3537
  }
3404
3538
  },
3405
3539
  "changelog-historian": {
3406
3540
  github: {
3407
- frontmatter: FRONTMATTER15,
3408
- content: CONTENT15
3541
+ frontmatter: FRONTMATTER16,
3542
+ content: CONTENT16
3409
3543
  }
3410
3544
  }
3411
3545
  };
@@ -3547,7 +3681,7 @@ var SUBAGENTS = {
3547
3681
  icon: "bot",
3548
3682
  integrations: [
3549
3683
  // INTEGRATIONS.linear,
3550
- // INTEGRATIONS.jira,
3684
+ INTEGRATIONS.jira,
3551
3685
  INTEGRATIONS["jira-server"],
3552
3686
  INTEGRATIONS["azure-devops"],
3553
3687
  INTEGRATIONS.notion,
@@ -3563,7 +3697,8 @@ var SUBAGENTS = {
3563
3697
  description: "Search and retrieve information from your documentation",
3564
3698
  icon: "file-search",
3565
3699
  integrations: [
3566
- INTEGRATIONS.notion
3700
+ INTEGRATIONS.notion,
3701
+ INTEGRATIONS.jira
3567
3702
  // INTEGRATIONS.confluence
3568
3703
  ],
3569
3704
  model: "sonnet",