@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/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
 
@@ -5023,7 +5164,7 @@ You are meticulous about maintaining your memory file as a critical resource for
5023
5164
 
5024
5165
  // src/subagents/templates/issue-tracker/notion.ts
5025
5166
  init_esm_shims();
5026
- var FRONTMATTER14 = {
5167
+ var FRONTMATTER15 = {
5027
5168
  name: "issue-tracker",
5028
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.
5029
5170
  user: "The submit button on the checkout page doesn't work on mobile Safari"
@@ -5035,7 +5176,7 @@ assistant: "Let me use the issue-tracker agent to update the story status to 'QA
5035
5176
  model: "haiku",
5036
5177
  color: "red"
5037
5178
  };
5038
- 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.
5039
5180
 
5040
5181
  **Core Responsibilities:**
5041
5182
 
@@ -5183,7 +5324,7 @@ You are meticulous about maintaining your memory file as a critical resource tha
5183
5324
 
5184
5325
  // src/subagents/templates/issue-tracker/slack.ts
5185
5326
  init_esm_shims();
5186
- var FRONTMATTER15 = {
5327
+ var FRONTMATTER16 = {
5187
5328
  name: "issue-tracker",
5188
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.
5189
5330
  user: "3 critical tests failed in the payment flow - looks like the Stripe integration is broken"
@@ -5195,7 +5336,7 @@ assistant: "Let me use the issue-tracker agent to update the story thread with Q
5195
5336
  model: "sonnet",
5196
5337
  color: "red"
5197
5338
  };
5198
- 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.
5199
5340
 
5200
5341
  **Core Responsibilities:**
5201
5342
 
@@ -5418,7 +5559,7 @@ You are focused on creating clear, organized issue threads that leverage Slack's
5418
5559
 
5419
5560
  // src/subagents/templates/changelog-historian/github.ts
5420
5561
  init_esm_shims();
5421
- var FRONTMATTER16 = {
5562
+ var FRONTMATTER17 = {
5422
5563
  name: "changelog-historian",
5423
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.
5424
5565
  user: "The checkout flow test is failing in staging. What changed recently?"
@@ -5430,7 +5571,7 @@ assistant: "I'll use the changelog-historian agent to compare the two releases a
5430
5571
  model: "haiku",
5431
5572
  color: "gray"
5432
5573
  };
5433
- 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.
5434
5575
 
5435
5576
  ## Core Responsibilities
5436
5577
 
@@ -5583,42 +5724,46 @@ var TEMPLATES = {
5583
5724
  jira: {
5584
5725
  frontmatter: FRONTMATTER9,
5585
5726
  content: CONTENT9
5727
+ },
5728
+ asana: {
5729
+ frontmatter: FRONTMATTER10,
5730
+ content: CONTENT10
5586
5731
  }
5587
5732
  },
5588
5733
  "issue-tracker": {
5589
5734
  linear: {
5590
- frontmatter: FRONTMATTER10,
5591
- content: CONTENT10
5592
- },
5593
- jira: {
5594
5735
  frontmatter: FRONTMATTER11,
5595
5736
  content: CONTENT11
5596
5737
  },
5597
- "jira-server": {
5598
- frontmatter: FRONTMATTER11,
5599
- content: CONTENT11
5738
+ jira: {
5739
+ frontmatter: FRONTMATTER12,
5740
+ content: CONTENT12
5600
5741
  },
5601
- "azure-devops": {
5742
+ "jira-server": {
5602
5743
  frontmatter: FRONTMATTER12,
5603
5744
  content: CONTENT12
5604
5745
  },
5605
- asana: {
5746
+ "azure-devops": {
5606
5747
  frontmatter: FRONTMATTER13,
5607
5748
  content: CONTENT13
5608
5749
  },
5609
- notion: {
5750
+ asana: {
5610
5751
  frontmatter: FRONTMATTER14,
5611
5752
  content: CONTENT14
5612
5753
  },
5613
- slack: {
5754
+ notion: {
5614
5755
  frontmatter: FRONTMATTER15,
5615
5756
  content: CONTENT15
5757
+ },
5758
+ slack: {
5759
+ frontmatter: FRONTMATTER16,
5760
+ content: CONTENT16
5616
5761
  }
5617
5762
  },
5618
5763
  "changelog-historian": {
5619
5764
  github: {
5620
- frontmatter: FRONTMATTER16,
5621
- content: CONTENT16
5765
+ frontmatter: FRONTMATTER17,
5766
+ content: CONTENT17
5622
5767
  }
5623
5768
  }
5624
5769
  };