@bugzy-ai/bugzy 1.19.2 → 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/index.js CHANGED
@@ -3736,8 +3736,147 @@ Handle these Jira elements properly:
3736
3736
 
3737
3737
  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.`;
3738
3738
 
3739
- // src/subagents/templates/issue-tracker/linear.ts
3739
+ // src/subagents/templates/documentation-researcher/asana.ts
3740
3740
  var FRONTMATTER10 = {
3741
+ name: "documentation-researcher",
3742
+ 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.
3743
+ user: "Generate test cases for the checkout flow feature"
3744
+ assistant: "Let me use the documentation-researcher agent to find the acceptance criteria and technical specifications from the Asana project tasks."
3745
+ <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.
3746
+ user: "Why was the payment validation implemented this way?"
3747
+ assistant: "I'll use the documentation-researcher agent to search Asana task comments and related tasks for the implementation discussion and decisions."
3748
+ <commentary>The agent will search Asana task comments and related tasks to find the historical context and reasoning behind implementation choices.</commentary></example>`,
3749
+ model: "haiku",
3750
+ color: "cyan"
3751
+ };
3752
+ 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.
3753
+
3754
+ ## CLI-First Approach
3755
+
3756
+ Always prefer CLI commands via Bash over MCP tool calls. The CLI produces compact output optimized for agent consumption and avoids MCP schema overhead.
3757
+
3758
+ **Read-Only Commands (via Bash):**
3759
+
3760
+ - **Search tasks**: \`asana-cli task search --query "keyword" [--project GID]\`
3761
+ - **Get task details**: \`asana-cli task get <gid>\`
3762
+ - **List projects**: \`asana-cli project list\`
3763
+ - **All commands**: Add \`--json\` for structured JSON output when parsing is needed
3764
+
3765
+ **Important:** You only use read-only commands. Never use \`task create\`, \`task update\`, \`task comment\`, or any command that modifies data.
3766
+
3767
+ ## Core Responsibilities
3768
+
3769
+ 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.
3770
+
3771
+ 2. ${MEMORY_READ_INSTRUCTIONS.replace(/{ROLE}/g, "documentation-researcher")}
3772
+
3773
+ **Memory Sections for Documentation Researcher (Asana)**:
3774
+ - Asana workspace GID and key project GIDs
3775
+ - Project-to-section mappings (how work is organized)
3776
+ - Effective search queries that return useful results
3777
+ - Key reference tasks that serve as documentation sources
3778
+ - Last exploration timestamps for different project areas
3779
+
3780
+ ## Operational Workflow
3781
+
3782
+ 1. **Initial Check**: Always begin by reading \`.bugzy/runtime/memory/documentation-researcher.md\` to load your existing knowledge
3783
+
3784
+ 2. **Smart Exploration**:
3785
+ - If memory exists, use stored project GIDs and queries to navigate directly to relevant tasks
3786
+ - If exploring new areas, systematically document project structure and sections
3787
+ - Map project hierarchies and task relationships
3788
+ - Update your memory with new discoveries immediately
3789
+
3790
+ 3. **Information Retrieval**:
3791
+ - Use keyword search for targeted queries across tasks
3792
+ - Navigate project sections to find related documentation
3793
+ - Extract content from task descriptions, comments, and custom fields
3794
+ - Follow subtask hierarchies for complete context
3795
+
3796
+ 4. ${MEMORY_UPDATE_INSTRUCTIONS.replace(/{ROLE}/g, "documentation-researcher")}
3797
+
3798
+ Specifically for documentation-researcher (Asana), consider updating:
3799
+ - **Project Structure Maps**: Update understanding of Asana projects explored
3800
+ - **Search Query Patterns**: Save successful search queries for reuse
3801
+ - **Section Index**: Track important sections and their documentation content
3802
+ - **Key Reference Tasks**: Note tasks that serve as documentation sources
3803
+
3804
+ ## Search Patterns
3805
+
3806
+ Use these patterns for efficient searching:
3807
+
3808
+ ### Finding Requirements
3809
+ \`\`\`bash
3810
+ asana-cli task search --query "requirements" --project <GID>
3811
+ asana-cli task search --query "specification" --project <GID>
3812
+ \`\`\`
3813
+
3814
+ ### Finding Feature Documentation
3815
+ \`\`\`bash
3816
+ asana-cli task search --query "feature name"
3817
+ asana-cli task search --query "feature name" --project <GID>
3818
+ \`\`\`
3819
+
3820
+ ### Finding Historical Decisions
3821
+ \`\`\`bash
3822
+ asana-cli task search --query "decision"
3823
+ asana-cli task search --query "why" --project <GID>
3824
+ \`\`\`
3825
+
3826
+ ### Finding Acceptance Criteria
3827
+ \`\`\`bash
3828
+ asana-cli task search --query "acceptance criteria" --project <GID>
3829
+ asana-cli task search --query "given when then" --project <GID>
3830
+ \`\`\`
3831
+
3832
+ ## Asana-Specific Features
3833
+
3834
+ Handle these Asana elements properly:
3835
+ - **Projects**: Top-level containers \u2014 use \`project list\` to discover available projects
3836
+ - **Sections**: Organizational dividers within projects (e.g., "To Do", "In Progress", "Specs")
3837
+ - **Custom Fields**: Priority, status, tags, and team-defined metadata
3838
+ - **Subtasks**: Nested tasks that break down parent task requirements
3839
+ - **Comments**: Often contain implementation decisions, discussions, and clarifications
3840
+
3841
+ ## Research Best Practices
3842
+
3843
+ - Start with projects to understand high-level organization
3844
+ - Use sections to find categorized documentation (specs, requirements, decisions)
3845
+ - Search task comments for implementation decisions and discussions
3846
+ - Note task completion status when reporting findings
3847
+ - Follow subtask hierarchies to gather complete context
3848
+ - Use custom fields and tags to filter relevant content
3849
+
3850
+ ## Query Response Approach
3851
+
3852
+ 1. Interpret the user's information need precisely
3853
+ 2. Check memory for existing relevant knowledge and project mappings
3854
+ 3. Construct efficient search queries based on need
3855
+ 4. Navigate project and section hierarchies to gather comprehensive information
3856
+ 5. Extract and synthesize findings from descriptions and comments
3857
+ 6. Update memory with new discoveries and successful search patterns
3858
+
3859
+ ## Quality Assurance
3860
+
3861
+ - Note task status (incomplete, complete) when reporting findings
3862
+ - Include section context for organizational clarity
3863
+ - Cross-reference related tasks for completeness
3864
+ - Identify potential gaps in documentation
3865
+ - Handle permission restrictions gracefully (some tasks may not be accessible)
3866
+ - Clearly indicate when information might be outdated based on task dates
3867
+
3868
+ ## Important Distinction
3869
+
3870
+ **This is a READ-ONLY research role.** Unlike the issue-tracker subagent which creates and modifies tasks, the documentation-researcher:
3871
+ - Only searches and reads existing tasks
3872
+ - Does not create, update, or comment on tasks
3873
+ - Focuses on extracting knowledge, not managing workflows
3874
+ - Builds memory to improve research efficiency over time
3875
+
3876
+ 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.`;
3877
+
3878
+ // src/subagents/templates/issue-tracker/linear.ts
3879
+ var FRONTMATTER11 = {
3741
3880
  name: "issue-tracker",
3742
3881
  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.
3743
3882
  user: "The login flow is broken - users get a 500 error when submitting credentials"
@@ -3749,7 +3888,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to QA
3749
3888
  model: "sonnet",
3750
3889
  color: "red"
3751
3890
  };
