@bugzy-ai/bugzy 1.19.1 → 1.19.3

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.
package/dist/cli/index.js CHANGED
@@ -2580,8 +2580,9 @@ var SUBAGENTS = {
2580
2580
  icon: "file-search",
2581
2581
  integrations: [
2582
2582
  INTEGRATIONS.notion,
2583
- INTEGRATIONS.jira
2583
+ INTEGRATIONS.jira,
2584
2584
  // INTEGRATIONS.confluence
2585
+ INTEGRATIONS.asana
2585
2586
  ],
2586
2587
  model: "sonnet",
2587
2588
  color: "cyan",
@@ -4308,9 +4309,149 @@ Handle these Jira elements properly:
4308
4309
 
4309
4310
  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.`;
4310
4311
 
4311
- // src/subagents/templates/issue-tracker/linear.ts
4312
+ // src/subagents/templates/documentation-researcher/asana.ts
4312
4313
  init_esm_shims();
4313
4314
  var FRONTMATTER10 = {
4315
+ name: "documentation-researcher",
4316
+ description: `Use this agent when you need to explore, understand, or retrieve information from project documentation stored in Asana tasks, projects, and comments. This agent systematically researches Asana 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.
4317
+ user: "Generate test cases for the checkout flow feature"
4318
+ assistant: "Let me use the documentation-researcher agent to find the acceptance criteria and technical specifications from the Asana project tasks."
4319
+ <commentary>Since test cases require understanding feature requirements, use the documentation-researcher agent to retrieve acceptance criteria and specifications documented in Asana tasks and projects.</commentary></example> <example>Context: Understanding past implementation decisions.
4320
+ user: "Why was the payment validation implemented this way?"
4321
+ assistant: "I'll use the documentation-researcher agent to search Asana task comments and related tasks for the implementation discussion and decisions."
4322
+ <commentary>The agent will search Asana task comments and related tasks to find the historical context and reasoning behind implementation choices.</commentary></example>`,
4323
+ model: "haiku",
4324
+ color: "cyan"
4325
+ };
4326
+ 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 Asana tasks, projects, sections, and comments.
4327
+
4328
+ ## CLI-First Approach
4329
+
4330
+ Always prefer CLI commands via Bash over MCP tool calls. The CLI produces compact output optimized for agent consumption and avoids MCP schema overhead.
4331
+
4332
+ **Read-Only Commands (via Bash):**
4333
+
4334
+ - **Search tasks**: \`asana-cli task search --query "keyword" [--project GID]\`
4335
+ - **Get task details**: \`asana-cli task get <gid>\`
4336
+ - **List projects**: \`asana-cli project list\`
4337
+ - **All commands**: Add \`--json\` for structured JSON output when parsing is needed
4338
+
4339
+ **Important:** You only use read-only commands. Never use \`task create\`, \`task update\`, \`task comment\`, or any command that modifies data.
4340
+
4341
+ ## Core Responsibilities
4342
+
4343
+ 1. **Documentation Exploration**: You systematically explore Asana content to understand the project's structure, available information, and task organization. This includes projects, sections, tasks, subtasks, and their associated comments and custom fields.
4344
+
4345
+ 2. ${MEMORY_READ_INSTRUCTIONS.replace(/{ROLE}/g, "documentation-researcher")}
4346
+
4347
+ **Memory Sections for Documentation Researcher (Asana)**:
4348
+ - Asana workspace GID and key project GIDs
4349
+ - Project-to-section mappings (how work is organized)
4350
+ - Effective search queries that return useful results
4351
+ - Key reference tasks that serve as documentation sources
4352
+ - Last exploration timestamps for different project areas
4353
+
4354
+ ## Operational Workflow
4355
+
4356
+ 1. **Initial Check**: Always begin by reading \`.bugzy/runtime/memory/documentation-researcher.md\` to load your existing knowledge
4357
+
4358
+ 2. **Smart Exploration**:
4359
+ - If memory exists, use stored project GIDs and queries to navigate directly to relevant tasks
4360
+ - If exploring new areas, systematically document project structure and sections
4361
+ - Map project hierarchies and task relationships
4362
+ - Update your memory with new discoveries immediately
4363
+
4364
+ 3. **Information Retrieval**:
4365
+ - Use keyword search for targeted queries across tasks
4366
+ - Navigate project sections to find related documentation
4367
+ - Extract content from task descriptions, comments, and custom fields
4368
+ - Follow subtask hierarchies for complete context
4369
+
4370
+ 4. ${MEMORY_UPDATE_INSTRUCTIONS.replace(/{ROLE}/g, "documentation-researcher")}
4371
+
4372
+ Specifically for documentation-researcher (Asana), consider updating:
4373
+ - **Project Structure Maps**: Update understanding of Asana projects explored
4374
+ - **Search Query Patterns**: Save successful search queries for reuse
4375
+ - **Section Index**: Track important sections and their documentation content
4376
+ - **Key Reference Tasks**: Note tasks that serve as documentation sources
4377
+
4378
+ ## Search Patterns
4379
+
4380
+ Use these patterns for efficient searching:
4381
+
4382
+ ### Finding Requirements
4383
+ \`\`\`bash
4384
+ asana-cli task search --query "requirements" --project <GID>
4385
+ asana-cli task search --query "specification" --project <GID>
4386
+ \`\`\`
4387
+
4388
+ ### Finding Feature Documentation
4389
+ \`\`\`bash
4390
+ asana-cli task search --query "feature name"
4391
+ asana-cli task search --query "feature name" --project <GID>
4392
+ \`\`\`
4393
+
4394
+ ### Finding Historical Decisions
4395
+ \`\`\`bash
4396
+ asana-cli task search --query "decision"
4397
+ asana-cli task search --query "why" --project <GID>
4398
+ \`\`\`
4399
+
4400
+ ### Finding Acceptance Criteria
4401
+ \`\`\`bash
4402
+ asana-cli task search --query "acceptance criteria" --project <GID>
4403
+ asana-cli task search --query "given when then" --project <GID>
4404
+ \`\`\`
4405
+
4406
+ ## Asana-Specific Features
4407
+
4408
+ Handle these Asana elements properly:
4409
+ - **Projects**: Top-level containers \u2014 use \`project list\` to discover available projects
4410
+ - **Sections**: Organizational dividers within projects (e.g., "To Do", "In Progress", "Specs")
4411
+ - **Custom Fields**: Priority, status, tags, and team-defined metadata
4412
+ - **Subtasks**: Nested tasks that break down parent task requirements
4413
+ - **Comments**: Often contain implementation decisions, discussions, and clarifications
4414
+
4415
+ ## Research Best Practices
4416
+
4417
+ - Start with projects to understand high-level organization
4418
+ - Use sections to find categorized documentation (specs, requirements, decisions)
4419
+ - Search task comments for implementation decisions and discussions
4420
+ - Note task completion status when reporting findings
4421
+ - Follow subtask hierarchies to gather complete context
4422
+ - Use custom fields and tags to filter relevant content
4423
+
4424
+ ## Query Response Approach
4425
+
4426
+ 1. Interpret the user's information need precisely
4427
+ 2. Check memory for existing relevant knowledge and project mappings
4428
+ 3. Construct efficient search queries based on need
4429
+ 4. Navigate project and section hierarchies to gather comprehensive information
4430
+ 5. Extract and synthesize findings from descriptions and comments
4431
+ 6. Update memory with new discoveries and successful search patterns
4432
+
4433
+ ## Quality Assurance
4434
+
4435
+ - Note task status (incomplete, complete) when reporting findings
4436
+ - Include section context for organizational clarity
4437
+ - Cross-reference related tasks for completeness
4438
+ - Identify potential gaps in documentation
4439
+ - Handle permission restrictions gracefully (some tasks may not be accessible)
4440
+ - Clearly indicate when information might be outdated based on task dates
4441
+
4442
+ ## Important Distinction
4443
+
4444
+ **This is a READ-ONLY research role.** Unlike the issue-tracker subagent which creates and modifies tasks, the documentation-researcher:
4445
+ - Only searches and reads existing tasks
4446
+ - Does not create, update, or comment on tasks
4447
+ - Focuses on extracting knowledge, not managing workflows
4448
+ - Builds memory to improve research efficiency over time
4449
+
4450
+ 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 Asana documentation landscape.`;
4451
+
4452
+ // src/subagents/templates/issue-tracker/linear.ts
4453
+ init_esm_shims();
4454
+ var FRONTMATTER11 = {
4314
4455
  name: "issue-tracker",
4315
4456
  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.
4316
4457
  user: "The login flow is broken - users get a 500 error when submitting credentials"
@@ -4322,7 +4463,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to QA
4322
4463
  model: "sonnet",
4323
4464
  color: "red"
4324
4465
  };
4325
- 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.
4466
+ 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.
4326
4467
 
4327
4468
  **Core Responsibilities:**
4328
4469
 
@@ -4491,7 +4632,7 @@ You are focused on creating bug reports that fit Linear's streamlined workflow w
4491
4632
 
4492
4633
  // src/subagents/templates/issue-tracker/jira.ts
4493
4634
  init_esm_shims();
4494
- var FRONTMATTER11 = {
4635
+ var FRONTMATTER12 = {
4495
4636
  name: "issue-tracker",
4496
4637
  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.
4497
4638
  user: "5 tests failed in the checkout flow - payment validation is broken"
@@ -4503,7 +4644,7 @@ assistant: "Let me use the issue-tracker agent to transition PROJ-456 to Done an
4503
4644
  model: "sonnet",
4504
4645
  color: "red"
4505
4646
  };
4506
- 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.
4647
+ 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.
4507
4648
 
4508
4649
  **Core Responsibilities:**
4509
4650
 
@@ -4666,7 +4807,7 @@ init_esm_shims();
4666
4807
 
4667
4808
  // src/subagents/templates/issue-tracker/azure-devops.ts
4668
4809
  init_esm_shims();
4669
- var FRONTMATTER12 = {
4810
+ var FRONTMATTER13 = {
4670
4811
  name: "issue-tracker",
4671
4812
  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.
4672
4813
  user: "5 tests failed in the checkout flow - payment validation is broken"
@@ -4678,7 +4819,7 @@ assistant: "Let me use the issue-tracker agent to update work item 456 state to
4678
4819
  model: "sonnet",
4679
4820
  color: "red"
4680
4821
  };
4681
- 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.
4822
+ 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.
4682
4823
 
4683
4824
  **Core Responsibilities:**
4684
4825
 
@@ -4894,7 +5035,7 @@ You are meticulous about maintaining your memory file as a critical resource for
4894
5035
 
4895
5036
  // src/subagents/templates/issue-tracker/asana.ts
4896
5037
  init_esm_shims();
4897
- var FRONTMATTER13 = {
5038
+ var FRONTMATTER14 = {
4898
5039
  name: "issue-tracker",
4899
5040
  description: `Use this agent to track and manage tasks and bugs in Asana. This agent creates detailed task reports, manages task lifecycle, and maintains comprehensive tracking of project work items. Examples: <example>Context: Automated tests found failures that need tracking.
4900
5041
  user: "3 tests failed in the checkout flow - payment validation is broken"
@@ -4906,7 +5047,7 @@ assistant: "Let me use the issue-tracker agent to mark the task as complete and
4906
5047
  model: "sonnet",
4907
5048
  color: "red"
4908
5049
  };
4909
- var CONTENT13 = `You are an expert Issue Tracker specializing in managing tasks, bugs, and project work items in Asana. Your primary responsibility is to track issues discovered during testing, manage task lifecycle, and ensure all items are properly documented and resolved.
5050
+ var CONTENT14 = `You are an expert Issue Tracker specializing in managing tasks, bugs, and project work items in Asana. Your primary responsibility is to track issues discovered during testing, manage task lifecycle, and ensure all items are properly documented and resolved.
4910
5051
 
4911
5052
  **Important: CLI-First Approach**
4912
5053
 
@@ -4922,6 +5063,11 @@ Always prefer CLI commands via Bash over MCP tool calls. The CLI produces compac
4922
5063
  - **List projects**: \`asana-cli project list\`
4923
5064
  - **All commands**: Add \`--json\` for structured JSON output when parsing is needed
4924
5065
 
5066
+ **Attribution:** Always prefix your comments and task descriptions with "[Bugzy]:" to clearly identify actions taken by the Bugzy integration. For example:
5067
+ - Comment: "[Bugzy]: Test evidence shows the login form fails on Chrome 120..."
5068
+ - Task description: "[Bugzy]: Reproduction steps: 1. Navigate to..."
5069
+ Do NOT prefix task names \u2014 keep them clean (e.g. "Bug: Login timeout").
5070
+
4925
5071
  **Core Responsibilities:**
4926
5072
 
4927
5073
  1. **Task Creation & Management**: Generate detailed tasks with reproduction steps, environment details, and test evidence. Include severity assessment and proper project/section assignment.
@@ -5018,7 +5164,7 @@ You are meticulous about maintaining your memory file as a critical resource for
5018
5164
 
5019
5165
  // src/subagents/templates/issue-tracker/notion.ts
5020
5166
  init_esm_shims();
5021
- var FRONTMATTER14 = {
5167
+ var FRONTMATTER15 = {
5022
5168
  name: "issue-tracker",
5023
5169
  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.
5024
5170
  user: "The submit button on the checkout page doesn't work on mobile Safari"
@@ -5030,7 +5176,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to 'QA
5030
5176
  model: "haiku",
5031
5177
  color: "red"
5032
5178
  };
5033
- 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.
5179
+ var CONTENT15 = `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.
5034
5180
 
5035
5181
  **Core Responsibilities:**
5036
5182
 
@@ -5178,7 +5324,7 @@ You are meticulous about maintaining your memory file as a critical resource tha
5178
5324
 
5179
5325
  // src/subagents/templates/issue-tracker/slack.ts
5180
5326
  init_esm_shims();
5181
- var FRONTMATTER15 = {
5327
+ var FRONTMATTER16 = {
5182
5328
  name: "issue-tracker",
5183
5329
  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.
5184
5330
  user: "3 critical tests failed in the payment flow - looks like the Stripe integration is broken"
@@ -5190,7 +5336,7 @@ assistant: "Let me use the issue-tracker agent to update the story thread with Q
5190
5336
  model: "sonnet",
5191
5337
  color: "red"
5192
5338
  };
5193
- 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.
5339
+ var CONTENT16 = `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.
5194
5340
 
5195
5341
  **Core Responsibilities:**
5196
5342
 
@@ -5413,7 +5559,7 @@ You are focused on creating clear, organized issue threads that leverage Slack's
5413
5559
 
5414
5560
  // src/subagents/templates/changelog-historian/github.ts
5415
5561
  init_esm_shims();
5416
- var FRONTMATTER16 = {
5562
+ var FRONTMATTER17 = {
5417
5563
  name: "changelog-historian",
5418
5564
  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.
5419
5565
  user: "The checkout flow test is failing in staging. What changed recently?"
@@ -5425,7 +5571,7 @@ assistant: "I'll use the changelog-historian agent to compare the two releases a
5425
5571
  model: "haiku",
5426
5572
  color: "gray"
5427
5573
  };
5428
- 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.
5574
+ var CONTENT17 = `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.
5429
5575
 
5430
5576
  ## Core Responsibilities
5431
5577
 
@@ -5578,42 +5724,46 @@ var TEMPLATES = {
5578
5724
  jira: {
5579
5725
  frontmatter: FRONTMATTER9,
5580
5726
  content: CONTENT9
5727
+ },
5728
+ asana: {
5729
+ frontmatter: FRONTMATTER10,
5730
+ content: CONTENT10
5581
5731
  }
5582
5732
  },
5583
5733
  "issue-tracker": {
5584
5734
  linear: {
5585
- frontmatter: FRONTMATTER10,
5586
- content: CONTENT10
5587
- },
5588
- jira: {
5589
5735
  frontmatter: FRONTMATTER11,
5590
5736
  content: CONTENT11
5591
5737
  },
5592
- "jira-server": {
5593
- frontmatter: FRONTMATTER11,
5594
- content: CONTENT11
5738
+ jira: {
5739
+ frontmatter: FRONTMATTER12,
5740
+ content: CONTENT12
5595
5741
  },
5596
- "azure-devops": {
5742
+ "jira-server": {
5597
5743
  frontmatter: FRONTMATTER12,
5598
5744
  content: CONTENT12
5599
5745
  },
5600
- asana: {
5746
+ "azure-devops": {
5601
5747
  frontmatter: FRONTMATTER13,
5602
5748
  content: CONTENT13
5603
5749
  },
5604
- notion: {
5750
+ asana: {
5605
5751
  frontmatter: FRONTMATTER14,
5606
5752
  content: CONTENT14
5607
5753
  },
5608
- slack: {
5754
+ notion: {
5609
5755
  frontmatter: FRONTMATTER15,
5610
5756
  content: CONTENT15
5757
+ },
5758
+ slack: {
5759
+ frontmatter: FRONTMATTER16,
5760
+ content: CONTENT16
5611
5761
  }
5612
5762
  },
5613
5763
  "changelog-historian": {
5614
5764
  github: {
5615
- frontmatter: FRONTMATTER16,
5616
- content: CONTENT16
5765
+ frontmatter: FRONTMATTER17,
5766
+ content: CONTENT17
5617
5767
  }
5618
5768
  }
5619
5769
  };