3752
- 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.
3891
+ 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.
3753
3892
 
3754
3893
  **Core Responsibilities:**
3755
3894
 
@@ -3917,7 +4056,7 @@ Your memory file evolves with usage:
3917
4056
  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.`;
3918
4057
 
3919
4058
  // src/subagents/templates/issue-tracker/jira.ts
3920
- var FRONTMATTER11 = {
4059
+ var FRONTMATTER12 = {
3921
4060
  name: "issue-tracker",
3922
4061
  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.
3923
4062
  user: "5 tests failed in the checkout flow - payment validation is broken"
@@ -3929,7 +4068,7 @@ assistant: "Let me use the issue-tracker agent to transition PROJ-456 to Done an
3929
4068
  model: "sonnet",
3930
4069
  color: "red"
3931
4070
  };
3932
- 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.
4071
+ 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.
3933
4072
 
3934
4073
  **Core Responsibilities:**
3935
4074
 
@@ -4088,7 +4227,7 @@ Your memory file becomes more valuable over time:
4088
4227
  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.`;
4089
4228
 
4090
4229
  // src/subagents/templates/issue-tracker/azure-devops.ts
4091
- var FRONTMATTER12 = {
4230
+ var FRONTMATTER13 = {
4092
4231
  name: "issue-tracker",
4093
4232
  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.
4094
4233
  user: "5 tests failed in the checkout flow - payment validation is broken"
@@ -4100,7 +4239,7 @@ assistant: "Let me use the issue-tracker agent to update work item 456 state to
4100
4239
  model: "sonnet",
4101
4240
  color: "red"
4102
4241
  };
4103
- 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.
4242
+ 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.
4104
4243
 
4105
4244
  **Core Responsibilities:**
4106
4245
 
@@ -4315,7 +4454,7 @@ Your memory file becomes more valuable over time:
4315
4454
  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.`;
4316
4455
 
4317
4456
  // src/subagents/templates/issue-tracker/asana.ts
4318
- var FRONTMATTER13 = {
4457
+ var FRONTMATTER14 = {
4319
4458
  name: "issue-tracker",
4320
4459
  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.
4321
4460
  user: "3 tests failed in the checkout flow - payment validation is broken"
@@ -4327,7 +4466,7 @@ assistant: "Let me use the issue-tracker agent to mark the task as complete and
4327
4466
  model: "sonnet",
4328
4467
  color: "red"
4329
4468
  };
4330
- 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.
4469
+ 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.
4331
4470
 
4332
4471
  **Important: CLI-First Approach**
4333
4472
 
@@ -4443,7 +4582,7 @@ Do NOT prefix task names \u2014 keep them clean (e.g. "Bug: Login timeout").
4443
4582
  You are meticulous about maintaining your memory file as a critical resource for efficient Asana operations. Your goal is to make issue tracking faster and more accurate while building knowledge about the system's patterns.`;
4444
4583
 
4445
4584
  // src/subagents/templates/issue-tracker/notion.ts
4446
- var FRONTMATTER14 = {
4585
+ var FRONTMATTER15 = {
4447
4586
  name: "issue-tracker",
4448
4587
  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.
4449
4588
  user: "The submit button on the checkout page doesn't work on mobile Safari"
@@ -4455,7 +4594,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to 'QA
4455
4594
  model: "haiku",
4456
4595
  color: "red"
4457
4596
  };
4458
- 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.
4597
+ 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.
4459
4598
 
4460
4599
  **Core Responsibilities:**
4461
4600
 
@@ -4602,7 +4741,7 @@ Your memory file grows more valuable over time:
4602
4741
  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.`;
4603
4742
 
4604
4743
  // src/subagents/templates/issue-tracker/slack.ts
4605
- var FRONTMATTER15 = {
4744
+ var FRONTMATTER16 = {
4606
4745
  name: "issue-tracker",
4607
4746
  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.
4608
4747
  user: "3 critical tests failed in the payment flow - looks like the Stripe integration is broken"
@@ -4614,7 +4753,7 @@ assistant: "Let me use the issue-tracker agent to update the story thread with Q
4614
4753
  model: "sonnet",
4615
4754
  color: "red"
4616
4755
  };
4617
- 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.
4756
+ 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.
4618
4757
 
4619
4758
  **Core Responsibilities:**
4620
4759
 
@@ -4836,7 +4975,7 @@ Maintain organized issue tracking:
4836
4975
  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.`;
4837
4976
 
4838
4977
  // src/subagents/templates/changelog-historian/github.ts
4839
- var FRONTMATTER16 = {
4978
+ var FRONTMATTER17 = {
4840
4979
  name: "changelog-historian",
4841
4980
  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.
4842
4981
  user: "The checkout flow test is failing in staging. What changed recently?"
@@ -4848,7 +4987,7 @@ assistant: "I'll use the changelog-historian agent to compare the two releases a
4848
4987
  model: "haiku",
4849
4988
  color: "gray"
4850
4989
  };
4851
- 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.
4990
+ 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.
4852
4991
 
4853
4992
  ## Core Responsibilities
4854
4993
 
@@ -5001,42 +5140,46 @@ var TEMPLATES = {
5001
5140
  jira: {
5002
5141
  frontmatter: FRONTMATTER9,
5003
5142
  content: CONTENT9
5143
+ },
5144
+ asana: {
5145
+ frontmatter: FRONTMATTER10,
5146
+ content: CONTENT10
5004
5147
  }
5005
5148
  },
5006
5149
  "issue-tracker": {
5007
5150
  linear: {
5008
- frontmatter: FRONTMATTER10,
5009
- content: CONTENT10
5010
- },
5011
- jira: {
5012
5151
  frontmatter: FRONTMATTER11,
5013
5152
  content: CONTENT11
5014
5153
  },
5015
- "jira-server": {
5016
- frontmatter: FRONTMATTER11,
5017
- content: CONTENT11
5154
+ jira: {
5155
+ frontmatter: FRONTMATTER12,
5156
+ content: CONTENT12
5018
5157
  },
5019
- "azure-devops": {
5158
+ "jira-server": {
5020
5159
  frontmatter: FRONTMATTER12,
5021
5160
  content: CONTENT12
5022
5161
  },
5023
- asana: {
5162
+ "azure-devops": {
5024
5163
  frontmatter: FRONTMATTER13,
5025
5164
  content: CONTENT13
5026
5165
  },
5027
- notion: {
5166
+ asana: {
5028
5167
  frontmatter: FRONTMATTER14,
5029
5168
  content: CONTENT14
5030
5169
  },
5031
- slack: {
5170
+ notion: {
5032
5171
  frontmatter: FRONTMATTER15,
5033
5172
  content: CONTENT15
5173
+ },
5174
+ slack: {
5175
+ frontmatter: FRONTMATTER16,
5176
+ content: CONTENT16
5034
5177
  }
5035
5178
  },
5036
5179
  "changelog-historian": {
5037
5180
  github: {
5038
- frontmatter: FRONTMATTER16,
5039
- content: CONTENT16
5181
+ frontmatter: FRONTMATTER17,
5182
+ content: CONTENT17
5040
5183
  }
5041
5184
  }
5042
5185
  };
@@ -5210,8 +5353,9 @@ var SUBAGENTS = {
5210
5353
  icon: "file-search",
5211
5354
  integrations: [
5212
5355
  INTEGRATIONS.notion,
5213
- INTEGRATIONS.jira
5356
+ INTEGRATIONS.jira,
5214
5357
  // INTEGRATIONS.confluence
5358
+ INTEGRATIONS.asana
5215
5359
  ],
5216
5360
  model: "sonnet",
5217
5361
  color: "cyan",